From 1b43dc013bf7b78a11f5ecebd71b1d12b50b0eb9 Mon Sep 17 00:00:00 2001 From: xiazeyu_2011 Date: Sat, 20 Jan 2018 01:07:00 +0800 Subject: [PATCH] docs(method of execute): finish the doc of launch it (use var) --- README.md | 103 ++++++++++++++++++++++++++----------------- index.js | 1 - lib/clL2D.0.min.js | 2 +- lib/clL2D.min.js | 2 +- lib/clL2D.min.js.map | 2 +- lib/stats.html | 2 +- package.json | 1 - src/index.js | 2 +- webpack.config.js | 2 +- 9 files changed, 69 insertions(+), 48 deletions(-) delete mode 100644 index.js diff --git a/README.md b/README.md index 4148416..e1407f7 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,7 @@ # live2d-widget.js -Add the Sseexxyyy live2d to your webpages! - -[TOC] +Add the Sseexxyyy live2d to your webpages! Seperated from [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d). Demo: [Still working, but you can have a look~](https://xiazeyu.github.io/live2d-widget.js/dev.html) @@ -33,19 +31,24 @@ Online generator: [TBD.](javascript:void(0);) Please visit [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) for the hexo plugin. -### Webpack +### Webpages -Install the module: +#### File on your server -``` -npm install --save live2d-widget.js -``` +Download the [latest release](https://github.com/xiazeyu/live2d-widget.js/releases), -Import the module: +and then copy and extract the `lib` folder to your website. + +Use [online generator](javascript:void(0);) **(recommended)** to generate codes. + +
However, if you want to do it manually, follow the instruction below:
+ +import the js: + +```html + + -```js -// using as es modules -import 'live2d-widget.js'; ``` Then call the function along with your config. @@ -57,15 +60,18 @@ L2Dwidget.init({ }); ``` -### Online +
-https://github.com/jsdelivr/jsdelivr/ +### Bookmark (any pages) TBD. +https://www.cnblogs.com/pcyy/p/5655542.html + + ## Settings -See src/SettingTip.txt +See the document.
Current supported models:
@@ -138,22 +144,30 @@ issues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/E - [Cubism SDK WebGL 2.1](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1) +- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js) + +- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) + - [pixi-live2d](https://github.com/avgjs/pixi-live2d) - [CubismJsComponents](https://github.com/Live2D/CubismJsComponents) -- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js) - -- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) ## About me [![Author][author]][author-url] -[![QQ][qq]][qq-url] +[![Author QQ][author-qq]][author-qq-url] + +[![Author Email][author-email]][author-email-url] -[![Email][email]][email-url] + +[![Collaborator 0][collaborator0]][collaborator0-url] + +[![Collaborator 0 QQ][collaborator0-qq]][collaborator0-qq-url] + +[![Collaborator 0 Email][collaborator0-email]][collaborator0-email-url] ## Imported @@ -171,47 +185,56 @@ issues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/E Open sourced under the GPL v2.0 license. -[npm]: https://badge.fury.io/js/hexo-helper-live2d.svg?label=hexo-helper-live2d -[npm-url]: https://www.npmjs.com/package/hexo-helper-live2d +[npm]: https://badge.fury.io/js/live2d-widget.svg?label=live2d-widget +[npm-url]: https://www.npmjs.com/package/live2d-widget -[deps]: https://img.shields.io/david/EYHN/hexo-helper-live2d.svg +[deps]: https://img.shields.io/david/xiazeyu/live2d-widget.js.svg [deps-url]: javascript:void(0); -[devdeps]: https://img.shields.io/david/dev/EYHN/hexo-helper-live2d.svg +[devdeps]: https://img.shields.io/david/dev/xiazeyu/live2d-widget.js.svg [devdeps-url]: javascript:void(0); -[license]: https://img.shields.io/github/license/EYHN/hexo-helper-live2d.svg -[license-url]: https://github.com/EYHN/hexo-helper-live2d/blob/master/LICENSE +[license]: https://img.shields.io/github/license/xiazeyu/live2d-widget.js.svg +[license-url]: https://github.com/xiazeyu/live2d-widget.js/blob/master/LICENSE [PRs Welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square [PRs Welcome-url]: http://makeapullrequest.com -[downloads]: https://img.shields.io/npm/dt/hexo-helper-live2d.svg -[downloads-url]: https://www.npmjs.com/package/hexo-helper-live2d +[downloads]: https://img.shields.io/npm/dt/live2d-widget.svg +[downloads-url]: https://www.npmjs.com/package/live2d-widget -[downloads-month]: https://img.shields.io/npm/dm/hexo-helper-live2d.svg -[downloads-month-url]: https://www.npmjs.com/package/hexo-helper-live2d +[downloads-month]: https://img.shields.io/npm/dm/live2d-widget.svg +[downloads-month-url]: https://www.npmjs.com/package/live2d-widget [Commitizen friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg [Commitizen friendly-url]: http://commitizen.github.io/cz-cli/ -[GitHub stars]: https://img.shields.io/github/stars/EYHN/hexo-helper-live2d.svg -[GitHub stars-url]: https://github.com/EYHN/hexo-helper-live2d/stargazers +[GitHub stars]: https://img.shields.io/github/stars/xiazeyu/live2d-widget.js.svg +[GitHub stars-url]: https://github.com/xiazeyu/live2d-widget.js/stargazers -[GitHub forks]: https://img.shields.io/github/forks/EYHN/hexo-helper-live2d.svg -[GitHub forks-url]: https://github.com/EYHN/hexo-helper-live2d/network +[GitHub forks]: https://img.shields.io/github/forks/xiazeyu/live2d-widget.js.svg +[GitHub forks-url]: https://github.com/xiazeyu/live2d-widget.js/network -[GitHub issues]: https://img.shields.io/github/issues/EYHN/hexo-helper-live2d.svg -[GitHub issues-url]: https://github.com/EYHN/hexo-helper-live2d/issues +[GitHub issues]: https://img.shields.io/github/issues/xiazeyu/live2d-widget.js.svg +[GitHub issues-url]: https://github.com/xiazeyu/live2d-widget.js/issues [author]: https://img.shields.io/badge/author-cneyhn-green.svg [author-url]: https://delusion.coding.me/ -[qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg -[qq-url]: http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes +[author-qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg +[author-qq-url]: tencent://message/?uin=1106996185&Site=Senlon.Net&Menu=yes + +[author-email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg +[author-email-url]: mailto:cneyhn@gmail.com + +[collaborator0]: https://img.shields.io/badge/author-xiazeyu-green.svg +[collaborator0-url]: https://xiazeyu.coding.me/ + +[collaborator0-qq]: https://img.shields.io/badge/QQ-2320732807-blue.svg +[collaborator0-qq-url]: tencent://message/?uin=2320732807&Site=Senlon.Net&Menu=yes -[email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg -[email-url]: mailto:cneyhn@gmail.com +[collaborator0-email]: https://img.shields.io/badge/Emali%20me-xiazeyu_2011@126.com-green.svg +[collaborator0-email-url]: mailto:xiazeyu_2011@126.com [current-device]: https://img.shields.io/npm/v/current-device.svg?label=current-device [current-device-url]: https://github.com/matthewhudson/current-device diff --git a/index.js b/index.js deleted file mode 100644 index 3fc7798..0000000 --- a/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./src'); diff --git a/lib/clL2D.0.min.js b/lib/clL2D.0.min.js index 5c0e679..8fb473f 100644 --- a/lib/clL2D.0.min.js +++ b/lib/clL2D.0.min.js @@ -1,3 +1,3 @@ -/*! https://github.com/xiazeyu/live2d-widget.js built@2018-1-14 00:21:12 */ +/*! https://github.com/xiazeyu/live2d-widget.js built@2018-1-20 01:05:38 */ webpackJsonpL2Dwidget([0],{130:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.captureFrame=i.theRealInit=void 0;var r=e(51),o=e(134),s=e(131),n=e(132),_=e(138),a=e(135),h=e(133),$=new _.cManager,l=!1,u=null,p=null,c=null,f=null;i.theRealInit=function(){(0,o.createElement)(),u=new n.L2DTargetPoint;var t=r.config.display.height/r.config.display.width,i=h.cDefine.VIEW_LOGICAL_LEFT,e=h.cDefine.VIEW_LOGICAL_RIGHT,_=-t,g=t;(p=new n.L2DViewMatrix).setScreenRect(i,e,_,g),p.setMaxScreenRect(h.cDefine.VIEW_LOGICAL_MAX_LEFT,h.cDefine.VIEW_LOGICAL_MAX_RIGHT,h.cDefine.VIEW_LOGICAL_MAX_BOTTOM,h.cDefine.VIEW_LOGICAL_MAX_TOP),(c=new n.L2DMatrix44).multScale(1,r.config.display.width/r.config.display.height),(f=new n.L2DMatrix44).multTranslate(-r.config.display.width/2,-r.config.display.height/2),f.multScale(2/r.config.display.width,-2/r.config.display.height),s.Live2D.setGL(o.currWebGL),o.currWebGL.clearColor(0,0,0,0),y=r.config.model.jsonPath,$.reloadFlg=!0,$.count++,$.changeModel(o.currWebGL,y);var y;l||(l=!0,function t(){!function(){a.MatrixStack.reset(),a.MatrixStack.loadIdentity(),u.update(),$.setDrag(u.getX(),u.getY()),o.currWebGL.clear(o.currWebGL.COLOR_BUFFER_BIT),a.MatrixStack.multMatrix(c.getArray()),a.MatrixStack.multMatrix(p.getArray()),a.MatrixStack.push();for(var t=0;t<$.numModels();t++){var i=$.getModel(t);if(null==i)return;i.initialized&&!i.updating&&(i.update(),i.draw(o.currWebGL))}a.MatrixStack.pop()}();var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;i(t,o.currCanvas)}())},i.captureFrame=function(){return o.currCanvas.toDataURL()}},131:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0});var e=!0;function r(){e||(this._$MT=null,this._$5S=null,this._$NP=0,r._$42++,this._$5S=new U(this))}r._$0s=1,r._$4s=2,r._$42=0,r._$62=function(t,i){try{if(i instanceof ArrayBuffer&&(i=new DataView(i)),!(i instanceof DataView))throw new ht("_$SS#loadModel(b) / b _$x be DataView or ArrayBuffer");var e,o=new Pt(i),s=o._$ST(),n=o._$ST(),a=o._$ST();if(109!=s||111!=n||99!=a)throw new ht("_$gi _$C _$li , _$Q0 _$P0.");if(e=o._$ST(),o._$gr(e),e>G._$T7){t._$NP|=r._$4s;throw new ht("_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+G._$T7+" < _$f0 : "+e+" )@_$SS#loadModel()\n")}var h=o._$nP();if(e>=G._$s7){var $=o._$9T(),l=o._$9T();if(-30584!=$||-30584!=l)throw t._$NP|=r._$0s,new ht("_$gi _$C _$li , _$0 _$6 _$Ui.")}t._$KS(h);var u=t.getModelContext();u.setDrawParam(t.getDrawParam()),u.init()}catch(t){_._$Rb(t)}},r.prototype._$KS=function(t){this._$MT=t},r.prototype.getModelImpl=function(){return null==this._$MT&&(this._$MT=new l,this._$MT._$zP()),this._$MT},r.prototype.getCanvasWidth=function(){return null==this._$MT?0:this._$MT.getCanvasWidth()},r.prototype.getCanvasHeight=function(){return null==this._$MT?0:this._$MT.getCanvasHeight()},r.prototype.getParamFloat=function(t){return"number"!=typeof t&&(t=this._$5S.getParamIndex($.getID(t))),this._$5S.getParamFloat(t)},r.prototype.setParamFloat=function(t,i,e){"number"!=typeof t&&(t=this._$5S.getParamIndex($.getID(t))),arguments.length<3&&(e=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1-e)+i*e)},r.prototype.addToParamFloat=function(t,i,e){"number"!=typeof t&&(t=this._$5S.getParamIndex($.getID(t))),arguments.length<3&&(e=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)+i*e)},r.prototype.multParamFloat=function(t,i,e){"number"!=typeof t&&(t=this._$5S.getParamIndex($.getID(t))),arguments.length<3&&(e=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1+(i-1)*e))},r.prototype.getParamIndex=function(t){return this._$5S.getParamIndex($.getID(t))},r.prototype.loadParam=function(){this._$5S.loadParam()},r.prototype.saveParam=function(){this._$5S.saveParam()},r.prototype.init=function(){this._$5S.init()},r.prototype.update=function(){this._$5S.update()},r.prototype._$Rs=function(){return _._$li("_$60 _$PT _$Rs()"),-1},r.prototype._$Ds=function(t){_._$li("_$60 _$PT _$SS#_$Ds() \n")},r.prototype._$K2=function(){},r.prototype.draw=function(){},r.prototype.getModelContext=function(){return this._$5S},r.prototype._$s2=function(){return this._$NP},r.prototype._$P7=function(t,i,e,r){var o=-1,s=0;if(0!=e)if(1==t.length){u=t[0];var n=0!=this.getParamFloat(u),_=(p=i[0],this.getPartsOpacity(p)),a=e/r;n?(_+=a)>1&&(_=1):(_-=a)<0&&(_=0),this.setPartsOpacity(p,_)}else{for(l=0;l=0)break;o=l;p=i[l];s=this.getPartsOpacity(p),(s+=e/r)>1&&(s=1)}}o<0&&(console.log("No _$wi _$q0/ _$U default[%s]",t[0]),o=0,s=1,this.loadParam(),this.setParamFloat(t[o],s),this.saveParam());for(l=0;l.15&&(h=1-.15/(1-s)),$>h&&($=h),this.setPartsOpacity(p,$)}}}else for(var l=0;l=this._$5S._$aS.length)return null;var i=this._$5S._$aS[t];return null!=i&&i.getType()==W._$wb&&i instanceof $t?i.getIndexArray():null};function o(t){if(!e){this.clipContextList=new Array,this.glcontext=t.gl,this.dp_webgl=t,this.curFrameNo=0,this.firstError_clipInNotUpdate=!0,this.colorBuffer=0,this.isInitGLFBFunc=!1,this.tmpBoundsOnModel=new P,_t.glContext.length>_t.frameBuffers.length&&(this.curFrameNo=this.getMaskRenderTexture()),this.tmpModelToViewMatrix=new O,this.tmpMatrix2=new O,this.tmpMatrixForMask=new O,this.tmpMatrixForDraw=new O,this.CHANNEL_COLORS=new Array;var i=new E;(i=new E).r=0,i.g=0,i.b=0,i.a=1,this.CHANNEL_COLORS.push(i),(i=new E).r=1,i.g=0,i.b=0,i.a=0,this.CHANNEL_COLORS.push(i),(i=new E).r=0,i.g=1,i.b=0,i.a=0,this.CHANNEL_COLORS.push(i),(i=new E).r=0,i.g=0,i.b=1,i.a=0,this.CHANNEL_COLORS.push(i);for(var r=0;r=0;--t)this.CHANNEL_COLORS.splice(t,1);this.CHANNEL_COLORS=[]}this.releaseShader()},o.prototype.releaseShader=function(){for(var t=_t.frameBuffers.length,i=0;i0){var s=i.gl.getParameter(i.gl.FRAMEBUFFER_BINDING),n=new Array(4);n[0]=0,n[1]=0,n[2]=i.gl.canvas.width,n[3]=i.gl.canvas.height,i.gl.viewport(0,0,_t.clippingMaskBufferSize,_t.clippingMaskBufferSize),this.setupLayoutBounds(e),i.gl.bindFramebuffer(i.gl.FRAMEBUFFER,_t.frameBuffers[this.curFrameNo].framebuffer),i.gl.clearColor(0,0,0,0),i.gl.clear(i.gl.COLOR_BUFFER_BIT);for(r=0;rr?e:r,s=o,n=o,_=0,a=0,h=i.clippedDrawContextList.length,$=0;$_&&(_=P),S>a&&(a=S)}}if(s==o)i.allClippedDrawRect.x=0,i.allClippedDrawRect.y=0,i.allClippedDrawRect.width=0,i.allClippedDrawRect.height=0,i.isUsing=!1;else{var v=_-s,L=a-n;i.allClippedDrawRect.x=s,i.allClippedDrawRect.y=n,i.allClippedDrawRect.width=v,i.allClippedDrawRect.height=L,i.isUsing=!0}},o.prototype.setupLayoutBounds=function(t){var i=t/o.CHANNEL_COUNT,e=t%o.CHANNEL_COUNT;i=~~i,e=~~e;for(var r=0,s=0;s=1)return 1;var u=r*r;return h*(r*u)+$*u+l*r+0},n.prototype._$a0=function(){},n.prototype.setFadeIn=function(t){this._$dP=t},n.prototype.setFadeOut=function(t){this._$eo=t},n.prototype._$pT=function(t){this._$V0=t},n.prototype.getFadeOut=function(){return this._$eo},n.prototype._$4T=function(){return this._$eo},n.prototype._$mT=function(){return this._$V0},n.prototype.getDurationMSec=function(){return-1},n.prototype.getLoopDurationMSec=function(){return-1},n.prototype.updateParam=function(t,i){if(i._$AT&&!i._$9L){var e=I.getUserTimeMSec();if(i._$z2<0){i._$z2=e,i._$bs=e;var r=this.getDurationMSec();i._$Do<0&&(i._$Do=r<=0?-1:i._$z2+r)}var o=this._$V0;0<=(o=o*(0==this._$dP?1:at._$r2((e-i._$bs)/this._$dP))*(0==this._$eo||i._$Do<0?1:at._$r2((i._$Do-e)/this._$eo)))&&o<=1||console.log("### assert!! ### "),this.updateParamExe(t,e,o,i),i._$Do>0&&i._$Do0?console.log("\n"):e%8==0&&e>0&&console.log(" "),console.log("%02X ",255&t[e]);console.log("\n")},_._$nr=function(t,i,e){console.log("%s\n",t);for(var r=i.length,o=0;o=0;--r){this._$lL[r]._$oP(t,this)}this._$oo(t,e),this._$M2=this._$Yb(),this._$9b=(this._$M2-this._$ks)/e,this._$ks=this._$M2}for(r=this._$qP.length-1;r>=0;--r){this._$qP[r]._$YS(t,this)}this._$iT=i},u.prototype._$oo=function(t,i){i<.033&&(i=.033);var e=1/i;this.p1.vx=(this.p1.x-this.p1._$s0)*e,this.p1.vy=(this.p1.y-this.p1._$70)*e,this.p1.ax=(this.p1.vx-this.p1._$7L)*e,this.p1.ay=(this.p1.vy-this.p1._$HL)*e,this.p1.fx=this.p1.ax*this.p1._$p,this.p1.fy=this.p1.ay*this.p1._$p,this.p1._$xT();var r,o,s=-Math.atan2(this.p1.y-this.p2.y,this.p1.x-this.p2.x),n=Math.cos(s),_=Math.sin(s),a=9.8*this.p2._$p,h=this._$Db*vt._$bS,$=a*Math.cos(s-h);r=$*_,o=$*n;var l=-this.p1.fx*_*_,u=-this.p1.fy*_*n,p=-this.p2.vx*this._$L2,c=-this.p2.vy*this._$L2;this.p2.fx=r+l+p,this.p2.fy=o+u+c,this.p2.ax=this.p2.fx/this.p2._$p,this.p2.ay=this.p2.fy/this.p2._$p,this.p2.vx+=this.p2.ax*i,this.p2.vy+=this.p2.ay*i,this.p2.x+=this.p2.vx*i,this.p2.y+=this.p2.vy*i;var f=Math.sqrt((this.p1.x-this.p2.x)*(this.p1.x-this.p2.x)+(this.p1.y-this.p2.y)*(this.p1.y-this.p2.y));this.p2.x=this.p1.x+this._$Fo*(this.p2.x-this.p1.x)/f,this.p2.y=this.p1.y+this._$Fo*(this.p2.y-this.p1.y)/f,this.p2.vx=(this.p2.x-this.p2._$s0)*e,this.p2.vy=(this.p2.y-this.p2._$70)*e,this.p2._$xT()};function p(){this._$p=1,this.x=0,this.y=0,this.vx=0,this.vy=0,this.ax=0,this.ay=0,this.fx=0,this.fy=0,this._$s0=0,this._$70=0,this._$7L=0,this._$HL=0}p.prototype._$xT=function(){this._$s0=this.x,this._$70=this.y,this._$7L=this.vx,this._$HL=this.vy};function c(t,i,e){this._$wL=null,this.scale=null,this._$V0=null,this._$wL=t,this.scale=i,this._$V0=e}c.prototype._$oP=function(t,i){};function f(t,i,e,r){c.prototype.constructor.call(this,i,e,r),this._$tL=null,this._$tL=t}f.prototype=new c,f.prototype._$oP=function(t,i){var e=this.scale*t.getParamFloat(this._$wL),r=i.getPhysicsPoint1();switch(this._$tL){default:case u.Src.SRC_TO_X:r.x=r.x+(e-r.x)*this._$V0;break;case u.Src.SRC_TO_Y:r.y=r.y+(e-r.y)*this._$V0;break;case u.Src.SRC_TO_G_ANGLE:var o=i._$qr();o+=(e-o)*this._$V0,i._$pr(o)}};function g(t,i,e){this._$wL=null,this.scale=null,this._$V0=null,this._$wL=t,this.scale=i,this._$V0=e}g.prototype._$YS=function(t,i){};function y(t,i,e,r){g.prototype.constructor.call(this,i,e,r),this._$YP=null,this._$YP=t}y.prototype=new g,y.prototype._$YS=function(t,i){switch(this._$YP){default:case u.Target.TARGET_FROM_ANGLE:t.setParamFloat(this._$wL,this.scale*i._$5r(),this._$V0);break;case u.Target.TARGET_FROM_ANGLE_V:t.setParamFloat(this._$wL,this.scale*i._$Cs(),this._$V0)}},u.Src=function(){},u.Src.SRC_TO_X="SRC_TO_X",u.Src.SRC_TO_Y="SRC_TO_Y",u.Src.SRC_TO_G_ANGLE="SRC_TO_G_ANGLE",u.Target=function(){},u.Target.TARGET_FROM_ANGLE="TARGET_FROM_ANGLE",u.Target.TARGET_FROM_ANGLE_V="TARGET_FROM_ANGLE_V";function d(){e||(this._$fL=0,this._$gL=0,this._$B0=1,this._$z0=1,this._$qT=0,this.reflectX=!1,this.reflectY=!1)}d.prototype.init=function(t){this._$fL=t._$fL,this._$gL=t._$gL,this._$B0=t._$B0,this._$z0=t._$z0,this._$qT=t._$qT,this.reflectX=t.reflectX,this.reflectY=t.reflectY},d.prototype._$F0=function(t){this._$fL=t._$_T(),this._$gL=t._$_T(),this._$B0=t._$_T(),this._$z0=t._$_T(),this._$qT=t._$_T(),t.getFormatVersion()>=G.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this.reflectX=t._$po(),this.reflectY=t._$po())},d.prototype._$e=function(){};var T=function(){};T._$ni=function(t,i,e,r,o,s,n,_,a){var h=n*s-_*o;if(0==h)return null;var $,l=((t-e)*s-(i-r)*o)/h;return $=0!=o?(t-e-l*n)/o:(i-r-l*_)/s,isNaN($)&&($=(t-e-l*n)/o,isNaN($)&&($=(i-r-l*_)/s),isNaN($)&&(console.log("a is NaN @UtVector#_$ni() "),console.log("v1x : "+o),console.log("v1x != 0 ? "+(0!=o)))),null==a?new Array($,l):(a[0]=$,a[1]=l,a)};function P(){e||(this.x=null,this.y=null,this.width=null,this.height=null)}P.prototype._$8P=function(){return this.x+.5*this.width},P.prototype._$6P=function(){return this.y+.5*this.height},P.prototype._$EL=function(){return this.x+this.width},P.prototype._$5T=function(){return this.y+this.height},P.prototype._$jL=function(t,i,e,r){this.x=t,this.y=i,this.width=e,this.height=r},P.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},P.prototype.contains=function(t,i){return this.x<=this.x&&this.y<=this.y&&this.x<=this.x+this.width&&this.y<=this.y+this.height},P.prototype.expand=function(t,i){this.x-=t,this.y-=i,this.width+=2*t,this.height+=2*i};function S(){}S._$Z2=function(t,i,e,r){var o=i._$Q2(t,e),s=t._$vs(),n=t._$Tr();if(i._$zr(s,n,o),o<=0)return r[s[0]];if(1==o){return(_=r[s[0]])+((a=r[s[1]])-_)*(l=n[0])|0}if(2==o){var _=r[s[0]],a=r[s[1]],h=r[s[2]],$=r[s[3]],l=n[0],u=n[1];return(S=_+(a-_)*l|0)+((h+($-h)*l|0)-S)*u|0}if(3==o){var p=r[s[0]],c=r[s[1]],f=r[s[2]],g=r[s[3]],y=r[s[4]],d=r[s[5]],m=r[s[6]],T=r[s[7]],P=(l=n[0],u=n[1],n[2]);return(S=(_=p+(c-p)*l|0)+((a=f+(g-f)*l|0)-_)*u|0)+(((h=y+(d-y)*l|0)+(($=m+(T-m)*l|0)-h)*u|0)-S)*P|0}if(4==o){var S,v=r[s[0]],L=r[s[1]],M=r[s[2]],E=r[s[3]],A=r[s[4]],I=r[s[5]],x=r[s[6]],w=r[s[7]],D=r[s[8]],O=r[s[9]],R=r[s[10]],b=r[s[11]],F=r[s[12]],C=r[s[13]],N=r[s[14]],B=r[s[15]],G=(l=n[0],u=n[1],P=n[2],n[3]);return(S=(_=(p=v+(L-v)*l|0)+((c=M+(E-M)*l|0)-p)*u|0)+((a=(f=A+(I-A)*l|0)+((g=x+(w-x)*l|0)-f)*u|0)-_)*P|0)+(((h=(y=D+(O-D)*l|0)+((d=R+(b-R)*l|0)-y)*u|0)+(($=(m=F+(C-F)*l|0)+((T=N+(B-N)*l|0)-m)*u|0)-h)*P|0)-S)*G|0}for(var U=1<=G._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=[],this._$MS(this._$Lb)},L.prototype.getClipIDList=function(){return this.clipIDList},L.prototype.init=function(t){},L.prototype._$Nr=function(t,i){if(i._$IS[0]=!1,i._$Us=S._$Z2(t,this._$GS,i._$IS,this._$Lb),_t._$Zs);else if(i._$IS[0])return;i._$7s=S._$br(t,this._$GS,i._$IS,this._$mS)},L.prototype._$2b=function(t,i){},L.prototype.getDrawDataID=function(){return this._$gP},L.prototype._$j2=function(t){this._$gP=t},L.prototype.getOpacity=function(t,i){return i._$7s},L.prototype._$zS=function(t,i){return i._$Us},L.prototype._$MS=function(t){for(var i=t.length-1;i>=0;--i){var e=t[i];eL._$R2&&(L._$R2=e)}},L.prototype.getTargetBaseDataID=function(){return this._$dr},L.prototype._$gs=function(t){this._$dr=t},L.prototype._$32=function(){return null!=this._$dr&&this._$dr!=yt._$2o()},L.prototype.preDraw=function(t,i,e){},L.prototype.draw=function(t,i,e){},L.prototype.getType=function(){},L.prototype._$B2=function(t,i,e){};function M(){e||(this._$Eb=M._$ps,this._$lT=1,this._$C0=1,this._$tT=1,this._$WL=1,this.culling=!1,this.matrix4x4=new Float32Array(16),this.premultipliedAlpha=!1,this.anisotropy=0,this.clippingProcess=M.CLIPPING_PROCESS_NONE,this.clipBufPre_clipContextMask=null,this.clipBufPre_clipContextDraw=null,this.CHANNEL_COLORS=new Array)}M._$ps=32,M.CLIPPING_PROCESS_NONE=0,M.CLIPPING_PROCESS_OVERWRITE_ALPHA=1,M.CLIPPING_PROCESS_MULTIPLY_ALPHA=2,M.CLIPPING_PROCESS_DRAW=3,M.CLIPPING_PROCESS_CLEAR_ALPHA=4,M.prototype.setChannelFlagAsColor=function(t,i){this.CHANNEL_COLORS[t]=i},M.prototype.getChannelFlagAsColor=function(t){return this.CHANNEL_COLORS[t]},M.prototype._$ZT=function(){},M.prototype._$Uo=function(t,i,e,r,o,s,n){},M.prototype._$Rs=function(){return-1},M.prototype._$Ds=function(t){},M.prototype.setBaseColor=function(t,i,e,r){t<0?t=0:t>1&&(t=1),i<0?i=0:i>1&&(i=1),e<0?e=0:e>1&&(e=1),r<0?r=0:r>1&&(r=1),this._$lT=t,this._$C0=i,this._$tT=e,this._$WL=r},M.prototype._$WP=function(t){this.culling=t},M.prototype.setMatrix=function(t){for(var i=0;i<16;i++)this.matrix4x4[i]=t[i]},M.prototype._$IT=function(){return this.matrix4x4},M.prototype.setPremultipliedAlpha=function(t){this.premultipliedAlpha=t},M.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha},M.prototype.setAnisotropy=function(t){this.anisotropy=t},M.prototype.getAnisotropy=function(){return this.anisotropy},M.prototype.getClippingProcess=function(){return this.clippingProcess},M.prototype.setClippingProcess=function(t){this.clippingProcess=t},M.prototype.setClipBufPre_clipContextForMask=function(t){this.clipBufPre_clipContextMask=t},M.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask},M.prototype.setClipBufPre_clipContextForDraw=function(t){this.clipBufPre_clipContextDraw=t},M.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw};function E(){e||(this.a=1,this.r=1,this.g=1,this.b=1,this.scale=1,this._$ho=1,this.blendMode=_t.L2D_COLOR_BLEND_MODE_MULT)}function A(){e||(this._$kP=null,this._$dr=null,this._$Ai=!0,this._$mS=null)}A._$ur=-2,A._$c2=1,A._$_b=2,A.prototype._$F0=function(t){this._$kP=t._$nP(),this._$dr=t._$nP()},A.prototype.readV2_opacity=function(t){t.getFormatVersion()>=G.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this._$mS=t._$Tb())},A.prototype.init=function(t){},A.prototype._$Nr=function(t,i){},A.prototype.interpolateOpacity=function(t,i,e,r){null==this._$mS?e.setInterpolatedOpacity(1):e.setInterpolatedOpacity(S._$br(t,i,r,this._$mS))},A.prototype._$2b=function(t,i){},A.prototype._$nb=function(t,i,e,r,o,s,n){},A.prototype.getType=function(){},A.prototype._$gs=function(t){this._$dr=t},A.prototype._$a2=function(t){this._$kP=t},A.prototype.getTargetBaseDataID=function(){return this._$dr},A.prototype.getBaseDataID=function(){return this._$kP},A.prototype._$32=function(){return null!=this._$dr&&this._$dr!=yt._$2o()};function I(){}I._$W2=0,I._$CS=I._$W2,I._$Mo=function(){return!0},I._$XP=function(t){try{for(var i=getTimeMSec();getTimeMSec()-i=t.length)return!1;for(var o=i;o=0;--e){var r=this._$Ob[e].getParamIndex(i);if(r==x._$ds&&(r=t.getParamIndex(this._$Ob[e].getParamID())),t._$Xb(r))return!0}return!1},D.prototype._$Q2=function(t,i){for(var e,r,o=this._$Ob.length,s=t._$v2(),n=0,_=0;_B._$Qb&&console.log("err 23245\n");for(var o=this._$Ob.length,s=1,n=1,_=0,a=0;a=0;--s)e[s]=o[s]}else this.mult_fast(t,i,e,r)},O.prototype.mult_fast=function(t,i,e,r){r?(e[0]=t[0]*i[0]+t[4]*i[1]+t[8]*i[2],e[4]=t[0]*i[4]+t[4]*i[5]+t[8]*i[6],e[8]=t[0]*i[8]+t[4]*i[9]+t[8]*i[10],e[12]=t[0]*i[12]+t[4]*i[13]+t[8]*i[14]+t[12],e[1]=t[1]*i[0]+t[5]*i[1]+t[9]*i[2],e[5]=t[1]*i[4]+t[5]*i[5]+t[9]*i[6],e[9]=t[1]*i[8]+t[5]*i[9]+t[9]*i[10],e[13]=t[1]*i[12]+t[5]*i[13]+t[9]*i[14]+t[13],e[2]=t[2]*i[0]+t[6]*i[1]+t[10]*i[2],e[6]=t[2]*i[4]+t[6]*i[5]+t[10]*i[6],e[10]=t[2]*i[8]+t[6]*i[9]+t[10]*i[10],e[14]=t[2]*i[12]+t[6]*i[13]+t[10]*i[14]+t[14],e[3]=e[7]=e[11]=0,e[15]=1):(e[0]=t[0]*i[0]+t[4]*i[1]+t[8]*i[2]+t[12]*i[3],e[4]=t[0]*i[4]+t[4]*i[5]+t[8]*i[6]+t[12]*i[7],e[8]=t[0]*i[8]+t[4]*i[9]+t[8]*i[10]+t[12]*i[11],e[12]=t[0]*i[12]+t[4]*i[13]+t[8]*i[14]+t[12]*i[15],e[1]=t[1]*i[0]+t[5]*i[1]+t[9]*i[2]+t[13]*i[3],e[5]=t[1]*i[4]+t[5]*i[5]+t[9]*i[6]+t[13]*i[7],e[9]=t[1]*i[8]+t[5]*i[9]+t[9]*i[10]+t[13]*i[11],e[13]=t[1]*i[12]+t[5]*i[13]+t[9]*i[14]+t[13]*i[15],e[2]=t[2]*i[0]+t[6]*i[1]+t[10]*i[2]+t[14]*i[3],e[6]=t[2]*i[4]+t[6]*i[5]+t[10]*i[6]+t[14]*i[7],e[10]=t[2]*i[8]+t[6]*i[9]+t[10]*i[10]+t[14]*i[11],e[14]=t[2]*i[12]+t[6]*i[13]+t[10]*i[14]+t[14]*i[15],e[3]=t[3]*i[0]+t[7]*i[1]+t[11]*i[2]+t[15]*i[3],e[7]=t[3]*i[4]+t[7]*i[5]+t[11]*i[6]+t[15]*i[7],e[11]=t[3]*i[8]+t[7]*i[9]+t[11]*i[10]+t[15]*i[11],e[15]=t[3]*i[12]+t[7]*i[13]+t[11]*i[14]+t[15]*i[15])},O.prototype.translate=function(t,i,e){this.m[12]=this.m[0]*t+this.m[4]*i+this.m[8]*e+this.m[12],this.m[13]=this.m[1]*t+this.m[5]*i+this.m[9]*e+this.m[13],this.m[14]=this.m[2]*t+this.m[6]*i+this.m[10]*e+this.m[14],this.m[15]=this.m[3]*t+this.m[7]*i+this.m[11]*e+this.m[15]},O.prototype.scale=function(t,i,e){this.m[0]*=t,this.m[4]*=i,this.m[8]*=e,this.m[1]*=t,this.m[5]*=i,this.m[9]*=e,this.m[2]*=t,this.m[6]*=i,this.m[10]*=e,this.m[3]*=t,this.m[7]*=i,this.m[11]*=e},O.prototype.rotateX=function(t){var i=vt.fcos(t),e=vt._$9(t),r=this.m[4];this.m[4]=r*i+this.m[8]*e,this.m[8]=r*-e+this.m[8]*i,r=this.m[5],this.m[5]=r*i+this.m[9]*e,this.m[9]=r*-e+this.m[9]*i,r=this.m[6],this.m[6]=r*i+this.m[10]*e,this.m[10]=r*-e+this.m[10]*i,r=this.m[7],this.m[7]=r*i+this.m[11]*e,this.m[11]=r*-e+this.m[11]*i},O.prototype.rotateY=function(t){var i=vt.fcos(t),e=vt._$9(t),r=this.m[0];this.m[0]=r*i+this.m[8]*-e,this.m[8]=r*e+this.m[8]*i,r=this.m[1],this.m[1]=r*i+this.m[9]*-e,this.m[9]=r*e+this.m[9]*i,r=m[2],this.m[2]=r*i+this.m[10]*-e,this.m[10]=r*e+this.m[10]*i,r=m[3],this.m[3]=r*i+this.m[11]*-e,this.m[11]=r*e+this.m[11]*i},O.prototype.rotateZ=function(t){var i=vt.fcos(t),e=vt._$9(t),r=this.m[0];this.m[0]=r*i+this.m[4]*e,this.m[4]=r*-e+this.m[4]*i,r=this.m[1],this.m[1]=r*i+this.m[5]*e,this.m[5]=r*-e+this.m[5]*i,r=this.m[2],this.m[2]=r*i+this.m[6]*e,this.m[6]=r*-e+this.m[6]*i,r=this.m[3],this.m[3]=r*i+this.m[7]*e,this.m[7]=r*-e+this.m[7]*i};function R(t){e||et.prototype.constructor.call(this,t)}R.prototype=new et,R._$tP=new Object,R._$27=function(){R._$tP.clear()},R.getID=function(t){var i=R._$tP[t];return null==i&&(i=new R(t),R._$tP[t]=i),i},R.prototype._$3s=function(){return new R};function b(){e||(this._$7=1,this._$f=0,this._$H=0,this._$g=1,this._$k=0,this._$w=0,this._$hi=STATE_IDENTITY,this._$Z=_$pS)}b._$kS=-1,b._$pS=0,b._$hb=1,b.STATE_IDENTITY=0,b._$gb=1,b._$fo=2,b._$go=4,b.prototype.transform=function(t,i,e){var r,o,s,n,_,a,h=0,$=0;switch(this._$hi){default:return;case b._$go|b._$fo|b._$gb:for(r=this._$7,o=this._$H,s=this._$k,n=this._$f,_=this._$g,a=this._$w;--e>=0;){var l=t[h++],u=t[h++];i[$++]=r*l+o*u+s,i[$++]=n*l+_*u+a}return;case b._$go|b._$fo:for(r=this._$7,o=this._$H,n=this._$f,_=this._$g;--e>=0;){l=t[h++],u=t[h++];i[$++]=r*l+o*u,i[$++]=n*l+_*u}return;case b._$go|b._$gb:for(o=this._$H,s=this._$k,n=this._$f,a=this._$w;--e>=0;){l=t[h++];i[$++]=o*t[h++]+s,i[$++]=n*l+a}return;case b._$go:for(o=this._$H,n=this._$f;--e>=0;){l=t[h++];i[$++]=o*t[h++],i[$++]=n*l}return;case b._$fo|b._$gb:for(r=this._$7,s=this._$k,_=this._$g,a=this._$w;--e>=0;)i[$++]=r*t[h++]+s,i[$++]=_*t[h++]+a;return;case b._$fo:for(r=this._$7,_=this._$g;--e>=0;)i[$++]=r*t[h++],i[$++]=_*t[h++];return;case b._$gb:for(s=this._$k,a=this._$w;--e>=0;)i[$++]=t[h++]+s,i[$++]=t[h++]+a;return;case b.STATE_IDENTITY:return void(t==i&&h==$||I._$jT(t,h,i,$,2*e))}},b.prototype.update=function(){0==this._$H&&0==this._$f?1==this._$7&&1==this._$g?0==this._$k&&0==this._$w?(this._$hi=b.STATE_IDENTITY,this._$Z=b._$pS):(this._$hi=b._$gb,this._$Z=b._$hb):0==this._$k&&0==this._$w?(this._$hi=b._$fo,this._$Z=b._$kS):(this._$hi=b._$fo|b._$gb,this._$Z=b._$kS):0==this._$7&&0==this._$g?0==this._$k&&0==this._$w?(this._$hi=b._$go,this._$Z=b._$kS):(this._$hi=b._$go|b._$gb,this._$Z=b._$kS):0==this._$k&&0==this._$w?(this._$hi=b._$go|b._$fo,this._$Z=b._$kS):(this._$hi=b._$go|b._$fo|b._$gb,this._$Z=b._$kS)},b.prototype._$RT=function(t){this._$IT(t);var i=t[0],e=t[2],r=t[1],o=t[3],s=Math.sqrt(i*i+r*r),n=i*o-e*r;0==s?_t._$so&&console.log("affine._$RT() / rt==0"):(t[0]=s,t[1]=n/s,t[2]=(r*o+i*e)/n,t[3]=Math.atan2(r,i))},b.prototype._$ho=function(t,i,e,r){var o=new Float32Array(6),s=new Float32Array(6);t._$RT(o),i._$RT(s);var n=new Float32Array(6);n[0]=o[0]+(s[0]-o[0])*e,n[1]=o[1]+(s[1]-o[1])*e,n[2]=o[2]+(s[2]-o[2])*e,n[3]=o[3]+(s[3]-o[3])*e,n[4]=o[4]+(s[4]-o[4])*e,n[5]=o[5]+(s[5]-o[5])*e,r._$CT(n)},b.prototype._$CT=function(t){var i=Math.cos(t[3]),e=Math.sin(t[3]);this._$7=t[0]*i,this._$f=t[0]*e,this._$H=t[1]*(t[2]*i-e),this._$g=t[1]*(t[2]*e+i),this._$k=t[4],this._$w=t[5],this.update()},b.prototype._$IT=function(t){t[0]=this._$7,t[1]=this._$f,t[2]=this._$H,t[3]=this._$g,t[4]=this._$k,t[5]=this._$w};function F(){e||(n.prototype.constructor.call(this),this.motions=new Array,this._$7r=null,this._$7r=F._$Co++,this._$D0=30,this._$yT=0,this._$E=!0,this.loopFadeIn=!0,this._$AS=-1,_$a0())}F.prototype=new n,F._$cs="VISIBLE:",F._$ar="LAYOUT:",F._$Co=0,F._$D2=[],F._$1T=1,F.loadMotion=function(t){var i=new F,e=[0],r=t.length;i._$yT=0;for(var o=0;o=0){var n=new N;w.startsWith(t,h,F._$cs)?(n._$RP=N._$hs,n._$4P=new String(t,h,$-h)):w.startsWith(t,h,F._$ar)?(n._$4P=new String(t,h+7,$-h-7),w.startsWith(t,h+7,"ANCHOR_X")?n._$RP=N._$xs:w.startsWith(t,h+7,"ANCHOR_Y")?n._$RP=N._$us:w.startsWith(t,h+7,"SCALE_X")?n._$RP=N._$qs:w.startsWith(t,h+7,"SCALE_Y")?n._$RP=N._$Ys:w.startsWith(t,h+7,"X")?n._$RP=N._$ws:w.startsWith(t,h+7,"Y")&&(n._$RP=N._$Ns)):(n._$RP=N._$Fr,n._$4P=new String(t,h,$-h)),i.motions.push(n);var _=0;for(F._$D2.clear(),o=$+1;o0){F._$D2.push(u),_++;var a=e[0];if(ai._$yT&&(i._$yT=_)}}}else{for(var h=o,$=-1;o=0)for($==h+4&&"f"==t[h+1]&&"p"==t[h+2]&&"s"==t[h+3]&&(l=!0),o=$+1;o0&&l&&5=h?h-1:s];t.setParamFloat($,l)}else if(N._$ws<=a._$RP&&a._$RP<=N._$Ys);else{var u=t.getParamFloat($),p=a._$I0[s>=h?h-1:s],c=u+(p+(a._$I0[s+1>=h?h-1:s+1]-p)*n-u)*e;t.setParamFloat($,c)}}s>=this._$yT&&(this._$E?(r._$z2=i,this.loopFadeIn&&(r._$bs=i)):r._$9L=!0)},F.prototype._$r0=function(){return this._$E},F.prototype._$aL=function(t){this._$E=t},F.prototype.isLoopFadeIn=function(){return this.loopFadeIn},F.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t};function C(){this._$P=new Float32Array(100),this.size=0}C.prototype.clear=function(){this.size=0},C.prototype.add=function(t){if(this._$P.length<=this.size){var i=new Float32Array(2*this.size);I._$jT(this._$P,0,i,0,this.size),this._$P=i}this._$P[this.size++]=t},C.prototype._$BL=function(){var t=new Float32Array(this.size);return I._$jT(this._$P,0,t,0,this.size),t};function N(){this._$4P=null,this._$I0=null,this._$RP=null}N._$Fr=0,N._$hs=1,N._$ws=100,N._$Ns=101,N._$xs=102,N._$us=103,N._$qs=104,N._$Ys=105;function B(){}B._$Ms=1,B._$Qs=2,B._$i2=0,B._$No=2,B._$do=B._$Ms,B._$Ls=!0,B._$1r=5,B._$Qb=65,B._$J=1e-4,B._$FT=.001,B._$Ss=3;function G(){}G._$o7=6,G._$S7=7,G._$s7=8,G._$77=9,G.LIVE2D_FORMAT_VERSION_V2_10_SDK2=10,G.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1=11,G._$T7=G.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1,G._$Is=-2004318072,G._$h0=0,G._$4L=23,G._$7P=33,G._$uT=function(t){console.log("_$bo :: _$6 _$mo _$E0 : %d\n",t)},G._$9o=function(t){if(t<40)return G._$uT(t),null;if(t<50)return G._$uT(t),null;if(t<60)return G._$uT(t),null;if(t<100)switch(t){case 65:return new Z;case 66:return new D;case 67:return new x;case 68:return new z;case 69:return new d;case 70:return new $t;default:return G._$uT(t),null}else if(t<150)switch(t){case 131:return new st;case 133:return new tt;case 136:return new l;case 137:return new rt;case 142:return new j}return G._$uT(t),null};function U(t){e||(this._$QT=!0,this._$co=-1,this._$qo=0,this._$pb=new Array(U._$is),this._$_2=new Float32Array(U._$is),this._$vr=new Float32Array(U._$is),this._$Rr=new Float32Array(U._$is),this._$Or=new Float32Array(U._$is),this._$fs=new Float32Array(U._$is),this._$Js=new Array(U._$is),this._$3S=new Array,this._$aS=new Array,this._$Bo=null,this._$F2=new Array,this._$db=new Array,this._$8b=new Array,this._$Hr=new Array,this._$Ws=null,this._$Vs=null,this._$Er=null,this._$Es=new Int16Array(B._$Qb),this._$ZP=new Float32Array(2*B._$1r),this._$Ri=t,this._$b0=U._$HP++,this.clipManager=null,this.dp_webgl=null)}U._$HP=0,U._$_0=!0,U._$V2=-1,U._$W0=-1,U._$jr=!1,U._$ZS=!0,U._$tr=-1e6,U._$lr=1e6,U._$is=32,U._$e=!1,U.prototype.getDrawDataIndex=function(t){for(var i=this._$aS.length-1;i>=0;--i)if(null!=this._$aS[i]&&this._$aS[i].getDrawDataID()==t)return i;return-1},U.prototype.getDrawData=function(t){if(t instanceof R){if(null==this._$Bo){this._$Bo=new Object;for(var i=this._$aS.length,e=0;e0&&this.release();for(var t=this._$Ri.getModelImpl(),i=t._$Xr(),e=i.length,r=new Array,s=new Array,n=0;n=0)&&(this._$3S.push(m),this._$db.push(s[n]),r[n]=null,d=!0)}}if(!d)break}var P=t._$E2();if(null!=P){var S=P._$1s();if(null!=S){var v=S.length;for(n=0;n=0;i--)this._$Js[i]=U._$jr;return this._$QT=!1,U._$e&&_.dump("_$eL"),!1},U.prototype.preDraw=function(t){null!=this.clipManager&&(t._$ZT(),this.clipManager.setupClip(this,t))},U.prototype.draw=function(t){if(null!=this._$Ws){var i=this._$Ws.length;t._$ZT();for(var e=0;e=0;--i)if(this._$pb[i]==t)return i;return this._$02(t,0,U._$tr,U._$lr)},U.prototype._$BS=function(t){return this.getBaseDataIndex(t)},U.prototype.getBaseDataIndex=function(t){for(var i=this._$3S.length-1;i>=0;--i)if(null!=this._$3S[i]&&this._$3S[i].getBaseDataID()==t)return i;return-1},U.prototype._$UT=function(t,i){var e=new Float32Array(i);return I._$jT(t,0,e,0,t.length),e},U.prototype._$02=function(t,i,e,r){if(this._$qo>=this._$pb.length){var o=this._$pb.length,s=new Array(2*o);I._$jT(this._$pb,0,s,0,o),this._$pb=s,this._$_2=this._$UT(this._$_2,2*o),this._$vr=this._$UT(this._$vr,2*o),this._$Rr=this._$UT(this._$Rr,2*o),this._$Or=this._$UT(this._$Or,2*o);var n=new Array;I._$jT(this._$Js,0,n,0,o),this._$Js=n}return this._$pb[this._$qo]=t,this._$_2[this._$qo]=i,this._$vr[this._$qo]=i,this._$Rr[this._$qo]=e,this._$Or[this._$qo]=r,this._$Js[this._$qo]=U._$ZS,this._$qo++},U.prototype._$Zo=function(t,i){this._$3S[t]=i},U.prototype.setParamFloat=function(t,i){ithis._$Or[t]&&(i=this._$Or[t]),this._$_2[t]=i},U.prototype.loadParam=function(){var t=this._$_2.length;t>this._$fs.length&&(t=this._$fs.length),I._$jT(this._$fs,0,this._$_2,0,t)},U.prototype.saveParam=function(){var t=this._$_2.length;t>this._$fs.length&&(this._$fs=new Float32Array(t)),I._$jT(this._$_2,0,this._$fs,0,t)},U.prototype._$v2=function(){return this._$co},U.prototype._$WS=function(){return this._$QT},U.prototype._$Xb=function(t){return this._$Js[t]==U._$ZS},U.prototype._$vs=function(){return this._$Es},U.prototype._$Tr=function(){return this._$ZP},U.prototype.getBaseData=function(t){return this._$3S[t]},U.prototype.getParamFloat=function(t){return this._$_2[t]},U.prototype.getParamMax=function(t){return this._$Or[t]},U.prototype.getParamMin=function(t){return this._$Rr[t]},U.prototype.setPartsOpacity=function(t,i){this._$Hr[t].setPartsOpacity(i)},U.prototype.getPartsOpacity=function(t){return this._$Hr[t].getPartsOpacity()},U.prototype.getPartsDataIndex=function(t){for(var i=this._$F2.length-1;i>=0;--i)if(null!=this._$F2[i]&&this._$F2[i]._$p2()==t)return i;return-1},U.prototype._$q2=function(t){return this._$db[t]},U.prototype._$C2=function(t){return this._$8b[t]},U.prototype._$Bb=function(t){return this._$Hr[t]},U.prototype._$5s=function(t,i){for(var e=this._$Ws.length,r=t,o=0;o0;)s+=i;return r},Y._$C=function(t){var i=null,e=null;try{i=t instanceof Array?t:new _$Xs(t,8192),e=new _$js;for(var r,o=new Int8Array(1e3);(r=i.read(o))>0;)e.write(o,0,r);return e._$TS()}finally{null!=t&&t.close(),null!=e&&(e.flush(),e.close())}};function k(){e||(this._$12=null,this._$bb=null,this._$_L=null,this._$jo=null,this._$iL=null,this._$0L=null,this._$Br=null,this._$Dr=null,this._$Cb=null,this._$mr=null,this._$_L=V.STATE_FIRST,this._$Br=4e3,this._$Dr=100,this._$Cb=50,this._$mr=150,this._$jo=!0,this._$iL="PARAM_EYE_L_OPEN",this._$0L="PARAM_EYE_R_OPEN")}k.prototype._$T2=function(){return I.getUserTimeMSec()+Math._$10()*(2*this._$Br-1)},k.prototype._$uo=function(t){this._$Br=t},k.prototype._$QS=function(t,i,e){this._$Dr=t,this._$Cb=i,this._$mr=e},k.prototype._$7T=function(t){var i,e=I.getUserTimeMSec(),r=0;switch(this._$_L){case STATE_CLOSING:(r=(e-this._$bb)/this._$Dr)>=1&&(r=1,this._$_L=V.STATE_CLOSED,this._$bb=e),i=1-r;break;case STATE_CLOSED:(r=(e-this._$bb)/this._$Cb)>=1&&(this._$_L=V.STATE_OPENING,this._$bb=e),i=0;break;case STATE_OPENING:(r=(e-this._$bb)/this._$mr)>=1&&(r=1,this._$_L=V.STATE_INTERVAL,this._$12=this._$T2()),i=r;break;case STATE_INTERVAL:this._$12.9?_t.EXPAND_W:0;this.gl.drawElements(a,e,r,o,s,h,this.transform,_)}},X.prototype._$Rs=function(){throw new Error("_$Rs")},X.prototype._$Ds=function(t){throw new Error("_$Ds")},X.prototype._$K2=function(){for(var t=0;t=0;--i){var e=t[i];eW._$R2&&(W._$R2=e)}},W._$or=function(){return W._$52},W._$Pr=function(){return W._$R2},W.prototype._$F0=function(t){this._$gP=t._$nP(),this._$dr=t._$nP(),this._$GS=t._$nP(),this._$qb=t._$6L(),this._$Lb=t._$cS(),this._$mS=t._$Tb(),t.getFormatVersion()>=G._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=null,W._$Sb(this._$Lb)},W.prototype.getClipIDList=function(){return this.clipIDList},W.prototype._$Nr=function(t,i){if(i._$IS[0]=!1,i._$Us=S._$Z2(t,this._$GS,i._$IS,this._$Lb),_t._$Zs);else if(i._$IS[0])return;i._$7s=S._$br(t,this._$GS,i._$IS,this._$mS)},W.prototype._$2b=function(t){},W.prototype.getDrawDataID=function(){return this._$gP},W.prototype._$j2=function(t){this._$gP=t},W.prototype.getOpacity=function(t,i){return i._$7s},W.prototype._$zS=function(t,i){return i._$Us},W.prototype.getTargetBaseDataID=function(){return this._$dr},W.prototype._$gs=function(t){this._$dr=t},W.prototype._$32=function(){return null!=this._$dr&&this._$dr!=yt._$2o()},W.prototype.getType=function(){};function j(){e||(this._$NL=null,this._$3S=null,this._$aS=null,j._$42++)}j._$42=0,j.prototype._$1b=function(){return this._$3S},j.prototype.getDrawDataList=function(){return this._$aS},j.prototype._$F0=function(t){this._$NL=t._$nP(),this._$aS=t._$nP(),this._$3S=t._$nP()},j.prototype._$kr=function(t){t._$Zo(this._$3S),t._$xo(this._$aS),this._$3S=null,this._$aS=null};function q(){e||(r.prototype.constructor.call(this),this._$zo=new X)}q.prototype=new r,q.loadModel=function(t){var i=new q;return r._$62(i,t),i},q.loadModel=function(t){var i=new q;return r._$62(i,t),i},q._$to=function(){return new q},q._$er=function(t){var i=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(0==i.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+i._$PL());for(var e=["../_$_r/_$t0/_$Ri/_$_P.512/_$CP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$vP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$EP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$pP._$1"],r=q.loadModel(i._$3b()),o=0;o=0){var _=new N;w.startsWith(t,l,J._$cs)?(_._$RP=N._$hs,_._$4P=w.createString(t,l,u-l)):w.startsWith(t,l,J._$ar)?(_._$4P=w.createString(t,l+7,u-l-7),w.startsWith(t,l+7,"ANCHOR_X")?_._$RP=N._$xs:w.startsWith(t,l+7,"ANCHOR_Y")?_._$RP=N._$us:w.startsWith(t,l+7,"SCALE_X")?_._$RP=N._$qs:w.startsWith(t,l+7,"SCALE_Y")?_._$RP=N._$Ys:w.startsWith(t,l+7,"X")?_._$RP=N._$ws:w.startsWith(t,l+7,"Y")&&(_._$RP=N._$Ns)):(_._$RP=N._$Fr,_._$4P=w.createString(t,l,u-l)),i.motions.push(_);var a=0,h=[];for(o=u+1;o0){h.push(c),a++;var $=e[0];if($i._$yT&&(i._$yT=a)}}}else{for(var l=o,u=-1;o=0)for(u==l+4&&"f"==Q(t,l+1)&&"p"==Q(t,l+2)&&"s"==Q(t,l+3)&&(p=!0),o=u+1;o0&&p&&5=h?h-1:s];t.setParamFloat($,l)}else if(N._$ws<=a._$RP&&a._$RP<=N._$Ys);else{var u=t.getParamIndex($),p=t.getModelContext(),c=.4*(p.getParamMax(u)-p.getParamMin(u)),f=p.getParamFloat(u),g=a._$I0[s>=h?h-1:s],y=a._$I0[s+1>=h?h-1:s+1],d=f+((gc||g>y&&g-y>c?g:g+(y-g)*n)-f)*e;t.setParamFloat($,d)}}s>=this._$yT&&(this._$E?(r._$z2=i,this.loopFadeIn&&(r._$bs=i)):r._$9L=!0),this._$eP=e},J.prototype._$r0=function(){return this._$E},J.prototype._$aL=function(t){this._$E=t},J.prototype._$S0=function(){return this._$D0},J.prototype._$U0=function(t){this._$D0=t},J.prototype.isLoopFadeIn=function(){return this.loopFadeIn},J.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t};function C(){this._$P=new Float32Array(100),this.size=0}C.prototype.clear=function(){this.size=0},C.prototype.add=function(t){if(this._$P.length<=this.size){var i=new Float32Array(2*this.size);I._$jT(this._$P,0,i,0,this.size),this._$P=i}this._$P[this.size++]=t},C.prototype._$BL=function(){var t=new Float32Array(this.size);return I._$jT(this._$P,0,t,0,this.size),t};function N(){this._$4P=null,this._$I0=null,this._$RP=null}N._$Fr=0,N._$hs=1,N._$ws=100,N._$Ns=101,N._$xs=102,N._$us=103,N._$qs=104,N._$Ys=105;function Z(){e||(A.prototype.constructor.call(this),this._$o=0,this._$A=0,this._$GS=null,this._$Eo=null)}Z.prototype=new A,Z._$gT=new Array,Z.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},Z.prototype._$F0=function(t){A.prototype._$F0.call(this,t),this._$A=t._$6L(),this._$o=t._$6L(),this._$GS=t._$nP(),this._$Eo=t._$nP(),A.prototype.readV2_opacity.call(this,t)},Z.prototype.init=function(t){var i=new K(this),e=(this._$o+1)*(this._$A+1);return null!=i._$Cr&&(i._$Cr=null),i._$Cr=new Float32Array(2*e),null!=i._$hr&&(i._$hr=null),this._$32()?i._$hr=new Float32Array(2*e):i._$hr=null,i},Z.prototype._$Nr=function(t,i){var e=i;if(this._$GS._$Ur(t)){var r=this._$VT(),o=Z._$gT;o[0]=!1,S._$Vr(t,this._$GS,o,r,this._$Eo,e._$Cr,0,2),i._$Ib(o[0]),this.interpolateOpacity(t,this._$GS,i,o)}},Z.prototype._$2b=function(t,i){var e=i;if(e._$hS(!0),this._$32()){var r=this.getTargetBaseDataID();if(e._$8r==A._$ur&&(e._$8r=t.getBaseDataIndex(r)),e._$8r<0)_t._$so&&_._$li("_$L _$0P _$G :: %s",r),e._$hS(!1);else{var o=t.getBaseData(e._$8r),s=t._$q2(e._$8r);if(null!=o&&s._$yo()){var n=s.getTotalScale();e.setTotalScale_notForClient(n);var a=s.getTotalOpacity();e.setTotalOpacity(a*e.getInterpolatedOpacity()),o._$nb(t,s,e._$Cr,e._$hr,this._$VT(),0,2),e._$hS(!0)}else e._$hS(!1)}}else e.setTotalOpacity(e.getInterpolatedOpacity())},Z.prototype._$nb=function(t,i,e,r,o,s,n){var _=i,a=null!=_._$hr?_._$hr:_._$Cr;Z.transformPoints_sdk2(e,r,o,s,n,a,this._$o,this._$A)},Z.transformPoints_sdk2=function(i,e,r,o,s,n,_,a){for(var h,$,l,u=r*s,p=0,c=0,f=0,g=0,y=0,d=0,m=!1,T=o;T=1){b=n[2*(0+a*M)],F=n[2*(0+a*M)+1],C=p-2*f+1*y,N=c-2*g+1*d,w=p+3*y,D=c+3*d,O=p-2*f+3*y,R=c-2*g+3*d;(B=.5*(v- -2))+(G=.5*(L-1))<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else{(k=0|S)==a&&(k=a-1);var B=.5*(v- -2),G=S-k,U=k/a,Y=(k+1)/a;b=n[2*(0+k*M)],F=n[2*(0+k*M)+1],w=n[2*(0+(k+1)*M)],D=n[2*(0+(k+1)*M)+1],C=p-2*f+U*y,N=c-2*g+U*d,O=p-2*f+Y*y,R=c-2*g+Y*d;B+G<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else if(1<=v)if(L<=0){O=n[2*(_+0*M)],R=n[2*(_+0*M)+1],w=p+3*f,D=c+3*g,C=p+1*f-2*y,N=c+1*g-2*d,b=p+3*f-2*y,F=c+3*g-2*d;(B=.5*(v-1))+(G=.5*(L- -2))<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else if(L>=1){C=n[2*(_+a*M)],N=n[2*(_+a*M)+1],b=p+3*f+1*y,F=c+3*g+1*d,O=p+1*f+3*y,R=c+1*g+3*d,w=p+3*f+3*y,D=c+3*g+3*d;(B=.5*(v-1))+(G=.5*(L-1))<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else{var k;(k=0|S)==a&&(k=a-1);B=.5*(v-1),G=S-k,U=k/a,Y=(k+1)/a,C=n[2*(_+k*M)],N=n[2*(_+k*M)+1],O=n[2*(_+(k+1)*M)],R=n[2*(_+(k+1)*M)+1],b=p+3*f+U*y,F=c+3*g+U*d,w=p+3*f+Y*y,D=c+3*g+Y*d;B+G<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else if(L<=0){(z=0|P)==_&&(z=_-1);B=P-z,G=.5*(L- -2);var V=z/_,X=(z+1)/_;O=n[2*(z+0*M)],R=n[2*(z+0*M)+1],w=n[2*(z+1+0*M)],D=n[2*(z+1+0*M)+1],C=p+V*f-2*y,N=c+V*g-2*d,b=p+X*f-2*y,F=c+X*g-2*d;B+G<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else if(L>=1){var z;(z=0|P)==_&&(z=_-1);B=P-z,G=.5*(L-1),V=z/_,X=(z+1)/_,C=n[2*(z+a*M)],N=n[2*(z+a*M)+1],b=n[2*(z+1+a*M)],F=n[2*(z+1+a*M)+1],O=p+V*f+3*y,R=c+V*g+3*d,w=p+X*f+3*y,D=c+X*g+3*d;B+G<=1?(e[T]=C+(b-C)*B+(O-C)*G,e[T+1]=N+(F-N)*B+(R-N)*G):(e[T]=w+(O-w)*(1-B)+(b-w)*(1-G),e[T+1]=D+(R-D)*(1-B)+(F-D)*(1-G))}else t.err.printf("_$li calc : %.4f , %.4f @@BDBoxGrid\n",v,L);else e[T]=p+v*f+L*y,e[T+1]=c+v*g+L*d}else h=2*((0|P)+(0|S)*(_+1)),($=P-(0|P))+(l=S-(0|S))<1?(e[T]=n[h]*(1-$-l)+n[h+2]*$+n[h+2*(_+1)]*l,e[T+1]=n[h+1]*(1-$-l)+n[h+3]*$+n[h+2*(_+1)+1]*l):(e[T]=n[h+2*(_+1)+2]*($-1+l)+n[h+2*(_+1)]*(1-$)+n[h+2]*(1-l),e[T+1]=n[h+2*(_+1)+3]*($-1+l)+n[h+2*(_+1)+1]*(1-$)+n[h+3]*(1-l))}},Z.prototype.transformPoints_sdk1=function(t,i,e,r,o,s,n){for(var _,a,h,$,l,u,p,c=i,f=this._$o,g=this._$A,y=o*n,d=null!=c._$hr?c._$hr:c._$Cr,m=s;m1&&(_=1),a<0?a=0:a>1&&(a=1),$=0|(a*=g),(h=0|(_*=f))>f-1&&(h=f-1),$>g-1&&($=g-1),u=_-h,p=a-$,l=2*(h+$*(f+1))):(u=(_=e[m]*f)-(0|_),p=(a=e[m+1]*g)-(0|a),l=2*((0|_)+(0|a)*(f+1))),u+p<1?(r[m]=d[l]*(1-u-p)+d[l+2]*u+d[l+2*(f+1)]*p,r[m+1]=d[l+1]*(1-u-p)+d[l+3]*u+d[l+2*(f+1)+1]*p):(r[m]=d[l+2*(f+1)+2]*(u-1+p)+d[l+2*(f+1)]*(1-u)+d[l+2]*(1-p),r[m+1]=d[l+2*(f+1)+3]*(u-1+p)+d[l+2*(f+1)+1]*(1-u)+d[l+3]*(1-p))},Z.prototype._$VT=function(){return(this._$o+1)*(this._$A+1)},Z.prototype.getType=function(){return A._$_b};function K(t){nt.prototype.constructor.call(this,t),this._$8r=A._$ur,this._$Cr=null,this._$hr=null}K.prototype=new nt;function tt(){e||(this.visible=!0,this._$g0=!1,this._$NL=null,this._$3S=null,this._$aS=null,tt._$42++)}tt._$42=0,tt.prototype._$zP=function(){this._$3S=new Array,this._$aS=new Array},tt.prototype._$F0=function(t){this._$g0=t._$8L(),this.visible=t._$8L(),this._$NL=t._$nP(),this._$3S=t._$nP(),this._$aS=t._$nP()},tt.prototype.init=function(t){var i=new it(this);return i.setPartsOpacity(this.isVisible()?1:0),i},tt.prototype._$6o=function(t){if(null==this._$3S)throw new Error("_$3S _$6 _$Wo@_$6o");this._$3S.push(t)},tt.prototype._$3o=function(t){if(null==this._$aS)throw new Error("_$aS _$6 _$Wo@_$3o");this._$aS.push(t)},tt.prototype._$Zo=function(t){this._$3S=t},tt.prototype._$xo=function(t){this._$aS=t},tt.prototype.isVisible=function(){return this.visible},tt.prototype._$uL=function(){return this._$g0},tt.prototype._$KP=function(t){this.visible=t},tt.prototype._$ET=function(t){this._$g0=t},tt.prototype.getBaseData=function(){return this._$3S},tt.prototype.getDrawData=function(){return this._$aS},tt.prototype._$p2=function(){return this._$NL},tt.prototype._$ob=function(t){this._$NL=t},tt.prototype.getPartsID=function(){return this._$NL},tt.prototype._$MP=function(t){this._$NL=t};function it(t){this._$VS=null,this._$e0=null,this._$e0=t}it.prototype=new function(){},it.prototype.getPartsOpacity=function(){return this._$VS},it.prototype.setPartsOpacity=function(t){this._$VS=t};function et(t){e||(this.id=t)}et._$L7=function(){$._$27(),yt._$27(),R._$27(),h._$27()},et.prototype.toString=function(){return this.id};function rt(){e||(this._$4S=null)}rt.prototype._$1s=function(){return this._$4S},rt.prototype._$zP=function(){this._$4S=new Array},rt.prototype._$F0=function(t){this._$4S=t._$nP()},rt.prototype._$Ks=function(t){this._$4S.push(t)};function ot(t,i){this.canvas=t,this.context=i,this.viewport=new Array(0,0,t.width,t.height),this._$6r=1,this._$xP=0,this._$3r=1,this._$uP=0,this._$Qo=-1,this.cacheImages={}}ot.tr=new gt,ot._$50=new gt,ot._$Ti=new Array(0,0),ot._$Pi=new Array(0,0),ot._$B=new Array(0,0),ot.prototype._$lP=function(t,i,e,r){this.viewport=new Array(t,i,e,r)},ot.prototype._$bL=function(){this.context.save();var t=this.viewport;null!=t&&(this.context.beginPath(),this.context._$Li(t[0],t[1],t[2],t[3]),this.context.clip())},ot.prototype._$ei=function(){this.context.restore()},ot.prototype.drawElements=function(t,i,e,r,o,s,n,a){try{o!=this._$Qo&&(this._$Qo=o,this.context.globalAlpha=o);for(var h=i.length,$=t.width,l=t.height,u=this.context,p=this._$xP,c=this._$uP,f=this._$6r,g=this._$3r,y=ot.tr,d=ot._$Ti,m=ot._$Pi,P=ot._$B,S=0;S.02?ot.expandClip(t,i,e,r,$,l,u,p,c,f):ot.clipWithTransform(t,null,o,s,n,_,a,h)},ot.expandClip=function(t,i,e,r,o,s,n,_,a,h){var $=n-o,l=_-s,u=a-o,p=h-s,c=$*p-l*u>0?e:-e,f=-l,g=$,y=a-n,d=h-_,m=-d,T=y,P=Math.sqrt(y*y+d*d),S=-p,v=u,L=Math.sqrt(u*u+p*p),M=o-c*f/r,E=s-c*g/r,A=n-c*f/r,I=_-c*g/r,x=n-c*m/P,w=_-c*T/P,D=a-c*m/P,O=h-c*T/P,R=o+c*S/L,b=s+c*v/L,F=a+c*S/L,C=h+c*v/L,N=ot._$50;return null!=i._$P2(N)&&(ot.clipWithTransform(t,N,M,E,A,I,x,w,D,O,F,C,R,b),!0)},ot.clipWithTransform=function(t,i,e,r,o,s,n,a){if(arguments.length<7)_._$li("err : @LDGL.clip()");else if(arguments[1]instanceof gt){var h=ot._$B,$=i,l=arguments;if(t.beginPath(),$){$._$PS(l[2],l[3],h),t.moveTo(h[0],h[1]);for(var u=4;u1?1:.5-.5*Math.cos(t*vt.PI_F)};function ht(t){e||(this._$ib=t)}ht._$fr=-1,ht.prototype.toString=function(){return this._$ib};function $t(){e||(W.prototype.constructor.call(this),this._$LP=-1,this._$d0=0,this._$Yo=0,this._$JP=null,this._$5P=null,this._$BP=null,this._$Eo=null,this._$Qi=null,this._$6s=$t._$ms,this.culling=!0,this.gl_cacheImage=null,this.instanceNo=$t._$42++)}$t.prototype=new W,$t._$42=0,$t._$Os=30,$t._$ms=0,$t._$ns=1,$t._$_s=2,$t._$gT=new Array,$t.prototype._$_S=function(t){this._$LP=t},$t.prototype.getTextureNo=function(){return this._$LP},$t.prototype._$ZL=function(){return this._$Qi},$t.prototype._$H2=function(){return this._$JP},$t.prototype.getNumPoints=function(){return this._$d0},$t.prototype.getType=function(){return W._$wb},$t.prototype._$B2=function(t,i,e){var r=i,o=null!=r._$hr?r._$hr:r._$Cr;switch(B._$do){default:case B._$Ms:throw new Error("_$L _$ro ");case B._$Qs:for(var s=this._$d0-1;s>=0;--s){o[s*B._$No+4]=e}}},$t.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},$t.prototype._$F0=function(t){W.prototype._$F0.call(this,t),this._$LP=t._$6L(),this._$d0=t._$6L(),this._$Yo=t._$6L();var i=t._$nP();this._$BP=new Int16Array(3*this._$Yo);for(var e=3*this._$Yo-1;e>=0;--e)this._$BP[e]=i[e];if(this._$Eo=t._$nP(),this._$Qi=t._$nP(),t.getFormatVersion()>=G._$s7){if(this._$JP=t._$6L(),0!=this._$JP){if(0!=(1&this._$JP)){var r=t._$6L();null==this._$5P&&(this._$5P=new Object),this._$5P._$Hb=parseInt(r)}0!=(this._$JP&$t._$Os)?this._$6s=(this._$JP&$t._$Os)>>1:this._$6s=$t._$ms,0!=(32&this._$JP)&&(this.culling=!1)}}else this._$JP=0},$t.prototype.init=function(t){var i=new lt(this),e=this._$d0*B._$No,r=this._$32();null!=i._$Cr&&(i._$Cr=null),i._$Cr=new Float32Array(e),null!=i._$hr&&(i._$hr=null),i._$hr=r?new Float32Array(e):null;switch(B._$do){default:case B._$Ms:if(B._$Ls)for(var o=this._$d0-1;o>=0;--o){var s=o<<1;this._$Qi[s+1]=1-this._$Qi[s+1]}break;case B._$Qs:for(o=this._$d0-1;o>=0;--o){s=o<<1;var n=o*B._$No,_=this._$Qi[s],a=this._$Qi[s+1];i._$Cr[n]=_,i._$Cr[n+1]=a,i._$Cr[n+4]=0,r&&(i._$hr[n]=_,i._$hr[n+1]=a,i._$hr[n+4]=0)}}return i},$t.prototype._$Nr=function(t,i){var e=i;if(this!=e._$GT()&&console.log("### assert!! ### "),this._$GS._$Ur(t)&&(W.prototype._$Nr.call(this,t,e),!e._$IS[0])){var r=$t._$gT;r[0]=!1,S._$Vr(t,this._$GS,r,this._$d0,this._$Eo,e._$Cr,B._$i2,B._$No)}},$t.prototype._$2b=function(t,i){try{this!=i._$GT()&&console.log("### assert!! ### ");var e=!1;i._$IS[0]&&(e=!0);var r=i;if(!e&&(W.prototype._$2b.call(this,t),this._$32())){var o=this.getTargetBaseDataID();if(r._$8r==W._$ur&&(r._$8r=t.getBaseDataIndex(o)),r._$8r<0)_t._$so&&_._$li("_$L _$0P _$G :: %s",o);else{var s=t.getBaseData(r._$8r),n=t._$q2(r._$8r);null==s||n._$x2()?r._$AT=!1:(s._$nb(t,n,r._$Cr,r._$hr,this._$d0,B._$i2,B._$No),r._$AT=!0),r.baseOpacity=n.getTotalOpacity()}}}catch(t){throw t}},$t.prototype.draw=function(t,i,e){if(this!=e._$GT()&&console.log("### assert!! ### "),!e._$IS[0]){var r=e,o=this._$LP;o<0&&(o=1);var s=this.getOpacity(i,r)*e._$VS*e.baseOpacity,n=null!=r._$hr?r._$hr:r._$Cr;t.setClipBufPre_clipContextForDraw(e.clipBufPre_clipContext),t._$WP(this.culling),t._$Uo(o,3*this._$Yo,this._$BP,n,this._$Qi,s,this._$6s,r)}},$t.prototype.dump=function(){console.log(" _$yi( %d ) , _$d0( %d ) , _$Yo( %d ) \n",this._$LP,this._$d0,this._$Yo),console.log(" _$Oi _$di = { ");for(var t=0;tstartMotion() / start _$K _$3 (m%d)\n",r,e._$sr));if(null==t)return-1;(e=new ft)._$w0=t,this.motions.push(e);var s=e._$sr;return this._$eb&&_._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\n",r,s),s},ct.prototype.updateParam=function(t){try{for(var i=!1,e=0;eupdateParam() / _$T0 _$w0 (m%d)\n",this.motions.length-1,r._$sr),this.motions.splice(e,1),e--)):(this.motions=this.motions.splice(e,1),e--)}else this.motions.splice(e,1),e--}return i}catch(t){return _._$li(t),!0}},ct.prototype.isFinished=function(t){if(arguments.length>=1){for(var i=0;i.9&&_t.EXPAND_W;var a=this.gl;if(null==this.gl)throw new Error("gl is null");var h=1*this._$C0*s,$=1*this._$tT*s,l=1*this._$WL*s,u=this._$lT*s;if(null!=this.clipBufPre_clipContextMask){a.frontFace(a.CCW),a.useProgram(this.shaderProgram),this._$vS=mt(a,this._$vS,r),this._$no=Tt(a,this._$no,e),a.enableVertexAttribArray(this.a_position_Loc),a.vertexAttribPointer(this.a_position_Loc,2,a.FLOAT,!1,0,0),this._$NT=mt(a,this._$NT,o),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.textures[t]),a.uniform1i(this.s_texture0_Loc,1),a.enableVertexAttribArray(this.a_texCoord_Loc),a.vertexAttribPointer(this.a_texCoord_Loc,2,a.FLOAT,!1,0,0),a.uniformMatrix4fv(this.u_matrix_Loc,!1,this.getClipBufPre_clipContextMask().matrixForMask);var p=this.getClipBufPre_clipContextMask().layoutChannelNo,c=this.getChannelFlagAsColor(p);a.uniform4f(this.u_channelFlag,c.r,c.g,c.b,c.a);var f=this.getClipBufPre_clipContextMask().layoutBounds;a.uniform4f(this.u_baseColor_Loc,2*f.x-1,2*f.y-1,2*f._$EL()-1,2*f._$5T()-1),a.uniform1i(this.u_maskFlag_Loc,!0)}else if(null!=this.getClipBufPre_clipContextDraw()){a.useProgram(this.shaderProgramOff),this._$vS=mt(a,this._$vS,r),this._$no=Tt(a,this._$no,e),a.enableVertexAttribArray(this.a_position_Loc_Off),a.vertexAttribPointer(this.a_position_Loc_Off,2,a.FLOAT,!1,0,0),this._$NT=mt(a,this._$NT,o),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.textures[t]),a.uniform1i(this.s_texture0_Loc_Off,1),a.enableVertexAttribArray(this.a_texCoord_Loc_Off),a.vertexAttribPointer(this.a_texCoord_Loc_Off,2,a.FLOAT,!1,0,0),a.uniformMatrix4fv(this.u_clipMatrix_Loc_Off,!1,this.getClipBufPre_clipContextDraw().matrixForDraw),a.uniformMatrix4fv(this.u_matrix_Loc_Off,!1,this.matrix4x4),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,_t.fTexture[this.glno]),a.uniform1i(this.s_texture1_Loc_Off,2);p=this.getClipBufPre_clipContextDraw().layoutChannelNo,c=this.getChannelFlagAsColor(p);a.uniform4f(this.u_channelFlag_Loc_Off,c.r,c.g,c.b,c.a),a.uniform4f(this.u_baseColor_Loc_Off,h,$,l,u)}else a.useProgram(this.shaderProgram),this._$vS=mt(a,this._$vS,r),this._$no=Tt(a,this._$no,e),a.enableVertexAttribArray(this.a_position_Loc),a.vertexAttribPointer(this.a_position_Loc,2,a.FLOAT,!1,0,0),this._$NT=mt(a,this._$NT,o),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.textures[t]),a.uniform1i(this.s_texture0_Loc,1),a.enableVertexAttribArray(this.a_texCoord_Loc),a.vertexAttribPointer(this.a_texCoord_Loc,2,a.FLOAT,!1,0,0),a.uniformMatrix4fv(this.u_matrix_Loc,!1,this.matrix4x4),a.uniform4f(this.u_baseColor_Loc,h,$,l,u),a.uniform1i(this.u_maskFlag_Loc,!1);this.culling?this.gl.enable(a.CULL_FACE):this.gl.disable(a.CULL_FACE),this.gl.enable(a.BLEND);var g,y,d,m;if(null!=this.clipBufPre_clipContextMask)g=a.ONE,y=a.ONE_MINUS_SRC_ALPHA,d=a.ONE,m=a.ONE_MINUS_SRC_ALPHA;else switch(n){case $t._$ms:g=a.ONE,y=a.ONE_MINUS_SRC_ALPHA,d=a.ONE,m=a.ONE_MINUS_SRC_ALPHA;break;case $t._$ns:g=a.ONE,y=a.ONE,d=a.ZERO,m=a.ONE;break;case $t._$_s:g=a.DST_COLOR,y=a.ONE_MINUS_SRC_ALPHA,d=a.ZERO,m=a.ONE}a.blendEquationSeparate(a.FUNC_ADD,a.FUNC_ADD),a.blendFuncSeparate(g,y,d,m),this.anisotropyExt&&a.texParameteri(a.TEXTURE_2D,this.anisotropyExt.TEXTURE_MAX_ANISOTROPY_EXT,this.maxAnisotropy);var T=e.length;a.drawElements(a.TRIANGLES,T,a.UNSIGNED_SHORT,0),a.bindTexture(a.TEXTURE_2D,null)}};function mt(t,i,e){return null==i&&(i=t.createBuffer()),t.bindBuffer(t.ARRAY_BUFFER,i),t.bufferData(t.ARRAY_BUFFER,e,t.DYNAMIC_DRAW),i}function Tt(t,i,e){return null==i&&(i=t.createBuffer()),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,i),t.bufferData(t.ELEMENT_ARRAY_BUFFER,e,t.DYNAMIC_DRAW),i}dt.prototype._$Rs=function(){throw new Error("_$Rs")},dt.prototype._$Ds=function(t){throw new Error("_$Ds")},dt.prototype._$K2=function(){for(var t=0;t=48){var r=G._$9o(t);return null!=r?(r._$F0(this),r):null}switch(t){case 1:return this._$bT();case 10:return new function(){e||(this.color=null)}(this._$6L(),!0);case 11:return new P(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new P(this._$_T(),this._$_T(),this._$_T(),this._$_T());case 13:return new v(this._$mP(),this._$mP());case 14:return new v(this._$_T(),this._$_T());case 15:for(var o=this._$3L(),s=new Array(o),n=0;n>7-this._$hL++&1)},Pt.prototype._$zT=function(){0!=this._$hL&&(this._$hL=0)};function vt(){}vt._$2S=Math.PI/180,vt._$bS=Math.PI/180,vt._$wS=180/Math.PI,vt._$NS=180/Math.PI,vt.PI_F=Math.PI,vt._$kT=[0,.012368,.024734,.037097,.049454,.061803,.074143,.086471,.098786,.111087,.12337,.135634,.147877,.160098,.172295,.184465,.196606,.208718,.220798,.232844,.244854,.256827,.268761,.280654,.292503,.304308,.316066,.327776,.339436,.351044,.362598,.374097,.385538,.396921,.408243,.419502,.430697,.441826,.452888,.463881,.474802,.485651,.496425,.507124,.517745,.528287,.538748,.549126,.559421,.56963,.579752,.589785,.599728,.609579,.619337,.629,.638567,.648036,.657406,.666676,.675843,.684908,.693867,.70272,.711466,.720103,.72863,.737045,.745348,.753536,.76161,.769566,.777405,.785125,.792725,.800204,.807561,.814793,.821901,.828884,.835739,.842467,.849066,.855535,.861873,.868079,.874153,.880093,.885898,.891567,.897101,.902497,.907754,.912873,.917853,.922692,.92739,.931946,.936359,.940629,.944755,.948737,.952574,.956265,.959809,.963207,.966457,.96956,.972514,.97532,.977976,.980482,.982839,.985045,.987101,.989006,.990759,.992361,.993811,.995109,.996254,.997248,.998088,.998776,.999312,.999694,.999924,1],vt._$92=function(t,i){var e=Math.atan2(t[1],t[0]),r=Math.atan2(i[1],i[0]);return vt._$tS(e,r)},vt._$tS=function(t,i){for(var e=t-i;e<-Math.PI;)e+=2*Math.PI;for(;e>Math.PI;)e-=2*Math.PI;return e},vt._$9=function(t){return Math.sin(t)},vt.fcos=function(t){return Math.cos(t)};function Lt(t){e||(this._$e0=null,this._$IP=null,this._$Us=null,this._$7s=null,this._$IS=[!1],this._$VS=null,this._$AT=!0,this.baseOpacity=1,this.clipBufPre_clipContext=null,this._$e0=t)}Lt.prototype._$u2=function(){return this._$IS[0]},Lt.prototype._$yo=function(){return this._$AT&&!this._$IS[0]},Lt.prototype._$GT=function(){return this._$e0};function Mt(){}Mt._$W2=0,Mt.SYSTEM_INFO=null,Mt.USER_AGENT=navigator.userAgent,Mt.isIPhone=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isIPhone},Mt.isIOS=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isIPhone||Mt.SYSTEM_INFO._isIPad},Mt.isAndroid=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isAndroid},Mt.getOSVersion=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO.version},Mt.getOS=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isIPhone||Mt.SYSTEM_INFO._isIPad?"iOS":Mt.SYSTEM_INFO._isAndroid?"Android":"_$Q0 OS"},Mt.setup=function(){var t=Mt.USER_AGENT;function i(t,i){for(var e=t.substring(i).split(/[ _,;\.]/),r=0,o=0;o<=2&&!isNaN(e[o]);o++){var s=parseInt(e[o]);if(s<0||s>999){_._$li("err : "+s+" @UtHtml5.setup()"),r=0;break}r+=s*Math.pow(1e3,2-o)}return r}var e,r=Mt.SYSTEM_INFO={userAgent:t};if((e=t.indexOf("iPhone OS "))>=0)r.os="iPhone",r._isIPhone=!0,r.version=i(t,e+"iPhone OS ".length);else if((e=t.indexOf("iPad"))>=0){if((e=t.indexOf("CPU OS"))<0)return void _._$li(" err : "+t+" @UtHtml5.setup()");r.os="iPad",r._isIPad=!0,r.version=i(t,e+"CPU OS ".length)}else(e=t.indexOf("Android"))>=0?(r.os="Android",r._isAndroid=!0,r.version=i(t,e+"Android ".length)):(r.os="-",r.version=-1)},_t.init();e=!1;i.UtSystem=I,i.UtDebug=_,i.LDTransform=gt,i.LDGL=ot,i.Live2D=_t,i.Live2DModelWebGL=pt,i.Live2DModelJS=q,i.Live2DMotion=J,i.MotionQueueManager=ct,i.PhysicsHair=u,i.AMotion=n,i.PartsDataID=h,i.DrawDataID=R,i.BaseDataID=yt,i.ParamID=$}).call(i,e(137))},132:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.L2DBaseModel=i.L2DExpressionMotion=i.L2DExpressionParam=i.L2DEyeBlink=i.EYE_STATE=i.L2DMatrix44=i.L2DModelMatrix=i.L2DMotionManager=i.L2DPhysics=i.L2DPartsParam=i.L2DPose=i.L2DViewMatrix=i.Live2DFramework=i.L2DTargetPoint=void 0;var r=e(131);function o(){this.live2DModel=null,this.modelMatrix=null,this.eyeBlink=null,this.physics=null,this.pose=null,this.debugMode=!1,this.initialized=!1,this.updating=!1,this.alpha=1,this.accAlpha=0,this.lipSync=!1,this.lipSyncValue=0,this.accelX=0,this.accelY=0,this.accelZ=0,this.dragX=0,this.dragY=0,this.startTimeMSec=null,this.mainMotionManager=new u,this.expressionManager=new u,this.motions={},this.expressions={},this.isTexLoaded=!1}var s=0;o.prototype.getModelMatrix=function(){return this.modelMatrix},o.prototype.setAlpha=function(t){t>.999&&(t=1),t<.001&&(t=0),this.alpha=t},o.prototype.getAlpha=function(){return this.alpha},o.prototype.isInitialized=function(){return this.initialized},o.prototype.setInitialized=function(t){this.initialized=t},o.prototype.isUpdating=function(){return this.updating},o.prototype.setUpdating=function(t){this.updating=t},o.prototype.getLive2DModel=function(){return this.live2DModel},o.prototype.setLipSync=function(t){this.lipSync=t},o.prototype.setLipSyncValue=function(t){this.lipSyncValue=t},o.prototype.setAccel=function(t,i,e){this.accelX=t,this.accelY=i,this.accelZ=e},o.prototype.setDrag=function(t,i){this.dragX=t,this.dragY=i},o.prototype.getMainMotionManager=function(){return this.mainMotionManager},o.prototype.getExpressionManager=function(){return this.expressionManager},o.prototype.loadModelData=function(t,i){var e=d.getPlatformManager();this.debugMode&&e.log("Load model : "+t);var o=this;e.loadLive2DModel(t,function(t){o.live2DModel=t,o.live2DModel.saveParam();0==r.Live2D.getError()?(o.modelMatrix=new l(o.live2DModel.getCanvasWidth(),o.live2DModel.getCanvasHeight()),o.modelMatrix.setWidth(2),o.modelMatrix.setCenterPosition(0,0),i(o.live2DModel)):console.error("Error : Failed to loadModelData().")})},o.prototype.loadTexture=function(t,i,e){s++;var r=d.getPlatformManager();this.debugMode&&r.log("Load Texture : "+i);var o=this;r.loadTexture(this.live2DModel,t,i,function(){0==--s&&(o.isTexLoaded=!0),"function"==typeof e&&e()})},o.prototype.loadMotion=function(t,i,e){var o=d.getPlatformManager();this.debugMode&&o.log("Load Motion : "+i);var s=null,n=this;o.loadBytes(i,function(i){s=r.Live2DMotion.loadMotion(i),null!=t&&(n.motions[t]=s),e(s)})},o.prototype.loadExpression=function(t,i,e){var r=d.getPlatformManager();this.debugMode&&r.log("Load Expression : "+i);var o=this;r.loadBytes(i,function(i){null!=t&&(o.expressions[t]=n.loadJson(i)),"function"==typeof e&&e()})},o.prototype.loadPose=function(t,i){var e=d.getPlatformManager();this.debugMode&&e.log("Load Pose : "+t);var r=this;try{e.loadBytes(t,function(t){r.pose=c.load(t),"function"==typeof i&&i()})}catch(t){console.warn(t)}},o.prototype.loadPhysics=function(t){var i=d.getPlatformManager();this.debugMode&&i.log("Load Physics : "+t);var e=this;try{i.loadBytes(t,function(t){e.physics=p.load(t)})}catch(t){console.warn(t)}},o.prototype.hitTestSimple=function(t,i,e){if(null===this.live2DModel)return!1;var r=this.live2DModel.getDrawDataIndex(t);if(r<0)return!1;for(var o=this.live2DModel.getTransformedPoints(r),s=this.live2DModel.getCanvasWidth(),n=0,_=this.live2DModel.getCanvasHeight(),a=0,h=0;hn&&(n=$),l<_&&(_=l),l>a&&(a=l)}var u=this.modelMatrix.invertTransformX(i),p=this.modelMatrix.invertTransformY(e);return s<=u&&u<=n&&_<=p&&p<=a};function n(){r.AMotion.prototype.constructor.call(this),this.paramList=new Array}n.prototype=new r.AMotion,n.EXPRESSION_DEFAULT="DEFAULT",n.TYPE_SET=0,n.TYPE_ADD=1,n.TYPE_MULT=2,n.loadJson=function(t){var i=new n,e=d.getPlatformManager().jsonParseFromBytes(t);if(i.setFadeIn(parseInt(e.fade_in)>0?parseInt(e.fade_in):1e3),i.setFadeOut(parseInt(e.fade_out)>0?parseInt(e.fade_out):1e3),null==e.params)return i;var r=e.params,o=r.length;i.paramList=[];for(var s=0;s=0;--o){var s=this.paramList[o];s.type==n.TYPE_ADD?t.addToParamFloat(s.id,s.value,e):s.type==n.TYPE_MULT?t.multParamFloat(s.id,s.value,e):s.type==n.TYPE_SET&&t.setParamFloat(s.id,s.value,e)}};function _(){this.id="",this.type=-1,this.value=null}function a(){this.nextBlinkTime=null,this.stateStartTime=null,this.blinkIntervalMsec=null,this.eyeState=h.STATE_FIRST,this.blinkIntervalMsec=4e3,this.closingMotionMsec=100,this.closedMotionMsec=50,this.openingMotionMsec=150,this.closeIfZero=!0,this.eyeID_L="PARAM_EYE_L_OPEN",this.eyeID_R="PARAM_EYE_R_OPEN"}a.prototype.calcNextBlink=function(){return r.UtSystem.getUserTimeMSec()+Math.random()*(2*this.blinkIntervalMsec-1)},a.prototype.setInterval=function(t){this.blinkIntervalMsec=t},a.prototype.setEyeMotion=function(t,i,e){this.closingMotionMsec=t,this.closedMotionMsec=i,this.openingMotionMsec=e},a.prototype.updateParam=function(t){var i,e=r.UtSystem.getUserTimeMSec(),o=0;switch(this.eyeState){case h.STATE_CLOSING:(o=(e-this.stateStartTime)/this.closingMotionMsec)>=1&&(o=1,this.eyeState=h.STATE_CLOSED,this.stateStartTime=e),i=1-o;break;case h.STATE_CLOSED:(o=(e-this.stateStartTime)/this.closedMotionMsec)>=1&&(this.eyeState=h.STATE_OPENING,this.stateStartTime=e),i=0;break;case h.STATE_OPENING:(o=(e-this.stateStartTime)/this.openingMotionMsec)>=1&&(o=1,this.eyeState=h.STATE_INTERVAL,this.nextBlinkTime=this.calcNextBlink()),i=o;break;case h.STATE_INTERVAL:this.nextBlinkTime=t)&&(!(this.currentPriority>=t)&&(this.reservePriority=t,!0))},u.prototype.setReservePriority=function(t){this.reservePriority=t},u.prototype.updateParam=function(t){var i=r.MotionQueueManager.prototype.updateParam.call(this,t);return this.isFinished()&&(this.currentPriority=0),i},u.prototype.startMotionPrio=function(t,i){return i==this.reservePriority&&(this.reservePriority=0),this.currentPriority=i,this.startMotion(t,!1)};function p(){this.physicsList=new Array,this.startTimeMSec=r.UtSystem.getUserTimeMSec()}p.load=function(t){for(var i=new p,e=d.getPlatformManager().jsonParseFromBytes(t).physics_hair,o=e.length,s=0;s=0)break;r=s,o=t.getPartsOpacity(n),(o+=e/.5)>1&&(o=1)}}r<0&&(r=0,o=1);for(s=0;s.15&&(a=1-.15/(1-o)),h>a&&(h=a),t.setPartsOpacity(n,h)}}},c.prototype.copyOpacityOtherParts=function(t,i){for(var e=0;eo)&&(h*=o/l,$*=o/l,l=o),this.faceVX+=h,this.faceVY+=$;var u=.5*(Math.sqrt(o*o+16*o*_-8*o*_)-o),p=Math.sqrt(this.faceVX*this.faceVX+this.faceVY*this.faceVY);p>u&&(this.faceVX*=u/p,this.faceVY*=u/p),this.faceX+=this.faceVX,this.faceY+=this.faceVY}}else this.lastTimeSec=r.UtSystem.getUserTimeMSec()};function y(){$.prototype.constructor.call(this),this.screenLeft=null,this.screenRight=null,this.screenTop=null,this.screenBottom=null,this.maxLeft=null,this.maxRight=null,this.maxTop=null,this.maxBottom=null}y.prototype=new $,y.prototype.adjustTranslate=function(t,i){this.tr[0]*this.maxLeft+(this.tr[12]+t)>this.screenLeft&&(t=this.screenLeft-this.tr[0]*this.maxLeft-this.tr[12]),this.tr[0]*this.maxRight+(this.tr[12]+t)this.screenBottom&&(i=this.screenBottom-this.tr[5]*this.maxBottom-this.tr[13]);var e=[1,0,0,0,0,1,0,0,0,0,1,0,t,i,0,1];$.mul(e,this.tr,this.tr)},y.prototype.adjustScale=function(t,i,e){this.tr[0];var r=[1,0,0,0,0,1,0,0,0,0,1,0,t,i,0,1],o=[e,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1],s=[1,0,0,0,0,1,0,0,0,0,1,0,-t,-i,0,1];$.mul(s,this.tr,this.tr),$.mul(o,this.tr,this.tr),$.mul(r,this.tr,this.tr)},y.prototype.setScreenRect=function(t,i,e,r){this.screenLeft=t,this.screenRight=i,this.screenTop=r,this.screenBottom=e},y.prototype.setMaxScreenRect=function(t,i,e,r){this.maxLeft=t,this.maxRight=i,this.maxTop=r,this.maxBottom=e},y.prototype.getScreenLeft=function(){return this.screenLeft},y.prototype.getScreenRight=function(){return this.screenRight},y.prototype.getScreenBottom=function(){return this.screenBottom},y.prototype.getScreenTop=function(){return this.screenTop},y.prototype.getMaxLeft=function(){return this.maxLeft},y.prototype.getMaxRight=function(){return this.maxRight},y.prototype.getMaxBottom=function(){return this.maxBottom},y.prototype.getMaxTop=function(){return this.maxTop};function d(){}d.platformManager=null,d.getPlatformManager=function(){return d.platformManager},d.setPlatformManager=function(t){d.platformManager=t},i.L2DTargetPoint=g,i.Live2DFramework=d,i.L2DViewMatrix=y,i.L2DPose=c,i.L2DPartsParam=f,i.L2DPhysics=p,i.L2DMotionManager=u,i.L2DModelMatrix=l,i.L2DMatrix44=$,i.EYE_STATE=h,i.L2DEyeBlink=a,i.L2DExpressionParam=_,i.L2DExpressionMotion=n,i.L2DBaseModel=o},133:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.cDefine={VIEW_LOGICAL_LEFT:-1,VIEW_LOGICAL_RIGHT:1,VIEW_LOGICAL_MAX_LEFT:-2,VIEW_LOGICAL_MAX_RIGHT:2,VIEW_LOGICAL_MAX_BOTTOM:-2,VIEW_LOGICAL_MAX_TOP:2,PRIORITY_NONE:0,PRIORITY_IDLE:1,PRIORITY_NORMAL:2,PRIORITY_FORCE:3,MOTION_GROUP_IDLE:"idle",MOTION_GROUP_TAP_BODY:"tap_body",MOTION_GROUP_FLICK_HEAD:"flick_head",MOTION_GROUP_PINCH_IN:"pinch_in",MOTION_GROUP_PINCH_OUT:"pinch_out",MOTION_GROUP_SHAKE:"shake",HIT_AREA_HEAD:"head",HIT_AREA_BODY:"body"}},134:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.currCanvas=i.currWebGL=i.createElement=void 0;var r,o=e(51),s=e(136),n=(r=s,r&&r.__esModule?r:{default:r});var _=void 0,a=void 0;i.createElement=function(){var t=document.getElementById(o.config.name.div);null!==t&&document.body.removeChild(t);var e=document.createElement("div");e.id=o.config.name.div,e.innerHTML=n.default;var r=document.createElement("canvas");r.setAttribute("id",o.config.name.canvas),r.setAttribute("width",o.config.display.width*o.config.display.superSample),r.setAttribute("height",o.config.display.height*o.config.display.superSample),r.style.setProperty("position","fixed"),r.style.setProperty("width",o.config.display.width),r.style.setProperty("height",o.config.display.height),r.style.setProperty("opacity",o.config.react.opacityDefault),r.style.setProperty(o.config.display.position,o.config.display.hOffset+"px"),r.style.setProperty("bottom",o.config.display.vOffset+"px"),r.style.setProperty("z-index",99999),r.style.setProperty("pointer-events","none"),o.config.dev.border&&r.style.setProperty("border","dashed 1px #CCC"),e.appendChild(r),document.body.appendChild(e),i.currCanvas=a=document.getElementById(o.config.name.canvas),function(){for(var t=["webgl2","webgl","experimental-webgl2","experimental-webgl","webkit-3d","moz-webgl"],e=0;e=this.models.length?null:this.models[t]},_.prototype.releaseModel=function(t,i){this.models.length<=t||(this.models[t].release(i),delete this.models[t],this.models.splice(t,1))},_.prototype.numModels=function(){return this.models.length},_.prototype.setDrag=function(t,i){for(var e=0;e0){s.expressions={};for(var t=0;t0?r:e)(t)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(63),o=e(21);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(28)("keys"),o=e(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(12).f,o=e(8),i=e(0)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){"use strict";var r=e(15);t.exports.f=function(t){return new function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=r(n),this.reject=r(e)}(t)}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(99);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},function(t,n,e){var r=e(1),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";var r=e(32),o=e(13),i=e(5),c=e(3),u=e(8),a=e(9),f=e(59),s=e(24),l=e(66),p=e(0)("iterator"),v=!([].keys&&"next"in[].keys()),d="values",h=function(){return this};t.exports=function(t,n,e,y,b,w,m){f(e,n,y);var x,g,_,j=function(t){if(!v&&t in k)return k[t];switch(t){case"keys":case d:return function(){return new e(this,t)}}return function(){return new e(this,t)}},O=n+" Iterator",P=b==d,S=!1,k=t.prototype,T=k[p]||k["@@iterator"]||b&&k[b],L=!v&&T||j(b),M=b?P?j("entries"):L:void 0,E="Array"==n?k.entries||T:T;if(E&&(_=l(E.call(new t)))!==Object.prototype&&_.next&&(s(_,O,!0),r||u(_,p)||c(_,p,h)),P&&T&&T.name!==d&&(S=!0,L=function(){return T.call(this)}),r&&!m||!v&&!S&&k[p]||c(k,p,L),a[n]=L,a[O]=h,b)if(x={values:P?L:j(d),keys:w?L:j("keys"),entries:M},m)for(g in x)g in k||i(k,g,x[g]);else o(o.P+o.F*(v||S),n,x);return x}},function(t,n){t.exports=!1},function(t,n,e){var r=e(62),o=e(35);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(2),o=e(15),i=e(0)("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},function(t,n,e){var r,o,i,c=e(14),u=e(78),a=e(36),f=e(19),s=e(1),l=s.process,p=s.setImmediate,v=s.clearImmediate,d=s.MessageChannel,h=s.Dispatch,y=0,b={},w="onreadystatechange",m=function(){var t=+this;if(b.hasOwnProperty(t)){var n=b[t];delete b[t],n()}},x=function(t){m.call(t.data)};p&&v||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return b[++y]=function(){u("function"==typeof t?t:Function(t),n)},r(y),y},v=function(t){delete b[t]},"process"==e(11)(l)?r=function(t){l.nextTick(c(m,t,1))}:h&&h.now?r=function(t){h.now(c(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",x,!1)):r=w in f("script")?function(t){a.appendChild(f("script"))[w]=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(c(m,t,1),0)}),t.exports={set:p,clear:v}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r=e(2),o=e(6),i=e(25);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},function(t,n){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},function(t,n,e){var r=e(89),o=e(90),i=e(91);t.exports=function(t,n){return i(o(t,n,r),t+"")}},function(t,n,e){var r=e(93),o=e(44),i=e(101),c=e(103),u=e(10),a=e(50);t.exports=function t(n,e,f,s,l){n!==e&&i(e,function(i,a){if(u(i))l||(l=new r),c(n,e,a,f,t,s,l);else{var p=s?s(n[a],i,a+"",n,e,l):void 0;void 0===p&&(p=i),o(n,a,p)}},a)}},function(t,n,e){var r=e(27),o=e(26);t.exports=function(t,n,e){(void 0===e||o(t[n],e))&&(void 0!==e||n in t)||r(t,n,e)}},function(t,n,e){var r=e(106),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,n,e){var r=e(114)(Object.getPrototypeOf,Object);t.exports=r},function(t,n,e){var r=e(48),o=e(10),i="[object AsyncFunction]",c="[object Function]",u="[object GeneratorFunction]",a="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var n=r(t);return n==c||n==u||n==i||n==a}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.config=n.configApplyer=void 0;var r,o=e(88),i=(r=o,r&&r.__esModule?r:{default:r});var c={},u={model:{jsonPath:"https://unpkg.com/live2d-widget-model-shizuku@1.0.0/assets/shizuku.model.json",scale:1,hHeadPos:.5,vHeadPos:.618,myDefine:[]},display:{superSample:2,width:150,height:300,position:"right",hOffset:0,vOffset:-20},mobile:{show:!0,scale:.5,motion:!0},name:{canvas:"live2dcanvas",div:"live2d-widget"},react:{opacityDefault:.7,opacityOnHover:.2,myFunc:function(t){console.log("(undefined) ┑( ̄Д  ̄)┍")}},dev:{log:!1,border:!1,mouseLog:!1,mouseFunc:function(t,n,e,r){console.log("MouseFunc: "+t+","+n+"; "+e+", "+r)}}};n.configApplyer=function(t){n.config=c=(0,i.default)(t,u),console.log("currConfig:",c)},n.config=c},function(t,n,e){e(53),e(85),t.exports=e(86)},function(t,n,e){e(54),e(57),e(68),e(72),e(83),e(84),t.exports=e(4).Promise},function(t,n,e){"use strict";var r=e(17),o={};o[e(0)("toStringTag")]="z",o+""!="[object z]"&&e(5)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){t.exports=!e(7)&&!e(29)(function(){return 7!=Object.defineProperty(e(19)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){"use strict";var r=e(58)(!0);e(31)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(20),o=e(21);t.exports=function(t){return function(n,e){var i,c,u=String(o(n)),a=r(e),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(60),o=e(30),i=e(24),c={};e(3)(c,e(0)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(2),o=e(61),i=e(35),c=e(23)("IE_PROTO"),u=function(){},a="prototype",f=function(){var t,n=e(19)("iframe"),r=i.length;for(n.style.display="none",e(36).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write(" +