diff --git a/docs/Player/index.html b/docs/Player/index.html index 4cf56ce..04d206f 100644 --- a/docs/Player/index.html +++ b/docs/Player/index.html @@ -6,7 +6,7 @@ - + diff --git a/docs/Player/sample.js b/docs/Player/sample.js index 9f074e8..366289f 100644 --- a/docs/Player/sample.js +++ b/docs/Player/sample.js @@ -14,6 +14,7 @@ //const testVersion = "sampleAnimation1"; //const testVersion = "sampleAnimation2"; const testVersion = "sampleAnimation3"; +//const testVersion = "sampleReplaceTexture"; (async () => { PIXI.sayHello(); @@ -44,6 +45,11 @@ const testVersion = "sampleAnimation3"; "sampleAnimation3": { "ssfbFile": "./MeshBone/Knight.ssfb", "func": Play_sampleAnimation3 + }, + + "sampleReplaceTexture": { + "ssfbFile": "./MeshBone/Knight.ssfb", + "func": Play_sampleReplaceTexture } }; @@ -115,4 +121,16 @@ const testVersion = "sampleAnimation3"; mySS6Player.Play(); } } + + function Play_sampleReplaceTexture() { + let mySS6Player = new ss6PlayerPixi.SS6Player(mySS6Project); + mySS6Player.Setup("Knight_bomb", "Balloon"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + mySS6Player.SetPartCell('Head', 'Effect', 'Flame'); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } })(); diff --git a/docs/Player/ss6player-pixi.min.js b/docs/Player/ss6player-pixi.min.js index f15ab50..7fa5e18 100644 --- a/docs/Player/ss6player-pixi.min.js +++ b/docs/Player/ss6player-pixi.min.js @@ -1,10 +1,10 @@ /** * ----------------------------------------------------------- - * SS6Player For pixi.js v2.1.0 + * SS6Player For pixi.js v2.2.0 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ * ----------------------------------------------------------- */ -var ss6PlayerPixi=function(dt,D){"use strict";class vt{}const ht=4,ct=4,C=4,q=new Int32Array(2),mt=new Float32Array(q.buffer),Ft=new Float64Array(q.buffer),ft=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var pt;(function(c){c[c.UTF8_BYTES=1]="UTF8_BYTES",c[c.UTF16_STRING=2]="UTF16_STRING"})(pt||(pt={}));class ut{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new ut(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8}writeInt32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeUint32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeInt64(t,s){this.writeInt32(t,Number(BigInt.asIntN(32,s))),this.writeInt32(t+4,Number(BigInt.asIntN(32,s>>BigInt(32))))}writeUint64(t,s){this.writeUint32(t,Number(BigInt.asUintN(32,s))),this.writeUint32(t+4,Number(BigInt.asUintN(32,s>>BigInt(32))))}writeFloat32(t,s){mt[0]=s,this.writeInt32(t,q[0])}writeFloat64(t,s){Ft[0]=s,this.writeInt32(t,q[ft?0:1]),this.writeInt32(t+4,q[ft?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;e--)t.addInt32(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static endpartState(t){return t.endObject()}static createpartState(t,s,e,i,h){return j.startpartState(t),j.addIndex(t,s),j.addFlag1(t,e),j.addFlag2(t,i),j.addData(t,h),j.endpartState(t)}}class et{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsframeDataIndex(t,s){return(s||new et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,s){return t.setPosition(t.position()+C),(s||new et).__init(t.readInt32(t.position())+t.position(),t)}states(t,s){const e=this.bb.__offset(this.bb_pos,4);return e?(s||new j).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,s){t.addFieldOffset(0,s,0)}static createStatesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startStatesVector(t,s){t.startVector(4,s,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,s){return et.startframeDataIndex(t),et.addStates(t,s),et.endframeDataIndex(t)}}class Q{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAslabelDataItem(t,s){return(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,s){return t.setPosition(t.position()+C),(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}label(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,s){t.addFieldOffset(0,s,0)}static addFrameIndex(t,s){t.addFieldInt16(1,s,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,s,e){return Q.startlabelDataItem(t),Q.addLabel(t,s),Q.addFrameIndex(t,e),Q.endlabelDataItem(t)}}class it{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataIndices(t,s){return(s||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,s){return t.setPosition(t.position()+C),(s||new it).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,s){t.addFieldOffset(0,s,0)}static createIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startIndicesVector(t,s){t.startVector(4,s,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,s){return it.startmeshDataIndices(t),it.addIndices(t,s),it.endmeshDataIndices(t)}}class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataUV(t,s){return(s||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,s){return t.setPosition(t.position()+C),(s||new at).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,s){t.addFieldOffset(0,s,0)}static createUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startUvVector(t,s){t.startVector(4,s,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,s){return at.startmeshDataUV(t),at.addUv(t,s),at.endmeshDataUV(t)}}class R{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataItem(t,s){return(s||new R).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,s){return t.setPosition(t.position()+C),(s||new R).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const s=this.bb.__offset(this.bb_pos,8);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,s){t.addFieldInt16(0,s,0)}static addArrayIndex(t,s){t.addFieldInt16(1,s,0)}static addDataType(t,s){t.addFieldOffset(2,s,0)}static createDataTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startDataTypeVector(t,s){t.startVector(1,s,1)}static addData(t,s){t.addFieldOffset(3,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,s,e,i,h){return R.startuserDataItem(t),R.addFlags(t,s),R.addArrayIndex(t,e),R.addDataType(t,i),R.addData(t,h),R.enduserDataItem(t)}}class G{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataPerFrame(t,s){return(s||new G).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,s){return t.setPosition(t.position()+C),(s||new G).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new R).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,s){t.addFieldInt16(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,s,e){return G.startuserDataPerFrame(t),G.addFrameIndex(t,s),G.addData(t,e),G.enduserDataPerFrame(t)}}class y{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimationData(t,s){return(s||new y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,s){return t.setPosition(t.position()+C),(s||new y).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}defaultData(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new _).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?(s||new G).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new Q).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new at).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new it).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,s){t.addFieldOffset(0,s,0)}static addDefaultData(t,s){t.addFieldOffset(1,s,0)}static createDefaultDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDefaultDataVector(t,s){t.startVector(4,s,4)}static addFrameData(t,s){t.addFieldOffset(2,s,0)}static createFrameDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startFrameDataVector(t,s){t.startVector(4,s,4)}static addUserData(t,s){t.addFieldOffset(3,s,0)}static createUserDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startUserDataVector(t,s){t.startVector(4,s,4)}static addLabelData(t,s){t.addFieldOffset(4,s,0)}static createLabelDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startLabelDataVector(t,s){t.startVector(4,s,4)}static addMeshsDataUv(t,s){t.addFieldOffset(5,s,0)}static createMeshsDataUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataUvVector(t,s){t.startVector(4,s,4)}static addMeshsDataIndices(t,s){t.addFieldOffset(6,s,0)}static createMeshsDataIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataIndicesVector(t,s){t.startVector(4,s,4)}static addStartFrames(t,s){t.addFieldInt16(7,s,0)}static addEndFrames(t,s){t.addFieldInt16(8,s,0)}static addTotalFrames(t,s){t.addFieldInt16(9,s,0)}static addFps(t,s){t.addFieldInt16(10,s,0)}static addLabelNum(t,s){t.addFieldInt16(11,s,0)}static addCanvasSizeW(t,s){t.addFieldInt16(12,s,0)}static addCanvasSizeH(t,s){t.addFieldInt16(13,s,0)}static addCanvasPvotX(t,s){t.addFieldFloat32(14,s,0)}static addCanvasPvotY(t,s){t.addFieldFloat32(15,s,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,s,e,i,h,a,o,n,f,r,d,l,u,b,V,m,F){return y.startAnimationData(t),y.addName(t,s),y.addDefaultData(t,e),y.addFrameData(t,i),y.addUserData(t,h),y.addLabelData(t,a),y.addMeshsDataUv(t,o),y.addMeshsDataIndices(t,n),y.addStartFrames(t,f),y.addEndFrames(t,r),y.addTotalFrames(t,d),y.addFps(t,l),y.addLabelNum(t,u),y.addCanvasSizeW(t,b),y.addCanvasSizeH(t,V),y.addCanvasPvotX(t,m),y.addCanvasPvotY(t,F),y.endAnimationData(t)}}var O=(c=>(c[c.Invalid=-1]="Invalid",c[c.Nulltype=0]="Nulltype",c[c.Normal=1]="Normal",c[c.Text=2]="Text",c[c.Instance=3]="Instance",c[c.Armature=4]="Armature",c[c.Effect=5]="Effect",c[c.Mesh=6]="Mesh",c[c.Movenode=7]="Movenode",c[c.Constraint=8]="Constraint",c[c.Mask=9]="Mask",c[c.Joint=10]="Joint",c[c.Bonepoint=11]="Bonepoint",c))(O||{});class x{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsPartData(t,s){return(s||new x).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,s){return t.setPosition(t.position()+C),(s||new x).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):O.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.__string(this.bb_pos+s,t):null}effectfilename(t){const s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__string(this.bb_pos+s,t):null}colorLabel(t){const s=this.bb.__offset(this.bb_pos,20);return s?this.bb.__string(this.bb_pos+s,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,s){t.addFieldOffset(0,s,0)}static addIndex(t,s){t.addFieldInt16(1,s,0)}static addParentIndex(t,s){t.addFieldInt16(2,s,0)}static addType(t,s){t.addFieldInt8(3,s,O.Nulltype)}static addBoundsType(t,s){t.addFieldInt16(4,s,0)}static addAlphaBlendType(t,s){t.addFieldInt16(5,s,0)}static addRefname(t,s){t.addFieldOffset(6,s,0)}static addEffectfilename(t,s){t.addFieldOffset(7,s,0)}static addColorLabel(t,s){t.addFieldOffset(8,s,0)}static addMaskInfluence(t,s){t.addFieldInt16(9,s,0)}static endPartData(t){return t.endObject()}static createPartData(t,s,e,i,h,a,o,n,f,r,d){return x.startPartData(t),x.addName(t,s),x.addIndex(t,e),x.addParentIndex(t,i),x.addType(t,h),x.addBoundsType(t,a),x.addAlphaBlendType(t,o),x.addRefname(t,n),x.addEffectfilename(t,f),x.addColorLabel(t,r),x.addMaskInfluence(t,d),x.endPartData(t)}}class K{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimePackData(t,s){return(s||new K).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,s){return t.setPosition(t.position()+C),(s||new K).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}parts(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new y).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,s){t.addFieldOffset(0,s,0)}static addParts(t,s){t.addFieldOffset(1,s,0)}static createPartsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startPartsVector(t,s){t.startVector(4,s,4)}static addAnimations(t,s){t.addFieldOffset(2,s,0)}static createAnimationsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimationsVector(t,s){t.startVector(4,s,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,s,e,i){return K.startAnimePackData(t),K.addName(t,s),K.addParts(t,e),K.addAnimations(t,i),K.endAnimePackData(t)}}class k{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCellMap(t,s){return(s||new k).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,s){return t.setPosition(t.position()+C),(s||new k).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}imagePath(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,s){t.addFieldOffset(0,s,0)}static addImagePath(t,s){t.addFieldOffset(1,s,0)}static addIndex(t,s){t.addFieldInt16(2,s,0)}static addWrapmode(t,s){t.addFieldInt16(3,s,0)}static addFiltermode(t,s){t.addFieldInt16(4,s,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,s,e,i,h,a){return k.startCellMap(t),k.addName(t,s),k.addImagePath(t,e),k.addIndex(t,i),k.addWrapmode(t,h),k.addFiltermode(t,a),k.endCellMap(t)}}class bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCell(t,s){return(s||new bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,s){return t.setPosition(t.position()+C),(s||new bt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}cellMap(t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new k).__init(this.bb.__indirect(this.bb_pos+s),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,s){t.addFieldOffset(0,s,0)}static addCellMap(t,s){t.addFieldOffset(1,s,0)}static addIndexInCellMap(t,s){t.addFieldInt16(2,s,0)}static addX(t,s){t.addFieldInt16(3,s,0)}static addY(t,s){t.addFieldInt16(4,s,0)}static addWidth(t,s){t.addFieldInt16(5,s,0)}static addHeight(t,s){t.addFieldInt16(6,s,0)}static addPivotX(t,s){t.addFieldFloat32(7,s,0)}static addPivotY(t,s){t.addFieldFloat32(8,s,0)}static addU1(t,s){t.addFieldFloat32(9,s,0)}static addV1(t,s){t.addFieldFloat32(10,s,0)}static addU2(t,s){t.addFieldFloat32(11,s,0)}static addV2(t,s){t.addFieldFloat32(12,s,0)}static endCell(t){return t.endObject()}}class w{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectNode(t,s){return(s||new w).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,s){return t.setPosition(t.position()+C),(s||new w).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,s){t.addFieldInt16(0,s,0)}static addParentIndex(t,s){t.addFieldInt16(1,s,0)}static addType(t,s){t.addFieldInt16(2,s,0)}static addCellIndex(t,s){t.addFieldInt16(3,s,0)}static addBlendType(t,s){t.addFieldInt16(4,s,0)}static addNumBehavior(t,s){t.addFieldInt16(5,s,0)}static addBehaviorType(t,s){t.addFieldOffset(6,s,0)}static createBehaviorTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startBehaviorTypeVector(t,s){t.startVector(1,s,1)}static addBehavior(t,s){t.addFieldOffset(7,s,0)}static createBehaviorVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startBehaviorVector(t,s){t.startVector(4,s,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,s,e,i,h,a,o,n,f){return w.startEffectNode(t),w.addArrayIndex(t,s),w.addParentIndex(t,e),w.addType(t,i),w.addCellIndex(t,h),w.addBlendType(t,a),w.addNumBehavior(t,o),w.addBehaviorType(t,n),w.addBehavior(t,f),w.endEffectNode(t)}}class L{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectFile(t,s){return(s||new L).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,s){return t.setPosition(t.position()+C),(s||new L).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?(s||new w).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,s){t.addFieldOffset(0,s,0)}static addFps(t,s){t.addFieldInt16(1,s,0)}static addIsLockRandSeed(t,s){t.addFieldInt16(2,s,0)}static addLockRandSeed(t,s){t.addFieldInt16(3,s,0)}static addLayoutScaleX(t,s){t.addFieldInt16(4,s,0)}static addLayoutScaleY(t,s){t.addFieldInt16(5,s,0)}static addNumNodeList(t,s){t.addFieldInt16(6,s,0)}static addEffectNode(t,s){t.addFieldOffset(7,s,0)}static createEffectNodeVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectNodeVector(t,s){t.startVector(4,s,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,s,e,i,h,a,o,n,f){return L.startEffectFile(t),L.addName(t,s),L.addFps(t,e),L.addIsLockRandSeed(t,i),L.addLockRandSeed(t,h),L.addLayoutScaleX(t,a),L.addLayoutScaleY(t,o),L.addNumNodeList(t,n),L.addEffectNode(t,f),L.endEffectFile(t)}}var p=(c=>(c[c.INVISIBLE=1]="INVISIBLE",c[c.FLIP_H=2]="FLIP_H",c[c.FLIP_V=4]="FLIP_V",c[c.CELL_INDEX=8]="CELL_INDEX",c[c.POSITION_X=16]="POSITION_X",c[c.POSITION_Y=32]="POSITION_Y",c[c.POSITION_Z=64]="POSITION_Z",c[c.PIVOT_X=128]="PIVOT_X",c[c.PIVOT_Y=256]="PIVOT_Y",c[c.ROTATIONX=512]="ROTATIONX",c[c.ROTATIONY=1024]="ROTATIONY",c[c.ROTATIONZ=2048]="ROTATIONZ",c[c.SCALE_X=4096]="SCALE_X",c[c.SCALE_Y=8192]="SCALE_Y",c[c.LOCALSCALE_X=16384]="LOCALSCALE_X",c[c.LOCALSCALE_Y=32768]="LOCALSCALE_Y",c[c.OPACITY=65536]="OPACITY",c[c.LOCALOPACITY=131072]="LOCALOPACITY",c[c.PARTS_COLOR=262144]="PARTS_COLOR",c[c.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",c[c.SIZE_X=1048576]="SIZE_X",c[c.SIZE_Y=2097152]="SIZE_Y",c[c.U_MOVE=4194304]="U_MOVE",c[c.V_MOVE=8388608]="V_MOVE",c[c.UV_ROTATION=16777216]="UV_ROTATION",c[c.U_SCALE=33554432]="U_SCALE",c[c.V_SCALE=67108864]="V_SCALE",c[c.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",c[c.MASK=268435456]="MASK",c[c.PRIORITY=536870912]="PRIORITY",c[c.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",c[c.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",c))(p||{}),gt=(c=>(c[c.MESHDATA=1]="MESHDATA",c))(gt||{});class S{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsProjectData(t,s){return(s||new S).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,s){return t.setPosition(t.position()+C),(s||new S).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__string(this.bb_pos+s,t):null}cells(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new K).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new L).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,s){t.addFieldInt32(0,s,0)}static addVersion(t,s){t.addFieldInt32(1,s,0)}static addFlags(t,s){t.addFieldInt32(2,s,0)}static addImageBaseDir(t,s){t.addFieldOffset(3,s,0)}static addCells(t,s){t.addFieldOffset(4,s,0)}static createCellsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startCellsVector(t,s){t.startVector(4,s,4)}static addAnimePacks(t,s){t.addFieldOffset(5,s,0)}static createAnimePacksVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimePacksVector(t,s){t.startVector(4,s,4)}static addEffectFileList(t,s){t.addFieldOffset(6,s,0)}static createEffectFileListVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectFileListVector(t,s){t.startVector(4,s,4)}static addNumCells(t,s){t.addFieldInt16(7,s,0)}static addNumAnimePacks(t,s){t.addFieldInt16(8,s,0)}static addNumEffectFileList(t,s){t.addFieldInt16(9,s,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,s){t.finish(s,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,s){t.finish(s,"SSFB",!0)}static createProjectData(t,s,e,i,h,a,o,n,f,r,d){return S.startProjectData(t),S.addDataId(t,s),S.addVersion(t,e),S.addFlags(t,i),S.addImageBaseDir(t,h),S.addCells(t,a),S.addAnimePacks(t,o),S.addEffectFileList(t,n),S.addNumCells(t,f),S.addNumAnimePacks(t,r),S.addNumEffectFileList(t,d),S.endProjectData(t)}}class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,s){return t.prep(4,4),t.writeInt32(s),t.offset()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,s,e){return t.prep(4,8),t.writeInt32(e),t.writeInt32(s),t.offset()}}class lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,s,e,i,h){return t.prep(4,16),t.writeInt32(h),t.writeInt32(i),t.writeInt32(e),t.writeInt32(s),t.offset()}}class Z{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataString(t,s){return(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,s){return t.setPosition(t.position()+C),(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,s){t.addFieldInt32(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,s,e){return Z.startuserDataString(t),Z.addLength(t,s),Z.addData(t,e),Z.enduserDataString(t)}}let Ct=class{static getProjectData(t){const s=new ut(t);return S.getRootAsProjectData(s)}};class It{static getProjectData(t){return Ct.getProjectData(t)}}class nt{constructor(t,s=null,e=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=It.getProjectData(t),s!==null&&e!==null&&this.Setup(s,e)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,s){this.clearCaches();const e=this._fbObj.animePacksLength();let i=!1;for(let h=0;h>>0,r.colorBlendType===1&&(r.tint=r.colorArgb32&16777215)}}if(f>.MESHDATA){const l=this.curAnimation.meshsDataUv(o);r.meshIsBind=l.uv(0),r.meshNum=l.uv(1);let u=new Float32Array(r.meshNum*3);for(let b=0;b=0&&(t=this.InheritOpacity(t,this._parentIndex[s],e)),t}TransformVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformMeshVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPositionLocal(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX*i.localscaleX,f=t[1]*i.scaleY*i.localscaleY;return t[2]*=i.scaleX*i.localscaleX,t[3]*=i.scaleY*i.localscaleY,t[0]=a*n-o*f+i.positionX,t[1]=o*n+a*f-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static CoordinateGetDiagonalIntersection(t,s,e,i,h,a,o,n,f,r,d){const l=(n-a)*(o-e)-(o-h)*(n-i),u=(f-e)*(n-i)-(r-i)*(o-e),b=(f-e)*(n-a)-(r-i)*(o-h);if(b<=0&&b>=0)return d;const V=l/b,m=u/b;return 0<=V&&1>=V&&0<=m&&1>=m&&(t=e+V*(f-e),s=i+V*(r-i)),d[0]=t,d[1]=s,d}TransformVerts(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPosition(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX,f=t[1]*i.scaleY;return t[2]*=i.scaleX,t[3]*=i.scaleY,t[0]=a*n-o*f+i.positionX,t[1]=o*n+a*f-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static GetVerts(t,s,e){const i=s.size_X/2,h=s.size_Y/2,a=s.size_X*-(s.pivotX+t.pivotX()),o=s.size_Y*(s.pivotY+t.pivotY());return e.set([a,o,a-i,o-h,a+i,o-h,a-i,o+h,a+i,o+h]),e}static GetMeshVerts(t,s,e){for(let i=0;i{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}unload(t,s,e){D.Assets.unloadBundle(t).then(()=>{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}texture(t){return D.Assets.get(t)}}class St{constructor(){this.loader=new xt}load(t,s,e){return this.loader.load(t,s,e)}unload(t,s,e=null){return this.loader.unload(t,s,e)}texture(t){return this.loader.texture(t)}}class Dt{constructor(t,s,e,i){if(this.sspjMap={},this.resourceLoader=new St,typeof t=="string"&&e===void 0){let h=t;this.ssfbPath=h;const a=h.lastIndexOf("/");this.rootPath=h.substring(0,a)+"/",this.ssfbFile=h.substring(a+1),this.onComplete=s===void 0?null:s,this.status=0,this.LoadFlatBuffersProject()}else if(typeof s=="object"&&s.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let h=s,a=e;this.onComplete=i===void 0?null:i,this.load(h,a)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,s=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(s=>s.ok?Promise.resolve(s.arrayBuffer()):Promise.reject(new Error(s.statusText))).then(s=>{t.fbObj=It.getProjectData(new Uint8Array(s)),t.LoadCellResources()}).catch(s=>{this.onComplete!==null&&this.onComplete(null,s)})}LoadCellResources(){let t=[];this.sspjMap={};for(let e=0;e{e===null?(s.status=1,s.onComplete!==null&&s.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,e)})}load(t,s){this.fbObj=It.getProjectData(t);let e={};for(let h in s){const a=s[h];let o="";const n=a.byteLength;for(let f=0;f{h===null?(i.status=1,i.onComplete!==null&&i.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,h)})}}class Vt{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class _t extends D.Container{constructor(t,s=null,e=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new D.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.isRenderGroup=!0,this.ss6project=t,this.playerLib=new nt(t.fbObj,s,e),this.parentAlpha=1,s!==null&&e!==null&&this.Setup(s,e),this.on("added",(...i)=>{D.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...i)=>{D.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,s){this.playerLib.Setup(t,s),this.clearCaches();const e=this.playerLib.animePackData,i=e.partsLength();this.prevCellID=new Array(i),this.prevPartObject=new Array(i),this.substituteOverWrite=new Array(i),this.substituteKeyParam=new Array(i);for(let h=0;h=this.updateInterval){let h=!1;const a=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*a;let o=this.skipEnabled?a*this.playDirection:this.playDirection,n=this._currentFrame+o,f=Math.floor(n),r=n-f,d=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let l=f-d;l;l--){let u=d+1;if(u>this._endFrame)if(this._loops===-1)u=this._startFrame;else if(this._loops--,h=!0,this._loops===0){this._isPlaying=!1,u=s?this._startFrame:this._endFrame;break}else u=this._startFrame;d=u,this._isPlaying&&this.playerLib.HaveUserData(d)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(d))}if(this.playDirection<=-1)for(let l=d-f;l;l--){let u=d-1;if(u0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=s)}SetAnimationSection(t=-1,s=-1,e=-1){t>=0&&t=0&&s0?this._loops=e:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let s=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(s=t),this._currentFrame=s,this.resetLiveFrame();const e=Math.floor(this._currentFrame);this.SetFrameAnimation(e),this.playerLib.HaveUserData(e)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(e))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),s=this.endFrame;t!==s&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}GetPartsBlendMode(){const t=this.playerLib.animePackData,s=t.partsLength();let e=[];for(let i=0;i>>24)/255,o=((e&16711680)>>>16)/255,n=((e&65280)>>>8)/255,f=(e&255)/255;if(t===0){const r=1-s;h.matrix=[r,0,0,0,o*s,0,r,0,0,n*s,0,0,r,0,f*s,0,0,0,1,0]}else t===1?h.matrix=[o,0,0,0,0,0,n,0,0,0,0,0,f,0,0,0,0,0,a,0]:t===2?h.matrix=[1,0,0,0,o,0,1,0,0,n,0,0,1,0,f,0,0,0,a,0]:t===3&&(h.matrix=[1,0,0,0,-o,0,1,0,0,-n,0,0,1,0,-f,0,0,0,a,0]);return this.colorMatrixFilterCache[i]=h,h}SetFrameAnimation(t,s=0){const e=this.playerLib.GetFrameData(t);this.removeChildren();const i=e.length;for(let h=0;h=0&&this.prevCellID[a]!==n&&(f?.destroy(),f=this.MakeCellMesh(n),f.label=r.name());break;case O.Mesh:n>=0&&this.prevCellID[a]!==n&&(f?.destroy(),f=this.MakeMeshCellMesh(a,n),f.label=r.name());break;case O.Nulltype:case O.Joint:this.prevCellID[a]!==n&&(f?.destroy(),f=new D.Container,f.label=r.name());break;default:n>=0&&this.prevCellID[a]!==n&&(f?.destroy(),f=this.MakeCellMesh(n),f.label=r.name());break}if(f!=null)switch(this.prevCellID[a]=n,this.prevPartObject[a]=f,d){case O.Instance:{const b=f;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,o.index,t),b.rotation=this._instancePos[4]*Math.PI/180,b.position.set(this._instancePos[0],this._instancePos[1]),b.scale.set(this._instancePos[2],this._instancePos[3]);let V=o.opacity/255;o.localopacity<255&&(V=o.localopacity/255),b.SetAlpha(V*this.parentAlpha),b.visible=!o.f_hide;let m=o.instanceValue_curKeyframe,F=o.instanceValue_startFrame,I=o.instanceValue_endFrame,A=o.instanceValue_speed,H=o.instanceValue_loopNum,tt=!1,U=!1,v=!1,X=!1;const W=1,J=2,M=4,P=8,E=o.instanceValue_loopflag;E&W&&(tt=!0),E&J&&(U=!0),E&M&&(v=!0),E&P&&(X=!0),l&&(F=u.refStartframe,I=u.refEndframe,A=u.refSpeed,H=u.refloopNum,tt=u.infinity,U=u.reverse,v=u.pingpong,X=u.independent),(b._startFrame!==F||b._endFrame!==I)&&b.SetAnimationSection(F,I);let Y=t;X===!0&&(this.liveFrame[h]+=s,Y=Math.floor(this.liveFrame[h]));const st=m;let g=Math.floor((Y-st)*A);if(g<0||st>Y)continue;const B=I-F+1;if(B<=0)continue;let N=Math.floor(g/B),T=H;v&&(T=T*2),tt||N>=T&&(g=B-1,N=T-1);const $=Math.floor(g%B);let z=0;v&&N%2===1&&(U?U=!1:U=!0),this.playDirection<=-1&&(U=!U),U?z=I-$:z=$+F,b.SetFrame(Math.floor(z)),this.addChild(b);break}case O.Normal:case O.Mesh:case O.Joint:case O.Mask:{const b=f,V=b.geometry.attributes.aPosition.buffer;let m=V.data;const F=this.playerLib.fbObj.cells(n);let I;if(d===O.Mesh?o.meshIsBind===0?I=this.playerLib.TransformMeshVertsLocal(nt.GetMeshVerts(F,o,m),o.index,t):I=nt.GetMeshVerts(F,o,m):(I=d===O.Joint?new Float32Array(10):m,I=this.playerLib.TransformVertsLocal(nt.GetVerts(F,o,I),o.index,t)),o.flag1&p.VERTEX_TRANSFORM){const v=I[6],X=I[3*2+1],W=I[1*2+0],J=I[1*2+1],M=I[4*2+0],P=I[4*2+1],E=I[2*2+0],Y=I[2*2+1],st=(v+M)*.5,g=(X+P)*.5,B=(v+W)*.5,N=(X+J)*.5,T=(W+E)*.5,$=(J+Y)*.5,z=(M+E)*.5,ot=(P+Y)*.5,rt=nt.CoordinateGetDiagonalIntersection(I[0],I[1],st,g,z,ot,B,N,T,$,this._CoordinateGetDiagonalIntersectionVec2);I[0]=rt[0],I[1]=rt[1]}const A=I[0],H=I[1];for(let v=0;v>>24)/255;b.alpha=b.alpha*v}const U=this.alphaBlendType[a];(U==="multiply"||U==="screen")&&(b.alpha=1),d!==O.Mask&&this.addChild(b);break}case O.Nulltype:{const b=f,V=this.playerLib.InheritOpacity(1,o.index,t);b.alpha=V*o.localopacity/255;const m=this.playerLib.TransformVerts(nt.GetDummyVerts(),o.index,t),F=m[0],I=m[1];b.position.set(F,I);const A=Math.atan2(m[5]-m[3],m[4]-m[2]),H=Math.atan2(m[7]-m[3],m[6]-m[2]);b.rotation=A,b.skew.x=H-A-Math.PI/2;break}}}}ChangeInstanceAnime(t,s,e,i,h=null){let a=!1;if(this.animePackName!==null&&this.animeName!==null){let o=this.playerLib.animePackData,n=o.partsLength();for(let f=0;f0){const h=new Float32Array(i-2),a=e.uv(1);for(let l=2;l>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8}writeInt32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeUint32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeInt64(t,s){this.writeInt32(t,Number(BigInt.asIntN(32,s))),this.writeInt32(t+4,Number(BigInt.asIntN(32,s>>BigInt(32))))}writeUint64(t,s){this.writeUint32(t,Number(BigInt.asUintN(32,s))),this.writeUint32(t+4,Number(BigInt.asUintN(32,s>>BigInt(32))))}writeFloat32(t,s){mt[0]=s,this.writeInt32(t,q[0])}writeFloat64(t,s){Ft[0]=s,this.writeInt32(t,q[ft?0:1]),this.writeInt32(t+4,q[ft?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;e--)t.addInt32(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static endpartState(t){return t.endObject()}static createpartState(t,s,e,i,h){return j.startpartState(t),j.addIndex(t,s),j.addFlag1(t,e),j.addFlag2(t,i),j.addData(t,h),j.endpartState(t)}}class et{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsframeDataIndex(t,s){return(s||new et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,s){return t.setPosition(t.position()+C),(s||new et).__init(t.readInt32(t.position())+t.position(),t)}states(t,s){const e=this.bb.__offset(this.bb_pos,4);return e?(s||new j).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,s){t.addFieldOffset(0,s,0)}static createStatesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startStatesVector(t,s){t.startVector(4,s,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,s){return et.startframeDataIndex(t),et.addStates(t,s),et.endframeDataIndex(t)}}class Q{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAslabelDataItem(t,s){return(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,s){return t.setPosition(t.position()+C),(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}label(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,s){t.addFieldOffset(0,s,0)}static addFrameIndex(t,s){t.addFieldInt16(1,s,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,s,e){return Q.startlabelDataItem(t),Q.addLabel(t,s),Q.addFrameIndex(t,e),Q.endlabelDataItem(t)}}class it{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataIndices(t,s){return(s||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,s){return t.setPosition(t.position()+C),(s||new it).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,s){t.addFieldOffset(0,s,0)}static createIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startIndicesVector(t,s){t.startVector(4,s,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,s){return it.startmeshDataIndices(t),it.addIndices(t,s),it.endmeshDataIndices(t)}}class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataUV(t,s){return(s||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,s){return t.setPosition(t.position()+C),(s||new at).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,s){t.addFieldOffset(0,s,0)}static createUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startUvVector(t,s){t.startVector(4,s,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,s){return at.startmeshDataUV(t),at.addUv(t,s),at.endmeshDataUV(t)}}class R{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataItem(t,s){return(s||new R).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,s){return t.setPosition(t.position()+C),(s||new R).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const s=this.bb.__offset(this.bb_pos,8);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,s){t.addFieldInt16(0,s,0)}static addArrayIndex(t,s){t.addFieldInt16(1,s,0)}static addDataType(t,s){t.addFieldOffset(2,s,0)}static createDataTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startDataTypeVector(t,s){t.startVector(1,s,1)}static addData(t,s){t.addFieldOffset(3,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,s,e,i,h){return R.startuserDataItem(t),R.addFlags(t,s),R.addArrayIndex(t,e),R.addDataType(t,i),R.addData(t,h),R.enduserDataItem(t)}}class G{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataPerFrame(t,s){return(s||new G).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,s){return t.setPosition(t.position()+C),(s||new G).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new R).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,s){t.addFieldInt16(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,s,e){return G.startuserDataPerFrame(t),G.addFrameIndex(t,s),G.addData(t,e),G.enduserDataPerFrame(t)}}class y{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimationData(t,s){return(s||new y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,s){return t.setPosition(t.position()+C),(s||new y).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}defaultData(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new _).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?(s||new G).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new Q).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new at).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new it).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,s){t.addFieldOffset(0,s,0)}static addDefaultData(t,s){t.addFieldOffset(1,s,0)}static createDefaultDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDefaultDataVector(t,s){t.startVector(4,s,4)}static addFrameData(t,s){t.addFieldOffset(2,s,0)}static createFrameDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startFrameDataVector(t,s){t.startVector(4,s,4)}static addUserData(t,s){t.addFieldOffset(3,s,0)}static createUserDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startUserDataVector(t,s){t.startVector(4,s,4)}static addLabelData(t,s){t.addFieldOffset(4,s,0)}static createLabelDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startLabelDataVector(t,s){t.startVector(4,s,4)}static addMeshsDataUv(t,s){t.addFieldOffset(5,s,0)}static createMeshsDataUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataUvVector(t,s){t.startVector(4,s,4)}static addMeshsDataIndices(t,s){t.addFieldOffset(6,s,0)}static createMeshsDataIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataIndicesVector(t,s){t.startVector(4,s,4)}static addStartFrames(t,s){t.addFieldInt16(7,s,0)}static addEndFrames(t,s){t.addFieldInt16(8,s,0)}static addTotalFrames(t,s){t.addFieldInt16(9,s,0)}static addFps(t,s){t.addFieldInt16(10,s,0)}static addLabelNum(t,s){t.addFieldInt16(11,s,0)}static addCanvasSizeW(t,s){t.addFieldInt16(12,s,0)}static addCanvasSizeH(t,s){t.addFieldInt16(13,s,0)}static addCanvasPvotX(t,s){t.addFieldFloat32(14,s,0)}static addCanvasPvotY(t,s){t.addFieldFloat32(15,s,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,s,e,i,h,a,o,n,d,r,f,b,u,l,V,m,F){return y.startAnimationData(t),y.addName(t,s),y.addDefaultData(t,e),y.addFrameData(t,i),y.addUserData(t,h),y.addLabelData(t,a),y.addMeshsDataUv(t,o),y.addMeshsDataIndices(t,n),y.addStartFrames(t,d),y.addEndFrames(t,r),y.addTotalFrames(t,f),y.addFps(t,b),y.addLabelNum(t,u),y.addCanvasSizeW(t,l),y.addCanvasSizeH(t,V),y.addCanvasPvotX(t,m),y.addCanvasPvotY(t,F),y.endAnimationData(t)}}var O=(c=>(c[c.Invalid=-1]="Invalid",c[c.Nulltype=0]="Nulltype",c[c.Normal=1]="Normal",c[c.Text=2]="Text",c[c.Instance=3]="Instance",c[c.Armature=4]="Armature",c[c.Effect=5]="Effect",c[c.Mesh=6]="Mesh",c[c.Movenode=7]="Movenode",c[c.Constraint=8]="Constraint",c[c.Mask=9]="Mask",c[c.Joint=10]="Joint",c[c.Bonepoint=11]="Bonepoint",c))(O||{});class x{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsPartData(t,s){return(s||new x).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,s){return t.setPosition(t.position()+C),(s||new x).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):O.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.__string(this.bb_pos+s,t):null}effectfilename(t){const s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__string(this.bb_pos+s,t):null}colorLabel(t){const s=this.bb.__offset(this.bb_pos,20);return s?this.bb.__string(this.bb_pos+s,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,s){t.addFieldOffset(0,s,0)}static addIndex(t,s){t.addFieldInt16(1,s,0)}static addParentIndex(t,s){t.addFieldInt16(2,s,0)}static addType(t,s){t.addFieldInt8(3,s,O.Nulltype)}static addBoundsType(t,s){t.addFieldInt16(4,s,0)}static addAlphaBlendType(t,s){t.addFieldInt16(5,s,0)}static addRefname(t,s){t.addFieldOffset(6,s,0)}static addEffectfilename(t,s){t.addFieldOffset(7,s,0)}static addColorLabel(t,s){t.addFieldOffset(8,s,0)}static addMaskInfluence(t,s){t.addFieldInt16(9,s,0)}static endPartData(t){return t.endObject()}static createPartData(t,s,e,i,h,a,o,n,d,r,f){return x.startPartData(t),x.addName(t,s),x.addIndex(t,e),x.addParentIndex(t,i),x.addType(t,h),x.addBoundsType(t,a),x.addAlphaBlendType(t,o),x.addRefname(t,n),x.addEffectfilename(t,d),x.addColorLabel(t,r),x.addMaskInfluence(t,f),x.endPartData(t)}}class K{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimePackData(t,s){return(s||new K).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,s){return t.setPosition(t.position()+C),(s||new K).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}parts(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new y).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,s){t.addFieldOffset(0,s,0)}static addParts(t,s){t.addFieldOffset(1,s,0)}static createPartsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startPartsVector(t,s){t.startVector(4,s,4)}static addAnimations(t,s){t.addFieldOffset(2,s,0)}static createAnimationsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimationsVector(t,s){t.startVector(4,s,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,s,e,i){return K.startAnimePackData(t),K.addName(t,s),K.addParts(t,e),K.addAnimations(t,i),K.endAnimePackData(t)}}class Y{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCellMap(t,s){return(s||new Y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,s){return t.setPosition(t.position()+C),(s||new Y).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}imagePath(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,s){t.addFieldOffset(0,s,0)}static addImagePath(t,s){t.addFieldOffset(1,s,0)}static addIndex(t,s){t.addFieldInt16(2,s,0)}static addWrapmode(t,s){t.addFieldInt16(3,s,0)}static addFiltermode(t,s){t.addFieldInt16(4,s,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,s,e,i,h,a){return Y.startCellMap(t),Y.addName(t,s),Y.addImagePath(t,e),Y.addIndex(t,i),Y.addWrapmode(t,h),Y.addFiltermode(t,a),Y.endCellMap(t)}}class lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCell(t,s){return(s||new lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,s){return t.setPosition(t.position()+C),(s||new lt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}cellMap(t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new Y).__init(this.bb.__indirect(this.bb_pos+s),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,s){t.addFieldOffset(0,s,0)}static addCellMap(t,s){t.addFieldOffset(1,s,0)}static addIndexInCellMap(t,s){t.addFieldInt16(2,s,0)}static addX(t,s){t.addFieldInt16(3,s,0)}static addY(t,s){t.addFieldInt16(4,s,0)}static addWidth(t,s){t.addFieldInt16(5,s,0)}static addHeight(t,s){t.addFieldInt16(6,s,0)}static addPivotX(t,s){t.addFieldFloat32(7,s,0)}static addPivotY(t,s){t.addFieldFloat32(8,s,0)}static addU1(t,s){t.addFieldFloat32(9,s,0)}static addV1(t,s){t.addFieldFloat32(10,s,0)}static addU2(t,s){t.addFieldFloat32(11,s,0)}static addV2(t,s){t.addFieldFloat32(12,s,0)}static endCell(t){return t.endObject()}}class L{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectNode(t,s){return(s||new L).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,s){return t.setPosition(t.position()+C),(s||new L).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,s){t.addFieldInt16(0,s,0)}static addParentIndex(t,s){t.addFieldInt16(1,s,0)}static addType(t,s){t.addFieldInt16(2,s,0)}static addCellIndex(t,s){t.addFieldInt16(3,s,0)}static addBlendType(t,s){t.addFieldInt16(4,s,0)}static addNumBehavior(t,s){t.addFieldInt16(5,s,0)}static addBehaviorType(t,s){t.addFieldOffset(6,s,0)}static createBehaviorTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startBehaviorTypeVector(t,s){t.startVector(1,s,1)}static addBehavior(t,s){t.addFieldOffset(7,s,0)}static createBehaviorVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startBehaviorVector(t,s){t.startVector(4,s,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,s,e,i,h,a,o,n,d){return L.startEffectNode(t),L.addArrayIndex(t,s),L.addParentIndex(t,e),L.addType(t,i),L.addCellIndex(t,h),L.addBlendType(t,a),L.addNumBehavior(t,o),L.addBehaviorType(t,n),L.addBehavior(t,d),L.endEffectNode(t)}}class w{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectFile(t,s){return(s||new w).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,s){return t.setPosition(t.position()+C),(s||new w).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?(s||new L).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,s){t.addFieldOffset(0,s,0)}static addFps(t,s){t.addFieldInt16(1,s,0)}static addIsLockRandSeed(t,s){t.addFieldInt16(2,s,0)}static addLockRandSeed(t,s){t.addFieldInt16(3,s,0)}static addLayoutScaleX(t,s){t.addFieldInt16(4,s,0)}static addLayoutScaleY(t,s){t.addFieldInt16(5,s,0)}static addNumNodeList(t,s){t.addFieldInt16(6,s,0)}static addEffectNode(t,s){t.addFieldOffset(7,s,0)}static createEffectNodeVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectNodeVector(t,s){t.startVector(4,s,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,s,e,i,h,a,o,n,d){return w.startEffectFile(t),w.addName(t,s),w.addFps(t,e),w.addIsLockRandSeed(t,i),w.addLockRandSeed(t,h),w.addLayoutScaleX(t,a),w.addLayoutScaleY(t,o),w.addNumNodeList(t,n),w.addEffectNode(t,d),w.endEffectFile(t)}}var p=(c=>(c[c.INVISIBLE=1]="INVISIBLE",c[c.FLIP_H=2]="FLIP_H",c[c.FLIP_V=4]="FLIP_V",c[c.CELL_INDEX=8]="CELL_INDEX",c[c.POSITION_X=16]="POSITION_X",c[c.POSITION_Y=32]="POSITION_Y",c[c.POSITION_Z=64]="POSITION_Z",c[c.PIVOT_X=128]="PIVOT_X",c[c.PIVOT_Y=256]="PIVOT_Y",c[c.ROTATIONX=512]="ROTATIONX",c[c.ROTATIONY=1024]="ROTATIONY",c[c.ROTATIONZ=2048]="ROTATIONZ",c[c.SCALE_X=4096]="SCALE_X",c[c.SCALE_Y=8192]="SCALE_Y",c[c.LOCALSCALE_X=16384]="LOCALSCALE_X",c[c.LOCALSCALE_Y=32768]="LOCALSCALE_Y",c[c.OPACITY=65536]="OPACITY",c[c.LOCALOPACITY=131072]="LOCALOPACITY",c[c.PARTS_COLOR=262144]="PARTS_COLOR",c[c.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",c[c.SIZE_X=1048576]="SIZE_X",c[c.SIZE_Y=2097152]="SIZE_Y",c[c.U_MOVE=4194304]="U_MOVE",c[c.V_MOVE=8388608]="V_MOVE",c[c.UV_ROTATION=16777216]="UV_ROTATION",c[c.U_SCALE=33554432]="U_SCALE",c[c.V_SCALE=67108864]="V_SCALE",c[c.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",c[c.MASK=268435456]="MASK",c[c.PRIORITY=536870912]="PRIORITY",c[c.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",c[c.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",c))(p||{}),gt=(c=>(c[c.MESHDATA=1]="MESHDATA",c))(gt||{});class D{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsProjectData(t,s){return(s||new D).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,s){return t.setPosition(t.position()+C),(s||new D).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__string(this.bb_pos+s,t):null}cells(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new K).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new w).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,s){t.addFieldInt32(0,s,0)}static addVersion(t,s){t.addFieldInt32(1,s,0)}static addFlags(t,s){t.addFieldInt32(2,s,0)}static addImageBaseDir(t,s){t.addFieldOffset(3,s,0)}static addCells(t,s){t.addFieldOffset(4,s,0)}static createCellsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startCellsVector(t,s){t.startVector(4,s,4)}static addAnimePacks(t,s){t.addFieldOffset(5,s,0)}static createAnimePacksVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimePacksVector(t,s){t.startVector(4,s,4)}static addEffectFileList(t,s){t.addFieldOffset(6,s,0)}static createEffectFileListVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectFileListVector(t,s){t.startVector(4,s,4)}static addNumCells(t,s){t.addFieldInt16(7,s,0)}static addNumAnimePacks(t,s){t.addFieldInt16(8,s,0)}static addNumEffectFileList(t,s){t.addFieldInt16(9,s,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,s){t.finish(s,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,s){t.finish(s,"SSFB",!0)}static createProjectData(t,s,e,i,h,a,o,n,d,r,f){return D.startProjectData(t),D.addDataId(t,s),D.addVersion(t,e),D.addFlags(t,i),D.addImageBaseDir(t,h),D.addCells(t,a),D.addAnimePacks(t,o),D.addEffectFileList(t,n),D.addNumCells(t,d),D.addNumAnimePacks(t,r),D.addNumEffectFileList(t,f),D.endProjectData(t)}}class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,s){return t.prep(4,4),t.writeInt32(s),t.offset()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,s,e){return t.prep(4,8),t.writeInt32(e),t.writeInt32(s),t.offset()}}class bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,s,e,i,h){return t.prep(4,16),t.writeInt32(h),t.writeInt32(i),t.writeInt32(e),t.writeInt32(s),t.offset()}}class Z{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataString(t,s){return(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,s){return t.setPosition(t.position()+C),(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,s){t.addFieldInt32(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,s,e){return Z.startuserDataString(t),Z.addLength(t,s),Z.addData(t,e),Z.enduserDataString(t)}}let Ct=class{static getProjectData(t){const s=new ut(t);return D.getRootAsProjectData(s)}};class It{static getProjectData(t){return Ct.getProjectData(t)}}class nt{constructor(t,s=null,e=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=It.getProjectData(t),s!==null&&e!==null&&this.Setup(s,e)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,s){this.clearCaches();const e=this._fbObj.animePacksLength();let i=!1;for(let h=0;h>>0,r.colorBlendType===1&&(r.tint=r.colorArgb32&16777215)}}if(d>.MESHDATA){const b=this.curAnimation.meshsDataUv(o);r.meshIsBind=b.uv(0),r.meshNum=b.uv(1);let u=new Float32Array(r.meshNum*3);for(let l=0;l=0&&(t=this.InheritOpacity(t,this._parentIndex[s],e)),t}TransformVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformMeshVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPositionLocal(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX*i.localscaleX,d=t[1]*i.scaleY*i.localscaleY;return t[2]*=i.scaleX*i.localscaleX,t[3]*=i.scaleY*i.localscaleY,t[0]=a*n-o*d+i.positionX,t[1]=o*n+a*d-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static CoordinateGetDiagonalIntersection(t,s,e,i,h,a,o,n,d,r,f){const b=(n-a)*(o-e)-(o-h)*(n-i),u=(d-e)*(n-i)-(r-i)*(o-e),l=(d-e)*(n-a)-(r-i)*(o-h);if(l<=0&&l>=0)return f;const V=b/l,m=u/l;return 0<=V&&1>=V&&0<=m&&1>=m&&(t=e+V*(d-e),s=i+V*(r-i)),f[0]=t,f[1]=s,f}TransformVerts(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPosition(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX,d=t[1]*i.scaleY;return t[2]*=i.scaleX,t[3]*=i.scaleY,t[0]=a*n-o*d+i.positionX,t[1]=o*n+a*d-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static GetVerts(t,s,e){const i=s.size_X/2,h=s.size_Y/2,a=s.size_X*-(s.pivotX+t.pivotX()),o=s.size_Y*(s.pivotY+t.pivotY());return e.set([a,o,a-i,o-h,a+i,o-h,a-i,o+h,a+i,o+h]),e}static GetMeshVerts(t,s,e){for(let i=0;i{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}unload(t,s,e){S.Assets.unloadBundle(t).then(()=>{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}texture(t){return S.Assets.get(t)}}class Dt{constructor(){this.loader=new xt}load(t,s,e){return this.loader.load(t,s,e)}unload(t,s,e=null){return this.loader.unload(t,s,e)}texture(t){return this.loader.texture(t)}}class St{constructor(t,s,e,i){if(this.sspjMap={},this.resourceLoader=new Dt,typeof t=="string"&&e===void 0){let h=t;this.ssfbPath=h;const a=h.lastIndexOf("/");this.rootPath=h.substring(0,a)+"/",this.ssfbFile=h.substring(a+1),this.onComplete=s===void 0?null:s,this.status=0,this.LoadFlatBuffersProject()}else if(typeof s=="object"&&s.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let h=s,a=e;this.onComplete=i===void 0?null:i,this.load(h,a)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,s=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(s=>s.ok?Promise.resolve(s.arrayBuffer()):Promise.reject(new Error(s.statusText))).then(s=>{t.fbObj=It.getProjectData(new Uint8Array(s)),t.LoadCellResources()}).catch(s=>{this.onComplete!==null&&this.onComplete(null,s)})}LoadCellResources(){let t=[];this.sspjMap={};for(let e=0;e{e===null?(s.status=1,s.onComplete!==null&&s.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,e)})}load(t,s){this.fbObj=It.getProjectData(t);let e={};for(let h in s){const a=s[h];let o="";const n=a.byteLength;for(let d=0;d{h===null?(i.status=1,i.onComplete!==null&&i.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,h)})}}class Vt{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class _t extends S.Container{constructor(t,s=null,e=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.changeCellID=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new S.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.isRenderGroup=!0,this.ss6project=t,this.playerLib=new nt(t.fbObj,s,e),this.parentAlpha=1,s!==null&&e!==null&&this.Setup(s,e),this.on("added",(...i)=>{S.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...i)=>{S.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,s){this.playerLib.Setup(t,s),this.clearCaches();const e=this.playerLib.animePackData,i=e.partsLength();this.prevCellID=new Array(i),this.prevPartObject=new Array(i),this.changeCellID=new Array(i),this.substituteOverWrite=new Array(i),this.substituteKeyParam=new Array(i);for(let h=0;h=this.updateInterval){let h=!1;const a=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*a;let o=this.skipEnabled?a*this.playDirection:this.playDirection,n=this._currentFrame+o,d=Math.floor(n),r=n-d,f=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let b=d-f;b;b--){let u=f+1;if(u>this._endFrame)if(this._loops===-1)u=this._startFrame;else if(this._loops--,h=!0,this._loops===0){this._isPlaying=!1,u=s?this._startFrame:this._endFrame;break}else u=this._startFrame;f=u,this._isPlaying&&this.playerLib.HaveUserData(f)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(f))}if(this.playDirection<=-1)for(let b=f-d;b;b--){let u=f-1;if(u0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=s)}SetAnimationSection(t=-1,s=-1,e=-1){t>=0&&t=0&&s0?this._loops=e:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let s=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(s=t),this._currentFrame=s,this.resetLiveFrame();const e=Math.floor(this._currentFrame);this.SetFrameAnimation(e),this.playerLib.HaveUserData(e)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(e))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),s=this.endFrame;t!==s&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}SetPartCell(t,s,e){if(this.playerLib.animationData){let i=-1;if(s!==""&&e!==""){const o=this.playerLib.fbObj,n=this.playerLib.fbObj.numCells();for(let d=0;d>>24)/255,o=((e&16711680)>>>16)/255,n=((e&65280)>>>8)/255,d=(e&255)/255;if(t===0){const r=1-s;h.matrix=[r,0,0,0,o*s,0,r,0,0,n*s,0,0,r,0,d*s,0,0,0,1,0]}else t===1?h.matrix=[o,0,0,0,0,0,n,0,0,0,0,0,d,0,0,0,0,0,a,0]:t===2?h.matrix=[1,0,0,0,o,0,1,0,0,n,0,0,1,0,d,0,0,0,a,0]:t===3&&(h.matrix=[1,0,0,0,-o,0,1,0,0,-n,0,0,1,0,-d,0,0,0,a,0]);return this.colorMatrixFilterCache[i]=h,h}SetFrameAnimation(t,s=0){const e=this.playerLib.GetFrameData(t);this.removeChildren();const i=e.length;for(let h=0;h=0&&this.prevCellID[a]!==n&&(d?.destroy(),d=this.MakeCellMesh(n),d.label=r.name());break;case O.Mesh:n>=0&&this.prevCellID[a]!==n&&(d?.destroy(),d=this.MakeMeshCellMesh(a,n),d.label=r.name());break;case O.Nulltype:case O.Joint:this.prevCellID[a]!==n&&(d?.destroy(),d=new S.Container,d.label=r.name());break;default:n>=0&&this.prevCellID[a]!==n&&(d?.destroy(),d=this.MakeCellMesh(n),d.label=r.name());break}if(d!=null)switch(this.prevCellID[a]=n,this.prevPartObject[a]=d,f){case O.Instance:{const l=d;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,o.index,t),l.rotation=this._instancePos[4]*Math.PI/180,l.position.set(this._instancePos[0],this._instancePos[1]),l.scale.set(this._instancePos[2],this._instancePos[3]);let V=o.opacity/255;o.localopacity<255&&(V=o.localopacity/255),l.SetAlpha(V*this.parentAlpha),l.visible=!o.f_hide;let m=o.instanceValue_curKeyframe,F=o.instanceValue_startFrame,I=o.instanceValue_endFrame,A=o.instanceValue_speed,H=o.instanceValue_loopNum,tt=!1,U=!1,v=!1,X=!1;const W=1,J=2,M=4,P=8,E=o.instanceValue_loopflag;E&W&&(tt=!0),E&J&&(U=!0),E&M&&(v=!0),E&P&&(X=!0),b&&(F=u.refStartframe,I=u.refEndframe,A=u.refSpeed,H=u.refloopNum,tt=u.infinity,U=u.reverse,v=u.pingpong,X=u.independent),(l._startFrame!==F||l._endFrame!==I)&&l.SetAnimationSection(F,I);let k=t;X===!0&&(this.liveFrame[h]+=s,k=Math.floor(this.liveFrame[h]));const st=m;let g=Math.floor((k-st)*A);if(g<0||st>k)continue;const B=I-F+1;if(B<=0)continue;let N=Math.floor(g/B),T=H;v&&(T=T*2),tt||N>=T&&(g=B-1,N=T-1);const $=Math.floor(g%B);let z=0;v&&N%2===1&&(U?U=!1:U=!0),this.playDirection<=-1&&(U=!U),U?z=I-$:z=$+F,l.SetFrame(Math.floor(z)),this.addChild(l);break}case O.Normal:case O.Mesh:case O.Joint:case O.Mask:{const l=d,V=l.geometry.attributes.aPosition.buffer;let m=V.data;const F=this.playerLib.fbObj.cells(n);let I;if(f===O.Mesh?o.meshIsBind===0?I=this.playerLib.TransformMeshVertsLocal(nt.GetMeshVerts(F,o,m),o.index,t):I=nt.GetMeshVerts(F,o,m):(I=f===O.Joint?new Float32Array(10):m,I=this.playerLib.TransformVertsLocal(nt.GetVerts(F,o,I),o.index,t)),o.flag1&p.VERTEX_TRANSFORM){const v=I[6],X=I[3*2+1],W=I[1*2+0],J=I[1*2+1],M=I[4*2+0],P=I[4*2+1],E=I[2*2+0],k=I[2*2+1],st=(v+M)*.5,g=(X+P)*.5,B=(v+W)*.5,N=(X+J)*.5,T=(W+E)*.5,$=(J+k)*.5,z=(M+E)*.5,ot=(P+k)*.5,rt=nt.CoordinateGetDiagonalIntersection(I[0],I[1],st,g,z,ot,B,N,T,$,this._CoordinateGetDiagonalIntersectionVec2);I[0]=rt[0],I[1]=rt[1]}const A=I[0],H=I[1];for(let v=0;v>>24)/255;l.alpha=l.alpha*v}const U=this.alphaBlendType[a];(U==="multiply"||U==="screen")&&(l.alpha=1),f!==O.Mask&&this.addChild(l);break}case O.Nulltype:{const l=d,V=this.playerLib.InheritOpacity(1,o.index,t);l.alpha=V*o.localopacity/255;const m=this.playerLib.TransformVerts(nt.GetDummyVerts(),o.index,t),F=m[0],I=m[1];l.position.set(F,I);const A=Math.atan2(m[5]-m[3],m[4]-m[2]),H=Math.atan2(m[7]-m[3],m[6]-m[2]);l.rotation=A,l.skew.x=H-A-Math.PI/2;break}}}}ChangeInstanceAnime(t,s,e,i,h=null){let a=!1;if(this.animePackName!==null&&this.animeName!==null){let o=this.playerLib.animePackData,n=o.partsLength();for(let d=0;d0){const h=new Float32Array(i-2),a=e.uv(1);for(let b=2;b= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3090,6 +3061,7 @@ this.prevCellID = []; // 各パーツ(レイヤー)で前回使用したセルID this.prevPartObject = []; + this.changeCellID = []; // for change instance this.substituteOverWrite = []; this.substituteKeyParam = []; @@ -3156,12 +3128,14 @@ const partsLength = animePackData.partsLength(); this.prevCellID = new Array(partsLength); this.prevPartObject = new Array(partsLength); + this.changeCellID = new Array(partsLength); this.substituteOverWrite = new Array(partsLength); this.substituteKeyParam = new Array(partsLength); for (let j = 0; j < partsLength; j++) { const index = animePackData.parts(j).index(); this.prevCellID[index] = -1; this.prevPartObject[index] = null; + this.changeCellID[index] = -1; this.substituteOverWrite[index] = null; this.substituteKeyParam[index] = null; } @@ -3279,8 +3253,7 @@ * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3290,8 +3263,7 @@ * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3424,6 +3396,45 @@ SetPlayEndCallback(fn) { this.playEndCallback = fn; } + /** + * パーツに割り当たるセルを変更します. + * + * @param {string} partsname - パーツ名 + * @param {string} sscename - セルマップ名 + * @param {string} cellname - 表示させたいセル名 + * + * @return {void} + */ + SetPartCell(partsname, sscename, cellname) { + if (this.playerLib.animationData) { + let changeCellIndex = -1; + if (sscename !== "" && cellname !== "") { + const fbObj = this.playerLib.fbObj; + const numCells = this.playerLib.fbObj.numCells(); + for (let i = 0; i < numCells; i++) { + const cell = fbObj.cells(i); + const name1 = cell.name(); + const cellMap = cell.cellMap(); + const name2 = cellMap.name(); + if (cellname === name1 && sscename === name2) { + changeCellIndex = i; + break; + } + } + } + const animePackData = this.playerLib.animePackData; + const partsLength = animePackData.partsLength(); + for (let i = 0; i < partsLength; i++) { + const part = animePackData.parts(i); + const index = part.index(); + const partName = part.name(); + if (partName === partsname) { + this.changeCellID[index] = changeCellIndex; + break; + } + } + } + } /** * パーツの描画モードを取得する * @return {array} - 全パーツの描画モード @@ -3477,8 +3488,7 @@ */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new pixi_js.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3593,7 +3603,10 @@ for (let ii = 0; ii < l; ii = ii + 1 | 0) { const i = this.playerLib.prio2index[ii]; const data = fd[i]; - const cellID = data.cellIndex; + let cellID = data.cellIndex; + if (this.changeCellID[i] !== -1) { + cellID = this.changeCellID[i]; + } let partObject = this.prevPartObject[i]; const part = this.playerLib.animePackData.parts(i); const partType = part.type(); @@ -3609,16 +3622,14 @@ case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.label = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.label = part.name(); } @@ -3626,23 +3637,20 @@ case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new pixi_js.Container(); partObject.label = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.label = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3709,17 +3717,13 @@ } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3851,8 +3855,7 @@ if (blendMode === "multiply" || blendMode === "screen") { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { diff --git a/docs/Player6/ss6player-pixi6.min.js b/docs/Player6/ss6player-pixi6.min.js index 15e0448..ea5deb9 100644 --- a/docs/Player6/ss6player-pixi6.min.js +++ b/docs/Player6/ss6player-pixi6.min.js @@ -1,6 +1,6 @@ /** * ----------------------------------------------------------- - * SS6Player For pixi.js v6 v1.0.2 + * SS6Player For pixi.js v6 v1.0.3 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ diff --git a/docs/Player6/ss6player-pixi6.umd.js b/docs/Player6/ss6player-pixi6.umd.js index 40ba7ea..9bcd163 100644 --- a/docs/Player6/ss6player-pixi6.umd.js +++ b/docs/Player6/ss6player-pixi6.umd.js @@ -1,6 +1,6 @@ /** * ----------------------------------------------------------- - * SS6Player For pixi.js v6 v1.0.2 + * SS6Player For pixi.js v6 v1.0.3 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ @@ -2461,62 +2461,34 @@ fd.flag1 = f1; fd.flag2 = f2; let id = 0; - if (f1 & PART_FLAG.INVISIBLE) - fd.f_hide = true; - if (f1 & PART_FLAG.FLIP_H) - fd.f_flipH = true; - if (f1 & PART_FLAG.FLIP_V) - fd.f_flipV = true; - if (f1 & PART_FLAG.CELL_INDEX) - fd.cellIndex = curPartState.data(id++); - if (f1 & PART_FLAG.POSITION_X) - fd.positionX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Y) - fd.positionY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Z) - id++; - if (f1 & PART_FLAG.PIVOT_X) - fd.pivotX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.PIVOT_Y) - fd.pivotY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.ROTATIONX) - id++; - if (f1 & PART_FLAG.ROTATIONY) - id++; - if (f1 & PART_FLAG.ROTATIONZ) - fd.rotationZ = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_X) - fd.scaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_Y) - fd.scaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_X) - fd.localscaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_Y) - fd.localscaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.OPACITY) - fd.opacity = curPartState.data(id++); - if (f1 & PART_FLAG.LOCALOPACITY) - fd.localopacity = curPartState.data(id++); - if (f1 & PART_FLAG.SIZE_X) - fd.size_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SIZE_Y) - fd.size_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_MOVE) - fd.uv_move_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_MOVE) - fd.uv_move_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.UV_ROTATION) - fd.uv_rotation = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_SCALE) - fd.uv_scale_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_SCALE) - fd.uv_scale_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.BOUNDINGRADIUS) - id++; - if (f1 & PART_FLAG.MASK) - fd.masklimen = curPartState.data(id++); - if (f1 & PART_FLAG.PRIORITY) - fd.priority = curPartState.data(id++); + if (f1 & PART_FLAG.INVISIBLE) fd.f_hide = true; + if (f1 & PART_FLAG.FLIP_H) fd.f_flipH = true; + if (f1 & PART_FLAG.FLIP_V) fd.f_flipV = true; + if (f1 & PART_FLAG.CELL_INDEX) fd.cellIndex = curPartState.data(id++); + if (f1 & PART_FLAG.POSITION_X) fd.positionX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Y) fd.positionY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Z) id++; + if (f1 & PART_FLAG.PIVOT_X) fd.pivotX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.PIVOT_Y) fd.pivotY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.ROTATIONX) id++; + if (f1 & PART_FLAG.ROTATIONY) id++; + if (f1 & PART_FLAG.ROTATIONZ) fd.rotationZ = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_X) fd.scaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_Y) fd.scaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_X) fd.localscaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_Y) fd.localscaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.OPACITY) fd.opacity = curPartState.data(id++); + if (f1 & PART_FLAG.LOCALOPACITY) fd.localopacity = curPartState.data(id++); + if (f1 & PART_FLAG.SIZE_X) fd.size_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SIZE_Y) fd.size_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_MOVE) fd.uv_move_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_MOVE) fd.uv_move_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.UV_ROTATION) fd.uv_rotation = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_SCALE) fd.uv_scale_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_SCALE) fd.uv_scale_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.BOUNDINGRADIUS) id++; + if (f1 & PART_FLAG.MASK) fd.masklimen = curPartState.data(id++); + if (f1 & PART_FLAG.PRIORITY) fd.priority = curPartState.data(id++); if (f1 & PART_FLAG.INSTANCE_KEYFRAME) { fd.instanceValue_curKeyframe = curPartState.data(id++); fd.instanceValue_startFrame = curPartState.data(id++); @@ -2791,8 +2763,7 @@ const c1 = (LDy - RUy) * (LDx - LUx) - (LDx - RUx) * (LDy - LUy); const c2 = (RDx - LUx) * (LDy - LUy) - (RDy - LUy) * (LDx - LUx); const c3 = (RDx - LUx) * (LDy - RUy) - (RDy - LUy) * (LDx - RUx); - if (c3 <= 0 && c3 >= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3275,8 +3246,7 @@ * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3286,8 +3256,7 @@ * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3473,8 +3442,7 @@ */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new filterColorMatrix.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3605,16 +3573,14 @@ case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.name = part.name(); } @@ -3622,23 +3588,20 @@ case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new display.Container(); partObject.name = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3705,17 +3668,13 @@ } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3847,8 +3806,7 @@ if (blendMode === constants.BLEND_MODES.MULTIPLY || blendMode === constants.BLEND_MODES.SCREEN) { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { diff --git a/docs/ViewerPlayer/player.html b/docs/ViewerPlayer/player.html index d0b5eb3..6c59c42 100644 --- a/docs/ViewerPlayer/player.html +++ b/docs/ViewerPlayer/player.html @@ -10,7 +10,7 @@ SpriteStudio Web Player - + diff --git a/docs/ViewerPlayer/ss6player-viewer.min.js b/docs/ViewerPlayer/ss6player-viewer.min.js index 6607819..bea9c7d 100644 --- a/docs/ViewerPlayer/ss6player-viewer.min.js +++ b/docs/ViewerPlayer/ss6player-viewer.min.js @@ -1,13 +1,13 @@ /** * ----------------------------------------------------------- - * SS6Player For Viewer v1.5.0 + * SS6Player For Viewer v1.5.1 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ * ----------------------------------------------------------- */ -var ss6PlayerViewer=function(Ae,wt){"use strict";const be=[5,10,15,20,25,50,75,100,150,200,300,400,800];class Me extends wt.Container{constructor(){super(),this.rootLineGraphics=null,this.gridGraphics=null,this.defaultScaleRatio=null,this.zoomPercent=null,this.isDisplayGrid=!1;const t=new wt.Graphics,e=new wt.Graphics;this.addChild(t),this.addChild(e),this.rootLineGraphics=t,this.gridGraphics=e}setDefaultScaleRatio(t){this.defaultScaleRatio=t}setPosition(t,e){this.position.set(t,e)}movePosition(t,e){const r=this.position;r.x+=t,r.y+=e,this.position=r}zoom(t){let e=this.defaultScaleRatio;t!==100&&(e=this.defaultScaleRatio*(t*.01)),this.zoomPercent=t,this.scale.set(e,e)}zoomIn(){const e=be.indexOf(this.zoomPercent)+1;if(e>=be.length)return;const r=be[e];this.zoom(r)}zoomOut(){const e=be.indexOf(this.zoomPercent)-1;if(e<0)return;const r=be[e];this.zoom(r)}switchGridDisplay(){const t=this.rootLineGraphics,e=this.gridGraphics;if(!(t==null||e==null)&&(t.clear(),e.clear(),this.isDisplayGrid=!this.isDisplayGrid,this.isDisplayGrid)){t.lineStyle(1,0),t.alpha=.3,t.moveTo(-5e3,0).lineTo(5001,0),t.moveTo(0,-5e3).lineTo(0,5001),e.lineStyle(1,0),e.alpha=.1;let l=100;for(let a=-5e3;a<5001;a+=l)e.moveTo(a,-5e3).lineTo(a,5001);for(let a=-5e3;a<5001;a+=l)e.moveTo(-5e3,-a).lineTo(5001,-a)}}}class Be{}const me=4,ve=4,Ft=4,ee=new Int32Array(2),Pe=new Float32Array(ee.buffer),Te=new Float64Array(ee.buffer),ge=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Ee;(function(L){L[L.UTF8_BYTES=1]="UTF8_BYTES",L[L.UTF16_STRING=2]="UTF16_STRING"})(Ee||(Ee={}));class Oe{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new Oe(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){Pe[0]=e,this.writeInt32(t,ee[0])}writeFloat64(t,e){Te[0]=e,this.writeInt32(t,ee[ge?0:1]),this.writeInt32(t+4,ee[ge?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;r--)t.addInt32(e[r]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static endpartState(t){return t.endObject()}static createpartState(t,e,r,s,l){return Ht.startpartState(t),Ht.addIndex(t,e),Ht.addFlag1(t,r),Ht.addFlag2(t,s),Ht.addData(t,l),Ht.endpartState(t)}}class oe{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsframeDataIndex(t,e){return(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,e){return t.setPosition(t.position()+Ft),(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}states(t,e){const r=this.bb.__offset(this.bb_pos,4);return r?(e||new Ht).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,e){t.addFieldOffset(0,e,0)}static createStatesVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startStatesVector(t,e){t.startVector(4,e,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,e){return oe.startframeDataIndex(t),oe.addStates(t,e),oe.endframeDataIndex(t)}}class ie{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAslabelDataItem(t,e){return(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,e){return t.setPosition(t.position()+Ft),(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}label(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,e){t.addFieldOffset(0,e,0)}static addFrameIndex(t,e){t.addFieldInt16(1,e,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,e,r){return ie.startlabelDataItem(t),ie.addLabel(t,e),ie.addFrameIndex(t,r),ie.endlabelDataItem(t)}}class fe{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataIndices(t,e){return(e||new fe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,e){return t.setPosition(t.position()+Ft),(e||new fe).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,e){t.addFieldOffset(0,e,0)}static createIndicesVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addFloat32(e[r]);return t.endVector()}static startIndicesVector(t,e){t.startVector(4,e,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,e){return fe.startmeshDataIndices(t),fe.addIndices(t,e),fe.endmeshDataIndices(t)}}class le{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataUV(t,e){return(e||new le).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,e){return t.setPosition(t.position()+Ft),(e||new le).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,e){t.addFieldOffset(0,e,0)}static createUvVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addFloat32(e[r]);return t.endVector()}static startUvVector(t,e){t.startVector(4,e,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,e){return le.startmeshDataUV(t),le.addUv(t,e),le.endmeshDataUV(t)}}class Kt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataItem(t,e){return(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,e){return t.setPosition(t.position()+Ft),(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,e){const r=this.bb.__offset(this.bb_pos,10);return r?this.bb.__union(e,this.bb.__vector(this.bb_pos+r)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,e){t.addFieldInt16(0,e,0)}static addArrayIndex(t,e){t.addFieldInt16(1,e,0)}static addDataType(t,e){t.addFieldOffset(2,e,0)}static createDataTypeVector(t,e){t.startVector(1,e.length,1);for(let r=e.length-1;r>=0;r--)t.addInt8(e[r]);return t.endVector()}static startDataTypeVector(t,e){t.startVector(1,e,1)}static addData(t,e){t.addFieldOffset(3,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,e,r,s,l){return Kt.startuserDataItem(t),Kt.addFlags(t,e),Kt.addArrayIndex(t,r),Kt.addDataType(t,s),Kt.addData(t,l),Kt.enduserDataItem(t)}}class re{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataPerFrame(t,e){return(e||new re).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,e){return t.setPosition(t.position()+Ft),(e||new re).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,e){const r=this.bb.__offset(this.bb_pos,6);return r?(e||new Kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,e){t.addFieldInt16(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,e,r){return re.startuserDataPerFrame(t),re.addFrameIndex(t,e),re.addData(t,r),re.enduserDataPerFrame(t)}}class pt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimationData(t,e){return(e||new pt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,e){return t.setPosition(t.position()+Ft),(e||new pt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}defaultData(t,e){const r=this.bb.__offset(this.bb_pos,6);return r?(e||new et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,e){const r=this.bb.__offset(this.bb_pos,8);return r?(e||new oe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,e){const r=this.bb.__offset(this.bb_pos,10);return r?(e||new re).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,e){const r=this.bb.__offset(this.bb_pos,12);return r?(e||new ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,e){const r=this.bb.__offset(this.bb_pos,14);return r?(e||new le).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,e){const r=this.bb.__offset(this.bb_pos,16);return r?(e||new fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,e){t.addFieldOffset(0,e,0)}static addDefaultData(t,e){t.addFieldOffset(1,e,0)}static createDefaultDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startDefaultDataVector(t,e){t.startVector(4,e,4)}static addFrameData(t,e){t.addFieldOffset(2,e,0)}static createFrameDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startFrameDataVector(t,e){t.startVector(4,e,4)}static addUserData(t,e){t.addFieldOffset(3,e,0)}static createUserDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startUserDataVector(t,e){t.startVector(4,e,4)}static addLabelData(t,e){t.addFieldOffset(4,e,0)}static createLabelDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startLabelDataVector(t,e){t.startVector(4,e,4)}static addMeshsDataUv(t,e){t.addFieldOffset(5,e,0)}static createMeshsDataUvVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startMeshsDataUvVector(t,e){t.startVector(4,e,4)}static addMeshsDataIndices(t,e){t.addFieldOffset(6,e,0)}static createMeshsDataIndicesVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startMeshsDataIndicesVector(t,e){t.startVector(4,e,4)}static addStartFrames(t,e){t.addFieldInt16(7,e,0)}static addEndFrames(t,e){t.addFieldInt16(8,e,0)}static addTotalFrames(t,e){t.addFieldInt16(9,e,0)}static addFps(t,e){t.addFieldInt16(10,e,0)}static addLabelNum(t,e){t.addFieldInt16(11,e,0)}static addCanvasSizeW(t,e){t.addFieldInt16(12,e,0)}static addCanvasSizeH(t,e){t.addFieldInt16(13,e,0)}static addCanvasPvotX(t,e){t.addFieldFloat32(14,e,0)}static addCanvasPvotY(t,e){t.addFieldFloat32(15,e,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,e,r,s,l,a,h,n,m,c,_,g,v,F,C,o,u){return pt.startAnimationData(t),pt.addName(t,e),pt.addDefaultData(t,r),pt.addFrameData(t,s),pt.addUserData(t,l),pt.addLabelData(t,a),pt.addMeshsDataUv(t,h),pt.addMeshsDataIndices(t,n),pt.addStartFrames(t,m),pt.addEndFrames(t,c),pt.addTotalFrames(t,_),pt.addFps(t,g),pt.addLabelNum(t,v),pt.addCanvasSizeW(t,F),pt.addCanvasSizeH(t,C),pt.addCanvasPvotX(t,o),pt.addCanvasPvotY(t,u),pt.endAnimationData(t)}}var It=(L=>(L[L.Invalid=-1]="Invalid",L[L.Nulltype=0]="Nulltype",L[L.Normal=1]="Normal",L[L.Text=2]="Text",L[L.Instance=3]="Instance",L[L.Armature=4]="Armature",L[L.Effect=5]="Effect",L[L.Mesh=6]="Mesh",L[L.Movenode=7]="Movenode",L[L.Constraint=8]="Constraint",L[L.Mask=9]="Mask",L[L.Joint=10]="Joint",L[L.Bonepoint=11]="Bonepoint",L))(It||{});class Et{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsPartData(t,e){return(e||new Et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,e){return t.setPosition(t.position()+Ft),(e||new Et).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):It.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__string(this.bb_pos+e,t):null}effectfilename(t){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__string(this.bb_pos+e,t):null}colorLabel(t){const e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__string(this.bb_pos+e,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,e){t.addFieldOffset(0,e,0)}static addIndex(t,e){t.addFieldInt16(1,e,0)}static addParentIndex(t,e){t.addFieldInt16(2,e,0)}static addType(t,e){t.addFieldInt8(3,e,It.Nulltype)}static addBoundsType(t,e){t.addFieldInt16(4,e,0)}static addAlphaBlendType(t,e){t.addFieldInt16(5,e,0)}static addRefname(t,e){t.addFieldOffset(6,e,0)}static addEffectfilename(t,e){t.addFieldOffset(7,e,0)}static addColorLabel(t,e){t.addFieldOffset(8,e,0)}static addMaskInfluence(t,e){t.addFieldInt16(9,e,0)}static endPartData(t){return t.endObject()}static createPartData(t,e,r,s,l,a,h,n,m,c,_){return Et.startPartData(t),Et.addName(t,e),Et.addIndex(t,r),Et.addParentIndex(t,s),Et.addType(t,l),Et.addBoundsType(t,a),Et.addAlphaBlendType(t,h),Et.addRefname(t,n),Et.addEffectfilename(t,m),Et.addColorLabel(t,c),Et.addMaskInfluence(t,_),Et.endPartData(t)}}class $t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimePackData(t,e){return(e||new $t).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,e){return t.setPosition(t.position()+Ft),(e||new $t).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}parts(t,e){const r=this.bb.__offset(this.bb_pos,6);return r?(e||new Et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,e){const r=this.bb.__offset(this.bb_pos,8);return r?(e||new pt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,e){t.addFieldOffset(0,e,0)}static addParts(t,e){t.addFieldOffset(1,e,0)}static createPartsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startPartsVector(t,e){t.startVector(4,e,4)}static addAnimations(t,e){t.addFieldOffset(2,e,0)}static createAnimationsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startAnimationsVector(t,e){t.startVector(4,e,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,e,r,s){return $t.startAnimePackData(t),$t.addName(t,e),$t.addParts(t,r),$t.addAnimations(t,s),$t.endAnimePackData(t)}}class Xt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCellMap(t,e){return(e||new Xt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,e){return t.setPosition(t.position()+Ft),(e||new Xt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}imagePath(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,e){t.addFieldOffset(0,e,0)}static addImagePath(t,e){t.addFieldOffset(1,e,0)}static addIndex(t,e){t.addFieldInt16(2,e,0)}static addWrapmode(t,e){t.addFieldInt16(3,e,0)}static addFiltermode(t,e){t.addFieldInt16(4,e,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,e,r,s,l,a){return Xt.startCellMap(t),Xt.addName(t,e),Xt.addImagePath(t,r),Xt.addIndex(t,s),Xt.addWrapmode(t,l),Xt.addFiltermode(t,a),Xt.endCellMap(t)}}class ye{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCell(t,e){return(e||new ye).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,e){return t.setPosition(t.position()+Ft),(e||new ye).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}cellMap(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new Xt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,e){t.addFieldOffset(0,e,0)}static addCellMap(t,e){t.addFieldOffset(1,e,0)}static addIndexInCellMap(t,e){t.addFieldInt16(2,e,0)}static addX(t,e){t.addFieldInt16(3,e,0)}static addY(t,e){t.addFieldInt16(4,e,0)}static addWidth(t,e){t.addFieldInt16(5,e,0)}static addHeight(t,e){t.addFieldInt16(6,e,0)}static addPivotX(t,e){t.addFieldFloat32(7,e,0)}static addPivotY(t,e){t.addFieldFloat32(8,e,0)}static addU1(t,e){t.addFieldFloat32(9,e,0)}static addV1(t,e){t.addFieldFloat32(10,e,0)}static addU2(t,e){t.addFieldFloat32(11,e,0)}static addV2(t,e){t.addFieldFloat32(12,e,0)}static endCell(t){return t.endObject()}}class Lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectNode(t,e){return(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,e){return t.setPosition(t.position()+Ft),(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,e){const r=this.bb.__offset(this.bb_pos,18);return r?this.bb.__union(e,this.bb.__vector(this.bb_pos+r)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,e){t.addFieldInt16(0,e,0)}static addParentIndex(t,e){t.addFieldInt16(1,e,0)}static addType(t,e){t.addFieldInt16(2,e,0)}static addCellIndex(t,e){t.addFieldInt16(3,e,0)}static addBlendType(t,e){t.addFieldInt16(4,e,0)}static addNumBehavior(t,e){t.addFieldInt16(5,e,0)}static addBehaviorType(t,e){t.addFieldOffset(6,e,0)}static createBehaviorTypeVector(t,e){t.startVector(1,e.length,1);for(let r=e.length-1;r>=0;r--)t.addInt8(e[r]);return t.endVector()}static startBehaviorTypeVector(t,e){t.startVector(1,e,1)}static addBehavior(t,e){t.addFieldOffset(7,e,0)}static createBehaviorVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startBehaviorVector(t,e){t.startVector(4,e,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,e,r,s,l,a,h,n,m){return Lt.startEffectNode(t),Lt.addArrayIndex(t,e),Lt.addParentIndex(t,r),Lt.addType(t,s),Lt.addCellIndex(t,l),Lt.addBlendType(t,a),Lt.addNumBehavior(t,h),Lt.addBehaviorType(t,n),Lt.addBehavior(t,m),Lt.endEffectNode(t)}}class zt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectFile(t,e){return(e||new zt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,e){return t.setPosition(t.position()+Ft),(e||new zt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,e){const r=this.bb.__offset(this.bb_pos,18);return r?(e||new Lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,e){t.addFieldOffset(0,e,0)}static addFps(t,e){t.addFieldInt16(1,e,0)}static addIsLockRandSeed(t,e){t.addFieldInt16(2,e,0)}static addLockRandSeed(t,e){t.addFieldInt16(3,e,0)}static addLayoutScaleX(t,e){t.addFieldInt16(4,e,0)}static addLayoutScaleY(t,e){t.addFieldInt16(5,e,0)}static addNumNodeList(t,e){t.addFieldInt16(6,e,0)}static addEffectNode(t,e){t.addFieldOffset(7,e,0)}static createEffectNodeVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startEffectNodeVector(t,e){t.startVector(4,e,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,e,r,s,l,a,h,n,m){return zt.startEffectFile(t),zt.addName(t,e),zt.addFps(t,r),zt.addIsLockRandSeed(t,s),zt.addLockRandSeed(t,l),zt.addLayoutScaleX(t,a),zt.addLayoutScaleY(t,h),zt.addNumNodeList(t,n),zt.addEffectNode(t,m),zt.endEffectFile(t)}}var it=(L=>(L[L.INVISIBLE=1]="INVISIBLE",L[L.FLIP_H=2]="FLIP_H",L[L.FLIP_V=4]="FLIP_V",L[L.CELL_INDEX=8]="CELL_INDEX",L[L.POSITION_X=16]="POSITION_X",L[L.POSITION_Y=32]="POSITION_Y",L[L.POSITION_Z=64]="POSITION_Z",L[L.PIVOT_X=128]="PIVOT_X",L[L.PIVOT_Y=256]="PIVOT_Y",L[L.ROTATIONX=512]="ROTATIONX",L[L.ROTATIONY=1024]="ROTATIONY",L[L.ROTATIONZ=2048]="ROTATIONZ",L[L.SCALE_X=4096]="SCALE_X",L[L.SCALE_Y=8192]="SCALE_Y",L[L.LOCALSCALE_X=16384]="LOCALSCALE_X",L[L.LOCALSCALE_Y=32768]="LOCALSCALE_Y",L[L.OPACITY=65536]="OPACITY",L[L.LOCALOPACITY=131072]="LOCALOPACITY",L[L.PARTS_COLOR=262144]="PARTS_COLOR",L[L.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",L[L.SIZE_X=1048576]="SIZE_X",L[L.SIZE_Y=2097152]="SIZE_Y",L[L.U_MOVE=4194304]="U_MOVE",L[L.V_MOVE=8388608]="V_MOVE",L[L.UV_ROTATION=16777216]="UV_ROTATION",L[L.U_SCALE=33554432]="U_SCALE",L[L.V_SCALE=67108864]="V_SCALE",L[L.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",L[L.MASK=268435456]="MASK",L[L.PRIORITY=536870912]="PRIORITY",L[L.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",L[L.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",L))(it||{}),Le=(L=>(L[L.MESHDATA=1]="MESHDATA",L))(Le||{});class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsProjectData(t,e){return(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,e){return t.setPosition(t.position()+Ft),(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__string(this.bb_pos+e,t):null}cells(t,e){const r=this.bb.__offset(this.bb_pos,12);return r?(e||new ye).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,e){const r=this.bb.__offset(this.bb_pos,14);return r?(e||new $t).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,e){const r=this.bb.__offset(this.bb_pos,16);return r?(e||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,e){t.addFieldInt32(0,e,0)}static addVersion(t,e){t.addFieldInt32(1,e,0)}static addFlags(t,e){t.addFieldInt32(2,e,0)}static addImageBaseDir(t,e){t.addFieldOffset(3,e,0)}static addCells(t,e){t.addFieldOffset(4,e,0)}static createCellsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCellsVector(t,e){t.startVector(4,e,4)}static addAnimePacks(t,e){t.addFieldOffset(5,e,0)}static createAnimePacksVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startAnimePacksVector(t,e){t.startVector(4,e,4)}static addEffectFileList(t,e){t.addFieldOffset(6,e,0)}static createEffectFileListVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startEffectFileListVector(t,e){t.startVector(4,e,4)}static addNumCells(t,e){t.addFieldInt16(7,e,0)}static addNumAnimePacks(t,e){t.addFieldInt16(8,e,0)}static addNumEffectFileList(t,e){t.addFieldInt16(9,e,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,e){t.finish(e,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,e){t.finish(e,"SSFB",!0)}static createProjectData(t,e,r,s,l,a,h,n,m,c,_){return Ot.startProjectData(t),Ot.addDataId(t,e),Ot.addVersion(t,r),Ot.addFlags(t,s),Ot.addImageBaseDir(t,l),Ot.addCells(t,a),Ot.addAnimePacks(t,h),Ot.addEffectFileList(t,n),Ot.addNumCells(t,m),Ot.addNumAnimePacks(t,c),Ot.addNumEffectFileList(t,_),Ot.endProjectData(t)}}class Ve{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,e){return t.prep(4,4),t.writeInt32(e),t.offset()}}class ze{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,e,r){return t.prep(4,8),t.writeInt32(r),t.writeInt32(e),t.offset()}}class xe{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,e,r,s,l){return t.prep(4,16),t.writeInt32(l),t.writeInt32(s),t.writeInt32(r),t.writeInt32(e),t.offset()}}class Qt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataString(t,e){return(e||new Qt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,e){return t.setPosition(t.position()+Ft),(e||new Qt).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,e){t.addFieldInt32(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,e,r){return Qt.startuserDataString(t),Qt.addLength(t,e),Qt.addData(t,r),Qt.enduserDataString(t)}}let Ze=class{static getProjectData(t){const e=new Oe(t);return Ot.getRootAsProjectData(e)}};class De{static getProjectData(t){return Ze.getProjectData(t)}}let ce=class{constructor(t,e=null,r=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=De.getProjectData(t),e!==null&&r!==null&&this.Setup(e,r)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,e){this.clearCaches();const r=this._fbObj.animePacksLength();let s=!1;for(let l=0;l>>0,c.colorBlendType===1&&(c.tint=c.colorArgb32&16777215)}}if(m&Le.MESHDATA){const g=this.curAnimation.meshsDataUv(h);c.meshIsBind=g.uv(0),c.meshNum=g.uv(1);let v=new Float32Array(c.meshNum*3);for(let F=0;F=0&&(t=this.InheritOpacity(t,this._parentIndex[e],r)),t}TransformVertsLocal(t,e,r){const s=this.GetFrameData(r)[e],l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[e],r)),t}TransformMeshVertsLocal(t,e,r){const s=this.GetFrameData(r)[e],l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[e],r)),t}TransformPositionLocal(t,e,r){const s=this.GetFrameData(r)[e];t[4]+=-s.rotationZ;const l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l),n=t[0]*s.scaleX*s.localscaleX,m=t[1]*s.scaleY*s.localscaleY;return t[2]*=s.scaleX*s.localscaleX,t[3]*=s.scaleY*s.localscaleY,t[0]=a*n-h*m+s.positionX,t[1]=h*n+a*m-s.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],r)),t}static CoordinateGetDiagonalIntersection(t,e,r,s,l,a,h,n,m,c,_){const g=(n-a)*(h-r)-(h-l)*(n-s),v=(m-r)*(n-s)-(c-s)*(h-r),F=(m-r)*(n-a)-(c-s)*(h-l);if(F<=0&&F>=0)return _;const C=g/F,o=v/F;return 0<=C&&1>=C&&0<=o&&1>=o&&(t=r+C*(m-r),e=s+C*(c-s)),_[0]=t,_[1]=e,_}TransformVerts(t,e,r){const s=this.GetFrameData(r)[e],l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[e],r)),t}TransformPosition(t,e,r){const s=this.GetFrameData(r)[e];t[4]+=-s.rotationZ;const l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l),n=t[0]*s.scaleX,m=t[1]*s.scaleY;return t[2]*=s.scaleX,t[3]*=s.scaleY,t[0]=a*n-h*m+s.positionX,t[1]=h*n+a*m-s.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],r)),t}static GetVerts(t,e,r){const s=e.size_X/2,l=e.size_Y/2,a=e.size_X*-(e.pivotX+t.pivotX()),h=e.size_Y*(e.pivotY+t.pivotY());return r.set([a,h,a-s,h-l,a+s,h-l,a-s,h+l,a+s,h+l]),r}static GetMeshVerts(t,e,r){for(let s=0;s{r!==null&&r(null)}).catch(s=>{r!==null&&r(s)})}unload(t,e,r){wt.Assets.unloadBundle(t).then(()=>{r!==null&&r(null)}).catch(s=>{r!==null&&r(s)})}texture(t){return wt.Assets.get(t)}}class Ye{constructor(){this.loader=new je}load(t,e,r){return this.loader.load(t,e,r)}unload(t,e,r=null){return this.loader.unload(t,e,r)}texture(t){return this.loader.texture(t)}}class Ne{constructor(t,e,r,s){if(this.sspjMap={},this.resourceLoader=new Ye,typeof t=="string"&&r===void 0){let l=t;this.ssfbPath=l;const a=l.lastIndexOf("/");this.rootPath=l.substring(0,a)+"/",this.ssfbFile=l.substring(a+1),this.onComplete=e===void 0?null:e,this.status=0,this.LoadFlatBuffersProject()}else if(typeof e=="object"&&e.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let l=e,a=r;this.onComplete=s===void 0?null:s,this.load(l,a)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,e=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(e=>e.ok?Promise.resolve(e.arrayBuffer()):Promise.reject(new Error(e.statusText))).then(e=>{t.fbObj=De.getProjectData(new Uint8Array(e)),t.LoadCellResources()}).catch(e=>{this.onComplete!==null&&this.onComplete(null,e)})}LoadCellResources(){let t=[];this.sspjMap={};for(let r=0;r{r===null?(e.status=1,e.onComplete!==null&&e.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,r)})}load(t,e){this.fbObj=De.getProjectData(t);let r={};for(let l in e){const a=e[l];let h="";const n=a.byteLength;for(let m=0;m{l===null?(s.status=1,s.onComplete!==null&&s.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,l)})}}class Xe{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class we extends wt.Container{constructor(t,e=null,r=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new wt.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.isRenderGroup=!0,this.ss6project=t,this.playerLib=new ce(t.fbObj,e,r),this.parentAlpha=1,e!==null&&r!==null&&this.Setup(e,r),this.on("added",(...s)=>{wt.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...s)=>{wt.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,e){this.playerLib.Setup(t,e),this.clearCaches();const r=this.playerLib.animePackData,s=r.partsLength();this.prevCellID=new Array(s),this.prevPartObject=new Array(s),this.substituteOverWrite=new Array(s),this.substituteKeyParam=new Array(s);for(let l=0;l=this.updateInterval){let l=!1;const a=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*a;let h=this.skipEnabled?a*this.playDirection:this.playDirection,n=this._currentFrame+h,m=Math.floor(n),c=n-m,_=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let g=m-_;g;g--){let v=_+1;if(v>this._endFrame)if(this._loops===-1)v=this._startFrame;else if(this._loops--,l=!0,this._loops===0){this._isPlaying=!1,v=e?this._startFrame:this._endFrame;break}else v=this._startFrame;_=v,this._isPlaying&&this.playerLib.HaveUserData(_)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(_))}if(this.playDirection<=-1)for(let g=_-m;g;g--){let v=_-1;if(v0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=e)}SetAnimationSection(t=-1,e=-1,r=-1){t>=0&&t=0&&e0?this._loops=r:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let e=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(e=t),this._currentFrame=e,this.resetLiveFrame();const r=Math.floor(this._currentFrame);this.SetFrameAnimation(r),this.playerLib.HaveUserData(r)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(r))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),e=this.endFrame;t!==e&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}GetPartsBlendMode(){const t=this.playerLib.animePackData,e=t.partsLength();let r=[];for(let s=0;s>>24)/255,h=((r&16711680)>>>16)/255,n=((r&65280)>>>8)/255,m=(r&255)/255;if(t===0){const c=1-e;l.matrix=[c,0,0,0,h*e,0,c,0,0,n*e,0,0,c,0,m*e,0,0,0,1,0]}else t===1?l.matrix=[h,0,0,0,0,0,n,0,0,0,0,0,m,0,0,0,0,0,a,0]:t===2?l.matrix=[1,0,0,0,h,0,1,0,0,n,0,0,1,0,m,0,0,0,a,0]:t===3&&(l.matrix=[1,0,0,0,-h,0,1,0,0,-n,0,0,1,0,-m,0,0,0,a,0]);return this.colorMatrixFilterCache[s]=l,l}SetFrameAnimation(t,e=0){const r=this.playerLib.GetFrameData(t);this.removeChildren();const s=r.length;for(let l=0;l=0&&this.prevCellID[a]!==n&&(m?.destroy(),m=this.MakeCellMesh(n),m.label=c.name());break;case It.Mesh:n>=0&&this.prevCellID[a]!==n&&(m?.destroy(),m=this.MakeMeshCellMesh(a,n),m.label=c.name());break;case It.Nulltype:case It.Joint:this.prevCellID[a]!==n&&(m?.destroy(),m=new wt.Container,m.label=c.name());break;default:n>=0&&this.prevCellID[a]!==n&&(m?.destroy(),m=this.MakeCellMesh(n),m.label=c.name());break}if(m!=null)switch(this.prevCellID[a]=n,this.prevPartObject[a]=m,_){case It.Instance:{const F=m;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,h.index,t),F.rotation=this._instancePos[4]*Math.PI/180,F.position.set(this._instancePos[0],this._instancePos[1]),F.scale.set(this._instancePos[2],this._instancePos[3]);let C=h.opacity/255;h.localopacity<255&&(C=h.localopacity/255),F.SetAlpha(C*this.parentAlpha),F.visible=!h.f_hide;let o=h.instanceValue_curKeyframe,u=h.instanceValue_startFrame,p=h.instanceValue_endFrame,I=h.instanceValue_speed,P=h.instanceValue_loopNum,y=!1,w=!1,S=!1,E=!1;const N=1,D=2,B=4,R=8,j=h.instanceValue_loopflag;j&N&&(y=!0),j&D&&(w=!0),j&B&&(S=!0),j&R&&(E=!0),g&&(u=v.refStartframe,p=v.refEndframe,I=v.refSpeed,P=v.refloopNum,y=v.infinity,w=v.reverse,S=v.pingpong,E=v.independent),(F._startFrame!==u||F._endFrame!==p)&&F.SetAnimationSection(u,p);let Q=t;E===!0&&(this.liveFrame[l]+=e,Q=Math.floor(this.liveFrame[l]));const J=o;let G=Math.floor((Q-J)*I);if(G<0||J>Q)continue;const $=p-u+1;if($<=0)continue;let Z=Math.floor(G/$),tt=P;S&&(tt=tt*2),y||Z>=tt&&(G=$-1,Z=tt-1);const nt=Math.floor(G%$);let ht=0;S&&Z%2===1&&(w?w=!1:w=!0),this.playDirection<=-1&&(w=!w),w?ht=p-nt:ht=nt+u,F.SetFrame(Math.floor(ht)),this.addChild(F);break}case It.Normal:case It.Mesh:case It.Joint:case It.Mask:{const F=m,C=F.geometry.attributes.aPosition.buffer;let o=C.data;const u=this.playerLib.fbObj.cells(n);let p;if(_===It.Mesh?h.meshIsBind===0?p=this.playerLib.TransformMeshVertsLocal(ce.GetMeshVerts(u,h,o),h.index,t):p=ce.GetMeshVerts(u,h,o):(p=_===It.Joint?new Float32Array(10):o,p=this.playerLib.TransformVertsLocal(ce.GetVerts(u,h,p),h.index,t)),h.flag1&it.VERTEX_TRANSFORM){const S=p[6],E=p[3*2+1],N=p[1*2+0],D=p[1*2+1],B=p[4*2+0],R=p[4*2+1],j=p[2*2+0],Q=p[2*2+1],J=(S+B)*.5,G=(E+R)*.5,$=(S+N)*.5,Z=(E+D)*.5,tt=(N+j)*.5,nt=(D+Q)*.5,ht=(B+j)*.5,H=(R+Q)*.5,st=ce.CoordinateGetDiagonalIntersection(p[0],p[1],J,G,ht,H,$,Z,tt,nt,this._CoordinateGetDiagonalIntersectionVec2);p[0]=st[0],p[1]=st[1]}const I=p[0],P=p[1];for(let S=0;S>>24)/255;F.alpha=F.alpha*S}const w=this.alphaBlendType[a];(w==="multiply"||w==="screen")&&(F.alpha=1),_!==It.Mask&&this.addChild(F);break}case It.Nulltype:{const F=m,C=this.playerLib.InheritOpacity(1,h.index,t);F.alpha=C*h.localopacity/255;const o=this.playerLib.TransformVerts(ce.GetDummyVerts(),h.index,t),u=o[0],p=o[1];F.position.set(u,p);const I=Math.atan2(o[5]-o[3],o[4]-o[2]),P=Math.atan2(o[7]-o[3],o[6]-o[2]);F.rotation=I,F.skew.x=P-I-Math.PI/2;break}}}}ChangeInstanceAnime(t,e,r,s,l=null){let a=!1;if(this.animePackName!==null&&this.animeName!==null){let h=this.playerLib.animePackData,n=h.partsLength();for(let m=0;m0){const l=new Float32Array(s-2),a=r.uv(1);for(let g=2;g{r.ssWebPlayer&&r.ssWebPlayer.playEndCallback&&r.ssWebPlayer.playEndCallback(r)},this.onUserDataCallback=s=>{r.ssWebPlayer&&r.ssWebPlayer.onUpdateCallback&&r.ssWebPlayer.onUpdateCallback(r)},this.setupCurrentAnimationFrameDataMap()}getCurrentAnimationFrameDataMap(){return this.currentAnimationFrameDataMap}setupCurrentAnimationFrameDataMap(){const t=this.playerLib.animationData;let e={};const r=t.userDataLength();for(let s=0;s=be.length)return;const r=be[e];this.zoom(r)}zoomOut(){const e=be.indexOf(this.zoomPercent)-1;if(e<0)return;const r=be[e];this.zoom(r)}switchGridDisplay(){const t=this.rootLineGraphics,e=this.gridGraphics;if(!(t==null||e==null)&&(t.clear(),e.clear(),this.isDisplayGrid=!this.isDisplayGrid,this.isDisplayGrid)){t.lineStyle(1,0),t.alpha=.3,t.moveTo(-5e3,0).lineTo(5001,0),t.moveTo(0,-5e3).lineTo(0,5001),e.lineStyle(1,0),e.alpha=.1;let l=100;for(let a=-5e3;a<5001;a+=l)e.moveTo(a,-5e3).lineTo(a,5001);for(let a=-5e3;a<5001;a+=l)e.moveTo(-5e3,-a).lineTo(5001,-a)}}}class Be{}const me=4,ve=4,Ft=4,ee=new Int32Array(2),Pe=new Float32Array(ee.buffer),Te=new Float64Array(ee.buffer),ge=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Ee;(function(L){L[L.UTF8_BYTES=1]="UTF8_BYTES",L[L.UTF16_STRING=2]="UTF16_STRING"})(Ee||(Ee={}));class Oe{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new Oe(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){Pe[0]=e,this.writeInt32(t,ee[0])}writeFloat64(t,e){Te[0]=e,this.writeInt32(t,ee[ge?0:1]),this.writeInt32(t+4,ee[ge?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;r--)t.addInt32(e[r]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static endpartState(t){return t.endObject()}static createpartState(t,e,r,s,l){return Ht.startpartState(t),Ht.addIndex(t,e),Ht.addFlag1(t,r),Ht.addFlag2(t,s),Ht.addData(t,l),Ht.endpartState(t)}}class oe{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsframeDataIndex(t,e){return(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,e){return t.setPosition(t.position()+Ft),(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}states(t,e){const r=this.bb.__offset(this.bb_pos,4);return r?(e||new Ht).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,e){t.addFieldOffset(0,e,0)}static createStatesVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startStatesVector(t,e){t.startVector(4,e,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,e){return oe.startframeDataIndex(t),oe.addStates(t,e),oe.endframeDataIndex(t)}}class ie{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAslabelDataItem(t,e){return(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,e){return t.setPosition(t.position()+Ft),(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}label(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,e){t.addFieldOffset(0,e,0)}static addFrameIndex(t,e){t.addFieldInt16(1,e,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,e,r){return ie.startlabelDataItem(t),ie.addLabel(t,e),ie.addFrameIndex(t,r),ie.endlabelDataItem(t)}}class fe{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataIndices(t,e){return(e||new fe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,e){return t.setPosition(t.position()+Ft),(e||new fe).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,e){t.addFieldOffset(0,e,0)}static createIndicesVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addFloat32(e[r]);return t.endVector()}static startIndicesVector(t,e){t.startVector(4,e,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,e){return fe.startmeshDataIndices(t),fe.addIndices(t,e),fe.endmeshDataIndices(t)}}class le{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataUV(t,e){return(e||new le).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,e){return t.setPosition(t.position()+Ft),(e||new le).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,e){t.addFieldOffset(0,e,0)}static createUvVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addFloat32(e[r]);return t.endVector()}static startUvVector(t,e){t.startVector(4,e,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,e){return le.startmeshDataUV(t),le.addUv(t,e),le.endmeshDataUV(t)}}class Kt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataItem(t,e){return(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,e){return t.setPosition(t.position()+Ft),(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,e){const r=this.bb.__offset(this.bb_pos,10);return r?this.bb.__union(e,this.bb.__vector(this.bb_pos+r)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,e){t.addFieldInt16(0,e,0)}static addArrayIndex(t,e){t.addFieldInt16(1,e,0)}static addDataType(t,e){t.addFieldOffset(2,e,0)}static createDataTypeVector(t,e){t.startVector(1,e.length,1);for(let r=e.length-1;r>=0;r--)t.addInt8(e[r]);return t.endVector()}static startDataTypeVector(t,e){t.startVector(1,e,1)}static addData(t,e){t.addFieldOffset(3,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,e,r,s,l){return Kt.startuserDataItem(t),Kt.addFlags(t,e),Kt.addArrayIndex(t,r),Kt.addDataType(t,s),Kt.addData(t,l),Kt.enduserDataItem(t)}}class re{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataPerFrame(t,e){return(e||new re).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,e){return t.setPosition(t.position()+Ft),(e||new re).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,e){const r=this.bb.__offset(this.bb_pos,6);return r?(e||new Kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,e){t.addFieldInt16(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,e,r){return re.startuserDataPerFrame(t),re.addFrameIndex(t,e),re.addData(t,r),re.enduserDataPerFrame(t)}}class pt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimationData(t,e){return(e||new pt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,e){return t.setPosition(t.position()+Ft),(e||new pt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}defaultData(t,e){const r=this.bb.__offset(this.bb_pos,6);return r?(e||new et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,e){const r=this.bb.__offset(this.bb_pos,8);return r?(e||new oe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,e){const r=this.bb.__offset(this.bb_pos,10);return r?(e||new re).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,e){const r=this.bb.__offset(this.bb_pos,12);return r?(e||new ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,e){const r=this.bb.__offset(this.bb_pos,14);return r?(e||new le).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,e){const r=this.bb.__offset(this.bb_pos,16);return r?(e||new fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,e){t.addFieldOffset(0,e,0)}static addDefaultData(t,e){t.addFieldOffset(1,e,0)}static createDefaultDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startDefaultDataVector(t,e){t.startVector(4,e,4)}static addFrameData(t,e){t.addFieldOffset(2,e,0)}static createFrameDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startFrameDataVector(t,e){t.startVector(4,e,4)}static addUserData(t,e){t.addFieldOffset(3,e,0)}static createUserDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startUserDataVector(t,e){t.startVector(4,e,4)}static addLabelData(t,e){t.addFieldOffset(4,e,0)}static createLabelDataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startLabelDataVector(t,e){t.startVector(4,e,4)}static addMeshsDataUv(t,e){t.addFieldOffset(5,e,0)}static createMeshsDataUvVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startMeshsDataUvVector(t,e){t.startVector(4,e,4)}static addMeshsDataIndices(t,e){t.addFieldOffset(6,e,0)}static createMeshsDataIndicesVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startMeshsDataIndicesVector(t,e){t.startVector(4,e,4)}static addStartFrames(t,e){t.addFieldInt16(7,e,0)}static addEndFrames(t,e){t.addFieldInt16(8,e,0)}static addTotalFrames(t,e){t.addFieldInt16(9,e,0)}static addFps(t,e){t.addFieldInt16(10,e,0)}static addLabelNum(t,e){t.addFieldInt16(11,e,0)}static addCanvasSizeW(t,e){t.addFieldInt16(12,e,0)}static addCanvasSizeH(t,e){t.addFieldInt16(13,e,0)}static addCanvasPvotX(t,e){t.addFieldFloat32(14,e,0)}static addCanvasPvotY(t,e){t.addFieldFloat32(15,e,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,e,r,s,l,a,h,n,m,c,u,g,v,F,C,o,_){return pt.startAnimationData(t),pt.addName(t,e),pt.addDefaultData(t,r),pt.addFrameData(t,s),pt.addUserData(t,l),pt.addLabelData(t,a),pt.addMeshsDataUv(t,h),pt.addMeshsDataIndices(t,n),pt.addStartFrames(t,m),pt.addEndFrames(t,c),pt.addTotalFrames(t,u),pt.addFps(t,g),pt.addLabelNum(t,v),pt.addCanvasSizeW(t,F),pt.addCanvasSizeH(t,C),pt.addCanvasPvotX(t,o),pt.addCanvasPvotY(t,_),pt.endAnimationData(t)}}var It=(L=>(L[L.Invalid=-1]="Invalid",L[L.Nulltype=0]="Nulltype",L[L.Normal=1]="Normal",L[L.Text=2]="Text",L[L.Instance=3]="Instance",L[L.Armature=4]="Armature",L[L.Effect=5]="Effect",L[L.Mesh=6]="Mesh",L[L.Movenode=7]="Movenode",L[L.Constraint=8]="Constraint",L[L.Mask=9]="Mask",L[L.Joint=10]="Joint",L[L.Bonepoint=11]="Bonepoint",L))(It||{});class Et{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsPartData(t,e){return(e||new Et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,e){return t.setPosition(t.position()+Ft),(e||new Et).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):It.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__string(this.bb_pos+e,t):null}effectfilename(t){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__string(this.bb_pos+e,t):null}colorLabel(t){const e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__string(this.bb_pos+e,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,e){t.addFieldOffset(0,e,0)}static addIndex(t,e){t.addFieldInt16(1,e,0)}static addParentIndex(t,e){t.addFieldInt16(2,e,0)}static addType(t,e){t.addFieldInt8(3,e,It.Nulltype)}static addBoundsType(t,e){t.addFieldInt16(4,e,0)}static addAlphaBlendType(t,e){t.addFieldInt16(5,e,0)}static addRefname(t,e){t.addFieldOffset(6,e,0)}static addEffectfilename(t,e){t.addFieldOffset(7,e,0)}static addColorLabel(t,e){t.addFieldOffset(8,e,0)}static addMaskInfluence(t,e){t.addFieldInt16(9,e,0)}static endPartData(t){return t.endObject()}static createPartData(t,e,r,s,l,a,h,n,m,c,u){return Et.startPartData(t),Et.addName(t,e),Et.addIndex(t,r),Et.addParentIndex(t,s),Et.addType(t,l),Et.addBoundsType(t,a),Et.addAlphaBlendType(t,h),Et.addRefname(t,n),Et.addEffectfilename(t,m),Et.addColorLabel(t,c),Et.addMaskInfluence(t,u),Et.endPartData(t)}}class $t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimePackData(t,e){return(e||new $t).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,e){return t.setPosition(t.position()+Ft),(e||new $t).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}parts(t,e){const r=this.bb.__offset(this.bb_pos,6);return r?(e||new Et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,e){const r=this.bb.__offset(this.bb_pos,8);return r?(e||new pt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,e){t.addFieldOffset(0,e,0)}static addParts(t,e){t.addFieldOffset(1,e,0)}static createPartsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startPartsVector(t,e){t.startVector(4,e,4)}static addAnimations(t,e){t.addFieldOffset(2,e,0)}static createAnimationsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startAnimationsVector(t,e){t.startVector(4,e,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,e,r,s){return $t.startAnimePackData(t),$t.addName(t,e),$t.addParts(t,r),$t.addAnimations(t,s),$t.endAnimePackData(t)}}class Xt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCellMap(t,e){return(e||new Xt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,e){return t.setPosition(t.position()+Ft),(e||new Xt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}imagePath(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,e){t.addFieldOffset(0,e,0)}static addImagePath(t,e){t.addFieldOffset(1,e,0)}static addIndex(t,e){t.addFieldInt16(2,e,0)}static addWrapmode(t,e){t.addFieldInt16(3,e,0)}static addFiltermode(t,e){t.addFieldInt16(4,e,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,e,r,s,l,a){return Xt.startCellMap(t),Xt.addName(t,e),Xt.addImagePath(t,r),Xt.addIndex(t,s),Xt.addWrapmode(t,l),Xt.addFiltermode(t,a),Xt.endCellMap(t)}}class ye{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCell(t,e){return(e||new ye).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,e){return t.setPosition(t.position()+Ft),(e||new ye).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}cellMap(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new Xt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,e){t.addFieldOffset(0,e,0)}static addCellMap(t,e){t.addFieldOffset(1,e,0)}static addIndexInCellMap(t,e){t.addFieldInt16(2,e,0)}static addX(t,e){t.addFieldInt16(3,e,0)}static addY(t,e){t.addFieldInt16(4,e,0)}static addWidth(t,e){t.addFieldInt16(5,e,0)}static addHeight(t,e){t.addFieldInt16(6,e,0)}static addPivotX(t,e){t.addFieldFloat32(7,e,0)}static addPivotY(t,e){t.addFieldFloat32(8,e,0)}static addU1(t,e){t.addFieldFloat32(9,e,0)}static addV1(t,e){t.addFieldFloat32(10,e,0)}static addU2(t,e){t.addFieldFloat32(11,e,0)}static addV2(t,e){t.addFieldFloat32(12,e,0)}static endCell(t){return t.endObject()}}class Lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectNode(t,e){return(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,e){return t.setPosition(t.position()+Ft),(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,e){const r=this.bb.__offset(this.bb_pos,18);return r?this.bb.__union(e,this.bb.__vector(this.bb_pos+r)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,e){t.addFieldInt16(0,e,0)}static addParentIndex(t,e){t.addFieldInt16(1,e,0)}static addType(t,e){t.addFieldInt16(2,e,0)}static addCellIndex(t,e){t.addFieldInt16(3,e,0)}static addBlendType(t,e){t.addFieldInt16(4,e,0)}static addNumBehavior(t,e){t.addFieldInt16(5,e,0)}static addBehaviorType(t,e){t.addFieldOffset(6,e,0)}static createBehaviorTypeVector(t,e){t.startVector(1,e.length,1);for(let r=e.length-1;r>=0;r--)t.addInt8(e[r]);return t.endVector()}static startBehaviorTypeVector(t,e){t.startVector(1,e,1)}static addBehavior(t,e){t.addFieldOffset(7,e,0)}static createBehaviorVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startBehaviorVector(t,e){t.startVector(4,e,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,e,r,s,l,a,h,n,m){return Lt.startEffectNode(t),Lt.addArrayIndex(t,e),Lt.addParentIndex(t,r),Lt.addType(t,s),Lt.addCellIndex(t,l),Lt.addBlendType(t,a),Lt.addNumBehavior(t,h),Lt.addBehaviorType(t,n),Lt.addBehavior(t,m),Lt.endEffectNode(t)}}class zt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectFile(t,e){return(e||new zt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,e){return t.setPosition(t.position()+Ft),(e||new zt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,e){const r=this.bb.__offset(this.bb_pos,18);return r?(e||new Lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,e){t.addFieldOffset(0,e,0)}static addFps(t,e){t.addFieldInt16(1,e,0)}static addIsLockRandSeed(t,e){t.addFieldInt16(2,e,0)}static addLockRandSeed(t,e){t.addFieldInt16(3,e,0)}static addLayoutScaleX(t,e){t.addFieldInt16(4,e,0)}static addLayoutScaleY(t,e){t.addFieldInt16(5,e,0)}static addNumNodeList(t,e){t.addFieldInt16(6,e,0)}static addEffectNode(t,e){t.addFieldOffset(7,e,0)}static createEffectNodeVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startEffectNodeVector(t,e){t.startVector(4,e,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,e,r,s,l,a,h,n,m){return zt.startEffectFile(t),zt.addName(t,e),zt.addFps(t,r),zt.addIsLockRandSeed(t,s),zt.addLockRandSeed(t,l),zt.addLayoutScaleX(t,a),zt.addLayoutScaleY(t,h),zt.addNumNodeList(t,n),zt.addEffectNode(t,m),zt.endEffectFile(t)}}var it=(L=>(L[L.INVISIBLE=1]="INVISIBLE",L[L.FLIP_H=2]="FLIP_H",L[L.FLIP_V=4]="FLIP_V",L[L.CELL_INDEX=8]="CELL_INDEX",L[L.POSITION_X=16]="POSITION_X",L[L.POSITION_Y=32]="POSITION_Y",L[L.POSITION_Z=64]="POSITION_Z",L[L.PIVOT_X=128]="PIVOT_X",L[L.PIVOT_Y=256]="PIVOT_Y",L[L.ROTATIONX=512]="ROTATIONX",L[L.ROTATIONY=1024]="ROTATIONY",L[L.ROTATIONZ=2048]="ROTATIONZ",L[L.SCALE_X=4096]="SCALE_X",L[L.SCALE_Y=8192]="SCALE_Y",L[L.LOCALSCALE_X=16384]="LOCALSCALE_X",L[L.LOCALSCALE_Y=32768]="LOCALSCALE_Y",L[L.OPACITY=65536]="OPACITY",L[L.LOCALOPACITY=131072]="LOCALOPACITY",L[L.PARTS_COLOR=262144]="PARTS_COLOR",L[L.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",L[L.SIZE_X=1048576]="SIZE_X",L[L.SIZE_Y=2097152]="SIZE_Y",L[L.U_MOVE=4194304]="U_MOVE",L[L.V_MOVE=8388608]="V_MOVE",L[L.UV_ROTATION=16777216]="UV_ROTATION",L[L.U_SCALE=33554432]="U_SCALE",L[L.V_SCALE=67108864]="V_SCALE",L[L.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",L[L.MASK=268435456]="MASK",L[L.PRIORITY=536870912]="PRIORITY",L[L.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",L[L.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",L))(it||{}),Le=(L=>(L[L.MESHDATA=1]="MESHDATA",L))(Le||{});class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsProjectData(t,e){return(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,e){return t.setPosition(t.position()+Ft),(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__string(this.bb_pos+e,t):null}cells(t,e){const r=this.bb.__offset(this.bb_pos,12);return r?(e||new ye).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,e){const r=this.bb.__offset(this.bb_pos,14);return r?(e||new $t).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,e){const r=this.bb.__offset(this.bb_pos,16);return r?(e||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,e){t.addFieldInt32(0,e,0)}static addVersion(t,e){t.addFieldInt32(1,e,0)}static addFlags(t,e){t.addFieldInt32(2,e,0)}static addImageBaseDir(t,e){t.addFieldOffset(3,e,0)}static addCells(t,e){t.addFieldOffset(4,e,0)}static createCellsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCellsVector(t,e){t.startVector(4,e,4)}static addAnimePacks(t,e){t.addFieldOffset(5,e,0)}static createAnimePacksVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startAnimePacksVector(t,e){t.startVector(4,e,4)}static addEffectFileList(t,e){t.addFieldOffset(6,e,0)}static createEffectFileListVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startEffectFileListVector(t,e){t.startVector(4,e,4)}static addNumCells(t,e){t.addFieldInt16(7,e,0)}static addNumAnimePacks(t,e){t.addFieldInt16(8,e,0)}static addNumEffectFileList(t,e){t.addFieldInt16(9,e,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,e){t.finish(e,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,e){t.finish(e,"SSFB",!0)}static createProjectData(t,e,r,s,l,a,h,n,m,c,u){return Ot.startProjectData(t),Ot.addDataId(t,e),Ot.addVersion(t,r),Ot.addFlags(t,s),Ot.addImageBaseDir(t,l),Ot.addCells(t,a),Ot.addAnimePacks(t,h),Ot.addEffectFileList(t,n),Ot.addNumCells(t,m),Ot.addNumAnimePacks(t,c),Ot.addNumEffectFileList(t,u),Ot.endProjectData(t)}}class Ve{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,e){return t.prep(4,4),t.writeInt32(e),t.offset()}}class ze{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,e,r){return t.prep(4,8),t.writeInt32(r),t.writeInt32(e),t.offset()}}class xe{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,e,r,s,l){return t.prep(4,16),t.writeInt32(l),t.writeInt32(s),t.writeInt32(r),t.writeInt32(e),t.offset()}}class Qt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataString(t,e){return(e||new Qt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,e){return t.setPosition(t.position()+Ft),(e||new Qt).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,e){t.addFieldInt32(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,e,r){return Qt.startuserDataString(t),Qt.addLength(t,e),Qt.addData(t,r),Qt.enduserDataString(t)}}let je=class{static getProjectData(t){const e=new Oe(t);return Ot.getRootAsProjectData(e)}};class De{static getProjectData(t){return je.getProjectData(t)}}let ce=class{constructor(t,e=null,r=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=De.getProjectData(t),e!==null&&r!==null&&this.Setup(e,r)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,e){this.clearCaches();const r=this._fbObj.animePacksLength();let s=!1;for(let l=0;l>>0,c.colorBlendType===1&&(c.tint=c.colorArgb32&16777215)}}if(m&Le.MESHDATA){const g=this.curAnimation.meshsDataUv(h);c.meshIsBind=g.uv(0),c.meshNum=g.uv(1);let v=new Float32Array(c.meshNum*3);for(let F=0;F=0&&(t=this.InheritOpacity(t,this._parentIndex[e],r)),t}TransformVertsLocal(t,e,r){const s=this.GetFrameData(r)[e],l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[e],r)),t}TransformMeshVertsLocal(t,e,r){const s=this.GetFrameData(r)[e],l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[e],r)),t}TransformPositionLocal(t,e,r){const s=this.GetFrameData(r)[e];t[4]+=-s.rotationZ;const l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l),n=t[0]*s.scaleX*s.localscaleX,m=t[1]*s.scaleY*s.localscaleY;return t[2]*=s.scaleX*s.localscaleX,t[3]*=s.scaleY*s.localscaleY,t[0]=a*n-h*m+s.positionX,t[1]=h*n+a*m-s.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],r)),t}static CoordinateGetDiagonalIntersection(t,e,r,s,l,a,h,n,m,c,u){const g=(n-a)*(h-r)-(h-l)*(n-s),v=(m-r)*(n-s)-(c-s)*(h-r),F=(m-r)*(n-a)-(c-s)*(h-l);if(F<=0&&F>=0)return u;const C=g/F,o=v/F;return 0<=C&&1>=C&&0<=o&&1>=o&&(t=r+C*(m-r),e=s+C*(c-s)),u[0]=t,u[1]=e,u}TransformVerts(t,e,r){const s=this.GetFrameData(r)[e],l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[e],r)),t}TransformPosition(t,e,r){const s=this.GetFrameData(r)[e];t[4]+=-s.rotationZ;const l=-s.rotationZ*Math.PI/180,a=Math.cos(l),h=Math.sin(l),n=t[0]*s.scaleX,m=t[1]*s.scaleY;return t[2]*=s.scaleX,t[3]*=s.scaleY,t[0]=a*n-h*m+s.positionX,t[1]=h*n+a*m-s.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],r)),t}static GetVerts(t,e,r){const s=e.size_X/2,l=e.size_Y/2,a=e.size_X*-(e.pivotX+t.pivotX()),h=e.size_Y*(e.pivotY+t.pivotY());return r.set([a,h,a-s,h-l,a+s,h-l,a-s,h+l,a+s,h+l]),r}static GetMeshVerts(t,e,r){for(let s=0;s{r!==null&&r(null)}).catch(s=>{r!==null&&r(s)})}unload(t,e,r){wt.Assets.unloadBundle(t).then(()=>{r!==null&&r(null)}).catch(s=>{r!==null&&r(s)})}texture(t){return wt.Assets.get(t)}}class Ye{constructor(){this.loader=new Ze}load(t,e,r){return this.loader.load(t,e,r)}unload(t,e,r=null){return this.loader.unload(t,e,r)}texture(t){return this.loader.texture(t)}}class Ne{constructor(t,e,r,s){if(this.sspjMap={},this.resourceLoader=new Ye,typeof t=="string"&&r===void 0){let l=t;this.ssfbPath=l;const a=l.lastIndexOf("/");this.rootPath=l.substring(0,a)+"/",this.ssfbFile=l.substring(a+1),this.onComplete=e===void 0?null:e,this.status=0,this.LoadFlatBuffersProject()}else if(typeof e=="object"&&e.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let l=e,a=r;this.onComplete=s===void 0?null:s,this.load(l,a)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,e=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(e=>e.ok?Promise.resolve(e.arrayBuffer()):Promise.reject(new Error(e.statusText))).then(e=>{t.fbObj=De.getProjectData(new Uint8Array(e)),t.LoadCellResources()}).catch(e=>{this.onComplete!==null&&this.onComplete(null,e)})}LoadCellResources(){let t=[];this.sspjMap={};for(let r=0;r{r===null?(e.status=1,e.onComplete!==null&&e.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,r)})}load(t,e){this.fbObj=De.getProjectData(t);let r={};for(let l in e){const a=e[l];let h="";const n=a.byteLength;for(let m=0;m{l===null?(s.status=1,s.onComplete!==null&&s.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,l)})}}class Xe{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class we extends wt.Container{constructor(t,e=null,r=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.changeCellID=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new wt.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.isRenderGroup=!0,this.ss6project=t,this.playerLib=new ce(t.fbObj,e,r),this.parentAlpha=1,e!==null&&r!==null&&this.Setup(e,r),this.on("added",(...s)=>{wt.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...s)=>{wt.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,e){this.playerLib.Setup(t,e),this.clearCaches();const r=this.playerLib.animePackData,s=r.partsLength();this.prevCellID=new Array(s),this.prevPartObject=new Array(s),this.changeCellID=new Array(s),this.substituteOverWrite=new Array(s),this.substituteKeyParam=new Array(s);for(let l=0;l=this.updateInterval){let l=!1;const a=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*a;let h=this.skipEnabled?a*this.playDirection:this.playDirection,n=this._currentFrame+h,m=Math.floor(n),c=n-m,u=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let g=m-u;g;g--){let v=u+1;if(v>this._endFrame)if(this._loops===-1)v=this._startFrame;else if(this._loops--,l=!0,this._loops===0){this._isPlaying=!1,v=e?this._startFrame:this._endFrame;break}else v=this._startFrame;u=v,this._isPlaying&&this.playerLib.HaveUserData(u)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(u))}if(this.playDirection<=-1)for(let g=u-m;g;g--){let v=u-1;if(v0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=e)}SetAnimationSection(t=-1,e=-1,r=-1){t>=0&&t=0&&e0?this._loops=r:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let e=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(e=t),this._currentFrame=e,this.resetLiveFrame();const r=Math.floor(this._currentFrame);this.SetFrameAnimation(r),this.playerLib.HaveUserData(r)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(r))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),e=this.endFrame;t!==e&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}SetPartCell(t,e,r){if(this.playerLib.animationData){let s=-1;if(e!==""&&r!==""){const h=this.playerLib.fbObj,n=this.playerLib.fbObj.numCells();for(let m=0;m>>24)/255,h=((r&16711680)>>>16)/255,n=((r&65280)>>>8)/255,m=(r&255)/255;if(t===0){const c=1-e;l.matrix=[c,0,0,0,h*e,0,c,0,0,n*e,0,0,c,0,m*e,0,0,0,1,0]}else t===1?l.matrix=[h,0,0,0,0,0,n,0,0,0,0,0,m,0,0,0,0,0,a,0]:t===2?l.matrix=[1,0,0,0,h,0,1,0,0,n,0,0,1,0,m,0,0,0,a,0]:t===3&&(l.matrix=[1,0,0,0,-h,0,1,0,0,-n,0,0,1,0,-m,0,0,0,a,0]);return this.colorMatrixFilterCache[s]=l,l}SetFrameAnimation(t,e=0){const r=this.playerLib.GetFrameData(t);this.removeChildren();const s=r.length;for(let l=0;l=0&&this.prevCellID[a]!==n&&(m?.destroy(),m=this.MakeCellMesh(n),m.label=c.name());break;case It.Mesh:n>=0&&this.prevCellID[a]!==n&&(m?.destroy(),m=this.MakeMeshCellMesh(a,n),m.label=c.name());break;case It.Nulltype:case It.Joint:this.prevCellID[a]!==n&&(m?.destroy(),m=new wt.Container,m.label=c.name());break;default:n>=0&&this.prevCellID[a]!==n&&(m?.destroy(),m=this.MakeCellMesh(n),m.label=c.name());break}if(m!=null)switch(this.prevCellID[a]=n,this.prevPartObject[a]=m,u){case It.Instance:{const F=m;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,h.index,t),F.rotation=this._instancePos[4]*Math.PI/180,F.position.set(this._instancePos[0],this._instancePos[1]),F.scale.set(this._instancePos[2],this._instancePos[3]);let C=h.opacity/255;h.localopacity<255&&(C=h.localopacity/255),F.SetAlpha(C*this.parentAlpha),F.visible=!h.f_hide;let o=h.instanceValue_curKeyframe,_=h.instanceValue_startFrame,p=h.instanceValue_endFrame,I=h.instanceValue_speed,P=h.instanceValue_loopNum,y=!1,w=!1,S=!1,E=!1;const N=1,D=2,B=4,R=8,Z=h.instanceValue_loopflag;Z&N&&(y=!0),Z&D&&(w=!0),Z&B&&(S=!0),Z&R&&(E=!0),g&&(_=v.refStartframe,p=v.refEndframe,I=v.refSpeed,P=v.refloopNum,y=v.infinity,w=v.reverse,S=v.pingpong,E=v.independent),(F._startFrame!==_||F._endFrame!==p)&&F.SetAnimationSection(_,p);let Q=t;E===!0&&(this.liveFrame[l]+=e,Q=Math.floor(this.liveFrame[l]));const J=o;let G=Math.floor((Q-J)*I);if(G<0||J>Q)continue;const $=p-_+1;if($<=0)continue;let j=Math.floor(G/$),tt=P;S&&(tt=tt*2),y||j>=tt&&(G=$-1,j=tt-1);const nt=Math.floor(G%$);let ht=0;S&&j%2===1&&(w?w=!1:w=!0),this.playDirection<=-1&&(w=!w),w?ht=p-nt:ht=nt+_,F.SetFrame(Math.floor(ht)),this.addChild(F);break}case It.Normal:case It.Mesh:case It.Joint:case It.Mask:{const F=m,C=F.geometry.attributes.aPosition.buffer;let o=C.data;const _=this.playerLib.fbObj.cells(n);let p;if(u===It.Mesh?h.meshIsBind===0?p=this.playerLib.TransformMeshVertsLocal(ce.GetMeshVerts(_,h,o),h.index,t):p=ce.GetMeshVerts(_,h,o):(p=u===It.Joint?new Float32Array(10):o,p=this.playerLib.TransformVertsLocal(ce.GetVerts(_,h,p),h.index,t)),h.flag1&it.VERTEX_TRANSFORM){const S=p[6],E=p[3*2+1],N=p[1*2+0],D=p[1*2+1],B=p[4*2+0],R=p[4*2+1],Z=p[2*2+0],Q=p[2*2+1],J=(S+B)*.5,G=(E+R)*.5,$=(S+N)*.5,j=(E+D)*.5,tt=(N+Z)*.5,nt=(D+Q)*.5,ht=(B+Z)*.5,H=(R+Q)*.5,st=ce.CoordinateGetDiagonalIntersection(p[0],p[1],J,G,ht,H,$,j,tt,nt,this._CoordinateGetDiagonalIntersectionVec2);p[0]=st[0],p[1]=st[1]}const I=p[0],P=p[1];for(let S=0;S>>24)/255;F.alpha=F.alpha*S}const w=this.alphaBlendType[a];(w==="multiply"||w==="screen")&&(F.alpha=1),u!==It.Mask&&this.addChild(F);break}case It.Nulltype:{const F=m,C=this.playerLib.InheritOpacity(1,h.index,t);F.alpha=C*h.localopacity/255;const o=this.playerLib.TransformVerts(ce.GetDummyVerts(),h.index,t),_=o[0],p=o[1];F.position.set(_,p);const I=Math.atan2(o[5]-o[3],o[4]-o[2]),P=Math.atan2(o[7]-o[3],o[6]-o[2]);F.rotation=I,F.skew.x=P-I-Math.PI/2;break}}}}ChangeInstanceAnime(t,e,r,s,l=null){let a=!1;if(this.animePackName!==null&&this.animeName!==null){let h=this.playerLib.animePackData,n=h.partsLength();for(let m=0;m0){const l=new Float32Array(s-2),a=r.uv(1);for(let g=2;g{r.ssWebPlayer&&r.ssWebPlayer.playEndCallback&&r.ssWebPlayer.playEndCallback(r)},this.onUserDataCallback=s=>{r.ssWebPlayer&&r.ssWebPlayer.onUpdateCallback&&r.ssWebPlayer.onUpdateCallback(r)},this.setupCurrentAnimationFrameDataMap()}getCurrentAnimationFrameDataMap(){return this.currentAnimationFrameDataMap}setupCurrentAnimationFrameDataMap(){const t=this.playerLib.animationData;let e={};const r=t.userDataLength();for(let s=0;s @@ -17,5 +17,5 @@ var ss6PlayerViewer=function(Ae,wt){"use strict";const be=[5,10,15,20,25,50,75,1 JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE - */(function(L,t){(function(e){L.exports=e()})(function(){return function e(r,s,l){function a(m,c){if(!s[m]){if(!r[m]){var _=typeof ke=="function"&&ke;if(!c&&_)return _(m,!0);if(h)return h(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var v=s[m]={exports:{}};r[m][0].call(v.exports,function(F){var C=r[m][1][F];return a(C||F)},v,v.exports,e,r,s,l)}return s[m].exports}for(var h=typeof ke=="function"&&ke,n=0;n>2,F=(c&3)<<4|_>>4,C=I>1?(_&15)<<2|g>>6:64,o=I>2?g&63:64,m.push(h.charAt(v)+h.charAt(F)+h.charAt(C)+h.charAt(o));return m.join("")},s.decode=function(n){var m,c,_,g,v,F,C,o=0,u=0,p="data:";if(n.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");n=n.replace(/[^A-Za-z0-9+/=]/g,"");var I=n.length*3/4;if(n.charAt(n.length-1)===h.charAt(64)&&I--,n.charAt(n.length-2)===h.charAt(64)&&I--,I%1!==0)throw new Error("Invalid base64 input, bad content length.");var P;for(a.uint8array?P=new Uint8Array(I|0):P=new Array(I|0);o>4,c=(v&15)<<4|F>>2,_=(F&3)<<6|C,P[u++]=m,F!==64&&(P[u++]=c),C!==64&&(P[u++]=_);return P}},{"./support":30,"./utils":32}],2:[function(e,r,s){var l=e("./external"),a=e("./stream/DataWorker"),h=e("./stream/Crc32Probe"),n=e("./stream/DataLengthProbe");function m(c,_,g,v,F){this.compressedSize=c,this.uncompressedSize=_,this.crc32=g,this.compression=v,this.compressedContent=F}m.prototype={getContentWorker:function(){var c=new a(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),_=this;return c.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new a(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(c,_,g){return c.pipe(new h).pipe(new n("uncompressedSize")).pipe(_.compressWorker(g)).pipe(new n("compressedSize")).withStreamInfo("compression",_)},r.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,r,s){var l=e("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},s.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,r,s){var l=e("./utils");function a(){for(var c,_=[],g=0;g<256;g++){c=g;for(var v=0;v<8;v++)c=c&1?3988292384^c>>>1:c>>>1;_[g]=c}return _}var h=a();function n(c,_,g,v){var F=h,C=v+g;c=c^-1;for(var o=v;o>>8^F[(c^_[o])&255];return c^-1}function m(c,_,g,v){var F=h,C=v+g;c=c^-1;for(var o=v;o>>8^F[(c^_.charCodeAt(o))&255];return c^-1}r.exports=function(_,g){if(typeof _>"u"||!_.length)return 0;var v=l.getTypeOf(_)!=="string";return v?n(g|0,_,_.length,0):m(g|0,_,_.length,0)}},{"./utils":32}],5:[function(e,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(e,r,s){var l=null;typeof Promise<"u"?l=Promise:l=e("lie"),r.exports={Promise:l}},{lie:37}],7:[function(e,r,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=e("pako"),h=e("./utils"),n=e("./stream/GenericWorker"),m=l?"uint8array":"array";s.magic="\b\0";function c(_,g){n.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=g,this.meta={}}h.inherits(c,n),c.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(m,_.data),!1)},c.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(g){_.push({data:g,meta:_.meta})}},s.compressWorker=function(_){return new c("Deflate",_)},s.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,s){var l=e("../utils"),a=e("../stream/GenericWorker"),h=e("../utf8"),n=e("../crc32"),m=e("../signature"),c=function(u,p){var I="",P;for(P=0;P>>8;return I},_=function(u,p){var I=u;return u||(I=p?16893:33204),(I&65535)<<16},g=function(u){return(u||0)&63},v=function(u,p,I,P,y,w){var S=u.file,E=u.compression,N=w!==h.utf8encode,D=l.transformTo("string",w(S.name)),B=l.transformTo("string",h.utf8encode(S.name)),R=S.comment,j=l.transformTo("string",w(R)),Q=l.transformTo("string",h.utf8encode(R)),J=B.length!==S.name.length,G=Q.length!==R.length,$,Z,tt="",nt="",ht="",H=S.dir,st=S.date,ft={crc32:0,compressedSize:0,uncompressedSize:0};(!p||I)&&(ft.crc32=u.crc32,ft.compressedSize=u.compressedSize,ft.uncompressedSize=u.uncompressedSize);var Dt=0;p&&(Dt|=8),!N&&(J||G)&&(Dt|=2048);var kt=0,vt=0;H&&(kt|=16),y==="UNIX"?(vt=798,kt|=_(S.unixPermissions,H)):(vt=20,kt|=g(S.dosPermissions)),$=st.getUTCHours(),$=$<<6,$=$|st.getUTCMinutes(),$=$<<5,$=$|st.getUTCSeconds()/2,Z=st.getUTCFullYear()-1980,Z=Z<<4,Z=Z|st.getUTCMonth()+1,Z=Z<<5,Z=Z|st.getUTCDate(),J&&(nt=c(1,1)+c(n(D),4)+B,tt+="up"+c(nt.length,2)+nt),G&&(ht=c(1,1)+c(n(j),4)+Q,tt+="uc"+c(ht.length,2)+ht);var at="";at+=` -\0`,at+=c(Dt,2),at+=E.magic,at+=c($,2),at+=c(Z,2),at+=c(ft.crc32,4),at+=c(ft.compressedSize,4),at+=c(ft.uncompressedSize,4),at+=c(D.length,2),at+=c(tt.length,2);var St=m.LOCAL_FILE_HEADER+at+D+tt,gt=m.CENTRAL_FILE_HEADER+c(vt,2)+at+c(j.length,2)+"\0\0\0\0"+c(kt,4)+c(P,4)+D+tt+j;return{fileRecord:St,dirRecord:gt}},F=function(u,p,I,P,y){var w="",S=l.transformTo("string",y(P));return w=m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(u,2)+c(u,2)+c(p,4)+c(I,4)+c(S.length,2)+S,w},C=function(u){var p="";return p=m.DATA_DESCRIPTOR+c(u.crc32,4)+c(u.compressedSize,4)+c(u.uncompressedSize,4),p};function o(u,p,I,P){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=I,this.encodeFileName=P,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(o,a),o.prototype.push=function(u){var p=u.meta.percent||0,I=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,a.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:I?(p+100*(I-P-1))/I:100}}))},o.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var p=this.streamFiles&&!u.file.dir;if(p){var I=v(u,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},o.prototype.closedSource=function(u){this.accumulate=!1;var p=this.streamFiles&&!u.file.dir,I=v(u,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(I.dirRecord),p)this.push({data:C(u),meta:{percent:100}});else for(this.push({data:I.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var u=this.bytesWritten,p=0;p"u")&&(D.binary=!B);var R=w instanceof c&&w.uncompressedSize===0;(R||D.dir||!w||w.length===0)&&(D.base64=!1,D.binary=!0,w="",D.compression="STORE",E="string");var j=null;w instanceof c||w instanceof h?j=w:v.isNode&&v.isStream(w)?j=new F(y,w):j=a.prepareContent(y,w,D.binary,D.optimizedBinaryString,D.base64);var Q=new _(y,j,D);this.files[y]=Q},o=function(y){y.slice(-1)==="/"&&(y=y.substring(0,y.length-1));var w=y.lastIndexOf("/");return w>0?y.substring(0,w):""},u=function(y){return y.slice(-1)!=="/"&&(y+="/"),y},p=function(y,w){return w=typeof w<"u"?w:m.createFolders,y=u(y),this.files[y]||C.call(this,y,null,{dir:!0,createFolders:w}),this.files[y]};function I(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(y){var w,S,E;for(w in this.files)E=this.files[w],S=w.slice(this.root.length,w.length),S&&w.slice(0,this.root.length)===this.root&&y(S,E)},filter:function(y){var w=[];return this.forEach(function(S,E){y(S,E)&&w.push(E)}),w},file:function(y,w,S){if(arguments.length===1)if(I(y)){var E=y;return this.filter(function(D,B){return!B.dir&&E.test(D)})}else{var N=this.files[this.root+y];return N&&!N.dir?N:null}else y=this.root+y,C.call(this,y,w,S);return this},folder:function(y){if(!y)return this;if(I(y))return this.filter(function(N,D){return D.dir&&y.test(N)});var w=this.root+y,S=p.call(this,w),E=this.clone();return E.root=S.name,E},remove:function(y){y=this.root+y;var w=this.files[y];if(w||(y.slice(-1)!=="/"&&(y+="/"),w=this.files[y]),w&&!w.dir)delete this.files[y];else for(var S=this.filter(function(N,D){return D.name.slice(0,y.length)===y}),E=0;E=0;--v)if(this.data[v]===m&&this.data[v+1]===c&&this.data[v+2]===_&&this.data[v+3]===g)return v-this.zero;return-1},h.prototype.readAndCheckSignature=function(n){var m=n.charCodeAt(0),c=n.charCodeAt(1),_=n.charCodeAt(2),g=n.charCodeAt(3),v=this.readData(4);return m===v[0]&&c===v[1]&&_===v[2]&&g===v[3]},h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./DataReader":18}],18:[function(e,r,s){var l=e("../utils");function a(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length=this.index;m--)n=(n<<8)+this.byteAt(m);return this.index+=h,n},readString:function(h){return l.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC((h>>25&127)+1980,(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(h&31)<<1))}},r.exports=a},{"../utils":32}],19:[function(e,r,s){var l=e("./Uint8ArrayReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,s){var l=e("./DataReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},h.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},h.prototype.readAndCheckSignature=function(n){var m=this.readData(4);return n===m},h.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./DataReader":18}],21:[function(e,r,s){var l=e("./ArrayReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,s){var l=e("../utils"),a=e("../support"),h=e("./ArrayReader"),n=e("./StringReader"),m=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");r.exports=function(_){var g=l.getTypeOf(_);return l.checkSupport(g),g==="string"&&!a.uint8array?new n(_):g==="nodebuffer"?new m(_):a.uint8array?new c(l.transformTo("uint8array",_)):new h(l.transformTo("array",_))}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,s){var l=e("./GenericWorker"),a=e("../utils");function h(n){l.call(this,"ConvertWorker to "+n),this.destType=n}a.inherits(h,l),h.prototype.processChunk=function(n){this.push({data:a.transformTo(this.destType,n.data),meta:n.meta})},r.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,s){var l=e("./GenericWorker"),a=e("../crc32"),h=e("../utils");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}h.inherits(n,l),n.prototype.processChunk=function(m){this.streamInfo.crc32=a(m.data,this.streamInfo.crc32||0),this.push(m)},r.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,s){var l=e("../utils"),a=e("./GenericWorker");function h(n){a.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}l.inherits(h,a),h.prototype.processChunk=function(n){if(n){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+n.data.length}a.prototype.processChunk.call(this,n)},r.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,s){var l=e("../utils"),a=e("./GenericWorker"),h=16*1024;function n(m){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(_){c.dataIsReady=!0,c.data=_,c.max=_&&_.length||0,c.type=l.getTypeOf(_),c.isPaused||c._tickAndRepeat()},function(_){c.error(_)})}l.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return a.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0):!1},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=h,c=null,_=Math.min(this.max,this.index+m);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,_);break;case"uint8array":c=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":c=this.data.slice(this.index,_);break}return this.index=_,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,s){function l(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return this.isFinished?!1:(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,h){return this._listeners[a].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,h){if(this._listeners[a])for(var n=0;n "+a:a}},r.exports=l},{}],29:[function(e,r,s){var l=e("../utils"),a=e("./ConvertWorker"),h=e("./GenericWorker"),n=e("../base64"),m=e("../support"),c=e("../external"),_=null;if(m.nodestream)try{_=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function g(o,u,p){switch(o){case"blob":return l.newBlob(l.transformTo("arraybuffer",u),p);case"base64":return n.encode(u);default:return l.transformTo(o,u)}}function v(o,u){var p,I=0,P=null,y=0;for(p=0;p"u")s.blob=!1;else{var l=new ArrayBuffer(0);try{s.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var a=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,h=new a;h.append(l),s.blob=h.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!e("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,s){for(var l=e("./utils"),a=e("./support"),h=e("./nodejsUtils"),n=e("./stream/GenericWorker"),m=new Array(256),c=0;c<256;c++)m[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;m[254]=m[254]=1;var _=function(o){var u,p,I,P,y,w=o.length,S=0;for(P=0;P>>6,u[y++]=128|p&63):p<65536?(u[y++]=224|p>>>12,u[y++]=128|p>>>6&63,u[y++]=128|p&63):(u[y++]=240|p>>>18,u[y++]=128|p>>>12&63,u[y++]=128|p>>>6&63,u[y++]=128|p&63);return u},g=function(o,u){var p;for(u=u||o.length,u>o.length&&(u=o.length),p=u-1;p>=0&&(o[p]&192)===128;)p--;return p<0||p===0?u:p+m[o[p]]>u?p:u},v=function(o){var u,p,I,P,y=o.length,w=new Array(y*2);for(p=0,u=0;u4){w[p++]=65533,u+=P-1;continue}for(I&=P===2?31:P===3?15:7;P>1&&u1){w[p++]=65533;continue}I<65536?w[p++]=I:(I-=65536,w[p++]=55296|I>>10&1023,w[p++]=56320|I&1023)}return w.length!==p&&(w.subarray?w=w.subarray(0,p):w.length=p),l.applyFromCharCode(w)};s.utf8encode=function(u){return a.nodebuffer?h.newBufferFrom(u,"utf-8"):_(u)},s.utf8decode=function(u){return a.nodebuffer?l.transformTo("nodebuffer",u).toString("utf-8"):(u=l.transformTo(a.uint8array?"uint8array":"array",u),v(u))};function F(){n.call(this,"utf-8 decode"),this.leftOver=null}l.inherits(F,n),F.prototype.processChunk=function(o){var u=l.transformTo(a.uint8array?"uint8array":"array",o.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var p=u;u=new Uint8Array(p.length+this.leftOver.length),u.set(this.leftOver,0),u.set(p,this.leftOver.length)}else u=this.leftOver.concat(u);this.leftOver=null}var I=g(u),P=u;I!==u.length&&(a.uint8array?(P=u.subarray(0,I),this.leftOver=u.subarray(I,u.length)):(P=u.slice(0,I),this.leftOver=u.slice(I,u.length))),this.push({data:s.utf8decode(P),meta:o.meta})},F.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=F;function C(){n.call(this,"utf-8 encode")}l.inherits(C,n),C.prototype.processChunk=function(o){this.push({data:s.utf8encode(o.data),meta:o.meta})},s.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,s){var l=e("./support"),a=e("./base64"),h=e("./nodejsUtils"),n=e("./external");e("setimmediate");function m(o){var u=null;return l.uint8array?u=new Uint8Array(o.length):u=new Array(o.length),_(o,u)}s.newBlob=function(o,u){s.checkSupport("blob");try{return new Blob([o],{type:u})}catch{try{var p=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,I=new p;return I.append(o),I.getBlob(u)}catch{throw new Error("Bug : can't construct the Blob.")}}};function c(o){return o}function _(o,u){for(var p=0;p1;)try{return g.stringifyByChunk(o,p,u)}catch{u=Math.floor(u/2)}return g.stringifyByChar(o)}s.applyFromCharCode=v;function F(o,u){for(var p=0;p"u"&&(o[p]=arguments[u][p]);return o},s.prepareContent=function(o,u,p,I,P){var y=n.Promise.resolve(u).then(function(w){var S=l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1);return S&&typeof FileReader<"u"?new n.Promise(function(E,N){var D=new FileReader;D.onload=function(B){E(B.target.result)},D.onerror=function(B){N(B.target.error)},D.readAsArrayBuffer(w)}):w});return y.then(function(w){var S=s.getTypeOf(w);return S?(S==="arraybuffer"?w=s.transformTo("uint8array",w):S==="string"&&(P?w=a.decode(w):p&&I!==!0&&(w=m(w))),w):n.Promise.reject(new Error("Can't read the data of '"+o+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,s){var l=e("./reader/readerFor"),a=e("./utils"),h=e("./signature"),n=e("./zipEntry"),m=e("./support");function c(_){this.files=[],this.loadOptions=_}c.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(g)+", expected "+a.pretty(_)+")")}},isSignature:function(_,g){var v=this.reader.index;this.reader.setIndex(_);var F=this.reader.readString(4),C=F===g;return this.reader.setIndex(v),C},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var _=this.reader.readData(this.zipCommentLength),g=m.uint8array?"uint8array":"array",v=a.transformTo(g,_);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var _=this.zip64EndOfCentralSize-44,g=0,v,F,C;g<_;)v=this.reader.readInt(2),F=this.reader.readInt(4),C=this.reader.readData(F),this.zip64ExtensibleData[v]={id:v,length:F,value:C}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,g;for(_=0;_0)this.isSignature(v,h.CENTRAL_FILE_HEADER)||(this.reader.zero=C);else if(C<0)throw new Error("Corrupted zip: missing "+Math.abs(C)+" bytes.")},prepareReader:function(_){this.reader=l(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,s){var l=e("./reader/readerFor"),a=e("./utils"),h=e("./compressedObject"),n=e("./crc32"),m=e("./utf8"),c=e("./compressions"),_=e("./support"),g=0,v=3,F=function(o){for(var u in c)if(Object.prototype.hasOwnProperty.call(c,u)&&c[u].magic===o)return c[u];return null};function C(o,u){this.options=o,this.loadOptions=u}C.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(o){var u,p;if(o.skip(22),this.fileNameLength=o.readInt(2),p=o.readInt(2),this.fileName=o.readData(this.fileNameLength),o.skip(p),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(u=F(this.compressionMethod),u===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,u,o.readData(this.compressedSize))},readCentralPart:function(o){this.versionMadeBy=o.readInt(2),o.skip(2),this.bitFlag=o.readInt(2),this.compressionMethod=o.readString(2),this.date=o.readDate(),this.crc32=o.readInt(4),this.compressedSize=o.readInt(4),this.uncompressedSize=o.readInt(4);var u=o.readInt(2);if(this.extraFieldsLength=o.readInt(2),this.fileCommentLength=o.readInt(2),this.diskNumberStart=o.readInt(2),this.internalFileAttributes=o.readInt(2),this.externalFileAttributes=o.readInt(4),this.localHeaderOffset=o.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");o.skip(u),this.readExtraFields(o),this.parseZIP64ExtraField(o),this.fileComment=o.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var o=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),o===g&&(this.dosPermissions=this.externalFileAttributes&63),o===v&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var o=l(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=o.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=o.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=o.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=o.readInt(4))}},readExtraFields:function(o){var u=o.index+this.extraFieldsLength,p,I,P;for(this.extraFields||(this.extraFields={});o.index+40?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var N=l.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(N!==v)throw new Error(n[N]);if(E.header&&l.deflateSetHeader(this.strm,E.header),E.dictionary){var D;if(typeof E.dictionary=="string"?D=h.string2buf(E.dictionary):c.call(E.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(E.dictionary):D=E.dictionary,N=l.deflateSetDictionary(this.strm,D),N!==v)throw new Error(n[N]);this._dict_set=!0}}I.prototype.push=function(S,E){var N=this.strm,D=this.options.chunkSize,B,R;if(this.ended)return!1;R=E===~~E?E:E===!0?g:_,typeof S=="string"?N.input=h.string2buf(S):c.call(S)==="[object ArrayBuffer]"?N.input=new Uint8Array(S):N.input=S,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(D),N.next_out=0,N.avail_out=D),B=l.deflate(N,R),B!==F&&B!==v)return this.onEnd(B),this.ended=!0,!1;(N.avail_out===0||N.avail_in===0&&(R===g||R===C))&&(this.options.to==="string"?this.onData(h.buf2binstring(a.shrinkBuf(N.output,N.next_out))):this.onData(a.shrinkBuf(N.output,N.next_out)))}while((N.avail_in>0||N.avail_out===0)&&B!==F);return R===g?(B=l.deflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===v):(R===C&&(this.onEnd(v),N.avail_out=0),!0)},I.prototype.onData=function(S){this.chunks.push(S)},I.prototype.onEnd=function(S){S===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg};function P(S,E){var N=new I(E);if(N.push(S,!0),N.err)throw N.msg||n[N.err];return N.result}function y(S,E){return E=E||{},E.raw=!0,P(S,E)}function w(S,E){return E=E||{},E.gzip=!0,P(S,E)}s.Deflate=I,s.deflate=P,s.deflateRaw=y,s.gzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,s){var l=e("./zlib/inflate"),a=e("./utils/common"),h=e("./utils/strings"),n=e("./zlib/constants"),m=e("./zlib/messages"),c=e("./zlib/zstream"),_=e("./zlib/gzheader"),g=Object.prototype.toString;function v(o){if(!(this instanceof v))return new v(o);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},o||{});var u=this.options;u.raw&&u.windowBits>=0&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),u.windowBits>=0&&u.windowBits<16&&!(o&&o.windowBits)&&(u.windowBits+=32),u.windowBits>15&&u.windowBits<48&&(u.windowBits&15||(u.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var p=l.inflateInit2(this.strm,u.windowBits);if(p!==n.Z_OK)throw new Error(m[p]);this.header=new _,l.inflateGetHeader(this.strm,this.header)}v.prototype.push=function(o,u){var p=this.strm,I=this.options.chunkSize,P=this.options.dictionary,y,w,S,E,N,D,B=!1;if(this.ended)return!1;w=u===~~u?u:u===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof o=="string"?p.input=h.binstring2buf(o):g.call(o)==="[object ArrayBuffer]"?p.input=new Uint8Array(o):p.input=o,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new a.Buf8(I),p.next_out=0,p.avail_out=I),y=l.inflate(p,n.Z_NO_FLUSH),y===n.Z_NEED_DICT&&P&&(typeof P=="string"?D=h.string2buf(P):g.call(P)==="[object ArrayBuffer]"?D=new Uint8Array(P):D=P,y=l.inflateSetDictionary(this.strm,D)),y===n.Z_BUF_ERROR&&B===!0&&(y=n.Z_OK,B=!1),y!==n.Z_STREAM_END&&y!==n.Z_OK)return this.onEnd(y),this.ended=!0,!1;p.next_out&&(p.avail_out===0||y===n.Z_STREAM_END||p.avail_in===0&&(w===n.Z_FINISH||w===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(S=h.utf8border(p.output,p.next_out),E=p.next_out-S,N=h.buf2string(p.output,S),p.next_out=E,p.avail_out=I-E,E&&a.arraySet(p.output,p.output,S,E,0),this.onData(N)):this.onData(a.shrinkBuf(p.output,p.next_out))),p.avail_in===0&&p.avail_out===0&&(B=!0)}while((p.avail_in>0||p.avail_out===0)&&y!==n.Z_STREAM_END);return y===n.Z_STREAM_END&&(w=n.Z_FINISH),w===n.Z_FINISH?(y=l.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===n.Z_OK):(w===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),p.avail_out=0),!0)},v.prototype.onData=function(o){this.chunks.push(o)},v.prototype.onEnd=function(o){o===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function F(o,u){var p=new v(u);if(p.push(o,!0),p.err)throw p.msg||m[p.err];return p.result}function C(o,u){return u=u||{},u.raw=!0,F(o,u)}s.Inflate=v,s.inflate=F,s.inflateRaw=C,s.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(n){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var c=m.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var _ in c)c.hasOwnProperty(_)&&(n[_]=c[_])}}return n},s.shrinkBuf=function(n,m){return n.length===m?n:n.subarray?n.subarray(0,m):(n.length=m,n)};var a={arraySet:function(n,m,c,_,g){if(m.subarray&&n.subarray){n.set(m.subarray(c,c+_),g);return}for(var v=0;v<_;v++)n[g+v]=m[c+v]},flattenChunks:function(n){var m,c,_,g,v,F;for(_=0,m=0,c=n.length;m=252?6:m>=248?5:m>=240?4:m>=224?3:m>=192?2:1;n[254]=n[254]=1,s.string2buf=function(_){var g,v,F,C,o,u=_.length,p=0;for(C=0;C>>6,g[o++]=128|v&63):v<65536?(g[o++]=224|v>>>12,g[o++]=128|v>>>6&63,g[o++]=128|v&63):(g[o++]=240|v>>>18,g[o++]=128|v>>>12&63,g[o++]=128|v>>>6&63,g[o++]=128|v&63);return g};function c(_,g){if(g<65537&&(_.subarray&&h||!_.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(_,g));for(var v="",F=0;F4){p[F++]=65533,v+=o-1;continue}for(C&=o===2?31:o===3?15:7;o>1&&v1){p[F++]=65533;continue}C<65536?p[F++]=C:(C-=65536,p[F++]=55296|C>>10&1023,p[F++]=56320|C&1023)}return c(p,F)},s.utf8border=function(_,g){var v;for(g=g||_.length,g>_.length&&(g=_.length),v=g-1;v>=0&&(_[v]&192)===128;)v--;return v<0||v===0?g:v+n[_[v]]>g?v:g}},{"./common":41}],43:[function(e,r,s){function l(a,h,n,m){for(var c=a&65535|0,_=a>>>16&65535|0,g=0;n!==0;){g=n>2e3?2e3:n,n-=g;do c=c+h[m++]|0,_=_+c|0;while(--g);c%=65521,_%=65521}return c|_<<16|0}r.exports=l},{}],44:[function(e,r,s){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,r,s){function l(){for(var n,m=[],c=0;c<256;c++){n=c;for(var _=0;_<8;_++)n=n&1?3988292384^n>>>1:n>>>1;m[c]=n}return m}var a=l();function h(n,m,c,_){var g=a,v=_+c;n^=-1;for(var F=_;F>>8^g[(n^m[F])&255];return n^-1}r.exports=h},{}],46:[function(e,r,s){var l=e("../utils/common"),a=e("./trees"),h=e("./adler32"),n=e("./crc32"),m=e("./messages"),c=0,_=1,g=3,v=4,F=5,C=0,o=1,u=-2,p=-3,I=-5,P=-1,y=1,w=2,S=3,E=4,N=0,D=2,B=8,R=9,j=15,Q=8,J=29,G=256,$=G+1+J,Z=30,tt=19,nt=2*$+1,ht=15,H=3,st=258,ft=st+H+1,Dt=32,kt=42,vt=69,at=73,St=91,gt=103,dt=113,bt=666,ct=1,At=2,Mt=3,Bt=4,ut=3;function Nt(i,A){return i.msg=m[A],A}function he(i){return(i<<1)-(i>4?9:0)}function Vt(i){for(var A=i.length;--A>=0;)i[A]=0}function Ut(i){var A=i.state,T=A.pending;T>i.avail_out&&(T=i.avail_out),T!==0&&(l.arraySet(i.output,A.pending_buf,A.pending_out,T,i.next_out),i.next_out+=T,A.pending_out+=T,i.total_out+=T,i.avail_out-=T,A.pending-=T,A.pending===0&&(A.pending_out=0))}function _t(i,A){a._tr_flush_block(i,i.block_start>=0?i.block_start:-1,i.strstart-i.block_start,A),i.block_start=i.strstart,Ut(i.strm)}function rt(i,A){i.pending_buf[i.pending++]=A}function Zt(i,A){i.pending_buf[i.pending++]=A>>>8&255,i.pending_buf[i.pending++]=A&255}function de(i,A,T,d){var x=i.avail_in;return x>d&&(x=d),x===0?0:(i.avail_in-=x,l.arraySet(A,i.input,i.next_in,x,T),i.state.wrap===1?i.adler=h(i.adler,A,x,T):i.state.wrap===2&&(i.adler=n(i.adler,A,x,T)),i.next_in+=x,i.total_in+=x,x)}function ae(i,A){var T=i.max_chain_length,d=i.strstart,x,O,K=i.prev_length,Y=i.nice_match,W=i.strstart>i.w_size-ft?i.strstart-(i.w_size-ft):0,ot=i.window,qt=i.w_mask,mt=i.prev,lt=i.strstart+st,xt=ot[d+K-1],Tt=ot[d+K];i.prev_length>=i.good_match&&(T>>=2),Y>i.lookahead&&(Y=i.lookahead);do if(x=A,!(ot[x+K]!==Tt||ot[x+K-1]!==xt||ot[x]!==ot[d]||ot[++x]!==ot[d+1])){d+=2,x++;do;while(ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&dK){if(i.match_start=A,K=O,O>=Y)break;xt=ot[d+K-1],Tt=ot[d+K]}}while((A=mt[A&qt])>W&&--T!==0);return K<=i.lookahead?K:i.lookahead}function jt(i){var A=i.w_size,T,d,x,O,K;do{if(O=i.window_size-i.lookahead-i.strstart,i.strstart>=A+(A-ft)){l.arraySet(i.window,i.window,A,A,0),i.match_start-=A,i.strstart-=A,i.block_start-=A,d=i.hash_size,T=d;do x=i.head[--T],i.head[T]=x>=A?x-A:0;while(--d);d=A,T=d;do x=i.prev[--T],i.prev[T]=x>=A?x-A:0;while(--d);O+=A}if(i.strm.avail_in===0)break;if(d=de(i.strm,i.window,i.strstart+i.lookahead,O),i.lookahead+=d,i.lookahead+i.insert>=H)for(K=i.strstart-i.insert,i.ins_h=i.window[K],i.ins_h=(i.ins_h<i.pending_buf_size-5&&(T=i.pending_buf_size-5);;){if(i.lookahead<=1){if(jt(i),i.lookahead===0&&A===c)return ct;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var d=i.block_start+T;if((i.strstart===0||i.strstart>=d)&&(i.lookahead=i.strstart-d,i.strstart=d,_t(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-ft&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Mt:Bt):(i.strstart>i.block_start&&(_t(i,!1),i.strm.avail_out===0),ct)}function ne(i,A){for(var T,d;;){if(i.lookahead=H&&(i.ins_h=(i.ins_h<=H)if(d=a._tr_tally(i,i.strstart-i.match_start,i.match_length-H),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=H){i.match_length--;do i.strstart++,i.ins_h=(i.ins_h<=H&&(i.ins_h=(i.ins_h<4096)&&(i.match_length=H-1)),i.prev_length>=H&&i.match_length<=i.prev_length){x=i.strstart+i.lookahead-H,d=a._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-H),i.lookahead-=i.prev_length-1,i.prev_length-=2;do++i.strstart<=x&&(i.ins_h=(i.ins_h<=H&&i.strstart>0&&(x=i.strstart-1,d=K[x],d===K[++x]&&d===K[++x]&&d===K[++x])){O=i.strstart+st;do;while(d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&xi.lookahead&&(i.match_length=i.lookahead)}if(i.match_length>=H?(T=a._tr_tally(i,1,i.match_length-H),i.lookahead-=i.match_length,i.strstart+=i.match_length,i.match_length=0):(T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++),T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Mt:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function se(i,A){for(var T;;){if(i.lookahead===0&&(jt(i),i.lookahead===0)){if(A===c)return ct;break}if(i.match_length=0,T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++,T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Mt:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function Pt(i,A,T,d,x){this.good_length=i,this.max_lazy=A,this.nice_length=T,this.max_chain=d,this.func=x}var Gt;Gt=[new Pt(0,0,0,0,ue),new Pt(4,4,8,4,ne),new Pt(4,5,16,8,ne),new Pt(4,6,32,32,ne),new Pt(4,4,16,16,Wt),new Pt(8,16,32,32,Wt),new Pt(8,16,128,128,Wt),new Pt(8,32,128,256,Wt),new Pt(32,128,258,1024,Wt),new Pt(32,258,258,4096,Wt)];function pe(i){i.window_size=2*i.w_size,Vt(i.head),i.max_lazy_match=Gt[i.level].max_lazy,i.good_match=Gt[i.level].good_length,i.nice_match=Gt[i.level].nice_length,i.max_chain_length=Gt[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=H-1,i.match_available=0,i.ins_h=0}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=B,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(nt*2),this.dyn_dtree=new l.Buf16((2*Z+1)*2),this.bl_tree=new l.Buf16((2*tt+1)*2),Vt(this.dyn_ltree),Vt(this.dyn_dtree),Vt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(ht+1),this.heap=new l.Buf16(2*$+1),Vt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*$+1),Vt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(i){var A;return!i||!i.state?Nt(i,u):(i.total_in=i.total_out=0,i.data_type=D,A=i.state,A.pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?kt:dt,i.adler=A.wrap===2?0:1,A.last_flush=c,a._tr_init(A),C)}function V(i){var A=U(i);return A===C&&pe(i.state),A}function X(i,A){return!i||!i.state||i.state.wrap!==2?u:(i.state.gzhead=A,C)}function k(i,A,T,d,x,O){if(!i)return u;var K=1;if(A===P&&(A=6),d<0?(K=0,d=-d):d>15&&(K=2,d-=16),x<1||x>R||T!==B||d<8||d>15||A<0||A>9||O<0||O>E)return Nt(i,u);d===8&&(d=9);var Y=new b;return i.state=Y,Y.strm=i,Y.wrap=K,Y.gzhead=null,Y.w_bits=d,Y.w_size=1<F||A<0)return i?Nt(i,u):u;if(d=i.state,!i.output||!i.input&&i.avail_in!==0||d.status===bt&&A!==v)return Nt(i,i.avail_out===0?I:u);if(d.strm=i,T=d.last_flush,d.last_flush=A,d.status===kt)if(d.wrap===2)i.adler=0,rt(d,31),rt(d,139),rt(d,8),d.gzhead?(rt(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),rt(d,d.gzhead.time&255),rt(d,d.gzhead.time>>8&255),rt(d,d.gzhead.time>>16&255),rt(d,d.gzhead.time>>24&255),rt(d,d.level===9?2:d.strategy>=w||d.level<2?4:0),rt(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(rt(d,d.gzhead.extra.length&255),rt(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(i.adler=n(i.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=vt):(rt(d,0),rt(d,0),rt(d,0),rt(d,0),rt(d,0),rt(d,d.level===9?2:d.strategy>=w||d.level<2?4:0),rt(d,ut),d.status=dt);else{var K=B+(d.w_bits-8<<4)<<8,Y=-1;d.strategy>=w||d.level<2?Y=0:d.level<6?Y=1:d.level===6?Y=2:Y=3,K|=Y<<6,d.strstart!==0&&(K|=Dt),K+=31-K%31,d.status=dt,Zt(d,K),d.strstart!==0&&(Zt(d,i.adler>>>16),Zt(d,i.adler&65535)),i.adler=1}if(d.status===vt)if(d.gzhead.extra){for(x=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Ut(i),x=d.pending,d.pending===d.pending_buf_size));)rt(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=at)}else d.status=at;if(d.status===at)if(d.gzhead.name){x=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Ut(i),x=d.pending,d.pending===d.pending_buf_size)){O=1;break}d.gzindexx&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),O===0&&(d.gzindex=0,d.status=St)}else d.status=St;if(d.status===St)if(d.gzhead.comment){x=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Ut(i),x=d.pending,d.pending===d.pending_buf_size)){O=1;break}d.gzindexx&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),O===0&&(d.status=gt)}else d.status=gt;if(d.status===gt&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&Ut(i),d.pending+2<=d.pending_buf_size&&(rt(d,i.adler&255),rt(d,i.adler>>8&255),i.adler=0,d.status=dt)):d.status=dt),d.pending!==0){if(Ut(i),i.avail_out===0)return d.last_flush=-1,C}else if(i.avail_in===0&&he(A)<=he(T)&&A!==v)return Nt(i,I);if(d.status===bt&&i.avail_in!==0)return Nt(i,I);if(i.avail_in!==0||d.lookahead!==0||A!==c&&d.status!==bt){var W=d.strategy===w?se(d,A):d.strategy===S?_e(d,A):Gt[d.level].func(d,A);if((W===Mt||W===Bt)&&(d.status=bt),W===ct||W===Mt)return i.avail_out===0&&(d.last_flush=-1),C;if(W===At&&(A===_?a._tr_align(d):A!==F&&(a._tr_stored_block(d,0,0,!1),A===g&&(Vt(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),Ut(i),i.avail_out===0))return d.last_flush=-1,C}return A!==v?C:d.wrap<=0?o:(d.wrap===2?(rt(d,i.adler&255),rt(d,i.adler>>8&255),rt(d,i.adler>>16&255),rt(d,i.adler>>24&255),rt(d,i.total_in&255),rt(d,i.total_in>>8&255),rt(d,i.total_in>>16&255),rt(d,i.total_in>>24&255)):(Zt(d,i.adler>>>16),Zt(d,i.adler&65535)),Ut(i),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?C:o)}function M(i){var A;return!i||!i.state?u:(A=i.state.status,A!==kt&&A!==vt&&A!==at&&A!==St&&A!==gt&&A!==dt&&A!==bt?Nt(i,u):(i.state=null,A===dt?Nt(i,p):C))}function q(i,A){var T=A.length,d,x,O,K,Y,W,ot,qt;if(!i||!i.state||(d=i.state,K=d.wrap,K===2||K===1&&d.status!==kt||d.lookahead))return u;for(K===1&&(i.adler=h(i.adler,A,T,0)),d.wrap=0,T>=d.w_size&&(K===0&&(Vt(d.head),d.strstart=0,d.block_start=0,d.insert=0),qt=new l.Buf8(d.w_size),l.arraySet(qt,A,T-d.w_size,d.w_size,0),A=qt,T=d.w_size),Y=i.avail_in,W=i.next_in,ot=i.input,i.avail_in=T,i.next_in=0,i.input=A,jt(d);d.lookahead>=H;){x=d.strstart,O=d.lookahead-(H-1);do d.ins_h=(d.ins_h<>>24,y>>>=R,w-=R,R=B>>>16&255,R===0)Z[v++]=B&65535;else if(R&16){j=B&65535,R&=15,R&&(w>>=R,w-=R),w<15&&(y+=$[_++]<>>24,y>>>=R,w-=R,R=B>>>16&255,R&16){if(Q=B&65535,R&=15,wo){n.msg="invalid distance too far back",c.mode=l;break t}if(y>>>=R,w-=R,R=v-F,Q>R){if(R=Q-R,R>p&&c.sane){n.msg="invalid distance too far back",c.mode=l;break t}if(J=0,G=P,I===0){if(J+=u-R,R2;)Z[v++]=G[J++],Z[v++]=G[J++],Z[v++]=G[J++],j-=3;j&&(Z[v++]=G[J++],j>1&&(Z[v++]=G[J++]))}else{J=v-Q;do Z[v++]=Z[J++],Z[v++]=Z[J++],Z[v++]=Z[J++],j-=3;while(j>2);j&&(Z[v++]=Z[J++],j>1&&(Z[v++]=Z[J++]))}}else if(R&64){n.msg="invalid distance code",c.mode=l;break t}else{B=E[(B&65535)+(y&(1<>3,_-=j,w-=j<<3,y&=(1<>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function de(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(k){var z;return!k||!k.state?I:(z=k.state,k.total_in=k.total_out=z.total=0,k.msg="",z.wrap&&(k.adler=z.wrap&1),z.mode=E,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new l.Buf32(Vt),z.distcode=z.distdyn=new l.Buf32(Ut),z.sane=1,z.back=-1,o)}function jt(k){var z;return!k||!k.state?I:(z=k.state,z.wsize=0,z.whave=0,z.wnext=0,ae(k))}function ue(k,z){var f,M;return!k||!k.state||(M=k.state,z<0?(f=0,z=-z):(f=(z>>4)+1,z<48&&(z&=15)),z&&(z<8||z>15))?I:(M.window!==null&&M.wbits!==z&&(M.window=null),M.wrap=f,M.wbits=z,jt(k))}function ne(k,z){var f,M;return k?(M=new de,k.state=M,M.window=null,f=ue(k,z),f!==o&&(k.state=null),f):I}function Wt(k){return ne(k,rt)}var _e=!0,se,Pt;function Gt(k){if(_e){var z;for(se=new l.Buf32(512),Pt=new l.Buf32(32),z=0;z<144;)k.lens[z++]=8;for(;z<256;)k.lens[z++]=9;for(;z<280;)k.lens[z++]=7;for(;z<288;)k.lens[z++]=8;for(m(_,k.lens,0,288,se,0,k.work,{bits:9}),z=0;z<32;)k.lens[z++]=5;m(g,k.lens,0,32,Pt,0,k.work,{bits:5}),_e=!1}k.lencode=se,k.lenbits=9,k.distcode=Pt,k.distbits=5}function pe(k,z,f,M){var q,i=k.state;return i.window===null&&(i.wsize=1<=i.wsize?(l.arraySet(i.window,z,f-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(q=i.wsize-i.wnext,q>M&&(q=M),l.arraySet(i.window,z,f-M,q,i.wnext),M-=q,M?(l.arraySet(i.window,z,f-M,M,0),i.wnext=M,i.whave=i.wsize):(i.wnext+=q,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,f.check=h(f.check,Ct,2,0),x=0,O=0,f.mode=N;break}if(f.flags=0,f.head&&(f.head.done=!1),!(f.wrap&1)||(((x&255)<<8)+(x>>8))%31){k.msg="incorrect header check",f.mode=ut;break}if((x&15)!==S){k.msg="unknown compression method",f.mode=ut;break}if(x>>>=4,O-=4,yt=(x&15)+8,f.wbits===0)f.wbits=yt;else if(yt>f.wbits){k.msg="invalid window size",f.mode=ut;break}f.dmax=1<>8&1),f.flags&512&&(Ct[0]=x&255,Ct[1]=x>>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0,f.mode=D;case D:for(;O<32;){if(T===0)break t;T--,x+=M[i++]<>>8&255,Ct[2]=x>>>16&255,Ct[3]=x>>>24&255,f.check=h(f.check,Ct,4,0)),x=0,O=0,f.mode=B;case B:for(;O<16;){if(T===0)break t;T--,x+=M[i++]<>8),f.flags&512&&(Ct[0]=x&255,Ct[1]=x>>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0,f.mode=R;case R:if(f.flags&1024){for(;O<16;){if(T===0)break t;T--,x+=M[i++]<>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0}else f.head&&(f.head.extra=null);f.mode=j;case j:if(f.flags&1024&&(W=f.length,W>T&&(W=T),W&&(f.head&&(yt=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Array(f.head.extra_len)),l.arraySet(f.head.extra,M,i,W,yt)),f.flags&512&&(f.check=h(f.check,M,W,i)),T-=W,i+=W,f.length-=W),f.length))break t;f.length=0,f.mode=Q;case Q:if(f.flags&2048){if(T===0)break t;W=0;do yt=M[i+W++],f.head&&yt&&f.length<65536&&(f.head.name+=String.fromCharCode(yt));while(yt&&W>9&1,f.head.done=!0),k.adler=f.check=0,f.mode=tt;break;case $:for(;O<32;){if(T===0)break t;T--,x+=M[i++]<>>=O&7,O-=O&7,f.mode=At;break}for(;O<3;){if(T===0)break t;T--,x+=M[i++]<>>=1,O-=1,x&3){case 0:f.mode=ht;break;case 1:if(Gt(f),f.mode=vt,z===C){x>>>=2,O-=2;break t}break;case 2:f.mode=ft;break;case 3:k.msg="invalid block type",f.mode=ut}x>>>=2,O-=2;break;case ht:for(x>>>=O&7,O-=O&7;O<32;){if(T===0)break t;T--,x+=M[i++]<>>16^65535)){k.msg="invalid stored block lengths",f.mode=ut;break}if(f.length=x&65535,x=0,O=0,f.mode=H,z===C)break t;case H:f.mode=st;case st:if(W=f.length,W){if(W>T&&(W=T),W>d&&(W=d),W===0)break t;l.arraySet(q,M,i,W,A),T-=W,i+=W,d-=W,A+=W,f.length-=W;break}f.mode=tt;break;case ft:for(;O<14;){if(T===0)break t;T--,x+=M[i++]<>>=5,O-=5,f.ndist=(x&31)+1,x>>>=5,O-=5,f.ncode=(x&15)+4,x>>>=4,O-=4,f.nlen>286||f.ndist>30){k.msg="too many length or distance symbols",f.mode=ut;break}f.have=0,f.mode=Dt;case Dt:for(;f.have>>=3,O-=3}for(;f.have<19;)f.lens[Ue[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,te={bits:f.lenbits},Yt=m(c,f.lens,0,19,f.lencode,0,f.work,te),f.lenbits=te.bits,Yt){k.msg="invalid code lengths set",f.mode=ut;break}f.have=0,f.mode=kt;case kt:for(;f.have>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=M[i++]<>>=lt,O-=lt,f.lens[f.have++]=Tt;else{if(Tt===16){for(Jt=lt+2;O>>=lt,O-=lt,f.have===0){k.msg="invalid bit length repeat",f.mode=ut;break}yt=f.lens[f.have-1],W=3+(x&3),x>>>=2,O-=2}else if(Tt===17){for(Jt=lt+3;O>>=lt,O-=lt,yt=0,W=3+(x&7),x>>>=3,O-=3}else{for(Jt=lt+7;O>>=lt,O-=lt,yt=0,W=11+(x&127),x>>>=7,O-=7}if(f.have+W>f.nlen+f.ndist){k.msg="invalid bit length repeat",f.mode=ut;break}for(;W--;)f.lens[f.have++]=yt}}if(f.mode===ut)break;if(f.lens[256]===0){k.msg="invalid code -- missing end-of-block",f.mode=ut;break}if(f.lenbits=9,te={bits:f.lenbits},Yt=m(_,f.lens,0,f.nlen,f.lencode,0,f.work,te),f.lenbits=te.bits,Yt){k.msg="invalid literal/lengths set",f.mode=ut;break}if(f.distbits=6,f.distcode=f.distdyn,te={bits:f.distbits},Yt=m(g,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,te),f.distbits=te.bits,Yt){k.msg="invalid distances set",f.mode=ut;break}if(f.mode=vt,z===C)break t;case vt:f.mode=at;case at:if(T>=6&&d>=258){k.next_out=A,k.avail_out=d,k.next_in=i,k.avail_in=T,f.hold=x,f.bits=O,n(k,Y),A=k.next_out,q=k.output,d=k.avail_out,i=k.next_in,M=k.input,T=k.avail_in,x=f.hold,O=f.bits,f.mode===tt&&(f.back=-1);break}for(f.back=0;mt=f.lencode[x&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=M[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,x+=M[i++]<>>=Rt,O-=Rt,f.back+=Rt}if(x>>>=lt,O-=lt,f.back+=lt,f.length=Tt,xt===0){f.mode=ct;break}if(xt&32){f.back=-1,f.mode=tt;break}if(xt&64){k.msg="invalid literal/length code",f.mode=ut;break}f.extra=xt&15,f.mode=St;case St:if(f.extra){for(Jt=f.extra;O>>=f.extra,O-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=gt;case gt:for(;mt=f.distcode[x&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=M[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,x+=M[i++]<>>=Rt,O-=Rt,f.back+=Rt}if(x>>>=lt,O-=lt,f.back+=lt,xt&64){k.msg="invalid distance code",f.mode=ut;break}f.offset=Tt,f.extra=xt&15,f.mode=dt;case dt:if(f.extra){for(Jt=f.extra;O>>=f.extra,O-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){k.msg="invalid distance too far back",f.mode=ut;break}f.mode=bt;case bt:if(d===0)break t;if(W=Y-d,f.offset>W){if(W=f.offset-W,W>f.whave&&f.sane){k.msg="invalid distance too far back",f.mode=ut;break}W>f.wnext?(W-=f.wnext,ot=f.wsize-W):ot=f.wnext-W,W>f.length&&(W=f.length),qt=f.window}else qt=q,ot=A-f.offset,W=f.length;W>d&&(W=d),d-=W,f.length-=W;do q[A++]=qt[ot++];while(--W);f.length===0&&(f.mode=at);break;case ct:if(d===0)break t;q[A++]=f.length,d--,f.mode=at;break;case At:if(f.wrap){for(;O<32;){if(T===0)break t;T--,x|=M[i++]<=1&&at[j]===0;j--);if(Q>j&&(Q=j),j===0)return y[w++]=20971520,y[w++]=20971520,E.bits=1,0;for(R=1;R0&&(u===m||j!==1))return-1;for(St[1]=0,D=1;Dh||u===_&&Z>n)return 1;for(;;){bt=D-G,S[B]vt?(ct=gt[dt+S[B]],At=Dt[kt+S[B]]):(ct=96,At=0),nt=1<>G)+ht]=bt<<24|ct<<16|At|0;while(ht!==0);for(nt=1<>=1;if(nt!==0?(tt&=nt-1,tt+=nt):tt=0,B++,--at[D]===0){if(D===j)break;D=p[I+S[B]]}if(D>Q&&(tt&st)!==H){for(G===0&&(G=Q),ft+=R,J=D-G,$=1<h||u===_&&Z>n)return 1;H=tt&st,y[H]=Q<<24|J<<16|ft-w|0}}return tt!==0&&(y[ft+tt]=D-G<<24|4194304|0),E.bits=Q,0}},{"../utils/common":41}],51:[function(e,r,s){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,r,s){var l=e("../utils/common"),a=4,h=0,n=1,m=2;function c(b){for(var U=b.length;--U>=0;)b[U]=0}var _=0,g=1,v=2,F=3,C=258,o=29,u=256,p=u+1+o,I=30,P=19,y=2*p+1,w=15,S=16,E=7,N=256,D=16,B=17,R=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],J=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=512,Z=new Array((p+2)*2);c(Z);var tt=new Array(I*2);c(tt);var nt=new Array($);c(nt);var ht=new Array(C-F+1);c(ht);var H=new Array(o);c(H);var st=new Array(I);c(st);function ft(b,U,V,X,k){this.static_tree=b,this.extra_bits=U,this.extra_base=V,this.elems=X,this.max_length=k,this.has_stree=b&&b.length}var Dt,kt,vt;function at(b,U){this.dyn_tree=b,this.max_code=0,this.stat_desc=U}function St(b){return b<256?nt[b]:nt[256+(b>>>7)]}function gt(b,U){b.pending_buf[b.pending++]=U&255,b.pending_buf[b.pending++]=U>>>8&255}function dt(b,U,V){b.bi_valid>S-V?(b.bi_buf|=U<>S-b.bi_valid,b.bi_valid+=V-S):(b.bi_buf|=U<>>=1,V<<=1;while(--U>0);return V>>>1}function At(b){b.bi_valid===16?(gt(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):b.bi_valid>=8&&(b.pending_buf[b.pending++]=b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)}function Mt(b,U){var V=U.dyn_tree,X=U.max_code,k=U.stat_desc.static_tree,z=U.stat_desc.has_stree,f=U.stat_desc.extra_bits,M=U.stat_desc.extra_base,q=U.stat_desc.max_length,i,A,T,d,x,O,K=0;for(d=0;d<=w;d++)b.bl_count[d]=0;for(V[b.heap[b.heap_max]*2+1]=0,i=b.heap_max+1;iq&&(d=q,K++),V[A*2+1]=d,!(A>X)&&(b.bl_count[d]++,x=0,A>=M&&(x=f[A-M]),O=V[A*2],b.opt_len+=O*(d+x),z&&(b.static_len+=O*(k[A*2+1]+x)));if(K!==0){do{for(d=q-1;b.bl_count[d]===0;)d--;b.bl_count[d]--,b.bl_count[d+1]+=2,b.bl_count[q]--,K-=2}while(K>0);for(d=q;d!==0;d--)for(A=b.bl_count[d];A!==0;)T=b.heap[--i],!(T>X)&&(V[T*2+1]!==d&&(b.opt_len+=(d-V[T*2+1])*V[T*2],V[T*2+1]=d),A--)}}function Bt(b,U,V){var X=new Array(w+1),k=0,z,f;for(z=1;z<=w;z++)X[z]=k=k+V[z-1]<<1;for(f=0;f<=U;f++){var M=b[f*2+1];M!==0&&(b[f*2]=ct(X[M]++,M))}}function ut(){var b,U,V,X,k,z=new Array(w+1);for(V=0,X=0;X>=7;X8?gt(b,b.bi_buf):b.bi_valid>0&&(b.pending_buf[b.pending++]=b.bi_buf),b.bi_buf=0,b.bi_valid=0}function Vt(b,U,V,X){he(b),X&&(gt(b,V),gt(b,~V)),l.arraySet(b.pending_buf,b.window,U,V,b.pending),b.pending+=V}function Ut(b,U,V,X){var k=U*2,z=V*2;return b[k]>1;f>=1;f--)_t(b,V,f);i=z;do f=b.heap[1],b.heap[1]=b.heap[b.heap_len--],_t(b,V,1),M=b.heap[1],b.heap[--b.heap_max]=f,b.heap[--b.heap_max]=M,V[i*2]=V[f*2]+V[M*2],b.depth[i]=(b.depth[f]>=b.depth[M]?b.depth[f]:b.depth[M])+1,V[f*2+1]=V[M*2+1]=i,b.heap[1]=i++,_t(b,V,1);while(b.heap_len>=2);b.heap[--b.heap_max]=b.heap[1],Mt(b,U),Bt(V,q,b.bl_count)}function de(b,U,V){var X,k=-1,z,f=U[0*2+1],M=0,q=7,i=4;for(f===0&&(q=138,i=3),U[(V+1)*2+1]=65535,X=0;X<=V;X++)z=f,f=U[(X+1)*2+1],!(++M=3&&b.bl_tree[G[U]*2+1]===0;U--);return b.opt_len+=3*(U+1)+5+5+4,U}function ue(b,U,V,X){var k;for(dt(b,U-257,5),dt(b,V-1,5),dt(b,X-4,4),k=0;k>>=1)if(U&1&&b.dyn_ltree[V*2]!==0)return h;if(b.dyn_ltree[18]!==0||b.dyn_ltree[20]!==0||b.dyn_ltree[26]!==0)return n;for(V=32;V0?(b.strm.data_type===m&&(b.strm.data_type=ne(b)),Zt(b,b.l_desc),Zt(b,b.d_desc),f=jt(b),k=b.opt_len+3+7>>>3,z=b.static_len+3+7>>>3,z<=k&&(k=z)):k=z=V+5,V+4<=k&&U!==-1?se(b,U,V,X):b.strategy===a||z===k?(dt(b,(g<<1)+(X?1:0),3),rt(b,Z,tt)):(dt(b,(v<<1)+(X?1:0),3),ue(b,b.l_desc.max_code+1,b.d_desc.max_code+1,f+1),rt(b,b.dyn_ltree,b.dyn_dtree)),Nt(b),X&&he(b)}function pe(b,U,V){return b.pending_buf[b.d_buf+b.last_lit*2]=U>>>8&255,b.pending_buf[b.d_buf+b.last_lit*2+1]=U&255,b.pending_buf[b.l_buf+b.last_lit]=V&255,b.last_lit++,U===0?b.dyn_ltree[V*2]++:(b.matches++,U--,b.dyn_ltree[(ht[V]+u+1)*2]++,b.dyn_dtree[St(U)*2]++),b.last_lit===b.lit_bufsize-1}s._tr_init=_e,s._tr_stored_block=se,s._tr_flush_block=Gt,s._tr_tally=pe,s._tr_align=Pt},{"../utils/common":41}],53:[function(e,r,s){function l(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}r.exports=l},{}],54:[function(e,r,s){(function(l){(function(a,h){if(a.setImmediate)return;var n=1,m={},c=!1,_=a.document,g;function v(E){typeof E!="function"&&(E=new Function(""+E));for(var N=new Array(arguments.length-1),D=0;D"u"?typeof l>"u"?this:l:self)}).call(this,typeof Ie<"u"?Ie:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Re);var Ke=Re.exports,Ge=He(Ke);class Je{load(t,e){fetch(t).then(function(r){return r.status===200||r.status===0?Promise.resolve(r.blob()):Promise.reject(new Error(r.statusText))}).then(Ge.loadAsync).then(async function(r){let s=null;const l={};for(let h in r.files){r.files[h];const n=h.split(".").pop();if(n==="ssfb"){if(s!==null){e(null,null,null,new Error("already exist ssfb file"));return}s=h}else if(n==="png"){const m=h.split(".").slice(0,-1).join(".");l[m]=await r.file(h).async("uint8array")}}let a=await r.file(s).async("uint8array");e(s,a,l,null)},function(s){e(null,null,null,s)})}}class $e{static createAnimePackMap(t){const e=t.fbObj.animePacksLength(),r={};for(let s=0;s{e.setupForLoadComplete(r)})}loadSspkg(t){const e=this;new Je().load(t,(s,l,a,h)=>{if(h!==null)return;let n=new Ne(s,l,a,()=>{e.setupForLoadComplete(n)})})}setupForLoadComplete(t){this.projectData=t,this.animePackMap=$e.createAnimePackMap(this.projectData),this.onComplete!==null&&this.onComplete()}loadAnimation(t,e){let r=!1;this.textureContainer==null&&(r=!0,this.textureContainer=new We(this));const s=this.animePackMap[t],l=s.animePack,h=s.animationMap[e];this.currentAnimation=h,this.currentAnimePack=l,this.textureContainer.Setup(t,e);const n=h.labelDataLength();for(let m=0;m>2,F=(c&3)<<4|u>>4,C=I>1?(u&15)<<2|g>>6:64,o=I>2?g&63:64,m.push(h.charAt(v)+h.charAt(F)+h.charAt(C)+h.charAt(o));return m.join("")},s.decode=function(n){var m,c,u,g,v,F,C,o=0,_=0,p="data:";if(n.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");n=n.replace(/[^A-Za-z0-9+/=]/g,"");var I=n.length*3/4;if(n.charAt(n.length-1)===h.charAt(64)&&I--,n.charAt(n.length-2)===h.charAt(64)&&I--,I%1!==0)throw new Error("Invalid base64 input, bad content length.");var P;for(a.uint8array?P=new Uint8Array(I|0):P=new Array(I|0);o>4,c=(v&15)<<4|F>>2,u=(F&3)<<6|C,P[_++]=m,F!==64&&(P[_++]=c),C!==64&&(P[_++]=u);return P}},{"./support":30,"./utils":32}],2:[function(e,r,s){var l=e("./external"),a=e("./stream/DataWorker"),h=e("./stream/Crc32Probe"),n=e("./stream/DataLengthProbe");function m(c,u,g,v,F){this.compressedSize=c,this.uncompressedSize=u,this.crc32=g,this.compression=v,this.compressedContent=F}m.prototype={getContentWorker:function(){var c=new a(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),u=this;return c.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new a(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(c,u,g){return c.pipe(new h).pipe(new n("uncompressedSize")).pipe(u.compressWorker(g)).pipe(new n("compressedSize")).withStreamInfo("compression",u)},r.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,r,s){var l=e("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},s.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,r,s){var l=e("./utils");function a(){for(var c,u=[],g=0;g<256;g++){c=g;for(var v=0;v<8;v++)c=c&1?3988292384^c>>>1:c>>>1;u[g]=c}return u}var h=a();function n(c,u,g,v){var F=h,C=v+g;c=c^-1;for(var o=v;o>>8^F[(c^u[o])&255];return c^-1}function m(c,u,g,v){var F=h,C=v+g;c=c^-1;for(var o=v;o>>8^F[(c^u.charCodeAt(o))&255];return c^-1}r.exports=function(u,g){if(typeof u>"u"||!u.length)return 0;var v=l.getTypeOf(u)!=="string";return v?n(g|0,u,u.length,0):m(g|0,u,u.length,0)}},{"./utils":32}],5:[function(e,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(e,r,s){var l=null;typeof Promise<"u"?l=Promise:l=e("lie"),r.exports={Promise:l}},{lie:37}],7:[function(e,r,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=e("pako"),h=e("./utils"),n=e("./stream/GenericWorker"),m=l?"uint8array":"array";s.magic="\b\0";function c(u,g){n.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=g,this.meta={}}h.inherits(c,n),c.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(m,u.data),!1)},c.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(g){u.push({data:g,meta:u.meta})}},s.compressWorker=function(u){return new c("Deflate",u)},s.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,s){var l=e("../utils"),a=e("../stream/GenericWorker"),h=e("../utf8"),n=e("../crc32"),m=e("../signature"),c=function(_,p){var I="",P;for(P=0;P>>8;return I},u=function(_,p){var I=_;return _||(I=p?16893:33204),(I&65535)<<16},g=function(_){return(_||0)&63},v=function(_,p,I,P,y,w){var S=_.file,E=_.compression,N=w!==h.utf8encode,D=l.transformTo("string",w(S.name)),B=l.transformTo("string",h.utf8encode(S.name)),R=S.comment,Z=l.transformTo("string",w(R)),Q=l.transformTo("string",h.utf8encode(R)),J=B.length!==S.name.length,G=Q.length!==R.length,$,j,tt="",nt="",ht="",H=S.dir,st=S.date,ft={crc32:0,compressedSize:0,uncompressedSize:0};(!p||I)&&(ft.crc32=_.crc32,ft.compressedSize=_.compressedSize,ft.uncompressedSize=_.uncompressedSize);var Dt=0;p&&(Dt|=8),!N&&(J||G)&&(Dt|=2048);var kt=0,vt=0;H&&(kt|=16),y==="UNIX"?(vt=798,kt|=u(S.unixPermissions,H)):(vt=20,kt|=g(S.dosPermissions)),$=st.getUTCHours(),$=$<<6,$=$|st.getUTCMinutes(),$=$<<5,$=$|st.getUTCSeconds()/2,j=st.getUTCFullYear()-1980,j=j<<4,j=j|st.getUTCMonth()+1,j=j<<5,j=j|st.getUTCDate(),J&&(nt=c(1,1)+c(n(D),4)+B,tt+="up"+c(nt.length,2)+nt),G&&(ht=c(1,1)+c(n(Z),4)+Q,tt+="uc"+c(ht.length,2)+ht);var at="";at+=` +\0`,at+=c(Dt,2),at+=E.magic,at+=c($,2),at+=c(j,2),at+=c(ft.crc32,4),at+=c(ft.compressedSize,4),at+=c(ft.uncompressedSize,4),at+=c(D.length,2),at+=c(tt.length,2);var St=m.LOCAL_FILE_HEADER+at+D+tt,gt=m.CENTRAL_FILE_HEADER+c(vt,2)+at+c(Z.length,2)+"\0\0\0\0"+c(kt,4)+c(P,4)+D+tt+Z;return{fileRecord:St,dirRecord:gt}},F=function(_,p,I,P,y){var w="",S=l.transformTo("string",y(P));return w=m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(_,2)+c(_,2)+c(p,4)+c(I,4)+c(S.length,2)+S,w},C=function(_){var p="";return p=m.DATA_DESCRIPTOR+c(_.crc32,4)+c(_.compressedSize,4)+c(_.uncompressedSize,4),p};function o(_,p,I,P){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=I,this.encodeFileName=P,this.streamFiles=_,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(o,a),o.prototype.push=function(_){var p=_.meta.percent||0,I=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(_):(this.bytesWritten+=_.data.length,a.prototype.push.call(this,{data:_.data,meta:{currentFile:this.currentFile,percent:I?(p+100*(I-P-1))/I:100}}))},o.prototype.openedSource=function(_){this.currentSourceOffset=this.bytesWritten,this.currentFile=_.file.name;var p=this.streamFiles&&!_.file.dir;if(p){var I=v(_,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},o.prototype.closedSource=function(_){this.accumulate=!1;var p=this.streamFiles&&!_.file.dir,I=v(_,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(I.dirRecord),p)this.push({data:C(_),meta:{percent:100}});else for(this.push({data:I.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var _=this.bytesWritten,p=0;p"u")&&(D.binary=!B);var R=w instanceof c&&w.uncompressedSize===0;(R||D.dir||!w||w.length===0)&&(D.base64=!1,D.binary=!0,w="",D.compression="STORE",E="string");var Z=null;w instanceof c||w instanceof h?Z=w:v.isNode&&v.isStream(w)?Z=new F(y,w):Z=a.prepareContent(y,w,D.binary,D.optimizedBinaryString,D.base64);var Q=new u(y,Z,D);this.files[y]=Q},o=function(y){y.slice(-1)==="/"&&(y=y.substring(0,y.length-1));var w=y.lastIndexOf("/");return w>0?y.substring(0,w):""},_=function(y){return y.slice(-1)!=="/"&&(y+="/"),y},p=function(y,w){return w=typeof w<"u"?w:m.createFolders,y=_(y),this.files[y]||C.call(this,y,null,{dir:!0,createFolders:w}),this.files[y]};function I(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(y){var w,S,E;for(w in this.files)E=this.files[w],S=w.slice(this.root.length,w.length),S&&w.slice(0,this.root.length)===this.root&&y(S,E)},filter:function(y){var w=[];return this.forEach(function(S,E){y(S,E)&&w.push(E)}),w},file:function(y,w,S){if(arguments.length===1)if(I(y)){var E=y;return this.filter(function(D,B){return!B.dir&&E.test(D)})}else{var N=this.files[this.root+y];return N&&!N.dir?N:null}else y=this.root+y,C.call(this,y,w,S);return this},folder:function(y){if(!y)return this;if(I(y))return this.filter(function(N,D){return D.dir&&y.test(N)});var w=this.root+y,S=p.call(this,w),E=this.clone();return E.root=S.name,E},remove:function(y){y=this.root+y;var w=this.files[y];if(w||(y.slice(-1)!=="/"&&(y+="/"),w=this.files[y]),w&&!w.dir)delete this.files[y];else for(var S=this.filter(function(N,D){return D.name.slice(0,y.length)===y}),E=0;E=0;--v)if(this.data[v]===m&&this.data[v+1]===c&&this.data[v+2]===u&&this.data[v+3]===g)return v-this.zero;return-1},h.prototype.readAndCheckSignature=function(n){var m=n.charCodeAt(0),c=n.charCodeAt(1),u=n.charCodeAt(2),g=n.charCodeAt(3),v=this.readData(4);return m===v[0]&&c===v[1]&&u===v[2]&&g===v[3]},h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./DataReader":18}],18:[function(e,r,s){var l=e("../utils");function a(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length=this.index;m--)n=(n<<8)+this.byteAt(m);return this.index+=h,n},readString:function(h){return l.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC((h>>25&127)+1980,(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(h&31)<<1))}},r.exports=a},{"../utils":32}],19:[function(e,r,s){var l=e("./Uint8ArrayReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,s){var l=e("./DataReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},h.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},h.prototype.readAndCheckSignature=function(n){var m=this.readData(4);return n===m},h.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./DataReader":18}],21:[function(e,r,s){var l=e("./ArrayReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,s){var l=e("../utils"),a=e("../support"),h=e("./ArrayReader"),n=e("./StringReader"),m=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");r.exports=function(u){var g=l.getTypeOf(u);return l.checkSupport(g),g==="string"&&!a.uint8array?new n(u):g==="nodebuffer"?new m(u):a.uint8array?new c(l.transformTo("uint8array",u)):new h(l.transformTo("array",u))}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,s){var l=e("./GenericWorker"),a=e("../utils");function h(n){l.call(this,"ConvertWorker to "+n),this.destType=n}a.inherits(h,l),h.prototype.processChunk=function(n){this.push({data:a.transformTo(this.destType,n.data),meta:n.meta})},r.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,s){var l=e("./GenericWorker"),a=e("../crc32"),h=e("../utils");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}h.inherits(n,l),n.prototype.processChunk=function(m){this.streamInfo.crc32=a(m.data,this.streamInfo.crc32||0),this.push(m)},r.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,s){var l=e("../utils"),a=e("./GenericWorker");function h(n){a.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}l.inherits(h,a),h.prototype.processChunk=function(n){if(n){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+n.data.length}a.prototype.processChunk.call(this,n)},r.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,s){var l=e("../utils"),a=e("./GenericWorker"),h=16*1024;function n(m){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=l.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}l.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return a.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0):!1},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=h,c=null,u=Math.min(this.max,this.index+m);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u);break}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,s){function l(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return this.isFinished?!1:(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,h){return this._listeners[a].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,h){if(this._listeners[a])for(var n=0;n "+a:a}},r.exports=l},{}],29:[function(e,r,s){var l=e("../utils"),a=e("./ConvertWorker"),h=e("./GenericWorker"),n=e("../base64"),m=e("../support"),c=e("../external"),u=null;if(m.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function g(o,_,p){switch(o){case"blob":return l.newBlob(l.transformTo("arraybuffer",_),p);case"base64":return n.encode(_);default:return l.transformTo(o,_)}}function v(o,_){var p,I=0,P=null,y=0;for(p=0;p<_.length;p++)y+=_[p].length;switch(o){case"string":return _.join("");case"array":return Array.prototype.concat.apply([],_);case"uint8array":for(P=new Uint8Array(y),p=0;p<_.length;p++)P.set(_[p],I),I+=_[p].length;return P;case"nodebuffer":return Buffer.concat(_);default:throw new Error("concat : unsupported type '"+o+"'")}}function F(o,_){return new c.Promise(function(p,I){var P=[],y=o._internalType,w=o._outputType,S=o._mimeType;o.on("data",function(E,N){P.push(E),_&&_(N)}).on("error",function(E){P=[],I(E)}).on("end",function(){try{var E=g(w,v(y,P),S);p(E)}catch(N){I(N)}P=[]}).resume()})}function C(o,_,p){var I=_;switch(_){case"blob":case"arraybuffer":I="uint8array";break;case"base64":I="string";break}try{this._internalType=I,this._outputType=_,this._mimeType=p,l.checkSupport(I),this._worker=o.pipe(new a(I)),o.lock()}catch(P){this._worker=new h("error"),this._worker.error(P)}}C.prototype={accumulate:function(o){return F(this,o)},on:function(o,_){var p=this;return o==="data"?this._worker.on(o,function(I){_.call(p,I.data,I.meta)}):this._worker.on(o,function(){l.delay(_,arguments,p)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(o){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},o)}},r.exports=C},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,r,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",s.nodebuffer=typeof Buffer<"u",s.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")s.blob=!1;else{var l=new ArrayBuffer(0);try{s.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var a=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,h=new a;h.append(l),s.blob=h.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!e("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,s){for(var l=e("./utils"),a=e("./support"),h=e("./nodejsUtils"),n=e("./stream/GenericWorker"),m=new Array(256),c=0;c<256;c++)m[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;m[254]=m[254]=1;var u=function(o){var _,p,I,P,y,w=o.length,S=0;for(P=0;P>>6,_[y++]=128|p&63):p<65536?(_[y++]=224|p>>>12,_[y++]=128|p>>>6&63,_[y++]=128|p&63):(_[y++]=240|p>>>18,_[y++]=128|p>>>12&63,_[y++]=128|p>>>6&63,_[y++]=128|p&63);return _},g=function(o,_){var p;for(_=_||o.length,_>o.length&&(_=o.length),p=_-1;p>=0&&(o[p]&192)===128;)p--;return p<0||p===0?_:p+m[o[p]]>_?p:_},v=function(o){var _,p,I,P,y=o.length,w=new Array(y*2);for(p=0,_=0;_4){w[p++]=65533,_+=P-1;continue}for(I&=P===2?31:P===3?15:7;P>1&&_1){w[p++]=65533;continue}I<65536?w[p++]=I:(I-=65536,w[p++]=55296|I>>10&1023,w[p++]=56320|I&1023)}return w.length!==p&&(w.subarray?w=w.subarray(0,p):w.length=p),l.applyFromCharCode(w)};s.utf8encode=function(_){return a.nodebuffer?h.newBufferFrom(_,"utf-8"):u(_)},s.utf8decode=function(_){return a.nodebuffer?l.transformTo("nodebuffer",_).toString("utf-8"):(_=l.transformTo(a.uint8array?"uint8array":"array",_),v(_))};function F(){n.call(this,"utf-8 decode"),this.leftOver=null}l.inherits(F,n),F.prototype.processChunk=function(o){var _=l.transformTo(a.uint8array?"uint8array":"array",o.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var p=_;_=new Uint8Array(p.length+this.leftOver.length),_.set(this.leftOver,0),_.set(p,this.leftOver.length)}else _=this.leftOver.concat(_);this.leftOver=null}var I=g(_),P=_;I!==_.length&&(a.uint8array?(P=_.subarray(0,I),this.leftOver=_.subarray(I,_.length)):(P=_.slice(0,I),this.leftOver=_.slice(I,_.length))),this.push({data:s.utf8decode(P),meta:o.meta})},F.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=F;function C(){n.call(this,"utf-8 encode")}l.inherits(C,n),C.prototype.processChunk=function(o){this.push({data:s.utf8encode(o.data),meta:o.meta})},s.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,s){var l=e("./support"),a=e("./base64"),h=e("./nodejsUtils"),n=e("./external");e("setimmediate");function m(o){var _=null;return l.uint8array?_=new Uint8Array(o.length):_=new Array(o.length),u(o,_)}s.newBlob=function(o,_){s.checkSupport("blob");try{return new Blob([o],{type:_})}catch{try{var p=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,I=new p;return I.append(o),I.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};function c(o){return o}function u(o,_){for(var p=0;p1;)try{return g.stringifyByChunk(o,p,_)}catch{_=Math.floor(_/2)}return g.stringifyByChar(o)}s.applyFromCharCode=v;function F(o,_){for(var p=0;p"u"&&(o[p]=arguments[_][p]);return o},s.prepareContent=function(o,_,p,I,P){var y=n.Promise.resolve(_).then(function(w){var S=l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1);return S&&typeof FileReader<"u"?new n.Promise(function(E,N){var D=new FileReader;D.onload=function(B){E(B.target.result)},D.onerror=function(B){N(B.target.error)},D.readAsArrayBuffer(w)}):w});return y.then(function(w){var S=s.getTypeOf(w);return S?(S==="arraybuffer"?w=s.transformTo("uint8array",w):S==="string"&&(P?w=a.decode(w):p&&I!==!0&&(w=m(w))),w):n.Promise.reject(new Error("Can't read the data of '"+o+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,s){var l=e("./reader/readerFor"),a=e("./utils"),h=e("./signature"),n=e("./zipEntry"),m=e("./support");function c(u){this.files=[],this.loadOptions=u}c.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(g)+", expected "+a.pretty(u)+")")}},isSignature:function(u,g){var v=this.reader.index;this.reader.setIndex(u);var F=this.reader.readString(4),C=F===g;return this.reader.setIndex(v),C},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),g=m.uint8array?"uint8array":"array",v=a.transformTo(g,u);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u=this.zip64EndOfCentralSize-44,g=0,v,F,C;g1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,g;for(u=0;u0)this.isSignature(v,h.CENTRAL_FILE_HEADER)||(this.reader.zero=C);else if(C<0)throw new Error("Corrupted zip: missing "+Math.abs(C)+" bytes.")},prepareReader:function(u){this.reader=l(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,s){var l=e("./reader/readerFor"),a=e("./utils"),h=e("./compressedObject"),n=e("./crc32"),m=e("./utf8"),c=e("./compressions"),u=e("./support"),g=0,v=3,F=function(o){for(var _ in c)if(Object.prototype.hasOwnProperty.call(c,_)&&c[_].magic===o)return c[_];return null};function C(o,_){this.options=o,this.loadOptions=_}C.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(o){var _,p;if(o.skip(22),this.fileNameLength=o.readInt(2),p=o.readInt(2),this.fileName=o.readData(this.fileNameLength),o.skip(p),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(_=F(this.compressionMethod),_===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,_,o.readData(this.compressedSize))},readCentralPart:function(o){this.versionMadeBy=o.readInt(2),o.skip(2),this.bitFlag=o.readInt(2),this.compressionMethod=o.readString(2),this.date=o.readDate(),this.crc32=o.readInt(4),this.compressedSize=o.readInt(4),this.uncompressedSize=o.readInt(4);var _=o.readInt(2);if(this.extraFieldsLength=o.readInt(2),this.fileCommentLength=o.readInt(2),this.diskNumberStart=o.readInt(2),this.internalFileAttributes=o.readInt(2),this.externalFileAttributes=o.readInt(4),this.localHeaderOffset=o.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");o.skip(_),this.readExtraFields(o),this.parseZIP64ExtraField(o),this.fileComment=o.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var o=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),o===g&&(this.dosPermissions=this.externalFileAttributes&63),o===v&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var o=l(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=o.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=o.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=o.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=o.readInt(4))}},readExtraFields:function(o){var _=o.index+this.extraFieldsLength,p,I,P;for(this.extraFields||(this.extraFields={});o.index+4<_;)p=o.readInt(2),I=o.readInt(2),P=o.readData(I),this.extraFields[p]={id:p,length:I,value:P};o.setIndex(_)},handleUTF8:function(){var o=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=m.utf8decode(this.fileName),this.fileCommentStr=m.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var p=a.transformTo(o,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(p)}var I=this.findExtraFieldUnicodeComment();if(I!==null)this.fileCommentStr=I;else{var P=a.transformTo(o,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var o=this.extraFields[28789];if(o){var _=l(o.value);return _.readInt(1)!==1||n(this.fileName)!==_.readInt(4)?null:m.utf8decode(_.readData(o.length-5))}return null},findExtraFieldUnicodeComment:function(){var o=this.extraFields[25461];if(o){var _=l(o.value);return _.readInt(1)!==1||n(this.fileComment)!==_.readInt(4)?null:m.utf8decode(_.readData(o.length-5))}return null}},r.exports=C},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,r,s){var l=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),h=e("./utf8"),n=e("./compressedObject"),m=e("./stream/GenericWorker"),c=function(F,C,o){this.name=F,this.dir=o.dir,this.date=o.date,this.comment=o.comment,this.unixPermissions=o.unixPermissions,this.dosPermissions=o.dosPermissions,this._data=C,this._dataBinary=o.binary,this.options={compression:o.compression,compressionOptions:o.compressionOptions}};c.prototype={internalStream:function(F){var C=null,o="string";try{if(!F)throw new Error("No output type specified.");o=F.toLowerCase();var _=o==="string"||o==="text";(o==="binarystring"||o==="text")&&(o="string"),C=this._decompressWorker();var p=!this._dataBinary;p&&!_&&(C=C.pipe(new h.Utf8EncodeWorker)),!p&&_&&(C=C.pipe(new h.Utf8DecodeWorker))}catch(I){C=new m("error"),C.error(I)}return new l(C,o,"")},async:function(F,C){return this.internalStream(F).accumulate(C)},nodeStream:function(F,C){return this.internalStream(F||"nodebuffer").toNodejsStream(C)},_compressWorker:function(F,C){if(this._data instanceof n&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var o=this._decompressWorker();return this._dataBinary||(o=o.pipe(new h.Utf8EncodeWorker)),n.createWorkerFrom(o,F,C)},_decompressWorker:function(){return this._data instanceof n?this._data.getContentWorker():this._data instanceof m?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},v=0;v0?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var N=l.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(N!==v)throw new Error(n[N]);if(E.header&&l.deflateSetHeader(this.strm,E.header),E.dictionary){var D;if(typeof E.dictionary=="string"?D=h.string2buf(E.dictionary):c.call(E.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(E.dictionary):D=E.dictionary,N=l.deflateSetDictionary(this.strm,D),N!==v)throw new Error(n[N]);this._dict_set=!0}}I.prototype.push=function(S,E){var N=this.strm,D=this.options.chunkSize,B,R;if(this.ended)return!1;R=E===~~E?E:E===!0?g:u,typeof S=="string"?N.input=h.string2buf(S):c.call(S)==="[object ArrayBuffer]"?N.input=new Uint8Array(S):N.input=S,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(D),N.next_out=0,N.avail_out=D),B=l.deflate(N,R),B!==F&&B!==v)return this.onEnd(B),this.ended=!0,!1;(N.avail_out===0||N.avail_in===0&&(R===g||R===C))&&(this.options.to==="string"?this.onData(h.buf2binstring(a.shrinkBuf(N.output,N.next_out))):this.onData(a.shrinkBuf(N.output,N.next_out)))}while((N.avail_in>0||N.avail_out===0)&&B!==F);return R===g?(B=l.deflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===v):(R===C&&(this.onEnd(v),N.avail_out=0),!0)},I.prototype.onData=function(S){this.chunks.push(S)},I.prototype.onEnd=function(S){S===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg};function P(S,E){var N=new I(E);if(N.push(S,!0),N.err)throw N.msg||n[N.err];return N.result}function y(S,E){return E=E||{},E.raw=!0,P(S,E)}function w(S,E){return E=E||{},E.gzip=!0,P(S,E)}s.Deflate=I,s.deflate=P,s.deflateRaw=y,s.gzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,s){var l=e("./zlib/inflate"),a=e("./utils/common"),h=e("./utils/strings"),n=e("./zlib/constants"),m=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),g=Object.prototype.toString;function v(o){if(!(this instanceof v))return new v(o);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},o||{});var _=this.options;_.raw&&_.windowBits>=0&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),_.windowBits>=0&&_.windowBits<16&&!(o&&o.windowBits)&&(_.windowBits+=32),_.windowBits>15&&_.windowBits<48&&(_.windowBits&15||(_.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var p=l.inflateInit2(this.strm,_.windowBits);if(p!==n.Z_OK)throw new Error(m[p]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}v.prototype.push=function(o,_){var p=this.strm,I=this.options.chunkSize,P=this.options.dictionary,y,w,S,E,N,D,B=!1;if(this.ended)return!1;w=_===~~_?_:_===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof o=="string"?p.input=h.binstring2buf(o):g.call(o)==="[object ArrayBuffer]"?p.input=new Uint8Array(o):p.input=o,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new a.Buf8(I),p.next_out=0,p.avail_out=I),y=l.inflate(p,n.Z_NO_FLUSH),y===n.Z_NEED_DICT&&P&&(typeof P=="string"?D=h.string2buf(P):g.call(P)==="[object ArrayBuffer]"?D=new Uint8Array(P):D=P,y=l.inflateSetDictionary(this.strm,D)),y===n.Z_BUF_ERROR&&B===!0&&(y=n.Z_OK,B=!1),y!==n.Z_STREAM_END&&y!==n.Z_OK)return this.onEnd(y),this.ended=!0,!1;p.next_out&&(p.avail_out===0||y===n.Z_STREAM_END||p.avail_in===0&&(w===n.Z_FINISH||w===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(S=h.utf8border(p.output,p.next_out),E=p.next_out-S,N=h.buf2string(p.output,S),p.next_out=E,p.avail_out=I-E,E&&a.arraySet(p.output,p.output,S,E,0),this.onData(N)):this.onData(a.shrinkBuf(p.output,p.next_out))),p.avail_in===0&&p.avail_out===0&&(B=!0)}while((p.avail_in>0||p.avail_out===0)&&y!==n.Z_STREAM_END);return y===n.Z_STREAM_END&&(w=n.Z_FINISH),w===n.Z_FINISH?(y=l.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===n.Z_OK):(w===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),p.avail_out=0),!0)},v.prototype.onData=function(o){this.chunks.push(o)},v.prototype.onEnd=function(o){o===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function F(o,_){var p=new v(_);if(p.push(o,!0),p.err)throw p.msg||m[p.err];return p.result}function C(o,_){return _=_||{},_.raw=!0,F(o,_)}s.Inflate=v,s.inflate=F,s.inflateRaw=C,s.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(n){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var c=m.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var u in c)c.hasOwnProperty(u)&&(n[u]=c[u])}}return n},s.shrinkBuf=function(n,m){return n.length===m?n:n.subarray?n.subarray(0,m):(n.length=m,n)};var a={arraySet:function(n,m,c,u,g){if(m.subarray&&n.subarray){n.set(m.subarray(c,c+u),g);return}for(var v=0;v=252?6:m>=248?5:m>=240?4:m>=224?3:m>=192?2:1;n[254]=n[254]=1,s.string2buf=function(u){var g,v,F,C,o,_=u.length,p=0;for(C=0;C<_;C++)v=u.charCodeAt(C),(v&64512)===55296&&C+1<_&&(F=u.charCodeAt(C+1),(F&64512)===56320&&(v=65536+(v-55296<<10)+(F-56320),C++)),p+=v<128?1:v<2048?2:v<65536?3:4;for(g=new l.Buf8(p),o=0,C=0;o>>6,g[o++]=128|v&63):v<65536?(g[o++]=224|v>>>12,g[o++]=128|v>>>6&63,g[o++]=128|v&63):(g[o++]=240|v>>>18,g[o++]=128|v>>>12&63,g[o++]=128|v>>>6&63,g[o++]=128|v&63);return g};function c(u,g){if(g<65537&&(u.subarray&&h||!u.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(u,g));for(var v="",F=0;F4){p[F++]=65533,v+=o-1;continue}for(C&=o===2?31:o===3?15:7;o>1&&v<_;)C=C<<6|u[v++]&63,o--;if(o>1){p[F++]=65533;continue}C<65536?p[F++]=C:(C-=65536,p[F++]=55296|C>>10&1023,p[F++]=56320|C&1023)}return c(p,F)},s.utf8border=function(u,g){var v;for(g=g||u.length,g>u.length&&(g=u.length),v=g-1;v>=0&&(u[v]&192)===128;)v--;return v<0||v===0?g:v+n[u[v]]>g?v:g}},{"./common":41}],43:[function(e,r,s){function l(a,h,n,m){for(var c=a&65535|0,u=a>>>16&65535|0,g=0;n!==0;){g=n>2e3?2e3:n,n-=g;do c=c+h[m++]|0,u=u+c|0;while(--g);c%=65521,u%=65521}return c|u<<16|0}r.exports=l},{}],44:[function(e,r,s){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,r,s){function l(){for(var n,m=[],c=0;c<256;c++){n=c;for(var u=0;u<8;u++)n=n&1?3988292384^n>>>1:n>>>1;m[c]=n}return m}var a=l();function h(n,m,c,u){var g=a,v=u+c;n^=-1;for(var F=u;F>>8^g[(n^m[F])&255];return n^-1}r.exports=h},{}],46:[function(e,r,s){var l=e("../utils/common"),a=e("./trees"),h=e("./adler32"),n=e("./crc32"),m=e("./messages"),c=0,u=1,g=3,v=4,F=5,C=0,o=1,_=-2,p=-3,I=-5,P=-1,y=1,w=2,S=3,E=4,N=0,D=2,B=8,R=9,Z=15,Q=8,J=29,G=256,$=G+1+J,j=30,tt=19,nt=2*$+1,ht=15,H=3,st=258,ft=st+H+1,Dt=32,kt=42,vt=69,at=73,St=91,gt=103,dt=113,bt=666,ct=1,At=2,Ut=3,Bt=4,ut=3;function Nt(i,A){return i.msg=m[A],A}function he(i){return(i<<1)-(i>4?9:0)}function Vt(i){for(var A=i.length;--A>=0;)i[A]=0}function Mt(i){var A=i.state,T=A.pending;T>i.avail_out&&(T=i.avail_out),T!==0&&(l.arraySet(i.output,A.pending_buf,A.pending_out,T,i.next_out),i.next_out+=T,A.pending_out+=T,i.total_out+=T,i.avail_out-=T,A.pending-=T,A.pending===0&&(A.pending_out=0))}function _t(i,A){a._tr_flush_block(i,i.block_start>=0?i.block_start:-1,i.strstart-i.block_start,A),i.block_start=i.strstart,Mt(i.strm)}function rt(i,A){i.pending_buf[i.pending++]=A}function jt(i,A){i.pending_buf[i.pending++]=A>>>8&255,i.pending_buf[i.pending++]=A&255}function de(i,A,T,d){var x=i.avail_in;return x>d&&(x=d),x===0?0:(i.avail_in-=x,l.arraySet(A,i.input,i.next_in,x,T),i.state.wrap===1?i.adler=h(i.adler,A,x,T):i.state.wrap===2&&(i.adler=n(i.adler,A,x,T)),i.next_in+=x,i.total_in+=x,x)}function ae(i,A){var T=i.max_chain_length,d=i.strstart,x,O,K=i.prev_length,Y=i.nice_match,X=i.strstart>i.w_size-ft?i.strstart-(i.w_size-ft):0,ot=i.window,qt=i.w_mask,mt=i.prev,lt=i.strstart+st,xt=ot[d+K-1],Tt=ot[d+K];i.prev_length>=i.good_match&&(T>>=2),Y>i.lookahead&&(Y=i.lookahead);do if(x=A,!(ot[x+K]!==Tt||ot[x+K-1]!==xt||ot[x]!==ot[d]||ot[++x]!==ot[d+1])){d+=2,x++;do;while(ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&dK){if(i.match_start=A,K=O,O>=Y)break;xt=ot[d+K-1],Tt=ot[d+K]}}while((A=mt[A&qt])>X&&--T!==0);return K<=i.lookahead?K:i.lookahead}function Zt(i){var A=i.w_size,T,d,x,O,K;do{if(O=i.window_size-i.lookahead-i.strstart,i.strstart>=A+(A-ft)){l.arraySet(i.window,i.window,A,A,0),i.match_start-=A,i.strstart-=A,i.block_start-=A,d=i.hash_size,T=d;do x=i.head[--T],i.head[T]=x>=A?x-A:0;while(--d);d=A,T=d;do x=i.prev[--T],i.prev[T]=x>=A?x-A:0;while(--d);O+=A}if(i.strm.avail_in===0)break;if(d=de(i.strm,i.window,i.strstart+i.lookahead,O),i.lookahead+=d,i.lookahead+i.insert>=H)for(K=i.strstart-i.insert,i.ins_h=i.window[K],i.ins_h=(i.ins_h<i.pending_buf_size-5&&(T=i.pending_buf_size-5);;){if(i.lookahead<=1){if(Zt(i),i.lookahead===0&&A===c)return ct;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var d=i.block_start+T;if((i.strstart===0||i.strstart>=d)&&(i.lookahead=i.strstart-d,i.strstart=d,_t(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-ft&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):(i.strstart>i.block_start&&(_t(i,!1),i.strm.avail_out===0),ct)}function ne(i,A){for(var T,d;;){if(i.lookahead=H&&(i.ins_h=(i.ins_h<=H)if(d=a._tr_tally(i,i.strstart-i.match_start,i.match_length-H),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=H){i.match_length--;do i.strstart++,i.ins_h=(i.ins_h<=H&&(i.ins_h=(i.ins_h<4096)&&(i.match_length=H-1)),i.prev_length>=H&&i.match_length<=i.prev_length){x=i.strstart+i.lookahead-H,d=a._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-H),i.lookahead-=i.prev_length-1,i.prev_length-=2;do++i.strstart<=x&&(i.ins_h=(i.ins_h<=H&&i.strstart>0&&(x=i.strstart-1,d=K[x],d===K[++x]&&d===K[++x]&&d===K[++x])){O=i.strstart+st;do;while(d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&xi.lookahead&&(i.match_length=i.lookahead)}if(i.match_length>=H?(T=a._tr_tally(i,1,i.match_length-H),i.lookahead-=i.match_length,i.strstart+=i.match_length,i.match_length=0):(T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++),T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function se(i,A){for(var T;;){if(i.lookahead===0&&(Zt(i),i.lookahead===0)){if(A===c)return ct;break}if(i.match_length=0,T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++,T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function Pt(i,A,T,d,x){this.good_length=i,this.max_lazy=A,this.nice_length=T,this.max_chain=d,this.func=x}var Gt;Gt=[new Pt(0,0,0,0,ue),new Pt(4,4,8,4,ne),new Pt(4,5,16,8,ne),new Pt(4,6,32,32,ne),new Pt(4,4,16,16,Wt),new Pt(8,16,32,32,Wt),new Pt(8,16,128,128,Wt),new Pt(8,32,128,256,Wt),new Pt(32,128,258,1024,Wt),new Pt(32,258,258,4096,Wt)];function pe(i){i.window_size=2*i.w_size,Vt(i.head),i.max_lazy_match=Gt[i.level].max_lazy,i.good_match=Gt[i.level].good_length,i.nice_match=Gt[i.level].nice_length,i.max_chain_length=Gt[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=H-1,i.match_available=0,i.ins_h=0}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=B,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(nt*2),this.dyn_dtree=new l.Buf16((2*j+1)*2),this.bl_tree=new l.Buf16((2*tt+1)*2),Vt(this.dyn_ltree),Vt(this.dyn_dtree),Vt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(ht+1),this.heap=new l.Buf16(2*$+1),Vt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*$+1),Vt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function M(i){var A;return!i||!i.state?Nt(i,_):(i.total_in=i.total_out=0,i.data_type=D,A=i.state,A.pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?kt:dt,i.adler=A.wrap===2?0:1,A.last_flush=c,a._tr_init(A),C)}function V(i){var A=M(i);return A===C&&pe(i.state),A}function W(i,A){return!i||!i.state||i.state.wrap!==2?_:(i.state.gzhead=A,C)}function k(i,A,T,d,x,O){if(!i)return _;var K=1;if(A===P&&(A=6),d<0?(K=0,d=-d):d>15&&(K=2,d-=16),x<1||x>R||T!==B||d<8||d>15||A<0||A>9||O<0||O>E)return Nt(i,_);d===8&&(d=9);var Y=new b;return i.state=Y,Y.strm=i,Y.wrap=K,Y.gzhead=null,Y.w_bits=d,Y.w_size=1<F||A<0)return i?Nt(i,_):_;if(d=i.state,!i.output||!i.input&&i.avail_in!==0||d.status===bt&&A!==v)return Nt(i,i.avail_out===0?I:_);if(d.strm=i,T=d.last_flush,d.last_flush=A,d.status===kt)if(d.wrap===2)i.adler=0,rt(d,31),rt(d,139),rt(d,8),d.gzhead?(rt(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),rt(d,d.gzhead.time&255),rt(d,d.gzhead.time>>8&255),rt(d,d.gzhead.time>>16&255),rt(d,d.gzhead.time>>24&255),rt(d,d.level===9?2:d.strategy>=w||d.level<2?4:0),rt(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(rt(d,d.gzhead.extra.length&255),rt(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(i.adler=n(i.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=vt):(rt(d,0),rt(d,0),rt(d,0),rt(d,0),rt(d,0),rt(d,d.level===9?2:d.strategy>=w||d.level<2?4:0),rt(d,ut),d.status=dt);else{var K=B+(d.w_bits-8<<4)<<8,Y=-1;d.strategy>=w||d.level<2?Y=0:d.level<6?Y=1:d.level===6?Y=2:Y=3,K|=Y<<6,d.strstart!==0&&(K|=Dt),K+=31-K%31,d.status=dt,jt(d,K),d.strstart!==0&&(jt(d,i.adler>>>16),jt(d,i.adler&65535)),i.adler=1}if(d.status===vt)if(d.gzhead.extra){for(x=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Mt(i),x=d.pending,d.pending===d.pending_buf_size));)rt(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=at)}else d.status=at;if(d.status===at)if(d.gzhead.name){x=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Mt(i),x=d.pending,d.pending===d.pending_buf_size)){O=1;break}d.gzindexx&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),O===0&&(d.gzindex=0,d.status=St)}else d.status=St;if(d.status===St)if(d.gzhead.comment){x=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Mt(i),x=d.pending,d.pending===d.pending_buf_size)){O=1;break}d.gzindexx&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),O===0&&(d.status=gt)}else d.status=gt;if(d.status===gt&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&Mt(i),d.pending+2<=d.pending_buf_size&&(rt(d,i.adler&255),rt(d,i.adler>>8&255),i.adler=0,d.status=dt)):d.status=dt),d.pending!==0){if(Mt(i),i.avail_out===0)return d.last_flush=-1,C}else if(i.avail_in===0&&he(A)<=he(T)&&A!==v)return Nt(i,I);if(d.status===bt&&i.avail_in!==0)return Nt(i,I);if(i.avail_in!==0||d.lookahead!==0||A!==c&&d.status!==bt){var X=d.strategy===w?se(d,A):d.strategy===S?_e(d,A):Gt[d.level].func(d,A);if((X===Ut||X===Bt)&&(d.status=bt),X===ct||X===Ut)return i.avail_out===0&&(d.last_flush=-1),C;if(X===At&&(A===u?a._tr_align(d):A!==F&&(a._tr_stored_block(d,0,0,!1),A===g&&(Vt(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),Mt(i),i.avail_out===0))return d.last_flush=-1,C}return A!==v?C:d.wrap<=0?o:(d.wrap===2?(rt(d,i.adler&255),rt(d,i.adler>>8&255),rt(d,i.adler>>16&255),rt(d,i.adler>>24&255),rt(d,i.total_in&255),rt(d,i.total_in>>8&255),rt(d,i.total_in>>16&255),rt(d,i.total_in>>24&255)):(jt(d,i.adler>>>16),jt(d,i.adler&65535)),Mt(i),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?C:o)}function U(i){var A;return!i||!i.state?_:(A=i.state.status,A!==kt&&A!==vt&&A!==at&&A!==St&&A!==gt&&A!==dt&&A!==bt?Nt(i,_):(i.state=null,A===dt?Nt(i,p):C))}function q(i,A){var T=A.length,d,x,O,K,Y,X,ot,qt;if(!i||!i.state||(d=i.state,K=d.wrap,K===2||K===1&&d.status!==kt||d.lookahead))return _;for(K===1&&(i.adler=h(i.adler,A,T,0)),d.wrap=0,T>=d.w_size&&(K===0&&(Vt(d.head),d.strstart=0,d.block_start=0,d.insert=0),qt=new l.Buf8(d.w_size),l.arraySet(qt,A,T-d.w_size,d.w_size,0),A=qt,T=d.w_size),Y=i.avail_in,X=i.next_in,ot=i.input,i.avail_in=T,i.next_in=0,i.input=A,Zt(d);d.lookahead>=H;){x=d.strstart,O=d.lookahead-(H-1);do d.ins_h=(d.ins_h<>>24,y>>>=R,w-=R,R=B>>>16&255,R===0)j[v++]=B&65535;else if(R&16){Z=B&65535,R&=15,R&&(w>>=R,w-=R),w<15&&(y+=$[u++]<>>24,y>>>=R,w-=R,R=B>>>16&255,R&16){if(Q=B&65535,R&=15,wo){n.msg="invalid distance too far back",c.mode=l;break t}if(y>>>=R,w-=R,R=v-F,Q>R){if(R=Q-R,R>p&&c.sane){n.msg="invalid distance too far back",c.mode=l;break t}if(J=0,G=P,I===0){if(J+=_-R,R2;)j[v++]=G[J++],j[v++]=G[J++],j[v++]=G[J++],Z-=3;Z&&(j[v++]=G[J++],Z>1&&(j[v++]=G[J++]))}else{J=v-Q;do j[v++]=j[J++],j[v++]=j[J++],j[v++]=j[J++],Z-=3;while(Z>2);Z&&(j[v++]=j[J++],Z>1&&(j[v++]=j[J++]))}}else if(R&64){n.msg="invalid distance code",c.mode=l;break t}else{B=E[(B&65535)+(y&(1<>3,u-=Z,w-=Z<<3,y&=(1<>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function de(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(k){var z;return!k||!k.state?I:(z=k.state,k.total_in=k.total_out=z.total=0,k.msg="",z.wrap&&(k.adler=z.wrap&1),z.mode=E,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new l.Buf32(Vt),z.distcode=z.distdyn=new l.Buf32(Mt),z.sane=1,z.back=-1,o)}function Zt(k){var z;return!k||!k.state?I:(z=k.state,z.wsize=0,z.whave=0,z.wnext=0,ae(k))}function ue(k,z){var f,U;return!k||!k.state||(U=k.state,z<0?(f=0,z=-z):(f=(z>>4)+1,z<48&&(z&=15)),z&&(z<8||z>15))?I:(U.window!==null&&U.wbits!==z&&(U.window=null),U.wrap=f,U.wbits=z,Zt(k))}function ne(k,z){var f,U;return k?(U=new de,k.state=U,U.window=null,f=ue(k,z),f!==o&&(k.state=null),f):I}function Wt(k){return ne(k,rt)}var _e=!0,se,Pt;function Gt(k){if(_e){var z;for(se=new l.Buf32(512),Pt=new l.Buf32(32),z=0;z<144;)k.lens[z++]=8;for(;z<256;)k.lens[z++]=9;for(;z<280;)k.lens[z++]=7;for(;z<288;)k.lens[z++]=8;for(m(u,k.lens,0,288,se,0,k.work,{bits:9}),z=0;z<32;)k.lens[z++]=5;m(g,k.lens,0,32,Pt,0,k.work,{bits:5}),_e=!1}k.lencode=se,k.lenbits=9,k.distcode=Pt,k.distbits=5}function pe(k,z,f,U){var q,i=k.state;return i.window===null&&(i.wsize=1<=i.wsize?(l.arraySet(i.window,z,f-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(q=i.wsize-i.wnext,q>U&&(q=U),l.arraySet(i.window,z,f-U,q,i.wnext),U-=q,U?(l.arraySet(i.window,z,f-U,U,0),i.wnext=U,i.whave=i.wsize):(i.wnext+=q,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,f.check=h(f.check,Ct,2,0),x=0,O=0,f.mode=N;break}if(f.flags=0,f.head&&(f.head.done=!1),!(f.wrap&1)||(((x&255)<<8)+(x>>8))%31){k.msg="incorrect header check",f.mode=ut;break}if((x&15)!==S){k.msg="unknown compression method",f.mode=ut;break}if(x>>>=4,O-=4,yt=(x&15)+8,f.wbits===0)f.wbits=yt;else if(yt>f.wbits){k.msg="invalid window size",f.mode=ut;break}f.dmax=1<>8&1),f.flags&512&&(Ct[0]=x&255,Ct[1]=x>>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0,f.mode=D;case D:for(;O<32;){if(T===0)break t;T--,x+=U[i++]<>>8&255,Ct[2]=x>>>16&255,Ct[3]=x>>>24&255,f.check=h(f.check,Ct,4,0)),x=0,O=0,f.mode=B;case B:for(;O<16;){if(T===0)break t;T--,x+=U[i++]<>8),f.flags&512&&(Ct[0]=x&255,Ct[1]=x>>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0,f.mode=R;case R:if(f.flags&1024){for(;O<16;){if(T===0)break t;T--,x+=U[i++]<>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0}else f.head&&(f.head.extra=null);f.mode=Z;case Z:if(f.flags&1024&&(X=f.length,X>T&&(X=T),X&&(f.head&&(yt=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Array(f.head.extra_len)),l.arraySet(f.head.extra,U,i,X,yt)),f.flags&512&&(f.check=h(f.check,U,X,i)),T-=X,i+=X,f.length-=X),f.length))break t;f.length=0,f.mode=Q;case Q:if(f.flags&2048){if(T===0)break t;X=0;do yt=U[i+X++],f.head&&yt&&f.length<65536&&(f.head.name+=String.fromCharCode(yt));while(yt&&X>9&1,f.head.done=!0),k.adler=f.check=0,f.mode=tt;break;case $:for(;O<32;){if(T===0)break t;T--,x+=U[i++]<>>=O&7,O-=O&7,f.mode=At;break}for(;O<3;){if(T===0)break t;T--,x+=U[i++]<>>=1,O-=1,x&3){case 0:f.mode=ht;break;case 1:if(Gt(f),f.mode=vt,z===C){x>>>=2,O-=2;break t}break;case 2:f.mode=ft;break;case 3:k.msg="invalid block type",f.mode=ut}x>>>=2,O-=2;break;case ht:for(x>>>=O&7,O-=O&7;O<32;){if(T===0)break t;T--,x+=U[i++]<>>16^65535)){k.msg="invalid stored block lengths",f.mode=ut;break}if(f.length=x&65535,x=0,O=0,f.mode=H,z===C)break t;case H:f.mode=st;case st:if(X=f.length,X){if(X>T&&(X=T),X>d&&(X=d),X===0)break t;l.arraySet(q,U,i,X,A),T-=X,i+=X,d-=X,A+=X,f.length-=X;break}f.mode=tt;break;case ft:for(;O<14;){if(T===0)break t;T--,x+=U[i++]<>>=5,O-=5,f.ndist=(x&31)+1,x>>>=5,O-=5,f.ncode=(x&15)+4,x>>>=4,O-=4,f.nlen>286||f.ndist>30){k.msg="too many length or distance symbols",f.mode=ut;break}f.have=0,f.mode=Dt;case Dt:for(;f.have>>=3,O-=3}for(;f.have<19;)f.lens[Me[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,te={bits:f.lenbits},Yt=m(c,f.lens,0,19,f.lencode,0,f.work,te),f.lenbits=te.bits,Yt){k.msg="invalid code lengths set",f.mode=ut;break}f.have=0,f.mode=kt;case kt:for(;f.have>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=U[i++]<>>=lt,O-=lt,f.lens[f.have++]=Tt;else{if(Tt===16){for(Jt=lt+2;O>>=lt,O-=lt,f.have===0){k.msg="invalid bit length repeat",f.mode=ut;break}yt=f.lens[f.have-1],X=3+(x&3),x>>>=2,O-=2}else if(Tt===17){for(Jt=lt+3;O>>=lt,O-=lt,yt=0,X=3+(x&7),x>>>=3,O-=3}else{for(Jt=lt+7;O>>=lt,O-=lt,yt=0,X=11+(x&127),x>>>=7,O-=7}if(f.have+X>f.nlen+f.ndist){k.msg="invalid bit length repeat",f.mode=ut;break}for(;X--;)f.lens[f.have++]=yt}}if(f.mode===ut)break;if(f.lens[256]===0){k.msg="invalid code -- missing end-of-block",f.mode=ut;break}if(f.lenbits=9,te={bits:f.lenbits},Yt=m(u,f.lens,0,f.nlen,f.lencode,0,f.work,te),f.lenbits=te.bits,Yt){k.msg="invalid literal/lengths set",f.mode=ut;break}if(f.distbits=6,f.distcode=f.distdyn,te={bits:f.distbits},Yt=m(g,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,te),f.distbits=te.bits,Yt){k.msg="invalid distances set",f.mode=ut;break}if(f.mode=vt,z===C)break t;case vt:f.mode=at;case at:if(T>=6&&d>=258){k.next_out=A,k.avail_out=d,k.next_in=i,k.avail_in=T,f.hold=x,f.bits=O,n(k,Y),A=k.next_out,q=k.output,d=k.avail_out,i=k.next_in,U=k.input,T=k.avail_in,x=f.hold,O=f.bits,f.mode===tt&&(f.back=-1);break}for(f.back=0;mt=f.lencode[x&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=U[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,x+=U[i++]<>>=Rt,O-=Rt,f.back+=Rt}if(x>>>=lt,O-=lt,f.back+=lt,f.length=Tt,xt===0){f.mode=ct;break}if(xt&32){f.back=-1,f.mode=tt;break}if(xt&64){k.msg="invalid literal/length code",f.mode=ut;break}f.extra=xt&15,f.mode=St;case St:if(f.extra){for(Jt=f.extra;O>>=f.extra,O-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=gt;case gt:for(;mt=f.distcode[x&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=U[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,x+=U[i++]<>>=Rt,O-=Rt,f.back+=Rt}if(x>>>=lt,O-=lt,f.back+=lt,xt&64){k.msg="invalid distance code",f.mode=ut;break}f.offset=Tt,f.extra=xt&15,f.mode=dt;case dt:if(f.extra){for(Jt=f.extra;O>>=f.extra,O-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){k.msg="invalid distance too far back",f.mode=ut;break}f.mode=bt;case bt:if(d===0)break t;if(X=Y-d,f.offset>X){if(X=f.offset-X,X>f.whave&&f.sane){k.msg="invalid distance too far back",f.mode=ut;break}X>f.wnext?(X-=f.wnext,ot=f.wsize-X):ot=f.wnext-X,X>f.length&&(X=f.length),qt=f.window}else qt=q,ot=A-f.offset,X=f.length;X>d&&(X=d),d-=X,f.length-=X;do q[A++]=qt[ot++];while(--X);f.length===0&&(f.mode=at);break;case ct:if(d===0)break t;q[A++]=f.length,d--,f.mode=at;break;case At:if(f.wrap){for(;O<32;){if(T===0)break t;T--,x|=U[i++]<=1&&at[Z]===0;Z--);if(Q>Z&&(Q=Z),Z===0)return y[w++]=20971520,y[w++]=20971520,E.bits=1,0;for(R=1;R0&&(_===m||Z!==1))return-1;for(St[1]=0,D=1;Dh||_===u&&j>n)return 1;for(;;){bt=D-G,S[B]vt?(ct=gt[dt+S[B]],At=Dt[kt+S[B]]):(ct=96,At=0),nt=1<>G)+ht]=bt<<24|ct<<16|At|0;while(ht!==0);for(nt=1<>=1;if(nt!==0?(tt&=nt-1,tt+=nt):tt=0,B++,--at[D]===0){if(D===Z)break;D=p[I+S[B]]}if(D>Q&&(tt&st)!==H){for(G===0&&(G=Q),ft+=R,J=D-G,$=1<h||_===u&&j>n)return 1;H=tt&st,y[H]=Q<<24|J<<16|ft-w|0}}return tt!==0&&(y[ft+tt]=D-G<<24|4194304|0),E.bits=Q,0}},{"../utils/common":41}],51:[function(e,r,s){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,r,s){var l=e("../utils/common"),a=4,h=0,n=1,m=2;function c(b){for(var M=b.length;--M>=0;)b[M]=0}var u=0,g=1,v=2,F=3,C=258,o=29,_=256,p=_+1+o,I=30,P=19,y=2*p+1,w=15,S=16,E=7,N=256,D=16,B=17,R=18,Z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],J=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=512,j=new Array((p+2)*2);c(j);var tt=new Array(I*2);c(tt);var nt=new Array($);c(nt);var ht=new Array(C-F+1);c(ht);var H=new Array(o);c(H);var st=new Array(I);c(st);function ft(b,M,V,W,k){this.static_tree=b,this.extra_bits=M,this.extra_base=V,this.elems=W,this.max_length=k,this.has_stree=b&&b.length}var Dt,kt,vt;function at(b,M){this.dyn_tree=b,this.max_code=0,this.stat_desc=M}function St(b){return b<256?nt[b]:nt[256+(b>>>7)]}function gt(b,M){b.pending_buf[b.pending++]=M&255,b.pending_buf[b.pending++]=M>>>8&255}function dt(b,M,V){b.bi_valid>S-V?(b.bi_buf|=M<>S-b.bi_valid,b.bi_valid+=V-S):(b.bi_buf|=M<>>=1,V<<=1;while(--M>0);return V>>>1}function At(b){b.bi_valid===16?(gt(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):b.bi_valid>=8&&(b.pending_buf[b.pending++]=b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)}function Ut(b,M){var V=M.dyn_tree,W=M.max_code,k=M.stat_desc.static_tree,z=M.stat_desc.has_stree,f=M.stat_desc.extra_bits,U=M.stat_desc.extra_base,q=M.stat_desc.max_length,i,A,T,d,x,O,K=0;for(d=0;d<=w;d++)b.bl_count[d]=0;for(V[b.heap[b.heap_max]*2+1]=0,i=b.heap_max+1;iq&&(d=q,K++),V[A*2+1]=d,!(A>W)&&(b.bl_count[d]++,x=0,A>=U&&(x=f[A-U]),O=V[A*2],b.opt_len+=O*(d+x),z&&(b.static_len+=O*(k[A*2+1]+x)));if(K!==0){do{for(d=q-1;b.bl_count[d]===0;)d--;b.bl_count[d]--,b.bl_count[d+1]+=2,b.bl_count[q]--,K-=2}while(K>0);for(d=q;d!==0;d--)for(A=b.bl_count[d];A!==0;)T=b.heap[--i],!(T>W)&&(V[T*2+1]!==d&&(b.opt_len+=(d-V[T*2+1])*V[T*2],V[T*2+1]=d),A--)}}function Bt(b,M,V){var W=new Array(w+1),k=0,z,f;for(z=1;z<=w;z++)W[z]=k=k+V[z-1]<<1;for(f=0;f<=M;f++){var U=b[f*2+1];U!==0&&(b[f*2]=ct(W[U]++,U))}}function ut(){var b,M,V,W,k,z=new Array(w+1);for(V=0,W=0;W>=7;W8?gt(b,b.bi_buf):b.bi_valid>0&&(b.pending_buf[b.pending++]=b.bi_buf),b.bi_buf=0,b.bi_valid=0}function Vt(b,M,V,W){he(b),gt(b,V),gt(b,~V),l.arraySet(b.pending_buf,b.window,M,V,b.pending),b.pending+=V}function Mt(b,M,V,W){var k=M*2,z=V*2;return b[k]>1;f>=1;f--)_t(b,V,f);i=z;do f=b.heap[1],b.heap[1]=b.heap[b.heap_len--],_t(b,V,1),U=b.heap[1],b.heap[--b.heap_max]=f,b.heap[--b.heap_max]=U,V[i*2]=V[f*2]+V[U*2],b.depth[i]=(b.depth[f]>=b.depth[U]?b.depth[f]:b.depth[U])+1,V[f*2+1]=V[U*2+1]=i,b.heap[1]=i++,_t(b,V,1);while(b.heap_len>=2);b.heap[--b.heap_max]=b.heap[1],Ut(b,M),Bt(V,q,b.bl_count)}function de(b,M,V){var W,k=-1,z,f=M[0*2+1],U=0,q=7,i=4;for(f===0&&(q=138,i=3),M[(V+1)*2+1]=65535,W=0;W<=V;W++)z=f,f=M[(W+1)*2+1],!(++U=3&&b.bl_tree[G[M]*2+1]===0;M--);return b.opt_len+=3*(M+1)+5+5+4,M}function ue(b,M,V,W){var k;for(dt(b,M-257,5),dt(b,V-1,5),dt(b,W-4,4),k=0;k>>=1)if(M&1&&b.dyn_ltree[V*2]!==0)return h;if(b.dyn_ltree[18]!==0||b.dyn_ltree[20]!==0||b.dyn_ltree[26]!==0)return n;for(V=32;V<_;V++)if(b.dyn_ltree[V*2]!==0)return n;return h}var Wt=!1;function _e(b){Wt||(ut(),Wt=!0),b.l_desc=new at(b.dyn_ltree,Dt),b.d_desc=new at(b.dyn_dtree,kt),b.bl_desc=new at(b.bl_tree,vt),b.bi_buf=0,b.bi_valid=0,Nt(b)}function se(b,M,V,W){dt(b,(u<<1)+(W?1:0),3),Vt(b,M,V)}function Pt(b){dt(b,g<<1,3),bt(b,N,j),At(b)}function Gt(b,M,V,W){var k,z,f=0;b.level>0?(b.strm.data_type===m&&(b.strm.data_type=ne(b)),jt(b,b.l_desc),jt(b,b.d_desc),f=Zt(b),k=b.opt_len+3+7>>>3,z=b.static_len+3+7>>>3,z<=k&&(k=z)):k=z=V+5,V+4<=k&&M!==-1?se(b,M,V,W):b.strategy===a||z===k?(dt(b,(g<<1)+(W?1:0),3),rt(b,j,tt)):(dt(b,(v<<1)+(W?1:0),3),ue(b,b.l_desc.max_code+1,b.d_desc.max_code+1,f+1),rt(b,b.dyn_ltree,b.dyn_dtree)),Nt(b),W&&he(b)}function pe(b,M,V){return b.pending_buf[b.d_buf+b.last_lit*2]=M>>>8&255,b.pending_buf[b.d_buf+b.last_lit*2+1]=M&255,b.pending_buf[b.l_buf+b.last_lit]=V&255,b.last_lit++,M===0?b.dyn_ltree[V*2]++:(b.matches++,M--,b.dyn_ltree[(ht[V]+_+1)*2]++,b.dyn_dtree[St(M)*2]++),b.last_lit===b.lit_bufsize-1}s._tr_init=_e,s._tr_stored_block=se,s._tr_flush_block=Gt,s._tr_tally=pe,s._tr_align=Pt},{"../utils/common":41}],53:[function(e,r,s){function l(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}r.exports=l},{}],54:[function(e,r,s){(function(l){(function(a,h){if(a.setImmediate)return;var n=1,m={},c=!1,u=a.document,g;function v(E){typeof E!="function"&&(E=new Function(""+E));for(var N=new Array(arguments.length-1),D=0;D"u"?typeof l>"u"?this:l:self)}).call(this,typeof Ie<"u"?Ie:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Re);var Ke=Re.exports,Ge=He(Ke);class Je{load(t,e){fetch(t).then(function(r){return r.status===200||r.status===0?Promise.resolve(r.blob()):Promise.reject(new Error(r.statusText))}).then(Ge.loadAsync).then(async function(r){let s=null;const l={};for(let h in r.files){r.files[h];const n=h.split(".").pop();if(n==="ssfb"){if(s!==null){e(null,null,null,new Error("already exist ssfb file"));return}s=h}else if(n==="png"){const m=h.split(".").slice(0,-1).join(".");l[m]=await r.file(h).async("uint8array")}}let a=await r.file(s).async("uint8array");e(s,a,l,null)},function(s){e(null,null,null,s)})}}class $e{static createAnimePackMap(t){const e=t.fbObj.animePacksLength(),r={};for(let s=0;s{e.setupForLoadComplete(r)})}loadSspkg(t){const e=this;new Je().load(t,(s,l,a,h)=>{if(h!==null)return;let n=new Ne(s,l,a,()=>{e.setupForLoadComplete(n)})})}setupForLoadComplete(t){this.projectData=t,this.animePackMap=$e.createAnimePackMap(this.projectData),this.onComplete!==null&&this.onComplete()}loadAnimation(t,e){let r=!1;this.textureContainer==null&&(r=!0,this.textureContainer=new We(this));const s=this.animePackMap[t],l=s.animePack,h=s.animationMap[e];this.currentAnimation=h,this.currentAnimePack=l,this.textureContainer.Setup(t,e);const n=h.labelDataLength();for(let m=0;m= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3162,6 +3133,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { this.parentAlpha = 1; this.prevCellID = []; this.prevPartObject = []; + this.changeCellID = []; this.substituteOverWrite = []; this.substituteKeyParam = []; this.alphaBlendType = []; @@ -3227,12 +3199,14 @@ var ss6PlayerViewer = (function (exports, pixi_js) { const partsLength = animePackData.partsLength(); this.prevCellID = new Array(partsLength); this.prevPartObject = new Array(partsLength); + this.changeCellID = new Array(partsLength); this.substituteOverWrite = new Array(partsLength); this.substituteKeyParam = new Array(partsLength); for (let j = 0; j < partsLength; j++) { const index = animePackData.parts(j).index(); this.prevCellID[index] = -1; this.prevPartObject[index] = null; + this.changeCellID[index] = -1; this.substituteOverWrite[index] = null; this.substituteKeyParam[index] = null; } @@ -3350,8 +3324,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3361,8 +3334,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3495,6 +3467,45 @@ var ss6PlayerViewer = (function (exports, pixi_js) { SetPlayEndCallback(fn) { this.playEndCallback = fn; } + /** + * パーツに割り当たるセルを変更します. + * + * @param {string} partsname - パーツ名 + * @param {string} sscename - セルマップ名 + * @param {string} cellname - 表示させたいセル名 + * + * @return {void} + */ + SetPartCell(partsname, sscename, cellname) { + if (this.playerLib.animationData) { + let changeCellIndex = -1; + if (sscename !== "" && cellname !== "") { + const fbObj = this.playerLib.fbObj; + const numCells = this.playerLib.fbObj.numCells(); + for (let i = 0; i < numCells; i++) { + const cell = fbObj.cells(i); + const name1 = cell.name(); + const cellMap = cell.cellMap(); + const name2 = cellMap.name(); + if (cellname === name1 && sscename === name2) { + changeCellIndex = i; + break; + } + } + } + const animePackData = this.playerLib.animePackData; + const partsLength = animePackData.partsLength(); + for (let i = 0; i < partsLength; i++) { + const part = animePackData.parts(i); + const index = part.index(); + const partName = part.name(); + if (partName === partsname) { + this.changeCellID[index] = changeCellIndex; + break; + } + } + } + } /** * パーツの描画モードを取得する * @return {array} - 全パーツの描画モード @@ -3548,8 +3559,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new pixi_js.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3664,7 +3674,10 @@ var ss6PlayerViewer = (function (exports, pixi_js) { for (let ii = 0; ii < l; ii = ii + 1 | 0) { const i = this.playerLib.prio2index[ii]; const data = fd[i]; - const cellID = data.cellIndex; + let cellID = data.cellIndex; + if (this.changeCellID[i] !== -1) { + cellID = this.changeCellID[i]; + } let partObject = this.prevPartObject[i]; const part = this.playerLib.animePackData.parts(i); const partType = part.type(); @@ -3680,16 +3693,14 @@ var ss6PlayerViewer = (function (exports, pixi_js) { case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.label = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.label = part.name(); } @@ -3697,23 +3708,20 @@ var ss6PlayerViewer = (function (exports, pixi_js) { case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new pixi_js.Container(); partObject.label = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.label = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3780,17 +3788,13 @@ var ss6PlayerViewer = (function (exports, pixi_js) { } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3922,8 +3926,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { if (blendMode === "multiply" || blendMode === "screen") { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { @@ -14784,7 +14787,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { { bi_windup(s); /* align on byte boundary */ - if (header) { + { put_short(s, len); put_short(s, ~len); } @@ -15282,7 +15285,7 @@ var ss6PlayerViewer = (function (exports, pixi_js) { //int last; /* one if this is the last block for a file */ { send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */ - copy_block(s, buf, stored_len, true); /* with header */ + copy_block(s, buf, stored_len); /* with header */ } @@ -15787,16 +15790,18 @@ var ss6PlayerViewer = (function (exports, pixi_js) { getFrameDataMap() { return this.frameDataMap; } - async init(canvasWrapperElement) { + async init(canvasWrapperElement, options) { this.canvasWidth = canvasWrapperElement.clientWidth; this.canvasHeight = canvasWrapperElement.clientHeight; const pixiApplication = new pixi_js.Application(); - await pixiApplication.init({ + const pixiOptions = options === void 0 || options === null ? { + // default options preference: "webgpu", width: this.canvasWidth, height: this.canvasHeight, backgroundAlpha: 0 - }); + } : options; + await pixiApplication.init(pixiOptions); const canvasElement = pixiApplication.canvas; canvasWrapperElement.appendChild(canvasElement); const mainContainer = new MainContainer(); diff --git a/docs/mz/SampleProject/js/plugins/ss6player-rpgmakermz.js b/docs/mz/SampleProject/js/plugins/ss6player-rpgmakermz.js index a37f297..c0303fd 100644 --- a/docs/mz/SampleProject/js/plugins/ss6player-rpgmakermz.js +++ b/docs/mz/SampleProject/js/plugins/ss6player-rpgmakermz.js @@ -1,6 +1,6 @@ /** * ----------------------------------------------------------- - * SS6Player For RPG Maker MZ v0.8.2 + * SS6Player For RPG Maker MZ v0.8.3 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ @@ -14,7 +14,7 @@ Imported.SS6PlayerRPGMakerMZ = true; /*:ja * @target MZ * @plugindesc SpriteStudio 7.0 & 6 アニメーション再生プラグイン - * @version 0.8.2 + * @version 0.8.3 * @author CRI Middleware Co., Ltd. * @url https://github.com/SpriteStudio/SS6PlayerForWeb/tree/master/packages/ss6player-rpgmakermz * @help SS6Player for RPG Maker MZ @@ -2607,62 +2607,34 @@ Imported.SS6PlayerRPGMakerMZ = true; fd.flag1 = f1; fd.flag2 = f2; let id = 0; - if (f1 & PART_FLAG.INVISIBLE) - fd.f_hide = true; - if (f1 & PART_FLAG.FLIP_H) - fd.f_flipH = true; - if (f1 & PART_FLAG.FLIP_V) - fd.f_flipV = true; - if (f1 & PART_FLAG.CELL_INDEX) - fd.cellIndex = curPartState.data(id++); - if (f1 & PART_FLAG.POSITION_X) - fd.positionX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Y) - fd.positionY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Z) - id++; - if (f1 & PART_FLAG.PIVOT_X) - fd.pivotX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.PIVOT_Y) - fd.pivotY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.ROTATIONX) - id++; - if (f1 & PART_FLAG.ROTATIONY) - id++; - if (f1 & PART_FLAG.ROTATIONZ) - fd.rotationZ = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_X) - fd.scaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_Y) - fd.scaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_X) - fd.localscaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_Y) - fd.localscaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.OPACITY) - fd.opacity = curPartState.data(id++); - if (f1 & PART_FLAG.LOCALOPACITY) - fd.localopacity = curPartState.data(id++); - if (f1 & PART_FLAG.SIZE_X) - fd.size_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SIZE_Y) - fd.size_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_MOVE) - fd.uv_move_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_MOVE) - fd.uv_move_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.UV_ROTATION) - fd.uv_rotation = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_SCALE) - fd.uv_scale_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_SCALE) - fd.uv_scale_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.BOUNDINGRADIUS) - id++; - if (f1 & PART_FLAG.MASK) - fd.masklimen = curPartState.data(id++); - if (f1 & PART_FLAG.PRIORITY) - fd.priority = curPartState.data(id++); + if (f1 & PART_FLAG.INVISIBLE) fd.f_hide = true; + if (f1 & PART_FLAG.FLIP_H) fd.f_flipH = true; + if (f1 & PART_FLAG.FLIP_V) fd.f_flipV = true; + if (f1 & PART_FLAG.CELL_INDEX) fd.cellIndex = curPartState.data(id++); + if (f1 & PART_FLAG.POSITION_X) fd.positionX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Y) fd.positionY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Z) id++; + if (f1 & PART_FLAG.PIVOT_X) fd.pivotX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.PIVOT_Y) fd.pivotY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.ROTATIONX) id++; + if (f1 & PART_FLAG.ROTATIONY) id++; + if (f1 & PART_FLAG.ROTATIONZ) fd.rotationZ = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_X) fd.scaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_Y) fd.scaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_X) fd.localscaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_Y) fd.localscaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.OPACITY) fd.opacity = curPartState.data(id++); + if (f1 & PART_FLAG.LOCALOPACITY) fd.localopacity = curPartState.data(id++); + if (f1 & PART_FLAG.SIZE_X) fd.size_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SIZE_Y) fd.size_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_MOVE) fd.uv_move_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_MOVE) fd.uv_move_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.UV_ROTATION) fd.uv_rotation = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_SCALE) fd.uv_scale_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_SCALE) fd.uv_scale_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.BOUNDINGRADIUS) id++; + if (f1 & PART_FLAG.MASK) fd.masklimen = curPartState.data(id++); + if (f1 & PART_FLAG.PRIORITY) fd.priority = curPartState.data(id++); if (f1 & PART_FLAG.INSTANCE_KEYFRAME) { fd.instanceValue_curKeyframe = curPartState.data(id++); fd.instanceValue_startFrame = curPartState.data(id++); @@ -2937,8 +2909,7 @@ Imported.SS6PlayerRPGMakerMZ = true; const c1 = (LDy - RUy) * (LDx - LUx) - (LDx - RUx) * (LDy - LUy); const c2 = (RDx - LUx) * (LDy - LUy) - (RDy - LUy) * (LDx - LUx); const c3 = (RDx - LUx) * (LDy - RUy) - (RDy - LUy) * (LDx - RUx); - if (c3 <= 0 && c3 >= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3412,8 +3383,7 @@ Imported.SS6PlayerRPGMakerMZ = true; * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3423,8 +3393,7 @@ Imported.SS6PlayerRPGMakerMZ = true; * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3610,8 +3579,7 @@ Imported.SS6PlayerRPGMakerMZ = true; */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new filterColorMatrix.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3742,16 +3710,14 @@ Imported.SS6PlayerRPGMakerMZ = true; case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.name = part.name(); } @@ -3759,23 +3725,20 @@ Imported.SS6PlayerRPGMakerMZ = true; case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new display.Container(); partObject.name = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3842,17 +3805,13 @@ Imported.SS6PlayerRPGMakerMZ = true; } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3984,8 +3943,7 @@ Imported.SS6PlayerRPGMakerMZ = true; if (blendMode === constants.BLEND_MODES.MULTIPLY || blendMode === constants.BLEND_MODES.SCREEN) { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { @@ -4129,10 +4087,7 @@ Imported.SS6PlayerRPGMakerMZ = true; var __defProp$1 = Object.defineProperty; var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __publicField$1 = (obj, key, value) => { - __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; + var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value); const _PluginParameters = class _PluginParameters { // string constructor() { @@ -4177,10 +4132,7 @@ Imported.SS6PlayerRPGMakerMZ = true; var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; + var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); const _SS6ProjectManager = class _SS6ProjectManager { constructor() { __publicField(this, "ssprojectMap"); diff --git a/docs/mz/ss6player-rpgmakermz.js b/docs/mz/ss6player-rpgmakermz.js index a37f297..c0303fd 100644 --- a/docs/mz/ss6player-rpgmakermz.js +++ b/docs/mz/ss6player-rpgmakermz.js @@ -1,6 +1,6 @@ /** * ----------------------------------------------------------- - * SS6Player For RPG Maker MZ v0.8.2 + * SS6Player For RPG Maker MZ v0.8.3 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ @@ -14,7 +14,7 @@ Imported.SS6PlayerRPGMakerMZ = true; /*:ja * @target MZ * @plugindesc SpriteStudio 7.0 & 6 アニメーション再生プラグイン - * @version 0.8.2 + * @version 0.8.3 * @author CRI Middleware Co., Ltd. * @url https://github.com/SpriteStudio/SS6PlayerForWeb/tree/master/packages/ss6player-rpgmakermz * @help SS6Player for RPG Maker MZ @@ -2607,62 +2607,34 @@ Imported.SS6PlayerRPGMakerMZ = true; fd.flag1 = f1; fd.flag2 = f2; let id = 0; - if (f1 & PART_FLAG.INVISIBLE) - fd.f_hide = true; - if (f1 & PART_FLAG.FLIP_H) - fd.f_flipH = true; - if (f1 & PART_FLAG.FLIP_V) - fd.f_flipV = true; - if (f1 & PART_FLAG.CELL_INDEX) - fd.cellIndex = curPartState.data(id++); - if (f1 & PART_FLAG.POSITION_X) - fd.positionX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Y) - fd.positionY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Z) - id++; - if (f1 & PART_FLAG.PIVOT_X) - fd.pivotX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.PIVOT_Y) - fd.pivotY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.ROTATIONX) - id++; - if (f1 & PART_FLAG.ROTATIONY) - id++; - if (f1 & PART_FLAG.ROTATIONZ) - fd.rotationZ = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_X) - fd.scaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_Y) - fd.scaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_X) - fd.localscaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_Y) - fd.localscaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.OPACITY) - fd.opacity = curPartState.data(id++); - if (f1 & PART_FLAG.LOCALOPACITY) - fd.localopacity = curPartState.data(id++); - if (f1 & PART_FLAG.SIZE_X) - fd.size_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SIZE_Y) - fd.size_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_MOVE) - fd.uv_move_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_MOVE) - fd.uv_move_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.UV_ROTATION) - fd.uv_rotation = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_SCALE) - fd.uv_scale_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_SCALE) - fd.uv_scale_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.BOUNDINGRADIUS) - id++; - if (f1 & PART_FLAG.MASK) - fd.masklimen = curPartState.data(id++); - if (f1 & PART_FLAG.PRIORITY) - fd.priority = curPartState.data(id++); + if (f1 & PART_FLAG.INVISIBLE) fd.f_hide = true; + if (f1 & PART_FLAG.FLIP_H) fd.f_flipH = true; + if (f1 & PART_FLAG.FLIP_V) fd.f_flipV = true; + if (f1 & PART_FLAG.CELL_INDEX) fd.cellIndex = curPartState.data(id++); + if (f1 & PART_FLAG.POSITION_X) fd.positionX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Y) fd.positionY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Z) id++; + if (f1 & PART_FLAG.PIVOT_X) fd.pivotX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.PIVOT_Y) fd.pivotY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.ROTATIONX) id++; + if (f1 & PART_FLAG.ROTATIONY) id++; + if (f1 & PART_FLAG.ROTATIONZ) fd.rotationZ = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_X) fd.scaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_Y) fd.scaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_X) fd.localscaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_Y) fd.localscaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.OPACITY) fd.opacity = curPartState.data(id++); + if (f1 & PART_FLAG.LOCALOPACITY) fd.localopacity = curPartState.data(id++); + if (f1 & PART_FLAG.SIZE_X) fd.size_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SIZE_Y) fd.size_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_MOVE) fd.uv_move_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_MOVE) fd.uv_move_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.UV_ROTATION) fd.uv_rotation = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_SCALE) fd.uv_scale_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_SCALE) fd.uv_scale_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.BOUNDINGRADIUS) id++; + if (f1 & PART_FLAG.MASK) fd.masklimen = curPartState.data(id++); + if (f1 & PART_FLAG.PRIORITY) fd.priority = curPartState.data(id++); if (f1 & PART_FLAG.INSTANCE_KEYFRAME) { fd.instanceValue_curKeyframe = curPartState.data(id++); fd.instanceValue_startFrame = curPartState.data(id++); @@ -2937,8 +2909,7 @@ Imported.SS6PlayerRPGMakerMZ = true; const c1 = (LDy - RUy) * (LDx - LUx) - (LDx - RUx) * (LDy - LUy); const c2 = (RDx - LUx) * (LDy - LUy) - (RDy - LUy) * (LDx - LUx); const c3 = (RDx - LUx) * (LDy - RUy) - (RDy - LUy) * (LDx - RUx); - if (c3 <= 0 && c3 >= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3412,8 +3383,7 @@ Imported.SS6PlayerRPGMakerMZ = true; * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3423,8 +3393,7 @@ Imported.SS6PlayerRPGMakerMZ = true; * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3610,8 +3579,7 @@ Imported.SS6PlayerRPGMakerMZ = true; */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new filterColorMatrix.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3742,16 +3710,14 @@ Imported.SS6PlayerRPGMakerMZ = true; case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.name = part.name(); } @@ -3759,23 +3725,20 @@ Imported.SS6PlayerRPGMakerMZ = true; case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new display.Container(); partObject.name = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3842,17 +3805,13 @@ Imported.SS6PlayerRPGMakerMZ = true; } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3984,8 +3943,7 @@ Imported.SS6PlayerRPGMakerMZ = true; if (blendMode === constants.BLEND_MODES.MULTIPLY || blendMode === constants.BLEND_MODES.SCREEN) { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { @@ -4129,10 +4087,7 @@ Imported.SS6PlayerRPGMakerMZ = true; var __defProp$1 = Object.defineProperty; var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __publicField$1 = (obj, key, value) => { - __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; + var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value); const _PluginParameters = class _PluginParameters { // string constructor() { @@ -4177,10 +4132,7 @@ Imported.SS6PlayerRPGMakerMZ = true; var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; + var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); const _SS6ProjectManager = class _SS6ProjectManager { constructor() { __publicField(this, "ssprojectMap"); diff --git a/docs/mz/ss6player-rpgmakermz.min.js b/docs/mz/ss6player-rpgmakermz.min.js index a350091..50b13f0 100644 --- a/docs/mz/ss6player-rpgmakermz.min.js +++ b/docs/mz/ss6player-rpgmakermz.min.js @@ -1,6 +1,6 @@ /** * ----------------------------------------------------------- - * SS6Player For RPG Maker MZ v0.8.2 + * SS6Player For RPG Maker MZ v0.8.3 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ @@ -14,7 +14,7 @@ Imported.SS6PlayerRPGMakerMZ = true; /*:ja * @target MZ * @plugindesc SpriteStudio 7.0 & 6 アニメーション再生プラグイン - * @version 0.8.2 + * @version 0.8.3 * @author CRI Middleware Co., Ltd. * @url https://github.com/SpriteStudio/SS6PlayerForWeb/tree/master/packages/ss6player-rpgmakermz * @help SS6Player for RPG Maker MZ @@ -156,4 +156,4 @@ Imported.SS6PlayerRPGMakerMZ = true; * */ -var Imported=Imported||{};Imported.SS6PlayerRPGMakerMZ=!0,function(Jt,Nt,ht,gt,wt,k){"use strict";class Gt{}const pt=4,ut=4,O=4,st=new Int32Array(2),At=new Float32Array(st.buffer),kt=new Float64Array(st.buffer),mt=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Ft;(function(i){i[i.UTF8_BYTES=1]="UTF8_BYTES",i[i.UTF16_STRING=2]="UTF16_STRING"})(Ft||(Ft={}));class vt{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new vt(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){At[0]=e,this.writeInt32(t,st[0])}writeFloat64(t,e){kt[0]=e,this.writeInt32(t,st[mt?0:1]),this.writeInt32(t+4,st[mt?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;s--)t.addInt32(e[s]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static endpartState(t){return t.endObject()}static createpartState(t,e,s,a,o){return R.startpartState(t),R.addIndex(t,e),R.addFlag1(t,s),R.addFlag2(t,a),R.addData(t,o),R.endpartState(t)}}class ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsframeDataIndex(t,e){return(e||new ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,e){return t.setPosition(t.position()+O),(e||new ot).__init(t.readInt32(t.position())+t.position(),t)}states(t,e){const s=this.bb.__offset(this.bb_pos,4);return s?(e||new R).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,e){t.addFieldOffset(0,e,0)}static createStatesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startStatesVector(t,e){t.startVector(4,e,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,e){return ot.startframeDataIndex(t),ot.addStates(t,e),ot.endframeDataIndex(t)}}class it{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAslabelDataItem(t,e){return(e||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,e){return t.setPosition(t.position()+O),(e||new it).__init(t.readInt32(t.position())+t.position(),t)}label(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,e){t.addFieldOffset(0,e,0)}static addFrameIndex(t,e){t.addFieldInt16(1,e,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,e,s){return it.startlabelDataItem(t),it.addLabel(t,e),it.addFrameIndex(t,s),it.endlabelDataItem(t)}}class rt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataIndices(t,e){return(e||new rt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,e){return t.setPosition(t.position()+O),(e||new rt).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,e){t.addFieldOffset(0,e,0)}static createIndicesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addFloat32(e[s]);return t.endVector()}static startIndicesVector(t,e){t.startVector(4,e,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,e){return rt.startmeshDataIndices(t),rt.addIndices(t,e),rt.endmeshDataIndices(t)}}class ct{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataUV(t,e){return(e||new ct).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,e){return t.setPosition(t.position()+O),(e||new ct).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,e){t.addFieldOffset(0,e,0)}static createUvVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addFloat32(e[s]);return t.endVector()}static startUvVector(t,e){t.startVector(4,e,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,e){return ct.startmeshDataUV(t),ct.addUv(t,e),ct.endmeshDataUV(t)}}class W{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataItem(t,e){return(e||new W).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,e){return t.setPosition(t.position()+O),(e||new W).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,e){const s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__union(e,this.bb.__vector(this.bb_pos+s)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,e){t.addFieldInt16(0,e,0)}static addArrayIndex(t,e){t.addFieldInt16(1,e,0)}static addDataType(t,e){t.addFieldOffset(2,e,0)}static createDataTypeVector(t,e){t.startVector(1,e.length,1);for(let s=e.length-1;s>=0;s--)t.addInt8(e[s]);return t.endVector()}static startDataTypeVector(t,e){t.startVector(1,e,1)}static addData(t,e){t.addFieldOffset(3,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,e,s,a,o){return W.startuserDataItem(t),W.addFlags(t,e),W.addArrayIndex(t,s),W.addDataType(t,a),W.addData(t,o),W.enduserDataItem(t)}}class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataPerFrame(t,e){return(e||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,e){return t.setPosition(t.position()+O),(e||new at).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,e){const s=this.bb.__offset(this.bb_pos,6);return s?(e||new W).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,e){t.addFieldInt16(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,e,s){return at.startuserDataPerFrame(t),at.addFrameIndex(t,e),at.addData(t,s),at.enduserDataPerFrame(t)}}class g{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimationData(t,e){return(e||new g).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,e){return t.setPosition(t.position()+O),(e||new g).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}defaultData(t,e){const s=this.bb.__offset(this.bb_pos,6);return s?(e||new b).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,e){const s=this.bb.__offset(this.bb_pos,8);return s?(e||new ot).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,e){const s=this.bb.__offset(this.bb_pos,10);return s?(e||new at).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,e){const s=this.bb.__offset(this.bb_pos,12);return s?(e||new it).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,e){const s=this.bb.__offset(this.bb_pos,14);return s?(e||new ct).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,e){const s=this.bb.__offset(this.bb_pos,16);return s?(e||new rt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,e){t.addFieldOffset(0,e,0)}static addDefaultData(t,e){t.addFieldOffset(1,e,0)}static createDefaultDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startDefaultDataVector(t,e){t.startVector(4,e,4)}static addFrameData(t,e){t.addFieldOffset(2,e,0)}static createFrameDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startFrameDataVector(t,e){t.startVector(4,e,4)}static addUserData(t,e){t.addFieldOffset(3,e,0)}static createUserDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startUserDataVector(t,e){t.startVector(4,e,4)}static addLabelData(t,e){t.addFieldOffset(4,e,0)}static createLabelDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startLabelDataVector(t,e){t.startVector(4,e,4)}static addMeshsDataUv(t,e){t.addFieldOffset(5,e,0)}static createMeshsDataUvVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startMeshsDataUvVector(t,e){t.startVector(4,e,4)}static addMeshsDataIndices(t,e){t.addFieldOffset(6,e,0)}static createMeshsDataIndicesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startMeshsDataIndicesVector(t,e){t.startVector(4,e,4)}static addStartFrames(t,e){t.addFieldInt16(7,e,0)}static addEndFrames(t,e){t.addFieldInt16(8,e,0)}static addTotalFrames(t,e){t.addFieldInt16(9,e,0)}static addFps(t,e){t.addFieldInt16(10,e,0)}static addLabelNum(t,e){t.addFieldInt16(11,e,0)}static addCanvasSizeW(t,e){t.addFieldInt16(12,e,0)}static addCanvasSizeH(t,e){t.addFieldInt16(13,e,0)}static addCanvasPvotX(t,e){t.addFieldFloat32(14,e,0)}static addCanvasPvotY(t,e){t.addFieldFloat32(15,e,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,e,s,a,o,n,c,r,l,h,d,u,f,_,v,S,y){return g.startAnimationData(t),g.addName(t,e),g.addDefaultData(t,s),g.addFrameData(t,a),g.addUserData(t,o),g.addLabelData(t,n),g.addMeshsDataUv(t,c),g.addMeshsDataIndices(t,r),g.addStartFrames(t,l),g.addEndFrames(t,h),g.addTotalFrames(t,d),g.addFps(t,u),g.addLabelNum(t,f),g.addCanvasSizeW(t,_),g.addCanvasSizeH(t,v),g.addCanvasPvotX(t,S),g.addCanvasPvotY(t,y),g.endAnimationData(t)}}var E=(i=>(i[i.Invalid=-1]="Invalid",i[i.Nulltype=0]="Nulltype",i[i.Normal=1]="Normal",i[i.Text=2]="Text",i[i.Instance=3]="Instance",i[i.Armature=4]="Armature",i[i.Effect=5]="Effect",i[i.Mesh=6]="Mesh",i[i.Movenode=7]="Movenode",i[i.Constraint=8]="Constraint",i[i.Mask=9]="Mask",i[i.Joint=10]="Joint",i[i.Bonepoint=11]="Bonepoint",i))(E||{});class M{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsPartData(t,e){return(e||new M).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,e){return t.setPosition(t.position()+O),(e||new M).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):E.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__string(this.bb_pos+e,t):null}effectfilename(t){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__string(this.bb_pos+e,t):null}colorLabel(t){const e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__string(this.bb_pos+e,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,e){t.addFieldOffset(0,e,0)}static addIndex(t,e){t.addFieldInt16(1,e,0)}static addParentIndex(t,e){t.addFieldInt16(2,e,0)}static addType(t,e){t.addFieldInt8(3,e,E.Nulltype)}static addBoundsType(t,e){t.addFieldInt16(4,e,0)}static addAlphaBlendType(t,e){t.addFieldInt16(5,e,0)}static addRefname(t,e){t.addFieldOffset(6,e,0)}static addEffectfilename(t,e){t.addFieldOffset(7,e,0)}static addColorLabel(t,e){t.addFieldOffset(8,e,0)}static addMaskInfluence(t,e){t.addFieldInt16(9,e,0)}static endPartData(t){return t.endObject()}static createPartData(t,e,s,a,o,n,c,r,l,h,d){return M.startPartData(t),M.addName(t,e),M.addIndex(t,s),M.addParentIndex(t,a),M.addType(t,o),M.addBoundsType(t,n),M.addAlphaBlendType(t,c),M.addRefname(t,r),M.addEffectfilename(t,l),M.addColorLabel(t,h),M.addMaskInfluence(t,d),M.endPartData(t)}}class H{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimePackData(t,e){return(e||new H).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,e){return t.setPosition(t.position()+O),(e||new H).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}parts(t,e){const s=this.bb.__offset(this.bb_pos,6);return s?(e||new M).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,e){const s=this.bb.__offset(this.bb_pos,8);return s?(e||new g).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,e){t.addFieldOffset(0,e,0)}static addParts(t,e){t.addFieldOffset(1,e,0)}static createPartsVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startPartsVector(t,e){t.startVector(4,e,4)}static addAnimations(t,e){t.addFieldOffset(2,e,0)}static createAnimationsVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startAnimationsVector(t,e){t.startVector(4,e,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,e,s,a){return H.startAnimePackData(t),H.addName(t,e),H.addParts(t,s),H.addAnimations(t,a),H.endAnimePackData(t)}}class B{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCellMap(t,e){return(e||new B).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,e){return t.setPosition(t.position()+O),(e||new B).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}imagePath(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,e){t.addFieldOffset(0,e,0)}static addImagePath(t,e){t.addFieldOffset(1,e,0)}static addIndex(t,e){t.addFieldInt16(2,e,0)}static addWrapmode(t,e){t.addFieldInt16(3,e,0)}static addFiltermode(t,e){t.addFieldInt16(4,e,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,e,s,a,o,n){return B.startCellMap(t),B.addName(t,e),B.addImagePath(t,s),B.addIndex(t,a),B.addWrapmode(t,o),B.addFiltermode(t,n),B.endCellMap(t)}}class St{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCell(t,e){return(e||new St).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,e){return t.setPosition(t.position()+O),(e||new St).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}cellMap(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new B).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,e){t.addFieldOffset(0,e,0)}static addCellMap(t,e){t.addFieldOffset(1,e,0)}static addIndexInCellMap(t,e){t.addFieldInt16(2,e,0)}static addX(t,e){t.addFieldInt16(3,e,0)}static addY(t,e){t.addFieldInt16(4,e,0)}static addWidth(t,e){t.addFieldInt16(5,e,0)}static addHeight(t,e){t.addFieldInt16(6,e,0)}static addPivotX(t,e){t.addFieldFloat32(7,e,0)}static addPivotY(t,e){t.addFieldFloat32(8,e,0)}static addU1(t,e){t.addFieldFloat32(9,e,0)}static addV1(t,e){t.addFieldFloat32(10,e,0)}static addU2(t,e){t.addFieldFloat32(11,e,0)}static addV2(t,e){t.addFieldFloat32(12,e,0)}static endCell(t){return t.endObject()}}class D{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectNode(t,e){return(e||new D).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,e){return t.setPosition(t.position()+O),(e||new D).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,e){const s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__union(e,this.bb.__vector(this.bb_pos+s)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,e){t.addFieldInt16(0,e,0)}static addParentIndex(t,e){t.addFieldInt16(1,e,0)}static addType(t,e){t.addFieldInt16(2,e,0)}static addCellIndex(t,e){t.addFieldInt16(3,e,0)}static addBlendType(t,e){t.addFieldInt16(4,e,0)}static addNumBehavior(t,e){t.addFieldInt16(5,e,0)}static addBehaviorType(t,e){t.addFieldOffset(6,e,0)}static createBehaviorTypeVector(t,e){t.startVector(1,e.length,1);for(let s=e.length-1;s>=0;s--)t.addInt8(e[s]);return t.endVector()}static startBehaviorTypeVector(t,e){t.startVector(1,e,1)}static addBehavior(t,e){t.addFieldOffset(7,e,0)}static createBehaviorVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startBehaviorVector(t,e){t.startVector(4,e,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,e,s,a,o,n,c,r,l){return D.startEffectNode(t),D.addArrayIndex(t,e),D.addParentIndex(t,s),D.addType(t,a),D.addCellIndex(t,o),D.addBlendType(t,n),D.addNumBehavior(t,c),D.addBehaviorType(t,r),D.addBehavior(t,l),D.endEffectNode(t)}}class x{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectFile(t,e){return(e||new x).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,e){return t.setPosition(t.position()+O),(e||new x).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,e){const s=this.bb.__offset(this.bb_pos,18);return s?(e||new D).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,e){t.addFieldOffset(0,e,0)}static addFps(t,e){t.addFieldInt16(1,e,0)}static addIsLockRandSeed(t,e){t.addFieldInt16(2,e,0)}static addLockRandSeed(t,e){t.addFieldInt16(3,e,0)}static addLayoutScaleX(t,e){t.addFieldInt16(4,e,0)}static addLayoutScaleY(t,e){t.addFieldInt16(5,e,0)}static addNumNodeList(t,e){t.addFieldInt16(6,e,0)}static addEffectNode(t,e){t.addFieldOffset(7,e,0)}static createEffectNodeVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startEffectNodeVector(t,e){t.startVector(4,e,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,e,s,a,o,n,c,r,l){return x.startEffectFile(t),x.addName(t,e),x.addFps(t,s),x.addIsLockRandSeed(t,a),x.addLockRandSeed(t,o),x.addLayoutScaleX(t,n),x.addLayoutScaleY(t,c),x.addNumNodeList(t,r),x.addEffectNode(t,l),x.endEffectFile(t)}}var p=(i=>(i[i.INVISIBLE=1]="INVISIBLE",i[i.FLIP_H=2]="FLIP_H",i[i.FLIP_V=4]="FLIP_V",i[i.CELL_INDEX=8]="CELL_INDEX",i[i.POSITION_X=16]="POSITION_X",i[i.POSITION_Y=32]="POSITION_Y",i[i.POSITION_Z=64]="POSITION_Z",i[i.PIVOT_X=128]="PIVOT_X",i[i.PIVOT_Y=256]="PIVOT_Y",i[i.ROTATIONX=512]="ROTATIONX",i[i.ROTATIONY=1024]="ROTATIONY",i[i.ROTATIONZ=2048]="ROTATIONZ",i[i.SCALE_X=4096]="SCALE_X",i[i.SCALE_Y=8192]="SCALE_Y",i[i.LOCALSCALE_X=16384]="LOCALSCALE_X",i[i.LOCALSCALE_Y=32768]="LOCALSCALE_Y",i[i.OPACITY=65536]="OPACITY",i[i.LOCALOPACITY=131072]="LOCALOPACITY",i[i.PARTS_COLOR=262144]="PARTS_COLOR",i[i.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",i[i.SIZE_X=1048576]="SIZE_X",i[i.SIZE_Y=2097152]="SIZE_Y",i[i.U_MOVE=4194304]="U_MOVE",i[i.V_MOVE=8388608]="V_MOVE",i[i.UV_ROTATION=16777216]="UV_ROTATION",i[i.U_SCALE=33554432]="U_SCALE",i[i.V_SCALE=67108864]="V_SCALE",i[i.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",i[i.MASK=268435456]="MASK",i[i.PRIORITY=536870912]="PRIORITY",i[i.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",i[i.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",i))(p||{}),Yt=(i=>(i[i.MESHDATA=1]="MESHDATA",i))(Yt||{});class C{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsProjectData(t,e){return(e||new C).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,e){return t.setPosition(t.position()+O),(e||new C).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__string(this.bb_pos+e,t):null}cells(t,e){const s=this.bb.__offset(this.bb_pos,12);return s?(e||new St).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,e){const s=this.bb.__offset(this.bb_pos,14);return s?(e||new H).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,e){const s=this.bb.__offset(this.bb_pos,16);return s?(e||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,e){t.addFieldInt32(0,e,0)}static addVersion(t,e){t.addFieldInt32(1,e,0)}static addFlags(t,e){t.addFieldInt32(2,e,0)}static addImageBaseDir(t,e){t.addFieldOffset(3,e,0)}static addCells(t,e){t.addFieldOffset(4,e,0)}static createCellsVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startCellsVector(t,e){t.startVector(4,e,4)}static addAnimePacks(t,e){t.addFieldOffset(5,e,0)}static createAnimePacksVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startAnimePacksVector(t,e){t.startVector(4,e,4)}static addEffectFileList(t,e){t.addFieldOffset(6,e,0)}static createEffectFileListVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startEffectFileListVector(t,e){t.startVector(4,e,4)}static addNumCells(t,e){t.addFieldInt16(7,e,0)}static addNumAnimePacks(t,e){t.addFieldInt16(8,e,0)}static addNumEffectFileList(t,e){t.addFieldInt16(9,e,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,e){t.finish(e,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,e){t.finish(e,"SSFB",!0)}static createProjectData(t,e,s,a,o,n,c,r,l,h,d){return C.startProjectData(t),C.addDataId(t,e),C.addVersion(t,s),C.addFlags(t,a),C.addImageBaseDir(t,o),C.addCells(t,n),C.addAnimePacks(t,c),C.addEffectFileList(t,r),C.addNumCells(t,l),C.addNumAnimePacks(t,h),C.addNumEffectFileList(t,d),C.endProjectData(t)}}class qt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,e){return t.prep(4,4),t.writeInt32(e),t.offset()}}class Ut{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,e,s){return t.prep(4,8),t.writeInt32(s),t.writeInt32(e),t.offset()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,e,s,a,o){return t.prep(4,16),t.writeInt32(o),t.writeInt32(a),t.writeInt32(s),t.writeInt32(e),t.offset()}}class ${constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataString(t,e){return(e||new $).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,e){return t.setPosition(t.position()+O),(e||new $).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,e){t.addFieldInt32(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,e,s){return $.startuserDataString(t),$.addLength(t,e),$.addData(t,s),$.enduserDataString(t)}}let Qt=class{static getProjectData(t){const e=new vt(t);return C.getRootAsProjectData(e)}};class Pt{static getProjectData(t){return Qt.getProjectData(t)}}class lt{constructor(t,e=null,s=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=Pt.getProjectData(t),e!==null&&s!==null&&this.Setup(e,s)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,e){this.clearCaches();const s=this._fbObj.animePacksLength();let a=!1;for(let o=0;o>>0,h.colorBlendType===1&&(h.tint=h.colorArgb32&16777215)}}if(l&Yt.MESHDATA){const u=this.curAnimation.meshsDataUv(c);h.meshIsBind=u.uv(0),h.meshNum=u.uv(1);let f=new Float32Array(h.meshNum*3);for(let _=0;_=0&&(t=this.InheritOpacity(t,this._parentIndex[e],s)),t}TransformVertsLocal(t,e,s){const a=this.GetFrameData(s)[e],o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o);for(let r=0;r=0&&(t=this.TransformVerts(t,this._parentIndex[e],s)),t}TransformMeshVertsLocal(t,e,s){const a=this.GetFrameData(s)[e],o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o);for(let r=0;r=0&&(t=this.TransformVerts(t,this._parentIndex[e],s)),t}TransformPositionLocal(t,e,s){const a=this.GetFrameData(s)[e];t[4]+=-a.rotationZ;const o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o),r=t[0]*a.scaleX*a.localscaleX,l=t[1]*a.scaleY*a.localscaleY;return t[2]*=a.scaleX*a.localscaleX,t[3]*=a.scaleY*a.localscaleY,t[0]=n*r-c*l+a.positionX,t[1]=c*r+n*l-a.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],s)),t}static CoordinateGetDiagonalIntersection(t,e,s,a,o,n,c,r,l,h,d){const u=(r-n)*(c-s)-(c-o)*(r-a),f=(l-s)*(r-a)-(h-a)*(c-s),_=(l-s)*(r-n)-(h-a)*(c-o);if(_<=0&&_>=0)return d;const v=u/_,S=f/_;return 0<=v&&1>=v&&0<=S&&1>=S&&(t=s+v*(l-s),e=a+v*(h-a)),d[0]=t,d[1]=e,d}TransformVerts(t,e,s){const a=this.GetFrameData(s)[e],o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o);for(let r=0;r=0&&(t=this.TransformVerts(t,this._parentIndex[e],s)),t}TransformPosition(t,e,s){const a=this.GetFrameData(s)[e];t[4]+=-a.rotationZ;const o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o),r=t[0]*a.scaleX,l=t[1]*a.scaleY;return t[2]*=a.scaleX,t[3]*=a.scaleY,t[0]=n*r-c*l+a.positionX,t[1]=c*r+n*l-a.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],s)),t}static GetVerts(t,e,s){const a=e.size_X/2,o=e.size_Y/2,n=e.size_X*-(e.pivotX+t.pivotX()),c=e.size_Y*(e.pivotY+t.pivotY());return s.set([n,c,n-a,c-o,n+a,c-o,n-a,c+o,n+a,c+o]),s}static GetMeshVerts(t,e,s){for(let a=0;a{a.resources=n,s!==null&&s(null)})}unload(t,e,s){this.resources=null,s!==null&&s(null)}texture(t){return console.log(this.resources),this.resources[t].texture}}class ee{constructor(){this.loader=new te}load(t,e,s){return this.loader.load(t,e,s)}unload(t,e,s=null){return this.loader.unload(t,e,s)}texture(t){return this.loader.texture(t)}}class Et{constructor(t,e,s,a){if(this.sspjMap={},this.resourceLoader=new ee,typeof t=="string"&&s===void 0){let o=t;this.ssfbPath=o;const n=o.lastIndexOf("/");this.rootPath=o.substring(0,n)+"/",this.ssfbFile=o.substring(n+1),this.onComplete=e===void 0?null:e,this.status=0,this.LoadFlatBuffersProject()}else if(typeof e=="object"&&e.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let o=e,n=s;this.onComplete=a===void 0?null:a,this.load(o,n)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,e=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(e=>e.ok?Promise.resolve(e.arrayBuffer()):Promise.reject(new Error(e.statusText))).then(e=>{t.fbObj=Pt.getProjectData(new Uint8Array(e)),t.LoadCellResources()}).catch(e=>{this.onComplete!==null&&this.onComplete(null,e)})}LoadCellResources(){let t=[];this.sspjMap={};for(let s=0;s{s===null?(e.status=1,e.onComplete!==null&&e.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,s)})}load(t,e){this.fbObj=Pt.getProjectData(t);let s={};for(let o in e){const n=e[o];let c="";const r=n.byteLength;for(let l=0;l{o===null?(a.status=1,a.onComplete!==null&&a.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,o)})}}class se{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class J extends Nt.Container{constructor(t,e=null,s=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new wt.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.ss6project=t,this.playerLib=new lt(t.fbObj,e,s),this.parentAlpha=1,e!==null&&s!==null&&this.Setup(e,s),this.on("added",(...a)=>{gt.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...a)=>{gt.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,e){this.playerLib.Setup(t,e),this.clearCaches();const s=this.playerLib.animePackData,a=s.partsLength();this.prevCellID=new Array(a),this.prevPartObject=new Array(a),this.substituteOverWrite=new Array(a),this.substituteKeyParam=new Array(a);for(let o=0;o=this.updateInterval){let o=!1;const n=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*n;let c=this.skipEnabled?n*this.playDirection:this.playDirection,r=this._currentFrame+c,l=Math.floor(r),h=r-l,d=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let u=l-d;u;u--){let f=d+1;if(f>this._endFrame)if(this._loops===-1)f=this._startFrame;else if(this._loops--,o=!0,this._loops===0){this._isPlaying=!1,f=e?this._startFrame:this._endFrame;break}else f=this._startFrame;d=f,this._isPlaying&&this.playerLib.HaveUserData(d)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(d))}if(this.playDirection<=-1)for(let u=d-l;u;u--){let f=d-1;if(f0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=e)}SetAnimationSection(t=-1,e=-1,s=-1){t>=0&&t=0&&e0?this._loops=s:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let e=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(e=t),this._currentFrame=e,this.resetLiveFrame();const s=Math.floor(this._currentFrame);this.SetFrameAnimation(s),this.playerLib.HaveUserData(s)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(s))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),e=this.endFrame;t!==e&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}GetPartsBlendMode(){const t=this.playerLib.animePackData,e=t.partsLength();let s=[];for(let a=0;a>>24)/255,c=((s&16711680)>>>16)/255,r=((s&65280)>>>8)/255,l=(s&255)/255;if(t===0){const h=1-e;o.matrix=[h,0,0,0,c*e,0,h,0,0,r*e,0,0,h,0,l*e,0,0,0,1,0]}else t===1?o.matrix=[c,0,0,0,0,0,r,0,0,0,0,0,l,0,0,0,0,0,n,0]:t===2?o.matrix=[1,0,0,0,c,0,1,0,0,r,0,0,1,0,l,0,0,0,n,0]:t===3&&(o.matrix=[1,0,0,0,-c,0,1,0,0,-r,0,0,1,0,-l,0,0,0,n,0]);return this.colorMatrixFilterCache[a]=o,o}SetFrameAnimation(t,e=0){const s=this.playerLib.GetFrameData(t);this.removeChildren();const a=s.length;for(let o=0;o=0&&this.prevCellID[n]!==r&&(l?.destroy(),l=this.MakeCellMesh(r),l.name=h.name());break;case E.Mesh:r>=0&&this.prevCellID[n]!==r&&(l?.destroy(),l=this.MakeMeshCellMesh(n,r),l.name=h.name());break;case E.Nulltype:case E.Joint:this.prevCellID[n]!==r&&(l?.destroy(),l=new Nt.Container,l.name=h.name());break;default:r>=0&&this.prevCellID[n]!==r&&(l?.destroy(),l=this.MakeCellMesh(r),l.name=h.name());break}if(l!=null)switch(this.prevCellID[n]=r,this.prevPartObject[n]=l,d){case E.Instance:{const _=l;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,c.index,t),_.rotation=this._instancePos[4]*Math.PI/180,_.position.set(this._instancePos[0],this._instancePos[1]),_.scale.set(this._instancePos[2],this._instancePos[3]);let v=c.opacity/255;c.localopacity<255&&(v=c.localopacity/255),_.SetAlpha(v*this.parentAlpha),_.visible=!c.f_hide;let S=c.instanceValue_curKeyframe,y=c.instanceValue_startFrame,m=c.instanceValue_endFrame,Z=c.instanceValue_speed,G=c.instanceValue_loopNum,nt=!1,Y=!1,P=!1,T=!1;const q=1,Q=2,L=4,N=8,w=c.instanceValue_loopflag;w&q&&(nt=!0),w&Q&&(Y=!0),w&L&&(P=!0),w&N&&(T=!0),u&&(y=f.refStartframe,m=f.refEndframe,Z=f.refSpeed,G=f.refloopNum,nt=f.infinity,Y=f.reverse,P=f.pingpong,T=f.independent),(_._startFrame!==y||_._endFrame!==m)&&_.SetAnimationSection(y,m);let U=t;T===!0&&(this.liveFrame[o]+=e,U=Math.floor(this.liveFrame[o]));const tt=S;let I=Math.floor((U-tt)*Z);if(I<0||tt>U)continue;const j=m-y+1;if(j<=0)continue;let A=Math.floor(I/j),z=G;P&&(z=z*2),nt||A>=z&&(I=j-1,A=z-1);const et=Math.floor(I%j);let K=0;P&&A%2===1&&(Y?Y=!1:Y=!0),this.playDirection<=-1&&(Y=!Y),Y?K=m-et:K=et+y,_.SetFrame(Math.floor(K)),this.addChild(_);break}case E.Normal:case E.Mesh:case E.Joint:case E.Mask:{const _=l,v=_.geometry.getBuffer("aVertexPosition");let S=v.data;const y=this.playerLib.fbObj.cells(r);let m;if(d===E.Mesh?c.meshIsBind===0?m=this.playerLib.TransformMeshVertsLocal(lt.GetMeshVerts(y,c,S),c.index,t):m=lt.GetMeshVerts(y,c,S):(m=d===E.Joint?new Float32Array(10):S,m=this.playerLib.TransformVertsLocal(lt.GetVerts(y,c,m),c.index,t)),c.flag1&p.VERTEX_TRANSFORM){const P=m[6],T=m[3*2+1],q=m[1*2+0],Q=m[1*2+1],L=m[4*2+0],N=m[4*2+1],w=m[2*2+0],U=m[2*2+1],tt=(P+L)*.5,I=(T+N)*.5,j=(P+q)*.5,A=(T+Q)*.5,z=(q+w)*.5,et=(Q+U)*.5,K=(L+w)*.5,dt=(N+U)*.5,ft=lt.CoordinateGetDiagonalIntersection(m[0],m[1],tt,I,K,dt,j,A,z,et,this._CoordinateGetDiagonalIntersectionVec2);m[0]=ft[0],m[1]=ft[1]}const Z=m[0],G=m[1];for(let P=0;P>>24)/255;_.alpha=_.alpha*P}const Y=this.alphaBlendType[n];(Y===k.BLEND_MODES.MULTIPLY||Y===k.BLEND_MODES.SCREEN)&&(_.alpha=1),d!==E.Mask&&this.addChild(_);break}case E.Nulltype:{const _=l,v=this.playerLib.InheritOpacity(1,c.index,t);_.alpha=v*c.localopacity/255;const S=this.playerLib.TransformVerts(lt.GetDummyVerts(),c.index,t),y=S[0],m=S[1];_.position.set(y,m);const Z=Math.atan2(S[5]-S[3],S[4]-S[2]),G=Math.atan2(S[7]-S[3],S[6]-S[2]);_.rotation=Z,_.skew.x=G-Z-Math.PI/2;break}}}}ChangeInstanceAnime(t,e,s,a,o=null){let n=!1;if(this.animePackName!==null&&this.animeName!==null){let c=this.playerLib.animePackData,r=c.partsLength();for(let l=0;l0){const o=new Float32Array(a-2),n=s.uv(1);for(let f=2;ft in i?ie(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,X=(i,t,e)=>(ae(i,typeof t!="symbol"?t+"":t,e),e);const Bt=class _t{constructor(){X(this,"pluginParameters"),X(this,"animationDir"),X(this,"replaceSVActorSpriteFlag"),X(this,"svActorDir"),X(this,"svActorAnimationPack"),X(this,"svActorHideWeaponGraphics"),X(this,"replaceSVEnemySpriteFlag"),X(this,"svEnemyDir"),X(this,"svEnemyAnimationPack"),X(this,"svEnemyAnimationName"),this.pluginParameters=PluginManager.parameters("ss6player-rpgmakermz"),this.animationDir=String(this.pluginParameters.animationDir||"img/ssfb")+"/",this.replaceSVActorSpriteFlag=this.pluginParameters.replaceSVActorSpriteFlag==="true"||!1,this.svActorDir=String(this.pluginParameters.svActorDir||"img/ssfb/sv_actors")+"/",this.svActorAnimationPack=String(this.pluginParameters.svActorAnimationPack||"motions"),this.svActorHideWeaponGraphics=this.pluginParameters.svActorHideWeaponGraphics==="true"||!1,this.replaceSVEnemySpriteFlag=this.pluginParameters.replaceSVEnemySpriteFlag==="true"||!1,this.svEnemyDir=String(this.pluginParameters.svEnemyDir||"img/ssfb/sv_enemies")+"/",this.svEnemyAnimationPack=String(this.pluginParameters.svEnemyAnimationPack||"motions"),this.svEnemyAnimationName=String(this.pluginParameters.svEnemyAnimationName||"walk")}static getInstance(){return _t.instance||(_t.instance=new _t),_t.instance}};X(Bt,"instance");let V=Bt;var ne=Object.defineProperty,oe=(i,t,e)=>t in i?ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ot=(i,t,e)=>(oe(i,typeof t!="symbol"?t+"":t,e),e);const Xt=class bt{constructor(){Ot(this,"ssprojectMap"),Ot(this,"_isLoading"),this.clear(),this._isLoading=!1}prepare(t){this.ssprojectMap.set(t,null),this._isLoading=!0}isLoading(){return this._isLoading}isExist(t){return this.ssprojectMap.has(t)&&this.ssprojectMap.get(t)!==null}set(t,e){this.ssprojectMap.set(t,e),this._isLoading=!1}get(t){return this.ssprojectMap.has(t)?this.ssprojectMap.get(t):null}clear(){this.ssprojectMap=new Map}static getInstance(){return bt.instance||(bt.instance=new bt),bt.instance}};Ot(Xt,"instance");let F=Xt;const Vt="ss6player-rpgmakermz",Tt="ss6projectLoadWait",jt="ss6playerPlayWaitMode";let Mt=!1,It=null,Ct=null,zt=null;PluginManager.registerCommand(Vt,"loadSsfb",function(i){const t=Number(i.ssfbId),e=i.ssfbFile,s=V.getInstance().animationDir+e;if(F.getInstance().isExist(t)){const o=F.getInstance().get(t);if(s===o.ssfbPath)return}this.setWaitMode(Tt),F.getInstance().prepare(t);let a=new Et(s,()=>{F.getInstance().set(t,a)},180*1e3,3,(o,n,c,r)=>{throw this.setWaitMode(""),r},(o,n,c,r)=>{throw console.log("timeout download ssfb file: "+o),this.setWaitMode(""),r},null)}),PluginManager.registerCommand(Vt,"setAsPicture",function(i){const t=Number(i.ssfbId),e=i.animePackName,s=i.animeName,a=Number(i.scaleX)||1,o=Number(i.scaleY)||1,n=Number(i.loop)||1;let c=F.getInstance().get(t);if(c===null){const l="not found ssfbId: "+t;throw console.error(l),l}let r=new J(c,e,s);r.scale=new PIXI.Point(a,o),r.loop=n,It=r}),PluginManager.registerCommand(Vt,"waitForPicture",function(i){const t=Number(i.pictureId)||1,e=$gameScreen.picture(t);e&&e.mzkpSS6Player?e.mzkpSS6Player instanceof J&&(e.mzkpSS6Player.loop!==-1?(this.setWaitMode(jt),Mt=!0,Ct=function(a){a.loop===0&&(Mt=!1)}):console.warn("pictureId: "+t+" can not wait SS6Player because setting infinity loop.")):console.warn("pictureId: "+t+" not have SS6Player")});const re=Game_Interpreter.prototype.updateWaitMode;Game_Interpreter.prototype.updateWaitMode=function(){let i=!1;return this._waitMode===Tt?i=F.getInstance().isLoading():this._waitMode===jt?i=Mt:i=re.call(this),i};const ce=Game_Picture.prototype.show;Game_Picture.prototype.show=function(){ce.apply(this,arguments),this._name===""&&It!==null&&(this.mzkpSS6Player=It,this.mzkpSS6PlayerChanged=!0,It=null)};const he=Sprite_Picture.prototype.destroy;Sprite_Picture.prototype.destroy=function(i){this.mzkpSS6Player!==null&&this.mzkpSS6Player instanceof J&&(this.mzkpSS6Player.Stop(),this.picture().mzkpSS6PlayerPrevFrameNo=this.mzkpSS6Player.frameNo,this.removeChild(this.mzkpSS6Player),this.mzkpSS6Player=null),he.call(this,i)};const le=Game_Screen.prototype.erasePicture;Game_Screen.prototype.erasePicture=function(i){const t=this._pictures[i];t&&t.mzkpSS6Player&&(t.mzkpSS6Player=null),le.call(this,i)};const de=Scene_Base.prototype.terminate;Scene_Base.prototype.terminate=function(){$gameActors._data.forEach((i,t,e)=>{i&&i._svActorSS6Player&&(i._svActorSS6Player.Stop(),i._svActorSS6PlayerParent.removeChild(i._svActorSS6Player),i._svActorSS6Player=null,i._svActorSS6PlayerParent=null)}),$gameTroop.members().forEach((i,t,e)=>{i&&i._svEnemySS6Player&&(i._svEnemySS6Player.Stop(),i._svEnemySS6PlayerParent.removeChild(i._svEnemySS6Player),i._svEnemySS6ProjectLoaded=!1,i._svEnemySS6Player=null,i._svEnemySS6PlayerParent=null)}),de.apply(this,arguments)};const fe=Sprite_Picture.prototype.updateBitmap;Sprite_Picture.prototype.updateBitmap=function(){if(fe.apply(this,arguments),this.visible&&this._pictureName===""){const i=this.picture(),t=i&&i.mzkpSS6Player||null,e=i&&i.mzkpSS6PlayerChanged;if(this.mzkpSS6Player!==t||e)if(t!==null){if(t.loop===0){this.mzkpSS6Player&&(this.mzkpSS6Player.Stop(),this.removeChild(this.mzkpSS6Player),this.mzkpSS6Player=null,i.mzkpSS6Player=null);return}const s=Ct,a=zt,o=this;t.SetPlayEndCallback(()=>{s!==null&&s(t),t.loop===0&&(t.Stop(),o.removeChild(t)),a!==null&&a(t)}),this.mzkpSS6Player&&(this.mzkpSS6Player.Stop(),this.removeChild(this.mzkpSS6Player)),this.mzkpSS6Player=t,this.addChild(this.mzkpSS6Player),this.mzkpSS6Player.Play(i.mzkpSS6PlayerPrevFrameNo),i.mzkpSS6PlayerChanged=!1,Ct=null,zt=null}else this.mzkpSS6Player=null}else this.mzkpSS6Player!==null&&this.mzkpSS6Player instanceof J&&(this.mzkpSS6Player.Stop(),this.removeChild(this.mzkpSS6Player)),this.mzkpSS6Player=null};const _e=Game_Screen.prototype.clear;Game_Screen.prototype.clear=function(){F.getInstance().clear(),_e.call(this)};let Dt=!1;const be=SceneManager.updateScene;SceneManager.updateScene=function(){be.apply(this,arguments),this._scene&&(this.isGameActive()?Dt&&($gameScreen._pictures.forEach((i,t,e)=>{i&&i.mzkpSS6Player&&i.mzkpSS6Player.Resume()}),$gameActors._data.forEach((i,t,e)=>{i&&i._svActorSS6Player&&i._svActorSS6Player.Resume()}),$gameTroop.members().forEach((i,t,e)=>{i&&i._svEnemySS6Player&&i._svEnemySS6Player.Resume()}),Dt=!1):($gameScreen&&$gameScreen._pictures&&$gameScreen._pictures.forEach((i,t,e)=>{i&&i.mzkpSS6Player&&i.mzkpSS6Player.Pause()}),$gameActors&&$gameActors._data&&$gameActors._data.forEach((i,t,e)=>{i&&i._svActorSS6Player&&i._svActorSS6Player.Pause()}),$gameTroop&&$gameTroop.members()&&$gameTroop.members().forEach((i,t,e)=>{i&&i._svEnemySS6Player&&i._svEnemySS6Player.Pause()}),Dt=!0))};let Rt=!1;const Wt=DataManager.isDatabaseLoaded;DataManager.isDatabaseLoaded=function(){return V.getInstance().replaceSVEnemySpriteFlag?Wt.call(this)?(Rt||(this.loadEnemyNoteTags(),Rt=!0),!0):!1:Wt.call(this)};const pe="SS6SVEnemy",ue="file",me="animationPackName",Se="animationName",ye="scaleX",Ie="scaleY",ge="offsetX",Fe="offsetY";DataManager.loadEnemyNoteTags=function(){const i=new RegExp("<"+pe+" (.*):(.*)>","i");$dataEnemies.forEach((t,e,s)=>{if(t===null)return;t.note.split(/\r?\n/).forEach((o,n,c)=>{const r=i.exec(o);if(r&&r.length===3){const l=r[1].toLowerCase(),h=r[2];switch(l){case ue.toLowerCase():t._svEnemyFile=h;break;case me.toLowerCase():t._svEnemyAnimationPackName=h;break;case Se.toLowerCase():t._svEnemyAnimationName=h;break;case ye.toLowerCase():t._svEnemyScaleX=Number(h);break;case Ie.toLowerCase():t._svEnemyScaleY=Number(h);break;case ge.toLowerCase():t._svEnemyOffsetX=Number(h);break;case Fe.toLowerCase():t._svEnemyOffsetY=Number(h);break}}})})},Sprite_Actor.svActorSsfbId=function(i){return"sv_actor_"+i},Sprite_Actor.svActorSsfbDir=function(i){return V.getInstance().svActorDir+String(i)+"/"},Sprite_Actor.svActorSsfbPath=function(i){return Sprite_Actor.svActorSsfbDir(i)+String(i)+".ssfb"};let Zt=new Map;const ve=Sprite_Actor.prototype.setBattler;Sprite_Actor.prototype.setBattler=function(i){const t=i!==this._actor;if(ve.call(this,i),V.getInstance().replaceSVActorSpriteFlag&&t){let e,s,a;if(Imported.VisuMZ_0_CoreEngine&&Imported.VisuMZ_1_BattleCore&&this instanceof Sprite_SvEnemy?(e=this._actor.enemyId(),s="sv_enemy_"+e,a=V.getInstance().svActorDir+"svenemy"+String(e)+"/"+String(e)+".ssfb"):(e=this._actor.actorId(),s=Sprite_Actor.svActorSsfbId(e),a=Sprite_Actor.svActorSsfbPath(e)),Zt.has(s))return;if(F.getInstance().isExist(s)){const n=F.getInstance().get(s);if(a===n.ssfbPath){this._actor._svActorSS6Player=null,this._actor._svActorSS6PlayerParent=null;return}}F.getInstance().prepare(s);let o=new Et(a,()=>{this._actor._svActorSS6Player=null,this._actor._svActorSS6PlayerParent=null,F.getInstance().set(s,o)},180*1e3,3,(n,c,r,l)=>{Zt.set(s,null),F.getInstance().set(s,null)})}};const Kt=Sprite_Actor.prototype.updateBitmap;Sprite_Actor.prototype.updateBitmap=function(){if(V.getInstance().replaceSVActorSpriteFlag){const i=this._actor.actorId(),t=Sprite_Actor.svActorSsfbId(i);F.getInstance().isExist(t)&&this._actor._svActorSS6Player!==void 0?(Sprite_Battler.prototype.updateBitmap.call(this),this._mainSprite.bitmap=null,this.updateSS6Player()):Kt.call(this)}else Kt.call(this)},Sprite_Actor.prototype.updateSS6Player=function(){let i="";for(let t in Sprite_Actor.MOTIONS){const e=Sprite_Actor.MOTIONS[t];this._motion===e&&(i=t)}if(i===""&&(i="walk"),this._actor._svActorSS6Player===null||this._actor._svActorSS6Player.animeName!==i){this._actor._svActorSS6Player&&(this._mainSprite.removeChild(this._actor._svActorSS6Player),this._actor._svActorSS6Playe=null,this._actor._svActorSS6PlayerParent=null);const t=this._motion.loop,e=this._actor.actorId(),s=Sprite_Actor.svActorSsfbId(e),a=F.getInstance().get(s),o=V.getInstance().svActorAnimationPack;this._actor._svActorSS6Player=new J(a,o,i),this._actor._svActorSS6Player.loop=t?-1:1,this._actor._svActorSS6Player.SetPlayEndCallback(n=>{n.loop===0&&this.refreshMotion()}),this._actor._svActorSS6Player.Play(),this._mainSprite.addChild(this._actor._svActorSS6Player),this._actor._svActorSS6PlayerParent=this._mainSprite}};const xt=Sprite_Actor.prototype.setupWeaponAnimation;Sprite_Actor.prototype.setupWeaponAnimation=function(){V.getInstance().replaceSVActorSpriteFlag?V.getInstance().svActorHideWeaponGraphics?this._actor._svActorSS6Player===void 0&&xt.call(this):xt.call(this):xt.call(this)},Sprite_Enemy.svEnemySsfbId=function(i){return"sv_enemy_"+i},Sprite_Enemy.svEnemySsfbDir=function(i){return V.getInstance().svEnemyDir+String(i)+"/"},Sprite_Enemy.svEnemySsfbPath=function(i){return Sprite_Enemy.svEnemySsfbDir(i)+String(i)+".ssfb"};let Ht=new Map;const Pe=Sprite_Enemy.prototype.setBattler;Sprite_Enemy.prototype.setBattler=function(i){const t=i!==this._enemy;if(Pe.call(this,i),V.getInstance().replaceSVEnemySpriteFlag&&t){const e=this._enemy.enemyId(),s=Sprite_Enemy.svEnemySsfbId(e);if(Ht.has(s))return;let a=Sprite_Enemy.svEnemySsfbPath(e);const o=this._enemy.enemy();if(o._svEnemyFile&&(a=V.getInstance().animationDir+o._svEnemyFile),this._enemy._svEnemySS6ProjectLoaded=!1,F.getInstance().isExist(s)){const c=F.getInstance().get(s);if(a===c.ssfbPath){this._enemy._svEnemySS6ProjectLoaded=!0,this._enemy._svEnemySS6Player=null,this._enemy._svEnemySS6PlayerParent=null;return}}F.getInstance().prepare(s);let n=new Et(a,()=>{this._enemy._svEnemySS6ProjectLoaded=!0,this._enemy._svEnemySS6Player=null,this._enemy._svEnemySS6PlayerParent=null,F.getInstance().set(s,n)},180*1e3,3,(c,r,l,h)=>{this._enemy._svEnemySS6ProjectLoaded=!0,Ht.set(s,null),F.getInstance().set(s,null)})}};const $t=Sprite_Enemy.prototype.updateBitmap;Sprite_Enemy.prototype.updateBitmap=function(){if(V.getInstance().replaceSVEnemySpriteFlag){const i=this._enemy.enemyId(),t=Sprite_Enemy.svEnemySsfbId(i);if(!this._enemy._svEnemySS6ProjectLoaded)return;F.getInstance().isExist(t)&&this._enemy._svEnemySS6Player!==void 0?(Sprite_Battler.prototype.updateBitmap.call(this),this.bitmap=null,this.updateSS6Player()):$t.call(this)}else $t.call(this)},Sprite_Enemy.prototype.updateSS6Player=function(){if(this._enemy._svEnemySS6Player===null){const i=this._enemy.enemyId(),t=Sprite_Enemy.svEnemySsfbId(i),e=F.getInstance().get(t);let s=V.getInstance().svEnemyAnimationPack,a=V.getInstance().svEnemyAnimationName,o=1,n=1,c=0,r=0;const l=this._enemy.enemy();l._svEnemyAnimationPackName&&(s=l._svEnemyAnimationPackName),l._svEnemyAnimationName&&(a=l._svEnemyAnimationName),l._svEnemyScaleX&&(o=l._svEnemyScaleX),l._svEnemyScaleY&&(n=l._svEnemyScaleY),l._svEnemyOffsetX&&(c=l._svEnemyOffsetX),l._svEnemyOffsetY&&(r=l._svEnemyOffsetY),this._enemy._svEnemySS6Player=new J(e,s,a),this._enemy._svEnemySS6Player.loop=-1,this._enemy._svEnemySS6Player.SetPlayEndCallback(h=>{}),this._enemy._svEnemySS6Player.scale.x=o,this._enemy._svEnemySS6Player.scale.y=n,this._enemy._svEnemySS6Player.position.x+=c,this._enemy._svEnemySS6Player.position.y+=r,this._enemy._svEnemySS6Player.Play(),this.addChild(this._enemy._svEnemySS6Player),this._enemy._svEnemySS6PlayerParent=this}};const Lt=Sprite_Enemy.prototype.updateFrame;Sprite_Enemy.prototype.updateFrame=function(){if(V.getInstance().replaceSVEnemySpriteFlag){const i=this._enemy.enemyId(),t=Sprite_Enemy.svEnemySsfbId(i);if(!this._enemy._svEnemySS6ProjectLoaded)return;if(F.getInstance().isExist(t)&&this._enemy._svEnemySS6Player!==void 0){if(this.bitmap){Lt.call(this);return}Sprite_Battler.prototype.updateFrame.call(this);const s=this._enemy._svEnemySS6Player;let a=0,o=0;s&&(a=s.width,o=s.height),this._effectType==="bossCollapse"?this.setFrame(0,0,a,this._effectDuration):this.setFrame(0,0,a,o)}else Lt.call(this)}else Lt.call(this)};const Ee=Sprite_Enemy.prototype.updateStateSprite;Sprite_Enemy.prototype.updateStateSprite=function(){if(V.getInstance().replaceSVEnemySpriteFlag)if(this.bitmap)this._stateIconSprite.y=-Math.round((this.bitmap.height+40)*.9),this._stateIconSprite.y<20-this.y&&(this._stateIconSprite.y=20-this.y);else{let i=0;this._enemy&&this._enemy._svEnemySS6Player&&(i=this._enemy._svEnemySS6Player),this._stateIconSprite.y=-Math.round((i+40)*.9),this._stateIconSprite.y<20-this.y&&(this._stateIconSprite.y=20-this.y)}else Ee.call(this)}}(PIXI,PIXI,PIXI,PIXI,PIXI.filters,PIXI); +var Imported=Imported||{};Imported.SS6PlayerRPGMakerMZ=!0,function(Jt,Nt,ht,gt,wt,k){"use strict";class Gt{}const pt=4,ut=4,O=4,st=new Int32Array(2),At=new Float32Array(st.buffer),kt=new Float64Array(st.buffer),mt=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Ft;(function(i){i[i.UTF8_BYTES=1]="UTF8_BYTES",i[i.UTF16_STRING=2]="UTF16_STRING"})(Ft||(Ft={}));class vt{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new vt(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){At[0]=e,this.writeInt32(t,st[0])}writeFloat64(t,e){kt[0]=e,this.writeInt32(t,st[mt?0:1]),this.writeInt32(t+4,st[mt?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;s--)t.addInt32(e[s]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static endpartState(t){return t.endObject()}static createpartState(t,e,s,a,o){return R.startpartState(t),R.addIndex(t,e),R.addFlag1(t,s),R.addFlag2(t,a),R.addData(t,o),R.endpartState(t)}}class ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsframeDataIndex(t,e){return(e||new ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,e){return t.setPosition(t.position()+O),(e||new ot).__init(t.readInt32(t.position())+t.position(),t)}states(t,e){const s=this.bb.__offset(this.bb_pos,4);return s?(e||new R).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,e){t.addFieldOffset(0,e,0)}static createStatesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startStatesVector(t,e){t.startVector(4,e,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,e){return ot.startframeDataIndex(t),ot.addStates(t,e),ot.endframeDataIndex(t)}}class it{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAslabelDataItem(t,e){return(e||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,e){return t.setPosition(t.position()+O),(e||new it).__init(t.readInt32(t.position())+t.position(),t)}label(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,e){t.addFieldOffset(0,e,0)}static addFrameIndex(t,e){t.addFieldInt16(1,e,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,e,s){return it.startlabelDataItem(t),it.addLabel(t,e),it.addFrameIndex(t,s),it.endlabelDataItem(t)}}class rt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataIndices(t,e){return(e||new rt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,e){return t.setPosition(t.position()+O),(e||new rt).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,e){t.addFieldOffset(0,e,0)}static createIndicesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addFloat32(e[s]);return t.endVector()}static startIndicesVector(t,e){t.startVector(4,e,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,e){return rt.startmeshDataIndices(t),rt.addIndices(t,e),rt.endmeshDataIndices(t)}}class ct{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsmeshDataUV(t,e){return(e||new ct).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,e){return t.setPosition(t.position()+O),(e||new ct).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,e){t.addFieldOffset(0,e,0)}static createUvVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addFloat32(e[s]);return t.endVector()}static startUvVector(t,e){t.startVector(4,e,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,e){return ct.startmeshDataUV(t),ct.addUv(t,e),ct.endmeshDataUV(t)}}class W{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataItem(t,e){return(e||new W).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,e){return t.setPosition(t.position()+O),(e||new W).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,e){const s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__union(e,this.bb.__vector(this.bb_pos+s)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,e){t.addFieldInt16(0,e,0)}static addArrayIndex(t,e){t.addFieldInt16(1,e,0)}static addDataType(t,e){t.addFieldOffset(2,e,0)}static createDataTypeVector(t,e){t.startVector(1,e.length,1);for(let s=e.length-1;s>=0;s--)t.addInt8(e[s]);return t.endVector()}static startDataTypeVector(t,e){t.startVector(1,e,1)}static addData(t,e){t.addFieldOffset(3,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,e,s,a,o){return W.startuserDataItem(t),W.addFlags(t,e),W.addArrayIndex(t,s),W.addDataType(t,a),W.addData(t,o),W.enduserDataItem(t)}}class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataPerFrame(t,e){return(e||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,e){return t.setPosition(t.position()+O),(e||new at).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,e){const s=this.bb.__offset(this.bb_pos,6);return s?(e||new W).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,e){t.addFieldInt16(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static createDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startDataVector(t,e){t.startVector(4,e,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,e,s){return at.startuserDataPerFrame(t),at.addFrameIndex(t,e),at.addData(t,s),at.enduserDataPerFrame(t)}}class g{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimationData(t,e){return(e||new g).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,e){return t.setPosition(t.position()+O),(e||new g).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}defaultData(t,e){const s=this.bb.__offset(this.bb_pos,6);return s?(e||new b).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,e){const s=this.bb.__offset(this.bb_pos,8);return s?(e||new ot).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,e){const s=this.bb.__offset(this.bb_pos,10);return s?(e||new at).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,e){const s=this.bb.__offset(this.bb_pos,12);return s?(e||new it).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,e){const s=this.bb.__offset(this.bb_pos,14);return s?(e||new ct).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,e){const s=this.bb.__offset(this.bb_pos,16);return s?(e||new rt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,e){t.addFieldOffset(0,e,0)}static addDefaultData(t,e){t.addFieldOffset(1,e,0)}static createDefaultDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startDefaultDataVector(t,e){t.startVector(4,e,4)}static addFrameData(t,e){t.addFieldOffset(2,e,0)}static createFrameDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startFrameDataVector(t,e){t.startVector(4,e,4)}static addUserData(t,e){t.addFieldOffset(3,e,0)}static createUserDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startUserDataVector(t,e){t.startVector(4,e,4)}static addLabelData(t,e){t.addFieldOffset(4,e,0)}static createLabelDataVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startLabelDataVector(t,e){t.startVector(4,e,4)}static addMeshsDataUv(t,e){t.addFieldOffset(5,e,0)}static createMeshsDataUvVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startMeshsDataUvVector(t,e){t.startVector(4,e,4)}static addMeshsDataIndices(t,e){t.addFieldOffset(6,e,0)}static createMeshsDataIndicesVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startMeshsDataIndicesVector(t,e){t.startVector(4,e,4)}static addStartFrames(t,e){t.addFieldInt16(7,e,0)}static addEndFrames(t,e){t.addFieldInt16(8,e,0)}static addTotalFrames(t,e){t.addFieldInt16(9,e,0)}static addFps(t,e){t.addFieldInt16(10,e,0)}static addLabelNum(t,e){t.addFieldInt16(11,e,0)}static addCanvasSizeW(t,e){t.addFieldInt16(12,e,0)}static addCanvasSizeH(t,e){t.addFieldInt16(13,e,0)}static addCanvasPvotX(t,e){t.addFieldFloat32(14,e,0)}static addCanvasPvotY(t,e){t.addFieldFloat32(15,e,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,e,s,a,o,n,c,r,l,h,d,u,f,_,v,S,y){return g.startAnimationData(t),g.addName(t,e),g.addDefaultData(t,s),g.addFrameData(t,a),g.addUserData(t,o),g.addLabelData(t,n),g.addMeshsDataUv(t,c),g.addMeshsDataIndices(t,r),g.addStartFrames(t,l),g.addEndFrames(t,h),g.addTotalFrames(t,d),g.addFps(t,u),g.addLabelNum(t,f),g.addCanvasSizeW(t,_),g.addCanvasSizeH(t,v),g.addCanvasPvotX(t,S),g.addCanvasPvotY(t,y),g.endAnimationData(t)}}var E=(i=>(i[i.Invalid=-1]="Invalid",i[i.Nulltype=0]="Nulltype",i[i.Normal=1]="Normal",i[i.Text=2]="Text",i[i.Instance=3]="Instance",i[i.Armature=4]="Armature",i[i.Effect=5]="Effect",i[i.Mesh=6]="Mesh",i[i.Movenode=7]="Movenode",i[i.Constraint=8]="Constraint",i[i.Mask=9]="Mask",i[i.Joint=10]="Joint",i[i.Bonepoint=11]="Bonepoint",i))(E||{});class M{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsPartData(t,e){return(e||new M).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,e){return t.setPosition(t.position()+O),(e||new M).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):E.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__string(this.bb_pos+e,t):null}effectfilename(t){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__string(this.bb_pos+e,t):null}colorLabel(t){const e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__string(this.bb_pos+e,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,e){t.addFieldOffset(0,e,0)}static addIndex(t,e){t.addFieldInt16(1,e,0)}static addParentIndex(t,e){t.addFieldInt16(2,e,0)}static addType(t,e){t.addFieldInt8(3,e,E.Nulltype)}static addBoundsType(t,e){t.addFieldInt16(4,e,0)}static addAlphaBlendType(t,e){t.addFieldInt16(5,e,0)}static addRefname(t,e){t.addFieldOffset(6,e,0)}static addEffectfilename(t,e){t.addFieldOffset(7,e,0)}static addColorLabel(t,e){t.addFieldOffset(8,e,0)}static addMaskInfluence(t,e){t.addFieldInt16(9,e,0)}static endPartData(t){return t.endObject()}static createPartData(t,e,s,a,o,n,c,r,l,h,d){return M.startPartData(t),M.addName(t,e),M.addIndex(t,s),M.addParentIndex(t,a),M.addType(t,o),M.addBoundsType(t,n),M.addAlphaBlendType(t,c),M.addRefname(t,r),M.addEffectfilename(t,l),M.addColorLabel(t,h),M.addMaskInfluence(t,d),M.endPartData(t)}}class H{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsAnimePackData(t,e){return(e||new H).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,e){return t.setPosition(t.position()+O),(e||new H).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}parts(t,e){const s=this.bb.__offset(this.bb_pos,6);return s?(e||new M).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,e){const s=this.bb.__offset(this.bb_pos,8);return s?(e||new g).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,e){t.addFieldOffset(0,e,0)}static addParts(t,e){t.addFieldOffset(1,e,0)}static createPartsVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startPartsVector(t,e){t.startVector(4,e,4)}static addAnimations(t,e){t.addFieldOffset(2,e,0)}static createAnimationsVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startAnimationsVector(t,e){t.startVector(4,e,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,e,s,a){return H.startAnimePackData(t),H.addName(t,e),H.addParts(t,s),H.addAnimations(t,a),H.endAnimePackData(t)}}class B{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCellMap(t,e){return(e||new B).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,e){return t.setPosition(t.position()+O),(e||new B).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}imagePath(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,e){t.addFieldOffset(0,e,0)}static addImagePath(t,e){t.addFieldOffset(1,e,0)}static addIndex(t,e){t.addFieldInt16(2,e,0)}static addWrapmode(t,e){t.addFieldInt16(3,e,0)}static addFiltermode(t,e){t.addFieldInt16(4,e,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,e,s,a,o,n){return B.startCellMap(t),B.addName(t,e),B.addImagePath(t,s),B.addIndex(t,a),B.addWrapmode(t,o),B.addFiltermode(t,n),B.endCellMap(t)}}class St{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsCell(t,e){return(e||new St).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,e){return t.setPosition(t.position()+O),(e||new St).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}cellMap(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new B).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,e){t.addFieldOffset(0,e,0)}static addCellMap(t,e){t.addFieldOffset(1,e,0)}static addIndexInCellMap(t,e){t.addFieldInt16(2,e,0)}static addX(t,e){t.addFieldInt16(3,e,0)}static addY(t,e){t.addFieldInt16(4,e,0)}static addWidth(t,e){t.addFieldInt16(5,e,0)}static addHeight(t,e){t.addFieldInt16(6,e,0)}static addPivotX(t,e){t.addFieldFloat32(7,e,0)}static addPivotY(t,e){t.addFieldFloat32(8,e,0)}static addU1(t,e){t.addFieldFloat32(9,e,0)}static addV1(t,e){t.addFieldFloat32(10,e,0)}static addU2(t,e){t.addFieldFloat32(11,e,0)}static addV2(t,e){t.addFieldFloat32(12,e,0)}static endCell(t){return t.endObject()}}class D{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectNode(t,e){return(e||new D).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,e){return t.setPosition(t.position()+O),(e||new D).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readUint8(this.bb.__vector(this.bb_pos+e)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,e){const s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__union(e,this.bb.__vector(this.bb_pos+s)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,e){t.addFieldInt16(0,e,0)}static addParentIndex(t,e){t.addFieldInt16(1,e,0)}static addType(t,e){t.addFieldInt16(2,e,0)}static addCellIndex(t,e){t.addFieldInt16(3,e,0)}static addBlendType(t,e){t.addFieldInt16(4,e,0)}static addNumBehavior(t,e){t.addFieldInt16(5,e,0)}static addBehaviorType(t,e){t.addFieldOffset(6,e,0)}static createBehaviorTypeVector(t,e){t.startVector(1,e.length,1);for(let s=e.length-1;s>=0;s--)t.addInt8(e[s]);return t.endVector()}static startBehaviorTypeVector(t,e){t.startVector(1,e,1)}static addBehavior(t,e){t.addFieldOffset(7,e,0)}static createBehaviorVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startBehaviorVector(t,e){t.startVector(4,e,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,e,s,a,o,n,c,r,l){return D.startEffectNode(t),D.addArrayIndex(t,e),D.addParentIndex(t,s),D.addType(t,a),D.addCellIndex(t,o),D.addBlendType(t,n),D.addNumBehavior(t,c),D.addBehaviorType(t,r),D.addBehavior(t,l),D.endEffectNode(t)}}class x{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsEffectFile(t,e){return(e||new x).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,e){return t.setPosition(t.position()+O),(e||new x).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,e){const s=this.bb.__offset(this.bb_pos,18);return s?(e||new D).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,e){t.addFieldOffset(0,e,0)}static addFps(t,e){t.addFieldInt16(1,e,0)}static addIsLockRandSeed(t,e){t.addFieldInt16(2,e,0)}static addLockRandSeed(t,e){t.addFieldInt16(3,e,0)}static addLayoutScaleX(t,e){t.addFieldInt16(4,e,0)}static addLayoutScaleY(t,e){t.addFieldInt16(5,e,0)}static addNumNodeList(t,e){t.addFieldInt16(6,e,0)}static addEffectNode(t,e){t.addFieldOffset(7,e,0)}static createEffectNodeVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startEffectNodeVector(t,e){t.startVector(4,e,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,e,s,a,o,n,c,r,l){return x.startEffectFile(t),x.addName(t,e),x.addFps(t,s),x.addIsLockRandSeed(t,a),x.addLockRandSeed(t,o),x.addLayoutScaleX(t,n),x.addLayoutScaleY(t,c),x.addNumNodeList(t,r),x.addEffectNode(t,l),x.endEffectFile(t)}}var p=(i=>(i[i.INVISIBLE=1]="INVISIBLE",i[i.FLIP_H=2]="FLIP_H",i[i.FLIP_V=4]="FLIP_V",i[i.CELL_INDEX=8]="CELL_INDEX",i[i.POSITION_X=16]="POSITION_X",i[i.POSITION_Y=32]="POSITION_Y",i[i.POSITION_Z=64]="POSITION_Z",i[i.PIVOT_X=128]="PIVOT_X",i[i.PIVOT_Y=256]="PIVOT_Y",i[i.ROTATIONX=512]="ROTATIONX",i[i.ROTATIONY=1024]="ROTATIONY",i[i.ROTATIONZ=2048]="ROTATIONZ",i[i.SCALE_X=4096]="SCALE_X",i[i.SCALE_Y=8192]="SCALE_Y",i[i.LOCALSCALE_X=16384]="LOCALSCALE_X",i[i.LOCALSCALE_Y=32768]="LOCALSCALE_Y",i[i.OPACITY=65536]="OPACITY",i[i.LOCALOPACITY=131072]="LOCALOPACITY",i[i.PARTS_COLOR=262144]="PARTS_COLOR",i[i.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",i[i.SIZE_X=1048576]="SIZE_X",i[i.SIZE_Y=2097152]="SIZE_Y",i[i.U_MOVE=4194304]="U_MOVE",i[i.V_MOVE=8388608]="V_MOVE",i[i.UV_ROTATION=16777216]="UV_ROTATION",i[i.U_SCALE=33554432]="U_SCALE",i[i.V_SCALE=67108864]="V_SCALE",i[i.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",i[i.MASK=268435456]="MASK",i[i.PRIORITY=536870912]="PRIORITY",i[i.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",i[i.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",i))(p||{}),Yt=(i=>(i[i.MESHDATA=1]="MESHDATA",i))(Yt||{});class C{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsProjectData(t,e){return(e||new C).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,e){return t.setPosition(t.position()+O),(e||new C).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__string(this.bb_pos+e,t):null}cells(t,e){const s=this.bb.__offset(this.bb_pos,12);return s?(e||new St).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,e){const s=this.bb.__offset(this.bb_pos,14);return s?(e||new H).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,e){const s=this.bb.__offset(this.bb_pos,16);return s?(e||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,e){t.addFieldInt32(0,e,0)}static addVersion(t,e){t.addFieldInt32(1,e,0)}static addFlags(t,e){t.addFieldInt32(2,e,0)}static addImageBaseDir(t,e){t.addFieldOffset(3,e,0)}static addCells(t,e){t.addFieldOffset(4,e,0)}static createCellsVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startCellsVector(t,e){t.startVector(4,e,4)}static addAnimePacks(t,e){t.addFieldOffset(5,e,0)}static createAnimePacksVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startAnimePacksVector(t,e){t.startVector(4,e,4)}static addEffectFileList(t,e){t.addFieldOffset(6,e,0)}static createEffectFileListVector(t,e){t.startVector(4,e.length,4);for(let s=e.length-1;s>=0;s--)t.addOffset(e[s]);return t.endVector()}static startEffectFileListVector(t,e){t.startVector(4,e,4)}static addNumCells(t,e){t.addFieldInt16(7,e,0)}static addNumAnimePacks(t,e){t.addFieldInt16(8,e,0)}static addNumEffectFileList(t,e){t.addFieldInt16(9,e,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,e){t.finish(e,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,e){t.finish(e,"SSFB",!0)}static createProjectData(t,e,s,a,o,n,c,r,l,h,d){return C.startProjectData(t),C.addDataId(t,e),C.addVersion(t,s),C.addFlags(t,a),C.addImageBaseDir(t,o),C.addCells(t,n),C.addAnimePacks(t,c),C.addEffectFileList(t,r),C.addNumCells(t,l),C.addNumAnimePacks(t,h),C.addNumEffectFileList(t,d),C.endProjectData(t)}}class qt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,e){return t.prep(4,4),t.writeInt32(e),t.offset()}}class Ut{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,e,s){return t.prep(4,8),t.writeInt32(s),t.writeInt32(e),t.offset()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,e,s,a,o){return t.prep(4,16),t.writeInt32(o),t.writeInt32(a),t.writeInt32(s),t.writeInt32(e),t.offset()}}class ${constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsuserDataString(t,e){return(e||new $).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,e){return t.setPosition(t.position()+O),(e||new $).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,e){t.addFieldInt32(0,e,0)}static addData(t,e){t.addFieldOffset(1,e,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,e,s){return $.startuserDataString(t),$.addLength(t,e),$.addData(t,s),$.enduserDataString(t)}}let Qt=class{static getProjectData(t){const e=new vt(t);return C.getRootAsProjectData(e)}};class Pt{static getProjectData(t){return Qt.getProjectData(t)}}class lt{constructor(t,e=null,s=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=Pt.getProjectData(t),e!==null&&s!==null&&this.Setup(e,s)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,e){this.clearCaches();const s=this._fbObj.animePacksLength();let a=!1;for(let o=0;o>>0,h.colorBlendType===1&&(h.tint=h.colorArgb32&16777215)}}if(l&Yt.MESHDATA){const u=this.curAnimation.meshsDataUv(c);h.meshIsBind=u.uv(0),h.meshNum=u.uv(1);let f=new Float32Array(h.meshNum*3);for(let _=0;_=0&&(t=this.InheritOpacity(t,this._parentIndex[e],s)),t}TransformVertsLocal(t,e,s){const a=this.GetFrameData(s)[e],o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o);for(let r=0;r=0&&(t=this.TransformVerts(t,this._parentIndex[e],s)),t}TransformMeshVertsLocal(t,e,s){const a=this.GetFrameData(s)[e],o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o);for(let r=0;r=0&&(t=this.TransformVerts(t,this._parentIndex[e],s)),t}TransformPositionLocal(t,e,s){const a=this.GetFrameData(s)[e];t[4]+=-a.rotationZ;const o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o),r=t[0]*a.scaleX*a.localscaleX,l=t[1]*a.scaleY*a.localscaleY;return t[2]*=a.scaleX*a.localscaleX,t[3]*=a.scaleY*a.localscaleY,t[0]=n*r-c*l+a.positionX,t[1]=c*r+n*l-a.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],s)),t}static CoordinateGetDiagonalIntersection(t,e,s,a,o,n,c,r,l,h,d){const u=(r-n)*(c-s)-(c-o)*(r-a),f=(l-s)*(r-a)-(h-a)*(c-s),_=(l-s)*(r-n)-(h-a)*(c-o);if(_<=0&&_>=0)return d;const v=u/_,S=f/_;return 0<=v&&1>=v&&0<=S&&1>=S&&(t=s+v*(l-s),e=a+v*(h-a)),d[0]=t,d[1]=e,d}TransformVerts(t,e,s){const a=this.GetFrameData(s)[e],o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o);for(let r=0;r=0&&(t=this.TransformVerts(t,this._parentIndex[e],s)),t}TransformPosition(t,e,s){const a=this.GetFrameData(s)[e];t[4]+=-a.rotationZ;const o=-a.rotationZ*Math.PI/180,n=Math.cos(o),c=Math.sin(o),r=t[0]*a.scaleX,l=t[1]*a.scaleY;return t[2]*=a.scaleX,t[3]*=a.scaleY,t[0]=n*r-c*l+a.positionX,t[1]=c*r+n*l-a.positionY,this._parentIndex[e]>=0&&(t=this.TransformPosition(t,this._parentIndex[e],s)),t}static GetVerts(t,e,s){const a=e.size_X/2,o=e.size_Y/2,n=e.size_X*-(e.pivotX+t.pivotX()),c=e.size_Y*(e.pivotY+t.pivotY());return s.set([n,c,n-a,c-o,n+a,c-o,n-a,c+o,n+a,c+o]),s}static GetMeshVerts(t,e,s){for(let a=0;a{a.resources=n,s!==null&&s(null)})}unload(t,e,s){this.resources=null,s!==null&&s(null)}texture(t){return console.log(this.resources),this.resources[t].texture}}class ee{constructor(){this.loader=new te}load(t,e,s){return this.loader.load(t,e,s)}unload(t,e,s=null){return this.loader.unload(t,e,s)}texture(t){return this.loader.texture(t)}}class Et{constructor(t,e,s,a){if(this.sspjMap={},this.resourceLoader=new ee,typeof t=="string"&&s===void 0){let o=t;this.ssfbPath=o;const n=o.lastIndexOf("/");this.rootPath=o.substring(0,n)+"/",this.ssfbFile=o.substring(n+1),this.onComplete=e===void 0?null:e,this.status=0,this.LoadFlatBuffersProject()}else if(typeof e=="object"&&e.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let o=e,n=s;this.onComplete=a===void 0?null:a,this.load(o,n)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,e=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(e=>e.ok?Promise.resolve(e.arrayBuffer()):Promise.reject(new Error(e.statusText))).then(e=>{t.fbObj=Pt.getProjectData(new Uint8Array(e)),t.LoadCellResources()}).catch(e=>{this.onComplete!==null&&this.onComplete(null,e)})}LoadCellResources(){let t=[];this.sspjMap={};for(let s=0;s{s===null?(e.status=1,e.onComplete!==null&&e.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,s)})}load(t,e){this.fbObj=Pt.getProjectData(t);let s={};for(let o in e){const n=e[o];let c="";const r=n.byteLength;for(let l=0;l{o===null?(a.status=1,a.onComplete!==null&&a.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,o)})}}class se{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class J extends Nt.Container{constructor(t,e=null,s=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new wt.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.ss6project=t,this.playerLib=new lt(t.fbObj,e,s),this.parentAlpha=1,e!==null&&s!==null&&this.Setup(e,s),this.on("added",(...a)=>{gt.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...a)=>{gt.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,e){this.playerLib.Setup(t,e),this.clearCaches();const s=this.playerLib.animePackData,a=s.partsLength();this.prevCellID=new Array(a),this.prevPartObject=new Array(a),this.substituteOverWrite=new Array(a),this.substituteKeyParam=new Array(a);for(let o=0;o=this.updateInterval){let o=!1;const n=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*n;let c=this.skipEnabled?n*this.playDirection:this.playDirection,r=this._currentFrame+c,l=Math.floor(r),h=r-l,d=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let u=l-d;u;u--){let f=d+1;if(f>this._endFrame)if(this._loops===-1)f=this._startFrame;else if(this._loops--,o=!0,this._loops===0){this._isPlaying=!1,f=e?this._startFrame:this._endFrame;break}else f=this._startFrame;d=f,this._isPlaying&&this.playerLib.HaveUserData(d)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(d))}if(this.playDirection<=-1)for(let u=d-l;u;u--){let f=d-1;if(f0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=e)}SetAnimationSection(t=-1,e=-1,s=-1){t>=0&&t=0&&e0?this._loops=s:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let e=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(e=t),this._currentFrame=e,this.resetLiveFrame();const s=Math.floor(this._currentFrame);this.SetFrameAnimation(s),this.playerLib.HaveUserData(s)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(s))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),e=this.endFrame;t!==e&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}GetPartsBlendMode(){const t=this.playerLib.animePackData,e=t.partsLength();let s=[];for(let a=0;a>>24)/255,c=((s&16711680)>>>16)/255,r=((s&65280)>>>8)/255,l=(s&255)/255;if(t===0){const h=1-e;o.matrix=[h,0,0,0,c*e,0,h,0,0,r*e,0,0,h,0,l*e,0,0,0,1,0]}else t===1?o.matrix=[c,0,0,0,0,0,r,0,0,0,0,0,l,0,0,0,0,0,n,0]:t===2?o.matrix=[1,0,0,0,c,0,1,0,0,r,0,0,1,0,l,0,0,0,n,0]:t===3&&(o.matrix=[1,0,0,0,-c,0,1,0,0,-r,0,0,1,0,-l,0,0,0,n,0]);return this.colorMatrixFilterCache[a]=o,o}SetFrameAnimation(t,e=0){const s=this.playerLib.GetFrameData(t);this.removeChildren();const a=s.length;for(let o=0;o=0&&this.prevCellID[n]!==r&&(l?.destroy(),l=this.MakeCellMesh(r),l.name=h.name());break;case E.Mesh:r>=0&&this.prevCellID[n]!==r&&(l?.destroy(),l=this.MakeMeshCellMesh(n,r),l.name=h.name());break;case E.Nulltype:case E.Joint:this.prevCellID[n]!==r&&(l?.destroy(),l=new Nt.Container,l.name=h.name());break;default:r>=0&&this.prevCellID[n]!==r&&(l?.destroy(),l=this.MakeCellMesh(r),l.name=h.name());break}if(l!=null)switch(this.prevCellID[n]=r,this.prevPartObject[n]=l,d){case E.Instance:{const _=l;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,c.index,t),_.rotation=this._instancePos[4]*Math.PI/180,_.position.set(this._instancePos[0],this._instancePos[1]),_.scale.set(this._instancePos[2],this._instancePos[3]);let v=c.opacity/255;c.localopacity<255&&(v=c.localopacity/255),_.SetAlpha(v*this.parentAlpha),_.visible=!c.f_hide;let S=c.instanceValue_curKeyframe,y=c.instanceValue_startFrame,m=c.instanceValue_endFrame,Z=c.instanceValue_speed,G=c.instanceValue_loopNum,nt=!1,Y=!1,P=!1,T=!1;const q=1,Q=2,L=4,N=8,w=c.instanceValue_loopflag;w&q&&(nt=!0),w&Q&&(Y=!0),w&L&&(P=!0),w&N&&(T=!0),u&&(y=f.refStartframe,m=f.refEndframe,Z=f.refSpeed,G=f.refloopNum,nt=f.infinity,Y=f.reverse,P=f.pingpong,T=f.independent),(_._startFrame!==y||_._endFrame!==m)&&_.SetAnimationSection(y,m);let U=t;T===!0&&(this.liveFrame[o]+=e,U=Math.floor(this.liveFrame[o]));const tt=S;let I=Math.floor((U-tt)*Z);if(I<0||tt>U)continue;const j=m-y+1;if(j<=0)continue;let A=Math.floor(I/j),z=G;P&&(z=z*2),nt||A>=z&&(I=j-1,A=z-1);const et=Math.floor(I%j);let K=0;P&&A%2===1&&(Y?Y=!1:Y=!0),this.playDirection<=-1&&(Y=!Y),Y?K=m-et:K=et+y,_.SetFrame(Math.floor(K)),this.addChild(_);break}case E.Normal:case E.Mesh:case E.Joint:case E.Mask:{const _=l,v=_.geometry.getBuffer("aVertexPosition");let S=v.data;const y=this.playerLib.fbObj.cells(r);let m;if(d===E.Mesh?c.meshIsBind===0?m=this.playerLib.TransformMeshVertsLocal(lt.GetMeshVerts(y,c,S),c.index,t):m=lt.GetMeshVerts(y,c,S):(m=d===E.Joint?new Float32Array(10):S,m=this.playerLib.TransformVertsLocal(lt.GetVerts(y,c,m),c.index,t)),c.flag1&p.VERTEX_TRANSFORM){const P=m[6],T=m[3*2+1],q=m[1*2+0],Q=m[1*2+1],L=m[4*2+0],N=m[4*2+1],w=m[2*2+0],U=m[2*2+1],tt=(P+L)*.5,I=(T+N)*.5,j=(P+q)*.5,A=(T+Q)*.5,z=(q+w)*.5,et=(Q+U)*.5,K=(L+w)*.5,dt=(N+U)*.5,ft=lt.CoordinateGetDiagonalIntersection(m[0],m[1],tt,I,K,dt,j,A,z,et,this._CoordinateGetDiagonalIntersectionVec2);m[0]=ft[0],m[1]=ft[1]}const Z=m[0],G=m[1];for(let P=0;P>>24)/255;_.alpha=_.alpha*P}const Y=this.alphaBlendType[n];(Y===k.BLEND_MODES.MULTIPLY||Y===k.BLEND_MODES.SCREEN)&&(_.alpha=1),d!==E.Mask&&this.addChild(_);break}case E.Nulltype:{const _=l,v=this.playerLib.InheritOpacity(1,c.index,t);_.alpha=v*c.localopacity/255;const S=this.playerLib.TransformVerts(lt.GetDummyVerts(),c.index,t),y=S[0],m=S[1];_.position.set(y,m);const Z=Math.atan2(S[5]-S[3],S[4]-S[2]),G=Math.atan2(S[7]-S[3],S[6]-S[2]);_.rotation=Z,_.skew.x=G-Z-Math.PI/2;break}}}}ChangeInstanceAnime(t,e,s,a,o=null){let n=!1;if(this.animePackName!==null&&this.animeName!==null){let c=this.playerLib.animePackData,r=c.partsLength();for(let l=0;l0){const o=new Float32Array(a-2),n=s.uv(1);for(let f=2;ft in i?ie(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,X=(i,t,e)=>ae(i,typeof t!="symbol"?t+"":t,e);const Bt=class _t{constructor(){X(this,"pluginParameters"),X(this,"animationDir"),X(this,"replaceSVActorSpriteFlag"),X(this,"svActorDir"),X(this,"svActorAnimationPack"),X(this,"svActorHideWeaponGraphics"),X(this,"replaceSVEnemySpriteFlag"),X(this,"svEnemyDir"),X(this,"svEnemyAnimationPack"),X(this,"svEnemyAnimationName"),this.pluginParameters=PluginManager.parameters("ss6player-rpgmakermz"),this.animationDir=String(this.pluginParameters.animationDir||"img/ssfb")+"/",this.replaceSVActorSpriteFlag=this.pluginParameters.replaceSVActorSpriteFlag==="true"||!1,this.svActorDir=String(this.pluginParameters.svActorDir||"img/ssfb/sv_actors")+"/",this.svActorAnimationPack=String(this.pluginParameters.svActorAnimationPack||"motions"),this.svActorHideWeaponGraphics=this.pluginParameters.svActorHideWeaponGraphics==="true"||!1,this.replaceSVEnemySpriteFlag=this.pluginParameters.replaceSVEnemySpriteFlag==="true"||!1,this.svEnemyDir=String(this.pluginParameters.svEnemyDir||"img/ssfb/sv_enemies")+"/",this.svEnemyAnimationPack=String(this.pluginParameters.svEnemyAnimationPack||"motions"),this.svEnemyAnimationName=String(this.pluginParameters.svEnemyAnimationName||"walk")}static getInstance(){return _t.instance||(_t.instance=new _t),_t.instance}};X(Bt,"instance");let V=Bt;var ne=Object.defineProperty,oe=(i,t,e)=>t in i?ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ot=(i,t,e)=>oe(i,typeof t!="symbol"?t+"":t,e);const Xt=class bt{constructor(){Ot(this,"ssprojectMap"),Ot(this,"_isLoading"),this.clear(),this._isLoading=!1}prepare(t){this.ssprojectMap.set(t,null),this._isLoading=!0}isLoading(){return this._isLoading}isExist(t){return this.ssprojectMap.has(t)&&this.ssprojectMap.get(t)!==null}set(t,e){this.ssprojectMap.set(t,e),this._isLoading=!1}get(t){return this.ssprojectMap.has(t)?this.ssprojectMap.get(t):null}clear(){this.ssprojectMap=new Map}static getInstance(){return bt.instance||(bt.instance=new bt),bt.instance}};Ot(Xt,"instance");let F=Xt;const Vt="ss6player-rpgmakermz",Tt="ss6projectLoadWait",jt="ss6playerPlayWaitMode";let Mt=!1,It=null,Ct=null,zt=null;PluginManager.registerCommand(Vt,"loadSsfb",function(i){const t=Number(i.ssfbId),e=i.ssfbFile,s=V.getInstance().animationDir+e;if(F.getInstance().isExist(t)){const o=F.getInstance().get(t);if(s===o.ssfbPath)return}this.setWaitMode(Tt),F.getInstance().prepare(t);let a=new Et(s,()=>{F.getInstance().set(t,a)},180*1e3,3,(o,n,c,r)=>{throw this.setWaitMode(""),r},(o,n,c,r)=>{throw console.log("timeout download ssfb file: "+o),this.setWaitMode(""),r},null)}),PluginManager.registerCommand(Vt,"setAsPicture",function(i){const t=Number(i.ssfbId),e=i.animePackName,s=i.animeName,a=Number(i.scaleX)||1,o=Number(i.scaleY)||1,n=Number(i.loop)||1;let c=F.getInstance().get(t);if(c===null){const l="not found ssfbId: "+t;throw console.error(l),l}let r=new J(c,e,s);r.scale=new PIXI.Point(a,o),r.loop=n,It=r}),PluginManager.registerCommand(Vt,"waitForPicture",function(i){const t=Number(i.pictureId)||1,e=$gameScreen.picture(t);e&&e.mzkpSS6Player?e.mzkpSS6Player instanceof J&&(e.mzkpSS6Player.loop!==-1?(this.setWaitMode(jt),Mt=!0,Ct=function(a){a.loop===0&&(Mt=!1)}):console.warn("pictureId: "+t+" can not wait SS6Player because setting infinity loop.")):console.warn("pictureId: "+t+" not have SS6Player")});const re=Game_Interpreter.prototype.updateWaitMode;Game_Interpreter.prototype.updateWaitMode=function(){let i=!1;return this._waitMode===Tt?i=F.getInstance().isLoading():this._waitMode===jt?i=Mt:i=re.call(this),i};const ce=Game_Picture.prototype.show;Game_Picture.prototype.show=function(){ce.apply(this,arguments),this._name===""&&It!==null&&(this.mzkpSS6Player=It,this.mzkpSS6PlayerChanged=!0,It=null)};const he=Sprite_Picture.prototype.destroy;Sprite_Picture.prototype.destroy=function(i){this.mzkpSS6Player!==null&&this.mzkpSS6Player instanceof J&&(this.mzkpSS6Player.Stop(),this.picture().mzkpSS6PlayerPrevFrameNo=this.mzkpSS6Player.frameNo,this.removeChild(this.mzkpSS6Player),this.mzkpSS6Player=null),he.call(this,i)};const le=Game_Screen.prototype.erasePicture;Game_Screen.prototype.erasePicture=function(i){const t=this._pictures[i];t&&t.mzkpSS6Player&&(t.mzkpSS6Player=null),le.call(this,i)};const de=Scene_Base.prototype.terminate;Scene_Base.prototype.terminate=function(){$gameActors._data.forEach((i,t,e)=>{i&&i._svActorSS6Player&&(i._svActorSS6Player.Stop(),i._svActorSS6PlayerParent.removeChild(i._svActorSS6Player),i._svActorSS6Player=null,i._svActorSS6PlayerParent=null)}),$gameTroop.members().forEach((i,t,e)=>{i&&i._svEnemySS6Player&&(i._svEnemySS6Player.Stop(),i._svEnemySS6PlayerParent.removeChild(i._svEnemySS6Player),i._svEnemySS6ProjectLoaded=!1,i._svEnemySS6Player=null,i._svEnemySS6PlayerParent=null)}),de.apply(this,arguments)};const fe=Sprite_Picture.prototype.updateBitmap;Sprite_Picture.prototype.updateBitmap=function(){if(fe.apply(this,arguments),this.visible&&this._pictureName===""){const i=this.picture(),t=i&&i.mzkpSS6Player||null,e=i&&i.mzkpSS6PlayerChanged;if(this.mzkpSS6Player!==t||e)if(t!==null){if(t.loop===0){this.mzkpSS6Player&&(this.mzkpSS6Player.Stop(),this.removeChild(this.mzkpSS6Player),this.mzkpSS6Player=null,i.mzkpSS6Player=null);return}const s=Ct,a=zt,o=this;t.SetPlayEndCallback(()=>{s!==null&&s(t),t.loop===0&&(t.Stop(),o.removeChild(t)),a!==null&&a(t)}),this.mzkpSS6Player&&(this.mzkpSS6Player.Stop(),this.removeChild(this.mzkpSS6Player)),this.mzkpSS6Player=t,this.addChild(this.mzkpSS6Player),this.mzkpSS6Player.Play(i.mzkpSS6PlayerPrevFrameNo),i.mzkpSS6PlayerChanged=!1,Ct=null,zt=null}else this.mzkpSS6Player=null}else this.mzkpSS6Player!==null&&this.mzkpSS6Player instanceof J&&(this.mzkpSS6Player.Stop(),this.removeChild(this.mzkpSS6Player)),this.mzkpSS6Player=null};const _e=Game_Screen.prototype.clear;Game_Screen.prototype.clear=function(){F.getInstance().clear(),_e.call(this)};let Dt=!1;const be=SceneManager.updateScene;SceneManager.updateScene=function(){be.apply(this,arguments),this._scene&&(this.isGameActive()?Dt&&($gameScreen._pictures.forEach((i,t,e)=>{i&&i.mzkpSS6Player&&i.mzkpSS6Player.Resume()}),$gameActors._data.forEach((i,t,e)=>{i&&i._svActorSS6Player&&i._svActorSS6Player.Resume()}),$gameTroop.members().forEach((i,t,e)=>{i&&i._svEnemySS6Player&&i._svEnemySS6Player.Resume()}),Dt=!1):($gameScreen&&$gameScreen._pictures&&$gameScreen._pictures.forEach((i,t,e)=>{i&&i.mzkpSS6Player&&i.mzkpSS6Player.Pause()}),$gameActors&&$gameActors._data&&$gameActors._data.forEach((i,t,e)=>{i&&i._svActorSS6Player&&i._svActorSS6Player.Pause()}),$gameTroop&&$gameTroop.members()&&$gameTroop.members().forEach((i,t,e)=>{i&&i._svEnemySS6Player&&i._svEnemySS6Player.Pause()}),Dt=!0))};let Rt=!1;const Wt=DataManager.isDatabaseLoaded;DataManager.isDatabaseLoaded=function(){return V.getInstance().replaceSVEnemySpriteFlag?Wt.call(this)?(Rt||(this.loadEnemyNoteTags(),Rt=!0),!0):!1:Wt.call(this)};const pe="SS6SVEnemy",ue="file",me="animationPackName",Se="animationName",ye="scaleX",Ie="scaleY",ge="offsetX",Fe="offsetY";DataManager.loadEnemyNoteTags=function(){const i=new RegExp("<"+pe+" (.*):(.*)>","i");$dataEnemies.forEach((t,e,s)=>{if(t===null)return;t.note.split(/\r?\n/).forEach((o,n,c)=>{const r=i.exec(o);if(r&&r.length===3){const l=r[1].toLowerCase(),h=r[2];switch(l){case ue.toLowerCase():t._svEnemyFile=h;break;case me.toLowerCase():t._svEnemyAnimationPackName=h;break;case Se.toLowerCase():t._svEnemyAnimationName=h;break;case ye.toLowerCase():t._svEnemyScaleX=Number(h);break;case Ie.toLowerCase():t._svEnemyScaleY=Number(h);break;case ge.toLowerCase():t._svEnemyOffsetX=Number(h);break;case Fe.toLowerCase():t._svEnemyOffsetY=Number(h);break}}})})},Sprite_Actor.svActorSsfbId=function(i){return"sv_actor_"+i},Sprite_Actor.svActorSsfbDir=function(i){return V.getInstance().svActorDir+String(i)+"/"},Sprite_Actor.svActorSsfbPath=function(i){return Sprite_Actor.svActorSsfbDir(i)+String(i)+".ssfb"};let Zt=new Map;const ve=Sprite_Actor.prototype.setBattler;Sprite_Actor.prototype.setBattler=function(i){const t=i!==this._actor;if(ve.call(this,i),V.getInstance().replaceSVActorSpriteFlag&&t){let e,s,a;if(Imported.VisuMZ_0_CoreEngine&&Imported.VisuMZ_1_BattleCore&&this instanceof Sprite_SvEnemy?(e=this._actor.enemyId(),s="sv_enemy_"+e,a=V.getInstance().svActorDir+"svenemy"+String(e)+"/"+String(e)+".ssfb"):(e=this._actor.actorId(),s=Sprite_Actor.svActorSsfbId(e),a=Sprite_Actor.svActorSsfbPath(e)),Zt.has(s))return;if(F.getInstance().isExist(s)){const n=F.getInstance().get(s);if(a===n.ssfbPath){this._actor._svActorSS6Player=null,this._actor._svActorSS6PlayerParent=null;return}}F.getInstance().prepare(s);let o=new Et(a,()=>{this._actor._svActorSS6Player=null,this._actor._svActorSS6PlayerParent=null,F.getInstance().set(s,o)},180*1e3,3,(n,c,r,l)=>{Zt.set(s,null),F.getInstance().set(s,null)})}};const Kt=Sprite_Actor.prototype.updateBitmap;Sprite_Actor.prototype.updateBitmap=function(){if(V.getInstance().replaceSVActorSpriteFlag){const i=this._actor.actorId(),t=Sprite_Actor.svActorSsfbId(i);F.getInstance().isExist(t)&&this._actor._svActorSS6Player!==void 0?(Sprite_Battler.prototype.updateBitmap.call(this),this._mainSprite.bitmap=null,this.updateSS6Player()):Kt.call(this)}else Kt.call(this)},Sprite_Actor.prototype.updateSS6Player=function(){let i="";for(let t in Sprite_Actor.MOTIONS){const e=Sprite_Actor.MOTIONS[t];this._motion===e&&(i=t)}if(i===""&&(i="walk"),this._actor._svActorSS6Player===null||this._actor._svActorSS6Player.animeName!==i){this._actor._svActorSS6Player&&(this._mainSprite.removeChild(this._actor._svActorSS6Player),this._actor._svActorSS6Playe=null,this._actor._svActorSS6PlayerParent=null);const t=this._motion.loop,e=this._actor.actorId(),s=Sprite_Actor.svActorSsfbId(e),a=F.getInstance().get(s),o=V.getInstance().svActorAnimationPack;this._actor._svActorSS6Player=new J(a,o,i),this._actor._svActorSS6Player.loop=t?-1:1,this._actor._svActorSS6Player.SetPlayEndCallback(n=>{n.loop===0&&this.refreshMotion()}),this._actor._svActorSS6Player.Play(),this._mainSprite.addChild(this._actor._svActorSS6Player),this._actor._svActorSS6PlayerParent=this._mainSprite}};const xt=Sprite_Actor.prototype.setupWeaponAnimation;Sprite_Actor.prototype.setupWeaponAnimation=function(){V.getInstance().replaceSVActorSpriteFlag?V.getInstance().svActorHideWeaponGraphics?this._actor._svActorSS6Player===void 0&&xt.call(this):xt.call(this):xt.call(this)},Sprite_Enemy.svEnemySsfbId=function(i){return"sv_enemy_"+i},Sprite_Enemy.svEnemySsfbDir=function(i){return V.getInstance().svEnemyDir+String(i)+"/"},Sprite_Enemy.svEnemySsfbPath=function(i){return Sprite_Enemy.svEnemySsfbDir(i)+String(i)+".ssfb"};let Ht=new Map;const Pe=Sprite_Enemy.prototype.setBattler;Sprite_Enemy.prototype.setBattler=function(i){const t=i!==this._enemy;if(Pe.call(this,i),V.getInstance().replaceSVEnemySpriteFlag&&t){const e=this._enemy.enemyId(),s=Sprite_Enemy.svEnemySsfbId(e);if(Ht.has(s))return;let a=Sprite_Enemy.svEnemySsfbPath(e);const o=this._enemy.enemy();if(o._svEnemyFile&&(a=V.getInstance().animationDir+o._svEnemyFile),this._enemy._svEnemySS6ProjectLoaded=!1,F.getInstance().isExist(s)){const c=F.getInstance().get(s);if(a===c.ssfbPath){this._enemy._svEnemySS6ProjectLoaded=!0,this._enemy._svEnemySS6Player=null,this._enemy._svEnemySS6PlayerParent=null;return}}F.getInstance().prepare(s);let n=new Et(a,()=>{this._enemy._svEnemySS6ProjectLoaded=!0,this._enemy._svEnemySS6Player=null,this._enemy._svEnemySS6PlayerParent=null,F.getInstance().set(s,n)},180*1e3,3,(c,r,l,h)=>{this._enemy._svEnemySS6ProjectLoaded=!0,Ht.set(s,null),F.getInstance().set(s,null)})}};const $t=Sprite_Enemy.prototype.updateBitmap;Sprite_Enemy.prototype.updateBitmap=function(){if(V.getInstance().replaceSVEnemySpriteFlag){const i=this._enemy.enemyId(),t=Sprite_Enemy.svEnemySsfbId(i);if(!this._enemy._svEnemySS6ProjectLoaded)return;F.getInstance().isExist(t)&&this._enemy._svEnemySS6Player!==void 0?(Sprite_Battler.prototype.updateBitmap.call(this),this.bitmap=null,this.updateSS6Player()):$t.call(this)}else $t.call(this)},Sprite_Enemy.prototype.updateSS6Player=function(){if(this._enemy._svEnemySS6Player===null){const i=this._enemy.enemyId(),t=Sprite_Enemy.svEnemySsfbId(i),e=F.getInstance().get(t);let s=V.getInstance().svEnemyAnimationPack,a=V.getInstance().svEnemyAnimationName,o=1,n=1,c=0,r=0;const l=this._enemy.enemy();l._svEnemyAnimationPackName&&(s=l._svEnemyAnimationPackName),l._svEnemyAnimationName&&(a=l._svEnemyAnimationName),l._svEnemyScaleX&&(o=l._svEnemyScaleX),l._svEnemyScaleY&&(n=l._svEnemyScaleY),l._svEnemyOffsetX&&(c=l._svEnemyOffsetX),l._svEnemyOffsetY&&(r=l._svEnemyOffsetY),this._enemy._svEnemySS6Player=new J(e,s,a),this._enemy._svEnemySS6Player.loop=-1,this._enemy._svEnemySS6Player.SetPlayEndCallback(h=>{}),this._enemy._svEnemySS6Player.scale.x=o,this._enemy._svEnemySS6Player.scale.y=n,this._enemy._svEnemySS6Player.position.x+=c,this._enemy._svEnemySS6Player.position.y+=r,this._enemy._svEnemySS6Player.Play(),this.addChild(this._enemy._svEnemySS6Player),this._enemy._svEnemySS6PlayerParent=this}};const Lt=Sprite_Enemy.prototype.updateFrame;Sprite_Enemy.prototype.updateFrame=function(){if(V.getInstance().replaceSVEnemySpriteFlag){const i=this._enemy.enemyId(),t=Sprite_Enemy.svEnemySsfbId(i);if(!this._enemy._svEnemySS6ProjectLoaded)return;if(F.getInstance().isExist(t)&&this._enemy._svEnemySS6Player!==void 0){if(this.bitmap){Lt.call(this);return}Sprite_Battler.prototype.updateFrame.call(this);const s=this._enemy._svEnemySS6Player;let a=0,o=0;s&&(a=s.width,o=s.height),this._effectType==="bossCollapse"?this.setFrame(0,0,a,this._effectDuration):this.setFrame(0,0,a,o)}else Lt.call(this)}else Lt.call(this)};const Ee=Sprite_Enemy.prototype.updateStateSprite;Sprite_Enemy.prototype.updateStateSprite=function(){if(V.getInstance().replaceSVEnemySpriteFlag)if(this.bitmap)this._stateIconSprite.y=-Math.round((this.bitmap.height+40)*.9),this._stateIconSprite.y<20-this.y&&(this._stateIconSprite.y=20-this.y);else{let i=0;this._enemy&&this._enemy._svEnemySS6Player&&(i=this._enemy._svEnemySS6Player),this._stateIconSprite.y=-Math.round((i+40)*.9),this._stateIconSprite.y<20-this.y&&(this._stateIconSprite.y=20-this.y)}else Ee.call(this)}}(PIXI,PIXI,PIXI,PIXI,PIXI.filters,PIXI); diff --git a/docs/ss6player_lib_api/assets/icons.js b/docs/ss6player_lib_api/assets/icons.js index b79c9e8..e88e8ca 100644 --- a/docs/ss6player_lib_api/assets/icons.js +++ b/docs/ss6player_lib_api/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `""`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/ss6player_lib_api/assets/icons.svg b/docs/ss6player_lib_api/assets/icons.svg index 7dead61..e371b8b 100644 --- a/docs/ss6player_lib_api/assets/icons.svg +++ b/docs/ss6player_lib_api/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/ss6player_lib_api/assets/main.js b/docs/ss6player_lib_api/assets/main.js index 1daeb69..3572881 100644 --- a/docs/ss6player_lib_api/assets/main.js +++ b/docs/ss6player_lib_api/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.scrollToHash(),this.updateIndexVisibility())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.scrollToHash(),this.updateIndexVisibility())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/ss6player_lib_api/assets/search.js b/docs/ss6player_lib_api/assets/search.js index 48d9698..eb5c83d 100644 --- a/docs/ss6player_lib_api/assets/search.js +++ b/docs/ss6player_lib_api/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE61d23LjNhL9F8+rd1YNXkTlzXNLvJkZT3kcV5KplIq2KJuJLLl0S5xU/n0BUJS6m90kRepha+NRNw7YB2g0DiDqn7Pl4s/V2Xff/jn7I59Pzr4Dk5yfzdOn7Oy7sw9L+//v0nV6dn62Wc7sv9zP0tUqW/13/8nrx/XTzH68+8CanP17XrYVgdm3db+Yr9bLzf16sWxo7RU1RS2fnz2ny2y+Jl07wMHAhHs8+y/ZX01IpVFHjNniz+ksfWhCOZh1xHnMHx7bACG7jkjPy3yxzNcvTUjIriPSfTabXbbhCBt2xFo8p/ctHupg1nk83KezlmDMtiPiU7r6Y5Y/ZfMmOGzYdWwsVvk6X8x/bhwcyLAn1i9tsX7pgZVvF+vmhyqt+qA0P05p1RFluVinrTjChj2xGh8KG/bE+rUt1q/dsVZ2YmaNAdxb9UFpDN3eqk9GavdA1LQ3XuOjUdOuUcz/zsbNXJVWfVCauSqtOqJstuOnxbbF42DDnliND4UNu2OVs7IFGjLtjueHVatAHiz7orUJ5cGyI9rdYjOf5POH63SSb1ZNiBXrzrX0ap3O77PbdLbJxveb5Y/Zy9Q5NdfXuuNJ+pLNJx+O7wjyOkkv7H8v1x36QfxO0pPZYvH8efN0XDcOTqeJxnOWTY4MxM7lZDFos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w8rdTbLGJ1iSOQaPWWUFiSCwd1bhQPT0ZtiK2y9YacDWEhRK2/nQhCw2LIfbRdXFXhwvvTApjc6yj9VV68iFO9HIJFHHUH6Hda9efYZJypQSjbURQqHP5IjQRpRDyBxmlRvf3j21EPsfGg14eCa6L5DJssRrUxlmsNvElUc8/eX6QHd0Gtx4smtAyIg6qm7rV/7Tke5HiUqjL+mu088O29WBsIe6Frryv7rSLZNOFOD7Tku2+oXLLog+PYqQewlTYqfYEBWTXVCKrynXvpE2qgMSxKSNAkU6+SVfMETlbq7duN+5Im0huxxqmN+82AnDFhFV7dlmyA4qBHUrchG6BnWYgMVezfjN1Wky4sRLJQH2rsFxc6jTF76gnNZpX50t2m2mVO1gs8h9XkKEnUWKJRi8TNOmc7RHz/F9QtzmbrY8SWNqK5NnjSRY3c/9Q9y0qF+OILBmWto55H2UaEWgWfZqu7yb0r7ToWILQwb9kMQV1W5aQtmyEIR93zb9kMQaNWvYu8ZTMEjVf1uGhbnSH47BvUc4qtNENwplVVfumyO9axQdVg/PfD/jockNCJjYsP+STnt3O7Z3y2y/zcWn377d9//w8qm3sZ6swAAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE61da3PbthL9L87X3Fwt+O4359X6Nokzjutpm+loZIuy2cqSR6LUpp3+90uAeiyAQ3FJ+kOnkbXYg8fBYoEDUv+crZZ/rs+++/rP2R/FYnr2Han05dli8piffXf2flX9/+2knJy9PNus5tVf7uaT9Tpf//fwzauH8nFefb37ojI5+/fl3ldE6uDrbrlYl6vNXblctXh7YZsyzy/PniarfFFaVTvC0UiFB7zqL/lfbUh7o54Y8+Wfs/nkvg3laNYT56G4f5AAMbueSE+rYrkqym9tSMyuJ9JdPp9fSMaIG/bEWj5N7gSNOpr15sPdZC4Ec2x7Ij5O1n/Mi8d80QbHDftyY7kuymK5+LmVHMxwINYvUqxfBmAV22XZ3qi91RCU9ubsrXqirJblRDRG3HAgVmujuOFArF+lWL/2x1pXEzNv7c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XIKPk9+uEt/8OjuxG8vgtixlbZ3KyxgnvaW2dycnqEArr4ExOlheHMupsncnJkopINjJbMDn5RkQoHW/R5OQrvVAJBc+kkSVUCM9OzTPafx2laLtiPEWUPEv228uzp+KpSrgWVZmvv/377/8Bp9cMHCvdAAA="; \ No newline at end of file diff --git a/docs/ss6player_lib_api/assets/style.css b/docs/ss6player_lib_api/assets/style.css index 072daed..9d619a6 100644 --- a/docs/ss6player_lib_api/assets/style.css +++ b/docs/ss6player_lib_api/assets/style.css @@ -10,6 +10,7 @@ --light-color-text: #222; --light-color-text-aside: #6e6e6e; --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -35,6 +36,7 @@ --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -50,6 +52,7 @@ --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -75,6 +78,7 @@ --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; @@ -92,6 +96,7 @@ --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -116,6 +121,7 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -134,6 +140,7 @@ --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -158,6 +165,7 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); @@ -183,6 +191,7 @@ body { --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -207,6 +216,7 @@ body { --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -223,6 +233,7 @@ body { --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -247,11 +258,17 @@ body { --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + .always-visible, .always-visible .tsd-signatures { display: inherit !important; @@ -266,16 +283,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +313,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -327,17 +330,14 @@ dd { } /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +footer > p { + margin: 0 1em; } .container-main { @@ -424,6 +424,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -583,13 +586,13 @@ dl.tsd-comment-tag-group p { } .tsd-filter-input { display: flex; - width: fit-content; width: -moz-fit-content; + width: fit-content; align-items: center; - user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } .tsd-filter-input input[type="checkbox"] { @@ -612,11 +615,8 @@ dl.tsd-comment-tag-group p { Don't remove unless you know what you're doing. */ opacity: 0.99; } -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); } .tsd-checkbox-background { fill: var(--color-accent); @@ -633,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { stroke: var(--color-accent); } -.tsd-theme-toggle { - padding-top: 0.75rem; +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; } -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; } .tsd-hierarchy { @@ -772,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } +.tsd-navigation .tsd-nav-link { + display: none; +} .tsd-nested-navigation { margin-left: 3rem; } @@ -785,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.5rem; } +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; +} .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -815,10 +832,10 @@ a.tsd-index-link { } .tsd-accordion-summary, .tsd-accordion-summary a { - user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } @@ -831,8 +848,9 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { +.tsd-accordion .tsd-accordion-summary > svg { margin-left: 0.25rem; + vertical-align: text-top; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -880,7 +898,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -888,6 +906,9 @@ a.tsd-index-link { .tsd-panel-group.tsd-index-group details { margin: 2rem 0; } +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} #tsd-search { transition: background-color 0.2s; @@ -1037,6 +1058,12 @@ a.tsd-index-link { border-width: 1px 0; transition: background-color 0.1s; } +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} .tsd-description .tsd-signatures .tsd-signature { border-width: 1px; } @@ -1350,6 +1377,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ diff --git a/docs/ss6player_lib_api/classes/AnimePackData.html b/docs/ss6player_lib_api/classes/AnimePackData.html index 88f6a86..39d4a93 100644 --- a/docs/ss6player_lib_api/classes/AnimePackData.html +++ b/docs/ss6player_lib_api/classes/AnimePackData.html @@ -1,4 +1,4 @@ -AnimePackData | ss6player-lib

Class AnimePackData

Constructors

constructor +AnimePackData | ss6player-lib

Class AnimePackData

Constructors

Properties

Methods

Constructors

Properties

bb: ByteBuffer
bb_pos: number

Methods

  • Parameters

    • i: number
    • bb: ByteBuffer

    Returns AnimePackData

  • Parameters

    • index: number
    • Optional obj: AnimationData

    Returns AnimationData

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Parameters

    Returns PartData

  • Returns number

  • Parameters

    • builder: Builder
    • animationsOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • nameOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • partsOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • nameOffset: number
    • partsOffset: number
    • animationsOffset: number

    Returns number

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder

    Returns number

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder

    Returns void

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

bb: ByteBuffer
bb_pos: number

Methods

  • Parameters

    • i: number
    • bb: ByteBuffer

    Returns AnimePackData

  • Parameters

    • index: number
    • Optionalobj: AnimationData

    Returns AnimationData

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Parameters

    Returns PartData

  • Returns number

  • Parameters

    • builder: Builder
    • animationsOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • nameOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • partsOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • nameOffset: number
    • partsOffset: number
    • animationsOffset: number

    Returns number

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder

    Returns number

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder

    Returns void

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

diff --git a/docs/ss6player_lib_api/classes/FrameData.html b/docs/ss6player_lib_api/classes/FrameData.html index 40586a4..7e02495 100644 --- a/docs/ss6player_lib_api/classes/FrameData.html +++ b/docs/ss6player_lib_api/classes/FrameData.html @@ -1,5 +1,5 @@ -FrameData | ss6player-lib

Class FrameData

FrameData

-

Constructors

constructor +FrameData | ss6player-lib

Class FrameData

FrameData

+

Constructors

Properties

Constructors

Properties

boundingRadius: number
cellIndex: number
colorArgb32: number
colorBlendType: number
colorRate: number
effectValue_curKeyframe: number
effectValue_loopflag: number
effectValue_speed: number
effectValue_startTime: number
f_flipH: boolean
f_flipV: boolean
f_hide: boolean
f_mesh: boolean
flag1: number
flag2: number
highflag: number
i_transformVerts: number
index: number
instanceValue_curKeyframe: number
instanceValue_endFrame: number
instanceValue_loopNum: number
instanceValue_loopflag: number
instanceValue_speed: number
instanceValue_startFrame: number
localopacity: number
localscaleX: number
localscaleY: number
lowflag: number
masklimen: number
meshDataPoint: Float32Array
meshIsBind: number
meshNum: number
opacity: number
partsColorARGB: number
pivotX: number
pivotY: number
positionX: number
positionY: number
priority: number
rotationX: number
rotationY: number
rotationZ: number
scaleX: number
scaleY: number
size_X: number
size_Y: number
tint: number
u00: number
u01: number
u10: number
u11: number
useColorMatrix: boolean
uv_move_X: number
uv_move_Y: number
uv_rotation: number
uv_scale_X: number
uv_scale_Y: number
v00: number
v01: number
v10: number
v11: number

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

boundingRadius: number
cellIndex: number
colorArgb32: number
colorBlendType: number
colorRate: number
effectValue_curKeyframe: number
effectValue_loopflag: number
effectValue_speed: number
effectValue_startTime: number
f_flipH: boolean
f_flipV: boolean
f_hide: boolean
f_mesh: boolean
flag1: number
flag2: number
highflag: number
i_transformVerts: number
index: number
instanceValue_curKeyframe: number
instanceValue_endFrame: number
instanceValue_loopNum: number
instanceValue_loopflag: number
instanceValue_speed: number
instanceValue_startFrame: number
localopacity: number
localscaleX: number
localscaleY: number
lowflag: number
masklimen: number
meshDataPoint: Float32Array
meshIsBind: number
meshNum: number
opacity: number
partsColorARGB: number
pivotX: number
pivotY: number
positionX: number
positionY: number
priority: number
rotationX: number
rotationY: number
rotationZ: number
scaleX: number
scaleY: number
size_X: number
size_Y: number
tint: number
u00: number
u01: number
u10: number
u11: number
useColorMatrix: boolean
uv_move_X: number
uv_move_Y: number
uv_rotation: number
uv_scale_X: number
uv_scale_Y: number
v00: number
v01: number
v10: number
v11: number
diff --git a/docs/ss6player_lib_api/classes/PartData.html b/docs/ss6player_lib_api/classes/PartData.html index 97168c0..d5bb0e2 100644 --- a/docs/ss6player_lib_api/classes/PartData.html +++ b/docs/ss6player_lib_api/classes/PartData.html @@ -1,4 +1,4 @@ -PartData | ss6player-lib

Class PartData

Constructors

constructor +PartData | ss6player-lib

Class PartData

Constructors

Properties

bb: ByteBuffer
bb_pos: number

Methods

  • Parameters

    • i: number
    • bb: ByteBuffer

    Returns PartData

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Parameters

    • builder: Builder
    • alphaBlendType: number

    Returns void

  • Parameters

    • builder: Builder
    • boundsType: number

    Returns void

  • Parameters

    • builder: Builder
    • colorLabelOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • effectfilenameOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • index: number

    Returns void

  • Parameters

    • builder: Builder
    • maskInfluence: number

    Returns void

  • Parameters

    • builder: Builder
    • nameOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • parentIndex: number

    Returns void

  • Parameters

    • builder: Builder
    • refnameOffset: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    • builder: Builder
    • nameOffset: number
    • index: number
    • parentIndex: number
    • type: SsPartType
    • boundsType: number
    • alphaBlendType: number
    • refnameOffset: number
    • effectfilenameOffset: number
    • colorLabelOffset: number
    • maskInfluence: number

    Returns number

  • Parameters

    • builder: Builder

    Returns number

  • Parameters

    Returns PartData

  • Parameters

    Returns PartData

  • Parameters

    • builder: Builder

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

bb: ByteBuffer
bb_pos: number

Methods

  • Parameters

    • i: number
    • bb: ByteBuffer

    Returns PartData

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Parameters

    • builder: Builder
    • alphaBlendType: number

    Returns void

  • Parameters

    • builder: Builder
    • boundsType: number

    Returns void

  • Parameters

    • builder: Builder
    • colorLabelOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • effectfilenameOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • index: number

    Returns void

  • Parameters

    • builder: Builder
    • maskInfluence: number

    Returns void

  • Parameters

    • builder: Builder
    • nameOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • parentIndex: number

    Returns void

  • Parameters

    • builder: Builder
    • refnameOffset: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    • builder: Builder
    • nameOffset: number
    • index: number
    • parentIndex: number
    • type: SsPartType
    • boundsType: number
    • alphaBlendType: number
    • refnameOffset: number
    • effectfilenameOffset: number
    • colorLabelOffset: number
    • maskInfluence: number

    Returns number

  • Parameters

    • builder: Builder

    Returns number

  • Parameters

    Returns PartData

  • Parameters

    Returns PartData

  • Parameters

    • builder: Builder

    Returns void

diff --git a/docs/ss6player_lib_api/classes/Player.html b/docs/ss6player_lib_api/classes/Player.html index b1b6291..17d2c82 100644 --- a/docs/ss6player_lib_api/classes/Player.html +++ b/docs/ss6player_lib_api/classes/Player.html @@ -1,18 +1,6 @@ -Player | ss6player-lib

Constructors

Properties

_animePackIdx -_fbObj -_float32 -_parentIndex -_prio2index -_uint32 -curAnimation -curAnimeName +Player | ss6player-lib

Constructors

Properties

_animePackIdx: number = -1
_fbObj: ProjectData
_float32: Float32Array = ...
_parentIndex: number[] = []
_prio2index: number[] = []
_uint32: Uint32Array = ...
curAnimation: AnimationData = null
curAnimeName: string = null
curAnimePackData: AnimePackData = null
curAnimePackName: string = null
currentCachedFrameNumber: number = -1
defaultFrameMap: AnimationInitialData[] = []
frameDataCache: FrameData[] = null
userData: userDataPerFrame[] = []

Accessors

Methods

  • 1フレーム分のデータを取得する(未設定項目はデフォルト) +

Constructors

Properties

curAnimation: AnimationData = null
curAnimePackData: AnimePackData = null

Accessors

Methods

  • 1フレーム分のデータを取得する(未設定項目はデフォルト) [注意]現verでは未対応項目があると正常動作しない可能性があります

    Parameters

    • frameNumber: number

      フレーム番号

      -

    Returns FrameData[]

  • ユーザーデータの取得

    +

Returns FrameData[]

  • ユーザーデータの存在チェック

    Parameters

    • frameNumber: number

      フレーム番号

    Returns boolean

    • 存在するかどうか
    -
  • 親を遡って不透明度を継承する

    Parameters

    • opacity: number

      透明度

    • partId: number

      パーツ(レイヤー)ID

    • frameNumber: number

      フレーム番号

    Returns number

    • 透明度
    -
  • 親を遡って座標変換する(ローカルアトリビュート適用)

    +

Returns void

  • 親を遡って座標変換する(ローカルアトリビュート適用)

    Parameters

    • verts: Float32Array

      頂点情報配列

    • partId: number

      パーツ(レイヤー)ID

    • frameNumber: number

      フレーム番号

    Returns Float32Array

    • 変換された頂点座標配列
    -
  • 親を遡って座標変換する

    Parameters

    • pos: Float32Array

      頂点情報配列

    • id: number

      パーツ(レイヤー)ID

    • frameNumber: number

      フレーム番号

    Returns Float32Array

    • 変換された頂点座標配列
    -
  • 親を遡って座標変換する(ローカルアトリビュート適用)

    Parameters

    • pos: Float32Array

      頂点情報配列

    • partId: number

      パーツ(レイヤー)ID

    • frameNumber: number

      フレーム番号

    Returns Float32Array

    • 変換された頂点座標配列
    -
  • 親を遡って座標変換する

    Parameters

    • verts: Float32Array

      頂点情報配列

    • id: number

      パーツ(レイヤー)ID

    • frameNumber: number

      フレーム番号

    Returns Float32Array

    • 変換された頂点座標配列
    -
  • 親を遡って座標変換する(ローカルアトリビュート適用)

    Parameters

    • verts: Float32Array

      頂点情報配列

    • partId: number

      パーツ(レイヤー)ID

    • frameNumber: number

      フレーム番号

    Returns Float32Array

    • 変換された頂点座標配列
    -
  • 5頂点の中間点を求める

    Parameters

    • cx: number

      元の中心点

    • cy: number

      元の中心点

    • LUx: number

      左上座標

      @@ -117,16 +93,16 @@
    • RDx: number

      右下座標

    • RDy: number

      右下座標

    • vec2: Float32Array

    Returns Float32Array

    vec2 - 4頂点から算出した中心点の座標

    -
  • 矩形セルメッシュの頂点情報のみ取得

    Parameters

    • cell: Cell

      セル

    • data: FrameData

      アニメーションフレームデータ

    • verts: Float32Array

    Returns Float32Array

    • 頂点情報配列
    -
  • 矩形セルメッシュの頂点情報のみ取得

    Parameters

    • cell: Cell

      セル

    • data: FrameData

      アニメーションフレームデータ

    • verts: Float32Array

    Returns Float32Array

    • 頂点情報配列
    -

Generated using TypeDoc

\ No newline at end of file +
diff --git a/docs/ss6player_lib_api/classes/ProjectData.html b/docs/ss6player_lib_api/classes/ProjectData.html index b881499..2029790 100644 --- a/docs/ss6player_lib_api/classes/ProjectData.html +++ b/docs/ss6player_lib_api/classes/ProjectData.html @@ -1,4 +1,4 @@ -ProjectData | ss6player-lib

Class ProjectData

Constructors

constructor +ProjectData | ss6player-lib

Class ProjectData

Constructors

Properties

Methods

Constructors

Properties

bb: ByteBuffer
bb_pos: number

Methods

  • Parameters

    • i: number
    • bb: ByteBuffer

    Returns ProjectData

  • Returns number

  • Parameters

    • index: number
    • Optional obj: Cell

    Returns Cell

  • Returns number

  • Returns number

  • Parameters

    • index: number
    • Optional obj: EffectFile

    Returns EffectFile

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Parameters

    • builder: Builder
    • animePacksOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • cellsOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • dataId: number

    Returns void

  • Parameters

    • builder: Builder
    • effectFileListOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • flags: number

    Returns void

  • Parameters

    • builder: Builder
    • imageBaseDirOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • numAnimePacks: number

    Returns void

  • Parameters

    • builder: Builder
    • numCells: number

    Returns void

  • Parameters

    • builder: Builder
    • numEffectFileList: number

    Returns void

  • Parameters

    • builder: Builder
    • version: number

    Returns void

  • Parameters

    • bb: ByteBuffer

    Returns boolean

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • dataId: number
    • version: number
    • flags: number
    • imageBaseDirOffset: number
    • cellsOffset: number
    • animePacksOffset: number
    • effectFileListOffset: number
    • numCells: number
    • numAnimePacks: number
    • numEffectFileList: number

    Returns number

  • Parameters

    • builder: Builder

    Returns number

  • Parameters

    • builder: Builder
    • offset: number

    Returns void

  • Parameters

    • builder: Builder
    • offset: number

    Returns void

  • Parameters

    Returns ProjectData

  • Parameters

    Returns ProjectData

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

bb: ByteBuffer
bb_pos: number

Methods

  • Parameters

    • i: number
    • bb: ByteBuffer

    Returns ProjectData

  • Returns number

  • Parameters

    • index: number
    • Optionalobj: Cell

    Returns Cell

  • Returns number

  • Returns number

  • Parameters

    • index: number
    • Optionalobj: EffectFile

    Returns EffectFile

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • optionalEncoding: Encoding

    Returns string | Uint8Array

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Parameters

    • builder: Builder
    • animePacksOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • cellsOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • dataId: number

    Returns void

  • Parameters

    • builder: Builder
    • effectFileListOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • flags: number

    Returns void

  • Parameters

    • builder: Builder
    • imageBaseDirOffset: number

    Returns void

  • Parameters

    • builder: Builder
    • numAnimePacks: number

    Returns void

  • Parameters

    • builder: Builder
    • numCells: number

    Returns void

  • Parameters

    • builder: Builder
    • numEffectFileList: number

    Returns void

  • Parameters

    • builder: Builder
    • version: number

    Returns void

  • Parameters

    • bb: ByteBuffer

    Returns boolean

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • data: number[]

    Returns number

  • Parameters

    • builder: Builder
    • dataId: number
    • version: number
    • flags: number
    • imageBaseDirOffset: number
    • cellsOffset: number
    • animePacksOffset: number
    • effectFileListOffset: number
    • numCells: number
    • numAnimePacks: number
    • numEffectFileList: number

    Returns number

  • Parameters

    • builder: Builder

    Returns number

  • Parameters

    • builder: Builder
    • offset: number

    Returns void

  • Parameters

    • builder: Builder
    • offset: number

    Returns void

  • Parameters

    Returns ProjectData

  • Parameters

    Returns ProjectData

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder
    • numElems: number

    Returns void

  • Parameters

    • builder: Builder

    Returns void

diff --git a/docs/ss6player_lib_api/classes/Utils.html b/docs/ss6player_lib_api/classes/Utils.html index 6634215..4c234cd 100644 --- a/docs/ss6player_lib_api/classes/Utils.html +++ b/docs/ss6player_lib_api/classes/Utils.html @@ -1,3 +1,3 @@ -Utils | ss6player-lib

Constructors

constructor +Utils | ss6player-lib

Constructors

Methods

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Methods

diff --git a/docs/ss6player_lib_api/enums/PART_FLAG.html b/docs/ss6player_lib_api/enums/PART_FLAG.html index 4fea191..0843db5 100644 --- a/docs/ss6player_lib_api/enums/PART_FLAG.html +++ b/docs/ss6player_lib_api/enums/PART_FLAG.html @@ -1,4 +1,4 @@ -PART_FLAG | ss6player-lib

Enumeration PART_FLAG

Enumeration Members

BOUNDINGRADIUS +PART_FLAG | ss6player-lib

Enumeration PART_FLAG

Enumeration Members

BOUNDINGRADIUS: 134217728
CELL_INDEX: 8
EFFECT_KEYFRAME: 2147483648
FLIP_H: 2
FLIP_V: 4
INSTANCE_KEYFRAME: 1073741824
INVISIBLE: 1
LOCALOPACITY: 131072
LOCALSCALE_X: 16384
LOCALSCALE_Y: 32768
MASK: 268435456
OPACITY: 65536
PARTS_COLOR: 262144
PIVOT_X: 128
PIVOT_Y: 256
POSITION_X: 16
POSITION_Y: 32
POSITION_Z: 64
PRIORITY: 536870912
ROTATIONX: 512
ROTATIONY: 1024
ROTATIONZ: 2048
SCALE_X: 4096
SCALE_Y: 8192
SIZE_X: 1048576
SIZE_Y: 2097152
UV_ROTATION: 16777216
U_MOVE: 4194304
U_SCALE: 33554432
VERTEX_TRANSFORM: 524288
V_MOVE: 8388608
V_SCALE: 67108864

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

BOUNDINGRADIUS: 134217728
CELL_INDEX: 8
EFFECT_KEYFRAME: 2147483648
FLIP_H: 2
FLIP_V: 4
INSTANCE_KEYFRAME: 1073741824
INVISIBLE: 1
LOCALOPACITY: 131072
LOCALSCALE_X: 16384
LOCALSCALE_Y: 32768
MASK: 268435456
OPACITY: 65536
PARTS_COLOR: 262144
PIVOT_X: 128
PIVOT_Y: 256
POSITION_X: 16
POSITION_Y: 32
POSITION_Z: 64
PRIORITY: 536870912
ROTATIONX: 512
ROTATIONY: 1024
ROTATIONZ: 2048
SCALE_X: 4096
SCALE_Y: 8192
SIZE_X: 1048576
SIZE_Y: 2097152
UV_ROTATION: 16777216
U_MOVE: 4194304
U_SCALE: 33554432
VERTEX_TRANSFORM: 524288
V_MOVE: 8388608
V_SCALE: 67108864
diff --git a/docs/ss6player_lib_api/enums/SsPartType.html b/docs/ss6player_lib_api/enums/SsPartType.html index b23f497..a4e3753 100644 --- a/docs/ss6player_lib_api/enums/SsPartType.html +++ b/docs/ss6player_lib_api/enums/SsPartType.html @@ -1,4 +1,4 @@ -SsPartType | ss6player-lib

Enumeration SsPartType

Enumeration Members

Armature +SsPartType | ss6player-lib

Enumeration SsPartType

Enumeration Members

Enumeration Members

Armature: 4
Bonepoint: 11
Constraint: 8
Effect: 5
Instance: 3
Invalid: -1
Joint: 10
Mask: 9
Mesh: 6
Movenode: 7
Normal: 1
Nulltype: 0
Text: 2

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

Armature: 4
Bonepoint: 11
Constraint: 8
Effect: 5
Instance: 3
Invalid: -1
Joint: 10
Mask: 9
Mesh: 6
Movenode: 7
Normal: 1
Nulltype: 0
Text: 2
diff --git a/docs/ss6player_lib_api/index.html b/docs/ss6player_lib_api/index.html index e49342b..4225a3c 100644 --- a/docs/ss6player_lib_api/index.html +++ b/docs/ss6player_lib_api/index.html @@ -1,15 +1,17 @@ -ss6player-lib

ss6player-lib

ss6player-lib

OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションデータの一つである ssfb フォーマットをパースし、 player 向けのデータへ変換するライブラリです。

-

ライセンス

ss6player-lib のライセンスは LISENCE となります。

+ss6player-lib

ss6player-lib

ss6player-lib

OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションデータの一つである ssfb フォーマットをパースし、 player 向けのデータへ変換するライブラリです。

+

ss6player-lib のライセンスは LISENCE となります。

ss6player-lib は依存ライブラリの FlatBuffersssfblib をバンドルしています。 -ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参 +ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参 照してください。

-

使い方

API リファレンス

ss6player-lib の API リファレンスはこちらです。

-

ビルド

ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

-

全ビルド

SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

+

ss6player-lib の API リファレンスはこちらです。

+

ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

+

SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

cd SS6PlayerForWeb
npm i
npm run build
+

ビルドが成功すると ss6player-lib.umd.jsss6player-lib.es6.jsSS6PlayerForWeb/packages/ss6player-lib/dist ディレクトリ以下に生成されます。

-

単独ビルド

全ビルド実行後は SS6PlayerForWeb/packages/ss6player-lib ディレクトリ上で ss6player-lib の単独ビルドが可能になります。

+

全ビルド実行後は SS6PlayerForWeb/packages/ss6player-lib ディレクトリ上で ss6player-lib の単独ビルドが可能になります。

cd SS6PlayerForWeb/packages/ss6player-lib
npm run build
-

Generated using TypeDoc

\ No newline at end of file + +
diff --git a/docs/ss6player_lib_api/media/LICENSE b/docs/ss6player_lib_api/media/LICENSE new file mode 100644 index 0000000..3b3de2d --- /dev/null +++ b/docs/ss6player_lib_api/media/LICENSE @@ -0,0 +1,52 @@ +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +3. Neither the name of the CRI Middleware Co., Ltd. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--------------- + +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を +満たす場合に限り、再頒布および使用が許可されます。 + +1. ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責 + 条項を含めること。 +2. バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の + 著作権表示、本条件一覧、および下記免責条項を含めること。 +3. 書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売 + 促進に、CRI Middleware Co., Ltd. の名前またはコントリビューターの名前を使用して + はならない。 + +本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供 +されており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する +適合性に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありません。 +著作権者もコントリビューターも、事由のいかんを問わず、 損害発生の原因いかんを +問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法行為 +であるかを問わず、仮にそのような損害が発生する可能性を知らされていたとしても、 +本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、使用の +喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されない) +直接損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害について、 +一切責任を負わないものとします。 diff --git a/docs/ss6player_lib_api/media/ThirdPartyLicenses.md b/docs/ss6player_lib_api/media/ThirdPartyLicenses.md new file mode 100644 index 0000000..c5b13ee --- /dev/null +++ b/docs/ss6player_lib_api/media/ThirdPartyLicenses.md @@ -0,0 +1,53 @@ + +# ssfblib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | + + +# ss6player-lib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-viewer + +| Licensed Code | License Type | Licenser URL | +|----------------|----------------------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| JSZip | MIT license or the GPLv3 license | https://github.com/Stuk/jszip/blob/main/LICENSE.markdown | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-pixi | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi6 + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-rpgmakermz + +| Licensed Code | License Type | Licenser URL | +|------------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player6-pixi6 | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | diff --git a/docs/ss6player_lib_api/modules.html b/docs/ss6player_lib_api/modules.html index 0bb4350..12efeec 100644 --- a/docs/ss6player_lib_api/modules.html +++ b/docs/ss6player_lib_api/modules.html @@ -1,4 +1,4 @@ -ss6player-lib

ss6player-lib

Index

Enumerations

PART_FLAG +ss6player-lib

ss6player-lib

Index

Enumerations

Classes

Generated using TypeDoc

\ No newline at end of file +
diff --git a/docs/ss6player_pixi6_api/assets/icons.js b/docs/ss6player_pixi6_api/assets/icons.js index b79c9e8..e88e8ca 100644 --- a/docs/ss6player_pixi6_api/assets/icons.js +++ b/docs/ss6player_pixi6_api/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `""`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/ss6player_pixi6_api/assets/icons.svg b/docs/ss6player_pixi6_api/assets/icons.svg index 7dead61..e371b8b 100644 --- a/docs/ss6player_pixi6_api/assets/icons.svg +++ b/docs/ss6player_pixi6_api/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/ss6player_pixi6_api/assets/main.js b/docs/ss6player_pixi6_api/assets/main.js index 1daeb69..3572881 100644 --- a/docs/ss6player_pixi6_api/assets/main.js +++ b/docs/ss6player_pixi6_api/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.scrollToHash(),this.updateIndexVisibility())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.scrollToHash(),this.updateIndexVisibility())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/ss6player_pixi6_api/assets/search.js b/docs/ss6player_pixi6_api/assets/search.js index 9db1c8a..7fe4edf 100644 --- a/docs/ss6player_pixi6_api/assets/search.js +++ b/docs/ss6player_pixi6_api/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72cX5ObOBLAv4vz6swOQgict91JcpW6JDu1yd49TE2lsC3PkMFAAZ5sKpXvfmr+mG7cMphQ97JZj7vVrf61pBYS/rHI02/F4tXdj8VTlGwXrxwRLBdJuNeLV4tPn9Rtnn7Vm3KxXBzy2PxpE4dFoYvfuq+uHst9bL5vvjEyi5/LtjXPEcfWNmlSlPlhU6b5UHMvqCxqernIwlwnJfWuM+hcC3m0WBS79W1YPg6aQ4JTbeVpWo6yhQR/pV9vo1iP6lcjONXWbv3n+uugoVZqco/KsDwUw/1pxabaSZObdJ/FuhyOHRGdTir7+iHMRoBq5TpLZbF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/yT1dcg0fSMLCrbqOgOqtDgR3hWNr5ZdbETWUNJoc4pbbvXiVB0kLZry8gqE5MtG120YkprX6tMjuH1cjT6kKZj5ZLrZ0jkiMwgAqWTsKUTqJ6mMdJUtrkHNGFFSdf9GUOg2VnYRkGud9xSH6ClPjijCxNOAofLSBV5HdhGgVEt6jNypIjyN7B1FxTZwthHs3tgC3N1j4RdHHw0DAJbarTze9z8IAnKDxQvx5bXeXM7GA0HlFbKtmofj6tRqNDUHNjSEX5LKKt+SwiNADSALGomQidTi0J6ysYUFNtLY7vuzjzqLWrFG9NKcToFeLictPWctNFPMw/FzrNNIqaF0+GIGCtbhrWKYXd9DiUZGhq+LcNNC2emMIWmQN+WaEX9rgqqA9Dg8M6AR0vTiWEUeGUN/FNk6svmdViUdSjkrrXfhTotIhw0LB1ryrSa7dbxSX/P6otcKPZoqAW2oYZ/3aNTRdybxy3CGvlit95FdHOBa7Azav2hipcNq1r2dR8S0riXNi12/nRRikhrijQ/sYXSAmWFVYkWpR6ypKyWjr/kwMEUKBmFNS2OTaRmAv1W/zIFagNxETbfS7hYr+uL9ajTSFXZwly9iXm6h0aLnLQtrIfmRSwUM6TmnVeLjm9QIXWUTJ6tr0j9maq7KNwuG+77pakRMx1HiRG6u//583/TEaQ/O1AAAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72b227bRhCG34W5VVzvSZZ916YpULRIjTrpjWEEtLSKWcskQVI5wPC7d5fHGe1IHNFCb+JQnPlnd/bbE7l8jorsWxld3T5Hj0m6iq6EXMyiNH6y0VV0czO/LrJ/7bKKZtG22Liflpu4LG3503Dr7KF62rj77R1nE73MOjUjZK+2zNKyKrbLKivG5N5gWyA9i/K4sGmFSzcEFOdS9xHLcn1/HVcPo+GA4dRYRZZVrFjA8DX1+i3ZWFa9WsOpsdb3f93/Oxqos5pcoyqutuV4fTqzqXGy9F32lG9sNZ47ZHpEPHmuhx70xVa/bNMVo6mg5SuifbTfq23BCjeYTo23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Er+b6R+lcEoM3AqGp4VXNCZfPeA5QH1MzwBmcvA94uAS3QQwyvpxXtKQWQajDdKF7T968LQHZAwxsejv6Tgrz+pAAUBpSFJVLaKm7etIO0gJbSvBR7me517no48wMKBjTV8Zpld5IGKIKMKd5wixR3wVJgRlLs5IU9DzCleDNtJxMPL8RBY4ARU/OGOqd3YKjSgBHNI61sTtCBqQ5UUrIrCSaXoFCgMTWzMR8Ttzxpj66DERRUTzCVynnefmcAdOAimTfu9TrdEv7R/sib1/+gpmCm0LwFndftPsgahECH4g1d/rOgdYIXlxAutsjuoAPXPTwRcjQWACrBhKr9MmgQAdlldpYKr+IUUFC89qn8CSLbnCACqQUAad54Uh8BD/MCZjzJI3HbnkYFbQSmccXjpRFJ+kOlQAyUSDFK5LbzueusmyR1Lrd3Ly//AUcaRFyAOAAA"; \ No newline at end of file diff --git a/docs/ss6player_pixi6_api/assets/style.css b/docs/ss6player_pixi6_api/assets/style.css index 072daed..9d619a6 100644 --- a/docs/ss6player_pixi6_api/assets/style.css +++ b/docs/ss6player_pixi6_api/assets/style.css @@ -10,6 +10,7 @@ --light-color-text: #222; --light-color-text-aside: #6e6e6e; --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -35,6 +36,7 @@ --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -50,6 +52,7 @@ --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -75,6 +78,7 @@ --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; @@ -92,6 +96,7 @@ --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -116,6 +121,7 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -134,6 +140,7 @@ --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -158,6 +165,7 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); @@ -183,6 +191,7 @@ body { --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -207,6 +216,7 @@ body { --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -223,6 +233,7 @@ body { --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -247,11 +258,17 @@ body { --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + .always-visible, .always-visible .tsd-signatures { display: inherit !important; @@ -266,16 +283,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +313,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -327,17 +330,14 @@ dd { } /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +footer > p { + margin: 0 1em; } .container-main { @@ -424,6 +424,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -583,13 +586,13 @@ dl.tsd-comment-tag-group p { } .tsd-filter-input { display: flex; - width: fit-content; width: -moz-fit-content; + width: fit-content; align-items: center; - user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } .tsd-filter-input input[type="checkbox"] { @@ -612,11 +615,8 @@ dl.tsd-comment-tag-group p { Don't remove unless you know what you're doing. */ opacity: 0.99; } -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); } .tsd-checkbox-background { fill: var(--color-accent); @@ -633,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { stroke: var(--color-accent); } -.tsd-theme-toggle { - padding-top: 0.75rem; +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; } -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; } .tsd-hierarchy { @@ -772,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } +.tsd-navigation .tsd-nav-link { + display: none; +} .tsd-nested-navigation { margin-left: 3rem; } @@ -785,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.5rem; } +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; +} .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -815,10 +832,10 @@ a.tsd-index-link { } .tsd-accordion-summary, .tsd-accordion-summary a { - user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } @@ -831,8 +848,9 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { +.tsd-accordion .tsd-accordion-summary > svg { margin-left: 0.25rem; + vertical-align: text-top; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -880,7 +898,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -888,6 +906,9 @@ a.tsd-index-link { .tsd-panel-group.tsd-index-group details { margin: 2rem 0; } +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} #tsd-search { transition: background-color 0.2s; @@ -1037,6 +1058,12 @@ a.tsd-index-link { border-width: 1px 0; transition: background-color 0.1s; } +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} .tsd-description .tsd-signatures .tsd-signature { border-width: 1px; } @@ -1350,6 +1377,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ diff --git a/docs/ss6player_pixi6_api/classes/SS6Player.html b/docs/ss6player_pixi6_api/classes/SS6Player.html index b93235d..bb6c9d1 100644 --- a/docs/ss6player_pixi6_api/classes/SS6Player.html +++ b/docs/ss6player_pixi6_api/classes/SS6Player.html @@ -1,57 +1,36 @@ -SS6Player | ss6player-pixi6

Hierarchy

  • Container
    • SS6Player

Constructors

Properties

_CoordinateGetDiagonalIntersectionVec2 -_bounds +SS6Player | ss6player-pixi6

Constructors

  • SS6Player (extends PIXI.Container)

    Parameters

    • ss6project: SS6Project

      SS6Project that contains animations.

    • animePackName: string = null

      The name of animePack(SSAE).

    • animeName: string = null

      The name of animation.

      -

    Returns SS6Player

Properties

_CoordinateGetDiagonalIntersectionVec2: Float32Array = ...
_bounds: Bounds

The bounds object, this is used to calculate and store the bounds of the displayObject.

-
_boundsID: number

Flags the cached bounds as dirty.

-
_boundsRect: Rectangle

Cache of this display-object's bounds-rectangle.

-
_currentFrame: number
_destroyed: boolean

If the object has been destroyed via destroy(). If true, it should not be used.

-
_enabledFilters: Filter[]

Currently enabled filters.

-
_endFrame: number
_height: number
_instancePos: Float32Array = ...
_isPausing: boolean
_isPlaying: boolean
_lastSortedIndex: number

Which index in the children array the display component was before the previous zIndex sort. +

Returns SS6Player

Properties

_bounds: Bounds

The bounds object, this is used to calculate and store the bounds of the displayObject.

+
_boundsID: number

Flags the cached bounds as dirty.

+
_boundsRect: Rectangle

Cache of this display-object's bounds-rectangle.

+
_destroyed: boolean

If the object has been destroyed via destroy(). If true, it should not be used.

+
_enabledFilters: Filter[]

Currently enabled filters.

+
_height: number
_lastSortedIndex: number

Which index in the children array the display component was before the previous zIndex sort. Used by containers to help sort objects with the same zIndex, by using previous array index as the decider.

_localBounds: Bounds

Local bounds object, swapped with _bounds when using getLocalBounds().

-
_localBoundsRect: Rectangle

Cache of this display-object's local-bounds rectangle.

-
_loops: number
_mask: Container<DisplayObject> | MaskData

The original, cached mask of the object.

-
_startFrame: number
_width: number
_zIndex: number

The zIndex of the displayObject. +

_localBoundsRect: Rectangle

Cache of this display-object's local-bounds rectangle.

+
_mask: Container<DisplayObject> | MaskData

The original, cached mask of the object.

+
_width: number
_zIndex: number

The zIndex of the displayObject. A higher value will mean it will be rendered on top of other displayObjects within the same container.

alpha: number

The opacity of the object.

-
alphaBlendType: BLEND_MODES[] = []
children: DisplayObject[]

The array of children of this container.

-
colorMatrixFilterCache: ColorMatrixFilter[] = []
containerUpdateTransform: (() => void)

Type declaration

    • (): void
    • Returns void

cullArea: Rectangle

If set, this shape is used for culling instead of the bounds of this object. +

children: DisplayObject[]

The array of children of this container.

+
containerUpdateTransform: (() => void)
cullArea: Rectangle

If set, this shape is used for culling instead of the bounds of this object. It can improve the culling performance of objects with many children. The culling area is defined in local space.

cullable: boolean

Should this object be rendered if the bounds of this object are out of frame?

Culling has no effect on whether updateTransform is called.

-
defaultColorFilter: Filter = ...
displayObjectUpdateTransform: (() => void)

Type declaration

    • (): void
    • Returns void

filterArea: Rectangle

The area the filter is applied to. This is used as more of an optimization +

displayObjectUpdateTransform: (() => void)
filterArea: Rectangle

The area the filter is applied to. This is used as more of an optimization rather than figuring out the dimensions of the displayObject each frame you can set this rectangle.

Also works as an interaction mask.

filters: Filter[]

Sets the filters for the displayObject. IMPORTANT: This is a WebGL only feature and will be ignored by the canvas renderer. -To remove filters simply set this property to 'null'.

+To remove filters simply set this property to 'null'.

isMask: boolean

Does any other displayObject use this object as a mask?

isSprite: boolean

Used to fast check if a sprite is.. a sprite!

-
liveFrame: any[] = []
name: string
nextFrameTime: number
onUserDataCallback: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: any

      Returns void

parent: Container<DisplayObject>
parentAlpha: number = 1.0
playDirection: number
playEndCallback: ((player) => void)

Type declaration

    • (player): void
    • Parameters

      Returns void

playerLib: Player
prevCellID: number[] = []
prevPartObject: (SS6Player | Container<DisplayObject> | Mesh<MeshMaterial>)[] = []
renderable: boolean

Can this object be rendered, if false the object will not be drawn but the updateTransform +

name: string
onUserDataCallback: ((data: any) => void)
parent: Container<DisplayObject>

The display object container that contains this display object.

+
playEndCallback: ((player: SS6Player) => void)
playerLib: Player
renderable: boolean

Can this object be rendered, if false the object will not be drawn but the updateTransform methods will still be called.

Only affects recursive calls from parent. You can ask for bounds manually.

-
skipEnabled: boolean
sortDirty: boolean

Should children be sorted by zIndex at the next updateTransform call.

-

Will get automatically set to true if a new child is added, or if a child's zIndex changes.

+
skipEnabled: boolean
sortDirty: boolean

Should children be sorted by zIndex at the next updateTransform call.

+

Will get automatically set to true if a new child is added, or if a child's zIndex changes.

sortableChildren: boolean

If set to true, the container will sort its children by zIndex value when updateTransform() is called, or manually if sortChildren() is called.

This actually changes the order of elements in the array, so should be treated as a basic solution that is not performant compared to other solutions, such as

-

https://github.com/pixijs/pixi-display

Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.

-

See

PIXI.settings.SORTABLE_CHILDREN

-
ss6project: SS6Project
substituteKeyParam: SS6PlayerInstanceKeyParam[] = []
substituteOverWrite: boolean[] = []
transform: Transform

World transform and local transform of this object. +

PIXI.settings.SORTABLE_CHILDREN

+
transform: Transform

World transform and local transform of this object. This will become read-only later, please do not assign anything there unless you know what are you doing.

-
updateInterval: number
visible: boolean

The visibility of the object. If false the object will not be drawn, and +

visible: boolean

The visibility of the object. If false the object will not be drawn, and the updateTransform function will not be called.

Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.

-
worldAlpha: number

The multiplied alpha of the displayObject.

-
prefixed: string | boolean

Accessors

  • get _tempDisplayObjectParent(): TemporaryDisplayObject
  • Protected

    Returns TemporaryDisplayObject

    Member

  • get angle(): number
  • The angle of the object in degrees. -'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

    -

    Returns number

  • set angle(value): void
  • Parameters

    • value: number

    Returns void

  • get destroyed(): boolean
  • Readonly flag for destroyed display objects.

    -

    Returns boolean

  • get height(): number
  • The height of the Container, setting this will actually modify the scale to achieve the value set.

    -

    Returns number

  • set height(value): void
  • Parameters

    • value: number

    Returns void

  • get localTransform(): Matrix
  • Current transform of the object based on local factors: position, scale, other stuff.

    -

    Returns Matrix

  • get mask(): Container<DisplayObject> | MaskData
  • Sets a mask for the displayObject. A mask is an object that limits the visibility of an +

worldAlpha: number

The multiplied alpha of the displayObject.

+
prefixed: string | boolean

Accessors

  • get _tempDisplayObjectParent(): TemporaryDisplayObject
  • Protected

    Returns TemporaryDisplayObject

  • get angle(): number
  • The angle of the object in degrees. +'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

    +

    Returns number

  • set angle(value): void
  • Parameters

    • value: number

    Returns void

  • get destroyed(): boolean
  • Readonly flag for destroyed display objects.

    +

    Returns boolean

  • get height(): number
  • The height of the Container, setting this will actually modify the scale to achieve the value set.

    +

    Returns number

  • set height(value): void
  • Parameters

    • value: number

    Returns void

  • get localTransform(): Matrix
  • Current transform of the object based on local factors: position, scale, other stuff.

    +

    Returns Matrix

  • get mask(): Container<DisplayObject> | MaskData
  • Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PixiJS a regular mask must be a PIXI.Graphics or a PIXI.Sprite object. This allows for much faster masking in canvas as it utilities shape clipping. Furthermore, a mask of an object must be in the subtree of its parent. -Otherwise, getLocalBounds may calculate incorrect bounds, which makes the container's width and height wrong. +Otherwise, getLocalBounds may calculate incorrect bounds, which makes the container's width and height wrong. To remove a mask, set this property to null.

    For sprite mask both alpha and red channel are used. Black mask is the same as transparent mask.

    -

    Returns Container<DisplayObject> | MaskData

    Example

    const graphics = new PIXI.Graphics();
    graphics.beginFill(0xFF3300);
    graphics.drawRect(50, 250, 100, 100);
    graphics.endFill();

    const sprite = new PIXI.Sprite(texture);
    sprite.mask = graphics; -
    -

    Todo

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Sprite as mask.

    +

    Returns Container<DisplayObject> | MaskData

    const graphics = new PIXI.Graphics();
    graphics.beginFill(0xFF3300);
    graphics.drawRect(50, 250, 100, 100);
    graphics.endFill();

    const sprite = new PIXI.Sprite(texture);
    sprite.mask = graphics; +
    + +

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Sprite as mask.

  • set mask(value): void
  • Parameters

    • value: Container<DisplayObject> | MaskData

    Returns void

  • get pivot(): ObservablePoint<any>
  • The center of rotation, scaling, and skewing for this display object in its local space. The position -is the projection of pivot in the parent's local space.

    +is the projection of pivot in the parent's local space.

    By default, the pivot is the origin (0, 0).

    -

    Returns ObservablePoint<any>

    Since

    4.0.0

    +

    Returns ObservablePoint<any>

    4.0.0

  • set pivot(value): void
  • Parameters

    • value: IPointData

    Returns void

  • get position(): ObservablePoint<any>
  • The coordinate of the object relative to the local coordinates of the parent.

    -

    Returns ObservablePoint<any>

    Since

    4.0.0

    +

    Returns ObservablePoint<any>

    4.0.0

  • set position(value): void
  • Parameters

    • value: IPointData

    Returns void

  • get rotation(): number
  • The rotation of the object in radians. -'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

    +'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

    Returns number

  • set rotation(value): void
  • Parameters

    • value: number

    Returns void

  • get scale(): ObservablePoint<any>
  • The scale factors of this object along the local coordinate axes.

    The default scale is (1, 1).

    -

    Returns ObservablePoint<any>

    Since

    4.0.0

    +

    Returns ObservablePoint<any>

    4.0.0

  • set scale(value): void
  • Parameters

    • value: IPointData

    Returns void

  • get skew(): ObservablePoint<any>
  • The skew factor for the object in radians.

    -

    Returns ObservablePoint<any>

    Since

    4.0.0

    -
  • set skew(value): void
  • Parameters

    • value: IPointData

    Returns void

  • get width(): number
  • The width of the Container, setting this will actually modify the scale to achieve the value set.

    +

    Returns ObservablePoint<any>

    4.0.0

    +
  • set skew(value): void
  • Parameters

    • value: IPointData

    Returns void

  • get width(): number
  • The width of the Container, setting this will actually modify the scale to achieve the value set.

    Returns number

  • set width(value): void
  • Parameters

    • value: number

    Returns void

  • get worldTransform(): Matrix
  • Current transform of the object based on world (parent) factors.

    Returns Matrix

  • get worldVisible(): boolean
  • Indicates if the object is globally visible.

    Returns boolean

  • get x(): number
  • The position of the displayObject on the x axis relative to the local coordinates of the parent. @@ -238,8 +212,8 @@

    Todo

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

    If a container has the sortableChildren property set to true, children will be automatically sorted by zIndex value; a higher value will mean it will be moved towards the end of the array, and thus rendered on top of other display objects within the same container.

    -

    Returns number

    See

    PIXI.Container#sortableChildren

    -
  • set zIndex(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • 名前を指定してパーツの再生するインスタンスアニメを変更します。 +

    Returns number

    PIXI.Container#sortableChildren

    +
  • set zIndex(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • 名前を指定してパーツの再生するインスタンスアニメを変更します。 指定したパーツがインスタンスパーツでない場合、falseを返します. インスタンスパーツ名はディフォルトでは「ssae名:モーション名」とつけられています。 再生するアニメの名前は アニメパック名 と アニメ名 で指定してください。 @@ -252,71 +226,44 @@

    Todo

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

  • animeName: string

    参照するアニメ名

  • overWrite: boolean

    インスタンスキーの上書きフラグ

  • keyParam: SS6PlayerInstanceKeyParam = null

    インスタンスキー

    -

Returns boolean

  • パーツカラーのブレンド用カラーマトリクス

    -

    Parameters

    • blendType: number

      ブレンド方法(0:mix, 1:multiply, 2:add, 3:sub)

      -
    • rate: number

      ミックス時の混色レート

      -
    • argb32: number

      パーツカラー(単色)

      -

    Returns Filter

      -
    • カラーマトリクス
    • -
    -
  • メッシュセルからメッシュを作成

    -

    Parameters

    • partID: number

      パーツID

      -
    • cellID: number

      セルID

      -

    Returns Mesh<MeshMaterial>

      -
    • メッシュ
    • -
    -
  • アニメーションの速度を設定する (deprecated この関数は削除される可能性があります)

    +

Returns boolean

  • アニメーションの速度を設定する (deprecated この関数は削除される可能性があります)

    Parameters

    • fps: number

      アニメーション速度(frame per sec.)

    • _skipEnabled: boolean = true

      描画更新が間に合わないときにフレームをスキップするかどうか

      -

    Returns void

  • アニメーション再生設定

    +

Returns void

  • アニメーション再生設定

    Parameters

    • _startframe: number = -1

      開始フレーム番号(マイナス設定でデフォルト値を変更しない)

    • _endframe: number = -1

      終了フレーム番号(マイナス設定でデフォルト値を変更しない)

    • _loops: number = -1

      ループ回数(ゼロもしくはマイナス設定で無限ループ)

      -

    Returns void

  • アニメーションの速度を設定する

    +

Returns void

  • アニメーションの速度を設定する

    Parameters

    • fpsRate: number

      アニメーション速度(設定値に対する乗率)負数設定で逆再生

    • _skipEnabled: boolean = true

      描画更新が間に合わないときにフレームをスキップするかどうか

      -

    Returns void

  • 1フレーム分のアニメーション描画

    +

Returns void

  • 1フレーム分のアニメーション描画

    Parameters

    • frameNumber: number

      フレーム番号

    • ds: number = 0.0

      delta step

      -

    Returns void

  • Setup

    +

Returns void

  • エラー処理

    +

Returns void

  • Update is called PIXI.ticker

    +

Returns void

  • Update is called PIXI.ticker

    Parameters

    • delta: number

      expected 1

      -
    • rewindAfterReachingEndFrame: boolean = true

    Returns void

  • Protected

    Recalculates the content bounds of this object. This should be overriden to +

  • rewindAfterReachingEndFrame: boolean = true

Returns void

  • Protected

    Recalculates the content bounds of this object. This should be overriden to calculate the bounds of this specific object (not including children).

    -

    Returns void

  • Recursively updates transform of all objects from the root to this one internal function for toLocal()

    -

    Returns void

  • To be overridden by the subclasses.

    +

    Returns void

  • Recursively updates transform of all objects from the root to this one internal function for toLocal()

    +

    Returns void

  • To be overridden by the subclasses.

    Parameters

    • _renderer: Renderer

      The renderer

      -

    Returns void

  • Protected

    Renders this object and its children with culling.

    +

Returns void

  • Protected

    Renders this object and its children with culling.

    Parameters

    • renderer: Renderer

      The renderer

    Returns void

  • Adds one or more children to the container.

    Multiple items can be added like so: myContainer.addChild(thingOne, thingTwo, thingThree)

    -

    Type Parameters

    • U extends DisplayObject[]

    Parameters

    • Rest ...children: U

      The DisplayObject(s) to add to the container

      +

      Type Parameters

      • U extends DisplayObject[]

      Parameters

      • Rest...children: U

        The DisplayObject(s) to add to the container

      Returns U[0]

      • The first child that was added.
      @@ -324,19 +271,20 @@

      Todo

      At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

    Type Parameters

    • U extends DisplayObject

    Parameters

    • child: U

      The child to add

    • index: number

      The index to place the child in

    Returns U

    The child that was added.

    -
  • Parameters

    • event: string | symbol
    • fn: ListenerFn
    • Optional context: any

    Returns this

  • Recalculates the bounds of the container.

    -

    This implementation will automatically fit the children's bounds into the calculation. Each child's bounds -is limited to its mask's bounds or filterArea, if any is applied.

    -

    Returns void

  • Removes all internal references and listeners as well as removes children from the display list. +

  • Parameters

    • event: string | symbol
    • fn: ListenerFn
    • Optionalcontext: any

    Returns this

  • Recalculates the bounds of the container.

    +

    This implementation will automatically fit the children's bounds into the calculation. Each child's bounds +is limited to its mask's bounds or filterArea, if any is applied.

    +

    Returns void

  • Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling destroy.

    -

    Parameters

    • Optional options: boolean | IDestroyOptions

      Options parameter. A boolean will act as if all options - have been set to that value

      +

      Parameters

      • Optionaloptions: boolean | IDestroyOptions

        Options parameter. A boolean will act as if all options +have been set to that value

      Returns void

  • Pair method for enableTempParent

    Parameters

    • cacheParent: Container<DisplayObject>

      Actual parent of element

    Returns void

  • Calls each of the listeners registered for a given event.

    -

    Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

  • Used in Renderer, cacheAsBitmap and other places where you call an updateTransform on root

    +

    Parameters

    • event: string | symbol
    • Rest...args: any[]

    Returns boolean

  • Used in Renderer, cacheAsBitmap and other places where you call an updateTransform on root

    const cacheParent = elem.enableTempParent();
    elem.updateTransform();
    elem.disableTempParent(cacheParent);
    +

    Returns Container<DisplayObject>

    • current parent
    @@ -344,28 +292,29 @@

    Todo

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri listeners.

    Returns (string | symbol)[]

  • Calculates and returns the (world) bounds of the display object as a [Rectangle]PIXI.Rectangle.

    This method is expensive on containers with a large subtree (like the stage). This is because the bounds -of a container depend on its children's bounds, which recursively causes all bounds in the subtree to +of a container depend on its children's bounds, which recursively causes all bounds in the subtree to be recalculated. The upside, however, is that calling getBounds once on a container will indeed update the bounds of all children (the whole subtree, in fact). This side effect should be exploited by using displayObject._bounds.getRectangle() when traversing through all the bounds in a scene graph. Otherwise, calling getBounds on each object in a subtree will cause the total cost to increase quadratically as its height increases.

    -

    The transforms of all objects in a container's subtree and of all ancestors are updated. -The world bounds of all display objects in a container's subtree will also be recalculated.

    +

    The transforms of all objects in a container's subtree and of all ancestors are updated. +The world bounds of all display objects in a container's subtree will also be recalculated.

    The _bounds object stores the last calculation of the bounds. You can use to entirely skip bounds calculation if needed.

    -
    const lastCalculatedBounds = displayObject._bounds.getRectangle(optionalRect);
    -
    +
    const lastCalculatedBounds = displayObject._bounds.getRectangle(optionalRect);
    +
    +

    Do know that usage of getLocalBounds can corrupt the _bounds of children (the whole subtree, actually). This is a known issue that has not been solved. See [getLocalBounds]PIXI.DisplayObject#getLocalBounds for more details.

    getBounds should be called with skipUpdate equal to true in a render() call. This is because the transforms are guaranteed to be update-to-date. In fact, recalculating inside a render() call may cause corruption in certain cases.

    -

    Parameters

    • Optional skipUpdate: boolean

      Setting to true will stop the transforms of the scene graph from - being updated. This means the calculation returned MAY be out of date BUT will give you a - nice performance boost.

      -
    • Optional rect: Rectangle

      Optional rectangle to store the result of the bounds calculation.

      +

      Parameters

      • OptionalskipUpdate: boolean

        Setting to true will stop the transforms of the scene graph from +being updated. This means the calculation returned MAY be out of date BUT will give you a +nice performance boost.

        +
      • Optionalrect: Rectangle

        Optional rectangle to store the result of the bounds calculation.

      Returns Rectangle

      • The minimum axis-aligned rectangle in world space that fits around this object.
      @@ -374,7 +323,7 @@

      Todo

      At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

Returns DisplayObject

  • The child at the given index, if any.
-
  • Type Parameters

    • T extends DisplayObject = DisplayObject

    Parameters

    • name: string
    • Optional deep: boolean

    Returns T

  • Returns the index position of a child DisplayObject instance

    +
  • Type Parameters

    • T extends DisplayObject = DisplayObject

    Parameters

    • name: string
    • Optionaldeep: boolean

    Returns T

  • Returns the index position of a child DisplayObject instance

    Parameters

    • child: DisplayObject

      The DisplayObject instance to identify

    Returns number

    • The index position of the child display object to identify
    • @@ -382,32 +331,32 @@

      Todo

      At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

  • Retrieves the local bounds of the displayObject as a rectangle object.

    Calling getLocalBounds may invalidate the _bounds of the whole subtree below. If using it inside a render() call, it is advised to call getBounds() immediately after to recalculate the world bounds of the subtree.

    -

    Parameters

    • Optional rect: Rectangle

      Optional rectangle to store the result of the bounds calculation.

      -
    • Optional skipChildrenUpdate: boolean

      Setting to true will stop re-calculation of children transforms, - it was default behaviour of pixi 4.0-5.2 and caused many problems to users.

      +

      Parameters

      • Optionalrect: Rectangle

        Optional rectangle to store the result of the bounds calculation.

        +
      • OptionalskipChildrenUpdate: boolean

        Setting to true will stop re-calculation of children transforms, +it was default behaviour of pixi 4.0-5.2 and caused many problems to users.

      Returns Rectangle

      • The rectangular bounding area.
  • Return the number of listeners listening to a given event.

    Parameters

    • event: string | symbol

    Returns number

  • Return the listeners registered for a given event.

    -

    Parameters

    • event: string | symbol

    Returns ListenerFn[]

  • Parameters

    • event: string | symbol
    • Optional fn: ListenerFn
    • Optional context: any
    • Optional once: boolean

    Returns this

  • Add a listener for a given event.

    -

    Parameters

    • event: string | symbol
    • fn: ListenerFn
    • Optional context: any

    Returns this

  • Overridable method that can be used by Container subclasses whenever the children array is modified.

    -

    Parameters

    • Optional _length: number

    Returns void

  • Add a one-time listener for a given event.

    -

    Parameters

    • event: string | symbol
    • fn: ListenerFn
    • Optional context: any

    Returns this

  • Remove all listeners, or those of the specified event.

    -

    Parameters

    • Optional event: string | symbol

    Returns this

  • Removes one or more children from the container.

    -

    Type Parameters

    • U extends DisplayObject[]

    Parameters

    • Rest ...children: U

      The DisplayObject(s) to remove

      +

      Parameters

      • event: string | symbol

      Returns ListenerFn[]

  • Parameters

    • event: string | symbol
    • Optionalfn: ListenerFn
    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Add a listener for a given event.

    +

    Parameters

    • event: string | symbol
    • fn: ListenerFn
    • Optionalcontext: any

    Returns this

  • Overridable method that can be used by Container subclasses whenever the children array is modified.

    +

    Parameters

    • Optional_length: number

    Returns void

  • Add a one-time listener for a given event.

    +

    Parameters

    • event: string | symbol
    • fn: ListenerFn
    • Optionalcontext: any

    Returns this

  • Remove all listeners, or those of the specified event.

    +

    Parameters

    • Optionalevent: string | symbol

    Returns this

  • Removes one or more children from the container.

    +

    Type Parameters

    • U extends DisplayObject[]

    Parameters

    • Rest...children: U

      The DisplayObject(s) to remove

    Returns U[0]

    The first child that was removed.

  • Removes a child from the specified index position.

    Parameters

    • index: number

      The index to get the child from

    Returns DisplayObject

    The child that was removed.

  • Removes all children from this container that are within the begin and end indexes.

    -

    Parameters

    • Optional beginIndex: number

      The beginning position.

      -
    • Optional endIndex: number

      The ending position. Default value is size of the container.

      +

      Parameters

      • OptionalbeginIndex: number

        The beginning position.

        +
      • OptionalendIndex: number

        The ending position. Default value is size of the container.

      Returns DisplayObject[]

      • List of removed children
  • Remove the listeners of a given event.

    -

    Parameters

    • event: string | symbol
    • Optional fn: ListenerFn
    • Optional context: any
    • Optional once: boolean

    Returns this

  • Renders the object using the WebGL renderer.

    +

    Parameters

    • event: string | symbol
    • Optionalfn: ListenerFn
    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Renders the object using the WebGL renderer.

    The [_render]PIXI.Container#_render method is be overriden for rendering the contents of the container itself. This render method will invoke it, and also invoke the render methods of all children afterward.

    @@ -425,9 +374,9 @@

    Todo

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri filtering is applied on a container. This does, however, break batching and can affect performance when masking and filtering is applied extensively throughout the scene graph.

    Parameters

    • renderer: Renderer

      The renderer

      -

    Returns void

  • Render the object using the WebGL renderer and advanced features.

    +

Returns void

  • Render the object using the WebGL renderer and advanced features.

    Parameters

    • renderer: Renderer

      The renderer

      -

    Returns void

  • Changes the position of an existing child in the display object container

    +

Returns void

  • Changes the position of an existing child in the display object container

    Parameters

    • child: DisplayObject

      The child DisplayObject instance for which you want to change the index number

    • index: number

      The resulting index number for the child display object

    Returns void

  • Set the parent Container of this DisplayObject.

    @@ -436,15 +385,15 @@

    Todo

    At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

  • The Container that this DisplayObject was added to.
  • Convenience function to set the position, scale, skew and pivot at once.

    -

    Parameters

    • Optional x: number

      The X position

      -
    • Optional y: number

      The Y position

      -
    • Optional scaleX: number

      The X scale value

      -
    • Optional scaleY: number

      The Y scale value

      -
    • Optional rotation: number

      The rotation

      -
    • Optional skewX: number

      The X skew value

      -
    • Optional skewY: number

      The Y skew value

      -
    • Optional pivotX: number

      The X pivot value

      -
    • Optional pivotY: number

      The Y pivot value

      +

      Parameters

      • Optionalx: number

        The X position

        +
      • Optionaly: number

        The Y position

        +
      • OptionalscaleX: number

        The X scale value

        +
      • OptionalscaleY: number

        The Y scale value

        +
      • Optionalrotation: number

        The rotation

        +
      • OptionalskewX: number

        The X skew value

        +
      • OptionalskewY: number

        The Y skew value

        +
      • OptionalpivotX: number

        The X pivot value

        +
      • OptionalpivotY: number

        The Y pivot value

      Returns this

      • The DisplayObject instance
      @@ -454,22 +403,22 @@

      Todo

      At the moment, PIXI.CanvasRenderer doesn't support PIXI.Spri

  • child2: DisplayObject

    Second display object to swap

Returns void

  • Calculates the global position of the display object.

    Type Parameters

    • P extends IPointData = Point

    Parameters

    • position: IPointData

      The world origin to calculate from.

      -
    • Optional point: P

      A Point object in which to store the value, optional - (otherwise will create a new Point).

      -
    • Optional skipUpdate: boolean

      Should we skip the update transform.

      +
    • Optionalpoint: P

      A Point object in which to store the value, optional +(otherwise will create a new Point).

      +
    • OptionalskipUpdate: boolean

      Should we skip the update transform.

    Returns P

    • A point object representing the position of this object.
  • Calculates the local position of the display object relative to another point.

    Type Parameters

    • P extends IPointData = Point

    Parameters

    • position: IPointData

      The world origin to calculate from.

      -
    • Optional from: DisplayObject

      The DisplayObject to calculate the global position from.

      -
    • Optional point: P

      A Point object in which to store the value, optional - (otherwise will create a new Point).

      -
    • Optional skipUpdate: boolean

      Should we skip the update transform

      +
    • Optionalfrom: DisplayObject

      The DisplayObject to calculate the global position from.

      +
    • Optionalpoint: P

      A Point object in which to store the value, optional +(otherwise will create a new Point).

      +
    • OptionalskipUpdate: boolean

      Should we skip the update transform

    Returns P

    • A point object representing the position of this object
  • Updates the transform on all children of this container for rendering.

    -

    Returns void

  • Mixes all enumerable properties and methods from a source object to DisplayObject.

    +

    Returns void

  • Mixes all enumerable properties and methods from a source object to DisplayObject.

    Parameters

    • source: Dict<any>

      The source of properties and methods to mix in.

      -

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Returns void

diff --git a/docs/ss6player_pixi6_api/classes/SS6PlayerInstanceKeyParam.html b/docs/ss6player_pixi6_api/classes/SS6PlayerInstanceKeyParam.html index 8841ffc..0da334a 100644 --- a/docs/ss6player_pixi6_api/classes/SS6PlayerInstanceKeyParam.html +++ b/docs/ss6player_pixi6_api/classes/SS6PlayerInstanceKeyParam.html @@ -1,5 +1,5 @@ -SS6PlayerInstanceKeyParam | ss6player-pixi6

Class SS6PlayerInstanceKeyParam

インスタンス差し替え用のキーパラメーター

-

Constructors

constructor +SS6PlayerInstanceKeyParam | ss6player-pixi6

Class SS6PlayerInstanceKeyParam

インスタンス差し替え用のキーパラメーター

+

Constructors

Properties

Constructors

Properties

independent: boolean = false
infinity: boolean = false
pingpong: boolean = false
refEndframe: number = 0
refSpeed: number = 1.0
refStartframe: number = 0
refloopNum: number = 0
reverse: boolean = false

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

independent: boolean = false
infinity: boolean = false
pingpong: boolean = false
refEndframe: number = 0
refSpeed: number = 1.0
refStartframe: number = 0
refloopNum: number = 0
reverse: boolean = false
diff --git a/docs/ss6player_pixi6_api/classes/SS6Project.html b/docs/ss6player_pixi6_api/classes/SS6Project.html index 66a1aae..a4b1c23 100644 --- a/docs/ss6player_pixi6_api/classes/SS6Project.html +++ b/docs/ss6player_pixi6_api/classes/SS6Project.html @@ -1,26 +1,19 @@ -SS6Project | ss6player-pixi6

Constructors

constructor +SS6Project | ss6player-pixi6

Constructors

  • SS6Project (used for several SS6Player(s))

    +

Constructors

  • SS6Project (used for several SS6Player(s))

    Parameters

    • ssfbPath: string

      ssfb file path

      -
    • Optional onComplete: onCompleteCallback

      result callback

      -

    Returns SS6Project

  • SS6Project (used for several SS6Player(s))

    +
  • OptionalonComplete: onCompleteCallback

    result callback

    +

Returns SS6Project

  • SS6Project (used for several SS6Player(s))

    Parameters

    • ssfbName: string

      ssfb file name

    • bytes: Uint8Array

      ssfb file data

    • imageBinaryMap: {
          [key: string]: Uint8Array;
      }

      Image file data

      -
      • [key: string]: Uint8Array
    • Optional onComplete: onCompleteCallback

      result callback

      -

    Returns SS6Project

  • Properties

    fbObj: ProjectData
    onComplete: onCompleteCallback
    resourceLoader: SS6ProjectResourceLoader
    rootPath: string
    ssfbFile: string
    ssfbPath: string
    sspjMap: {
        [key: string]: string;
    } = {}

    Type declaration

    • [key: string]: string
    status: RESOURCE_PROGRESS

    Methods

    Generated using TypeDoc

    \ No newline at end of file +
    • [key: string]: Uint8Array
  • OptionalonComplete: onCompleteCallback

    result callback

    +
  • Returns SS6Project

    Properties

    fbObj: ProjectData
    onComplete: onCompleteCallback
    rootPath: string
    ssfbFile: string
    ssfbPath: string
    status: RESOURCE_PROGRESS

    Methods

    diff --git a/docs/ss6player_pixi6_api/index.html b/docs/ss6player_pixi6_api/index.html index 70b1c73..d2bfd9a 100644 --- a/docs/ss6player_pixi6_api/index.html +++ b/docs/ss6player_pixi6_api/index.html @@ -1,30 +1,34 @@ -ss6player-pixi6

    ss6player-pixi6

    SS6Player for pixi.js v6

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションを pixi.js v6 で再生するライブラリです。

    +ss6player-pixi6

    ss6player-pixi6

    SS6Player for pixi.js v6

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションを pixi.js v6 で再生するライブラリです。

    (ss6player-rpgmakermz のサポート用に pixi v6 向け ss6player の実装を残しています。pixi.js 最新版で ss6player を利用する際は ss6player-pixi を利用してください。)

    -

    ライブラリ

    リリース最新版のライブラリソースは こちら(minified) になります。

    -

    デモ

    リリース最新版のデモは こちら になります。

    -

    ライセンス

    ss6player-pixi6 のライセンスは LISENCE となります。

    +

    リリース最新版のライブラリソースは こちら(minified) になります。

    +

    リリース最新版のデモは こちら になります。

    +

    ss6player-pixi6 のライセンスは LISENCE となります。

    ss6player-pixi6 は依存ライブラリの FlatBuffersssfblibss6player-lib をバンドルしています。 -ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参照してください。

    -

    アニメーションデータの作成方法

    SpriteStudio 6 のプロジェクトファイル sspj からアニメーションデータファイル ssfb ファイルをコンバートします。 コンバートには Ss6Converter を利用します。

    +ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参照してください。

    +

    SpriteStudio 6 のプロジェクトファイル sspj からアニメーションデータファイル ssfb ファイルをコンバートします。 コンバートには Ss6Converter を利用します。

    Ss6Converter は SpriteStudio6-SDK に同封するツールです。利用方法に関してはこちらを参照してください

    -

    使い方

    API リファレンス

    ss6player-pixi6 の API リファレンスはこちらです。

    -

    サンプル

    Player ディレクトリの index.htmlsample.js を参考にしてください。

    -

    デモ ページを閲覧するか、あるいはローカル環境で動作確認ができます。

    -

    For Developer

    ライブラリを開発する方、あるいは開発版のライブラリの動作を確認したい方向けです。

    -

    ビルド

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    -

    全ビルド

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    -
    cd SS6PlayerForWeb
    npm i
    npm run build -
    +

    ss6player-pixi6 の API リファレンスはこちらです。

    +

    Player ディレクトリの index.htmlsample.js を参考にしてください。

    +

    デモ ページを閲覧するか、あるいはローカル環境で動作確認ができます。

    +

    For Developer

    ライブラリを開発する方、あるいは開発版のライブラリの動作を確認したい方向けです。

    +

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    +

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    +
    cd SS6PlayerForWeb
    npm i
    npm run build +
    +

    ビルドが成功すると ss6player-pixi6.umd.jsss6player-pixi6.es6.jsSS6PlayerForWeb/packages/ss6player-pixi6/dist ディレクトリ以下に生成されます。

    -

    単独ビルド

    全ビルド実行後は SS6PlayerForWeb/packages/ss6player-pixi6 ディレクトリ上で ss6player-pixi6 の単独ビルドが可能になります。

    -
    cd SS6PlayerForWeb/packages/ss6player-pixi6
    npm run build -
    -

    ローカル環境での動作確認

    全ビルド後、SS6PlayerForWeb/packages/ss6player-pixi6/ ディレクトリ上で下記コマンドを実行してください。

    +

    全ビルド実行後は SS6PlayerForWeb/packages/ss6player-pixi6 ディレクトリ上で ss6player-pixi6 の単独ビルドが可能になります。

    +
    cd SS6PlayerForWeb/packages/ss6player-pixi6
    npm run build +
    + +

    全ビルド後、SS6PlayerForWeb/packages/ss6player-pixi6/ ディレクトリ上で下記コマンドを実行してください。

    ローカル環境で http サーバが起動し、ブラウザ上で Player ディレクトリのサンプルを表示します。

    -
    cd SS6PlayerForWeb/packages/ss6player-pixi6
    npm run view -
    -

    単独ビルドの監視

    SS6PlayerForWeb/packages/ss6player-pixi6 ディレクトリ上で npm run start を実行すると、 src/ ディレクトリのソースファイルが変更されると自動的に単独ビルドが走るようになります。

    -

    ローカル環境での動作確認 と併用するとスムーズに動作確認が行なえます。

    -
    cd SS6PlayerForWeb/packages/ss6player-pixi6
    npm run start -
    -

    Generated using TypeDoc

    \ No newline at end of file +
    cd SS6PlayerForWeb/packages/ss6player-pixi6
    npm run view +
    + +

    SS6PlayerForWeb/packages/ss6player-pixi6 ディレクトリ上で npm run start を実行すると、 src/ ディレクトリのソースファイルが変更されると自動的に単独ビルドが走るようになります。

    +

    ローカル環境での動作確認 と併用するとスムーズに動作確認が行なえます。

    +
    cd SS6PlayerForWeb/packages/ss6player-pixi6
    npm run start +
    + +
    diff --git a/docs/ss6player_pixi6_api/media/LICENSE b/docs/ss6player_pixi6_api/media/LICENSE new file mode 100644 index 0000000..3b3de2d --- /dev/null +++ b/docs/ss6player_pixi6_api/media/LICENSE @@ -0,0 +1,52 @@ +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +3. Neither the name of the CRI Middleware Co., Ltd. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--------------- + +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を +満たす場合に限り、再頒布および使用が許可されます。 + +1. ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責 + 条項を含めること。 +2. バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の + 著作権表示、本条件一覧、および下記免責条項を含めること。 +3. 書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売 + 促進に、CRI Middleware Co., Ltd. の名前またはコントリビューターの名前を使用して + はならない。 + +本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供 +されており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する +適合性に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありません。 +著作権者もコントリビューターも、事由のいかんを問わず、 損害発生の原因いかんを +問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法行為 +であるかを問わず、仮にそのような損害が発生する可能性を知らされていたとしても、 +本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、使用の +喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されない) +直接損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害について、 +一切責任を負わないものとします。 diff --git a/docs/ss6player_pixi6_api/media/ThirdPartyLicenses.md b/docs/ss6player_pixi6_api/media/ThirdPartyLicenses.md new file mode 100644 index 0000000..c5b13ee --- /dev/null +++ b/docs/ss6player_pixi6_api/media/ThirdPartyLicenses.md @@ -0,0 +1,53 @@ + +# ssfblib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | + + +# ss6player-lib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-viewer + +| Licensed Code | License Type | Licenser URL | +|----------------|----------------------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| JSZip | MIT license or the GPLv3 license | https://github.com/Stuk/jszip/blob/main/LICENSE.markdown | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-pixi | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi6 + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-rpgmakermz + +| Licensed Code | License Type | Licenser URL | +|------------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player6-pixi6 | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | diff --git a/docs/ss6player_pixi6_api/media/index.html b/docs/ss6player_pixi6_api/media/index.html new file mode 100644 index 0000000..9ff6b6e --- /dev/null +++ b/docs/ss6player_pixi6_api/media/index.html @@ -0,0 +1,15 @@ + + + + +SpriteStudio6 Web Player + + + + + + + + + + diff --git a/docs/ss6player_pixi6_api/media/sample.js b/docs/ss6player_pixi6_api/media/sample.js new file mode 100644 index 0000000..a26398a --- /dev/null +++ b/docs/ss6player_pixi6_api/media/sample.js @@ -0,0 +1,108 @@ +//----------------------------------------------------------- +// SS6Player For Web +// +// Copyright(C) CRI Middleware Co., Ltd. +// http://www.webtech.co.jp/ +//----------------------------------------------------------- + +//SpriteStudioのアニメーションを再生するサンプルです。 +//アニメーションデータ(.ssfb)はSptiteStudioSDKに含まれる +//Ss6Converterで作成します。詳細は以下のURLを参照してください。 +//https://github.com/SpriteStudio/SpriteStudio6-SDK + +// Test data switcher +//const testVersion = "sampleAnimation1"; +//const testVersion = "sampleAnimation2"; +const testVersion = "sampleAnimation3"; + +// Initialize PIXI Application +// (通常のPIXI.jsアプリケーションの初期化手順) +const app = new PIXI.Application({ width:1280, height:720, backgroundColor : 0x606060 }); // 比較しやすいようにSSの初期設定と同じ色にしてみた +document.body.appendChild(app.view); + +const ssfbMap = { + "sampleAnimation1": { + "ssfbFile": "../../../TestData/character_sample1/character_sample1.ssfb", + "func": Play_sampleAnimation1 + }, + + "sampleAnimation2": { + "ssfbFile": "../../../TestData/AnimeMaking/AnimeMaking.ssfb", + "func": Play_sampleAnimation2 + }, + + "sampleAnimation3": { + "ssfbFile": "../../../TestData/MeshBone/Knight.ssfb", + "func": Play_sampleAnimation3 + } +}; + +const mySS6Project = new ss6PlayerPixi6.SS6Project(ssfbMap[testVersion]["ssfbFile"], function () { + ssfbMap[testVersion]["func"](); +}); + +// プレイヤーの使用方法サンプル +function Play_sampleAnimation1() { + { + let mySS6Player = new ss6PlayerPixi6.SS6Player(mySS6Project); + mySS6Player.Setup("character_template_3head", "attack1"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + app.stage.addChild(mySS6Player); + + // [任意]ユーザーデータコールバック + // ※Play前に設定しないと開始フレームのデータが漏れるので注意 + mySS6Player.SetUserDataCalback(function (userDataArray) { + // console.log(userDataArray); + }); + + // [任意]再生速度(SS設定値への乗率、負設定で逆再生)とフレームスキップの可否(初期値はfalse)を設定 + // フレームスキップ:trueで処理落ちでフレームスキップ、falseで処理落ちでもフレームスキップしない + // mySS6Player.SetAnimationSpeed(-1, true); + + // [任意]始点フレーム番号、終点フレーム番号、ループ回数(0以下で無限ループ) + // 同時に初期フレームを始点(再生速度がマイナスの場合は終点)フレーム番号に設定 + // mySS6Player.SetAnimationSection(0, 10, -1); + + // 再生開始 + mySS6Player.Play(); + } +} + +// プレイヤーの使用方法サンプル +function Play_sampleAnimation2() { + { + let mySS6Player = new ss6PlayerPixi6.SS6Player(mySS6Project); + mySS6Player.Setup("AnimeMaking", "06_pose"); + mySS6Player.position = new PIXI.Point(240, 320); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } + /* + { + let mySS6Player = new SS6Player(mySS6Project, "AnimeMaking", "04_pose"); + mySS6Player.position = new PIXI.Point(480, 320); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } + */ +} + +// プレイヤーの使用方法サンプル +function Play_sampleAnimation3() { + { + var mySS6Player = new ss6PlayerPixi6.SS6Player(mySS6Project); + mySS6Player.Setup("Knight_bomb", "Balloon"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } +} + diff --git a/docs/ss6player_pixi6_api/modules.html b/docs/ss6player_pixi6_api/modules.html index 126af49..46366ec 100644 --- a/docs/ss6player_pixi6_api/modules.html +++ b/docs/ss6player_pixi6_api/modules.html @@ -1,4 +1,4 @@ -ss6player-pixi6

    ss6player-pixi6

    Index

    Classes

    SS6Player +ss6player-pixi6

    ss6player-pixi6

    Index

    Classes

    Generated using TypeDoc

    \ No newline at end of file +
    diff --git a/docs/ss6player_pixi_api/assets/icons.js b/docs/ss6player_pixi_api/assets/icons.js index b79c9e8..e88e8ca 100644 --- a/docs/ss6player_pixi_api/assets/icons.js +++ b/docs/ss6player_pixi_api/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `""`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/ss6player_pixi_api/assets/icons.svg b/docs/ss6player_pixi_api/assets/icons.svg index 7dead61..e371b8b 100644 --- a/docs/ss6player_pixi_api/assets/icons.svg +++ b/docs/ss6player_pixi_api/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/ss6player_pixi_api/assets/main.js b/docs/ss6player_pixi_api/assets/main.js index 1daeb69..3572881 100644 --- a/docs/ss6player_pixi_api/assets/main.js +++ b/docs/ss6player_pixi_api/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.scrollToHash(),this.updateIndexVisibility())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.scrollToHash(),this.updateIndexVisibility())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/ss6player_pixi_api/assets/search.js b/docs/ss6player_pixi_api/assets/search.js index 01df77b..b41ae70 100644 --- a/docs/ss6player_pixi_api/assets/search.js +++ b/docs/ss6player_pixi_api/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72cUZObOBKA/4vz6swOAgmct91JcpW6JDu1yd49TE2lsC3PkMFAAZ5sKpX/fmow0I1bBhPqXjbrcbe61V9LaiHhH4s8/VYsXt39WDxFyXbxyhHBcpGEe714tfj0Sd3m6Ve9KRfLxSGPzZ82cVgUuvit++rqsdzH5vvjN0Zm8XPZtCYd0ba2SZOizA+bMs2HmntBZVHTy0UW5jopqXedQedaeK3Fotitb8PycdAcEpxqK0/TcpQtJPgr/XobxXpUv46CU23t1n+uvw4aaqQm96gMy0Mx3J9GbKqdNLlJ91msy+HYEdHppLKvH8JsBKhGrrNUFtuXUfEyy6PnsHLivF0lpataw1++lN+zMQlS2b1qxYc6etV4ahsGukgP+Ua/T8OtHh7nJ+KTuy+uvW7ietDlH4dkO2KEYMkLIPetfdb/lId8lLlOdKq9bVRkaTFsrJObagmwvI1DE6LdTufFyMXghVVtHrrQ/I2O47+OyTM8b3Aa8/gSm5YHzR+FJlvsr8lx+N0ytqpvZluRu9ZGL8i1a5bJIau+fR+th6xhQSZqaWnio7cX2S4KlZ1JX2ScSI5ldtZ2HD3rtzn8/4BpLDiL5U0ap/mHsMyjf0wdUOr8Jtw8Drph1ZrFp1ry9zh7DAfzgIjOYz3XzzAVvHs9aBxLzmb7NsxLUyuNyMMT6Vl8KA7roozKQ6n/fNb5f/PIUgrhAcGqzOzNv/V309lwP94ZpDGLLyGk2R+xTrafbaUT8uNEehYfvkQFCETJw5B9Ijmb7fBQjLTdSs5j21T2eTlqjqSi81g3FMfZRoLzWN4ccpAdZ70nPIsHiSlHqwY/R8Me9IXniUGcphlfw+HON1LzzDtPUfYmCdex5qs3POEQ0ZmqkUO2NS6/S8za+hzG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EllSVkvtbzlwMAVKRmFNi7aJ1Eyg3+rfpkBtIC7C5nsJF+t1fbEedRqpKluYqzcxT/fQaJHzbAvr4fgiFooZUpPn1aL2DSqkjpJJ2vqK1J+puovC7bLhvl+aGjHTcZQYobv7nz//Bz2z5Z49UAAA"; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72bbW/bOBLHv4v2rZsNnxwn7+56LbC4Q6+4dPdNEBSKTTdqFEmQ5O4WQb77knqcMcfWWDHuTVPZM/+hhj8OSYl+icr8zyq6uXuJnpJsE90IuVpEWfxso5vo9nb5ucy/23UdLaJdmbqP1mlcVbb6dfzq4rF+Tt333TfOJnpd9GpGyEFtnWdVXe7WdV5Oyf2CbYH0Iiri0mY1bt0YUFxKPUSsqu3D57h+nAwHDOfGKvO8ZsUChm+5r49Jaln31RnOjbV9+O/D98lAvdXsO6rjeldN309vNjdOnr3Pn4vU1tO5Q6YnxJOXehxB32z9z122YXQVtHxDtC/2r3pXssKNpnPjbZKqyKvpYKPdKf22V4jS+KelC0fzzdnK0KjGrkJt0w4gVzTf/id5mIoGDcdYdbV5l1TvijKvXX7s5qTY1VNSfMjih7TxOxodm54pfp79XtnyX3Edv4/T9CFeP001g/SY35qlMWo5NOfr1/pnQeN6tAkXreO71TQFF8QNHAHjQ7bhZiY0//+mZS9+nxNxyUjKfttBPVlKodE8UNYfS38xxSu05A/NvXg227CiAbvZseq8jlNWNGQ5O962oCdUEKg1mR/BN/FTPhllMJsdKc3zYipMZzM7RlJ5iyT7NhUIGr4lWryreNEGw9nR4ix5tp/d0PvEwG/f+G1R2RFPjwbXIre23k0i0hvNjPF7sYkPrBxBkMFqfn0mov6W1bbM4pQXHVifqRUudf9wvRTXSZ41palkpOKQ0/w+HuRuCzu9qKEczhHbpc/9OSn64DIzvv92KmBnMzeCKzOTPdobzYzxP1vtpsvBYDW3r+rp2aKzmU8DayYHdjMjfXK7NFYoaDiXgNL+YMWChm8YT2nxGHMGUWc3M9KXxzL/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ixi_api/assets/style.css b/docs/ss6player_pixi_api/assets/style.css index 072daed..9d619a6 100644 --- a/docs/ss6player_pixi_api/assets/style.css +++ b/docs/ss6player_pixi_api/assets/style.css @@ -10,6 +10,7 @@ --light-color-text: #222; --light-color-text-aside: #6e6e6e; --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -35,6 +36,7 @@ --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -50,6 +52,7 @@ --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -75,6 +78,7 @@ --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; @@ -92,6 +96,7 @@ --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -116,6 +121,7 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -134,6 +140,7 @@ --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -158,6 +165,7 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); @@ -183,6 +191,7 @@ body { --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -207,6 +216,7 @@ body { --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -223,6 +233,7 @@ body { --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -247,11 +258,17 @@ body { --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + .always-visible, .always-visible .tsd-signatures { display: inherit !important; @@ -266,16 +283,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +313,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -327,17 +330,14 @@ dd { } /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +footer > p { + margin: 0 1em; } .container-main { @@ -424,6 +424,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -583,13 +586,13 @@ dl.tsd-comment-tag-group p { } .tsd-filter-input { display: flex; - width: fit-content; width: -moz-fit-content; + width: fit-content; align-items: center; - user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } .tsd-filter-input input[type="checkbox"] { @@ -612,11 +615,8 @@ dl.tsd-comment-tag-group p { Don't remove unless you know what you're doing. */ opacity: 0.99; } -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); } .tsd-checkbox-background { fill: var(--color-accent); @@ -633,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { stroke: var(--color-accent); } -.tsd-theme-toggle { - padding-top: 0.75rem; +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; } -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; } .tsd-hierarchy { @@ -772,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } +.tsd-navigation .tsd-nav-link { + display: none; +} .tsd-nested-navigation { margin-left: 3rem; } @@ -785,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.5rem; } +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; +} .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -815,10 +832,10 @@ a.tsd-index-link { } .tsd-accordion-summary, .tsd-accordion-summary a { - user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } @@ -831,8 +848,9 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { +.tsd-accordion .tsd-accordion-summary > svg { margin-left: 0.25rem; + vertical-align: text-top; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -880,7 +898,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -888,6 +906,9 @@ a.tsd-index-link { .tsd-panel-group.tsd-index-group details { margin: 2rem 0; } +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} #tsd-search { transition: background-color 0.2s; @@ -1037,6 +1058,12 @@ a.tsd-index-link { border-width: 1px 0; transition: background-color 0.1s; } +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} .tsd-description .tsd-signatures .tsd-signature { border-width: 1px; } @@ -1350,6 +1377,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ diff --git a/docs/ss6player_pixi_api/classes/SS6Player.html b/docs/ss6player_pixi_api/classes/SS6Player.html index 67e25b1..55b977d 100644 --- a/docs/ss6player_pixi_api/classes/SS6Player.html +++ b/docs/ss6player_pixi_api/classes/SS6Player.html @@ -1,22 +1,13 @@ -SS6Player | ss6player-pixi

    Hierarchy

    • Container
      • SS6Player

    Constructors

    Properties

    _CoordinateGetDiagonalIntersectionVec2 -_accessibleActive? +SS6Player | ss6player-pixi

    Hierarchy

    • Container
      • SS6Player

    Constructors

    Properties

    _accessibleActive? _accessibleDiv? -_currentFrame -_endFrame -_filters? -_instancePos +_filterEffect? _internalEventMode -_isPausing -_isPlaying _localBoundsCacheData _localBoundsCacheId -_loops -_mask? +_maskEffect? _onRender _renderId? -_startFrame -_updateFlags _zIndex accessible? accessibleChildren? @@ -25,99 +16,77 @@ accessibleTitle? accessibleType? allowChildren -alphaBlendType boundsArea children -colorMatrixFilterCache cullArea? cullable? cullableChildren? -cursor -defaultColorFilter +cursor? depthOfChildModified destroyed -didChange -didViewUpdate effects? -eventMode -filterArea? -filters +eventMode? +filterArea? +filters groupAlpha groupColor groupColorAlpha groupTransform -hitArea -includeInBuild -interactive -interactiveChildren +hitArea? +interactive? +interactiveChildren? isInteractive -isRenderGroupRoot -isSimple label -liveFrame localAlpha localColor localTransform -mask -measurable +mask name -nextFrameTime onRender onUserDataCallback -onclick -onglobalmousemove -onglobalpointermove -onglobaltouchmove -onmousedown -onmouseenter -onmouseleave -onmousemove -onmouseout -onmouseover -onmouseup -onmouseupoutside -onpointercancel -onpointerdown -onpointerenter -onpointerleave -onpointermove -onpointerout -onpointerover -onpointertap -onpointerup -onpointerupoutside -onrightclick -onrightdown -onrightup -onrightupoutside -ontap -ontouchcancel -ontouchend -ontouchendoutside -ontouchmove -ontouchstart -onwheel +onclick? +onglobalmousemove? +onglobalpointermove? +onglobaltouchmove? +onmousedown? +onmouseenter? +onmouseleave? +onmousemove? +onmouseout? +onmouseover? +onmouseup? +onmouseupoutside? +onpointercancel? +onpointerdown? +onpointerenter? +onpointerleave? +onpointermove? +onpointerout? +onpointerover? +onpointertap? +onpointerup? +onpointerupoutside? +onrightclick? +onrightdown? +onrightup? +onrightupoutside? +ontap? +ontouchcancel? +ontouchend? +ontouchendoutside? +ontouchmove? +ontouchstart? +onwheel? parent -parentAlpha -playDirection playEndCallback playerLib -prevCellID -prevPartObject relativeGroupTransform -relativeRenderGroupDepth -renderGroup renderPipeId skipEnabled sortChildren sortDirty sortableChildren -ss6project -substituteKeyParam -substituteOverWrite tabIndex? -uid -updateInterval zIndex prefixed

    Accessors

    alpha @@ -149,11 +118,6 @@ x y

    Methods

    Constructors

    • SS6Player (extends PIXI.Container)

      +

    Constructors

    • SS6Player (extends PIXI.Container)

      Parameters

      • ss6project: SS6Project

        SS6Project that contains animations.

      • animePackName: string = null

        The name of animePack(SSAE).

      • animeName: string = null

        The name of animation.

        -

      Returns SS6Player

    Properties

    _CoordinateGetDiagonalIntersectionVec2: Float32Array = ...
    _accessibleActive?: boolean
    _accessibleDiv?: AccessibleHTMLElement
    _currentFrame: number
    _endFrame: number
    _filters?: {
        effect: FilterEffect;
        filterArea?: Rectangle;
        filters: readonly Filter[];
    }

    Type declaration

    • effect: FilterEffect
    • Optional filterArea?: Rectangle
    • filters: readonly Filter[]
    _instancePos: Float32Array = ...
    _internalEventMode: EventMode
    _isPausing: boolean
    _isPlaying: boolean
    _localBoundsCacheData: LocalBoundsCacheData
    _localBoundsCacheId: number
    _loops: number
    _mask?: {
        effect: Effect;
        mask: unknown;
    }

    Type declaration

    • effect: Effect
    • mask: unknown
    _onRender: (() => void)

    Type declaration

      • (): void
      • Returns void

    _renderId?: number
    _startFrame: number
    _updateFlags: number
    _zIndex: number
    accessible?: boolean

    Flag for if the object is accessible. If true AccessibilityManager will overlay a +

    Returns SS6Player

    Properties

    _accessibleActive?: boolean
    _accessibleDiv?: AccessibleHTMLElement
    _filterEffect?: FilterEffect
    _internalEventMode: EventMode
    _localBoundsCacheData: LocalBoundsCacheData
    _localBoundsCacheId: number
    _maskEffect?: MaskEffect
    _onRender: (() => void)
    _renderId?: number
    _zIndex: number
    accessible?: boolean

    Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set

    -

    Default

    false
    -
    -
    accessibleChildren?: boolean

    Setting to false will prevent any children inside this container to +

    false
    +
    + +
    accessibleChildren?: boolean

    Setting to false will prevent any children inside this container to be accessible. Defaults to true.

    -

    Default

    true
    -
    -
    accessibleHint?: string

    Sets the aria-label attribute of the shadow div

    -
    accessiblePointerEvents?: PointerEvents

    Specify the pointer-events the accessible div will use +

    true
    +
    + +
    accessibleHint?: string

    Sets the aria-label attribute of the shadow div

    +
    accessiblePointerEvents?: PointerEvents

    Specify the pointer-events the accessible div will use Defaults to auto.

    -

    Default

    'auto'
    -
    -
    accessibleTitle?: string

    Sets the title attribute of the shadow div -If accessibleTitle AND accessibleHint has not been this will default to 'container [tabIndex]'

    -

    Member

    accessibleType?: string

    Specify the type of div the accessible layer is. Screen readers treat the element differently +

    'auto'
    +
    + +
    accessibleTitle?: string

    Sets the title attribute of the shadow div +If accessibleTitle AND accessibleHint has not been this will default to 'container [tabIndex]'

    +
    accessibleType?: string

    Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button.

    -

    Default

    'button'
    -
    -
    allowChildren: boolean
    alphaBlendType: BLEND_MODES[] = []
    boundsArea: Rectangle

    An optional bounds area for this container. Setting this rectangle will stop the renderer +

    'button'
    +
    + +
    allowChildren: boolean
    boundsArea: Rectangle

    An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. This is great for optimisation! If for example you have a 1000 spinning particles and you know they all sit within a specific bounds, then setting it will mean the renderer will not need to measure the 1000 children to find the bounds. Instead it will just use the bounds you set.

    -
    children: Container[]

    The array of children of this container.

    -
    colorMatrixFilterCache: ColorMatrixFilter[] = []
    cullArea?: Rectangle

    If set, this shape is used for culling instead of the bounds of this object. +

    children: ContainerChild[]

    The array of children of this container.

    +
    cullArea?: Rectangle

    If set, this shape is used for culling instead of the bounds of this object. It can improve the culling performance of objects with many children. The culling area is defined in local space.

    -

    Memberof

    scene.Container#

    -
    cullable?: boolean

    Should this object be rendered if the bounds of this object are out of frame?

    +

    scene.Container#

    +
    cullable?: boolean

    Should this object be rendered if the bounds of this object are out of frame?

    Culling has no effect on whether updateTransform is called.

    -

    Default

    false
    -
    -

    Memberof

    scene.Container#

    -
    cullableChildren?: boolean

    Determines if the children to the container can be culled +

    false
    +
    + +

    scene.Container#

    +
    cullableChildren?: boolean

    Determines if the children to the container can be culled Setting this to false allows PixiJS to bypass a recursive culling function Which can help to optimize very complex scenes

    -

    Default

    true
    -
    -

    Memberof

    scene.Container#

    -
    cursor: string

    The cursor preferred when the mouse pointer is hovering over.

    -
    defaultColorFilter: Filter = ...
    depthOfChildModified: (() => void)

    Type declaration

      • (): void
      • Returns void

    destroyed: boolean

    If the object has been destroyed via destroy(). If true, it should not be used.

    -
    didChange: boolean
    didViewUpdate: boolean
    effects?: Effect[]
    eventMode: EventMode

    The mode of interaction for this object

    -
    filterArea?: Rectangle
    filters: Filter | Filter[]
    groupAlpha: number
    groupColor: number
    groupColorAlpha: number
    groupTransform: Matrix

    The group transform is a transform relative to the render group it belongs too. +

    true
    +
    + +

    scene.Container#

    +
    cursor?: string

    The cursor preferred when the mouse pointer is hovering over.

    +
    depthOfChildModified: (() => void)
    destroyed: boolean

    If the object has been destroyed via destroy(). If true, it should not be used.

    +
    effects?: Effect[]
    eventMode?: EventMode

    The mode of interaction for this object

    +
    filterArea?: Rectangle
    filters: Filter | Filter[]
    groupAlpha: number
    groupColor: number
    groupColorAlpha: number
    groupTransform: Matrix

    The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen

    -
    hitArea: IHitArea

    The hit-area specifies the area for which pointer events should be captured by this event target.

    -
    includeInBuild: boolean
    interactive: boolean

    Whether this event target should fire UI events.

    -
    interactiveChildren: boolean

    Whether this event target has any children that need UI events. This can be used optimize event propagation.

    -
    isInteractive: (() => boolean)

    Returns true if the Container has interactive 'static' or 'dynamic'

    -

    Type declaration

      • (): boolean
      • Returns boolean

    isRenderGroupRoot: boolean
    isSimple: boolean
    label: string
    liveFrame: any[] = []
    localAlpha: number
    localColor: number
    localTransform: Matrix

    Current transform of the object based on local factors: position, scale, other stuff.

    -
    mask: number | Container
    measurable: boolean
    name: string

    Deprecated

    since 8.0.0

    -

    See

    Container#label

    -
    nextFrameTime: number
    onRender: (() => void)

    Type declaration

      • (): void
      • Returns void

    onUserDataCallback: ((data) => void)

    Type declaration

      • (data): void
      • Parameters

        • data: any

        Returns void

    onclick: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'click' event

    -
    onglobalmousemove: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'globalmousemove' event

    -
    onglobalpointermove: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'globalpointermove' event

    -
    onglobaltouchmove: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'globaltouchmove' event

    -
    onmousedown: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mousedown' event

    -
    onmouseenter: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseenter' event

    -
    onmouseleave: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseleave' event

    -
    onmousemove: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mousemove' event

    -
    onmouseout: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseout' event

    -
    onmouseover: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseover' event

    -
    onmouseup: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseup' event

    -
    onmouseupoutside: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseupoutside' event

    -
    onpointercancel: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointercancel' event

    -
    onpointerdown: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerdown' event

    -
    onpointerenter: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerenter' event

    -
    onpointerleave: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerleave' event

    -
    onpointermove: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointermove' event

    -
    onpointerout: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerout' event

    -
    onpointerover: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerover' event

    -
    onpointertap: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointertap' event

    -
    onpointerup: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerup' event

    -
    onpointerupoutside: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerupoutside' event

    -
    onrightclick: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightclick' event

    -
    onrightdown: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightdown' event

    -
    onrightup: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightup' event

    -
    onrightupoutside: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightupoutside' event

    -
    ontap: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'tap' event

    -
    ontouchcancel: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchcancel' event

    -
    ontouchend: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchend' event

    -
    ontouchendoutside: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchendoutside' event

    -
    ontouchmove: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchmove' event

    -
    ontouchstart: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchstart' event

    -
    onwheel: FederatedEventHandler<FederatedWheelEvent>

    Handler for 'wheel' event

    -
    parent: Container

    The display object container that contains this display object.

    -
    parentAlpha: number = 1.0
    playDirection: number
    playEndCallback: ((player) => void)

    Type declaration

      • (player): void
      • Parameters

        Returns void

    playerLib: Player
    prevCellID: number[] = []
    prevPartObject: (SS6Player | Container | Mesh<MeshGeometry, TextureShader>)[] = []
    relativeGroupTransform: Matrix

    The relative group transform is a transform relative to the render group it belongs too. It will include all parent +

    hitArea?: IHitArea

    The hit-area specifies the area for which pointer events should be captured by this event target.

    +
    interactive?: boolean

    Whether this event target should fire UI events.

    +
    interactiveChildren?: boolean

    Whether this event target has any children that need UI events. This can be used optimize event propagation.

    +
    isInteractive: (() => boolean)

    Returns true if the Container has interactive 'static' or 'dynamic'

    +
    label: string
    localAlpha: number
    localColor: number
    localTransform: Matrix

    Current transform of the object based on local factors: position, scale, other stuff.

    +
    mask: number | Container<ContainerChild>
    name: string

    since 8.0.0

    +

    Container#label

    +
    onRender: (() => void)
    onUserDataCallback: ((data: any) => void)
    onclick?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'click' event

    +
    onglobalmousemove?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'globalmousemove' event

    +
    onglobalpointermove?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'globalpointermove' event

    +
    onglobaltouchmove?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'globaltouchmove' event

    +
    onmousedown?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mousedown' event

    +
    onmouseenter?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseenter' event

    +
    onmouseleave?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseleave' event

    +
    onmousemove?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mousemove' event

    +
    onmouseout?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseout' event

    +
    onmouseover?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseover' event

    +
    onmouseup?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseup' event

    +
    onmouseupoutside?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'mouseupoutside' event

    +
    onpointercancel?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointercancel' event

    +
    onpointerdown?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerdown' event

    +
    onpointerenter?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerenter' event

    +
    onpointerleave?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerleave' event

    +
    onpointermove?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointermove' event

    +
    onpointerout?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerout' event

    +
    onpointerover?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerover' event

    +
    onpointertap?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointertap' event

    +
    onpointerup?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerup' event

    +
    onpointerupoutside?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'pointerupoutside' event

    +
    onrightclick?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightclick' event

    +
    onrightdown?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightdown' event

    +
    onrightup?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightup' event

    +
    onrightupoutside?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'rightupoutside' event

    +
    ontap?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'tap' event

    +
    ontouchcancel?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchcancel' event

    +
    ontouchend?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchend' event

    +
    ontouchendoutside?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchendoutside' event

    +
    ontouchmove?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchmove' event

    +
    ontouchstart?: FederatedEventHandler<FederatedPointerEvent>

    Handler for 'touchstart' event

    +
    onwheel?: FederatedEventHandler<FederatedWheelEvent>

    Handler for 'wheel' event

    +
    parent: Container<ContainerChild>

    The display object container that contains this display object.

    +
    playEndCallback: ((player: SS6Player) => void)
    playerLib: Player
    relativeGroupTransform: Matrix

    The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group

    -
    relativeRenderGroupDepth: number
    renderGroup: RenderGroup
    renderPipeId: string
    skipEnabled: boolean
    sortChildren: (() => void)

    Type declaration

      • (): void
      • Returns void

    sortDirty: boolean
    sortableChildren: boolean
    ss6project: SS6Project
    substituteKeyParam: SS6PlayerInstanceKeyParam[] = []
    substituteOverWrite: boolean[] = []
    tabIndex?: number

    Default

    0
    -
    -
    uid: number
    updateInterval: number
    zIndex: number
    prefixed: string | boolean

    Accessors

    • get alpha(): number
    • The opacity of the object.

      -

      Returns number

    • set alpha(value): void
    • Parameters

      • value: number

      Returns void

    • get angle(): number
    • The angle of the object in degrees. -'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

      -

      Returns number

    • set angle(value): void
    • Parameters

      • value: number

      Returns void

    • get blendMode(): BLEND_MODES
    • The blend mode to be applied to the sprite. Apply a value of 'normal' to reset the blend mode.

      -

      Returns BLEND_MODES

      Default

      'normal'
      -
      -
    • set blendMode(value): void
    • Parameters

      • value: BLEND_MODES

      Returns void

    • get height(): number
    • The height of the Container, setting this will actually modify the scale to achieve the value set.

      -

      Returns number

      Memberof

      scene.Container#

      -
    • set height(value): void
    • Parameters

      • value: number

      Returns void

    • get isRenderGroup(): boolean
    • Returns true if this container is a render group. +

    renderPipeId: string
    skipEnabled: boolean
    sortChildren: (() => void)
    sortDirty: boolean
    sortableChildren: boolean
    tabIndex?: number
    0
    +
    + +
    zIndex: number
    prefixed: string | boolean

    Accessors

    • get alpha(): number
    • The opacity of the object.

      +

      Returns number

    • set alpha(value): void
    • Parameters

      • value: number

      Returns void

    • get angle(): number
    • The angle of the object in degrees. +'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

      +

      Returns number

    • set angle(value): void
    • Parameters

      • value: number

      Returns void

    • get blendMode(): BLEND_MODES
    • The blend mode to be applied to the sprite. Apply a value of 'normal' to reset the blend mode.

      +

      Returns BLEND_MODES

      'normal'
      +
      + +
    • set blendMode(value): void
    • Parameters

      • value: BLEND_MODES

      Returns void

    • get height(): number
    • The height of the Container, setting this will actually modify the scale to achieve the value set.

      +

      Returns number

      scene.Container#

      +
    • set height(value): void
    • Parameters

      • value: number

      Returns void

    • get isRenderGroup(): boolean
    • Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions

      -

      Returns boolean

    • set isRenderGroup(value): void
    • Parameters

      • value: boolean

      Returns void

    • get isRenderable(): boolean
    • Whether or not the object should be rendered.

      -

      Returns boolean

    • get pivot(): ObservablePoint
    • The center of rotation, scaling, and skewing for this display object in its local space. The position -is the projection of pivot in the parent's local space.

      +

      Returns boolean

    • set isRenderGroup(value): void
    • Parameters

      • value: boolean

      Returns void

    • get isRenderable(): boolean
    • Whether or not the object should be rendered.

      +

      Returns boolean

    • get pivot(): ObservablePoint
    • The center of rotation, scaling, and skewing for this display object in its local space. The position +is the projection of pivot in the parent's local space.

      By default, the pivot is the origin (0, 0).

      -

      Returns ObservablePoint

      Since

      4.0.0

      -
    • set pivot(value): void
    • Parameters

      • value: number | PointData

      Returns void

    • get position(): ObservablePoint
    • The coordinate of the object relative to the local coordinates of the parent.

      -

      Returns ObservablePoint

      Since

      4.0.0

      -
    • set position(value): void
    • Parameters

      • value: PointData

      Returns void

    • get renderable(): boolean
    • Can this object be rendered, if false the object will not be drawn but the transform will still be updated.

      -

      Returns boolean

    • set renderable(value): void
    • Parameters

      • value: boolean

      Returns void

    • get rotation(): number
    • The rotation of the object in radians. -'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

      -

      Returns number

    • set rotation(value): void
    • Parameters

      • value: number

      Returns void

    • get scale(): ObservablePoint
    • The scale factors of this object along the local coordinate axes.

      +

      Returns ObservablePoint

      4.0.0

      +
    • set pivot(value): void
    • Parameters

      • value: number | PointData

      Returns void

    • get position(): ObservablePoint
    • The coordinate of the object relative to the local coordinates of the parent.

      +

      Returns ObservablePoint

      4.0.0

      +
    • set position(value): void
    • Parameters

      • value: PointData

      Returns void

    • get renderable(): boolean
    • Can this object be rendered, if false the object will not be drawn but the transform will still be updated.

      +

      Returns boolean

    • set renderable(value): void
    • Parameters

      • value: boolean

      Returns void

    • get rotation(): number
    • The rotation of the object in radians. +'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.

      +

      Returns number

    • set rotation(value): void
    • Parameters

      • value: number

      Returns void

    • get scale(): ObservablePoint
    • The scale factors of this object along the local coordinate axes.

      The default scale is (1, 1).

      -

      Returns ObservablePoint

      Since

      4.0.0

      -
    • set scale(value): void
    • Parameters

      • value: number | PointData

      Returns void

    • get skew(): ObservablePoint
    • The skew factor for the object in radians.

      -

      Returns ObservablePoint

      Since

      4.0.0

      -
    • set skew(value): void
    • Parameters

      • value: PointData

      Returns void

    • get tint(): number
    • The tint applied to the sprite. This is a hex value.

      +

      Returns ObservablePoint

      4.0.0

      +
    • set scale(value): void
    • Parameters

      • value: number | PointData

      Returns void

    • get skew(): ObservablePoint
    • The skew factor for the object in radians.

      +

      Returns ObservablePoint

      4.0.0

      +
    • set skew(value): void
    • Parameters

      • value: PointData

      Returns void

    • get tint(): number
    • The tint applied to the sprite. This is a hex value.

      A value of 0xFFFFFF will remove any tint effect.

      -

      Returns number

      Default

      0xFFFFFF
      -
      -
    • set tint(value): void
    • Parameters

      • value: ColorSource

      Returns void

    • get visible(): boolean
    • The visibility of the object. If false the object will not be drawn, and the transform will not be updated.

      -

      Returns boolean

    • set visible(value): void
    • Parameters

      • value: boolean

      Returns void

    • get width(): number
    • The width of the Container, setting this will actually modify the scale to achieve the value set.

      -

      Returns number

      Memberof

      scene.Container#

      -
    • set width(value): void
    • Parameters

      • value: number

      Returns void

    • get worldTransform(): Matrix
    • Current transform of the object based on world (parent) factors.

      -

      Returns Matrix

    • get x(): number
    • The position of the container on the x axis relative to the local coordinates of the parent. +

      Returns number

      0xFFFFFF
      +
      + +
    • set tint(value): void
    • Parameters

      • value: ColorSource

      Returns void

    • get visible(): boolean
    • The visibility of the object. If false the object will not be drawn, and the transform will not be updated.

      +

      Returns boolean

    • set visible(value): void
    • Parameters

      • value: boolean

      Returns void

    • get width(): number
    • The width of the Container, setting this will actually modify the scale to achieve the value set.

      +

      Returns number

      scene.Container#

      +
    • set width(value): void
    • Parameters

      • value: number

      Returns void

    • get worldTransform(): Matrix
    • Current transform of the object based on world (parent) factors.

      +

      Returns Matrix

    • get x(): number
    • The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x

      -

      Returns number

    • set x(value): void
    • Parameters

      • value: number

      Returns void

    • get y(): number
    • The position of the container on the y axis relative to the local coordinates of the parent. +

      Returns number

    • set x(value): void
    • Parameters

      • value: number

      Returns void

    • get y(): number
    • The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y

      -

      Returns number

    • set y(value): void
    • Parameters

      • value: number

      Returns void

    Methods

    • 名前を指定してパーツの再生するインスタンスアニメを変更します。 +

      Returns number

    • set y(value): void
    • Parameters

      • value: number

      Returns void

    Methods

    • 名前を指定してパーツの再生するインスタンスアニメを変更します。 指定したパーツがインスタンスパーツでない場合、falseを返します. インスタンスパーツ名はディフォルトでは「ssae名:モーション名」とつけられています。 再生するアニメの名前は アニメパック名 と アニメ名 で指定してください。 @@ -364,103 +339,81 @@

      See

      Container#label

    • animeName: string

      参照するアニメ名

    • overWrite: boolean

      インスタンスキーの上書きフラグ

    • keyParam: SS6PlayerInstanceKeyParam = null

      インスタンスキー

      -

    Returns boolean

    • パーツカラーのブレンド用カラーマトリクス

      -

      Parameters

      • blendType: number

        ブレンド方法(0:mix, 1:multiply, 2:add, 3:sub)

        -
      • rate: number

        ミックス時の混色レート

        -
      • argb32: number

        パーツカラー(単色)

        -

      Returns Filter

        -
      • カラーマトリクス
      • -
      -
    • 矩形セルをメッシュ(5verts4Tri)で作成

      -

      Parameters

      • id: number

        セルID

        -

      Returns Mesh<MeshGeometry, TextureShader>

        -
      • メッシュ
      • -
      -
    • メッシュセルからメッシュを作成

      -

      Parameters

      • partID: number

        パーツID

        -
      • cellID: number

        セルID

        -

      Returns Mesh<MeshGeometry, TextureShader>

        -
      • メッシュ
      • -
      -
    • アニメーションの速度を設定する (deprecated この関数は削除される可能性があります)

      +

    Returns boolean

    • アニメーションの速度を設定する (deprecated この関数は削除される可能性があります)

      Parameters

      • fps: number

        アニメーション速度(frame per sec.)

      • _skipEnabled: boolean = true

        描画更新が間に合わないときにフレームをスキップするかどうか

        -

      Returns void

    • アニメーション再生設定

      +

    Returns void

    • アニメーション再生設定

      Parameters

      • _startframe: number = -1

        開始フレーム番号(マイナス設定でデフォルト値を変更しない)

      • _endframe: number = -1

        終了フレーム番号(マイナス設定でデフォルト値を変更しない)

      • _loops: number = -1

        ループ回数(ゼロもしくはマイナス設定で無限ループ)

        -

      Returns void

    • アニメーションの速度を設定する

      +

    Returns void

    • アニメーションの速度を設定する

      Parameters

      • fpsRate: number

        アニメーション速度(設定値に対する乗率)負数設定で逆再生

      • _skipEnabled: boolean = true

        描画更新が間に合わないときにフレームをスキップするかどうか

        -

      Returns void

    • 1フレーム分のアニメーション描画

      +

    Returns void

    • 1フレーム分のアニメーション描画

      Parameters

      • frameNumber: number

        フレーム番号

      • ds: number = 0.0

        delta step

        -

      Returns void

    • Setup

      +

    Returns void

    • パーツに割り当たるセルを変更します.

      +

      Parameters

      • partsname: string

        パーツ名

        +
      • sscename: string

        セルマップ名

        +
      • cellname: string

        表示させたいセル名

        +

      Returns void

    • ユーザーデータコールバックの設定

      +

      Parameters

      • fn: ((data: any) => void)
          • (data): void
          • Parameters

            • data: any

            Returns void

      Returns void

    • エラー処理

      +

    Returns void

    • Update is called PIXI.ticker

      +

    Returns void

    • Update is called PIXI.ticker

      Parameters

      • delta: number

        expected 1

        -
      • rewindAfterReachingEndFrame: boolean = true

      Returns void

    • Parameters

      • height: number
      • localHeight: number

      Returns void

    • Parameters

      • width: number
      • localWidth: number

      Returns void

    • Adds one or more children to the container.

      +
    • rewindAfterReachingEndFrame: boolean = true

    Returns void

    • Parameters

      • height: number
      • localHeight: number

      Returns void

    • Parameters

      • width: number
      • localWidth: number

      Returns void

    • Adds one or more children to the container.

      Multiple items can be added like so: myContainer.addChild(thingOne, thingTwo, thingThree)

      -

      Type Parameters

      • U extends Container[]

      Parameters

      • Rest ...children: U

        The Container(s) to add to the container

        +

        Type Parameters

        • U extends ContainerChild[]

        Parameters

        • Rest...children: U

          The Container(s) to add to the container

        Returns U[0]

        • The first child that was added.
        -
    • Type Parameters

      • U extends Container

      Parameters

      • child: U
      • index: number

      Returns U

    • Parameters

      • effect: Effect

      Returns void

    • Type Parameters

      • K extends (keyof FederatedEventMap) | (keyof GlobalFederatedEventMap)

      Parameters

      • type: K
      • listener: ((e) => any)
          • (e): any
          • Parameters

            • e: AllFederatedEventMap[K]

            Returns any

      • Optional options: AddListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optional options: AddListenerOptions

      Returns void

    • Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T
      • fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: ArgumentMap<ContainerEvents & AnyEvent>[Extract<T, (keyof ContainerEvents) | (keyof AnyEvent)>]

            Returns void

      • Optional context: any

      Returns this

    • Removes all internal references and listeners as well as removes children from the display list. +

    • Type Parameters

      • U extends ContainerChild

      Parameters

      • child: U
      • index: number

      Returns U

    • Parameters

      • effect: Effect

      Returns void

    • Type Parameters

      • K extends (keyof FederatedEventMap) | (keyof GlobalFederatedEventMap)

      Parameters

      • type: K
      • listener: ((e: AllFederatedEventMap[K]) => any)
          • (e): any
          • Parameters

            • e: AllFederatedEventMap[K]

            Returns any

      • Optionaloptions: AddListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: AddListenerOptions

      Returns void

    • Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T
      • fn: ((...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]) => void)
          • (...args): void
          • Parameters

            • Rest...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]

            Returns void

      • Optionalcontext: any

      Returns this

    • Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling destroy.

      -

      Parameters

      • Optional options: DestroyOptions

        Options parameter. A boolean will act as if all options - have been set to that value

        -

      Returns void

    • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

      -

      MDN Reference

      -

      Parameters

      • event: Event

      Returns boolean

    • Calls each of the listeners registered for a given event.

      -

      Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T
      • Rest ...args: ArgumentMap<ContainerEvents & AnyEvent>[Extract<T, (keyof ContainerEvents) | (keyof AnyEvent)>]

      Returns boolean

    • This enables the container to be rendered as a render group.

      -

      Returns void

    • Return an array listing the events for which the emitter has registered +

      Parameters

      • Optionaloptions: DestroyOptions

        Options parameter. A boolean will act as if all options +have been set to that value

        +

      Returns void

    • This will disable the render group for this container.

      +

      Returns void

    • Parameters

      • e: FederatedEvent<UIEvent | PixiTouch>

      Returns boolean

    • Calls each of the listeners registered for a given event.

      +

      Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T
      • Rest...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]

      Returns boolean

    • Calling this enables a render group for this container. +This means it will be rendered as a separate set of instructions. +The transform of the container will also be handled on the GPU rather than the CPU.

      +

      Returns void

    • Return an array listing the events for which the emitter has registered listeners.

      -

      Returns ((keyof ContainerEvents) | (keyof AnyEvent))[]

    • Parameters

      • Optional skipUpdate: boolean
      • Optional bounds: Bounds

      Returns Bounds

    • Type Parameters

      • U extends Container

      Parameters

      • index: number

      Returns U

    • Parameters

      • label: string | RegExp
      • Optional deep: boolean

      Returns Container

    • Parameters

      • label: string | RegExp
      • Optional deep: boolean

      Returns Container

    • Parameters

      • child: Container

      Returns number

    • Parameters

      • label: string | RegExp
      • Optional deep: boolean
      • Optional out: Container[]

      Returns Container[]

    • Parameters

      • Optional point: Point
      • Optional skipUpdate: boolean

      Returns Point

    • Parameters

      • Optional bounds: Bounds

      Returns Bounds

    • Retrieves the size of the container as a [Size]Size object. +

      Returns ((keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent))[]

    • Parameters

      • OptionalskipUpdate: boolean
      • Optionalbounds: Bounds

      Returns Bounds

    • Type Parameters

      • U extends ContainerChild

      Parameters

      • index: number

      Returns U

    • Parameters

      • label: string | RegExp
      • Optionaldeep: boolean

      Returns Container<ContainerChild>

    • Parameters

      • label: string | RegExp
      • Optionaldeep: boolean

      Returns Container<ContainerChild>

    • Parameters

      • child: ContainerChild

      Returns number

    • Parameters

      • label: string | RegExp
      • Optionaldeep: boolean
      • Optionalout: Container<ContainerChild>[]

      Returns Container<ContainerChild>[]

    • Parameters

      • Optionalpoint: Point
      • OptionalskipUpdate: boolean

      Returns Point

    • Parameters

      • Optionalbounds: Bounds

      Returns Bounds

    • Retrieves the size of the container as a [Size]Size object. This is faster than get the width and height separately.

      -

      Parameters

      • Optional out: Size

        Optional object to store the size in.

        +

        Parameters

        • Optionalout: Size

          Optional object to store the size in.

        Returns Size

        • The size of the container.
        -

        Memberof

        scene.Container#

        -
    • Return the number of listeners listening to a given event.

      -

      Parameters

      • event: (keyof ContainerEvents) | (keyof AnyEvent)

      Returns number

    • Return the listeners registered for a given event.

      -

      Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T

      Returns ((...args) => void)[]

    • Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T
      • Optional fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: ArgumentMap<ContainerEvents & AnyEvent>[Extract<T, (keyof ContainerEvents) | (keyof AnyEvent)>]

            Returns void

      • Optional context: any
      • Optional once: boolean

      Returns this

    • Add a listener for a given event.

      -

      Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T
      • fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: ArgumentMap<ContainerEvents & AnyEvent>[Extract<T, (keyof ContainerEvents) | (keyof AnyEvent)>]

            Returns void

      • Optional context: any

      Returns this

    • Add a one-time listener for a given event.

      -

      Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T
      • fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: ArgumentMap<ContainerEvents & AnyEvent>[Extract<T, (keyof ContainerEvents) | (keyof AnyEvent)>]

            Returns void

      • Optional context: any

      Returns this

    • Remove all listeners, or those of the specified event.

      -

      Parameters

      • Optional event: (keyof ContainerEvents) | (keyof AnyEvent)

      Returns this

    • Removes one or more children from the container.

      -

      Type Parameters

      • U extends Container[]

      Parameters

      • Rest ...children: U

        The Container(s) to remove

        +

        scene.Container#

        +
    • Return the number of listeners listening to a given event.

      +

      Parameters

      • event: (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Returns number

    • Return the listeners registered for a given event.

      +

      Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T

      Returns ((...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]) => void)[]

    • Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T
      • Optionalfn: ((...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]) => void)
          • (...args): void
          • Parameters

            • Rest...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]

            Returns void

      • Optionalcontext: any
      • Optionalonce: boolean

      Returns this

    • Add a listener for a given event.

      +

      Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T
      • fn: ((...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]) => void)
          • (...args): void
          • Parameters

            • Rest...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]

            Returns void

      • Optionalcontext: any

      Returns this

    • Add a one-time listener for a given event.

      +

      Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T
      • fn: ((...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]) => void)
          • (...args): void
          • Parameters

            • Rest...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]

            Returns void

      • Optionalcontext: any

      Returns this

    • Remove all listeners, or those of the specified event.

      +

      Parameters

      • Optionalevent: (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Returns this

    • Removes one or more children from the container.

      +

      Type Parameters

      • U extends ContainerChild[]

      Parameters

      • Rest...children: U

        The Container(s) to remove

      Returns U[0]

      The first child that was removed.

      -
    • Type Parameters

      • U extends Container

      Parameters

      • index: number

      Returns U

    • Parameters

      • Optional beginIndex: number
      • Optional endIndex: number

      Returns Container[]

    • Parameters

      • effect: Effect

      Returns void

    • Type Parameters

      • K extends (keyof FederatedEventMap) | (keyof GlobalFederatedEventMap)

      Parameters

      • type: K
      • listener: ((e) => any)
          • (e): any
          • Parameters

            • e: AllFederatedEventMap[K]

            Returns any

      • Optional options: RemoveListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optional options: RemoveListenerOptions

      Returns void

    • Returns void

    • Remove the listeners of a given event.

      -

      Type Parameters

      • T extends (keyof ContainerEvents) | (keyof AnyEvent)

      Parameters

      • event: T
      • Optional fn: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: ArgumentMap<ContainerEvents & AnyEvent>[Extract<T, (keyof ContainerEvents) | (keyof AnyEvent)>]

            Returns void

      • Optional context: any
      • Optional once: boolean

      Returns this

    • Parameters

      • child: Container
      • index: number

      Returns void

    • Updates the local transform using the given matrix.

      +
    • Type Parameters

      • U extends ContainerChild

      Parameters

      • index: number

      Returns U

    • Parameters

      • OptionalbeginIndex: number
      • OptionalendIndex: number

      Returns ContainerChild[]

    • Parameters

      • effect: Effect

      Returns void

    • Type Parameters

      • K extends (keyof FederatedEventMap) | (keyof GlobalFederatedEventMap)

      Parameters

      • type: K
      • listener: ((e: AllFederatedEventMap[K]) => any)
          • (e): any
          • Parameters

            • e: AllFederatedEventMap[K]

            Returns any

      • Optionaloptions: RemoveListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: RemoveListenerOptions

      Returns void

    • Returns void

    • Remove the listeners of a given event.

      +

      Type Parameters

      • T extends (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)

      Parameters

      • event: T
      • Optionalfn: ((...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]) => void)
          • (...args): void
          • Parameters

            • Rest...args: ArgumentMap<ContainerEvents<ContainerChild> & AnyEvent>[Extract<T, (keyof ContainerEvents<ContainerChild>) | (keyof AnyEvent)>]

            Returns void

      • Optionalcontext: any
      • Optionalonce: boolean

      Returns this

    • Type Parameters

      • U extends ContainerChild[]

      Parameters

      • Rest...child: U

      Returns U[0]

    • Type Parameters

      • U extends ContainerChild

      Parameters

      • child: U
      • index: number

      Returns U

    • Parameters

      • child: ContainerChild
      • index: number

      Returns void

    • Updates the local transform using the given matrix.

      Parameters

      • matrix: Matrix

        The matrix to use for updating the transform.

        -

      Returns void

    • Sets the size of the container to the specified width and height. +

    Returns void

    • Sets the size of the container to the specified width and height. This is faster than setting the width and height separately.

      Parameters

      • value: number | Optional<Size, "height">

        This can be either a number or a [Size]Size object.

        -
      • Optional height: number

        The height to set. Defaults to the value of width if not provided.

        -

      Returns void

      Memberof

      scene.Container#

      -
    • Type Parameters

      • U extends Container

      Parameters

      • child: U
      • child2: U

      Returns void

    • Type Parameters

      • P extends PointData = Point

      Parameters

      • position: PointData
      • Optional point: P
      • Optional skipUpdate: boolean

      Returns P

    • Type Parameters

      • P extends PointData = Point

      Parameters

      • position: PointData
      • Optional from: Container
      • Optional point: P
      • Optional skipUpdate: boolean

      Returns P

    • Updates the local transform.

      -

      Returns void

    • Updates the transform properties of the container (accepts partial values).

      +
    • Optionalheight: number

      The height to set. Defaults to the value of width if not provided.

      +

    Returns void

    scene.Container#

    +
    • Type Parameters

      • U extends ContainerChild

      Parameters

      • child: U
      • child2: U

      Returns void

    • Type Parameters

      • P extends PointData = Point

      Parameters

      • position: PointData
      • Optionalpoint: P
      • OptionalskipUpdate: boolean

      Returns P

    • Type Parameters

      • P extends PointData = Point

      Parameters

      • position: PointData
      • Optionalfrom: Container<ContainerChild>
      • Optionalpoint: P
      • OptionalskipUpdate: boolean

      Returns P

    • Updates the local transform.

      +

      Returns void

    • Updates the transform properties of the container (accepts partial values).

      Parameters

      • opts: Partial<UpdateTransformOptions>

        The options for updating the transform.

        -

      Returns this

    • Mixes all enumerable properties and methods from a source object to Container.

      +

    Returns this

    • Mixes all enumerable properties and methods from a source object to Container.

      Parameters

      • source: Dict<any>

        The source of properties and methods to mix in.

        -

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    diff --git a/docs/ss6player_pixi_api/classes/SS6PlayerInstanceKeyParam.html b/docs/ss6player_pixi_api/classes/SS6PlayerInstanceKeyParam.html index 607ec9e..f9ad5c1 100644 --- a/docs/ss6player_pixi_api/classes/SS6PlayerInstanceKeyParam.html +++ b/docs/ss6player_pixi_api/classes/SS6PlayerInstanceKeyParam.html @@ -1,5 +1,5 @@ -SS6PlayerInstanceKeyParam | ss6player-pixi

    Class SS6PlayerInstanceKeyParam

    インスタンス差し替え用のキーパラメーター

    -

    Constructors

    constructor +SS6PlayerInstanceKeyParam | ss6player-pixi

    Class SS6PlayerInstanceKeyParam

    インスタンス差し替え用のキーパラメーター

    +

    Constructors

    Properties

    Constructors

    Properties

    independent: boolean = false
    infinity: boolean = false
    pingpong: boolean = false
    refEndframe: number = 0
    refSpeed: number = 1.0
    refStartframe: number = 0
    refloopNum: number = 0
    reverse: boolean = false

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    independent: boolean = false
    infinity: boolean = false
    pingpong: boolean = false
    refEndframe: number = 0
    refSpeed: number = 1.0
    refStartframe: number = 0
    refloopNum: number = 0
    reverse: boolean = false
    diff --git a/docs/ss6player_pixi_api/classes/SS6Project.html b/docs/ss6player_pixi_api/classes/SS6Project.html index 480e354..49825a0 100644 --- a/docs/ss6player_pixi_api/classes/SS6Project.html +++ b/docs/ss6player_pixi_api/classes/SS6Project.html @@ -1,26 +1,19 @@ -SS6Project | ss6player-pixi

    Class SS6Project

    Constructors

    constructor +SS6Project | ss6player-pixi

    Class SS6Project

    Constructors

    • SS6Project (used for several SS6Player(s))

      +

    Constructors

    • SS6Project (used for several SS6Player(s))

      Parameters

      • ssfbPath: string

        ssfb file path

        -
      • Optional onComplete: onCompleteCallback

        result callback

        -

      Returns SS6Project

    • SS6Project (used for several SS6Player(s))

      +
    • OptionalonComplete: onCompleteCallback

      result callback

      +

    Returns SS6Project

  • SS6Project (used for several SS6Player(s))

    Parameters

    • ssfbName: string

      ssfb file name

    • bytes: Uint8Array

      ssfb file data

    • imageBinaryMap: {
          [key: string]: Uint8Array;
      }

      Image file data

      -
      • [key: string]: Uint8Array
    • Optional onComplete: onCompleteCallback

      result callback

      -

    Returns SS6Project

  • Properties

    fbObj: ProjectData
    onComplete: onCompleteCallback
    resourceLoader: SS6ProjectResourceLoader
    rootPath: string
    ssfbFile: string
    ssfbPath: string
    sspjMap: {
        [key: string]: string;
    } = {}

    Type declaration

    • [key: string]: string
    status: RESOURCE_PROGRESS

    Methods

    Generated using TypeDoc

    \ No newline at end of file +
    • [key: string]: Uint8Array
  • OptionalonComplete: onCompleteCallback

    result callback

    +
  • Returns SS6Project

    Properties

    fbObj: ProjectData
    onComplete: onCompleteCallback
    rootPath: string
    ssfbFile: string
    ssfbPath: string
    status: RESOURCE_PROGRESS

    Methods

    diff --git a/docs/ss6player_pixi_api/index.html b/docs/ss6player_pixi_api/index.html index 9669a83..800f324 100644 --- a/docs/ss6player_pixi_api/index.html +++ b/docs/ss6player_pixi_api/index.html @@ -1,30 +1,34 @@ -ss6player-pixi

    ss6player-pixi

    SS6Player for pixi.js

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションを pixi.js v8 で再生するライブラリです。

    -

    ライブラリ

    リリース最新版のライブラリソースは こちら(minified) になります。

    -

    デモ

    リリース最新版のデモは こちら になります。

    +ss6player-pixi

    ss6player-pixi

    SS6Player for pixi.js

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションを pixi.js v8 で再生するライブラリです。

    +

    リリース最新版のライブラリソースは こちら(minified) になります。

    +

    リリース最新版のデモは こちら になります。

    UI デモは こちら になります。

    -

    ライセンス

    ss6player-pixi のライセンスは LISENCE となります。

    +

    ss6player-pixi のライセンスは LISENCE となります。

    ss6player-pixi は依存ライブラリの FlatBuffersssfblibss6player-lib をバンドルしています。 -ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参照してください。

    -

    アニメーションデータの作成方法

    SpriteStudio 6 のプロジェクトファイル sspj からアニメーションデータファイル ssfb ファイルをコンバートします。 コンバートには Ss6Converter を利用します。

    +ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参照してください。

    +

    SpriteStudio 6 のプロジェクトファイル sspj からアニメーションデータファイル ssfb ファイルをコンバートします。 コンバートには Ss6Converter を利用します。

    Ss6Converter は SpriteStudio6-SDK に同封するツールです。利用方法に関してはこちらを参照してください

    -

    使い方

    API リファレンス

    ss6player-pixi の API リファレンスはこちらです。

    -

    サンプル

    Player ディレクトリの index.htmlsample.js を参考にしてください。

    -

    デモ ページを閲覧するか、あるいはローカル環境で動作確認ができます。

    -

    For Developer

    ライブラリを開発する方、あるいは開発版のライブラリの動作を確認したい方向けです。

    -

    ビルド

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    -

    全ビルド

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    -
    cd SS6PlayerForWeb
    npm i
    npm run build -
    +

    ss6player-pixi の API リファレンスはこちらです。

    +

    Player ディレクトリの index.htmlsample.js を参考にしてください。

    +

    デモ ページを閲覧するか、あるいはローカル環境で動作確認ができます。

    +

    For Developer

    ライブラリを開発する方、あるいは開発版のライブラリの動作を確認したい方向けです。

    +

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    +

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    +
    cd SS6PlayerForWeb
    npm i
    npm run build +
    +

    ビルドが成功すると ss6player-pixi.umd.jsss6player-pixi.es6.jsSS6PlayerForWeb/packages/ss6player-pixi/dist ディレクトリ以下に生成されます。

    -

    単独ビルド

    全ビルド実行後は SS6PlayerForWeb/packages/ss6player-pixi ディレクトリ上で ss6player-pixi の単独ビルドが可能になります。

    -
    cd SS6PlayerForWeb/packages/ss6player-pixi
    npm run build -
    -

    ローカル環境での動作確認

    全ビルド後、SS6PlayerForWeb/packages/ss6player-pixi/ ディレクトリ上で下記コマンドを実行してください。

    +

    全ビルド実行後は SS6PlayerForWeb/packages/ss6player-pixi ディレクトリ上で ss6player-pixi の単独ビルドが可能になります。

    +
    cd SS6PlayerForWeb/packages/ss6player-pixi
    npm run build +
    + +

    全ビルド後、SS6PlayerForWeb/packages/ss6player-pixi/ ディレクトリ上で下記コマンドを実行してください。

    ローカル環境で http サーバが起動し、ブラウザ上で Player ディレクトリのサンプルを表示します。

    -
    cd SS6PlayerForWeb/packages/ss6player-pixi
    npm run view -
    -

    単独ビルドの監視

    SS6PlayerForWeb/packages/ss6player-pixi ディレクトリ上で npm run start を実行すると、 src/ ディレクトリのソースファイルが変更されると自動的に単独ビルドが走るようになります。

    -

    ローカル環境での動作確認 と併用するとスムーズに動作確認が行なえます。

    -
    cd SS6PlayerForWeb/packages/ss6player-pixi
    npm run start -
    -

    Generated using TypeDoc

    \ No newline at end of file +
    cd SS6PlayerForWeb/packages/ss6player-pixi
    npm run view +
    + +

    SS6PlayerForWeb/packages/ss6player-pixi ディレクトリ上で npm run start を実行すると、 src/ ディレクトリのソースファイルが変更されると自動的に単独ビルドが走るようになります。

    +

    ローカル環境での動作確認 と併用するとスムーズに動作確認が行なえます。

    +
    cd SS6PlayerForWeb/packages/ss6player-pixi
    npm run start +
    + +
    diff --git a/docs/ss6player_pixi_api/media/LICENSE b/docs/ss6player_pixi_api/media/LICENSE new file mode 100644 index 0000000..3b3de2d --- /dev/null +++ b/docs/ss6player_pixi_api/media/LICENSE @@ -0,0 +1,52 @@ +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +3. Neither the name of the CRI Middleware Co., Ltd. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--------------- + +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を +満たす場合に限り、再頒布および使用が許可されます。 + +1. ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責 + 条項を含めること。 +2. バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の + 著作権表示、本条件一覧、および下記免責条項を含めること。 +3. 書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売 + 促進に、CRI Middleware Co., Ltd. の名前またはコントリビューターの名前を使用して + はならない。 + +本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供 +されており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する +適合性に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありません。 +著作権者もコントリビューターも、事由のいかんを問わず、 損害発生の原因いかんを +問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法行為 +であるかを問わず、仮にそのような損害が発生する可能性を知らされていたとしても、 +本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、使用の +喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されない) +直接損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害について、 +一切責任を負わないものとします。 diff --git a/docs/ss6player_pixi_api/media/ThirdPartyLicenses.md b/docs/ss6player_pixi_api/media/ThirdPartyLicenses.md new file mode 100644 index 0000000..c5b13ee --- /dev/null +++ b/docs/ss6player_pixi_api/media/ThirdPartyLicenses.md @@ -0,0 +1,53 @@ + +# ssfblib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | + + +# ss6player-lib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-viewer + +| Licensed Code | License Type | Licenser URL | +|----------------|----------------------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| JSZip | MIT license or the GPLv3 license | https://github.com/Stuk/jszip/blob/main/LICENSE.markdown | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-pixi | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi6 + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-rpgmakermz + +| Licensed Code | License Type | Licenser URL | +|------------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player6-pixi6 | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | diff --git a/docs/ss6player_pixi_api/media/index.html b/docs/ss6player_pixi_api/media/index.html new file mode 100644 index 0000000..e188750 --- /dev/null +++ b/docs/ss6player_pixi_api/media/index.html @@ -0,0 +1,15 @@ + + + + +SpriteStudio6 Web Player + + + + + + + + + + diff --git a/docs/ss6player_pixi_api/media/sample.js b/docs/ss6player_pixi_api/media/sample.js new file mode 100644 index 0000000..86b0558 --- /dev/null +++ b/docs/ss6player_pixi_api/media/sample.js @@ -0,0 +1,136 @@ +//----------------------------------------------------------- +// SS6Player For Web +// +// Copyright(C) CRI Middleware Co., Ltd. +// http://www.webtech.co.jp/ +//----------------------------------------------------------- + +//SpriteStudioのアニメーションを再生するサンプルです。 +//アニメーションデータ(.ssfb)はSptiteStudioSDKに含まれる +//Ss6Converterで作成します。詳細は以下のURLを参照してください。 +//https://github.com/SpriteStudio/SpriteStudio6-SDK + +// Test data switcher +//const testVersion = "sampleAnimation1"; +//const testVersion = "sampleAnimation2"; +const testVersion = "sampleAnimation3"; +//const testVersion = "sampleReplaceTexture"; + +(async () => { + PIXI.sayHello(); + + // Initialize PIXI Application + // (通常のPIXI.jsアプリケーションの初期化手順) + const app = new PIXI.Application(); + await app.init({ + preference: 'webgpu', + width: 1280, + height: 720, + backgroundColor: 0x606060 + }); + + document.body.appendChild(app.canvas); + + const ssfbMap = { + "sampleAnimation1": { + "ssfbFile": "../../../TestData/character_sample1/character_sample1.ssfb", + "func": Play_sampleAnimation1 + }, + + "sampleAnimation2": { + "ssfbFile": "../../../TestData/AnimeMaking/AnimeMaking.ssfb", + "func": Play_sampleAnimation2 + }, + + "sampleAnimation3": { + "ssfbFile": "../../../TestData/MeshBone/Knight.ssfb", + "func": Play_sampleAnimation3 + }, + + "sampleReplaceTexture": { + "ssfbFile": "../../../TestData/MeshBone/Knight.ssfb", + "func": Play_sampleReplaceTexture + } + }; + + const mySS6Project = new ss6PlayerPixi.SS6Project(ssfbMap[testVersion]["ssfbFile"], function () { + ssfbMap[testVersion]["func"](); + }); + +// プレイヤーの使用方法サンプル + function Play_sampleAnimation1() { + { + let mySS6Player = new ss6PlayerPixi.SS6Player(mySS6Project); + mySS6Player.Setup("character_template_3head", "attack1"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + app.stage.addChild(mySS6Player); + + // [任意]ユーザーデータコールバック + // ※Play前に設定しないと開始フレームのデータが漏れるので注意 + mySS6Player.SetUserDataCalback(function (userDataArray) { + // console.log(userDataArray); + }); + + // [任意]再生速度(SS設定値への乗率、負設定で逆再生)とフレームスキップの可否(初期値はfalse)を設定 + // フレームスキップ:trueで処理落ちでフレームスキップ、falseで処理落ちでもフレームスキップしない + // mySS6Player.SetAnimationSpeed(-1, true); + + // [任意]始点フレーム番号、終点フレーム番号、ループ回数(0以下で無限ループ) + // 同時に初期フレームを始点(再生速度がマイナスの場合は終点)フレーム番号に設定 + // mySS6Player.SetAnimationSection(0, 10, -1); + + // 再生開始 + mySS6Player.Play(); + } + } + +// プレイヤーの使用方法サンプル + function Play_sampleAnimation2() { + { + let mySS6Player = new ss6PlayerPixi.SS6Player(mySS6Project); + mySS6Player.Setup("AnimeMaking", "06_pose"); + mySS6Player.position = new PIXI.Point(240, 320); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } + /* + { + let mySS6Player = new SS6Player(mySS6Project, "AnimeMaking", "04_pose"); + mySS6Player.position = new PIXI.Point(480, 320); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } + */ + } + + // プレイヤーの使用方法サンプル + function Play_sampleAnimation3() { + { + let mySS6Player = new ss6PlayerPixi.SS6Player(mySS6Project); + mySS6Player.Setup("Knight_bomb", "Balloon"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } + } + + function Play_sampleReplaceTexture() { + let mySS6Player = new ss6PlayerPixi.SS6Player(mySS6Project); + mySS6Player.Setup("Knight_bomb", "Balloon"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + mySS6Player.SetPartCell('Head', 'Effect', 'Flame'); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } +})(); diff --git a/docs/ss6player_pixi_api/modules.html b/docs/ss6player_pixi_api/modules.html index d3fda68..3700f49 100644 --- a/docs/ss6player_pixi_api/modules.html +++ b/docs/ss6player_pixi_api/modules.html @@ -1,4 +1,4 @@ -ss6player-pixi

    ss6player-pixi

    Index

    Classes

    SS6Player +ss6player-pixi

    ss6player-pixi

    Index

    Classes

    Generated using TypeDoc

    \ No newline at end of file +
    diff --git a/docs/ss6player_viewer_api/assets/icons.js b/docs/ss6player_viewer_api/assets/icons.js index b79c9e8..e88e8ca 100644 --- a/docs/ss6player_viewer_api/assets/icons.js +++ b/docs/ss6player_viewer_api/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `""`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/ss6player_viewer_api/assets/icons.svg b/docs/ss6player_viewer_api/assets/icons.svg index 7dead61..e371b8b 100644 --- a/docs/ss6player_viewer_api/assets/icons.svg +++ b/docs/ss6player_viewer_api/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/ss6player_viewer_api/assets/main.js b/docs/ss6player_viewer_api/assets/main.js index 1daeb69..3572881 100644 --- a/docs/ss6player_viewer_api/assets/main.js +++ b/docs/ss6player_viewer_api/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.scrollToHash(),this.updateIndexVisibility())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.scrollToHash(),this.updateIndexVisibility())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/ss6player_viewer_api/assets/search.js b/docs/ss6player_viewer_api/assets/search.js index fc4f135..d5af474 100644 --- a/docs/ss6player_viewer_api/assets/search.js +++ b/docs/ss6player_viewer_api/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WaW3PbthLHvwv7qqjGTb68dZKm7UzPaaY5l4eMJ8OKkM1GIjkk5STH4+9+sKAk7lILkkbiF2tk/XcX2B+wAAE+JnX5uUluPjwmn/IiS26EvFokRbqzyU3ybpt+tXWySPb11n1db9Omsc2P3b+X9+1u6347/Nf9njwtjl6MkCcv67Jo2nq/bstRVz9QHXK7SKq0tkXbt6gPJC6kPkWq6vJvu27fpG06GonqYiKVxetyV21ta0cDEdnMOCtj1OoU6OPH9ms1N8iyU78SE9GWqF2BDqZFvrPv0vWnf6TVaPSBsA/bNtmrvHlV1flD6vv/HbuMgy5P+tEuk3YGOp0Xm7zI269vt+ndaPyBcCZZeaH7uXVn25/m5vhc+1JjaRBpOfj+SpyG2OQYm3AVnMP5l/ynqtrm67TNy2J8Hp9pY+byOi0e0ua/edbej9cnoouP9KvN7+7bGaFOwphYuzR3k7xo3cd4Cf9hqIyJ1tov7b628wIy4qhs7mvQnQbVeEbPxVGlajiHXz+nEbz+G/s+PU0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XFTlld26xLhHotunp/8Dg5ETb6ExAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WabXObOBDHvwt967rWA46Td532eteZe+hc7uFFJtOhoCRcMTCA0/Yy+e4ngTG7aAFFvbypa2f3v9Ly00pCegiq4ksdXFw9BJ/TPAkuGN+tgjzaq+Ai+JBF31QVrIJDlemvcRbVtapfdT+v75p9pv92/FX/PXhc9Soh4yeVuMjrpjrETTEr9QLbAdlVUEaVypuhRUMgtuHyFKmsin9U3LyNmmg2ErbziVTkb4p9malGzQZCZo5xtmEotqdAHz8230rXIOuT9VysNWjVRPfS/CbN0+bbuyy6nY09MnTsIt/IAbJb1bzO0736EMWff4nK2XC27XMldRRpPfr+kh1z/ZJtltK9IDUJc/o1fV2WWRpHTVrk80Bbtj5Qx1F+H9V/p0lzNz9QkZ1/pJ9UenvXOIQ6GfrE2kep5j1v9Md8LXsxtvSJ1qivzaFSbgEJY88R9OZQGdMTV0tsE/bfH3mZU9rerwD/WavKVPA3UZZ9Wuoyaf58BXkcrC8W2+XSbLVzqjxohx/yxKn3tu1zdX0Uqe/3bqnf4xZOP/UyiRrl+szHxs/4xFGovt/S4XnjNk523DhcNsb0LspvXTMw7fV8qZiI2eeEL+dkqtXTVehdpf9rho3DCmJk61P3zJpnYV2UPmG+Gvfmj6dMIrS9T+SsiJLL+ubTbDhg5B+j/Dy/rIRWvlHcZqSxpU80U7wWq6KvdnSoF0ru0cJHvW6K+eFyNPDRrlR92M83/WTio78v7tWHok4XH/HI0CfWv0Wxn41xNPDVfj/fg5OJr/5vh/lyNdh4UfQlbeK7H6s0eZvWi4OBsvaKeqzk88EGI58YuS6sy0GgldcYr9T9chRo5Rply5mUYLRHlUvOoJlfJJUny3GAkV+UpmiibDkOMvOLdFPWsyG6v3tqm5b9Wszrn2z8YqS1sUjzhZc5wMo7jp6NHOKcrDxH/mnKviyVSpZKgGXtX+V+LpZmTGj23b1T8eL0Rtt7Rj6Ub9VNdMgap5l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SLUCu3fpIKLbdTqImGrVWAiL0GHi6epsC1F4O2uusONU+BtrHndWON1ri4SRyUOTgaXO3p91fL7tpr5cNUiHInaNQisY1A/xyt2eb1mX/1hI8RZBzeeaq079lBTpgXEs3es3JJcktB9zynbNW3R7qAhnQJO7epLo7tgU6IEXcLUXmIhaJEAMIMbf6Z07/ytO7SdAswLdw49uc89i1FExJwq20F7pz/a1QIAR0HGUMSLW5JxG39yTi0+0OkDFQ6rlbxor80N5JIeVAkWWuvT3UqjIVhhQE6WNuY/l44A0eJSgHwm2WNhcmI3hhclADCXMbPN0ZJmgO6BJ3y5GR0BM1mSDQOeY2fMrjte1BBAwbx/xU6t5GHTRFuuq0N62T9qY1SBHIkJNOf1MASIDnJNxEajVMy3V/UgJqMJxV3LqHFLuzJaAHRrR0Q6lWRIGBhcFZRg/h7mSEqn0SjOLQrShAydoctlTdYQsQBQ8kdHwg5qTZ7jBonXRsXXtNBcABJISjRHtud1ulSdJfSwBNAsAKt0HY6WUFbpiEGxi32jC3pGJwO+CW8/Y03M45mA2l2/TTXXkBOQdLKuG2pDISKSJTgEol3KYDI1Ic0OpOgLQIh6WL3nyWaakynV6977x+fPwPU47jOBYzAAA="; \ No newline at end of file diff --git a/docs/ss6player_viewer_api/assets/style.css b/docs/ss6player_viewer_api/assets/style.css index 072daed..9d619a6 100644 --- a/docs/ss6player_viewer_api/assets/style.css +++ b/docs/ss6player_viewer_api/assets/style.css @@ -10,6 +10,7 @@ --light-color-text: #222; --light-color-text-aside: #6e6e6e; --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -35,6 +36,7 @@ --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -50,6 +52,7 @@ --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -75,6 +78,7 @@ --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; @@ -92,6 +96,7 @@ --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -116,6 +121,7 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -134,6 +140,7 @@ --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -158,6 +165,7 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); @@ -183,6 +191,7 @@ body { --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -207,6 +216,7 @@ body { --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -223,6 +233,7 @@ body { --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -247,11 +258,17 @@ body { --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + .always-visible, .always-visible .tsd-signatures { display: inherit !important; @@ -266,16 +283,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +313,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -327,17 +330,14 @@ dd { } /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +footer > p { + margin: 0 1em; } .container-main { @@ -424,6 +424,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -583,13 +586,13 @@ dl.tsd-comment-tag-group p { } .tsd-filter-input { display: flex; - width: fit-content; width: -moz-fit-content; + width: fit-content; align-items: center; - user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } .tsd-filter-input input[type="checkbox"] { @@ -612,11 +615,8 @@ dl.tsd-comment-tag-group p { Don't remove unless you know what you're doing. */ opacity: 0.99; } -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); } .tsd-checkbox-background { fill: var(--color-accent); @@ -633,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { stroke: var(--color-accent); } -.tsd-theme-toggle { - padding-top: 0.75rem; +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; } -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; } .tsd-hierarchy { @@ -772,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } +.tsd-navigation .tsd-nav-link { + display: none; +} .tsd-nested-navigation { margin-left: 3rem; } @@ -785,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.5rem; } +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; +} .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -815,10 +832,10 @@ a.tsd-index-link { } .tsd-accordion-summary, .tsd-accordion-summary a { - user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } @@ -831,8 +848,9 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { +.tsd-accordion .tsd-accordion-summary > svg { margin-left: 0.25rem; + vertical-align: text-top; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -880,7 +898,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -888,6 +906,9 @@ a.tsd-index-link { .tsd-panel-group.tsd-index-group details { margin: 2rem 0; } +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} #tsd-search { transition: background-color 0.2s; @@ -1037,6 +1058,12 @@ a.tsd-index-link { border-width: 1px 0; transition: background-color 0.1s; } +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} .tsd-description .tsd-signatures .tsd-signature { border-width: 1px; } @@ -1350,6 +1377,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ diff --git a/docs/ss6player_viewer_api/classes/Player.html b/docs/ss6player_viewer_api/classes/Player.html index 8dcce05..ed998d3 100644 --- a/docs/ss6player_viewer_api/classes/Player.html +++ b/docs/ss6player_viewer_api/classes/Player.html @@ -1,10 +1,6 @@ -Player | ss6player-viewer

    Constructors

    Properties

    animePackMap -canvasHeight +Player | ss6player-viewer

    Constructors

    Properties

    animePackMap: {
        [key: string]: any;
    } = null

    Type declaration

    • [key: string]: any
    canvasHeight: number = null
    canvasWidth: number = null
    currentAnimation: any = null
    currentAnimePack: any = null
    frameDataMap: any = null
    infinityFlag: boolean = true
    mainContainer: MainContainer = null
    onComplete: (() => void)

    Type declaration

      • (): void
      • Returns void

    onPlayStateChangeCallback: ((isPlaying, isPausing) => void) = null

    Type declaration

      • (isPlaying, isPausing): void
      • Parameters

        • isPlaying: boolean
        • isPausing: boolean

        Returns void

    onUpdateCallback: ((player) => void) = null

    Type declaration

      • (player): void
      • Parameters

        • player: AnimationContainer

        Returns void

    onUserDataCallback: ((data) => void) = null

    Type declaration

      • (data): void
      • Parameters

        • data: any

        Returns void

    pixiApplication: Application<Renderer> = null
    playEndCallback: ((player) => void) = null

    Type declaration

      • (player): void
      • Parameters

        • player: AnimationContainer

        Returns void

    projectData: SS6Project
    textureContainer: AnimationContainer = null

    Accessors

    Methods

    • Returns {
          [key: string]: any;
      }

      • [key: string]: any
    • Returns any

    • Returns any

    • Returns any

    • Returns AnimationContainer

    • Parameters

      • canvasWrapperElement: any

      Returns Promise<void>

    • アニメーションを再生する

      +

    Constructors

    Properties

    canvasHeight: number = null
    canvasWidth: number = null
    infinityFlag: boolean = true
    mainContainer: MainContainer = null
    onComplete: (() => void)
    onPlayStateChangeCallback: ((isPlaying: boolean, isPausing: boolean) => void) = null
    onUpdateCallback: ((player: AnimationContainer) => void) = null
    onUserDataCallback: ((data: any) => void) = null
    pixiApplication: Application<Renderer> = null
    playEndCallback: ((player: AnimationContainer) => void) = null
    projectData: SS6Project
    textureContainer: AnimationContainer = null

    Accessors

    Methods

    • Returns {
          [key: string]: any;
      }

      • [key: string]: any
    • Returns any

    • Returns any

    • Returns any

    • Returns AnimationContainer

    • Parameters

      • canvasWrapperElement: any
      • Optionaloptions: Partial<ApplicationOptions>

      Returns Promise<void>

    • アニメーションを再生する

      Parameters

      • animePackName: string

        アニメパック名

      • animeName: string

        アニメーション名

        -

      Returns void

    • Download ssfb file and dependencies image files, and load.

      -

      Parameters

      • url: string

      Returns void

    • Download sspkg file, decompress sspkg and load.

      -

      Parameters

      • url: string

      Returns void

    • Parameters

      • movementX: number
      • movementY: number

      Returns void

    • Parameters

      • _startframe: number = -1
      • _endframe: number = -1
      • _loops: number = -1

      Returns void

    • Parameters

      • value: number

      Returns void

    • Parameters

      • frameNumber: any

      Returns void

    • デフォルトのポジションを設定する

      -

      Returns void

    • デフォルトのスケール率を設定

      -

      Returns void

    • Parameters

      • ss6Project: SS6Project

      Returns void

    • Parameters

      • isInfinity: boolean

      Returns void

    • Parameters

      • zoomPercent: number

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    • Download ssfb file and dependencies image files, and load.

      +

      Parameters

      • url: string

      Returns void

    • Download sspkg file, decompress sspkg and load.

      +

      Parameters

      • url: string

      Returns void

    • Parameters

      • movementX: number
      • movementY: number

      Returns void

    • Parameters

      • _startframe: number = -1
      • _endframe: number = -1
      • _loops: number = -1

      Returns void

    • Parameters

      • value: number

      Returns void

    • Parameters

      • frameNumber: any

      Returns void

    • デフォルトのポジションを設定する

      +

      Returns void

    • デフォルトのスケール率を設定

      +

      Returns void

    • Parameters

      • isInfinity: boolean

      Returns void

    • Parameters

      • zoomPercent: number

      Returns void

    diff --git a/docs/ss6player_viewer_api/index.html b/docs/ss6player_viewer_api/index.html index 562cdfe..fdb193c 100644 --- a/docs/ss6player_viewer_api/index.html +++ b/docs/ss6player_viewer_api/index.html @@ -1,29 +1,33 @@ -ss6player-viewer

    ss6player-viewer

    SS6Player for Viewer

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションを Web 上で再生するプラグインです。

    -

    ライブラリ

    リリース最新版のライブラリソースは こちら(minified) になります。

    -

    デモ

    リリース最新版のデモは こちら になります。

    -

    ライセンス

    ss6player-viewer のライセンスは LISENCE となります。

    +ss6player-viewer

    ss6player-viewer

    SS6Player for Viewer

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションを Web 上で再生するプラグインです。

    +

    リリース最新版のライブラリソースは こちら(minified) になります。

    +

    リリース最新版のデモは こちら になります。

    +

    ss6player-viewer のライセンスは LISENCE となります。

    ss6player-viewer は依存ライブラリの FlatBuffersssfblibss6player-libss6player-pixiJSZip をバンドルしています。 -ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参照してください。

    -

    アニメーションデータの作成方法

    SpriteStudio 6 のプロジェクトファイル sspj からアニメーションデータファイル ssfb ファイルをコンバートします。 コンバートには Ss6Converter を利用します。

    +ForWeb のコンポーネントが依存しているサードパーティライブラリのライセンスは ThirdPartyLicenses.md を参照してください。

    +

    SpriteStudio 6 のプロジェクトファイル sspj からアニメーションデータファイル ssfb ファイルをコンバートします。 コンバートには Ss6Converter を利用します。

    Ss6Converter は SpriteStudio6-SDK に同封するツールです。利用方法に関してはこちらを参照してください

    -

    使い方

    API リファレンス

    ss6player-viewer の API リファレンスはこちらです。

    -

    サンプル

    Player ディレクトリの player.html を参考にしてください。

    -

    デモ ページを閲覧するか、あるいはローカル環境で動作確認ができます。

    -

    For Plugin Developer

    ライブラリを開発する方、あるいは開発版のライブラリの動作を確認したい方向けです。

    -

    ビルド

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    -

    全ビルド

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    -
    cd SS6PlayerForWeb
    npm i
    npm run build -
    +

    ss6player-viewer の API リファレンスはこちらです。

    +

    Player ディレクトリの player.html を参考にしてください。

    +

    デモ ページを閲覧するか、あるいはローカル環境で動作確認ができます。

    +

    For Plugin Developer

    ライブラリを開発する方、あるいは開発版のライブラリの動作を確認したい方向けです。

    +

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    +

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    +
    cd SS6PlayerForWeb
    npm i
    npm run build +
    +

    ビルドが成功すると ss6player-viewer.umd.jsss6player-viewer.min.jsss6player-viewer.es6.jsSS6PlayerForWeb/packages/ss6player-viewer/dist ディレクトリ以下に生成されます。

    -

    単独ビルド

    全ビルド実行後は SS6PlayerForWeb/packages/ss6player-viewer ディレクトリ上で ss6player-viewer の単独ビルドが可能になります。

    -
    cd SS6PlayerForWeb/packages/ss6player-viewer
    npm run build -
    -

    ローカル環境での動作確認

    全ビルド後、SS6PlayerForWeb/packages/ss6player-viewer/ ディレクトリ上で下記コマンドを実行してください。

    +

    全ビルド実行後は SS6PlayerForWeb/packages/ss6player-viewer ディレクトリ上で ss6player-viewer の単独ビルドが可能になります。

    +
    cd SS6PlayerForWeb/packages/ss6player-viewer
    npm run build +
    + +

    全ビルド後、SS6PlayerForWeb/packages/ss6player-viewer/ ディレクトリ上で下記コマンドを実行してください。

    ローカル環境で http サーバが起動し、ブラウザ上で Player ディレクトリのサンプルを表示します。

    -
    cd SS6PlayerForWeb/packages/ss6player-viewer
    npm run view -
    -

    単独ビルドの監視

    SS6PlayerForWeb/packages/ss6player-viewer ディレクトリ上で npm run start を実行すると、 src/ ディレクトリのソースファイルが変更されると自動的に単独ビルドが走るようになります。

    -

    ローカル環境での動作確認 と併用するとスムーズに動作確認が行なえます。

    -
    cd SS6PlayerForWeb/packages/ss6player-viewer
    npm run start -
    -

    Generated using TypeDoc

    \ No newline at end of file +
    cd SS6PlayerForWeb/packages/ss6player-viewer
    npm run view +
    + +

    SS6PlayerForWeb/packages/ss6player-viewer ディレクトリ上で npm run start を実行すると、 src/ ディレクトリのソースファイルが変更されると自動的に単独ビルドが走るようになります。

    +

    ローカル環境での動作確認 と併用するとスムーズに動作確認が行なえます。

    +
    cd SS6PlayerForWeb/packages/ss6player-viewer
    npm run start +
    + +
    diff --git a/docs/ss6player_viewer_api/media/LICENSE b/docs/ss6player_viewer_api/media/LICENSE new file mode 100644 index 0000000..3b3de2d --- /dev/null +++ b/docs/ss6player_viewer_api/media/LICENSE @@ -0,0 +1,52 @@ +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +3. Neither the name of the CRI Middleware Co., Ltd. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--------------- + +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を +満たす場合に限り、再頒布および使用が許可されます。 + +1. ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責 + 条項を含めること。 +2. バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の + 著作権表示、本条件一覧、および下記免責条項を含めること。 +3. 書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売 + 促進に、CRI Middleware Co., Ltd. の名前またはコントリビューターの名前を使用して + はならない。 + +本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供 +されており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する +適合性に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありません。 +著作権者もコントリビューターも、事由のいかんを問わず、 損害発生の原因いかんを +問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法行為 +であるかを問わず、仮にそのような損害が発生する可能性を知らされていたとしても、 +本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、使用の +喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されない) +直接損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害について、 +一切責任を負わないものとします。 diff --git a/docs/ss6player_viewer_api/media/ThirdPartyLicenses.md b/docs/ss6player_viewer_api/media/ThirdPartyLicenses.md new file mode 100644 index 0000000..c5b13ee --- /dev/null +++ b/docs/ss6player_viewer_api/media/ThirdPartyLicenses.md @@ -0,0 +1,53 @@ + +# ssfblib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | + + +# ss6player-lib + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-viewer + +| Licensed Code | License Type | Licenser URL | +|----------------|----------------------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| JSZip | MIT license or the GPLv3 license | https://github.com/Stuk/jszip/blob/main/LICENSE.markdown | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-pixi | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-pixi6 + +| Licensed Code | License Type | Licenser URL | +|---------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | + + +# ss6player-rpgmakermz + +| Licensed Code | License Type | Licenser URL | +|------------------|---------------------|---------------------------------------------------------------------| +| FlatBuffers | Apache License v2.0 | https://github.com/google/flatbuffers/blob/master/LICENSE.txt | +| ssfblib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player-lib | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | +| ss6player6-pixi6 | original | https://github.com/SpriteStudio/SS6PlayerForWeb/blob/master/LICENSE | diff --git a/docs/ss6player_viewer_api/media/player.html b/docs/ss6player_viewer_api/media/player.html new file mode 100644 index 0000000..09c7b70 --- /dev/null +++ b/docs/ss6player_viewer_api/media/player.html @@ -0,0 +1,577 @@ + + + + + + + + SpriteStudio Web Player + + + + + + + + + + + + + + + +
    +
    +
    + +
    +
    + + + + + + + + + + +
    +
    +
    +
    +
    +
    + +
    + + +
    + + +
    +
    + + +
    + + / + + +
    + +
    + + +
    +
    +
    + +
    + + + + + + + + + + + +
    フレームラベル名ユーザーデータ
    + +
    + +
    + + +
    + + + + + diff --git a/docs/ss6player_viewer_api/modules.html b/docs/ss6player_viewer_api/modules.html index 3193449..0b24ac6 100644 --- a/docs/ss6player_viewer_api/modules.html +++ b/docs/ss6player_viewer_api/modules.html @@ -1,2 +1,2 @@ -ss6player-viewer

    ss6player-viewer

    Index

    Classes

    Generated using TypeDoc

    \ No newline at end of file +ss6player-viewer

    ss6player-viewer

    Index

    Classes

    diff --git a/docs/ssfblib_api/assets/icons.js b/docs/ssfblib_api/assets/icons.js index b79c9e8..e88e8ca 100644 --- a/docs/ssfblib_api/assets/icons.js +++ b/docs/ssfblib_api/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `""`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/ssfblib_api/assets/icons.svg b/docs/ssfblib_api/assets/icons.svg index 7dead61..e371b8b 100644 --- a/docs/ssfblib_api/assets/icons.svg +++ b/docs/ssfblib_api/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/ssfblib_api/assets/main.js b/docs/ssfblib_api/assets/main.js index 1daeb69..3572881 100644 --- a/docs/ssfblib_api/assets/main.js +++ b/docs/ssfblib_api/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.scrollToHash(),this.updateIndexVisibility())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.scrollToHash(),this.updateIndexVisibility())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/ssfblib_api/assets/search.js b/docs/ssfblib_api/assets/search.js index 9274d88..6c55a65 100644 --- a/docs/ssfblib_api/assets/search.js +++ b/docs/ssfblib_api/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72dW5MbN5Ko/4v0qvAhrkX6TbblHZ2VJYUka8fjmFBQ3WyJaza7g5eWPRPz308VwCITWZm4VfV5mWmLQGYWEpUAPiRQ/36yu/u2f/L97/9+8sd6e/3keyHnz55sl7erJ98/+fWw3uyfPHty3G3a/7raLPf71f7/uH/97uvhdtP+dPrH9ucn/3nWy5AzfRHyZXV4u7v739XV4aflYRmR9nRQEgh/9uR+uVttD2erLtqMkGdlV3fb/WF3vDrc7WKawmJ5amDDPN+ub5eH9d2WfKTg16KGend3d3i+L5X+lK1JP1lYirfm/fpfq7e71c36z9V1vWVpKSOs3B+Wu0OxVWStEVYsr69fd39lqL4UHafvp9XN8rihXylabVhjhPar3Wp5WAFxH1fk+0aYwVcd2weqzGFrjvPNz7v2zwLPwPKj/XI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BXXcMNNMvOiE613R07N3e78APocIDU7OGL8IMxcPOtYacdw28XNsFSgwtD5IcL4RaNZNc6YW+FpEH0N0E1feJRw7KHsOPCq1xFfwdR03+0o6GnIv989uR+fd+uybdtvd//+Z///D9klD2kr5UCAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72dbZfbNpLvv4v9NidXeJbmnZNJdnw3T8dJvDs7Z46P3K22tZHVfdTqTrJz9rtfERClQvEPskDS981MxwKqimSxANSvAP7rxeH+98cXf/nHv178tt3fvviL0ssvXuzXnzYv/vLi1+N29/jiixdPh93pv25268fHzeP/if/65cfjp93pp/M/nn5+8b9ftDL0wl6FfNgcfzrc//fm5vjX9XHdI+1lpyUR/sWLh/Vhsz9erLpqc0pflN3c7x+Ph6eb4/2hT1PeTKaG3phX++2n9XF7v4eXlP1adaPe3N8fXz3WSn9Z7ImvLG9Vtubn7f9sfjps7rZ/bG7HWzYsZYKVj8f14VhtFew1wYr17e0PzV8C1dem0/T9dXO3ftrhVwqrzXtM0H5z2KyPGyLu7Qa+b8CMctepPjDKnGLPac/m28Ppz4onQ9tPfi4XYbVPpdtx6jMZYUqh37Tn8evj5lDxOEjzyU+jlVX7MDr9pj6LekNwt2lP4rv1+82u4lHQ9pOfxUVY7cPodpz6NEaYUug37Xl8v3n8+Ni0+fVZ+ETyHpOfCRFX+1RQ16nPZZQ5xZ4zPZvX+9vtzaY7Dx94QNdu8z2ls8zRj4r3n+15VRvW333ak/v5MohJH1reY5r2b/a3Vbpp+2maf7k/rndVuvMeE2ddD1KtqeUMI9kPT59qBrLUfJrer9f75/Vjs6b6D6HqvMdc2v9Wrf1vM2n/6fn++J9V2tsec2n/e7X2v0/TvtnfVq9xQZ/J40C1EbhbnR3S9A5SL0jzlNSqhbYXve/fS9TFVpO0vHu4FwWxS8sJj/Tdu+1+e5Rou7ScoG0vzI/sJydHbusyI7dzpUWIoO82+w/Hj5XaL50m2HBXk3m4myftcBEjv+pulwn6nypW90+z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cIF20UYPPKfjrDCPeFRYN+J/7REVZijvMhEB/7Tl7H9xlloB6IgRMxJQ995/9n3eyoeeam+n54LVGPk8Hn/NKkvrAEmkrs7BailNS9m/2n/1Fels4VLGVthvwF1hRr/7zsrOfvAWKXIHJNmp6vJJW2Lhy5TEumls49GZE/5Fd25JixSz0WCW0gX0RVPpReHUzuls0IqlDNxuuyteTqC85azo/BGSIbHLdMisoohGO8QoWBReOLnRRrYEUITdTWjY+msZernSrhVNQksZCNpnakTlixGgeWTlqn/CPFRlFg+FoNue5AukqlEvAmF7kus8ca+TSf0AA/hdwQzmeCRZ/irQiI8Z5hSUeFWt/Sg89BIxcjj2BFuDaAldV7Lnu5x8wfD99m3EoVC7o/rHRicaFmX7IZ3PxJKA137TTUn3C/3lH/ynu4/0sI05FP+vXs6D9JCXvD0rinVybNM9CZLLXkXM3A5F6ZBVjjvbV+QfKgiSQLZk+o9zJ3WlV0Leurs6+6oo8OzsOawFQbeFppSrROGgqClc+8gHD17DoSnZ9ebyx2ss7N7Jjw96Lr9XnQQ7hDrC9Z0F6K7WCsbAy8BmyeDHJ3jBeFe66fjNq9wIiOeLJjxE7iyBIrwjX9+B+Eeraxz0ujx3N1RRvNYXpjVQVWHlhJUL9yK//TchDOW/aUFBcJtH0kOy6jSWb2wnPDpGd1rRdMpSljb+vQMWAmFRUpYWXQWlF8cHeuVcAR7ZiMYnaELt1U8sxGMVkwJh4xnMIJlBbBCS9AIRsG58Kyl583hkb9alCI5Yc7rJOc0/elUgFla/uCFs+SzrHi+7N394VN+s+jwKtwmnH/AmhZSBOF08/ftLSu0CtmiWRaefz+sH7qnzVEnEq7o87eKZgFVewZzaEuJgzAvmL9g9IM8qj3FN7Sf+A2SKeg/v3jxsH3Y7Lb7k5R//PN///f/AQQfK3WY7gIA"; \ No newline at end of file diff --git a/docs/ssfblib_api/assets/style.css b/docs/ssfblib_api/assets/style.css index 072daed..9d619a6 100644 --- a/docs/ssfblib_api/assets/style.css +++ b/docs/ssfblib_api/assets/style.css @@ -10,6 +10,7 @@ --light-color-text: #222; --light-color-text-aside: #6e6e6e; --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -35,6 +36,7 @@ --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -50,6 +52,7 @@ --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -75,6 +78,7 @@ --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; @@ -92,6 +96,7 @@ --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -116,6 +121,7 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -134,6 +140,7 @@ --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -158,6 +165,7 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); @@ -183,6 +191,7 @@ body { --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -207,6 +216,7 @@ body { --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -223,6 +233,7 @@ body { --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -247,11 +258,17 @@ body { --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + .always-visible, .always-visible .tsd-signatures { display: inherit !important; @@ -266,16 +283,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +313,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -327,17 +330,14 @@ dd { } /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +footer > p { + margin: 0 1em; } .container-main { @@ -424,6 +424,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -583,13 +586,13 @@ dl.tsd-comment-tag-group p { } .tsd-filter-input { display: flex; - width: fit-content; width: -moz-fit-content; + width: fit-content; align-items: center; - user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } .tsd-filter-input input[type="checkbox"] { @@ -612,11 +615,8 @@ dl.tsd-comment-tag-group p { Don't remove unless you know what you're doing. */ opacity: 0.99; } -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); } .tsd-checkbox-background { fill: var(--color-accent); @@ -633,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { stroke: var(--color-accent); } -.tsd-theme-toggle { - padding-top: 0.75rem; +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; } -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; } .tsd-hierarchy { @@ -772,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } +.tsd-navigation .tsd-nav-link { + display: none; +} .tsd-nested-navigation { margin-left: 3rem; } @@ -785,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.5rem; } +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; +} .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -815,10 +832,10 @@ a.tsd-index-link { } .tsd-accordion-summary, .tsd-accordion-summary a { - user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } @@ -831,8 +848,9 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { +.tsd-accordion .tsd-accordion-summary > svg { margin-left: 0.25rem; + vertical-align: text-top; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -880,7 +898,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -888,6 +906,9 @@ a.tsd-index-link { .tsd-panel-group.tsd-index-group details { margin: 2rem 0; } +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} #tsd-search { transition: background-color 0.2s; @@ -1037,6 +1058,12 @@ a.tsd-index-link { border-width: 1px 0; transition: background-color 0.1s; } +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} .tsd-description .tsd-signatures .tsd-signature { border-width: 1px; } @@ -1350,6 +1377,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ diff --git a/docs/ssfblib_api/classes/AnimationData.html b/docs/ssfblib_api/classes/AnimationData.html index 0f24533..7753cee 100644 --- a/docs/ssfblib_api/classes/AnimationData.html +++ b/docs/ssfblib_api/classes/AnimationData.html @@ -1,4 +1,4 @@ -AnimationData | ssfblib

    Class AnimationData

    Constructors

    constructor +AnimationData | ssfblib

    Class AnimationData

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • defaultDataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • frameDataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • labelDataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • meshsDataIndicesOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • meshsDataUvOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • defaultDataOffset: number
      • frameDataOffset: number
      • userDataOffset: number
      • labelDataOffset: number
      • meshsDataUvOffset: number
      • meshsDataIndicesOffset: number
      • startFrames: number
      • endFrames: number
      • totalFrames: number
      • fps: number
      • labelNum: number
      • canvasSizeW: number
      • canvasSizeH: number
      • canvasPvotX: number
      • canvasPvotY: number

      Returns number

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • defaultDataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • frameDataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • labelDataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • meshsDataIndicesOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • meshsDataUvOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • defaultDataOffset: number
      • frameDataOffset: number
      • userDataOffset: number
      • labelDataOffset: number
      • meshsDataUvOffset: number
      • meshsDataIndicesOffset: number
      • startFrames: number
      • endFrames: number
      • totalFrames: number
      • fps: number
      • labelNum: number
      • canvasSizeW: number
      • canvasSizeH: number
      • canvasPvotX: number
      • canvasPvotY: number

      Returns number

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    diff --git a/docs/ssfblib_api/classes/AnimationInitialData.html b/docs/ssfblib_api/classes/AnimationInitialData.html index 5061190..5894810 100644 --- a/docs/ssfblib_api/classes/AnimationInitialData.html +++ b/docs/ssfblib_api/classes/AnimationInitialData.html @@ -1,4 +1,4 @@ -AnimationInitialData | ssfblib

    Class AnimationInitialData

    Constructors

    constructor +AnimationInitialData | ssfblib

    Class AnimationInitialData

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • instanceValueCurKeyframe: number

      Returns void

    • Parameters

      • builder: Builder
      • index: number
      • lowflag: number
      • highflag: number
      • priority: number
      • cellIndex: number
      • opacity: number
      • localopacity: number
      • masklimen: number
      • positionX: number
      • positionY: number
      • positionZ: number
      • pivotX: number
      • pivotY: number
      • rotationX: number
      • rotationY: number
      • rotationZ: number
      • scaleX: number
      • scaleY: number
      • localscaleX: number
      • localscaleY: number
      • sizeX: number
      • sizeY: number
      • uvMoveX: number
      • uvMoveY: number
      • uvRotation: number
      • uvScaleX: number
      • uvScaleY: number
      • boundingRadius: number
      • instanceValueCurKeyframe: number
      • instanceValueStartFrame: number
      • instanceValueEndFrame: number
      • instanceValueLoopNum: number
      • instanceValueSpeed: number
      • instanceValueLoopflag: number
      • effectValueCurKeyframe: number
      • effectValueStartTime: number
      • effectValueSpeed: number
      • effectValueLoopflag: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • instanceValueCurKeyframe: number

      Returns void

    • Parameters

      • builder: Builder
      • index: number
      • lowflag: number
      • highflag: number
      • priority: number
      • cellIndex: number
      • opacity: number
      • localopacity: number
      • masklimen: number
      • positionX: number
      • positionY: number
      • positionZ: number
      • pivotX: number
      • pivotY: number
      • rotationX: number
      • rotationY: number
      • rotationZ: number
      • scaleX: number
      • scaleY: number
      • localscaleX: number
      • localscaleY: number
      • sizeX: number
      • sizeY: number
      • uvMoveX: number
      • uvMoveY: number
      • uvRotation: number
      • uvScaleX: number
      • uvScaleY: number
      • boundingRadius: number
      • instanceValueCurKeyframe: number
      • instanceValueStartFrame: number
      • instanceValueEndFrame: number
      • instanceValueLoopNum: number
      • instanceValueSpeed: number
      • instanceValueLoopflag: number
      • effectValueCurKeyframe: number
      • effectValueStartTime: number
      • effectValueSpeed: number
      • effectValueLoopflag: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/AnimePackData.html b/docs/ssfblib_api/classes/AnimePackData.html index 5e32f5c..4549f23 100644 --- a/docs/ssfblib_api/classes/AnimePackData.html +++ b/docs/ssfblib_api/classes/AnimePackData.html @@ -1,4 +1,4 @@ -AnimePackData | ssfblib

    Class AnimePackData

    Constructors

    constructor +AnimePackData | ssfblib

    Class AnimePackData

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • animationsOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • partsOffset: number
      • animationsOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • animationsOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • partsOffset: number
      • animationsOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/Cell.html b/docs/ssfblib_api/classes/Cell.html index f312173..775b7ef 100644 --- a/docs/ssfblib_api/classes/Cell.html +++ b/docs/ssfblib_api/classes/Cell.html @@ -1,4 +1,4 @@ -Cell | ssfblib

    Class Cell

    Constructors

    constructor +Cell | ssfblib

    Class Cell

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Returns string

    • Parameters

      • optionalEncoding: Encoding

      Returns string | Uint8Array

    • Parameters

      • builder: Builder
      • cellMapOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • height: number

      Returns void

    • Parameters

      • builder: Builder
      • indexInCellMap: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • pivotX: number

      Returns void

    • Parameters

      • builder: Builder
      • pivotY: number

      Returns void

    • Parameters

      • builder: Builder
      • u1: number

      Returns void

    • Parameters

      • builder: Builder
      • u2: number

      Returns void

    • Parameters

      • builder: Builder
      • v1: number

      Returns void

    • Parameters

      • builder: Builder
      • v2: number

      Returns void

    • Parameters

      • builder: Builder
      • width: number

      Returns void

    • Parameters

      • builder: Builder
      • x: number

      Returns void

    • Parameters

      • builder: Builder
      • y: number

      Returns void

    • Parameters

      • builder: Builder

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Returns string

    • Parameters

      • optionalEncoding: Encoding

      Returns string | Uint8Array

    • Parameters

      • builder: Builder
      • cellMapOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • height: number

      Returns void

    • Parameters

      • builder: Builder
      • indexInCellMap: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • pivotX: number

      Returns void

    • Parameters

      • builder: Builder
      • pivotY: number

      Returns void

    • Parameters

      • builder: Builder
      • u1: number

      Returns void

    • Parameters

      • builder: Builder
      • u2: number

      Returns void

    • Parameters

      • builder: Builder
      • v1: number

      Returns void

    • Parameters

      • builder: Builder
      • v2: number

      Returns void

    • Parameters

      • builder: Builder
      • width: number

      Returns void

    • Parameters

      • builder: Builder
      • x: number

      Returns void

    • Parameters

      • builder: Builder
      • y: number

      Returns void

    • Parameters

      • builder: Builder

      Returns void

    diff --git a/docs/ssfblib_api/classes/CellMap.html b/docs/ssfblib_api/classes/CellMap.html index ec82f7d..85fab36 100644 --- a/docs/ssfblib_api/classes/CellMap.html +++ b/docs/ssfblib_api/classes/CellMap.html @@ -1,4 +1,4 @@ -CellMap | ssfblib

    Class CellMap

    Constructors

    constructor +CellMap | ssfblib

    Class CellMap

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • filtermode: number

      Returns void

    • Parameters

      • builder: Builder
      • imagePathOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • index: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • wrapmode: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • imagePathOffset: number
      • index: number
      • wrapmode: number
      • filtermode: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • filtermode: number

      Returns void

    • Parameters

      • builder: Builder
      • imagePathOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • index: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • wrapmode: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • imagePathOffset: number
      • index: number
      • wrapmode: number
      • filtermode: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectFile.html b/docs/ssfblib_api/classes/EffectFile.html index 891c8b1..6e2e47a 100644 --- a/docs/ssfblib_api/classes/EffectFile.html +++ b/docs/ssfblib_api/classes/EffectFile.html @@ -1,4 +1,4 @@ -EffectFile | ssfblib

    Class EffectFile

    Constructors

    constructor +EffectFile | ssfblib

    Class EffectFile

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • effectNodeOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • isLockRandSeed: number

      Returns void

    • Parameters

      • builder: Builder
      • layoutScaleX: number

      Returns void

    • Parameters

      • builder: Builder
      • layoutScaleY: number

      Returns void

    • Parameters

      • builder: Builder
      • lockRandSeed: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • numNodeList: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • fps: number
      • isLockRandSeed: number
      • lockRandSeed: number
      • layoutScaleX: number
      • layoutScaleY: number
      • numNodeList: number
      • effectNodeOffset: number

      Returns number

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • effectNodeOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • isLockRandSeed: number

      Returns void

    • Parameters

      • builder: Builder
      • layoutScaleX: number

      Returns void

    • Parameters

      • builder: Builder
      • layoutScaleY: number

      Returns void

    • Parameters

      • builder: Builder
      • lockRandSeed: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • numNodeList: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • fps: number
      • isLockRandSeed: number
      • lockRandSeed: number
      • layoutScaleX: number
      • layoutScaleY: number
      • numNodeList: number
      • effectNodeOffset: number

      Returns number

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    diff --git a/docs/ssfblib_api/classes/EffectNode.html b/docs/ssfblib_api/classes/EffectNode.html index 349e2d5..b4c4356 100644 --- a/docs/ssfblib_api/classes/EffectNode.html +++ b/docs/ssfblib_api/classes/EffectNode.html @@ -1,4 +1,4 @@ -EffectNode | ssfblib

    Class EffectNode

    Constructors

    constructor +EffectNode | ssfblib

    Class EffectNode

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • arrayIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • behaviorOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • behaviorTypeOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • blendType: number

      Returns void

    • Parameters

      • builder: Builder
      • cellIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • numBehavior: number

      Returns void

    • Parameters

      • builder: Builder
      • parentIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • arrayIndex: number
      • parentIndex: number
      • type: number
      • cellIndex: number
      • blendType: number
      • numBehavior: number
      • behaviorTypeOffset: number
      • behaviorOffset: number

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • arrayIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • behaviorOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • behaviorTypeOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • blendType: number

      Returns void

    • Parameters

      • builder: Builder
      • cellIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • numBehavior: number

      Returns void

    • Parameters

      • builder: Builder
      • parentIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • arrayIndex: number
      • parentIndex: number
      • type: number
      • cellIndex: number
      • blendType: number
      • numBehavior: number
      • behaviorTypeOffset: number
      • behaviorOffset: number

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementAlphaFade.html b/docs/ssfblib_api/classes/EffectParticleElementAlphaFade.html index 58291a3..47d1644 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementAlphaFade.html +++ b/docs/ssfblib_api/classes/EffectParticleElementAlphaFade.html @@ -1,4 +1,4 @@ -EffectParticleElementAlphaFade | ssfblib

    Class EffectParticleElementAlphaFade

    Constructors

    constructor +EffectParticleElementAlphaFade | ssfblib

    Class EffectParticleElementAlphaFade

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • disprangeMinValue: number
      • disprangeMaxValue: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • disprangeMinValue: number
      • disprangeMaxValue: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementBasic.html b/docs/ssfblib_api/classes/EffectParticleElementBasic.html index 4be9dc4..a24f909 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementBasic.html +++ b/docs/ssfblib_api/classes/EffectParticleElementBasic.html @@ -1,4 +1,4 @@ -EffectParticleElementBasic | ssfblib

    Class EffectParticleElementBasic

    Constructors

    constructor +EffectParticleElementBasic | ssfblib

    Class EffectParticleElementBasic

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • SsEffectFunctionType: number
      • priority: number
      • maximumParticle: number
      • attimeCreate: number
      • interval: number
      • lifetime: number
      • speedMinValue: number
      • speedMaxValue: number
      • lifespanMinValue: number
      • lifespanMaxValue: number
      • angle: number
      • angleVariance: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • SsEffectFunctionType: number
      • priority: number
      • maximumParticle: number
      • attimeCreate: number
      • interval: number
      • lifetime: number
      • speedMinValue: number
      • speedMaxValue: number
      • lifespanMinValue: number
      • lifespanMaxValue: number
      • angle: number
      • angleVariance: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementDelay.html b/docs/ssfblib_api/classes/EffectParticleElementDelay.html index e908bdc..e4a6bed 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementDelay.html +++ b/docs/ssfblib_api/classes/EffectParticleElementDelay.html @@ -1,8 +1,8 @@ -EffectParticleElementDelay | ssfblib

    Class EffectParticleElementDelay

    Constructors

    constructor +EffectParticleElementDelay | ssfblib

    Class EffectParticleElementDelay

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementGravity.html b/docs/ssfblib_api/classes/EffectParticleElementGravity.html index f630ef5..7b15e91 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementGravity.html +++ b/docs/ssfblib_api/classes/EffectParticleElementGravity.html @@ -1,4 +1,4 @@ -EffectParticleElementGravity | ssfblib

    Class EffectParticleElementGravity

    Constructors

    constructor +EffectParticleElementGravity | ssfblib

    Class EffectParticleElementGravity

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementInitColor.html b/docs/ssfblib_api/classes/EffectParticleElementInitColor.html index 1fffc83..cd0c5d9 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementInitColor.html +++ b/docs/ssfblib_api/classes/EffectParticleElementInitColor.html @@ -1,4 +1,4 @@ -EffectParticleElementInitColor | ssfblib

    Class EffectParticleElementInitColor

    Constructors

    constructor +EffectParticleElementInitColor | ssfblib

    Class EffectParticleElementInitColor

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementPosition.html b/docs/ssfblib_api/classes/EffectParticleElementPosition.html index 255c891..d74fdea 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementPosition.html +++ b/docs/ssfblib_api/classes/EffectParticleElementPosition.html @@ -1,4 +1,4 @@ -EffectParticleElementPosition | ssfblib

    Class EffectParticleElementPosition

    Constructors

    constructor +EffectParticleElementPosition | ssfblib

    Class EffectParticleElementPosition

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • OffsetXMinValue: number
      • OffsetXMaxValue: number
      • OffsetYMinValue: number
      • OffsetYMaxValue: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • OffsetXMinValue: number
      • OffsetXMaxValue: number
      • OffsetYMinValue: number
      • OffsetYMaxValue: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementRndSeedChange.html b/docs/ssfblib_api/classes/EffectParticleElementRndSeedChange.html index d37d017..2591b06 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementRndSeedChange.html +++ b/docs/ssfblib_api/classes/EffectParticleElementRndSeedChange.html @@ -1,8 +1,8 @@ -EffectParticleElementRndSeedChange | ssfblib

    Class EffectParticleElementRndSeedChange

    Constructors

    constructor +EffectParticleElementRndSeedChange | ssfblib

    Class EffectParticleElementRndSeedChange

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementRotation.html b/docs/ssfblib_api/classes/EffectParticleElementRotation.html index 70eb8e9..2572e1c 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementRotation.html +++ b/docs/ssfblib_api/classes/EffectParticleElementRotation.html @@ -1,4 +1,4 @@ -EffectParticleElementRotation | ssfblib

    Class EffectParticleElementRotation

    Constructors

    constructor +EffectParticleElementRotation | ssfblib

    Class EffectParticleElementRotation

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • RotationMinValue: number
      • RotationMaxValue: number
      • RotationAddMinValue: number
      • RotationAddMaxValue: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • RotationMinValue: number
      • RotationMaxValue: number
      • RotationAddMinValue: number
      • RotationAddMaxValue: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementRotationTrans.html b/docs/ssfblib_api/classes/EffectParticleElementRotationTrans.html index a41a49a..d208007 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementRotationTrans.html +++ b/docs/ssfblib_api/classes/EffectParticleElementRotationTrans.html @@ -1,4 +1,4 @@ -EffectParticleElementRotationTrans | ssfblib

    Class EffectParticleElementRotationTrans

    Constructors

    constructor +EffectParticleElementRotationTrans | ssfblib

    Class EffectParticleElementRotationTrans

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementSize.html b/docs/ssfblib_api/classes/EffectParticleElementSize.html index a1e9d90..c69cfe9 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementSize.html +++ b/docs/ssfblib_api/classes/EffectParticleElementSize.html @@ -1,4 +1,4 @@ -EffectParticleElementSize | ssfblib

    Class EffectParticleElementSize

    Constructors

    constructor +EffectParticleElementSize | ssfblib

    Class EffectParticleElementSize

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • SizeXMinValue: number
      • SizeXMaxValue: number
      • SizeYMinValue: number
      • SizeYMaxValue: number
      • ScaleFactorMinValue: number
      • ScaleFactorMaxValue: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • SizeXMinValue: number
      • SizeXMaxValue: number
      • SizeYMinValue: number
      • SizeYMaxValue: number
      • ScaleFactorMinValue: number
      • ScaleFactorMaxValue: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementTangentialAcceleration.html b/docs/ssfblib_api/classes/EffectParticleElementTangentialAcceleration.html index 4b84ffc..19b83f8 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementTangentialAcceleration.html +++ b/docs/ssfblib_api/classes/EffectParticleElementTangentialAcceleration.html @@ -1,4 +1,4 @@ -EffectParticleElementTangentialAcceleration | ssfblib

    Class EffectParticleElementTangentialAcceleration

    Constructors

    constructor +EffectParticleElementTangentialAcceleration | ssfblib

    Class EffectParticleElementTangentialAcceleration

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementTransColor.html b/docs/ssfblib_api/classes/EffectParticleElementTransColor.html index 1559440..abf5825 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementTransColor.html +++ b/docs/ssfblib_api/classes/EffectParticleElementTransColor.html @@ -1,4 +1,4 @@ -EffectParticleElementTransColor | ssfblib

    Class EffectParticleElementTransColor

    Constructors

    constructor +EffectParticleElementTransColor | ssfblib

    Class EffectParticleElementTransColor

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementTransSize.html b/docs/ssfblib_api/classes/EffectParticleElementTransSize.html index 38aeff1..af454dc 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementTransSize.html +++ b/docs/ssfblib_api/classes/EffectParticleElementTransSize.html @@ -1,4 +1,4 @@ -EffectParticleElementTransSize | ssfblib

    Class EffectParticleElementTransSize

    Constructors

    constructor +EffectParticleElementTransSize | ssfblib

    Class EffectParticleElementTransSize

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • SizeXMinValue: number
      • SizeXMaxValue: number
      • SizeYMinValue: number
      • SizeYMaxValue: number
      • ScaleFactorMinValue: number
      • ScaleFactorMaxValue: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • SizeXMinValue: number
      • SizeXMaxValue: number
      • SizeYMinValue: number
      • SizeYMaxValue: number
      • ScaleFactorMinValue: number
      • ScaleFactorMaxValue: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleElementTransSpeed.html b/docs/ssfblib_api/classes/EffectParticleElementTransSpeed.html index bd04953..6393906 100644 --- a/docs/ssfblib_api/classes/EffectParticleElementTransSpeed.html +++ b/docs/ssfblib_api/classes/EffectParticleElementTransSpeed.html @@ -1,4 +1,4 @@ -EffectParticleElementTransSpeed | ssfblib

    Class EffectParticleElementTransSpeed

    Constructors

    constructor +EffectParticleElementTransSpeed | ssfblib

    Class EffectParticleElementTransSpeed

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticleInfiniteEmitEnabled.html b/docs/ssfblib_api/classes/EffectParticleInfiniteEmitEnabled.html index ce59cf4..672149e 100644 --- a/docs/ssfblib_api/classes/EffectParticleInfiniteEmitEnabled.html +++ b/docs/ssfblib_api/classes/EffectParticleInfiniteEmitEnabled.html @@ -1,8 +1,8 @@ -EffectParticleInfiniteEmitEnabled | ssfblib

    Class EffectParticleInfiniteEmitEnabled

    Constructors

    constructor +EffectParticleInfiniteEmitEnabled | ssfblib

    Class EffectParticleInfiniteEmitEnabled

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/EffectParticlePointGravity.html b/docs/ssfblib_api/classes/EffectParticlePointGravity.html index b2470fd..034ca67 100644 --- a/docs/ssfblib_api/classes/EffectParticlePointGravity.html +++ b/docs/ssfblib_api/classes/EffectParticlePointGravity.html @@ -1,4 +1,4 @@ -EffectParticlePointGravity | ssfblib

    Class EffectParticlePointGravity

    Constructors

    constructor +EffectParticlePointGravity | ssfblib

    Class EffectParticlePointGravity

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • Position_x: number
      • Position_y: number
      • Power: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • Position_x: number
      • Position_y: number
      • Power: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/EffectParticleTurnToDirectionEnabled.html b/docs/ssfblib_api/classes/EffectParticleTurnToDirectionEnabled.html index 06b998c..1645fd7 100644 --- a/docs/ssfblib_api/classes/EffectParticleTurnToDirectionEnabled.html +++ b/docs/ssfblib_api/classes/EffectParticleTurnToDirectionEnabled.html @@ -1,8 +1,8 @@ -EffectParticleTurnToDirectionEnabled | ssfblib

    Class EffectParticleTurnToDirectionEnabled

    Constructors

    constructor +EffectParticleTurnToDirectionEnabled | ssfblib

    Class EffectParticleTurnToDirectionEnabled

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/PartData.html b/docs/ssfblib_api/classes/PartData.html index d5cf2af..aaaf1c4 100644 --- a/docs/ssfblib_api/classes/PartData.html +++ b/docs/ssfblib_api/classes/PartData.html @@ -1,4 +1,4 @@ -PartData | ssfblib

    Class PartData

    Constructors

    constructor +PartData | ssfblib

    Class PartData

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • alphaBlendType: number

      Returns void

    • Parameters

      • builder: Builder
      • boundsType: number

      Returns void

    • Parameters

      • builder: Builder
      • colorLabelOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • effectfilenameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • index: number

      Returns void

    • Parameters

      • builder: Builder
      • maskInfluence: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • parentIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • refnameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • index: number
      • parentIndex: number
      • type: SsPartType
      • boundsType: number
      • alphaBlendType: number
      • refnameOffset: number
      • effectfilenameOffset: number
      • colorLabelOffset: number
      • maskInfluence: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • alphaBlendType: number

      Returns void

    • Parameters

      • builder: Builder
      • boundsType: number

      Returns void

    • Parameters

      • builder: Builder
      • colorLabelOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • effectfilenameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • index: number

      Returns void

    • Parameters

      • builder: Builder
      • maskInfluence: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • parentIndex: number

      Returns void

    • Parameters

      • builder: Builder
      • refnameOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • nameOffset: number
      • index: number
      • parentIndex: number
      • type: SsPartType
      • boundsType: number
      • alphaBlendType: number
      • refnameOffset: number
      • effectfilenameOffset: number
      • colorLabelOffset: number
      • maskInfluence: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/ProjectData.html b/docs/ssfblib_api/classes/ProjectData.html index 5a6d085..e808368 100644 --- a/docs/ssfblib_api/classes/ProjectData.html +++ b/docs/ssfblib_api/classes/ProjectData.html @@ -1,4 +1,4 @@ -ProjectData | ssfblib

    Class ProjectData

    Constructors

    constructor +ProjectData | ssfblib

    Class ProjectData

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • animePacksOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • effectFileListOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • imageBaseDirOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • numAnimePacks: number

      Returns void

    • Parameters

      • builder: Builder
      • numEffectFileList: number

      Returns void

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • dataId: number
      • version: number
      • flags: number
      • imageBaseDirOffset: number
      • cellsOffset: number
      • animePacksOffset: number
      • effectFileListOffset: number
      • numCells: number
      • numAnimePacks: number
      • numEffectFileList: number

      Returns number

    • Parameters

      • builder: Builder
      • offset: number

      Returns void

    • Parameters

      • builder: Builder
      • offset: number

      Returns void

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • animePacksOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • effectFileListOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • imageBaseDirOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • numAnimePacks: number

      Returns void

    • Parameters

      • builder: Builder
      • numEffectFileList: number

      Returns void

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • data: number[]

      Returns number

    • Parameters

      • builder: Builder
      • dataId: number
      • version: number
      • flags: number
      • imageBaseDirOffset: number
      • cellsOffset: number
      • animePacksOffset: number
      • effectFileListOffset: number
      • numCells: number
      • numAnimePacks: number
      • numEffectFileList: number

      Returns number

    • Parameters

      • builder: Builder
      • offset: number

      Returns void

    • Parameters

      • builder: Builder
      • offset: number

      Returns void

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    diff --git a/docs/ssfblib_api/classes/Utils.html b/docs/ssfblib_api/classes/Utils.html index c1f4492..4d62833 100644 --- a/docs/ssfblib_api/classes/Utils.html +++ b/docs/ssfblib_api/classes/Utils.html @@ -1,3 +1,3 @@ -Utils | ssfblib

    Class Utils

    Constructors

    constructor +Utils | ssfblib

    Class Utils

    Constructors

    Methods

    Constructors

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Methods

    diff --git a/docs/ssfblib_api/classes/frameDataIndex.html b/docs/ssfblib_api/classes/frameDataIndex.html index 8c34ce5..579a13f 100644 --- a/docs/ssfblib_api/classes/frameDataIndex.html +++ b/docs/ssfblib_api/classes/frameDataIndex.html @@ -1,4 +1,4 @@ -frameDataIndex | ssfblib

    Class frameDataIndex

    Constructors

    constructor +frameDataIndex | ssfblib

    Class frameDataIndex

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • statesOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • statesOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/labelDataItem.html b/docs/ssfblib_api/classes/labelDataItem.html index ede9492..6debe5c 100644 --- a/docs/ssfblib_api/classes/labelDataItem.html +++ b/docs/ssfblib_api/classes/labelDataItem.html @@ -1,4 +1,4 @@ -labelDataItem | ssfblib

    Class labelDataItem

    Constructors

    constructor +labelDataItem | ssfblib

    Class labelDataItem

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • labelOffset: number
      • frameIndex: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • labelOffset: number
      • frameIndex: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/meshDataIndices.html b/docs/ssfblib_api/classes/meshDataIndices.html index 627547a..aacadca 100644 --- a/docs/ssfblib_api/classes/meshDataIndices.html +++ b/docs/ssfblib_api/classes/meshDataIndices.html @@ -1,4 +1,4 @@ -meshDataIndices | ssfblib

    Class meshDataIndices

    Constructors

    constructor +meshDataIndices | ssfblib

    Class meshDataIndices

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • data: number[] | Float32Array

      Returns number

    • Parameters

      • builder: Builder
      • data: Uint8Array | number[]

      Returns number

      Deprecated

      This Uint8Array overload will be removed in the future.

      -
    • Parameters

      • builder: Builder
      • indicesOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • data: number[] | Float32Array

      Returns number

    • Parameters

      • builder: Builder
      • data: Uint8Array | number[]

      Returns number

      This Uint8Array overload will be removed in the future.

      +
    • Parameters

      • builder: Builder
      • indicesOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/meshDataUV.html b/docs/ssfblib_api/classes/meshDataUV.html index a32bc4e..6dfa985 100644 --- a/docs/ssfblib_api/classes/meshDataUV.html +++ b/docs/ssfblib_api/classes/meshDataUV.html @@ -1,4 +1,4 @@ -meshDataUV | ssfblib

    Class meshDataUV

    Constructors

    constructor +meshDataUV | ssfblib

    Class meshDataUV

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • data: number[] | Float32Array

      Returns number

    • Parameters

      • builder: Builder
      • data: Uint8Array | number[]

      Returns number

      Deprecated

      This Uint8Array overload will be removed in the future.

      -
    • Parameters

      • builder: Builder
      • uvOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • data: number[] | Float32Array

      Returns number

    • Parameters

      • builder: Builder
      • data: Uint8Array | number[]

      Returns number

      This Uint8Array overload will be removed in the future.

      +
    • Parameters

      • builder: Builder
      • uvOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/partState.html b/docs/ssfblib_api/classes/partState.html index 52038b3..bd6608b 100644 --- a/docs/ssfblib_api/classes/partState.html +++ b/docs/ssfblib_api/classes/partState.html @@ -1,4 +1,4 @@ -partState | ssfblib

    Class partState

    Constructors

    constructor +partState | ssfblib

    Class partState

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • dataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • data: Uint32Array | number[]

      Returns number

    • Parameters

      • builder: Builder
      • data: Uint8Array | number[]

      Returns number

      Deprecated

      This Uint8Array overload will be removed in the future.

      -
    • Parameters

      • builder: Builder
      • index: number
      • flag1: number
      • flag2: number
      • dataOffset: number

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • dataOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • data: Uint32Array | number[]

      Returns number

    • Parameters

      • builder: Builder
      • data: Uint8Array | number[]

      Returns number

      This Uint8Array overload will be removed in the future.

      +
    • Parameters

      • builder: Builder
      • index: number
      • flag1: number
      • flag2: number
      • dataOffset: number

      Returns number

    • Parameters

      • builder: Builder
      • numElems: number

      Returns void

    diff --git a/docs/ssfblib_api/classes/userDataInteger.html b/docs/ssfblib_api/classes/userDataInteger.html index e4f5108..c314f3c 100644 --- a/docs/ssfblib_api/classes/userDataInteger.html +++ b/docs/ssfblib_api/classes/userDataInteger.html @@ -1,8 +1,8 @@ -userDataInteger | ssfblib

    Class userDataInteger

    Constructors

    constructor +userDataInteger | ssfblib

    Class userDataInteger

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/userDataItem.html b/docs/ssfblib_api/classes/userDataItem.html index 778eae1..904a5d3 100644 --- a/docs/ssfblib_api/classes/userDataItem.html +++ b/docs/ssfblib_api/classes/userDataItem.html @@ -1,4 +1,4 @@ -userDataItem | ssfblib

    Class userDataItem

    Constructors

    constructor +userDataItem | ssfblib

    Class userDataItem

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • dataTypeOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • flags: number
      • arrayIndex: number
      • dataTypeOffset: number
      • dataOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • dataTypeOffset: number

      Returns void

    • Parameters

      • builder: Builder
      • flags: number
      • arrayIndex: number
      • dataTypeOffset: number
      • dataOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/userDataPerFrame.html b/docs/ssfblib_api/classes/userDataPerFrame.html index 3b344bd..3fe35bb 100644 --- a/docs/ssfblib_api/classes/userDataPerFrame.html +++ b/docs/ssfblib_api/classes/userDataPerFrame.html @@ -1,4 +1,4 @@ -userDataPerFrame | ssfblib

    Class userDataPerFrame

    Constructors

    constructor +userDataPerFrame | ssfblib

    Class userDataPerFrame

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • frameIndex: number
      • dataOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • frameIndex: number
      • dataOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/userDataPoint.html b/docs/ssfblib_api/classes/userDataPoint.html index 759d128..e657bee 100644 --- a/docs/ssfblib_api/classes/userDataPoint.html +++ b/docs/ssfblib_api/classes/userDataPoint.html @@ -1,4 +1,4 @@ -userDataPoint | ssfblib

    Class userDataPoint

    Constructors

    constructor +userDataPoint | ssfblib

    Class userDataPoint

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    diff --git a/docs/ssfblib_api/classes/userDataRect.html b/docs/ssfblib_api/classes/userDataRect.html index 4d02c3a..ce1aeca 100644 --- a/docs/ssfblib_api/classes/userDataRect.html +++ b/docs/ssfblib_api/classes/userDataRect.html @@ -1,4 +1,4 @@ -userDataRect | ssfblib

    Class userDataRect

    Constructors

    constructor +userDataRect | ssfblib

    Class userDataRect

    Constructors

    Properties

    Methods

    __init @@ -8,4 +8,4 @@ y createuserDataRect sizeOf -

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • x: number
      • y: number
      • w: number
      • h: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • x: number
      • y: number
      • w: number
      • h: number

      Returns number

    diff --git a/docs/ssfblib_api/classes/userDataString.html b/docs/ssfblib_api/classes/userDataString.html index ff4ae2a..0c19071 100644 --- a/docs/ssfblib_api/classes/userDataString.html +++ b/docs/ssfblib_api/classes/userDataString.html @@ -1,4 +1,4 @@ -userDataString | ssfblib

    Class userDataString

    Constructors

    constructor +userDataString | ssfblib

    Class userDataString

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • length: number
      • dataOffset: number

      Returns number

    Generated using TypeDoc

    \ No newline at end of file +

    Constructors

    Properties

    bb: ByteBuffer = null
    bb_pos: number = 0

    Methods

    • Parameters

      • builder: Builder
      • length: number
      • dataOffset: number

      Returns number

    diff --git a/docs/ssfblib_api/enums/EffectNodeBehavior.html b/docs/ssfblib_api/enums/EffectNodeBehavior.html index 7879dd3..adc9316 100644 --- a/docs/ssfblib_api/enums/EffectNodeBehavior.html +++ b/docs/ssfblib_api/enums/EffectNodeBehavior.html @@ -1,4 +1,4 @@ -EffectNodeBehavior | ssfblib

    Enumeration EffectNodeBehavior

    Enumeration Members

    EffectParticleElementAlphaFade +EffectNodeBehavior | ssfblib

    Enumeration EffectNodeBehavior

    Enumeration Members

    EffectParticleElementAlphaFade: 12
    EffectParticleElementBasic: 1
    EffectParticleElementDelay: 3
    EffectParticleElementGravity: 4
    EffectParticleElementInitColor: 10
    EffectParticleElementPosition: 5
    EffectParticleElementRndSeedChange: 2
    EffectParticleElementRotation: 6
    EffectParticleElementRotationTrans: 7
    EffectParticleElementSize: 13
    EffectParticleElementTangentialAcceleration: 9
    EffectParticleElementTransColor: 11
    EffectParticleElementTransSize: 14
    EffectParticleElementTransSpeed: 8
    EffectParticleInfiniteEmitEnabled: 17
    EffectParticlePointGravity: 15
    EffectParticleTurnToDirectionEnabled: 16
    NONE: 0

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    EffectParticleElementAlphaFade: 12
    EffectParticleElementBasic: 1
    EffectParticleElementDelay: 3
    EffectParticleElementGravity: 4
    EffectParticleElementInitColor: 10
    EffectParticleElementPosition: 5
    EffectParticleElementRndSeedChange: 2
    EffectParticleElementRotation: 6
    EffectParticleElementRotationTrans: 7
    EffectParticleElementSize: 13
    EffectParticleElementTangentialAcceleration: 9
    EffectParticleElementTransColor: 11
    EffectParticleElementTransSize: 14
    EffectParticleElementTransSpeed: 8
    EffectParticleInfiniteEmitEnabled: 17
    EffectParticlePointGravity: 15
    EffectParticleTurnToDirectionEnabled: 16
    NONE: 0
    diff --git a/docs/ssfblib_api/enums/PART_FLAG.html b/docs/ssfblib_api/enums/PART_FLAG.html index 5371cb7..10b1d84 100644 --- a/docs/ssfblib_api/enums/PART_FLAG.html +++ b/docs/ssfblib_api/enums/PART_FLAG.html @@ -1,4 +1,4 @@ -PART_FLAG | ssfblib

    Enumeration PART_FLAG

    Enumeration Members

    BOUNDINGRADIUS +PART_FLAG | ssfblib

    Enumeration PART_FLAG

    Enumeration Members

    BOUNDINGRADIUS: 134217728
    CELL_INDEX: 8
    EFFECT_KEYFRAME: 2147483648
    FLIP_H: 2
    FLIP_V: 4
    INSTANCE_KEYFRAME: 1073741824
    INVISIBLE: 1
    LOCALOPACITY: 131072
    LOCALSCALE_X: 16384
    LOCALSCALE_Y: 32768
    MASK: 268435456
    OPACITY: 65536
    PARTS_COLOR: 262144
    PIVOT_X: 128
    PIVOT_Y: 256
    POSITION_X: 16
    POSITION_Y: 32
    POSITION_Z: 64
    PRIORITY: 536870912
    ROTATIONX: 512
    ROTATIONY: 1024
    ROTATIONZ: 2048
    SCALE_X: 4096
    SCALE_Y: 8192
    SIZE_X: 1048576
    SIZE_Y: 2097152
    UV_ROTATION: 16777216
    U_MOVE: 4194304
    U_SCALE: 33554432
    VERTEX_TRANSFORM: 524288
    V_MOVE: 8388608
    V_SCALE: 67108864

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    BOUNDINGRADIUS: 134217728
    CELL_INDEX: 8
    EFFECT_KEYFRAME: 2147483648
    FLIP_H: 2
    FLIP_V: 4
    INSTANCE_KEYFRAME: 1073741824
    INVISIBLE: 1
    LOCALOPACITY: 131072
    LOCALSCALE_X: 16384
    LOCALSCALE_Y: 32768
    MASK: 268435456
    OPACITY: 65536
    PARTS_COLOR: 262144
    PIVOT_X: 128
    PIVOT_Y: 256
    POSITION_X: 16
    POSITION_Y: 32
    POSITION_Z: 64
    PRIORITY: 536870912
    ROTATIONX: 512
    ROTATIONY: 1024
    ROTATIONZ: 2048
    SCALE_X: 4096
    SCALE_Y: 8192
    SIZE_X: 1048576
    SIZE_Y: 2097152
    UV_ROTATION: 16777216
    U_MOVE: 4194304
    U_SCALE: 33554432
    VERTEX_TRANSFORM: 524288
    V_MOVE: 8388608
    V_SCALE: 67108864
    diff --git a/docs/ssfblib_api/enums/PART_FLAG2.html b/docs/ssfblib_api/enums/PART_FLAG2.html index 43ad472..2c3f8ec 100644 --- a/docs/ssfblib_api/enums/PART_FLAG2.html +++ b/docs/ssfblib_api/enums/PART_FLAG2.html @@ -1,2 +1,2 @@ -PART_FLAG2 | ssfblib

    Enumeration PART_FLAG2

    Enumeration Members

    Enumeration Members

    MESHDATA: 1

    Generated using TypeDoc

    \ No newline at end of file +PART_FLAG2 | ssfblib

    Enumeration PART_FLAG2

    Enumeration Members

    Enumeration Members

    MESHDATA: 1
    diff --git a/docs/ssfblib_api/enums/SsPartType.html b/docs/ssfblib_api/enums/SsPartType.html index 16dfdec..ba1263b 100644 --- a/docs/ssfblib_api/enums/SsPartType.html +++ b/docs/ssfblib_api/enums/SsPartType.html @@ -1,4 +1,4 @@ -SsPartType | ssfblib

    Enumeration SsPartType

    Enumeration Members

    Armature +SsPartType | ssfblib

    Enumeration SsPartType

    Enumeration Members

    Enumeration Members

    Armature: 4
    Bonepoint: 11
    Constraint: 8
    Effect: 5
    Instance: 3
    Invalid: -1
    Joint: 10
    Mask: 9
    Mesh: 6
    Movenode: 7
    Normal: 1
    Nulltype: 0
    Text: 2

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    Armature: 4
    Bonepoint: 11
    Constraint: 8
    Effect: 5
    Instance: 3
    Invalid: -1
    Joint: 10
    Mask: 9
    Mesh: 6
    Movenode: 7
    Normal: 1
    Nulltype: 0
    Text: 2
    diff --git a/docs/ssfblib_api/enums/VERTEX_FLAG.html b/docs/ssfblib_api/enums/VERTEX_FLAG.html index 4aa06fb..c5eaf87 100644 --- a/docs/ssfblib_api/enums/VERTEX_FLAG.html +++ b/docs/ssfblib_api/enums/VERTEX_FLAG.html @@ -1,6 +1,6 @@ -VERTEX_FLAG | ssfblib

    Enumeration VERTEX_FLAG

    Enumeration Members

    LB +VERTEX_FLAG | ssfblib

    Enumeration VERTEX_FLAG

    Enumeration Members

    Enumeration Members

    LB: 4
    LT: 1
    ONE: 16
    RB: 8
    RT: 2

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    LB: 4
    LT: 1
    ONE: 16
    RB: 8
    RT: 2
    diff --git a/docs/ssfblib_api/enums/userDataValue.html b/docs/ssfblib_api/enums/userDataValue.html index 92758c8..29dca64 100644 --- a/docs/ssfblib_api/enums/userDataValue.html +++ b/docs/ssfblib_api/enums/userDataValue.html @@ -1,6 +1,6 @@ -userDataValue | ssfblib

    Enumeration userDataValue

    Enumeration Members

    NONE +userDataValue | ssfblib

    Enumeration userDataValue

    Enumeration Members

    NONE: 0
    userDataInteger: 1
    userDataPoint: 3
    userDataRect: 2
    userDataString: 4

    Generated using TypeDoc

    \ No newline at end of file +

    Enumeration Members

    NONE: 0
    userDataInteger: 1
    userDataPoint: 3
    userDataRect: 2
    userDataString: 4
    diff --git a/docs/ssfblib_api/index.html b/docs/ssfblib_api/index.html index bb5b4db..8156673 100644 --- a/docs/ssfblib_api/index.html +++ b/docs/ssfblib_api/index.html @@ -1,16 +1,18 @@ -ssfblib

    ssfblib

    ssfblib

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションデータの一つである ssfb フォーマットをパースするライブラリです。

    -

    ssfb schema

    ssfblib は FlatBuffers が schema から生成した TypeScript コードをライブラリ化したものです。

    +ssfblib

    ssfblib

    ssfblib

    OPTPiX SpriteStudio 7.0OPTPiX SpriteStudio 6 で制作したアニメーションデータの一つである ssfb フォーマットをパースするライブラリです。

    +

    ssfblib は FlatBuffers が schema から生成した TypeScript コードをライブラリ化したものです。

    ssfblib の schema ファイルは SpriteStudio6-SDK に同封しています。 こちらを参照してください

    -

    ライセンス

    ssfblib のライセンスは LISENCE となります。

    -

    使い方

    API リファレンス

    ssfblib の API リファレンスはこちらです。

    -

    サンプル

    FlatBuffers の TypeScript 利用ガイドJavaScript 利用ガイド を参照してください。

    -

    ビルド

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    -

    全ビルド

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    +

    ssfblib のライセンスは LISENCE となります。

    +

    ssfblib の API リファレンスはこちらです。

    +

    FlatBuffers の TypeScript 利用ガイドJavaScript 利用ガイド を参照してください。

    +

    ソースの取得方法やビルドに必要な npm のインストール手順は wiki を参照してください。

    +

    SS6PlayerForWeb/ ディレクトリ上で下記コマンドを実行すると、 packages/ 以下の全ライブラリをビルドします。

    cd SS6PlayerForWeb
    npm i
    npm run build
    +

    ビルドが成功すると ssfblib.umd.jsssfblib.es6.jsSS6PlayerForWeb/packages/ssfblib/dist ディレクトリ以下に生成されます。

    -

    単独ビルド

    全ビルド実行後は SS6PlayerForWeb/packages/ssfblib ディレクトリ上で ssfblib の単独ビルドが可能になります。

    +

    全ビルド実行後は SS6PlayerForWeb/packages/ssfblib ディレクトリ上で ssfblib の単独ビルドが可能になります。

    cd SS6PlayerForWeb/packages/ssfblib
    npm run build
    -

    Generated using TypeDoc

    \ No newline at end of file + +
    diff --git a/docs/ssfblib_api/media/LICENSE b/docs/ssfblib_api/media/LICENSE new file mode 100644 index 0000000..3b3de2d --- /dev/null +++ b/docs/ssfblib_api/media/LICENSE @@ -0,0 +1,52 @@ +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +3. Neither the name of the CRI Middleware Co., Ltd. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--------------- + +Copyright (c) CRI Middleware Co., Ltd. +All rights reserved. + +ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を +満たす場合に限り、再頒布および使用が許可されます。 + +1. ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責 + 条項を含めること。 +2. バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の + 著作権表示、本条件一覧、および下記免責条項を含めること。 +3. 書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売 + 促進に、CRI Middleware Co., Ltd. の名前またはコントリビューターの名前を使用して + はならない。 + +本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供 +されており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する +適合性に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありません。 +著作権者もコントリビューターも、事由のいかんを問わず、 損害発生の原因いかんを +問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法行為 +であるかを問わず、仮にそのような損害が発生する可能性を知らされていたとしても、 +本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、使用の +喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されない) +直接損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害について、 +一切責任を負わないものとします。 diff --git a/docs/ssfblib_api/modules.html b/docs/ssfblib_api/modules.html index 6b9e922..aa43782 100644 --- a/docs/ssfblib_api/modules.html +++ b/docs/ssfblib_api/modules.html @@ -1,4 +1,4 @@ -ssfblib

    ssfblib

    Index

    Enumerations

    EffectNodeBehavior +ssfblib

    Generated using TypeDoc

    \ No newline at end of file +
    diff --git a/docs/ui-examples/SS6_UIDemo.js b/docs/ui-examples/SS6_UIDemo.js index b27dd79..4f8ce89 100644 --- a/docs/ui-examples/SS6_UIDemo.js +++ b/docs/ui-examples/SS6_UIDemo.js @@ -16,10 +16,11 @@ // (通常のPIXI.jsアプリケーションの初期化手順) const app = new PIXI.Application(); await app.init({ + preference: 'webgpu', width: 960, height: 720, backgroundColor: 0x606060, - view: document.createElement('canvas') + // view: document.createElement('canvas') }); document.body.appendChild(app.canvas); diff --git a/docs/ui-examples/index.html b/docs/ui-examples/index.html index cb9147b..64a3fb2 100644 --- a/docs/ui-examples/index.html +++ b/docs/ui-examples/index.html @@ -6,7 +6,7 @@ - + diff --git a/docs/ui-examples/ss6player-pixi.min.js b/docs/ui-examples/ss6player-pixi.min.js index f15ab50..7fa5e18 100644 --- a/docs/ui-examples/ss6player-pixi.min.js +++ b/docs/ui-examples/ss6player-pixi.min.js @@ -1,10 +1,10 @@ /** * ----------------------------------------------------------- - * SS6Player For pixi.js v2.1.0 + * SS6Player For pixi.js v2.2.0 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ * ----------------------------------------------------------- */ -var ss6PlayerPixi=function(dt,D){"use strict";class vt{}const ht=4,ct=4,C=4,q=new Int32Array(2),mt=new Float32Array(q.buffer),Ft=new Float64Array(q.buffer),ft=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var pt;(function(c){c[c.UTF8_BYTES=1]="UTF8_BYTES",c[c.UTF16_STRING=2]="UTF16_STRING"})(pt||(pt={}));class ut{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new ut(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8}writeInt32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeUint32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeInt64(t,s){this.writeInt32(t,Number(BigInt.asIntN(32,s))),this.writeInt32(t+4,Number(BigInt.asIntN(32,s>>BigInt(32))))}writeUint64(t,s){this.writeUint32(t,Number(BigInt.asUintN(32,s))),this.writeUint32(t+4,Number(BigInt.asUintN(32,s>>BigInt(32))))}writeFloat32(t,s){mt[0]=s,this.writeInt32(t,q[0])}writeFloat64(t,s){Ft[0]=s,this.writeInt32(t,q[ft?0:1]),this.writeInt32(t+4,q[ft?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;e--)t.addInt32(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static endpartState(t){return t.endObject()}static createpartState(t,s,e,i,h){return j.startpartState(t),j.addIndex(t,s),j.addFlag1(t,e),j.addFlag2(t,i),j.addData(t,h),j.endpartState(t)}}class et{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsframeDataIndex(t,s){return(s||new et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,s){return t.setPosition(t.position()+C),(s||new et).__init(t.readInt32(t.position())+t.position(),t)}states(t,s){const e=this.bb.__offset(this.bb_pos,4);return e?(s||new j).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,s){t.addFieldOffset(0,s,0)}static createStatesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startStatesVector(t,s){t.startVector(4,s,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,s){return et.startframeDataIndex(t),et.addStates(t,s),et.endframeDataIndex(t)}}class Q{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAslabelDataItem(t,s){return(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,s){return t.setPosition(t.position()+C),(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}label(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,s){t.addFieldOffset(0,s,0)}static addFrameIndex(t,s){t.addFieldInt16(1,s,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,s,e){return Q.startlabelDataItem(t),Q.addLabel(t,s),Q.addFrameIndex(t,e),Q.endlabelDataItem(t)}}class it{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataIndices(t,s){return(s||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,s){return t.setPosition(t.position()+C),(s||new it).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,s){t.addFieldOffset(0,s,0)}static createIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startIndicesVector(t,s){t.startVector(4,s,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,s){return it.startmeshDataIndices(t),it.addIndices(t,s),it.endmeshDataIndices(t)}}class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataUV(t,s){return(s||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,s){return t.setPosition(t.position()+C),(s||new at).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,s){t.addFieldOffset(0,s,0)}static createUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startUvVector(t,s){t.startVector(4,s,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,s){return at.startmeshDataUV(t),at.addUv(t,s),at.endmeshDataUV(t)}}class R{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataItem(t,s){return(s||new R).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,s){return t.setPosition(t.position()+C),(s||new R).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const s=this.bb.__offset(this.bb_pos,8);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,s){t.addFieldInt16(0,s,0)}static addArrayIndex(t,s){t.addFieldInt16(1,s,0)}static addDataType(t,s){t.addFieldOffset(2,s,0)}static createDataTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startDataTypeVector(t,s){t.startVector(1,s,1)}static addData(t,s){t.addFieldOffset(3,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,s,e,i,h){return R.startuserDataItem(t),R.addFlags(t,s),R.addArrayIndex(t,e),R.addDataType(t,i),R.addData(t,h),R.enduserDataItem(t)}}class G{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataPerFrame(t,s){return(s||new G).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,s){return t.setPosition(t.position()+C),(s||new G).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new R).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,s){t.addFieldInt16(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,s,e){return G.startuserDataPerFrame(t),G.addFrameIndex(t,s),G.addData(t,e),G.enduserDataPerFrame(t)}}class y{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimationData(t,s){return(s||new y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,s){return t.setPosition(t.position()+C),(s||new y).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}defaultData(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new _).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?(s||new G).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new Q).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new at).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new it).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,s){t.addFieldOffset(0,s,0)}static addDefaultData(t,s){t.addFieldOffset(1,s,0)}static createDefaultDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDefaultDataVector(t,s){t.startVector(4,s,4)}static addFrameData(t,s){t.addFieldOffset(2,s,0)}static createFrameDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startFrameDataVector(t,s){t.startVector(4,s,4)}static addUserData(t,s){t.addFieldOffset(3,s,0)}static createUserDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startUserDataVector(t,s){t.startVector(4,s,4)}static addLabelData(t,s){t.addFieldOffset(4,s,0)}static createLabelDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startLabelDataVector(t,s){t.startVector(4,s,4)}static addMeshsDataUv(t,s){t.addFieldOffset(5,s,0)}static createMeshsDataUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataUvVector(t,s){t.startVector(4,s,4)}static addMeshsDataIndices(t,s){t.addFieldOffset(6,s,0)}static createMeshsDataIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataIndicesVector(t,s){t.startVector(4,s,4)}static addStartFrames(t,s){t.addFieldInt16(7,s,0)}static addEndFrames(t,s){t.addFieldInt16(8,s,0)}static addTotalFrames(t,s){t.addFieldInt16(9,s,0)}static addFps(t,s){t.addFieldInt16(10,s,0)}static addLabelNum(t,s){t.addFieldInt16(11,s,0)}static addCanvasSizeW(t,s){t.addFieldInt16(12,s,0)}static addCanvasSizeH(t,s){t.addFieldInt16(13,s,0)}static addCanvasPvotX(t,s){t.addFieldFloat32(14,s,0)}static addCanvasPvotY(t,s){t.addFieldFloat32(15,s,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,s,e,i,h,a,o,n,f,r,d,l,u,b,V,m,F){return y.startAnimationData(t),y.addName(t,s),y.addDefaultData(t,e),y.addFrameData(t,i),y.addUserData(t,h),y.addLabelData(t,a),y.addMeshsDataUv(t,o),y.addMeshsDataIndices(t,n),y.addStartFrames(t,f),y.addEndFrames(t,r),y.addTotalFrames(t,d),y.addFps(t,l),y.addLabelNum(t,u),y.addCanvasSizeW(t,b),y.addCanvasSizeH(t,V),y.addCanvasPvotX(t,m),y.addCanvasPvotY(t,F),y.endAnimationData(t)}}var O=(c=>(c[c.Invalid=-1]="Invalid",c[c.Nulltype=0]="Nulltype",c[c.Normal=1]="Normal",c[c.Text=2]="Text",c[c.Instance=3]="Instance",c[c.Armature=4]="Armature",c[c.Effect=5]="Effect",c[c.Mesh=6]="Mesh",c[c.Movenode=7]="Movenode",c[c.Constraint=8]="Constraint",c[c.Mask=9]="Mask",c[c.Joint=10]="Joint",c[c.Bonepoint=11]="Bonepoint",c))(O||{});class x{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsPartData(t,s){return(s||new x).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,s){return t.setPosition(t.position()+C),(s||new x).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):O.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.__string(this.bb_pos+s,t):null}effectfilename(t){const s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__string(this.bb_pos+s,t):null}colorLabel(t){const s=this.bb.__offset(this.bb_pos,20);return s?this.bb.__string(this.bb_pos+s,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,s){t.addFieldOffset(0,s,0)}static addIndex(t,s){t.addFieldInt16(1,s,0)}static addParentIndex(t,s){t.addFieldInt16(2,s,0)}static addType(t,s){t.addFieldInt8(3,s,O.Nulltype)}static addBoundsType(t,s){t.addFieldInt16(4,s,0)}static addAlphaBlendType(t,s){t.addFieldInt16(5,s,0)}static addRefname(t,s){t.addFieldOffset(6,s,0)}static addEffectfilename(t,s){t.addFieldOffset(7,s,0)}static addColorLabel(t,s){t.addFieldOffset(8,s,0)}static addMaskInfluence(t,s){t.addFieldInt16(9,s,0)}static endPartData(t){return t.endObject()}static createPartData(t,s,e,i,h,a,o,n,f,r,d){return x.startPartData(t),x.addName(t,s),x.addIndex(t,e),x.addParentIndex(t,i),x.addType(t,h),x.addBoundsType(t,a),x.addAlphaBlendType(t,o),x.addRefname(t,n),x.addEffectfilename(t,f),x.addColorLabel(t,r),x.addMaskInfluence(t,d),x.endPartData(t)}}class K{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimePackData(t,s){return(s||new K).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,s){return t.setPosition(t.position()+C),(s||new K).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}parts(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new y).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,s){t.addFieldOffset(0,s,0)}static addParts(t,s){t.addFieldOffset(1,s,0)}static createPartsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startPartsVector(t,s){t.startVector(4,s,4)}static addAnimations(t,s){t.addFieldOffset(2,s,0)}static createAnimationsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimationsVector(t,s){t.startVector(4,s,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,s,e,i){return K.startAnimePackData(t),K.addName(t,s),K.addParts(t,e),K.addAnimations(t,i),K.endAnimePackData(t)}}class k{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCellMap(t,s){return(s||new k).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,s){return t.setPosition(t.position()+C),(s||new k).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}imagePath(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,s){t.addFieldOffset(0,s,0)}static addImagePath(t,s){t.addFieldOffset(1,s,0)}static addIndex(t,s){t.addFieldInt16(2,s,0)}static addWrapmode(t,s){t.addFieldInt16(3,s,0)}static addFiltermode(t,s){t.addFieldInt16(4,s,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,s,e,i,h,a){return k.startCellMap(t),k.addName(t,s),k.addImagePath(t,e),k.addIndex(t,i),k.addWrapmode(t,h),k.addFiltermode(t,a),k.endCellMap(t)}}class bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCell(t,s){return(s||new bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,s){return t.setPosition(t.position()+C),(s||new bt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}cellMap(t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new k).__init(this.bb.__indirect(this.bb_pos+s),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,s){t.addFieldOffset(0,s,0)}static addCellMap(t,s){t.addFieldOffset(1,s,0)}static addIndexInCellMap(t,s){t.addFieldInt16(2,s,0)}static addX(t,s){t.addFieldInt16(3,s,0)}static addY(t,s){t.addFieldInt16(4,s,0)}static addWidth(t,s){t.addFieldInt16(5,s,0)}static addHeight(t,s){t.addFieldInt16(6,s,0)}static addPivotX(t,s){t.addFieldFloat32(7,s,0)}static addPivotY(t,s){t.addFieldFloat32(8,s,0)}static addU1(t,s){t.addFieldFloat32(9,s,0)}static addV1(t,s){t.addFieldFloat32(10,s,0)}static addU2(t,s){t.addFieldFloat32(11,s,0)}static addV2(t,s){t.addFieldFloat32(12,s,0)}static endCell(t){return t.endObject()}}class w{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectNode(t,s){return(s||new w).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,s){return t.setPosition(t.position()+C),(s||new w).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,s){t.addFieldInt16(0,s,0)}static addParentIndex(t,s){t.addFieldInt16(1,s,0)}static addType(t,s){t.addFieldInt16(2,s,0)}static addCellIndex(t,s){t.addFieldInt16(3,s,0)}static addBlendType(t,s){t.addFieldInt16(4,s,0)}static addNumBehavior(t,s){t.addFieldInt16(5,s,0)}static addBehaviorType(t,s){t.addFieldOffset(6,s,0)}static createBehaviorTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startBehaviorTypeVector(t,s){t.startVector(1,s,1)}static addBehavior(t,s){t.addFieldOffset(7,s,0)}static createBehaviorVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startBehaviorVector(t,s){t.startVector(4,s,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,s,e,i,h,a,o,n,f){return w.startEffectNode(t),w.addArrayIndex(t,s),w.addParentIndex(t,e),w.addType(t,i),w.addCellIndex(t,h),w.addBlendType(t,a),w.addNumBehavior(t,o),w.addBehaviorType(t,n),w.addBehavior(t,f),w.endEffectNode(t)}}class L{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectFile(t,s){return(s||new L).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,s){return t.setPosition(t.position()+C),(s||new L).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?(s||new w).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,s){t.addFieldOffset(0,s,0)}static addFps(t,s){t.addFieldInt16(1,s,0)}static addIsLockRandSeed(t,s){t.addFieldInt16(2,s,0)}static addLockRandSeed(t,s){t.addFieldInt16(3,s,0)}static addLayoutScaleX(t,s){t.addFieldInt16(4,s,0)}static addLayoutScaleY(t,s){t.addFieldInt16(5,s,0)}static addNumNodeList(t,s){t.addFieldInt16(6,s,0)}static addEffectNode(t,s){t.addFieldOffset(7,s,0)}static createEffectNodeVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectNodeVector(t,s){t.startVector(4,s,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,s,e,i,h,a,o,n,f){return L.startEffectFile(t),L.addName(t,s),L.addFps(t,e),L.addIsLockRandSeed(t,i),L.addLockRandSeed(t,h),L.addLayoutScaleX(t,a),L.addLayoutScaleY(t,o),L.addNumNodeList(t,n),L.addEffectNode(t,f),L.endEffectFile(t)}}var p=(c=>(c[c.INVISIBLE=1]="INVISIBLE",c[c.FLIP_H=2]="FLIP_H",c[c.FLIP_V=4]="FLIP_V",c[c.CELL_INDEX=8]="CELL_INDEX",c[c.POSITION_X=16]="POSITION_X",c[c.POSITION_Y=32]="POSITION_Y",c[c.POSITION_Z=64]="POSITION_Z",c[c.PIVOT_X=128]="PIVOT_X",c[c.PIVOT_Y=256]="PIVOT_Y",c[c.ROTATIONX=512]="ROTATIONX",c[c.ROTATIONY=1024]="ROTATIONY",c[c.ROTATIONZ=2048]="ROTATIONZ",c[c.SCALE_X=4096]="SCALE_X",c[c.SCALE_Y=8192]="SCALE_Y",c[c.LOCALSCALE_X=16384]="LOCALSCALE_X",c[c.LOCALSCALE_Y=32768]="LOCALSCALE_Y",c[c.OPACITY=65536]="OPACITY",c[c.LOCALOPACITY=131072]="LOCALOPACITY",c[c.PARTS_COLOR=262144]="PARTS_COLOR",c[c.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",c[c.SIZE_X=1048576]="SIZE_X",c[c.SIZE_Y=2097152]="SIZE_Y",c[c.U_MOVE=4194304]="U_MOVE",c[c.V_MOVE=8388608]="V_MOVE",c[c.UV_ROTATION=16777216]="UV_ROTATION",c[c.U_SCALE=33554432]="U_SCALE",c[c.V_SCALE=67108864]="V_SCALE",c[c.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",c[c.MASK=268435456]="MASK",c[c.PRIORITY=536870912]="PRIORITY",c[c.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",c[c.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",c))(p||{}),gt=(c=>(c[c.MESHDATA=1]="MESHDATA",c))(gt||{});class S{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsProjectData(t,s){return(s||new S).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,s){return t.setPosition(t.position()+C),(s||new S).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__string(this.bb_pos+s,t):null}cells(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new K).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new L).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,s){t.addFieldInt32(0,s,0)}static addVersion(t,s){t.addFieldInt32(1,s,0)}static addFlags(t,s){t.addFieldInt32(2,s,0)}static addImageBaseDir(t,s){t.addFieldOffset(3,s,0)}static addCells(t,s){t.addFieldOffset(4,s,0)}static createCellsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startCellsVector(t,s){t.startVector(4,s,4)}static addAnimePacks(t,s){t.addFieldOffset(5,s,0)}static createAnimePacksVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimePacksVector(t,s){t.startVector(4,s,4)}static addEffectFileList(t,s){t.addFieldOffset(6,s,0)}static createEffectFileListVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectFileListVector(t,s){t.startVector(4,s,4)}static addNumCells(t,s){t.addFieldInt16(7,s,0)}static addNumAnimePacks(t,s){t.addFieldInt16(8,s,0)}static addNumEffectFileList(t,s){t.addFieldInt16(9,s,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,s){t.finish(s,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,s){t.finish(s,"SSFB",!0)}static createProjectData(t,s,e,i,h,a,o,n,f,r,d){return S.startProjectData(t),S.addDataId(t,s),S.addVersion(t,e),S.addFlags(t,i),S.addImageBaseDir(t,h),S.addCells(t,a),S.addAnimePacks(t,o),S.addEffectFileList(t,n),S.addNumCells(t,f),S.addNumAnimePacks(t,r),S.addNumEffectFileList(t,d),S.endProjectData(t)}}class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,s){return t.prep(4,4),t.writeInt32(s),t.offset()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,s,e){return t.prep(4,8),t.writeInt32(e),t.writeInt32(s),t.offset()}}class lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,s,e,i,h){return t.prep(4,16),t.writeInt32(h),t.writeInt32(i),t.writeInt32(e),t.writeInt32(s),t.offset()}}class Z{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataString(t,s){return(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,s){return t.setPosition(t.position()+C),(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,s){t.addFieldInt32(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,s,e){return Z.startuserDataString(t),Z.addLength(t,s),Z.addData(t,e),Z.enduserDataString(t)}}let Ct=class{static getProjectData(t){const s=new ut(t);return S.getRootAsProjectData(s)}};class It{static getProjectData(t){return Ct.getProjectData(t)}}class nt{constructor(t,s=null,e=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=It.getProjectData(t),s!==null&&e!==null&&this.Setup(s,e)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,s){this.clearCaches();const e=this._fbObj.animePacksLength();let i=!1;for(let h=0;h>>0,r.colorBlendType===1&&(r.tint=r.colorArgb32&16777215)}}if(f>.MESHDATA){const l=this.curAnimation.meshsDataUv(o);r.meshIsBind=l.uv(0),r.meshNum=l.uv(1);let u=new Float32Array(r.meshNum*3);for(let b=0;b=0&&(t=this.InheritOpacity(t,this._parentIndex[s],e)),t}TransformVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformMeshVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPositionLocal(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX*i.localscaleX,f=t[1]*i.scaleY*i.localscaleY;return t[2]*=i.scaleX*i.localscaleX,t[3]*=i.scaleY*i.localscaleY,t[0]=a*n-o*f+i.positionX,t[1]=o*n+a*f-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static CoordinateGetDiagonalIntersection(t,s,e,i,h,a,o,n,f,r,d){const l=(n-a)*(o-e)-(o-h)*(n-i),u=(f-e)*(n-i)-(r-i)*(o-e),b=(f-e)*(n-a)-(r-i)*(o-h);if(b<=0&&b>=0)return d;const V=l/b,m=u/b;return 0<=V&&1>=V&&0<=m&&1>=m&&(t=e+V*(f-e),s=i+V*(r-i)),d[0]=t,d[1]=s,d}TransformVerts(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPosition(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX,f=t[1]*i.scaleY;return t[2]*=i.scaleX,t[3]*=i.scaleY,t[0]=a*n-o*f+i.positionX,t[1]=o*n+a*f-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static GetVerts(t,s,e){const i=s.size_X/2,h=s.size_Y/2,a=s.size_X*-(s.pivotX+t.pivotX()),o=s.size_Y*(s.pivotY+t.pivotY());return e.set([a,o,a-i,o-h,a+i,o-h,a-i,o+h,a+i,o+h]),e}static GetMeshVerts(t,s,e){for(let i=0;i{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}unload(t,s,e){D.Assets.unloadBundle(t).then(()=>{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}texture(t){return D.Assets.get(t)}}class St{constructor(){this.loader=new xt}load(t,s,e){return this.loader.load(t,s,e)}unload(t,s,e=null){return this.loader.unload(t,s,e)}texture(t){return this.loader.texture(t)}}class Dt{constructor(t,s,e,i){if(this.sspjMap={},this.resourceLoader=new St,typeof t=="string"&&e===void 0){let h=t;this.ssfbPath=h;const a=h.lastIndexOf("/");this.rootPath=h.substring(0,a)+"/",this.ssfbFile=h.substring(a+1),this.onComplete=s===void 0?null:s,this.status=0,this.LoadFlatBuffersProject()}else if(typeof s=="object"&&s.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let h=s,a=e;this.onComplete=i===void 0?null:i,this.load(h,a)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,s=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(s=>s.ok?Promise.resolve(s.arrayBuffer()):Promise.reject(new Error(s.statusText))).then(s=>{t.fbObj=It.getProjectData(new Uint8Array(s)),t.LoadCellResources()}).catch(s=>{this.onComplete!==null&&this.onComplete(null,s)})}LoadCellResources(){let t=[];this.sspjMap={};for(let e=0;e{e===null?(s.status=1,s.onComplete!==null&&s.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,e)})}load(t,s){this.fbObj=It.getProjectData(t);let e={};for(let h in s){const a=s[h];let o="";const n=a.byteLength;for(let f=0;f{h===null?(i.status=1,i.onComplete!==null&&i.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,h)})}}class Vt{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class _t extends D.Container{constructor(t,s=null,e=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new D.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.isRenderGroup=!0,this.ss6project=t,this.playerLib=new nt(t.fbObj,s,e),this.parentAlpha=1,s!==null&&e!==null&&this.Setup(s,e),this.on("added",(...i)=>{D.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...i)=>{D.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,s){this.playerLib.Setup(t,s),this.clearCaches();const e=this.playerLib.animePackData,i=e.partsLength();this.prevCellID=new Array(i),this.prevPartObject=new Array(i),this.substituteOverWrite=new Array(i),this.substituteKeyParam=new Array(i);for(let h=0;h=this.updateInterval){let h=!1;const a=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*a;let o=this.skipEnabled?a*this.playDirection:this.playDirection,n=this._currentFrame+o,f=Math.floor(n),r=n-f,d=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let l=f-d;l;l--){let u=d+1;if(u>this._endFrame)if(this._loops===-1)u=this._startFrame;else if(this._loops--,h=!0,this._loops===0){this._isPlaying=!1,u=s?this._startFrame:this._endFrame;break}else u=this._startFrame;d=u,this._isPlaying&&this.playerLib.HaveUserData(d)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(d))}if(this.playDirection<=-1)for(let l=d-f;l;l--){let u=d-1;if(u0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=s)}SetAnimationSection(t=-1,s=-1,e=-1){t>=0&&t=0&&s0?this._loops=e:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let s=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(s=t),this._currentFrame=s,this.resetLiveFrame();const e=Math.floor(this._currentFrame);this.SetFrameAnimation(e),this.playerLib.HaveUserData(e)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(e))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),s=this.endFrame;t!==s&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}GetPartsBlendMode(){const t=this.playerLib.animePackData,s=t.partsLength();let e=[];for(let i=0;i>>24)/255,o=((e&16711680)>>>16)/255,n=((e&65280)>>>8)/255,f=(e&255)/255;if(t===0){const r=1-s;h.matrix=[r,0,0,0,o*s,0,r,0,0,n*s,0,0,r,0,f*s,0,0,0,1,0]}else t===1?h.matrix=[o,0,0,0,0,0,n,0,0,0,0,0,f,0,0,0,0,0,a,0]:t===2?h.matrix=[1,0,0,0,o,0,1,0,0,n,0,0,1,0,f,0,0,0,a,0]:t===3&&(h.matrix=[1,0,0,0,-o,0,1,0,0,-n,0,0,1,0,-f,0,0,0,a,0]);return this.colorMatrixFilterCache[i]=h,h}SetFrameAnimation(t,s=0){const e=this.playerLib.GetFrameData(t);this.removeChildren();const i=e.length;for(let h=0;h=0&&this.prevCellID[a]!==n&&(f?.destroy(),f=this.MakeCellMesh(n),f.label=r.name());break;case O.Mesh:n>=0&&this.prevCellID[a]!==n&&(f?.destroy(),f=this.MakeMeshCellMesh(a,n),f.label=r.name());break;case O.Nulltype:case O.Joint:this.prevCellID[a]!==n&&(f?.destroy(),f=new D.Container,f.label=r.name());break;default:n>=0&&this.prevCellID[a]!==n&&(f?.destroy(),f=this.MakeCellMesh(n),f.label=r.name());break}if(f!=null)switch(this.prevCellID[a]=n,this.prevPartObject[a]=f,d){case O.Instance:{const b=f;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,o.index,t),b.rotation=this._instancePos[4]*Math.PI/180,b.position.set(this._instancePos[0],this._instancePos[1]),b.scale.set(this._instancePos[2],this._instancePos[3]);let V=o.opacity/255;o.localopacity<255&&(V=o.localopacity/255),b.SetAlpha(V*this.parentAlpha),b.visible=!o.f_hide;let m=o.instanceValue_curKeyframe,F=o.instanceValue_startFrame,I=o.instanceValue_endFrame,A=o.instanceValue_speed,H=o.instanceValue_loopNum,tt=!1,U=!1,v=!1,X=!1;const W=1,J=2,M=4,P=8,E=o.instanceValue_loopflag;E&W&&(tt=!0),E&J&&(U=!0),E&M&&(v=!0),E&P&&(X=!0),l&&(F=u.refStartframe,I=u.refEndframe,A=u.refSpeed,H=u.refloopNum,tt=u.infinity,U=u.reverse,v=u.pingpong,X=u.independent),(b._startFrame!==F||b._endFrame!==I)&&b.SetAnimationSection(F,I);let Y=t;X===!0&&(this.liveFrame[h]+=s,Y=Math.floor(this.liveFrame[h]));const st=m;let g=Math.floor((Y-st)*A);if(g<0||st>Y)continue;const B=I-F+1;if(B<=0)continue;let N=Math.floor(g/B),T=H;v&&(T=T*2),tt||N>=T&&(g=B-1,N=T-1);const $=Math.floor(g%B);let z=0;v&&N%2===1&&(U?U=!1:U=!0),this.playDirection<=-1&&(U=!U),U?z=I-$:z=$+F,b.SetFrame(Math.floor(z)),this.addChild(b);break}case O.Normal:case O.Mesh:case O.Joint:case O.Mask:{const b=f,V=b.geometry.attributes.aPosition.buffer;let m=V.data;const F=this.playerLib.fbObj.cells(n);let I;if(d===O.Mesh?o.meshIsBind===0?I=this.playerLib.TransformMeshVertsLocal(nt.GetMeshVerts(F,o,m),o.index,t):I=nt.GetMeshVerts(F,o,m):(I=d===O.Joint?new Float32Array(10):m,I=this.playerLib.TransformVertsLocal(nt.GetVerts(F,o,I),o.index,t)),o.flag1&p.VERTEX_TRANSFORM){const v=I[6],X=I[3*2+1],W=I[1*2+0],J=I[1*2+1],M=I[4*2+0],P=I[4*2+1],E=I[2*2+0],Y=I[2*2+1],st=(v+M)*.5,g=(X+P)*.5,B=(v+W)*.5,N=(X+J)*.5,T=(W+E)*.5,$=(J+Y)*.5,z=(M+E)*.5,ot=(P+Y)*.5,rt=nt.CoordinateGetDiagonalIntersection(I[0],I[1],st,g,z,ot,B,N,T,$,this._CoordinateGetDiagonalIntersectionVec2);I[0]=rt[0],I[1]=rt[1]}const A=I[0],H=I[1];for(let v=0;v>>24)/255;b.alpha=b.alpha*v}const U=this.alphaBlendType[a];(U==="multiply"||U==="screen")&&(b.alpha=1),d!==O.Mask&&this.addChild(b);break}case O.Nulltype:{const b=f,V=this.playerLib.InheritOpacity(1,o.index,t);b.alpha=V*o.localopacity/255;const m=this.playerLib.TransformVerts(nt.GetDummyVerts(),o.index,t),F=m[0],I=m[1];b.position.set(F,I);const A=Math.atan2(m[5]-m[3],m[4]-m[2]),H=Math.atan2(m[7]-m[3],m[6]-m[2]);b.rotation=A,b.skew.x=H-A-Math.PI/2;break}}}}ChangeInstanceAnime(t,s,e,i,h=null){let a=!1;if(this.animePackName!==null&&this.animeName!==null){let o=this.playerLib.animePackData,n=o.partsLength();for(let f=0;f0){const h=new Float32Array(i-2),a=e.uv(1);for(let l=2;l>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8}writeInt32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeUint32(t,s){this.bytes_[t]=s,this.bytes_[t+1]=s>>8,this.bytes_[t+2]=s>>16,this.bytes_[t+3]=s>>24}writeInt64(t,s){this.writeInt32(t,Number(BigInt.asIntN(32,s))),this.writeInt32(t+4,Number(BigInt.asIntN(32,s>>BigInt(32))))}writeUint64(t,s){this.writeUint32(t,Number(BigInt.asUintN(32,s))),this.writeUint32(t+4,Number(BigInt.asUintN(32,s>>BigInt(32))))}writeFloat32(t,s){mt[0]=s,this.writeInt32(t,q[0])}writeFloat64(t,s){Ft[0]=s,this.writeInt32(t,q[ft?0:1]),this.writeInt32(t+4,q[ft?1:0])}getBufferIdentifier(){if(this.bytes_.length=0;e--)t.addInt32(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static endpartState(t){return t.endObject()}static createpartState(t,s,e,i,h){return j.startpartState(t),j.addIndex(t,s),j.addFlag1(t,e),j.addFlag2(t,i),j.addData(t,h),j.endpartState(t)}}class et{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsframeDataIndex(t,s){return(s||new et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsframeDataIndex(t,s){return t.setPosition(t.position()+C),(s||new et).__init(t.readInt32(t.position())+t.position(),t)}states(t,s){const e=this.bb.__offset(this.bb_pos,4);return e?(s||new j).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}statesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}static startframeDataIndex(t){t.startObject(1)}static addStates(t,s){t.addFieldOffset(0,s,0)}static createStatesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startStatesVector(t,s){t.startVector(4,s,4)}static endframeDataIndex(t){return t.endObject()}static createframeDataIndex(t,s){return et.startframeDataIndex(t),et.addStates(t,s),et.endframeDataIndex(t)}}class Q{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAslabelDataItem(t,s){return(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAslabelDataItem(t,s){return t.setPosition(t.position()+C),(s||new Q).__init(t.readInt32(t.position())+t.position(),t)}label(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}frameIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}static startlabelDataItem(t){t.startObject(2)}static addLabel(t,s){t.addFieldOffset(0,s,0)}static addFrameIndex(t,s){t.addFieldInt16(1,s,0)}static endlabelDataItem(t){return t.endObject()}static createlabelDataItem(t,s,e){return Q.startlabelDataItem(t),Q.addLabel(t,s),Q.addFrameIndex(t,e),Q.endlabelDataItem(t)}}class it{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataIndices(t,s){return(s||new it).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataIndices(t,s){return t.setPosition(t.position()+C),(s||new it).__init(t.readInt32(t.position())+t.position(),t)}indices(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}indicesLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}indicesArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataIndices(t){t.startObject(1)}static addIndices(t,s){t.addFieldOffset(0,s,0)}static createIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startIndicesVector(t,s){t.startVector(4,s,4)}static endmeshDataIndices(t){return t.endObject()}static createmeshDataIndices(t,s){return it.startmeshDataIndices(t),it.addIndices(t,s),it.endmeshDataIndices(t)}}class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsmeshDataUV(t,s){return(s||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsmeshDataUV(t,s){return t.setPosition(t.position()+C),(s||new at).__init(t.readInt32(t.position())+t.position(),t)}uv(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readFloat32(this.bb.__vector(this.bb_pos+s)+t*4):0}uvLength(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__vector_len(this.bb_pos+t):0}uvArray(){const t=this.bb.__offset(this.bb_pos,4);return t?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startmeshDataUV(t){t.startObject(1)}static addUv(t,s){t.addFieldOffset(0,s,0)}static createUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addFloat32(s[e]);return t.endVector()}static startUvVector(t,s){t.startVector(4,s,4)}static endmeshDataUV(t){return t.endObject()}static createmeshDataUV(t,s){return at.startmeshDataUV(t),at.addUv(t,s),at.endmeshDataUV(t)}}class R{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataItem(t,s){return(s||new R).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataItem(t,s){return t.setPosition(t.position()+C),(s||new R).__init(t.readInt32(t.position())+t.position(),t)}flags(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}arrayIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}dataType(t){const s=this.bb.__offset(this.bb_pos,8);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}dataTypeLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}dataTypeArray(){const t=this.bb.__offset(this.bb_pos,8);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}data(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}dataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataItem(t){t.startObject(4)}static addFlags(t,s){t.addFieldInt16(0,s,0)}static addArrayIndex(t,s){t.addFieldInt16(1,s,0)}static addDataType(t,s){t.addFieldOffset(2,s,0)}static createDataTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startDataTypeVector(t,s){t.startVector(1,s,1)}static addData(t,s){t.addFieldOffset(3,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataItem(t){return t.endObject()}static createuserDataItem(t,s,e,i,h){return R.startuserDataItem(t),R.addFlags(t,s),R.addArrayIndex(t,e),R.addDataType(t,i),R.addData(t,h),R.enduserDataItem(t)}}class G{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataPerFrame(t,s){return(s||new G).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataPerFrame(t,s){return t.setPosition(t.position()+C),(s||new G).__init(t.readInt32(t.position())+t.position(),t)}frameIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}data(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new R).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}dataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}static startuserDataPerFrame(t){t.startObject(2)}static addFrameIndex(t,s){t.addFieldInt16(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static createDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDataVector(t,s){t.startVector(4,s,4)}static enduserDataPerFrame(t){return t.endObject()}static createuserDataPerFrame(t,s,e){return G.startuserDataPerFrame(t),G.addFrameIndex(t,s),G.addData(t,e),G.enduserDataPerFrame(t)}}class y{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimationData(t,s){return(s||new y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimationData(t,s){return t.setPosition(t.position()+C),(s||new y).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}defaultData(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new _).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}defaultDataLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}frameData(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new et).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}frameDataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}userData(t,s){const e=this.bb.__offset(this.bb_pos,10);return e?(s||new G).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}userDataLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}labelData(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new Q).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}labelDataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataUv(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new at).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataUvLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}meshsDataIndices(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new it).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}meshsDataIndicesLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}startFrames(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}endFrames(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}totalFrames(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}fps(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readInt16(this.bb_pos+t):0}labelNum(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeW(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readInt16(this.bb_pos+t):0}canvasSizeH(){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.readInt16(this.bb_pos+t):0}canvasPvotX(){const t=this.bb.__offset(this.bb_pos,32);return t?this.bb.readFloat32(this.bb_pos+t):0}canvasPvotY(){const t=this.bb.__offset(this.bb_pos,34);return t?this.bb.readFloat32(this.bb_pos+t):0}static startAnimationData(t){t.startObject(16)}static addName(t,s){t.addFieldOffset(0,s,0)}static addDefaultData(t,s){t.addFieldOffset(1,s,0)}static createDefaultDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startDefaultDataVector(t,s){t.startVector(4,s,4)}static addFrameData(t,s){t.addFieldOffset(2,s,0)}static createFrameDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startFrameDataVector(t,s){t.startVector(4,s,4)}static addUserData(t,s){t.addFieldOffset(3,s,0)}static createUserDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startUserDataVector(t,s){t.startVector(4,s,4)}static addLabelData(t,s){t.addFieldOffset(4,s,0)}static createLabelDataVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startLabelDataVector(t,s){t.startVector(4,s,4)}static addMeshsDataUv(t,s){t.addFieldOffset(5,s,0)}static createMeshsDataUvVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataUvVector(t,s){t.startVector(4,s,4)}static addMeshsDataIndices(t,s){t.addFieldOffset(6,s,0)}static createMeshsDataIndicesVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startMeshsDataIndicesVector(t,s){t.startVector(4,s,4)}static addStartFrames(t,s){t.addFieldInt16(7,s,0)}static addEndFrames(t,s){t.addFieldInt16(8,s,0)}static addTotalFrames(t,s){t.addFieldInt16(9,s,0)}static addFps(t,s){t.addFieldInt16(10,s,0)}static addLabelNum(t,s){t.addFieldInt16(11,s,0)}static addCanvasSizeW(t,s){t.addFieldInt16(12,s,0)}static addCanvasSizeH(t,s){t.addFieldInt16(13,s,0)}static addCanvasPvotX(t,s){t.addFieldFloat32(14,s,0)}static addCanvasPvotY(t,s){t.addFieldFloat32(15,s,0)}static endAnimationData(t){return t.endObject()}static createAnimationData(t,s,e,i,h,a,o,n,d,r,f,b,u,l,V,m,F){return y.startAnimationData(t),y.addName(t,s),y.addDefaultData(t,e),y.addFrameData(t,i),y.addUserData(t,h),y.addLabelData(t,a),y.addMeshsDataUv(t,o),y.addMeshsDataIndices(t,n),y.addStartFrames(t,d),y.addEndFrames(t,r),y.addTotalFrames(t,f),y.addFps(t,b),y.addLabelNum(t,u),y.addCanvasSizeW(t,l),y.addCanvasSizeH(t,V),y.addCanvasPvotX(t,m),y.addCanvasPvotY(t,F),y.endAnimationData(t)}}var O=(c=>(c[c.Invalid=-1]="Invalid",c[c.Nulltype=0]="Nulltype",c[c.Normal=1]="Normal",c[c.Text=2]="Text",c[c.Instance=3]="Instance",c[c.Armature=4]="Armature",c[c.Effect=5]="Effect",c[c.Mesh=6]="Mesh",c[c.Movenode=7]="Movenode",c[c.Constraint=8]="Constraint",c[c.Mask=9]="Mask",c[c.Joint=10]="Joint",c[c.Bonepoint=11]="Bonepoint",c))(O||{});class x{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsPartData(t,s){return(s||new x).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsPartData(t,s){return t.setPosition(t.position()+C),(s||new x).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt8(this.bb_pos+t):O.Nulltype}boundsType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}alphaBlendType(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}refname(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.__string(this.bb_pos+s,t):null}effectfilename(t){const s=this.bb.__offset(this.bb_pos,18);return s?this.bb.__string(this.bb_pos+s,t):null}colorLabel(t){const s=this.bb.__offset(this.bb_pos,20);return s?this.bb.__string(this.bb_pos+s,t):null}maskInfluence(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startPartData(t){t.startObject(10)}static addName(t,s){t.addFieldOffset(0,s,0)}static addIndex(t,s){t.addFieldInt16(1,s,0)}static addParentIndex(t,s){t.addFieldInt16(2,s,0)}static addType(t,s){t.addFieldInt8(3,s,O.Nulltype)}static addBoundsType(t,s){t.addFieldInt16(4,s,0)}static addAlphaBlendType(t,s){t.addFieldInt16(5,s,0)}static addRefname(t,s){t.addFieldOffset(6,s,0)}static addEffectfilename(t,s){t.addFieldOffset(7,s,0)}static addColorLabel(t,s){t.addFieldOffset(8,s,0)}static addMaskInfluence(t,s){t.addFieldInt16(9,s,0)}static endPartData(t){return t.endObject()}static createPartData(t,s,e,i,h,a,o,n,d,r,f){return x.startPartData(t),x.addName(t,s),x.addIndex(t,e),x.addParentIndex(t,i),x.addType(t,h),x.addBoundsType(t,a),x.addAlphaBlendType(t,o),x.addRefname(t,n),x.addEffectfilename(t,d),x.addColorLabel(t,r),x.addMaskInfluence(t,f),x.endPartData(t)}}class K{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsAnimePackData(t,s){return(s||new K).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsAnimePackData(t,s){return t.setPosition(t.position()+C),(s||new K).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}parts(t,s){const e=this.bb.__offset(this.bb_pos,6);return e?(s||new x).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}partsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}animations(t,s){const e=this.bb.__offset(this.bb_pos,8);return e?(s||new y).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animationsLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startAnimePackData(t){t.startObject(3)}static addName(t,s){t.addFieldOffset(0,s,0)}static addParts(t,s){t.addFieldOffset(1,s,0)}static createPartsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startPartsVector(t,s){t.startVector(4,s,4)}static addAnimations(t,s){t.addFieldOffset(2,s,0)}static createAnimationsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimationsVector(t,s){t.startVector(4,s,4)}static endAnimePackData(t){return t.endObject()}static createAnimePackData(t,s,e,i){return K.startAnimePackData(t),K.addName(t,s),K.addParts(t,e),K.addAnimations(t,i),K.endAnimePackData(t)}}class Y{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCellMap(t,s){return(s||new Y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCellMap(t,s){return t.setPosition(t.position()+C),(s||new Y).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}imagePath(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}index(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}wrapmode(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}filtermode(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}static startCellMap(t){t.startObject(5)}static addName(t,s){t.addFieldOffset(0,s,0)}static addImagePath(t,s){t.addFieldOffset(1,s,0)}static addIndex(t,s){t.addFieldInt16(2,s,0)}static addWrapmode(t,s){t.addFieldInt16(3,s,0)}static addFiltermode(t,s){t.addFieldInt16(4,s,0)}static endCellMap(t){return t.endObject()}static createCellMap(t,s,e,i,h,a){return Y.startCellMap(t),Y.addName(t,s),Y.addImagePath(t,e),Y.addIndex(t,i),Y.addWrapmode(t,h),Y.addFiltermode(t,a),Y.endCellMap(t)}}class lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsCell(t,s){return(s||new lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsCell(t,s){return t.setPosition(t.position()+C),(s||new lt).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}cellMap(t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new Y).__init(this.bb.__indirect(this.bb_pos+s),this.bb):null}indexInCellMap(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}x(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}y(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}width(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}height(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}pivotX(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readFloat32(this.bb_pos+t):0}pivotY(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb_pos+t):0}u1(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readFloat32(this.bb_pos+t):0}v1(){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.readFloat32(this.bb_pos+t):0}u2(){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readFloat32(this.bb_pos+t):0}v2(){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.readFloat32(this.bb_pos+t):0}static startCell(t){t.startObject(13)}static addName(t,s){t.addFieldOffset(0,s,0)}static addCellMap(t,s){t.addFieldOffset(1,s,0)}static addIndexInCellMap(t,s){t.addFieldInt16(2,s,0)}static addX(t,s){t.addFieldInt16(3,s,0)}static addY(t,s){t.addFieldInt16(4,s,0)}static addWidth(t,s){t.addFieldInt16(5,s,0)}static addHeight(t,s){t.addFieldInt16(6,s,0)}static addPivotX(t,s){t.addFieldFloat32(7,s,0)}static addPivotY(t,s){t.addFieldFloat32(8,s,0)}static addU1(t,s){t.addFieldFloat32(9,s,0)}static addV1(t,s){t.addFieldFloat32(10,s,0)}static addU2(t,s){t.addFieldFloat32(11,s,0)}static addV2(t,s){t.addFieldFloat32(12,s,0)}static endCell(t){return t.endObject()}}class L{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectNode(t,s){return(s||new L).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectNode(t,s){return t.setPosition(t.position()+C),(s||new L).__init(t.readInt32(t.position())+t.position(),t)}arrayIndex(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):0}parentIndex(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}type(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}cellIndex(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}blendType(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}numBehavior(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}behaviorType(t){const s=this.bb.__offset(this.bb_pos,16);return s?this.bb.readUint8(this.bb.__vector(this.bb_pos+s)+t):0}behaviorTypeLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}behaviorTypeArray(){const t=this.bb.__offset(this.bb_pos,16);return t?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}behavior(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__union(s,this.bb.__vector(this.bb_pos+e)+t*4):null}behaviorLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectNode(t){t.startObject(8)}static addArrayIndex(t,s){t.addFieldInt16(0,s,0)}static addParentIndex(t,s){t.addFieldInt16(1,s,0)}static addType(t,s){t.addFieldInt16(2,s,0)}static addCellIndex(t,s){t.addFieldInt16(3,s,0)}static addBlendType(t,s){t.addFieldInt16(4,s,0)}static addNumBehavior(t,s){t.addFieldInt16(5,s,0)}static addBehaviorType(t,s){t.addFieldOffset(6,s,0)}static createBehaviorTypeVector(t,s){t.startVector(1,s.length,1);for(let e=s.length-1;e>=0;e--)t.addInt8(s[e]);return t.endVector()}static startBehaviorTypeVector(t,s){t.startVector(1,s,1)}static addBehavior(t,s){t.addFieldOffset(7,s,0)}static createBehaviorVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startBehaviorVector(t,s){t.startVector(4,s,4)}static endEffectNode(t){return t.endObject()}static createEffectNode(t,s,e,i,h,a,o,n,d){return L.startEffectNode(t),L.addArrayIndex(t,s),L.addParentIndex(t,e),L.addType(t,i),L.addCellIndex(t,h),L.addBlendType(t,a),L.addNumBehavior(t,o),L.addBehaviorType(t,n),L.addBehavior(t,d),L.endEffectNode(t)}}class w{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsEffectFile(t,s){return(s||new w).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsEffectFile(t,s){return t.setPosition(t.position()+C),(s||new w).__init(t.readInt32(t.position())+t.position(),t)}name(t){const s=this.bb.__offset(this.bb_pos,4);return s?this.bb.__string(this.bb_pos+s,t):null}fps(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt16(this.bb_pos+t):0}isLockRandSeed(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt16(this.bb_pos+t):0}lockRandSeed(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleX(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readInt16(this.bb_pos+t):0}layoutScaleY(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.readInt16(this.bb_pos+t):0}numNodeList(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt16(this.bb_pos+t):0}effectNode(t,s){const e=this.bb.__offset(this.bb_pos,18);return e?(s||new L).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectNodeLength(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__vector_len(this.bb_pos+t):0}static startEffectFile(t){t.startObject(8)}static addName(t,s){t.addFieldOffset(0,s,0)}static addFps(t,s){t.addFieldInt16(1,s,0)}static addIsLockRandSeed(t,s){t.addFieldInt16(2,s,0)}static addLockRandSeed(t,s){t.addFieldInt16(3,s,0)}static addLayoutScaleX(t,s){t.addFieldInt16(4,s,0)}static addLayoutScaleY(t,s){t.addFieldInt16(5,s,0)}static addNumNodeList(t,s){t.addFieldInt16(6,s,0)}static addEffectNode(t,s){t.addFieldOffset(7,s,0)}static createEffectNodeVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectNodeVector(t,s){t.startVector(4,s,4)}static endEffectFile(t){return t.endObject()}static createEffectFile(t,s,e,i,h,a,o,n,d){return w.startEffectFile(t),w.addName(t,s),w.addFps(t,e),w.addIsLockRandSeed(t,i),w.addLockRandSeed(t,h),w.addLayoutScaleX(t,a),w.addLayoutScaleY(t,o),w.addNumNodeList(t,n),w.addEffectNode(t,d),w.endEffectFile(t)}}var p=(c=>(c[c.INVISIBLE=1]="INVISIBLE",c[c.FLIP_H=2]="FLIP_H",c[c.FLIP_V=4]="FLIP_V",c[c.CELL_INDEX=8]="CELL_INDEX",c[c.POSITION_X=16]="POSITION_X",c[c.POSITION_Y=32]="POSITION_Y",c[c.POSITION_Z=64]="POSITION_Z",c[c.PIVOT_X=128]="PIVOT_X",c[c.PIVOT_Y=256]="PIVOT_Y",c[c.ROTATIONX=512]="ROTATIONX",c[c.ROTATIONY=1024]="ROTATIONY",c[c.ROTATIONZ=2048]="ROTATIONZ",c[c.SCALE_X=4096]="SCALE_X",c[c.SCALE_Y=8192]="SCALE_Y",c[c.LOCALSCALE_X=16384]="LOCALSCALE_X",c[c.LOCALSCALE_Y=32768]="LOCALSCALE_Y",c[c.OPACITY=65536]="OPACITY",c[c.LOCALOPACITY=131072]="LOCALOPACITY",c[c.PARTS_COLOR=262144]="PARTS_COLOR",c[c.VERTEX_TRANSFORM=524288]="VERTEX_TRANSFORM",c[c.SIZE_X=1048576]="SIZE_X",c[c.SIZE_Y=2097152]="SIZE_Y",c[c.U_MOVE=4194304]="U_MOVE",c[c.V_MOVE=8388608]="V_MOVE",c[c.UV_ROTATION=16777216]="UV_ROTATION",c[c.U_SCALE=33554432]="U_SCALE",c[c.V_SCALE=67108864]="V_SCALE",c[c.BOUNDINGRADIUS=134217728]="BOUNDINGRADIUS",c[c.MASK=268435456]="MASK",c[c.PRIORITY=536870912]="PRIORITY",c[c.INSTANCE_KEYFRAME=1073741824]="INSTANCE_KEYFRAME",c[c.EFFECT_KEYFRAME=2147483648]="EFFECT_KEYFRAME",c))(p||{}),gt=(c=>(c[c.MESHDATA=1]="MESHDATA",c))(gt||{});class D{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsProjectData(t,s){return(s||new D).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsProjectData(t,s){return t.setPosition(t.position()+C),(s||new D).__init(t.readInt32(t.position())+t.position(),t)}static bufferHasIdentifier(t){return t.__has_identifier("SSFB")}dataId(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb_pos+t):0}version(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint32(this.bb_pos+t):0}flags(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint32(this.bb_pos+t):0}imageBaseDir(t){const s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__string(this.bb_pos+s,t):null}cells(t,s){const e=this.bb.__offset(this.bb_pos,12);return e?(s||new lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}cellsLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}animePacks(t,s){const e=this.bb.__offset(this.bb_pos,14);return e?(s||new K).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}animePacksLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}effectFileList(t,s){const e=this.bb.__offset(this.bb_pos,16);return e?(s||new w).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+t*4),this.bb):null}effectFileListLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}numCells(){const t=this.bb.__offset(this.bb_pos,18);return t?this.bb.readInt16(this.bb_pos+t):0}numAnimePacks(){const t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readInt16(this.bb_pos+t):0}numEffectFileList(){const t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt16(this.bb_pos+t):0}static startProjectData(t){t.startObject(10)}static addDataId(t,s){t.addFieldInt32(0,s,0)}static addVersion(t,s){t.addFieldInt32(1,s,0)}static addFlags(t,s){t.addFieldInt32(2,s,0)}static addImageBaseDir(t,s){t.addFieldOffset(3,s,0)}static addCells(t,s){t.addFieldOffset(4,s,0)}static createCellsVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startCellsVector(t,s){t.startVector(4,s,4)}static addAnimePacks(t,s){t.addFieldOffset(5,s,0)}static createAnimePacksVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startAnimePacksVector(t,s){t.startVector(4,s,4)}static addEffectFileList(t,s){t.addFieldOffset(6,s,0)}static createEffectFileListVector(t,s){t.startVector(4,s.length,4);for(let e=s.length-1;e>=0;e--)t.addOffset(s[e]);return t.endVector()}static startEffectFileListVector(t,s){t.startVector(4,s,4)}static addNumCells(t,s){t.addFieldInt16(7,s,0)}static addNumAnimePacks(t,s){t.addFieldInt16(8,s,0)}static addNumEffectFileList(t,s){t.addFieldInt16(9,s,0)}static endProjectData(t){return t.endObject()}static finishProjectDataBuffer(t,s){t.finish(s,"SSFB")}static finishSizePrefixedProjectDataBuffer(t,s){t.finish(s,"SSFB",!0)}static createProjectData(t,s,e,i,h,a,o,n,d,r,f){return D.startProjectData(t),D.addDataId(t,s),D.addVersion(t,e),D.addFlags(t,i),D.addImageBaseDir(t,h),D.addCells(t,a),D.addAnimePacks(t,o),D.addEffectFileList(t,n),D.addNumCells(t,d),D.addNumAnimePacks(t,r),D.addNumEffectFileList(t,f),D.endProjectData(t)}}class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}integer(){return this.bb.readInt32(this.bb_pos)}static sizeOf(){return 4}static createuserDataInteger(t,s){return t.prep(4,4),t.writeInt32(s),t.offset()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}static sizeOf(){return 8}static createuserDataPoint(t,s,e){return t.prep(4,8),t.writeInt32(e),t.writeInt32(s),t.offset()}}class bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}x(){return this.bb.readInt32(this.bb_pos)}y(){return this.bb.readInt32(this.bb_pos+4)}w(){return this.bb.readInt32(this.bb_pos+8)}h(){return this.bb.readInt32(this.bb_pos+12)}static sizeOf(){return 16}static createuserDataRect(t,s,e,i,h){return t.prep(4,16),t.writeInt32(h),t.writeInt32(i),t.writeInt32(e),t.writeInt32(s),t.offset()}}class Z{constructor(){this.bb=null,this.bb_pos=0}__init(t,s){return this.bb_pos=t,this.bb=s,this}static getRootAsuserDataString(t,s){return(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsuserDataString(t,s){return t.setPosition(t.position()+C),(s||new Z).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}data(t){const s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__string(this.bb_pos+s,t):null}static startuserDataString(t){t.startObject(2)}static addLength(t,s){t.addFieldInt32(0,s,0)}static addData(t,s){t.addFieldOffset(1,s,0)}static enduserDataString(t){return t.endObject()}static createuserDataString(t,s,e){return Z.startuserDataString(t),Z.addLength(t,s),Z.addData(t,e),Z.enduserDataString(t)}}let Ct=class{static getProjectData(t){const s=new ut(t);return D.getRootAsProjectData(s)}};class It{static getProjectData(t){return Ct.getProjectData(t)}}class nt{constructor(t,s=null,e=null){this.curAnimePackName=null,this.curAnimeName=null,this.curAnimation=null,this.curAnimePackData=null,this._animePackIdx=-1,this._parentIndex=[],this._prio2index=[],this.userData=[],this.frameDataCache=null,this.currentCachedFrameNumber=-1,this.defaultFrameMap=[],this._uint32=new Uint32Array(1),this._float32=new Float32Array(this._uint32.buffer),t.hasOwnProperty("bb")?this._fbObj=t:this._fbObj=It.getProjectData(t),s!==null&&e!==null&&this.Setup(s,e)}get fbObj(){return this._fbObj}get animePackName(){return this.curAnimePackName}get animeName(){return this.curAnimeName}get animePackIdx(){return this._animePackIdx}get animePackData(){return this.curAnimePackData}get animationData(){return this.curAnimation}get parentIndex(){return this._parentIndex}get prio2index(){return this._prio2index}Setup(t,s){this.clearCaches();const e=this._fbObj.animePacksLength();let i=!1;for(let h=0;h>>0,r.colorBlendType===1&&(r.tint=r.colorArgb32&16777215)}}if(d>.MESHDATA){const b=this.curAnimation.meshsDataUv(o);r.meshIsBind=b.uv(0),r.meshNum=b.uv(1);let u=new Float32Array(r.meshNum*3);for(let l=0;l=0&&(t=this.InheritOpacity(t,this._parentIndex[s],e)),t}TransformVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformMeshVertsLocal(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPositionLocal(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX*i.localscaleX,d=t[1]*i.scaleY*i.localscaleY;return t[2]*=i.scaleX*i.localscaleX,t[3]*=i.scaleY*i.localscaleY,t[0]=a*n-o*d+i.positionX,t[1]=o*n+a*d-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static CoordinateGetDiagonalIntersection(t,s,e,i,h,a,o,n,d,r,f){const b=(n-a)*(o-e)-(o-h)*(n-i),u=(d-e)*(n-i)-(r-i)*(o-e),l=(d-e)*(n-a)-(r-i)*(o-h);if(l<=0&&l>=0)return f;const V=b/l,m=u/l;return 0<=V&&1>=V&&0<=m&&1>=m&&(t=e+V*(d-e),s=i+V*(r-i)),f[0]=t,f[1]=s,f}TransformVerts(t,s,e){const i=this.GetFrameData(e)[s],h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h);for(let n=0;n=0&&(t=this.TransformVerts(t,this._parentIndex[s],e)),t}TransformPosition(t,s,e){const i=this.GetFrameData(e)[s];t[4]+=-i.rotationZ;const h=-i.rotationZ*Math.PI/180,a=Math.cos(h),o=Math.sin(h),n=t[0]*i.scaleX,d=t[1]*i.scaleY;return t[2]*=i.scaleX,t[3]*=i.scaleY,t[0]=a*n-o*d+i.positionX,t[1]=o*n+a*d-i.positionY,this._parentIndex[s]>=0&&(t=this.TransformPosition(t,this._parentIndex[s],e)),t}static GetVerts(t,s,e){const i=s.size_X/2,h=s.size_Y/2,a=s.size_X*-(s.pivotX+t.pivotX()),o=s.size_Y*(s.pivotY+t.pivotY());return e.set([a,o,a-i,o-h,a+i,o-h,a-i,o+h,a+i,o+h]),e}static GetMeshVerts(t,s,e){for(let i=0;i{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}unload(t,s,e){S.Assets.unloadBundle(t).then(()=>{e!==null&&e(null)}).catch(i=>{e!==null&&e(i)})}texture(t){return S.Assets.get(t)}}class Dt{constructor(){this.loader=new xt}load(t,s,e){return this.loader.load(t,s,e)}unload(t,s,e=null){return this.loader.unload(t,s,e)}texture(t){return this.loader.texture(t)}}class St{constructor(t,s,e,i){if(this.sspjMap={},this.resourceLoader=new Dt,typeof t=="string"&&e===void 0){let h=t;this.ssfbPath=h;const a=h.lastIndexOf("/");this.rootPath=h.substring(0,a)+"/",this.ssfbFile=h.substring(a+1),this.onComplete=s===void 0?null:s,this.status=0,this.LoadFlatBuffersProject()}else if(typeof s=="object"&&s.constructor===Uint8Array){this.ssfbPath=null,this.rootPath=null,this.ssfbFile=t;let h=s,a=e;this.onComplete=i===void 0?null:i,this.load(h,a)}}getBundle(){return this.ssfbFile}getTexture(t){return this.resourceLoader.texture(t)}dispose(t=null){this.resourceLoader.unload(this.getBundle(),this.sspjMap,s=>{t!==null&&t()})}LoadFlatBuffersProject(){const t=this;fetch(this.ssfbPath,{method:"get"}).then(s=>s.ok?Promise.resolve(s.arrayBuffer()):Promise.reject(new Error(s.statusText))).then(s=>{t.fbObj=It.getProjectData(new Uint8Array(s)),t.LoadCellResources()}).catch(s=>{this.onComplete!==null&&this.onComplete(null,s)})}LoadCellResources(){let t=[];this.sspjMap={};for(let e=0;e{e===null?(s.status=1,s.onComplete!==null&&s.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,e)})}load(t,s){this.fbObj=It.getProjectData(t);let e={};for(let h in s){const a=s[h];let o="";const n=a.byteLength;for(let d=0;d{h===null?(i.status=1,i.onComplete!==null&&i.onComplete(this,null)):this.onComplete!==null&&this.onComplete(null,h)})}}class Vt{constructor(){this.refStartframe=0,this.refEndframe=0,this.refSpeed=1,this.refloopNum=0,this.infinity=!1,this.reverse=!1,this.pingpong=!1,this.independent=!1}}class _t extends S.Container{constructor(t,s=null,e=null){super(),this.liveFrame=[],this.colorMatrixFilterCache=[],this.parentAlpha=1,this.prevCellID=[],this.prevPartObject=[],this.changeCellID=[],this.substituteOverWrite=[],this.substituteKeyParam=[],this.alphaBlendType=[],this.defaultColorFilter=new S.ColorMatrixFilter,this._instancePos=new Float32Array(5),this._CoordinateGetDiagonalIntersectionVec2=new Float32Array(2),this.isRenderGroup=!0,this.ss6project=t,this.playerLib=new nt(t.fbObj,s,e),this.parentAlpha=1,s!==null&&e!==null&&this.Setup(s,e),this.on("added",(...i)=>{S.Ticker.shared.add(this.Update,this)},this),this.on("removed",(...i)=>{S.Ticker.shared.remove(this.Update,this)},this)}get startFrame(){return this._startFrame}get endFrame(){return this._endFrame}get totalFrame(){return this.playerLib.animationData.totalFrames()}get fps(){return this.playerLib.animationData.fps()}get frameNo(){return Math.floor(this._currentFrame)}set loop(t){this._loops=t}get loop(){return this._loops}get isPlaying(){return this._isPlaying}get isPausing(){return this._isPausing}get animePackName(){return this.playerLib.animePackName}get animeName(){return this.playerLib.animeName}Setup(t,s){this.playerLib.Setup(t,s),this.clearCaches();const e=this.playerLib.animePackData,i=e.partsLength();this.prevCellID=new Array(i),this.prevPartObject=new Array(i),this.changeCellID=new Array(i),this.substituteOverWrite=new Array(i),this.substituteKeyParam=new Array(i);for(let h=0;h=this.updateInterval){let h=!1;const a=this.nextFrameTime/this.updateInterval;this.nextFrameTime-=this.updateInterval*a;let o=this.skipEnabled?a*this.playDirection:this.playDirection,n=this._currentFrame+o,d=Math.floor(n),r=n-d,f=Math.floor(this._currentFrame);if(this.playDirection>=1)for(let b=d-f;b;b--){let u=f+1;if(u>this._endFrame)if(this._loops===-1)u=this._startFrame;else if(this._loops--,h=!0,this._loops===0){this._isPlaying=!1,u=s?this._startFrame:this._endFrame;break}else u=this._startFrame;f=u,this._isPlaying&&this.playerLib.HaveUserData(f)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(f))}if(this.playDirection<=-1)for(let b=f-d;b;b--){let u=f-1;if(u0?1:-1,this.updateInterval=1e3/(this.playerLib.animationData.fps()*t*this.playDirection),this.skipEnabled=s)}SetAnimationSection(t=-1,s=-1,e=-1){t>=0&&t=0&&s0?this._loops=e:this._loops=-1,this._currentFrame=this.playDirection>0?this._startFrame:this._endFrame}Play(t){this._isPlaying=!0,this._isPausing=!1;let s=this.playDirection>0?this._startFrame:this._endFrame;t&&typeof t=="number"&&(s=t),this._currentFrame=s,this.resetLiveFrame();const e=Math.floor(this._currentFrame);this.SetFrameAnimation(e),this.playerLib.HaveUserData(e)&&this.onUserDataCallback!==null&&this.onUserDataCallback(this.playerLib.GetUserData(e))}Pause(){this._isPausing=!0}Resume(){this._isPausing=!1}Stop(){this._isPlaying=!1}SetFrame(t){this._currentFrame=t}NextFrame(){const t=Math.floor(this._currentFrame),s=this.endFrame;t!==s&&this.SetFrame(t+1)}PrevFrame(){const t=Math.floor(this._currentFrame);t!==0&&this.SetFrame(t-1)}SetAlpha(t){this.parentAlpha=t}ThrowError(t){}SetUserDataCalback(t){this.onUserDataCallback=t}SetPlayEndCallback(t){this.playEndCallback=t}SetPartCell(t,s,e){if(this.playerLib.animationData){let i=-1;if(s!==""&&e!==""){const o=this.playerLib.fbObj,n=this.playerLib.fbObj.numCells();for(let d=0;d>>24)/255,o=((e&16711680)>>>16)/255,n=((e&65280)>>>8)/255,d=(e&255)/255;if(t===0){const r=1-s;h.matrix=[r,0,0,0,o*s,0,r,0,0,n*s,0,0,r,0,d*s,0,0,0,1,0]}else t===1?h.matrix=[o,0,0,0,0,0,n,0,0,0,0,0,d,0,0,0,0,0,a,0]:t===2?h.matrix=[1,0,0,0,o,0,1,0,0,n,0,0,1,0,d,0,0,0,a,0]:t===3&&(h.matrix=[1,0,0,0,-o,0,1,0,0,-n,0,0,1,0,-d,0,0,0,a,0]);return this.colorMatrixFilterCache[i]=h,h}SetFrameAnimation(t,s=0){const e=this.playerLib.GetFrameData(t);this.removeChildren();const i=e.length;for(let h=0;h=0&&this.prevCellID[a]!==n&&(d?.destroy(),d=this.MakeCellMesh(n),d.label=r.name());break;case O.Mesh:n>=0&&this.prevCellID[a]!==n&&(d?.destroy(),d=this.MakeMeshCellMesh(a,n),d.label=r.name());break;case O.Nulltype:case O.Joint:this.prevCellID[a]!==n&&(d?.destroy(),d=new S.Container,d.label=r.name());break;default:n>=0&&this.prevCellID[a]!==n&&(d?.destroy(),d=this.MakeCellMesh(n),d.label=r.name());break}if(d!=null)switch(this.prevCellID[a]=n,this.prevPartObject[a]=d,f){case O.Instance:{const l=d;this._instancePos[0]=0,this._instancePos[1]=0,this._instancePos[2]=1,this._instancePos[3]=1,this._instancePos[4]=0,this._instancePos=this.playerLib.TransformPositionLocal(this._instancePos,o.index,t),l.rotation=this._instancePos[4]*Math.PI/180,l.position.set(this._instancePos[0],this._instancePos[1]),l.scale.set(this._instancePos[2],this._instancePos[3]);let V=o.opacity/255;o.localopacity<255&&(V=o.localopacity/255),l.SetAlpha(V*this.parentAlpha),l.visible=!o.f_hide;let m=o.instanceValue_curKeyframe,F=o.instanceValue_startFrame,I=o.instanceValue_endFrame,A=o.instanceValue_speed,H=o.instanceValue_loopNum,tt=!1,U=!1,v=!1,X=!1;const W=1,J=2,M=4,P=8,E=o.instanceValue_loopflag;E&W&&(tt=!0),E&J&&(U=!0),E&M&&(v=!0),E&P&&(X=!0),b&&(F=u.refStartframe,I=u.refEndframe,A=u.refSpeed,H=u.refloopNum,tt=u.infinity,U=u.reverse,v=u.pingpong,X=u.independent),(l._startFrame!==F||l._endFrame!==I)&&l.SetAnimationSection(F,I);let k=t;X===!0&&(this.liveFrame[h]+=s,k=Math.floor(this.liveFrame[h]));const st=m;let g=Math.floor((k-st)*A);if(g<0||st>k)continue;const B=I-F+1;if(B<=0)continue;let N=Math.floor(g/B),T=H;v&&(T=T*2),tt||N>=T&&(g=B-1,N=T-1);const $=Math.floor(g%B);let z=0;v&&N%2===1&&(U?U=!1:U=!0),this.playDirection<=-1&&(U=!U),U?z=I-$:z=$+F,l.SetFrame(Math.floor(z)),this.addChild(l);break}case O.Normal:case O.Mesh:case O.Joint:case O.Mask:{const l=d,V=l.geometry.attributes.aPosition.buffer;let m=V.data;const F=this.playerLib.fbObj.cells(n);let I;if(f===O.Mesh?o.meshIsBind===0?I=this.playerLib.TransformMeshVertsLocal(nt.GetMeshVerts(F,o,m),o.index,t):I=nt.GetMeshVerts(F,o,m):(I=f===O.Joint?new Float32Array(10):m,I=this.playerLib.TransformVertsLocal(nt.GetVerts(F,o,I),o.index,t)),o.flag1&p.VERTEX_TRANSFORM){const v=I[6],X=I[3*2+1],W=I[1*2+0],J=I[1*2+1],M=I[4*2+0],P=I[4*2+1],E=I[2*2+0],k=I[2*2+1],st=(v+M)*.5,g=(X+P)*.5,B=(v+W)*.5,N=(X+J)*.5,T=(W+E)*.5,$=(J+k)*.5,z=(M+E)*.5,ot=(P+k)*.5,rt=nt.CoordinateGetDiagonalIntersection(I[0],I[1],st,g,z,ot,B,N,T,$,this._CoordinateGetDiagonalIntersectionVec2);I[0]=rt[0],I[1]=rt[1]}const A=I[0],H=I[1];for(let v=0;v>>24)/255;l.alpha=l.alpha*v}const U=this.alphaBlendType[a];(U==="multiply"||U==="screen")&&(l.alpha=1),f!==O.Mask&&this.addChild(l);break}case O.Nulltype:{const l=d,V=this.playerLib.InheritOpacity(1,o.index,t);l.alpha=V*o.localopacity/255;const m=this.playerLib.TransformVerts(nt.GetDummyVerts(),o.index,t),F=m[0],I=m[1];l.position.set(F,I);const A=Math.atan2(m[5]-m[3],m[4]-m[2]),H=Math.atan2(m[7]-m[3],m[6]-m[2]);l.rotation=A,l.skew.x=H-A-Math.PI/2;break}}}}ChangeInstanceAnime(t,s,e,i,h=null){let a=!1;if(this.animePackName!==null&&this.animeName!==null){let o=this.playerLib.animePackData,n=o.partsLength();for(let d=0;d0){const h=new Float32Array(i-2),a=e.uv(1);for(let b=2;b= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3090,6 +3061,7 @@ this.prevCellID = []; // 各パーツ(レイヤー)で前回使用したセルID this.prevPartObject = []; + this.changeCellID = []; // for change instance this.substituteOverWrite = []; this.substituteKeyParam = []; @@ -3156,12 +3128,14 @@ const partsLength = animePackData.partsLength(); this.prevCellID = new Array(partsLength); this.prevPartObject = new Array(partsLength); + this.changeCellID = new Array(partsLength); this.substituteOverWrite = new Array(partsLength); this.substituteKeyParam = new Array(partsLength); for (let j = 0; j < partsLength; j++) { const index = animePackData.parts(j).index(); this.prevCellID[index] = -1; this.prevPartObject[index] = null; + this.changeCellID[index] = -1; this.substituteOverWrite[index] = null; this.substituteKeyParam[index] = null; } @@ -3279,8 +3253,7 @@ * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3290,8 +3263,7 @@ * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3424,6 +3396,45 @@ SetPlayEndCallback(fn) { this.playEndCallback = fn; } + /** + * パーツに割り当たるセルを変更します. + * + * @param {string} partsname - パーツ名 + * @param {string} sscename - セルマップ名 + * @param {string} cellname - 表示させたいセル名 + * + * @return {void} + */ + SetPartCell(partsname, sscename, cellname) { + if (this.playerLib.animationData) { + let changeCellIndex = -1; + if (sscename !== "" && cellname !== "") { + const fbObj = this.playerLib.fbObj; + const numCells = this.playerLib.fbObj.numCells(); + for (let i = 0; i < numCells; i++) { + const cell = fbObj.cells(i); + const name1 = cell.name(); + const cellMap = cell.cellMap(); + const name2 = cellMap.name(); + if (cellname === name1 && sscename === name2) { + changeCellIndex = i; + break; + } + } + } + const animePackData = this.playerLib.animePackData; + const partsLength = animePackData.partsLength(); + for (let i = 0; i < partsLength; i++) { + const part = animePackData.parts(i); + const index = part.index(); + const partName = part.name(); + if (partName === partsname) { + this.changeCellID[index] = changeCellIndex; + break; + } + } + } + } /** * パーツの描画モードを取得する * @return {array} - 全パーツの描画モード @@ -3477,8 +3488,7 @@ */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new pixi_js.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3593,7 +3603,10 @@ for (let ii = 0; ii < l; ii = ii + 1 | 0) { const i = this.playerLib.prio2index[ii]; const data = fd[i]; - const cellID = data.cellIndex; + let cellID = data.cellIndex; + if (this.changeCellID[i] !== -1) { + cellID = this.changeCellID[i]; + } let partObject = this.prevPartObject[i]; const part = this.playerLib.animePackData.parts(i); const partType = part.type(); @@ -3609,16 +3622,14 @@ case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.label = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.label = part.name(); } @@ -3626,23 +3637,20 @@ case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new pixi_js.Container(); partObject.label = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.label = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3709,17 +3717,13 @@ } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3851,8 +3855,7 @@ if (blendMode === "multiply" || blendMode === "screen") { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { diff --git a/package-lock.json b/package-lock.json index eb9d314..b42e200 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,8 +23,8 @@ "eslint-plugin-jsdoc": "^48.5.2", "lerna": "^8.1.6", "ncp": "^2.0.0", - "rimraf": "^5.0.8", - "typedoc": "^0.26.3", + "rimraf": "^6.0.0", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { @@ -2585,9 +2585,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", - "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.1.tgz", + "integrity": "sha512-lncuC4aHicncmbORnx+dUaAgzee9cm/PbIqgWz1PpXuwc+sa1Ct83tnqUDy/GFKleLiN7ZIeytM6KJ4cAn1SxA==", "cpu": [ "arm" ], @@ -2599,9 +2599,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz", - "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.1.tgz", + "integrity": "sha512-F/tkdw0WSs4ojqz5Ovrw5r9odqzFjb5LIgHdHZG65dFI1lWTWRVy32KDJLKRISHgJvqUeUhdIvy43fX41znyDg==", "cpu": [ "arm64" ], @@ -2613,9 +2613,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz", - "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.1.tgz", + "integrity": "sha512-vk+ma8iC1ebje/ahpxpnrfVQJibTMyHdWpOGZ3JpQ7Mgn/3QNHmPq7YwjZbIE7km73dH5M1e6MRRsnEBW7v5CQ==", "cpu": [ "arm64" ], @@ -2627,9 +2627,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz", - "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.1.tgz", + "integrity": "sha512-IgpzXKauRe1Tafcej9STjSSuG0Ghu/xGYH+qG6JwsAUxXrnkvNHcq/NL6nz1+jzvWAnQkuAJ4uIwGB48K9OCGA==", "cpu": [ "x64" ], @@ -2641,9 +2641,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz", - "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.1.tgz", + "integrity": "sha512-P9bSiAUnSSM7EmyRK+e5wgpqai86QOSv8BwvkGjLwYuOpaeomiZWifEos517CwbG+aZl1T4clSE1YqqH2JRs+g==", "cpu": [ "arm" ], @@ -2655,9 +2655,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz", - "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.1.tgz", + "integrity": "sha512-5RnjpACoxtS+aWOI1dURKno11d7krfpGDEn19jI8BuWmSBbUC4ytIADfROM1FZrFhQPSoP+KEa3NlEScznBTyQ==", "cpu": [ "arm" ], @@ -2669,9 +2669,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz", - "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.1.tgz", + "integrity": "sha512-8mwmGD668m8WaGbthrEYZ9CBmPug2QPGWxhJxh/vCgBjro5o96gL04WLlg5BA233OCWLqERy4YUzX3bJGXaJgQ==", "cpu": [ "arm64" ], @@ -2683,9 +2683,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz", - "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.1.tgz", + "integrity": "sha512-dJX9u4r4bqInMGOAQoGYdwDP8lQiisWb9et+T84l2WXk41yEej8v2iGKodmdKimT8cTAYt0jFb+UEBxnPkbXEQ==", "cpu": [ "arm64" ], @@ -2697,9 +2697,9 @@ ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz", - "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.1.tgz", + "integrity": "sha512-V72cXdTl4EI0x6FNmho4D502sy7ed+LuVW6Ym8aI6DRQ9hQZdp5sj0a2usYOlqvFBNKQnLQGwmYnujo2HvjCxQ==", "cpu": [ "ppc64" ], @@ -2711,9 +2711,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz", - "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.1.tgz", + "integrity": "sha512-f+pJih7sxoKmbjghrM2RkWo2WHUW8UbfxIQiWo5yeCaCM0TveMEuAzKJte4QskBp1TIinpnRcxkquY+4WuY/tg==", "cpu": [ "riscv64" ], @@ -2725,9 +2725,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz", - "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.1.tgz", + "integrity": "sha512-qb1hMMT3Fr/Qz1OKovCuUM11MUNLUuHeBC2DPPAWUYYUAOFWaxInaTwTQmc7Fl5La7DShTEpmYwgdt2hG+4TEg==", "cpu": [ "s390x" ], @@ -2739,9 +2739,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz", - "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.1.tgz", + "integrity": "sha512-7O5u/p6oKUFYjRbZkL2FLbwsyoJAjyeXHCU3O4ndvzg2OFO2GinFPSJFGbiwFDaCFc+k7gs9CF243PwdPQFh5g==", "cpu": [ "x64" ], @@ -2753,9 +2753,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz", - "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.1.tgz", + "integrity": "sha512-pDLkYITdYrH/9Cv/Vlj8HppDuLMDUBmgsM0+N+xLtFd18aXgM9Nyqupb/Uw+HeidhfYg2lD6CXvz6CjoVOaKjQ==", "cpu": [ "x64" ], @@ -2767,9 +2767,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz", - "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.1.tgz", + "integrity": "sha512-W2ZNI323O/8pJdBGil1oCauuCzmVd9lDmWBBqxYZcOqWD6aWqJtVBQ1dFrF4dYpZPks6F+xCZHfzG5hYlSHZ6g==", "cpu": [ "arm64" ], @@ -2781,9 +2781,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz", - "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.1.tgz", + "integrity": "sha512-ELfEX1/+eGZYMaCIbK4jqLxO1gyTSOIlZr6pbC4SRYFaSIDVKOnZNMdoZ+ON0mrFDp4+H5MhwNC1H/AhE3zQLg==", "cpu": [ "ia32" ], @@ -2795,9 +2795,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz", - "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.1.tgz", + "integrity": "sha512-yjk2MAkQmoaPYCSu35RLJ62+dz358nE83VfTePJRp8CG7aMg25mEJYpXFiD+NcevhX8LxD5OP5tktPXnXN7GDw==", "cpu": [ "x64" ], @@ -11169,28 +11169,114 @@ } }, "node_modules/rimraf": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.8.tgz", - "integrity": "sha512-XSh0V2/yNhDEi8HwdIefD8MLgs4LQXPag/nEJWs3YUc3Upn+UHa1GyIkEg9xSSNt7HnkO5FjTvmcRzgf+8UZuw==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.0.tgz", + "integrity": "sha512-u+yqhM92LW+89cxUQK0SRyvXYQmyuKHx0jkx4W7KfwLGLqJnQM5031Uv1trE4gB9XEXBM/s6MxKlfW95IidqaA==", "dev": true, "license": "ISC", "dependencies": { - "glob": "^10.3.7" + "glob": "^11.0.0" }, "bin": { "rimraf": "dist/esm/bin.mjs" }, "engines": { - "node": ">=18" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", + "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/jackspeak": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", + "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/rimraf/node_modules/lru-cache": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", + "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", + "dev": true, + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/rollup": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", - "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.1.tgz", + "integrity": "sha512-Elx2UT8lzxxOXMpy5HWQGZqkrQOtrVDDa/bm9l10+U4rQnVzbL/LgZ4NOM1MPIDyHk69W4InuYDF5dzRh4Kw1A==", "dev": true, "license": "MIT", "dependencies": { @@ -11204,22 +11290,22 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.18.0", - "@rollup/rollup-android-arm64": "4.18.0", - "@rollup/rollup-darwin-arm64": "4.18.0", - "@rollup/rollup-darwin-x64": "4.18.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", - "@rollup/rollup-linux-arm-musleabihf": "4.18.0", - "@rollup/rollup-linux-arm64-gnu": "4.18.0", - "@rollup/rollup-linux-arm64-musl": "4.18.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", - "@rollup/rollup-linux-riscv64-gnu": "4.18.0", - "@rollup/rollup-linux-s390x-gnu": "4.18.0", - "@rollup/rollup-linux-x64-gnu": "4.18.0", - "@rollup/rollup-linux-x64-musl": "4.18.0", - "@rollup/rollup-win32-arm64-msvc": "4.18.0", - "@rollup/rollup-win32-ia32-msvc": "4.18.0", - "@rollup/rollup-win32-x64-msvc": "4.18.0", + "@rollup/rollup-android-arm-eabi": "4.18.1", + "@rollup/rollup-android-arm64": "4.18.1", + "@rollup/rollup-darwin-arm64": "4.18.1", + "@rollup/rollup-darwin-x64": "4.18.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.1", + "@rollup/rollup-linux-arm-musleabihf": "4.18.1", + "@rollup/rollup-linux-arm64-gnu": "4.18.1", + "@rollup/rollup-linux-arm64-musl": "4.18.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.1", + "@rollup/rollup-linux-riscv64-gnu": "4.18.1", + "@rollup/rollup-linux-s390x-gnu": "4.18.1", + "@rollup/rollup-linux-x64-gnu": "4.18.1", + "@rollup/rollup-linux-x64-musl": "4.18.1", + "@rollup/rollup-win32-arm64-msvc": "4.18.1", + "@rollup/rollup-win32-ia32-msvc": "4.18.1", + "@rollup/rollup-win32-x64-msvc": "4.18.1", "fsevents": "~2.3.2" } }, @@ -12735,9 +12821,9 @@ "license": "MIT" }, "node_modules/typedoc": { - "version": "0.26.3", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.26.3.tgz", - "integrity": "sha512-6d2Sw9disvvpdk4K7VNjKr5/3hzijtfQVHRthhDqJgnhMHy1wQz4yPMJVKXElvnZhFr0nkzo+GzjXDTRV5yLpg==", + "version": "0.26.4", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.26.4.tgz", + "integrity": "sha512-FlW6HpvULDKgc3rK04V+nbFyXogPV88hurarDPOjuuB5HAwuAlrCMQ5NeH7Zt68a/ikOKu6Z/0hFXAeC9xPccQ==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -13359,10 +13445,10 @@ } }, "packages/ss6player-lib": { - "version": "1.0.2", + "version": "1.0.3", "license": "SEE LICENSE", "dependencies": { - "ssfblib": "1.2.2" + "ssfblib": "1.2.3" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.1", @@ -13379,12 +13465,12 @@ "eslint-plugin-jsdoc": "^48.5.2", "flatbuffers": "^24.3.25", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-includepaths": "^0.2.4", "rollup-plugin-license": "^3.5.2", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { @@ -13392,10 +13478,10 @@ } }, "packages/ss6player-pixi": { - "version": "2.1.0", + "version": "2.2.0", "license": "SEE LICENSE", "dependencies": { - "ss6player-lib": "1.0.2" + "ss6player-lib": "1.0.3" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.1", @@ -13416,13 +13502,13 @@ "lodash.camelcase": "^4.3.0", "opener": "^1.5.2", "pixi.js": "^8.2.2", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-includepaths": "^0.2.4", "rollup-plugin-license": "^3.5.2", "rollup-plugin-tsconfig-paths": "^1.5.2", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { @@ -13430,10 +13516,10 @@ } }, "packages/ss6player-pixi6": { - "version": "1.0.2", + "version": "1.0.3", "license": "SEE LICENSE", "dependencies": { - "ss6player-lib": "1.0.2" + "ss6player-lib": "1.0.3" }, "devDependencies": { "@pixi/constants": "^6.5.10", @@ -13460,13 +13546,13 @@ "lodash.camelcase": "^4.3.0", "opener": "^1.5.2", "pixi.js": "^6.5.10", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-includepaths": "^0.2.4", "rollup-plugin-license": "^3.5.2", "rollup-plugin-tsconfig-paths": "^1.5.2", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { @@ -13523,10 +13609,10 @@ } }, "packages/ss6player-rpgmakermz": { - "version": "0.8.2", + "version": "0.8.3", "license": "SEE LICENSE", "dependencies": { - "ss6player-pixi6": "^1.0.2" + "ss6player-pixi6": "^1.0.3" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.1", @@ -13548,12 +13634,12 @@ "opener": "^1.5.2", "pixi.js": "^5.3.12", "replace": "^1.2.2", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-includepaths": "^0.2.4", "rollup-plugin-license": "^3.5.2", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { @@ -14016,11 +14102,11 @@ } }, "packages/ss6player-viewer": { - "version": "1.5.0", + "version": "1.5.1", "license": "SEE LICENSE", "dependencies": { "jszip": "^3.10.1", - "ss6player-pixi": "2.1.0" + "ss6player-pixi": "2.2.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.1", @@ -14041,12 +14127,12 @@ "opener": "^1.5.2", "pixi.js": "^8.2.2", "replace": "^1.2.2", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-includepaths": "^0.2.4", "rollup-plugin-license": "^3.5.2", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { @@ -14054,7 +14140,7 @@ } }, "packages/ssfblib": { - "version": "1.2.2", + "version": "1.2.3", "license": "SEE LICENSE", "dependencies": { "flatbuffers": "^24.3.25" @@ -14066,12 +14152,12 @@ "@rollup/plugin-typescript": "^11.1.6", "esbuild": "^0.23.0", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-includepaths": "^0.2.4", "rollup-plugin-license": "^3.5.2", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "typescript": "^5.5.3" }, "optionalDependencies": { diff --git a/package.json b/package.json index 58d1fab..55d3bb8 100644 --- a/package.json +++ b/package.json @@ -39,10 +39,10 @@ }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "lerna": "^8.1.6", "ncp": "^2.0.0", - "rimraf": "^5.0.8", + "rimraf": "^6.0.0", "@typescript-eslint/eslint-plugin": "^7.15.0", "@typescript-eslint/parser": "^7.15.0", "eslint": "^8.57.0", diff --git a/packages/ss6player-lib/package.json b/packages/ss6player-lib/package.json index 77974c3..2fcf247 100644 --- a/packages/ss6player-lib/package.json +++ b/packages/ss6player-lib/package.json @@ -1,6 +1,6 @@ { "name": "ss6player-lib", - "version": "1.0.2", + "version": "1.0.3", "description": "generate an animation framedata from ssfblib for ss6players", "keywords": [ "SpriteStudio" @@ -36,15 +36,15 @@ "docs": "typedoc --out ../../docs/ss6player_lib_api src/ss6player-lib.ts" }, "dependencies": { - "ssfblib": "1.2.2" + "ssfblib": "1.2.3" }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "flatbuffers": "^24.3.25", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "@rollup/plugin-typescript": "^11.1.6", "@rollup/plugin-commonjs": "^26.0.1", "rollup-plugin-includepaths": "^0.2.4", diff --git a/packages/ss6player-pixi/Player/sample.js b/packages/ss6player-pixi/Player/sample.js index aa7b390..86b0558 100644 --- a/packages/ss6player-pixi/Player/sample.js +++ b/packages/ss6player-pixi/Player/sample.js @@ -14,6 +14,7 @@ //const testVersion = "sampleAnimation1"; //const testVersion = "sampleAnimation2"; const testVersion = "sampleAnimation3"; +//const testVersion = "sampleReplaceTexture"; (async () => { PIXI.sayHello(); @@ -44,6 +45,11 @@ const testVersion = "sampleAnimation3"; "sampleAnimation3": { "ssfbFile": "../../../TestData/MeshBone/Knight.ssfb", "func": Play_sampleAnimation3 + }, + + "sampleReplaceTexture": { + "ssfbFile": "../../../TestData/MeshBone/Knight.ssfb", + "func": Play_sampleReplaceTexture } }; @@ -115,4 +121,16 @@ const testVersion = "sampleAnimation3"; mySS6Player.Play(); } } + + function Play_sampleReplaceTexture() { + let mySS6Player = new ss6PlayerPixi.SS6Player(mySS6Project); + mySS6Player.Setup("Knight_bomb", "Balloon"); + mySS6Player.position = new PIXI.Point(320, 480); + mySS6Player.scale = new PIXI.Point(0.5, 0.5); + mySS6Player.SetPartCell('Head', 'Effect', 'Flame'); + app.stage.addChild(mySS6Player); + + // 再生開始 + mySS6Player.Play(); + } })(); diff --git a/packages/ss6player-pixi/package.json b/packages/ss6player-pixi/package.json index e64e133..bfb9498 100644 --- a/packages/ss6player-pixi/package.json +++ b/packages/ss6player-pixi/package.json @@ -1,7 +1,7 @@ { "name": "ss6player-pixi", "private": true, - "version": "2.1.0", + "version": "2.2.0", "description": "SS6Player for pixi", "keywords": [ "SpriteStudio", @@ -44,15 +44,15 @@ "clean": "rimraf dist" }, "dependencies": { - "ss6player-lib": "1.0.2" + "ss6player-lib": "1.0.3" }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "flatbuffers": "^24.3.25", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "@rollup/plugin-typescript": "^11.1.6", "@rollup/plugin-commonjs": "^26.0.1", "rollup-plugin-includepaths": "^0.2.4", diff --git a/packages/ss6player-pixi/src/SS6Player.ts b/packages/ss6player-pixi/src/SS6Player.ts index 39e4ec5..6550e57 100644 --- a/packages/ss6player-pixi/src/SS6Player.ts +++ b/packages/ss6player-pixi/src/SS6Player.ts @@ -438,11 +438,11 @@ export class SS6Player extends Container { /** - * Sets the cell for a specific part in the animation. + * パーツに割り当たるセルを変更します. * - * @param {string} partsname - The name of the part. - * @param {string} sscename - The name of the cell's associated cell map. - * @param {string} cellname - The name of the cell. + * @param {string} partsname - パーツ名 + * @param {string} sscename - セルマップ名 + * @param {string} cellname - 表示させたいセル名 * * @return {void} */ diff --git a/packages/ss6player-pixi6/package.json b/packages/ss6player-pixi6/package.json index 4f6d17b..775de2d 100644 --- a/packages/ss6player-pixi6/package.json +++ b/packages/ss6player-pixi6/package.json @@ -1,7 +1,7 @@ { "name": "ss6player-pixi6", "private": true, - "version": "1.0.2", + "version": "1.0.3", "description": "SS6Player for pixi", "keywords": [ "SpriteStudio", @@ -43,14 +43,14 @@ "clean": "rimraf dist" }, "dependencies": { - "ss6player-lib": "1.0.2" + "ss6player-lib": "1.0.3" }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "@rollup/plugin-typescript": "^11.1.6", "@rollup/plugin-commonjs": "^26.0.1", "rollup-plugin-includepaths": "^0.2.4", diff --git a/packages/ss6player-rpgmakermz/SampleProject/js/plugins/ss6player-rpgmakermz.js b/packages/ss6player-rpgmakermz/SampleProject/js/plugins/ss6player-rpgmakermz.js index a37f297..c0303fd 100644 --- a/packages/ss6player-rpgmakermz/SampleProject/js/plugins/ss6player-rpgmakermz.js +++ b/packages/ss6player-rpgmakermz/SampleProject/js/plugins/ss6player-rpgmakermz.js @@ -1,6 +1,6 @@ /** * ----------------------------------------------------------- - * SS6Player For RPG Maker MZ v0.8.2 + * SS6Player For RPG Maker MZ v0.8.3 * * Copyright(C) CRI Middleware Co., Ltd. * https://www.webtech.co.jp/ @@ -14,7 +14,7 @@ Imported.SS6PlayerRPGMakerMZ = true; /*:ja * @target MZ * @plugindesc SpriteStudio 7.0 & 6 アニメーション再生プラグイン - * @version 0.8.2 + * @version 0.8.3 * @author CRI Middleware Co., Ltd. * @url https://github.com/SpriteStudio/SS6PlayerForWeb/tree/master/packages/ss6player-rpgmakermz * @help SS6Player for RPG Maker MZ @@ -2607,62 +2607,34 @@ Imported.SS6PlayerRPGMakerMZ = true; fd.flag1 = f1; fd.flag2 = f2; let id = 0; - if (f1 & PART_FLAG.INVISIBLE) - fd.f_hide = true; - if (f1 & PART_FLAG.FLIP_H) - fd.f_flipH = true; - if (f1 & PART_FLAG.FLIP_V) - fd.f_flipV = true; - if (f1 & PART_FLAG.CELL_INDEX) - fd.cellIndex = curPartState.data(id++); - if (f1 & PART_FLAG.POSITION_X) - fd.positionX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Y) - fd.positionY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.POSITION_Z) - id++; - if (f1 & PART_FLAG.PIVOT_X) - fd.pivotX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.PIVOT_Y) - fd.pivotY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.ROTATIONX) - id++; - if (f1 & PART_FLAG.ROTATIONY) - id++; - if (f1 & PART_FLAG.ROTATIONZ) - fd.rotationZ = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_X) - fd.scaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SCALE_Y) - fd.scaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_X) - fd.localscaleX = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.LOCALSCALE_Y) - fd.localscaleY = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.OPACITY) - fd.opacity = curPartState.data(id++); - if (f1 & PART_FLAG.LOCALOPACITY) - fd.localopacity = curPartState.data(id++); - if (f1 & PART_FLAG.SIZE_X) - fd.size_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.SIZE_Y) - fd.size_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_MOVE) - fd.uv_move_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_MOVE) - fd.uv_move_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.UV_ROTATION) - fd.uv_rotation = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.U_SCALE) - fd.uv_scale_X = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.V_SCALE) - fd.uv_scale_Y = this.I2F(curPartState.data(id++)); - if (f1 & PART_FLAG.BOUNDINGRADIUS) - id++; - if (f1 & PART_FLAG.MASK) - fd.masklimen = curPartState.data(id++); - if (f1 & PART_FLAG.PRIORITY) - fd.priority = curPartState.data(id++); + if (f1 & PART_FLAG.INVISIBLE) fd.f_hide = true; + if (f1 & PART_FLAG.FLIP_H) fd.f_flipH = true; + if (f1 & PART_FLAG.FLIP_V) fd.f_flipV = true; + if (f1 & PART_FLAG.CELL_INDEX) fd.cellIndex = curPartState.data(id++); + if (f1 & PART_FLAG.POSITION_X) fd.positionX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Y) fd.positionY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.POSITION_Z) id++; + if (f1 & PART_FLAG.PIVOT_X) fd.pivotX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.PIVOT_Y) fd.pivotY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.ROTATIONX) id++; + if (f1 & PART_FLAG.ROTATIONY) id++; + if (f1 & PART_FLAG.ROTATIONZ) fd.rotationZ = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_X) fd.scaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SCALE_Y) fd.scaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_X) fd.localscaleX = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.LOCALSCALE_Y) fd.localscaleY = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.OPACITY) fd.opacity = curPartState.data(id++); + if (f1 & PART_FLAG.LOCALOPACITY) fd.localopacity = curPartState.data(id++); + if (f1 & PART_FLAG.SIZE_X) fd.size_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.SIZE_Y) fd.size_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_MOVE) fd.uv_move_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_MOVE) fd.uv_move_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.UV_ROTATION) fd.uv_rotation = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.U_SCALE) fd.uv_scale_X = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.V_SCALE) fd.uv_scale_Y = this.I2F(curPartState.data(id++)); + if (f1 & PART_FLAG.BOUNDINGRADIUS) id++; + if (f1 & PART_FLAG.MASK) fd.masklimen = curPartState.data(id++); + if (f1 & PART_FLAG.PRIORITY) fd.priority = curPartState.data(id++); if (f1 & PART_FLAG.INSTANCE_KEYFRAME) { fd.instanceValue_curKeyframe = curPartState.data(id++); fd.instanceValue_startFrame = curPartState.data(id++); @@ -2937,8 +2909,7 @@ Imported.SS6PlayerRPGMakerMZ = true; const c1 = (LDy - RUy) * (LDx - LUx) - (LDx - RUx) * (LDy - LUy); const c2 = (RDx - LUx) * (LDy - LUy) - (RDy - LUy) * (LDx - LUx); const c3 = (RDx - LUx) * (LDy - RUy) - (RDy - LUy) * (LDx - RUx); - if (c3 <= 0 && c3 >= 0) - return vec2; + if (c3 <= 0 && c3 >= 0) return vec2; const ca = c1 / c3; const cb = c2 / c3; if (0 <= ca && 1 >= ca && (0 <= cb && 1 >= cb)) { @@ -3412,8 +3383,7 @@ Imported.SS6PlayerRPGMakerMZ = true; * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationFramerate(fps, _skipEnabled = true) { - if (fps <= 0) - return; + if (fps <= 0) return; this.updateInterval = 1e3 / fps; this.skipEnabled = _skipEnabled; } @@ -3423,8 +3393,7 @@ Imported.SS6PlayerRPGMakerMZ = true; * @param {boolean} _skipEnabled - 描画更新が間に合わないときにフレームをスキップするかどうか */ SetAnimationSpeed(fpsRate, _skipEnabled = true) { - if (fpsRate === 0) - return; + if (fpsRate === 0) return; this.playDirection = fpsRate > 0 ? 1 : -1; this.updateInterval = 1e3 / (this.playerLib.animationData.fps() * fpsRate * this.playDirection); this.skipEnabled = _skipEnabled; @@ -3610,8 +3579,7 @@ Imported.SS6PlayerRPGMakerMZ = true; */ GetColorMatrixFilter(blendType, rate, argb32) { const key = blendType.toString() + "_" + rate.toString() + "_" + argb32.toString(); - if (this.colorMatrixFilterCache[key]) - return this.colorMatrixFilterCache[key]; + if (this.colorMatrixFilterCache[key]) return this.colorMatrixFilterCache[key]; const colorMatrix = new filterColorMatrix.ColorMatrixFilter(); const ca = ((argb32 & 4278190080) >>> 24) / 255; const cr = ((argb32 & 16711680) >>> 16) / 255; @@ -3742,16 +3710,14 @@ Imported.SS6PlayerRPGMakerMZ = true; case SsPartType.Normal: case SsPartType.Mask: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; case SsPartType.Mesh: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeMeshCellMesh(i, cellID); partObject.name = part.name(); } @@ -3759,23 +3725,20 @@ Imported.SS6PlayerRPGMakerMZ = true; case SsPartType.Nulltype: case SsPartType.Joint: if (this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = new display.Container(); partObject.name = part.name(); } break; default: if (cellID >= 0 && this.prevCellID[i] !== cellID) { - if (partObject != null) - partObject.destroy(); + if (partObject != null) partObject.destroy(); partObject = this.MakeCellMesh(cellID); partObject.name = part.name(); } break; } - if (partObject == null) - continue; + if (partObject == null) continue; this.prevCellID[i] = cellID; this.prevPartObject[i] = partObject; switch (partType) { @@ -3842,17 +3805,13 @@ Imported.SS6PlayerRPGMakerMZ = true; } const selfTopKeyframe = refKeyframe; let reftime = Math.floor((time - selfTopKeyframe) * refSpeed); - if (reftime < 0) - continue; - if (selfTopKeyframe > time) - continue; + if (reftime < 0) continue; + if (selfTopKeyframe > time) continue; const inst_scale = refEndframe - refStartframe + 1; - if (inst_scale <= 0) - continue; + if (inst_scale <= 0) continue; let nowloop = Math.floor(reftime / inst_scale); let checkloopnum = refloopNum; - if (pingpong) - checkloopnum = checkloopnum * 2; + if (pingpong) checkloopnum = checkloopnum * 2; if (!infinity) { if (nowloop >= checkloopnum) { reftime = inst_scale - 1; @@ -3984,8 +3943,7 @@ Imported.SS6PlayerRPGMakerMZ = true; if (blendMode === constants.BLEND_MODES.MULTIPLY || blendMode === constants.BLEND_MODES.SCREEN) { mesh.alpha = 1; } - if (partType !== SsPartType.Mask) - this.addChild(mesh); + if (partType !== SsPartType.Mask) this.addChild(mesh); break; } case SsPartType.Nulltype: { @@ -4129,10 +4087,7 @@ Imported.SS6PlayerRPGMakerMZ = true; var __defProp$1 = Object.defineProperty; var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __publicField$1 = (obj, key, value) => { - __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; + var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value); const _PluginParameters = class _PluginParameters { // string constructor() { @@ -4177,10 +4132,7 @@ Imported.SS6PlayerRPGMakerMZ = true; var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; + var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); const _SS6ProjectManager = class _SS6ProjectManager { constructor() { __publicField(this, "ssprojectMap"); diff --git a/packages/ss6player-rpgmakermz/package.json b/packages/ss6player-rpgmakermz/package.json index 67fe823..b0be3de 100644 --- a/packages/ss6player-rpgmakermz/package.json +++ b/packages/ss6player-rpgmakermz/package.json @@ -1,7 +1,7 @@ { "name": "ss6player-rpgmakermz", "private": true, - "version": "0.8.2", + "version": "0.8.3", "description": "SS6Player for RPG Maker MZ", "keywords": [ "SpriteStudio", @@ -43,14 +43,14 @@ "clean": "rimraf dist" }, "dependencies": { - "ss6player-pixi6": "^1.0.2" + "ss6player-pixi6": "^1.0.3" }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "@rollup/plugin-typescript": "^11.1.6", "@rollup/plugin-commonjs": "^26.0.1", "rollup-plugin-includepaths": "^0.2.4", diff --git a/packages/ss6player-viewer/package.json b/packages/ss6player-viewer/package.json index 03dd2d5..329d789 100644 --- a/packages/ss6player-viewer/package.json +++ b/packages/ss6player-viewer/package.json @@ -1,7 +1,7 @@ { "name": "ss6player-viewer", "private": true, - "version": "1.5.0", + "version": "1.5.1", "description": "SS6Player for viewer", "keywords": [ "SpriteStudio", @@ -43,15 +43,15 @@ "clean": "rimraf dist" }, "dependencies": { - "ss6player-pixi": "2.1.0", + "ss6player-pixi": "2.2.0", "jszip": "^3.10.1" }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "@rollup/plugin-typescript": "^11.1.6", "@rollup/plugin-commonjs": "^26.0.1", "rollup-plugin-includepaths": "^0.2.4", diff --git a/packages/ssfblib/package.json b/packages/ssfblib/package.json index 2bc0df0..8260d1c 100644 --- a/packages/ssfblib/package.json +++ b/packages/ssfblib/package.json @@ -1,6 +1,6 @@ { "name": "ssfblib", - "version": "1.2.2", + "version": "1.2.3", "description": "> TODO: description", "keywords": [ "SpriteStudio" @@ -36,10 +36,10 @@ }, "devDependencies": { "typescript": "^5.5.3", - "typedoc": "^0.26.3", + "typedoc": "^0.26.4", "lodash.camelcase": "^4.3.0", - "rimraf": "^5.0.8", - "rollup": "^4.18.0", + "rimraf": "^6.0.0", + "rollup": "^4.18.1", "@rollup/plugin-typescript": "^11.1.6", "@rollup/plugin-commonjs": "^26.0.1", "rollup-plugin-includepaths": "^0.2.4",