PageSourceSearch

https://blog-tlbh.onrender.com/live2dw/lib/L2Dwidget.0.min.js

js blog-tlbh.onrender.com collected 2026-10-03 11:39:41 UTC 144,813 bytes, 1 lines download raw bytes

1webpackJsonpL2Dwidget([0],{76:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.captureFrame=e.theRealInit=void 0;var n=i(38),s=i(80),_=i(77),a=i(78),h=i(84),l=i(81),$=i(79),r=i(39),u=r&&r.__esModule?r:{default:r},p=i(37),c=null,f=void 0,g=!1,d=null,y=null,m=null,T=null,P=!1,S=.5;function L(t,e,i){if(e.x<i.left+i.width&&e.y<i.top+i.height&&e.x>i.left&&e.y>i.top)return e;var r=t.x-e.x,o=t.y-e.y;function n(t,e){return 180*Math.acos((r={x:0,y:1},t=t,e=e,i=Math.sqrt(t*t+e*e),r.x*(t={x:t/i,y:e/i}).x+r.y*t.y))/Math.PI;var i,r}var s=n(r,o),e=(e.x<t.x&&(s=360-s),360-n(i.left-t.x,-1*(i.top-t.y))),_=360-n(i.left-t.x,-1*(i.top+i.height-t.y)),a=n(i.left+i.width-t.x,-1*(i.top-t.y)),h=n(i.left+i.width-t.x,-1*(i.top+i.height-t.y)),o=o/r;return s<a?(r=i.top-t.y,{y:t.y+r,x:t.x+r/o}):s<h?(a=i.left+i.width-t.x,{y:t.y+a*o,x:t.x+a}):s<_?(r=i.top+i.height-t.y,{y:t.y+r,x:t.x+r/o}):s<e?(h=t.x-i.left,{y:t.y-h*o,x:t.x-h}):(a=i.top-t.y,{y:t.y+a,x:t.x+a/o})}function v(t){P=!0;var e=s.currCanvas.getBoundingClientRect(),i=(I(t.clientX-e.left),D(t.clientY-e.top),L({x:e.left+e.width/2,y:e.top+e.height*S},{x:t.clientX,y:t.clientY},e)),r=A(i.x-e.left),i=w(i.y-e.top);$.cDefine.DEBUG_MOUSE_LOG&&console.log("modelTapEvent onMouseDown device( x:"+t.clientX+" y:"+t.clientY+" ) view( x:"+r+" y:"+i+")"),p.L2Dwidget.emit("tap",t),c.tapEvent(r,i)}function M(){P=P&&!1,d.setPoint(0,0)}function E(t){var e,i,r,o;"mousedown"==t.type?v(t):"mousemove"==t.type?(e=t,P=!0,i=s.currCanvas.getBoundingClientRect(),I(e.clientX-i.left),D(e.clientY-i.top),r=L({x:i.left+i.width/2,y:i.top+i.height*S},{x:e.clientX,y:e.clientY},i),o=A(r.x-i.left),r=w(r.y-i.top),$.cDefine.DEBUG_MOUSE_LOG&&console.log("modelTurnHead onMouseMove device( x:"+e.clientX+" y:"+e.clientY+" ) view( x:"+o+" y:"+r+")"),d.setPoint(o,r)):"mouseup"==t.type?"button"in t&&t.button:"mouseleave"==t.type&&M()}function x(t){var e,i,r,o=t.touches[0];"touchstart"==t.type?1==t.touches.length&&v(o):"touchmove"==t.type?(o=o,e=s.currCanvas.getBoundingClientRect(),I(o.clientX-e.left),D(o.clientY-e.top),i=L({x:e.left+e.width/2,y:e.top+e.height*S},{x:o.clientX,y:o.clientY},e),r=A(i.x-e.left),i=w(i.y-e.top),$.cDefine.DEBUG_MOUSE_LOG&&console.log("followPointer onMouseMove device( x:"+o.clientX+" y:"+o.clientY+" ) view( x:"+r+" y:"+i+")"),P&&d.setPoint(r,i)):"touchend"==t.type&&M()}function A(t){t=T.transformX(t);return y.invertTransformX(t)}function w(t){t=T.transformY(t);return y.invertTransformY(t)}function I(t){return T.transformX(t)}function D(t){return T.transformY(t)}e.theRealInit=function(){(0,s.createElement)(),s.currCanvas.addEventListener&&(window.addEventListener("click",E),window.addEventListener("mousedown",E),window.addEventListener("mousemove",E),window.addEventListener("mouseup",E),document.addEventListener("mouseleave",E),window.addEventListener("touchstart",x),window.addEventListener("touchend",x),window.addEventListener("touchmove",x)),c=new h.cManager(p.L2Dwidget),d=new a.L2DTargetPoint;var t=s.currCanvas.getBoundingClientRect(),e=t.height/t.width,i=$.cDefine.VIEW_LOGICAL_LEFT,r=$.cDefine.VIEW_LOGICAL_RIGHT,o=-e;(y=new a.L2DViewMatrix).setScreenRect(i,r,o,e),y.setMaxScreenRect($.cDefine.VIEW_LOGICAL_MAX_LEFT,$.cDefine.VIEW_LOGICAL_MAX_RIGHT,$.cDefine.VIEW_LOGICAL_MAX_BOTTOM,$.cDefine.VIEW_LOGICAL_MAX_TOP),i=u.default.mobile()&&n.config.mobile.scale||n.config.model.scale,y.adjustScale(0,0,i),(m=new a.L2DMatrix44).multScale(1,t.width/t.height),(T=new a.L2DMatrix44).multTranslate(-t.width/2,-t.height/2),T.multScale(2/t.width,-2/t.height),_.Live2D.setGL(s.currWebGL),s.currWebGL.clearColor(0,0,0,0),r=n.config.model.jsonPath,c.reloadFlg=!0,c.count++,c.changeModel(s.currWebGL,r),g||(g=!0,function t(){!function(){l.MatrixStack.reset(),l.MatrixStack.loadIdentity(),d.update(),c.setDrag(d.getX(),d.getY()),s.currWebGL.clear(s.currWebGL.COLOR_BUFFER_BIT),l.MatrixStack.multMatrix(m.getArray()),l.MatrixStack.multMatrix(y.getArray()),l.MatrixStack.push();for(var t=0;t<c.numModels();t++){var e=c.getModel(t);if(null==e)return;e.initialized&&!e.updating&&(e.update(),e.draw(s.currWebGL))}l.MatrixStack.pop()}(),(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame)(t,s.currCanvas),void 0!==f&&(f(s.currCanvas.toDataURL()),f=void 0)}())},e.captureFrame=function(t){f=t}},77:function(t,Pt,e){"use strict";
1!function(Y){Object.defineProperty(Pt,"__esModule",{value:!0});var n=!0;function $(){n||(this._$MT=null,this._$5S=null,this._$NP=0,$._$42++,this._$5S=new g(this))}function L(t){if(!n){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 k,ot.glContext.length>ot.frameBuffers.length&&(this.curFrameNo=this.getMaskRenderTexture()),this.tmpModelToViewMatrix=new i,this.tmpMatrix2=new i,this.tmpMatrixForMask=new i,this.tmpMatrixForDraw=new i,this.CHANNEL_COLORS=new Array;t=new H;(t=new H).r=0,t.g=0,t.b=0,t.a=1,this.CHANNEL_COLORS.push(t),(t=new H).r=1,t.g=0,t.b=0,t.a=0,this.CHANNEL_COLORS.push(t),(t=new H).r=0,t.g=1,t.b=0,t.a=0,this.CHANNEL_COLORS.push(t),(t=new H).r=0,t.g=0,t.b=1,t.a=0,this.CHANNEL_COLORS.push(t);for(var e=0;e<this.CHANNEL_COLORS.length;e++)this.dp_webgl.setChannelFlagAsColor(e,this.CHANNEL_COLORS[e])}}function O(t,e,i){this.clipIDList=new Array,this.clipIDList=i,this.clippingMaskDrawIndexList=new Array;for(var r=0;r<i.length;r++)this.clippingMaskDrawIndexList.push(e.getDrawDataIndex(i[r]));this.clippedDrawContextList=new Array,this.isUsing=!0,this.layoutChannelNo=0,this.layoutBounds=new k,this.allClippedDrawRect=new k,this.matrixForMask=new Float32Array(16),this.matrixForDraw=new Float32Array(16),this.owner=t}function t(){n||(this._$dP=null,this._$eo=null,this._$V0=null,this._$dP=1e3,this._$eo=1e3,this._$V0=1,this._$a0())}function it(){}function b(){n||(this.x=null,this.y=null,this.width=null,this.height=null)}function s(t){n||_t.prototype.constructor.call(this,t)}function _(t){n||_t.prototype.constructor.call(this,t)}function R(){n||(this._$vo=null,this._$F2=null,this._$ao=400,this._$1S=400,R._$42++)}function a(){n||(this.p1=new F,this.p2=new F,this._$Fo=0,this._$Db=0,this._$L2=0,this._$M2=0,this._$ks=0,this._$9b=0,this._$iP=0,this._$iT=0,this._$lL=new Array,this._$qP=new Array,this.setup(.3,.5,.1))}function F(){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}function C(t,e,i){this._$wL=null,this.scale=null,this._$V0=null,this._$wL=t,this.scale=e,this._$V0=i}function N(t,e,i,r){C.prototype.constructor.call(this,e,i,r),this._$tL=null,this._$tL=t}function B(t,e,i){this._$wL=null,this.scale=null,this._$V0=null,this._$wL=t,this.scale=e,this._$V0=i}function G(t,e,i,r){B.prototype.constructor.call(this,e,i,r),this._$YP=null,this._$YP=t}function U(){n||(this._$fL=0,this._$gL=0,this._$B0=1,this._$z0=1,this._$qT=0,this.reflectX=!1,this.reflectY=!1)}$._$0s=1,$._$4s=2,$._$42=0,$._$62=function(t,e){try{if(!((e=e instanceof ArrayBuffer?new DataView(e):e)instanceof DataView))throw new $t("_$SS#loadModel(b) / b _$x be DataView or ArrayBuffer");var i,r=new w(e),o=r._$ST(),n=r._$ST(),s=r._$ST();if(109!=o||111!=n||99!=s)throw new $t("_$gi _$C _$li , _$Q0 _$P0.");if(i=r._$ST(),r._$gr(i),u._$T7<i)throw t._$NP|=$._$4s,new $t("_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+u._$T7+" < _$f0 : "+i+" )@_$SS#loadModel()\n");var _=r._$nP();if(u._$s7<=i){var a=r._$9T(),h=r._$9T();if(-30584!=a||-30584!=h)throw t._$NP|=$._$0s,new $t("_$gi _$C _$li , _$0 _$6 _$Ui.")}t._$KS(_);var l=t.getModelContext();l.setDrawParam(t.getDrawParam()),l.init()}catch(t){it._$Rb(t)}},$.prototype._$KS=function(t){this._$MT=t},$.prototype.getModelImpl=function(){return null==this._$MT&&(this._$MT=new R,this._$MT._$zP()),this._$MT},$.prototype.getCanvasWidth=function(){return null==this._$MT?0:this._$MT.getCanvasWidth()},$.prototype.getCanvasHeight=function(){return null==this._$MT?0:this._$MT.getCanvasHeight()},$.prototype.getParamFloat=function(t){return"number"!=typeof t&&(t=this._$5S.getParamIndex(_.getID(t))),this._$5S.getParamFloat(t)},$.prototype.setParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(_.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1-i)+e*i)},$.prototype.addToParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(_.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)+e*i)}
1,$.prototype.multParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(_.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1+(e-1)*i))},$.prototype.getParamIndex=function(t){return this._$5S.getParamIndex(_.getID(t))},$.prototype.loadParam=function(){this._$5S.loadParam()},$.prototype.saveParam=function(){this._$5S.saveParam()},$.prototype.init=function(){this._$5S.init()},$.prototype.update=function(){this._$5S.update()},$.prototype._$Rs=function(){return it._$li("_$60 _$PT _$Rs()"),-1},$.prototype._$Ds=function(t){it._$li("_$60 _$PT _$SS#_$Ds() \n")},$.prototype._$K2=function(){},$.prototype.draw=function(){},$.prototype.getModelContext=function(){return this._$5S},$.prototype._$s2=function(){return this._$NP},$.prototype._$P7=function(t,e,i,r){var o=-1,n=0;if(0!=i)if(1==t.length){var s=t[0],_=0!=this.getParamFloat(s),a=(u=e[0],this.getPartsOpacity(u)),h=i/r;_?1<(a+=h)&&(a=1):(a-=h)<0&&(a=0),this.setPartsOpacity(u,a)}else{for(p=0;p<t.length;p++)if(s=t[p],c=0!=this.getParamFloat(s)){if(0<=o)break;u=e[o=p],n=this.getPartsOpacity(u),1<(n+=i/r)&&(n=1)}for(o<0&&(console.log("No _$wi _$q0/ _$U default[%s]",t[0]),o=0,n=1,this.loadParam(),this.setParamFloat(t[o],n),this.saveParam()),p=0;p<t.length;p++){var l,$,u=e[p];o==p?this.setPartsOpacity(u,n):((l=.15<(1-(l=n<.5?-.5*n/.5+1:.5*(1-n)/.5))*(1-n)?1-.15/(1-n):l)<($=this.getPartsOpacity(u))&&($=l),this.setPartsOpacity(u,$))}}else for(var p=0;p<t.length;p++){var s=t[p],u=e[p],c=0!=this.getParamFloat(s);this.setPartsOpacity(u,c?1:0)}},$.prototype.setPartsOpacity=function(t,e){"number"!=typeof t&&(t=this._$5S.getPartsDataIndex(s.getID(t))),this._$5S.setPartsOpacity(t,e)},$.prototype.getPartsDataIndex=function(t){return t instanceof s||(t=s.getID(t)),this._$5S.getPartsDataIndex(t)},$.prototype.getPartsOpacity=function(t){return(t="number"!=typeof t?this._$5S.getPartsDataIndex(s.getID(t)):t)<0?0:this._$5S.getPartsOpacity(t)},$.prototype.getDrawParam=function(){},$.prototype.getDrawDataIndex=function(t){return this._$5S.getDrawDataIndex(q.getID(t))},$.prototype.getDrawData=function(t){return this._$5S.getDrawData(t)},$.prototype.getTransformedPoints=function(t){t=this._$5S._$C2(t);return t instanceof ut?t.getTransformedPoints():null},$.prototype.getIndexArray=function(t){if(t<0||t>=this._$5S._$aS.length)return null;t=this._$5S._$aS[t];return null!=t&&t.getType()==y._$wb&&t instanceof M?t.getIndexArray():null},L.CHANNEL_COUNT=4,L.RENDER_TEXTURE_USE_MIPMAP=!1,L.NOT_USED_FRAME=-100,L.prototype._$L7=function(){if(this.tmpModelToViewMatrix&&(this.tmpModelToViewMatrix=null),this.tmpMatrix2&&(this.tmpMatrix2=null),this.tmpMatrixForMask&&(this.tmpMatrixForMask=null),this.tmpMatrixForDraw&&(this.tmpMatrixForDraw=null),this.tmpBoundsOnModel&&(this.tmpBoundsOnModel=null),this.CHANNEL_COLORS){for(var t=this.CHANNEL_COLORS.length-1;0<=t;--t)this.CHANNEL_COLORS.splice(t,1);this.CHANNEL_COLORS=[]}this.releaseShader()},L.prototype.releaseShader=function(){for(var t=ot.frameBuffers.length,e=0;e<t;e++)this.gl.deleteFramebuffer(ot.frameBuffers[e].framebuffer);ot.frameBuffers=[],ot.glContext=[]},L.prototype.init=function(t,e,i){for(var r=0;r<e.length;r++){var o,n,s=e[r].getClipIDList();null!=s&&(null==(o=this.findSameClip(s))&&(o=new O(this,t,s),this.clipContextList.push(o)),s=e[r].getDrawDataID(),n=t.getDrawDataIndex(s),o.addClippedDrawData(s,n),i[r].clipBufPre_clipContext=o)}},L.prototype.getMaskRenderTexture=function(){var t=this.dp_webgl.createFramebuffer();return ot.frameBuffers[this.dp_webgl.glno]=t,this.dp_webgl.glno},L.prototype.setupClip=function(t,e){for(var i=0,r=0;r<this.clipContextList.length;r++){var o=this.clipContextList[r];this.calcClippedDrawTotalBounds(t,o),o.isUsing&&i++}if(0<i){var n=e.gl.getParameter(e.gl.FRAMEBUFFER_BINDING),s=new Array(4);for(s[0]=0,s[1]=0,s[2]=e.gl.canvas.width,s[3]=e.gl.canvas.height,e.gl.viewport(0,0,ot.clippingMaskBufferSize,ot.clippingMaskBufferSize),this.setupLayoutBounds(i),e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,ot.frameBuffers[this.curFrameNo].framebuffer),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT),r=0;r<this.clipContextList.length;r++){var _=(o=this.clipContextList[r]).allClippedDrawRect,a=(o.layoutChannelNo,o.layoutBounds),_=(this.tmpBoundsOnModel._$jL(_),this.tmpBoundsOnModel.expand(.05*_.width,.05*_.height),a.width/this.tmpBoundsOnModel.width),h=a.height/this.tmpBoundsOnModel.height;this.tmpMatrix2.identity(),this.tmpMatrix2.translate(-1,-1,0),this.tmpMatrix2.scale(2,2,1),this.tmpMatrix2.translate(a.x,a.y,0),this.tmpMatrix2.scale(_,h,1),this.tmpMatrix2.translate(-this.tmpBoundsOnModel.x,-this.tmpBoundsOnModel.y,0),this.tmpMatrixForMask.setMatrix(this.tmpMatrix2.m),this.tmpMatrix2.identity(),this.tmpMatrix2.translate(a.x,a.y,0),this.tmpMatrix2.scale(_,h,1),this.tmpMatrix2.translate(-this.tmpBoundsOnModel.x,-this.tmpBoundsOnModel.y,0),this.tmpMatrixForDraw.setMatrix(this.tmpMatrix2.m);for(var l=this.tmpMatrixForMask.getArray(),$=0;$<16;$++)o.matrixForMask[$]=l[$];for(var u=this.tmpMatrixForDraw.getArray(),$=0;$<16;$++)o.matrixForDraw[$]=u[$];for(var p=o.clippingMaskDrawIndexList.length,c=0;c<p;c++){var f=o.clippingMaskDrawIndexList[c],g=t.getDrawData(f),f=t._$C2(f);e.setClipBufPre_clipContextForMask(o),g.draw(e,t,f)}}e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,n),e.setClipBufPre_clipContextForMask(null),e.gl.viewport(s[0],s[1],s[2],s[3])}},L.prototype.getColorBuffer=function(){return this.colorBuffer},L.prototype.findSameClip=function(t){for(var e=0;e<this.clipContextList.length;e++){var i=this.clipContextList[e],r=i.clipIDList.length;if(r==t.length){for(var o=0,n=0;n<r;n++)for(var s=i.clipIDList[n],_=0;_<r;_++)if(t[_]==s){o++;break}if(o==r)return i}}return null},L.prototype.calcClippedDrawTotalBounds=function(t,e){for(var i=t._$Ri.getModelImpl().getCanvasWidth(),r=t._$Ri.getModelImpl().getCanvasHeight(),i=r<i?i:r,o=i,n=i,s=0,_=0,a=e.clippedDrawContextList.length,h=0;h<a;h++){var l=e.clippedDrawContextList[h].drawDataIndex,l=t._$C2(l);
1if(l._$yo()){for(var $=l.getTransformedPoints(),u=$.length,p=[],c=[],f=0,g=T._$i2;g<u;g+=T._$No)p[f]=$[g],c[f]=$[g+1],f++;var l=Math.min.apply(null,p),d=Math.min.apply(null,c),y=Math.max.apply(null,p),m=Math.max.apply(null,c);l<o&&(o=l),d<n&&(n=d),s<y&&(s=y),_<m&&(_=m)}}o==i?(e.allClippedDrawRect.x=0,e.allClippedDrawRect.y=0,e.allClippedDrawRect.width=0,e.allClippedDrawRect.height=0,e.isUsing=!1):(r=s-o,i=_-n,e.allClippedDrawRect.x=o,e.allClippedDrawRect.y=n,e.allClippedDrawRect.width=r,e.allClippedDrawRect.height=i,e.isUsing=!0)},L.prototype.setupLayoutBounds=function(t){for(var e=~~(t/L.CHANNEL_COUNT),i=~~(t%L.CHANNEL_COUNT),r=0,o=0;o<L.CHANNEL_COUNT;o++){var n,s=e+(o<i?1:0);if(0!=s)if(1==s)(n=this.clipContextList[r++]).layoutChannelNo=o,n.layoutBounds.x=0,n.layoutBounds.y=0,n.layoutBounds.width=1,n.layoutBounds.height=1;else if(2==s)for(var _=0;_<s;_++){var a=0,h=~~(_%2);(n=this.clipContextList[r++]).layoutChannelNo=o,n.layoutBounds.x=.5*h,n.layoutBounds.y=0,n.layoutBounds.width=.5,n.layoutBounds.height=1}else if(s<=4)for(_=0;_<s;_++)h=~~(_%2),a=~~(_/2),(n=this.clipContextList[r++]).layoutChannelNo=o,n.layoutBounds.x=.5*h,n.layoutBounds.y=.5*a,n.layoutBounds.width=.5,n.layoutBounds.height=.5;else if(s<=9)for(_=0;_<s;_++)h=~~(_%3),a=~~(_/3),(n=this.clipContextList[r++]).layoutChannelNo=o,n.layoutBounds.x=h/3,n.layoutBounds.y=a/3,n.layoutBounds.width=1/3,n.layoutBounds.height=1/3;else it._$li("_$6 _$0P mask count : %d",s)}},O.prototype.addClippedDrawData=function(i,t){t=new function(t,e){this._$gP=i,this.drawDataIndex=e}(0,t);this.clippedDrawContextList.push(t)},t._$JT=function(t,e,i){var t=t/e,i=i/e,e=1-(1-i)*(1-i),r=1-(1-i)*(1-i),e=1/3*(1-i)*e+(2/3*i+1/3*(1-i))*(1-e),i=(i+2/3*(1-i))*r+(1/3*i+2/3*(1-i))*(1-r);if(t<=0)return 0;if(1<=t)return 1;r=t*t;return t*r*(1-3*i+3*e)+(3*i-6*e+0)*r+3*e*t},t.prototype._$a0=function(){},t.prototype.setFadeIn=function(t){this._$dP=t},t.prototype.setFadeOut=function(t){this._$eo=t},t.prototype._$pT=function(t){this._$V0=t},t.prototype.getFadeOut=function(){return this._$eo},t.prototype._$4T=function(){return this._$eo},t.prototype._$mT=function(){return this._$V0},t.prototype.getDurationMSec=function(){return-1},t.prototype.getLoopDurationMSec=function(){return-1},t.prototype.updateParam=function(t,e){var i,r;e._$AT&&!e._$9L&&(i=bt.getUserTimeMSec(),e._$z2<0&&(e._$z2=i,e._$bs=i,r=this.getDurationMSec(),e._$Do<0&&(e._$Do=r<=0?-1:e._$z2+r)),0<=(r=this._$V0*(0==this._$dP?1:lt._$r2((i-e._$bs)/this._$dP))*(0==this._$eo||e._$Do<0?1:lt._$r2((e._$Do-i)/this._$eo)))&&r<=1||console.log("### assert!! ### "),this.updateParamExe(t,i,r,e),0<e._$Do&&e._$Do<i&&(e._$9L=!0))},t.prototype.updateParamExe=function(t,e,i,r){},it._$8s=0,it._$fT=new Object,it.start=function(t){var e=it._$fT[t];null==e&&((e=new function(){this._$r=null,this._$0S=null})._$r=t,it._$fT[t]=e),e._$0S=bt.getSystemTimeMSec()},it.dump=function(t){var e=it._$fT[t];return null!=e?(e=bt.getSystemTimeMSec()-e._$0S,console.log(t+" : "+e+"ms"),e):-1},it.end=function(t){t=it._$fT[t];return null!=t?bt.getSystemTimeMSec()-t._$0S:-1},it._$li=function(t,e){console.log("_$li : "+t+"\n",e)},it._$Ji=function(t,e){console.log(t,e)},it._$dL=function(t,e){console.log(t,e),console.log("\n")},it._$KL=function(t,e){for(var i=0;i<e;i++)i%16==0&&0<i?console.log("\n"):i%8==0&&0<i&&console.log("  "),console.log("%02X ",255&t[i]);console.log("\n")},it._$nr=function(t,e,i){console.log("%s\n",t);for(var r=e.length,o=0;o<r;++o)console.log("%5d",e[o]),console.log("%s\n",i),console.log(",");console.log("\n")},it._$Rb=function(t){console.log("dump exception : "+t),console.log("stack :: "+t.stack)},b.prototype._$8P=function(){return.5*(this.x+this.x+this.width)},b.prototype._$6P=function(){return.5*(this.y+this.y+this.height)},b.prototype._$EL=function(){return this.x+this.width},b.prototype._$5T=function(){return this.y+this.height},b.prototype._$jL=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},b.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},s.prototype=new _t,s._$tP=new Object,s._$27=function(){s._$tP.clear()},s.getID=function(t){var e=s._$tP[t];return null==e&&(e=new s(t),s._$tP[t]=e),e},s.prototype._$3s=function(){return new s},_.prototype=new _t,_._$tP=new Object,_._$27=function(){_._$tP.clear()},_.getID=function(t){var e=_._$tP[t];return null==e&&(e=new _(t),_._$tP[t]=e),e},_.prototype._$3s=function(){return new _},R._$42=0,R.prototype._$zP=function(){null==this._$vo&&(this._$vo=new at),null==this._$F2&&(this._$F2=new Array)},R.prototype.getCanvasWidth=function(){return this._$ao},R.prototype.getCanvasHeight=function(){return this._$1S},R.prototype._$F0=function(t){this._$vo=t._$nP(),this._$F2=t._$nP(),this._$ao=t._$6L(),this._$1S=t._$6L()},R.prototype._$6S=function(t){this._$F2.push(t)},R.prototype._$Xr=function(){return this._$F2},R.prototype._$E2=function(){return this._$vo}
1,a.prototype.setup=function(t,e,i){this._$ks=this._$Yb(),this.p2._$xT(),3==arguments.length&&(this._$Fo=t,this._$L2=e,this.p1._$p=i,this.p2._$p=i,this.p2.y=t,this.setup())},a.prototype.getPhysicsPoint1=function(){return this.p1},a.prototype.getPhysicsPoint2=function(){return this.p2},a.prototype._$qr=function(){return this._$Db},a.prototype._$pr=function(t){this._$Db=t},a.prototype._$5r=function(){return this._$M2},a.prototype._$Cs=function(){return this._$9b},a.prototype._$Yb=function(){return-180*Math.atan2(this.p1.x-this.p2.x,-(this.p1.y-this.p2.y))/Math.PI},a.prototype.addSrcParam=function(t,e,i,r){t=new N(t,e,i,r);this._$lL.push(t)},a.prototype.addTargetParam=function(t,e,i,r){t=new G(t,e,i,r);this._$qP.push(t)},a.prototype.update=function(t,e){if(0==this._$iP)this._$iP=this._$iT=e,this._$Fo=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));else{var i=(e-this._$iT)/1e3;if(0!=i){for(var r=this._$lL.length-1;0<=r;--r)this._$lL[r]._$oP(t,this);this._$oo(t,i),this._$M2=this._$Yb(),this._$9b=(this._$M2-this._$ks)/i,this._$ks=this._$M2}for(r=this._$qP.length-1;0<=r;--r)this._$qP[r]._$YS(t,this);this._$iT=e}},a.prototype._$oo=function(t,e){var i=1/(e=e<.033?.033:e);this.p1.vx=(this.p1.x-this.p1._$s0)*i,this.p1.vy=(this.p1.y-this.p1._$70)*i,this.p1.ax=(this.p1.vx-this.p1._$7L)*i,this.p1.ay=(this.p1.vy-this.p1._$HL)*i,this.p1.fx=this.p1.ax*this.p1._$p,this.p1.fy=this.p1.ay*this.p1._$p,this.p1._$xT();var r=-Math.atan2(this.p1.y-this.p2.y,this.p1.x-this.p2.x),o=Math.cos(r),n=Math.sin(r),s=9.8*this.p2._$p,_=this._$Db*I._$bS,s=s*Math.cos(r-_),r=s*o,_=-this.p1.fx*n*n,o=-this.p1.fy*n*o,a=-this.p2.vx*this._$L2,h=-this.p2.vy*this._$L2,s=(this.p2.fx=s*n+_+a,this.p2.fy=r+o+h,this.p2.ax=this.p2.fx/this.p2._$p,this.p2.ay=this.p2.fy/this.p2._$p,this.p2.vx+=this.p2.ax*e,this.p2.vy+=this.p2.ay*e,this.p2.x+=this.p2.vx*e,this.p2.y+=this.p2.vy*e,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)/s,this.p2.y=this.p1.y+this._$Fo*(this.p2.y-this.p1.y)/s,this.p2.vx=(this.p2.x-this.p2._$s0)*i,this.p2.vy=(this.p2.y-this.p2._$70)*i,this.p2._$xT()},F.prototype._$xT=function(){this._$s0=this.x,this._$70=this.y,this._$7L=this.vx,this._$HL=this.vy},C.prototype._$oP=function(t,e){},(N.prototype=new C)._$oP=function(t,e){var i=this.scale*t.getParamFloat(this._$wL),r=e.getPhysicsPoint1();switch(this._$tL){default:case a.Src.SRC_TO_X:r.x=r.x+(i-r.x)*this._$V0;break;case a.Src.SRC_TO_Y:r.y=r.y+(i-r.y)*this._$V0;break;case a.Src.SRC_TO_G_ANGLE:var o=e._$qr();o+=(i-o)*this._$V0,e._$pr(o)}},B.prototype._$YS=function(t,e){},(G.prototype=new B)._$YS=function(t,e){switch(this._$YP){default:case a.Target.TARGET_FROM_ANGLE:t.setParamFloat(this._$wL,this.scale*e._$5r(),this._$V0);break;case a.Target.TARGET_FROM_ANGLE_V:t.setParamFloat(this._$wL,this.scale*e._$Cs(),this._$V0)}},(a.Src=function(){}).SRC_TO_X="SRC_TO_X",a.Src.SRC_TO_Y="SRC_TO_Y",a.Src.SRC_TO_G_ANGLE="SRC_TO_G_ANGLE",(a.Target=function(){}).TARGET_FROM_ANGLE="TARGET_FROM_ANGLE",a.Target.TARGET_FROM_ANGLE_V="TARGET_FROM_ANGLE_V",U.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},U.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()>=u.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this.reflectX=t._$po(),this.reflectY=t._$po())},U.prototype._$e=function(){};function nt(){}function k(){n||(this.x=null,this.y=null,this.width=null,this.height=null)}function V(){}function X(){n||(this.x=null,this.y=null)}function r(){n||(this._$gP=null,this._$dr=null,this._$GS=null,this._$qb=null,this._$Lb=null,this._$mS=null,this.clipID=null,this.clipIDList=new Array)}function e(){n||(this._$Eb=e._$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=e.CLIPPING_PROCESS_NONE,this.clipBufPre_clipContextMask=null,this.clipBufPre_clipContextDraw=null,this.CHANNEL_COLORS=new Array)}function H(){n||(this.a=1,this.r=1,this.g=1,this.b=1,this.scale=1,this._$ho=1,this.blendMode=ot.L2D_COLOR_BLEND_MODE_MULT)}function h(){n||(this._$kP=null,this._$dr=null,this._$Ai=!0,this._$mS=null)}function bt(){}function d(){n||(this._$VP=0,this._$wL=null,this._$GP=null,this._$8o=d._$ds,this._$2r=-1,this._$O2=0,this._$ri=0)}function c(){}function W(){n||(this._$Ob=null)}function i(){this.m=new Float32Array(16),this.identity()}function q(t){n||_t.prototype.constructor.call(this,t)}function p(){n||(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)}function f(){this._$4P=null,this._$I0=null,this._$RP=null}function T(){}function u(){}function g(t){n||(this._$QT=!0,this._$co=-1,this._$qo=0,this._$pb=new Array(g._$is),this._$_2=new Float32Array(g._$is),this._$vr=new Float32Array(g._$is),this._$Rr=new Float32Array(g._$is),this._$Or=new Float32Array(g._$is),this._$fs=new Float32Array(g._$is),this._$Js=new Array(g._$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(T._$Qb),this._$ZP=new Float32Array(2*T._$1r),this._$Ri=t,this._$b0=g._$HP++,this.clipManager=null,this.dp_webgl=null)}function j(){}
1nt._$ni=function(t,e,i,r,o,n,s,_,a){var h=s*n-_*o;if(0==h)return null;var h=((t-i)*n-(e-r)*o)/h,l=0!=o?(t-i-h*s)/o:(e-r-h*_)/n;return isNaN(l)&&(l=(t-i-h*s)/o,isNaN(l)&&(l=(e-r-h*_)/n),isNaN(l)&&(console.log("a is NaN @UtVector#_$ni() "),console.log("v1x : "+o),console.log("v1x != 0 ? "+(0!=o)))),null==a?new Array(l,h):(a[0]=l,a[1]=h,a)},k.prototype._$8P=function(){return this.x+.5*this.width},k.prototype._$6P=function(){return this.y+.5*this.height},k.prototype._$EL=function(){return this.x+this.width},k.prototype._$5T=function(){return this.y+this.height},k.prototype._$jL=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},k.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},k.prototype.contains=function(t,e){return this.x<=this.x&&this.y<=this.y&&this.x<=this.x+this.width&&this.y<=this.y+this.height},k.prototype.expand=function(t,e){this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e},V._$Z2=function(t,e,i,r){var o,n,s,_,a,h,l,$,u,p,c,f,g,d,y,m,T,P,S,L,v,M,C,E,N,x,B,A,G,w=e._$Q2(t,i),I=t._$vs(),D=t._$Tr();if(e._$zr(I,D,w),w<=0)return r[I[0]];if(1==w)return(o=r[I[0]])+((n=r[I[1]])-o)*D[0]|0;if(2==w)return o=r[I[0]],n=r[I[1]],s=r[I[2]],_=r[I[3]],(m=o+(n-o)*(a=D[0])|0)+((s+(_-s)*a|0)-m)*(h=D[1])|0;if(3==w)return l=r[I[0]],$=r[I[1]],u=r[I[2]],p=r[I[3]],c=r[I[4]],f=r[I[5]],g=r[I[6]],d=r[I[7]],(m=(o=l+($-l)*(a=D[0])|0)+((n=u+(p-u)*a|0)-o)*(h=D[1])|0)+(((s=c+(f-c)*a|0)+((_=g+(d-g)*a|0)-s)*h|0)-m)*(y=D[2])|0;if(4==w)return i=r[I[0]],t=r[I[1]],e=r[I[2]],T=r[I[3]],P=r[I[4]],S=r[I[5]],L=r[I[6]],v=r[I[7]],M=r[I[8]],C=r[I[9]],E=r[I[10]],N=r[I[11]],x=r[I[12]],B=r[I[13]],A=r[I[14]],G=r[I[15]],(m=(o=(l=i+(t-i)*(a=D[0])|0)+(($=e+(T-e)*a|0)-l)*(h=D[1])|0)+((n=(u=P+(S-P)*a|0)+((p=L+(v-L)*a|0)-u)*h|0)-o)*(y=D[2])|0)+(((s=(c=M+(C-M)*a|0)+((f=E+(N-E)*a|0)-c)*h|0)+((_=(g=x+(B-x)*a|0)+((d=A+(G-A)*a|0)-g)*h|0)-s)*y|0)-m)*D[3]|0;for(var O=1<<w,U=new Float32Array(O),b=0;b<O;b++){for(var Y=b,k=1,R=0;R<w;R++)k*=Y%2==0?1-D[R]:D[R],Y/=2;U[b]=k}for(var V=new Float32Array(O),F=0;F<O;F++)V[F]=r[I[F]];for(var X=0,F=0;F<O;F++)X+=U[F]*V[F];return X+.5|0},V._$br=function(t,e,i,r){var o,n,s,_,a,h,l,$,u,p,c,f,g,d,y,m,T,P=e._$Q2(t,i),S=t._$vs(),L=t._$Tr();if(e._$zr(S,L,P),P<=0)return r[S[0]];if(1==P)return(_=r[S[0]])+((s=r[S[1]])-_)*L[0];if(2==P)return _=r[S[0]],s=r[S[1]],i=r[S[2]],t=r[S[3]],o=L[0],(1-(n=L[1]))*(_+(s-_)*o)+n*(i+(t-i)*o);if(3==P)return e=r[S[0]],s=r[S[1]],_=r[S[2]],t=r[S[3]],i=r[S[4]],a=r[S[5]],l=r[S[6]],h=r[S[7]],o=L[0],n=L[1],(1-(m=L[2]))*((1-n)*(e+(s-e)*o)+n*(_+(t-_)*o))+m*((1-n)*(i+(a-i)*o)+n*(l+(h-l)*o));if(4==P)return s=r[S[0]],e=r[S[1]],t=r[S[2]],_=r[S[3]],a=r[S[4]],i=r[S[5]],h=r[S[6]],l=r[S[7]],$=r[S[8]],u=r[S[9]],p=r[S[10]],c=r[S[11]],f=r[S[12]],g=r[S[13]],d=r[S[14]],y=r[S[15]],o=L[0],n=L[1],m=L[2],(1-(T=L[3]))*((1-m)*((1-n)*(s+(e-s)*o)+n*(t+(_-t)*o))+m*((1-n)*(a+(i-a)*o)+n*(h+(l-h)*o)))+T*((1-m)*((1-n)*($+(u-$)*o)+n*(p+(c-p)*o))+m*((1-n)*(f+(g-f)*o)+n*(d+(y-d)*o)));for(var v=1<<P,M=new Float32Array(v),E=0;E<v;E++){for(var x=E,A=1,w=0;w<P;w++)A*=x%2==0?1-L[w]:L[w],x/=2;M[E]=A}for(var I=new Float32Array(v),D=0;D<v;D++)I[D]=r[S[D]];for(var O=0,D=0;D<v;D++)O+=M[D]*I[D];return O},V._$Vr=function(t,e,i,C,r,o,n,s){var _=e._$Q2(t,i),a=t._$vs(),h=t._$Tr(),l=(e._$zr(a,h,_),2*C),$=n;if(_<=0){var u=r[a[0]];if(2==s&&0==n)bt._$jT(u,0,o,0,l);else for(var p=0;p<l;)o[$]=u[p++],o[$+1]=u[p++],$+=s}else if(1==_)for(var u=r[a[0]],c=r[a[1]],f=1-(y=h[0]),p=0;p<l;)o[$]=u[p]*f+c[p]*y,o[$+1]=u[++p]*f+c[p]*y,++p,$+=s;else if(2==_){u=r[a[0]];var c=r[a[1]],g=r[a[2]],d=r[a[3]],y=h[0],m=(x=1-(E=h[1]))*(f=1-y),T=x*y,P=E*f,S=E*y;for(p=0;p<l;)o[$]=m*u[p]+T*c[p]+P*g[p]+S*d[p],o[$+1]=m*u[++p]+T*c[p]+P*g[p]+S*d[p],++p,$+=s}else if(3==_){var L=r[a[0]],v=r[a[1]],M=r[a[2]],N=r[a[3]],B=r[a[4]],G=r[a[5]],U=r[a[6]],Y=r[a[7]],E=(y=h[0],h[1]),k=(A=1-(w=h[2]))*(x=1-E)*(f=1-y),V=A*x*y,X=A*E*f,H=A*E*y,z=w*x*f,W=w*x*y,q=w*E*f,j=w*E*y;for(p=0;p<l;)o[$]=k*L[p]+V*v[p]+X*M[p]+H*N[p]+z*B[p]+W*G[p]+q*U[p]+j*Y[p],o[$+1]=k*L[++p]+V*v[p]+X*M[p]+H*N[p]+z*B[p]+W*G[p]+q*U[p]+j*Y[p],++p,$+=s}else if(4==_){var x,A,J=r[a[0]],Q=r[a[1]],Z=r[a[2]],K=r[a[3]],tt=r[a[4]],et=r[a[5]],it=r[a[6]],rt=r[a[7]],ot=r[a[8]],nt=r[a[9]],st=r[a[10]],_t=r[a[11]],at=r[a[12]],ht=r[a[13]],lt=r[a[14]],$t=r[a[15]],w=(y=
1h[0],E=h[1],h[2]),i=h[3],t=1-i,ut=t*(A=1-w)*(x=1-E)*(f=1-y),pt=t*A*x*y,ct=t*A*E*f,ft=t*A*E*y,gt=t*w*x*f,dt=t*w*x*y,yt=t*w*E*f,mt=t*w*E*y,Tt=i*A*x*f,Pt=i*A*x*y,St=i*A*E*f,Lt=i*A*E*y,vt=i*w*x*f,Mt=i*w*x*y,Et=i*w*E*f,xt=i*w*E*y;for(p=0;p<l;)o[$]=ut*J[p]+pt*Q[p]+ct*Z[p]+ft*K[p]+gt*tt[p]+dt*et[p]+yt*it[p]+mt*rt[p]+Tt*ot[p]+Pt*nt[p]+St*st[p]+Lt*_t[p]+vt*at[p]+Mt*ht[p]+Et*lt[p]+xt*$t[p],o[$+1]=ut*J[++p]+pt*Q[p]+ct*Z[p]+ft*K[p]+gt*tt[p]+dt*et[p]+yt*it[p]+mt*rt[p]+Tt*ot[p]+Pt*nt[p]+St*st[p]+Lt*_t[p]+vt*at[p]+Mt*ht[p]+Et*lt[p]+xt*$t[p],++p,$+=s}else{for(var I=1<<_,D=new Float32Array(I),O=0;O<I;O++){for(var At=O,wt=1,b=0;b<_;b++)wt*=At%2==0?1-h[b]:h[b],At/=2;D[O]=wt}for(var R=new Float32Array(I),F=0;F<I;F++)R[F]=r[a[F]];for(p=0;p<l;){for(var It=0,Dt=0,Ot=p+1,F=0;F<I;F++)It+=D[F]*R[F][p],Dt+=D[F]*R[F][Ot];p+=2,o[$]=It,o[$+1]=Dt,$+=s}}},X.prototype._$HT=function(t,e){this.x=t,this.y=e},X.prototype._$HT=function(t){this.x=t.x,this.y=t.y},r._$ur=-2,r._$ES=500,r._$wb=2,r._$8S=3,r._$52=r._$ES,r._$R2=r._$ES,r._$or=function(){return r._$52},r._$Pr=function(){return r._$R2},r.prototype.convertClipIDForV2_11=function(t){var e=[];return null==t||0==t.length?null:/,/.test(t)?t.id.split(","):(e.push(t.id),e)},r.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()>=u._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=[],this._$MS(this._$Lb)},r.prototype.getClipIDList=function(){return this.clipIDList},r.prototype.init=function(t){},r.prototype._$Nr=function(t,e){e._$IS[0]=!1,e._$Us=V._$Z2(t,this._$GS,e._$IS,this._$Lb),!ot._$Zs&&e._$IS[0]||(e._$7s=V._$br(t,this._$GS,e._$IS,this._$mS))},r.prototype._$2b=function(t,e){},r.prototype.getDrawDataID=function(){return this._$gP},r.prototype._$j2=function(t){this._$gP=t},r.prototype.getOpacity=function(t,e){return e._$7s},r.prototype._$zS=function(t,e){return e._$Us},r.prototype._$MS=function(t){for(var e=t.length-1;0<=e;--e){var i=t[e];i<r._$52?r._$52=i:r._$R2<i&&(r._$R2=i)}},r.prototype.getTargetBaseDataID=function(){return this._$dr},r.prototype._$gs=function(t){this._$dr=t},r.prototype._$32=function(){return null!=this._$dr&&this._$dr!=x._$2o()},r.prototype.preDraw=function(t,e,i){},r.prototype.draw=function(t,e,i){},r.prototype.getType=function(){},r.prototype._$B2=function(t,e,i){},e._$ps=32,e.CLIPPING_PROCESS_NONE=0,e.CLIPPING_PROCESS_OVERWRITE_ALPHA=1,e.CLIPPING_PROCESS_MULTIPLY_ALPHA=2,e.CLIPPING_PROCESS_DRAW=3,e.CLIPPING_PROCESS_CLEAR_ALPHA=4,e.prototype.setChannelFlagAsColor=function(t,e){this.CHANNEL_COLORS[t]=e},e.prototype.getChannelFlagAsColor=function(t){return this.CHANNEL_COLORS[t]},e.prototype._$ZT=function(){},e.prototype._$Uo=function(t,e,i,r,o,n,s){},e.prototype._$Rs=function(){return-1},e.prototype._$Ds=function(t){},e.prototype.setBaseColor=function(t,e,i,r){t<0?t=0:1<t&&(t=1),e<0?e=0:1<e&&(e=1),i<0?i=0:1<i&&(i=1),r<0?r=0:1<r&&(r=1),this._$lT=t,this._$C0=e,this._$tT=i,this._$WL=r},e.prototype._$WP=function(t){this.culling=t}
1,e.prototype.setMatrix=function(t){for(var e=0;e<16;e++)this.matrix4x4[e]=t[e]},e.prototype._$IT=function(){return this.matrix4x4},e.prototype.setPremultipliedAlpha=function(t){this.premultipliedAlpha=t},e.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha},e.prototype.setAnisotropy=function(t){this.anisotropy=t},e.prototype.getAnisotropy=function(){return this.anisotropy},e.prototype.getClippingProcess=function(){return this.clippingProcess},e.prototype.setClippingProcess=function(t){this.clippingProcess=t},e.prototype.setClipBufPre_clipContextForMask=function(t){this.clipBufPre_clipContextMask=t},e.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask},e.prototype.setClipBufPre_clipContextForDraw=function(t){this.clipBufPre_clipContextDraw=t},e.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw},h._$ur=-2,h._$c2=1,h._$_b=2,h.prototype._$F0=function(t){this._$kP=t._$nP(),this._$dr=t._$nP()},h.prototype.readV2_opacity=function(t){t.getFormatVersion()>=u.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this._$mS=t._$Tb())},h.prototype.init=function(t){},h.prototype._$Nr=function(t,e){},h.prototype.interpolateOpacity=function(t,e,i,r){null==this._$mS?i.setInterpolatedOpacity(1):i.setInterpolatedOpacity(V._$br(t,e,r,this._$mS))},h.prototype._$2b=function(t,e){},h.prototype._$nb=function(t,e,i,r,o,n,s){},h.prototype.getType=function(){},h.prototype._$gs=function(t){this._$dr=t},h.prototype._$a2=function(t){this._$kP=t},h.prototype.getTargetBaseDataID=function(){return this._$dr},h.prototype.getBaseDataID=function(){return this._$kP},h.prototype._$32=function(){return null!=this._$dr&&this._$dr!=x._$2o()},bt._$CS=bt._$W2=0,bt._$Mo=function(){return!0},bt._$XP=function(t){try{for(var e=getTimeMSec();getTimeMSec()-e<t;);}catch(t){t._$Rb()}},bt.getUserTimeMSec=function(){return bt._$CS==bt._$W2?bt.getSystemTimeMSec():bt._$CS},bt.setUserTimeMSec=function(t){bt._$CS=t},bt.updateUserTimeMSec=function(){return bt._$CS=bt.getSystemTimeMSec()},bt.getTimeMSec=function(){return(new Date).getTime()},bt.getSystemTimeMSec=function(){return(new Date).getTime()},bt._$Q=function(t){},bt._$jT=function(t,e,i,r,o){for(var n=0;n<o;n++)i[r+n]=t[e+n]},d._$ds=-2,d.prototype._$F0=function(t){this._$wL=t._$nP(),this._$VP=t._$6L(),this._$GP=t._$nP()},d.prototype.getParamIndex=function(t){return this._$2r!=t&&(this._$8o=d._$ds),this._$8o},d.prototype._$Pb=function(t,e){this._$8o=t,this._$2r=e},d.prototype.getParamID=function(){return this._$wL},d.prototype._$yP=function(t){this._$wL=t},d.prototype._$N2=function(){return this._$VP},d.prototype._$d2=function(){return this._$GP},d.prototype._$t2=function(t,e){this._$VP=t,this._$GP=e},d.prototype._$Lr=function(){return this._$O2},d.prototype._$wr=function(t){this._$O2=t},d.prototype._$SL=function(){return this._$ri},d.prototype._$AL=function(t){this._$ri=t},c.startsWith=function(t,e,i){var r=e+i.length;if(r>=t.length)return!1;for(var o=e;o<r;o++)if(c.getChar(t,o)!=i.charAt(o-e))return!1;return!0},c.getChar=function(t,e){return String.fromCharCode(t.getUint8(e))},c.createString=function(t,e,i){for(var r=new ArrayBuffer(2*i),o=new Uint16Array(r),n=0;n<i;n++)o[n]=t.getUint8(e+n);return String.fromCharCode.apply(null,o)},c._$LS=function(t,e,i,r){t instanceof ArrayBuffer&&(t=new DataView(t));var o=i,i=!1,n=!1,s=0,_=c.getChar(t,o);"-"==_&&(i=!0,o++);for(var a=!1;o<e;o++){switch(_=c.getChar(t,o)){case"0":s*=10;break;case"1":s=10*s+1;break;case"2":s=10*s+2;break;case"3":s=10*s+3;break;case"4":s=10*s+4;break;case"5":s=10*s+5;break;case"6":s=10*s+6;break;case"7":s=10*s+7;break;case"8":s=10*s+8;break;case"9":s=10*s+9;break;case".":o++,a=n=!0;break;default:a=!0}if(a)break}if(n)for(var h=.1,l=!1;o<e;o++){switch(_=c.getChar(t,o)){case"0":break;case"1":s+=+h;break;case"2":s+=2*h;break;case"3":s+=3*h;break;case"4":s+=4*h;break;case"5":s+=5*h;break;case"6":s+=6*h;break;case"7":s+=7*h;break;case"8":s+=8*h;break;case"9":s+=9*h;break;default:l=!0}if(h*=.1,l)break}return i&&(s=-s),r[0]=o,s},W.prototype._$zP=function(){this._$Ob=new Array},W.prototype._$F0=function(t){this._$Ob=t._$nP()},W.prototype._$Ur=function(t){if(t._$WS())return!0;for(var e=t._$v2(),i=this._$Ob.length-1;0<=i;--i){var r=this._$Ob[i].getParamIndex(e);if(r==d._$ds&&(r=t.getParamIndex(this._$Ob[i].getParamID())),t._$Xb(r))return!0}return!1},W.prototype._$Q2=function(t,e){for(var i,r=this._$Ob.length,o=t._$v2(),n=0,s=0;s<r;s++){var _=this._$Ob[s];if((i=_.getParamIndex(o))==d._$ds&&(i=t.getParamIndex(_.getParamID()),_._$Pb(i,o)),i<0)throw new Exception("err 23242 : "+_.getParamID());var a,h,l=i<0?0:t.getParamFloat(i),$=_._$N2(),u=_._$d2(),p=-1,c=0;if(!($<1))if(1==$)(a=u[0])-T._$J<l&&l<a+T._$J?c=p=0:e[p=0]=!0;else if(l<(a=u[0])-T._$J)e[p=0]=!0;else if(l<a+T._$J)p=0;else{for(var f=!1,g=1;g<$;++g){if(l<(h=u[g])+T._$J){h-T._$J<l?p=g:(p=g-1,c=(l-a)/(h-a),n++),f=!0;break}a=h}f||(p=$-1,e[c=0]=!0)}_._$wr(p),_._$AL(c)}return n}
1,W.prototype._$zr=function(t,e,i){var r=1<<i;T._$Qb<1+r&&console.log("err 23245\n");for(var o=this._$Ob.length,n=1,s=1,_=0,a=0;a<r;++a)t[a]=0;for(var h=0;h<o;++h){var l=this._$Ob[h];if(0==l._$SL()){if(($=l._$Lr()*n)<0&&ot._$3T)throw new Exception("err 23246");for(a=0;a<r;++a)t[a]+=$}else{for(var $=n*l._$Lr(),u=n*(l._$Lr()+1),a=0;a<r;++a)t[a]+=(a/s|0)%2==0?$:u;e[_++]=l._$SL(),s*=2}n*=l._$N2()}t[r]=65535,e[_]=-1},W.prototype._$h2=function(t,e,i){for(var r=new Float32Array(e),o=0;o<e;++o)r[o]=i[o];var n=new d;n._$yP(t),n._$t2(e,r),this._$Ob.push(n)},W.prototype._$J2=function(t){for(var e=t,i=this._$Ob.length,r=0;r<i;++r){var o=this._$Ob[r],n=o._$N2(),s=e%o._$N2(),_=o._$d2()[s];console.log("%s[%d]=%7.2f / ",o.getParamID(),s,_),e/=n}console.log("\n")},W.prototype.getParamCount=function(){return this._$Ob.length},W.prototype._$zs=function(){return this._$Ob},i.prototype.identity=function(){for(var t=0;t<16;t++)this.m[t]=t%5==0?1:0},i.prototype.getArray=function(){return this.m},i.prototype.getCopyMatrix=function(){return new Float32Array(this.m)}
vendor: 5,017 bytes, line 1
1,i.prototype.setMatrix=function(t){if(null!=t&&16==t.length)for(var e=0;e<16;e++)this.m[e]=t[e]},i.prototype.mult=function(t,e,i){return null==e?null:(this==e?this.mult_safe(this.m,t.m,e.m,i):this.mult_fast(this.m,t.m,e.m,i),e)},i.prototype.mult_safe=function(t,e,i,r){if(t==i){var o=new Array(16);this.mult_fast(t,e,o,r);for(var n=15;0<=n;--n)i[n]=o[n]}else this.mult_fast(t,e,i,r)},i.prototype.mult_fast=function(t,e,i,r){r?(i[0]=t[0]*e[0]+t[4]*e[1]+t[8]*e[2],i[4]=t[0]*e[4]+t[4]*e[5]+t[8]*e[6],i[8]=t[0]*e[8]+t[4]*e[9]+t[8]*e[10],i[12]=t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12],i[1]=t[1]*e[0]+t[5]*e[1]+t[9]*e[2],i[5]=t[1]*e[4]+t[5]*e[5]+t[9]*e[6],i[9]=t[1]*e[8]+t[5]*e[9]+t[9]*e[10],i[13]=t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13],i[2]=t[2]*e[0]+t[6]*e[1]+t[10]*e[2],i[6]=t[2]*e[4]+t[6]*e[5]+t[10]*e[6],i[10]=t[2]*e[8]+t[6]*e[9]+t[10]*e[10],i[14]=t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14],i[3]=i[7]=i[11]=0,i[15]=1):(i[0]=t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],i[4]=t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],i[8]=t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],i[12]=t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],i[1]=t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],i[5]=t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],i[9]=t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],i[13]=t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],i[2]=t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],i[6]=t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],i[10]=t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],i[14]=t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],i[3]=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],i[7]=t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],i[11]=t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],i[15]=t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15])},i.prototype.translate=function(t,e,i){this.m[12]=this.m[0]*t+this.m[4]*e+this.m[8]*i+this.m[12],this.m[13]=this.m[1]*t+this.m[5]*e+this.m[9]*i+this.m[13],this.m[14]=this.m[2]*t+this.m[6]*e+this.m[10]*i+this.m[14],this.m[15]=this.m[3]*t+this.m[7]*e+this.m[11]*i+this.m[15]},i.prototype.scale=function(t,e,i){this.m[0]*=t,this.m[4]*=e,this.m[8]*=i,this.m[1]*=t,this.m[5]*=e,this.m[9]*=i,this.m[2]*=t,this.m[6]*=e,this.m[10]*=i,this.m[3]*=t,this.m[7]*=e,this.m[11]*=i},i.prototype.rotateX=function(t){var e=I.fcos(t),t=I._$9(t),i=this.m[4];this.m[4]=i*e+this.m[8]*t,this.m[8]=i*-t+this.m[8]*e,i=this.m[5],this.m[5]=i*e+this.m[9]*t,this.m[9]=i*-t+this.m[9]*e,i=this.m[6],this.m[6]=i*e+this.m[10]*t,this.m[10]=i*-t+this.m[10]*e,i=this.m[7],this.m[7]=i*e+this.m[11]*t,this.m[11]=i*-t+this.m[11]*e},i.prototype.rotateY=function(t){var e=I.fcos(t),t=I._$9(t),i=this.m[0];this.m[0]=i*e+this.m[8]*-t,this.m[8]=i*t+this.m[8]*e,i=this.m[1],this.m[1]=i*e+this.m[9]*-t,this.m[9]=i*t+this.m[9]*e,i=m[2],this.m[2]=i*e+this.m[10]*-t,this.m[10]=i*t+this.m[10]*e,i=m[3],this.m[3]=i*e+this.m[11]*-t,this.m[11]=i*t+this.m[11]*e},i.prototype.rotateZ=function(t){var e=I.fcos(t),t=I._$9(t),i=this.m[0];this.m[0]=i*e+this.m[4]*t,this.m[4]=i*-t+this.m[4]*e,i=this.m[1],this.m[1]=i*e+this.m[5]*t,this.m[5]=i*-t+this.m[5]*e,i=this.m[2],this.m[2]=i*e+this.m[6]*t,this.m[6]=i*-t+this.m[6]*e,i=this.m[3],this.m[3]=i*e+this.m[7]*t,this.m[7]=i*-t+this.m[7]*e},q.prototype=new _t,q._$tP=new Object,q._$27=function(){q._$tP.clear()},q.getID=function(t){var e=q._$tP[t];return null==e&&(e=new q(t),q._$tP[t]=e),e},q.prototype._$3s=function(){return new q},p._$kS=-1,p._$pS=0,p._$hb=1,p.STATE_IDENTITY=0,p._$gb=1,p._$fo=2,p._$go=4,p.prototype.transform=function(t,e,i){var r,o,n,s,_,a,h=0,l=0;switch(this._$hi){default:return;case p._$go|p._$fo|p._$gb:for(r=this._$7,o=this._$H,n=this._$k,s=this._$f,_=this._$g,a=this._$w;0<=--i;){var $=t[h++],u=t[h++];e[l++]=r*$+o*u+n,e[l++]=s*$+_*u+a}return;case p._$go|p._$fo:for(r=this._$7,o=this._$H,s=this._$f,_=this._$g;0<=--i;)$=t[h++],u=t[h++],e[l++]=r*$+o*u,e[l++]=s*$+_*u;return;case p._$go|p._$gb:for(o=this._$H,n=this._$k,s=this._$f,a=this._$w;0<=--i;)$=t[h++],e[l++]=o*t[h++]+n,e[l++]=s*$+a;return;case p._$go:for(o=this._$H,s=this._$f;0<=--i;)$=t[h++],e[l++]=o*t[h++],e[l++]=s*$;return;case p._$fo|p._$gb:for(r=this._$7,n=this._$k,_=this._$g,a=this._$w;0<=--i;)e[l++]=r*t[h++]+n,e[l++]=_*t[h++]+a;return;case p._$fo:for(r=this._$7,_=this._$g;0<=--i;)e[l++]=r*t[h++],e[l++]=_*t[h++];return;case p._$gb:for(n=this._$k,a=this._$w;0<=--i;)e[l++]=t[h++]+n,e[l++]=t[h++]+a;return;case p.STATE_IDENTITY:return void(t==e&&h==l||bt._$jT(t,h,e,l,2*i))}},p.prototype.update=function(){0==this._$H&&0==this._$f?1==this._$7&&1==this._$g?0==this._$k&&0==this._$w?(this._$hi=p.STATE_IDENTITY,this._$Z=p._$pS):(this._$hi=p._$gb,this._$Z=p._$hb):(0==this._$k&&0==this._$w?this._$hi=p._$fo:this._$hi=p._$fo|p._$gb,this._$Z=p._$kS):(0==this._$7&&0==this._$g?0==this._$k&&0==this._$w?this._$hi=p._$go:this._$hi=p._$go|p._$gb:0==this._$k&&0==this._$w?this._$hi=p._$go|p._$fo:this._$hi=p._$go|p._$fo|p._$gb,this._$Z=p._$kS)},p.prototype._$RT=function(t){this._$IT(t);var e=t[0],i=t[2],r=t[1],o=t[3],n=Math.sqrt(e*e+r*r),s=e*o-i*r;0==n?ot._$so&&console.log("affine._$RT() / rt==0"):(t[0]=n,t[1]=s/n,t[2]=(r*o+e*i)/s,t[3]=Math.atan2(r,e))}
1,p.prototype._$ho=function(t,e,i,r){var o=new Float32Array(6),n=new Float32Array(6),t=(t._$RT(o),e._$RT(n),new Float32Array(6));t[0]=o[0]+(n[0]-o[0])*i,t[1]=o[1]+(n[1]-o[1])*i,t[2]=o[2]+(n[2]-o[2])*i,t[3]=o[3]+(n[3]-o[3])*i,t[4]=o[4]+(n[4]-o[4])*i,t[5]=o[5]+(n[5]-o[5])*i,r._$CT(t)},p.prototype._$CT=function(t){var e=Math.cos(t[3]),i=Math.sin(t[3]);this._$7=t[0]*e,this._$f=t[0]*i,this._$H=t[1]*(t[2]*e-i),this._$g=t[1]*(t[2]*i+e),this._$k=t[4],this._$w=t[5],this.update()},p.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},new t,f._$Fr=0,f._$hs=1,f._$ws=100,f._$Ns=101,f._$xs=102,f._$us=103,f._$qs=104,f._$Ys=105,T._$Ms=1,T._$Qs=2,T._$i2=0,T._$No=2,T._$do=T._$Ms,T._$Ls=!0,T._$1r=5,T._$Qb=65,T._$J=1e-4,T._$FT=.001,T._$Ss=3,u._$o7=6,u._$S7=7,u._$s7=8,u._$77=9,u.LIVE2D_FORMAT_VERSION_V2_10_SDK2=10,u._$T7=u.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1=11,u._$Is=-2004318072,u._$h0=0,u._$4L=23,u._$7P=33,u._$uT=function(t){console.log("_$bo :: _$6 _$mo _$E0 : %d\n",t)},u._$9o=function(t){if(!(t<40||t<50||t<60))if(t<100)switch(t){case 65:return new tt;case 66:return new W;case 67:return new d;case 68:return new z;case 69:return new U;case 70:return new M;default:return u._$uT(t),null}else if(t<150)switch(t){case 131:return new ht;case 133:return new S;case 136:return new R;case 137:return new at;case 142:return new Z}return u._$uT(t),null},g._$HP=0,g._$_0=!0,g._$V2=-1,g._$W0=-1,g._$jr=!1,g._$ZS=!0,g._$tr=-1e6,g._$lr=1e6,g._$is=32,g._$e=!1,g.prototype.getDrawDataIndex=function(t){for(var e=this._$aS.length-1;0<=e;--e)if(null!=this._$aS[e]&&this._$aS[e].getDrawDataID()==t)return e;return-1},g.prototype.getDrawData=function(t){if(t instanceof q){if(null==this._$Bo){this._$Bo=new Object;for(var e=this._$aS.length,i=0;i<e;i++){var r=this._$aS[i],o=r.getDrawDataID();null!=o&&(this._$Bo[o]=r)}}return this._$Bo[id]}return t<this._$aS.length?this._$aS[t]:null},g.prototype.release=function(){this._$3S.clear(),this._$aS.clear(),this._$F2.clear(),null!=this._$Bo&&this._$Bo.clear(),this._$db.clear(),this._$8b.clear(),this._$Hr.clear()},g.prototype.init=function(){this._$co++,0<this._$F2.length&&this.release();for(var t=this._$Ri.getModelImpl(),e=t._$Xr(),i=e.length,r=new Array,o=new Array,n=0;n<i;++n){var s=e[n];this._$F2.push(s),this._$Hr.push(s.init(this));for(var _=s.getBaseData(),a=_.length,h=0;h<a;++h)r.push(_[h]);for(h=0;h<a;++h){var l=_[h].init(this);l._$l2(n),o.push(l)}for(var $=s.getDrawData(),u=$.length,h=0;h<u;++h){var p=$[h],c=p.init(this);c._$IP=n,this._$aS.push(p),this._$8b.push(c)}}for(var f=r.length,g=x._$2o();;){for(var d=!1,n=0;n<f;++n){var y,m=r[n];null==m||(null==(y=m.getTargetBaseDataID())||y==g||0<=this.getBaseDataIndex(y))&&(this._$3S.push(m),this._$db.push(o[n]),d=!(r[n]=null))}if(!d)break}t=t._$E2();if(null!=t){var T=t._$1s();if(null!=T){var P=T.length;for(n=0;n<P;++n){var S=T[n];null!=S&&this._$02(S.getParamID(),S.getDefaultValue(),S.getMinValue(),S.getMaxValue())}}}this.clipManager=new L(this.dp_webgl),this.clipManager.init(this,this._$aS,this._$8b),this._$QT=!0},g.prototype.update=function(){g._$e&&it.start("_$zL");for(var t=this._$_2.length,e=0;e<t;e++)this._$_2[e]!=this._$vr[e]&&(this._$Js[e]=g._$ZS,this._$vr[e]=this._$_2[e]);var i=this._$3S.length,r=this._$aS.length,o=y._$or(),n=y._$Pr()-o+1;for((null==this._$Ws||this._$Ws.length<n)&&(this._$Ws=new Int16Array(n),this._$Vs=new Int16Array(n)),e=0;e<n;e++)this._$Ws[e]=g._$V2,this._$Vs[e]=g._$V2;for((null==this._$Er||this._$Er.length<r)&&(this._$Er=new Int16Array(r)),e=0;e<r;e++)this._$Er[e]=g._$W0;g._$e&&it.dump("_$zL"),g._$e&&it.start("_$UL");for(var s=null,_=0;_<i;++_){var a=this._$3S[_],h=this._$db[_];try{a._$Nr(this,h),a._$2b(this,h)}catch(t){null==s&&(s=t)}}null!=s&&g._$_0&&it._$Rb(s),g._$e&&it.dump("_$UL"),g._$e&&it.start("_$DL");for(var l=null,$=0;$<r;++$){var u=this._$aS[$],p=this._$8b[$];try{if(u._$Nr(this,p),!p._$u2()){u._$2b(this,p);var c,f=Math.floor(u._$zS(this,p)-o);try{c=this._$Vs[f]}catch(t){console.log("_$li :: %s / %s        @@_$fS\n",t.toString(),u.getDrawDataID().toString()),f=Math.floor(u._$zS(this,p)-o);continue}c==g._$V2?this._$Ws[f]=$:this._$Er[c]=$,this._$Vs[f]=$}}catch(t){null==l&&(l=t,ot._$sT(ot._$H7))}}for(null!=l&&g._$_0&&it._$Rb(l),g._$e&&it.dump("_$DL"),g._$e&&it.start("_$eL"),e=this._$Js.length-1;0<=e;e--)this._$Js[e]=g._$jr;return this._$QT=!1,g._$e&&it.dump("_$eL"),!1},g.prototype.preDraw=function(t){null!=this.clipManager&&(t._$ZT(),this.clipManager.setupClip(this,t))},g.prototype.draw=function(t){if(null!=this._$Ws){var e=this._$Ws.length;t._$ZT();for(var i=0;i<e;++i){var r=this._$Ws[i];if(r!=g._$V2)for(;;){var o=this._$aS[r],n=this._$8b[r],s=(n._$yo()&&(s=n._$IP,s=this._$Hr[s],n._$VS=s.getPartsOpacity(),o.draw(t,this,n)),this._$Er[r]);if(s<=r||s==g._$W0)break;r=s}}}else it._$li("call _$Ri.update() before _$Ri.draw() ")},g.prototype.getParamIndex=function(t){for(var e=this._$pb.length-1;0<=e;--e)if(this._$pb[e]==t)return e;
1return this._$02(t,0,g._$tr,g._$lr)},g.prototype._$BS=function(t){return this.getBaseDataIndex(t)},g.prototype.getBaseDataIndex=function(t){for(var e=this._$3S.length-1;0<=e;--e)if(null!=this._$3S[e]&&this._$3S[e].getBaseDataID()==t)return e;return-1},g.prototype._$UT=function(t,e){e=new Float32Array(e);return bt._$jT(t,0,e,0,t.length),e},g.prototype._$02=function(t,e,i,r){var o,n;return this._$qo>=this._$pb.length&&(o=this._$pb.length,n=new Array(2*o),bt._$jT(this._$pb,0,n,0,o),this._$pb=n,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),n=new Array,bt._$jT(this._$Js,0,n,0,o),this._$Js=n),this._$pb[this._$qo]=t,this._$_2[this._$qo]=e,this._$vr[this._$qo]=e,this._$Rr[this._$qo]=i,this._$Or[this._$qo]=r,this._$Js[this._$qo]=g._$ZS,this._$qo++},g.prototype._$Zo=function(t,e){this._$3S[t]=e},g.prototype.setParamFloat=function(t,e){(e=e<this._$Rr[t]?this._$Rr[t]:e)>this._$Or[t]&&(e=this._$Or[t]),this._$_2[t]=e},g.prototype.loadParam=function(){var t=this._$_2.length;t>this._$fs.length&&(t=this._$fs.length),bt._$jT(this._$fs,0,this._$_2,0,t)},g.prototype.saveParam=function(){var t=this._$_2.length;t>this._$fs.length&&(this._$fs=new Float32Array(t)),bt._$jT(this._$_2,0,this._$fs,0,t)},g.prototype._$v2=function(){return this._$co},g.prototype._$WS=function(){return this._$QT},g.prototype._$Xb=function(t){return this._$Js[t]==g._$ZS},g.prototype._$vs=function(){return this._$Es},g.prototype._$Tr=function(){return this._$ZP},g.prototype.getBaseData=function(t){return this._$3S[t]},g.prototype.getParamFloat=function(t){return this._$_2[t]},g.prototype.getParamMax=function(t){return this._$Or[t]},g.prototype.getParamMin=function(t){return this._$Rr[t]},g.prototype.setPartsOpacity=function(t,e){this._$Hr[t].setPartsOpacity(e)},g.prototype.getPartsOpacity=function(t){return this._$Hr[t].getPartsOpacity()},g.prototype.getPartsDataIndex=function(t){for(var e=this._$F2.length-1;0<=e;--e)if(null!=this._$F2[e]&&this._$F2[e]._$p2()==t)return e;return-1},g.prototype._$q2=function(t){return this._$db[t]},g.prototype._$C2=function(t){return this._$8b[t]},g.prototype._$Bb=function(t){return this._$Hr[t]},g.prototype._$5s=function(t,e){for(var i=this._$Ws.length,r=t,o=0;o<i;++o){var n=this._$Ws[o];if(n!=g._$V2)for(;;){var s=this._$8b[n],s=(s._$yo()&&(s._$GT()._$B2(this,s,r),r+=e),this._$Er[n]);if(s<=n||s==g._$W0)break;n=s}}},g.prototype.setDrawParam=function(t){this.dp_webgl=t},g.prototype.getDrawParam=function(){return this.dp_webgl},j._$0T=function(t){return j._$0T(new _$5(t))},j._$0T=function(t){if(!t.exists())throw new _$ls(t._$3b());for(var e,i=t.length(),r=new Int8Array(i),o=new _$Xs(new _$kb(t),8192),n=0;0<(e=o.read(r,n,i-n));)n+=e;return r},j._$C=function(t){var e=null,i=null;try{for(var r,e=t instanceof Array?t:new _$Xs(t,8192),i=new _$js,o=new Int8Array(1e3);0<(r=e.read(o));)i.write(o,0,r);return i._$TS()}finally{null!=t&&t.close(),null!=i&&(i.flush(),i.close())}};var J=function(){};function o(){n||(e.prototype.constructor.call(this),this._$sb=new Int32Array(o._$As),this._$U2=new Array,this.transform=null,(this.gl=null)==o._$NT&&(o._$NT=o._$9r(256),o._$vS=o._$9r(256),o._$no=o._$vb(256)))}function z(){n||(h.prototype.constructor.call(this),this._$GS=null,this._$Y0=null)}function Q(t){v.prototype.constructor.call(this,t),this._$8r=h._$ur,this._$Yr=null,this._$Wr=null}function y(){n||(r.prototype.constructor.call(this),this._$gP=null,this._$dr=null,this._$GS=null,this._$qb=null,this._$Lb=null,this._$mS=null)}function Z(){n||(this._$NL=null,this._$3S=null,this._$aS=null,Z._$42++)}function l(){n||($.prototype.constructor.call(this),this._$zo=new o)}function P(){n||(t.prototype.constructor.call(this),this.motions=new Array,this._$o2=null,this._$7r=P._$Co++,this._$D0=30,this._$yT=0,this._$E=!1,this.loopFadeIn=!0,this._$rr=-1,this._$eP=0)}function K(t,e){return String.fromCharCode(t.getUint8(e))}function f(){this._$4P=null,this._$I0=null,this._$RP=null}function tt(){n||(h.prototype.constructor.call(this),this._$o=0,this._$A=0,this._$GS=null,this._$Eo=null)}function et(t){v.prototype.constructor.call(this,t),this._$8r=h._$ur,this._$Cr=null,this._$hr=null}function S(){n||(this.visible=!0,this._$g0=!1,this._$NL=null,this._$3S=null,this._$aS=null,S._$42++)}function st(t){this._$VS=null,this._$e0=null,this._$e0=t}function _t(t){n||(this.id=t)}function at(){n||(this._$4S=null)}function rt(t,e){this.canvas=t,this.context=e,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={}}function ht(){n||(this._$TT=null,this._$LT=null,this._$FS=null,this._$wL=null)}function v(t){n||(this._$e0=null,this._$IP=null,this._$JS=!1,this._$AT=!0,this._$e0=t,this.totalScale=1,this._$7s=1,this.totalOpacity=1)}function ot(){}function lt(){}function $t(t){n||(this._$ib=t)}function M(){n||(y.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=M._$ms,this.culling=!0,this.gl_cacheImage=null,this.instanceNo=M._$42++)}function ut(t){Tt.prototype.constructor.call(this,t),this._$8r=y._$ur,this._$Cr=null,this._$hr=null}function pt(){n||(this.x=null,this.y=null)}function E(t){n||($.prototype.constructor.call(this),this.drawParamWebGL=new A(t),this.drawParamWebGL.setGL(ot.getGL(t)))}function ct(){n||(this.motions=null,this._$eb=!1,this.motions=new Array)}function ft(){this._$w0=null,this._$AT=!0,this._$9L=!1,this._$z2=-1,this._$bs=-1,this._$Do=-1,this._$sr=null,this._$sr=ft._$Gs++}function gt(){this.m=new Array(1,0,0,0,1,0,0,0,1)}function x(t){n||_t.prototype.constructor.call(this,t)}function A(t){n||(e.prototype.constructor.call(this),this.textures=new Array,this.transform=null,this.gl=null,this.glno=t,this.firstDraw=!0,this.anisotropyExt=null,this.maxAnisotropy=0,this._$As=32,this._$Gr=!1,this._$NT=null,this._$vS=null,this._$no=null,this.vertShader=null,this.fragShader=null,this.vertShaderOff=null,this.fragShaderOff=null)}function dt(t,e,i){return null==e&&(e=t.createBuffer()),t.bindBuffer(t.ARRAY_BUFFER,e),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),e}function yt(t,e,i){return null==e&&(e=t.createBuffer()),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),t.bufferData(t.ELEMENT_ARRAY_BUFFER,i,t.DYNAMIC_DRAW),e}
1function w(t){n||(this._$P=new Int8Array(8),this._$R0=new DataView(this._$P.buffer),this._$3i=new Int8Array(1e3),this._$hL=0,this._$v0=0,this._$S2=0,this._$Ko=new Array,this._$T=t,this._$F=0)}J.STATE_FIRST="STATE_FIRST",J.STATE_INTERVAL="STATE_INTERVAL",J.STATE_CLOSING="STATE_CLOSING",J.STATE_CLOSED="STATE_CLOSED",J.STATE_OPENING="STATE_OPENING",o.prototype=new e,o._$As=32,o._$Gr=!1,o._$NT=null,o._$vS=null,o._$no=null,o._$9r=function(t){return new Float32Array(t)},o._$vb=function(t){return new Int16Array(t)},o._$cr=function(t,e){return null==t||t._$yL()<e.length?(t=o._$9r(2*e.length)).put(e):(t.clear(),t.put(e)),t._$oT(0),t},o._$mb=function(t,e){return null==t||t._$yL()<e.length?(t=o._$vb(2*e.length)).put(e):(t.clear(),t.put(e)),t._$oT(0),t},o._$Hs=function(){return o._$Gr},o._$as=function(t){o._$Gr=t},o.prototype.setGL=function(t){this.gl=t},o.prototype.setTransform=function(t){this.transform=t},o.prototype._$ZT=function(){},o.prototype._$Uo=function(t,e,i,r,o,n,s,_){n<.01||(t=this._$U2[t],this.gl.drawElements(t,i,r,o,n,.9<n?ot.EXPAND_W:0,this.transform,_))},o.prototype._$Rs=function(){throw new Error("_$Rs")},o.prototype._$Ds=function(t){throw new Error("_$Ds")},o.prototype._$K2=function(){for(var t=0;t<this._$sb.length;t++)0!=this._$sb[t]&&(this.gl._$Sr(1,this._$sb,t),this._$sb[t]=0)},o.prototype.setTexture=function(t,e){this._$sb.length<t+1&&this._$nS(t),this._$sb[t]=e},o.prototype.setTexture=function(t,e){this._$sb.length<t+1&&this._$nS(t),this._$U2[t]=e},o.prototype._$nS=function(t){t=Math.max(2*this._$sb.length,t+1+10),t=new Int32Array(t),bt._$jT(this._$sb,0,t,0,this._$sb.length),this._$sb=t,t=new Array;bt._$jT(this._$U2,0,t,0,this._$U2.length),this._$U2=t},z.prototype=new h,z._$Xo=new Float32Array(2),z._$io=new Float32Array(2),z._$0o=new Float32Array(2),z._$Lo=new Float32Array(2),z._$To=new Float32Array(2),z._$Po=new Float32Array(2),z._$gT=new Array,z.prototype._$zP=function(){this._$GS=new W,this._$GS._$zP(),this._$Y0=new Array},z.prototype.getType=function(){return h._$c2},z.prototype._$F0=function(t){h.prototype._$F0.call(this,t),this._$GS=t._$nP(),this._$Y0=t._$nP(),h.prototype.readV2_opacity.call(this,t)},z.prototype.init=function(t){var e=new Q(this);return e._$Yr=new U,this._$32()&&(e._$Wr=new U),e},z.prototype._$Nr=function(t,e){this!=e._$GT()&&console.log("### assert!! ### ");var i=e;if(this._$GS._$Ur(t)){var r=z._$gT,o=(r[0]=!1,this._$GS._$Q2(t,r)),n=(e._$Ib(r[0]),this.interpolateOpacity(t,this._$GS,e,r),t._$vs()),s=t._$Tr();if(this._$GS._$zr(n,s,o),o<=0){var _=this._$Y0[n[0]];i._$Yr.init(_)}else if(1==o){var _=this._$Y0[n[0]],a=this._$Y0[n[1]],h=s[0];i._$Yr._$fL=_._$fL+(a._$fL-_._$fL)*h,i._$Yr._$gL=_._$gL+(a._$gL-_._$gL)*h,i._$Yr._$B0=_._$B0+(a._$B0-_._$B0)*h,i._$Yr._$z0=_._$z0+(a._$z0-_._$z0)*h,i._$Yr._$qT=_._$qT+(a._$qT-_._$qT)*h}else if(2==o){_=this._$Y0[n[0]];var a=this._$Y0[n[1]],e=this._$Y0[n[2]],r=this._$Y0[n[3]],l=(h=s[0],s[1]),$=_._$fL+(a._$fL-_._$fL)*h,u=e._$fL+(r._$fL-e._$fL)*h;i._$Yr._$fL=$+(u-$)*l,$=_._$gL+(a._$gL-_._$gL)*h,u=e._$gL+(r._$gL-e._$gL)*h,i._$Yr._$gL=$+(u-$)*l,$=_._$B0+(a._$B0-_._$B0)*h,u=e._$B0+(r._$B0-e._$B0)*h,i._$Yr._$B0=$+(u-$)*l,$=_._$z0+(a._$z0-_._$z0)*h,u=e._$z0+(r._$z0-e._$z0)*h,i._$Yr._$z0=$+(u-$)*l,$=_._$qT+(a._$qT-_._$qT)*h,u=e._$qT+(r._$qT-e._$qT)*h,i._$Yr._$qT=$+(u-$)*l}else if(3==o){var t=this._$Y0[n[0]],a=this._$Y0[n[1]],r=this._$Y0[n[2]],e=this._$Y0[n[3]],p=this._$Y0[n[4]],c=this._$Y0[n[5]],f=this._$Y0[n[6]],g=this._$Y0[n[7]],d=(h=s[0],l=s[1],s[2]),y=($=t._$fL+(a._$fL-t._$fL)*h,u=r._$fL+(e._$fL-r._$fL)*h,p._$fL+(c._$fL-p._$fL)*h),m=f._$fL+(g._$fL-f._$fL)*h;i._$Yr._$fL=(1-d)*($+(u-$)*l)+d*(y+(m-y)*l),$=t._$gL+(a._$gL-t._$gL)*h,u=r._$gL+(e._$gL-r._$gL)*h,y=p._$gL+(c._$gL-p._$gL)*h,m=f._$gL+(g._$gL-f._$gL)*h,i._$Yr._$gL=(1-d)*($+(u-$)*l)+d*(y+(m-y)*l),$=t._$B0+(a._$B0-t._$B0)*h,u=r._$B0+(e._$B0-r._$B0)*h,y=p._$B0+(c._$B0-p._$B0)*h,m=f._$B0+(g._$B0-f._$B0)*h,i._$Yr._$B0=(1-d)*($+(u-$)*l)+d*(y+(m-y)*l),$=t._$z0+(a._$z0-t._$z0)*h,u=r._$z0+(e._$z0-r._$z0)*h,y=p._$z0+(c._$z0-p._$z0)*h,m=f._$z0+(g._$z0-f._$z0)*h,i._$Yr._$z0=(1-d)*($+(u-$)*l)+d*(y+(m-y)*l),$=t._$qT+(a._$qT-t._$qT)*h,u=r._$qT+(e._$qT-r._$qT)*h,y=p._$qT+(c._$qT-p._$qT)*h,m=f._$qT+(g._$qT-f._$qT)*h,i._$Yr._$qT=(1-d)*($+(u-$)*l)+d*(y+(m-y)*l)}else if(4==o){var a=this._$Y0[n[0]],t=this._$Y0[n[1]],e=this._$Y0[n[2]],r=this._$Y0[n[3]],c=this._$Y0[n[4]],p=this._$Y0[n[5]],g=this._$Y0[n[6]],f=this._$Y0[n[7]],T=this._$Y0[n[8]],P=this._$Y0[n[9]],S=this._$Y0[n[10]],L=this._$Y0[n[11]],v=this._$Y0[n[12]],M=this._$Y0[n[13]],E=this._$Y0[n[14]],x=this._$Y0[n[15]],A=(h=s[0],l=s[1],d=s[2],s[3]),w=($=a._$fL+(t._$fL-a._$fL)*h,u=e._$fL+(r._$fL-e._$fL)*h,y=c._$fL+(p._$fL-c._$fL)*h,m=g._$fL+(f._$fL-g._$fL)*h,T._$fL+(P._$fL-T._$fL)*h),I=S._$fL+(L._$fL-S._$fL)*h,D=v._$fL+(M._$fL-v._$fL)*h,O=E._$fL+(x._$fL-E._$fL)*h;i._$Yr._$fL=(1-A)*((1-d)*($+(u-$)*l)+d*(y+(m-y)*l))+A*((1-d)*(w+(I-w)*l)+d*(D+(O-D)*l)),$=a._$gL+(t._$gL-a._$gL)*h,u=e._$gL+(r._$gL-e._$gL)*h,y=c._$gL+(p._$gL-c._$gL)*h,m=g._$gL+(f._$gL-g._$gL)*h,w=T._$gL+(P._$gL-T._$gL)*h,I=S._$gL+(L._$gL-S._$gL)*h,D=v._$gL+(M._$gL-v._$gL)*h,O=E._$gL+(x._$gL-E._$gL)*h,i._$Yr._$gL=(1-A)*((1-d)*($+(u-$)*l)+d*(y+(m-y)*l))+A*((1-d)*(w+(I-w)*l)+d*(D+(O-D)*l)),$=a._$B0+(t._$B0-a._$B0)*h,u=e._$B0+(r._$B0-e._$B0)*h,y=c._$B0+(p._$B0-c._$B0)*h,m=g._$B0+(f._$B0-g._$B0)*h,w=T._$B0+(P._$B0-T._$B0)*h,I=S._$B0+(L._$B0-S._$B0)*h,D=v._$B0+(M._$B0-v._$B0)*h,O=E._$B0+(x._$B0-E._$B0)*h,i._$Yr._$B0=(1-A)*((1-d)*($+(u-$)*l)+d*(y+(m-y)*l))+A*((1-d)*(w+(I-w)*l)+d*(D+(O-D)*l)),$=a._$z0+(t._$z0-a._$z0)*h,u=e._$z0+(r._$z0-e._$z0)*h,y=c._$z0+(p._$z0-c._$z0)*h,m=g._$z0+(f._$z0-g._$z0)*h,w=T._$z0+(P._$z0-T._$z0)*h,I=S._$z0+(L._$z0-S._$z0)*h,D=v._$z0+(M._$z0-v._$z0)*h,O
1=E._$z0+(x._$z0-E._$z0)*h,i._$Yr._$z0=(1-A)*((1-d)*($+(u-$)*l)+d*(y+(m-y)*l))+A*((1-d)*(w+(I-w)*l)+d*(D+(O-D)*l)),$=a._$qT+(t._$qT-a._$qT)*h,u=e._$qT+(r._$qT-e._$qT)*h,y=c._$qT+(p._$qT-c._$qT)*h,m=g._$qT+(f._$qT-g._$qT)*h,w=T._$qT+(P._$qT-T._$qT)*h,I=S._$qT+(L._$qT-S._$qT)*h,D=v._$qT+(M._$qT-v._$qT)*h,O=E._$qT+(x._$qT-E._$qT)*h,i._$Yr._$qT=(1-A)*((1-d)*($+(u-$)*l)+d*(y+(m-y)*l))+A*((1-d)*(w+(I-w)*l)+d*(D+(O-D)*l))}else{for(var C=0|Math.pow(2,o),b=new Float32Array(C),N=0;N<C;N++){for(var B=N,G=1,U=0;U<o;U++)G*=B%2==0?1-s[U]:s[U],B/=2;b[N]=G}for(var R=new Array,F=0;F<C;F++)R[F]=this._$Y0[n[F]];for(var Y=0,k=0,V=0,X=0,H=0,F=0;F<C;F++)Y+=b[F]*R[F]._$fL,k+=b[F]*R[F]._$gL,V+=b[F]*R[F]._$B0,X+=b[F]*R[F]._$z0,H+=b[F]*R[F]._$qT;i._$Yr._$fL=Y,i._$Yr._$gL=k,i._$Yr._$B0=V,i._$Yr._$z0=X,i._$Yr._$qT=H}_=this._$Y0[n[0]],i._$Yr.reflectX=_.reflectX,i._$Yr.reflectY=_.reflectY}},z.prototype._$2b=function(t,e){this!=e._$GT()&&console.log("### assert!! ### ");var i,r,o,n,s;e._$hS(!0),this._$32()?(s=this.getTargetBaseDataID(),e._$8r==h._$ur&&(e._$8r=t.getBaseDataIndex(s)),e._$8r<0?(ot._$so&&it._$li("_$L _$0P _$G :: %s",s),e._$hS(!1)):null!=(s=t.getBaseData(e._$8r))?(i=t._$q2(e._$8r),(r=z._$Xo)[0]=e._$Yr._$fL,r[1]=e._$Yr._$gL,(o=z._$io)[0]=0,o[1]=-.1,i._$GT().getType()==h._$c2?o[1]=-10:o[1]=-.1,this._$Jr(t,s,i,r,o,n=z._$0o),o=I._$92(o,n),s._$nb(t,i,r,r,1,0,2),e._$Wr._$fL=r[0],e._$Wr._$gL=r[1],e._$Wr._$B0=e._$Yr._$B0,e._$Wr._$z0=e._$Yr._$z0,e._$Wr._$qT=e._$Yr._$qT-o*I._$NS,n=i.getTotalScale(),e.setTotalScale_notForClient(n*e._$Wr._$B0),s=i.getTotalOpacity(),e.setTotalOpacity(s*e.getInterpolatedOpacity()),e._$Wr.reflectX=e._$Yr.reflectX,e._$Wr.reflectY=e._$Yr.reflectY,e._$hS(i._$yo())):e._$hS(!1)):(e.setTotalScale_notForClient(e._$Yr._$B0),e.setTotalOpacity(e.getInterpolatedOpacity()))},z.prototype._$nb=function(t,e,i,r,o,n,s){this!=e._$GT()&&console.log("### assert!! ### ");for(var _,a,h=null!=e._$Wr?e._$Wr:e._$Yr,l=Math.sin(I._$bS*h._$qT),$=Math.cos(I._$bS*h._$qT),e=e.getTotalScale(),u=h.reflectX?-1:1,p=h.reflectY?-1:1,c=$*e*u,f=-l*e*p,g=l*e*u,d=$*e*p,y=h._$fL,m=h._$gL,T=o*s,P=n;P<T;P+=s)_=i[P],a=i[P+1],r[P]=c*_+f*a+y,r[P+1]=g*_+d*a+m},z.prototype._$Jr=function(t,e,i,r,o,n){e!=i._$GT()&&console.log("### assert!! ### ");var s=z._$Lo;z._$Lo[0]=r[0],z._$Lo[1]=r[1],e._$nb(t,i,s,s,1,0,2);for(var _=z._$To,a=z._$Po,h=1,l=0;l<10;l++){if(a[0]=r[0]+h*o[0],a[1]=r[1]+h*o[1],e._$nb(t,i,a,_,1,0,2),_[0]-=s[0],_[1]-=s[1],0!=_[0]||0!=_[1])return n[0]=_[0],void(n[1]=_[1]);if(a[0]=r[0]-h*o[0],a[1]=r[1]-h*o[1],e._$nb(t,i,a,_,1,0,2),_[0]-=s[0],_[1]-=s[1],0!=_[0]||0!=_[1])return _[0]=-_[0],_[0]=-_[0],n[0]=_[0],void(n[1]=_[1]);h*=.1}ot._$so&&console.log("_$L0 to transform _$SP\n")},Q.prototype=new v,y.prototype=new r,y._$ur=-2,y._$ES=500,y._$wb=2,y._$8S=3,y._$os=4,y._$52=y._$ES,y._$R2=y._$ES,y._$Sb=function(t){for(var e=t.length-1;0<=e;--e){var i=t[e];i<y._$52?y._$52=i:y._$R2<i&&(y._$R2=i)}},y._$or=function(){return y._$52},y._$Pr=function(){return y._$R2},y.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()>=u._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=null,y._$Sb(this._$Lb)},y.prototype.getClipIDList=function(){return this.clipIDList},y.prototype._$Nr=function(t,e){e._$IS[0]=!1,e._$Us=V._$Z2(t,this._$GS,e._$IS,this._$Lb),!ot._$Zs&&e._$IS[0]||(e._$7s=V._$br(t,this._$GS,e._$IS,this._$mS))},y.prototype._$2b=function(t){},y.prototype.getDrawDataID=function(){return this._$gP},y.prototype._$j2=function(t){this._$gP=t},y.prototype.getOpacity=function(t,e){return e._$7s},y.prototype._$zS=function(t,e){return e._$Us},y.prototype.getTargetBaseDataID=function(){return this._$dr},y.prototype._$gs=function(t){this._$dr=t},y.prototype._$32=function(){return null!=this._$dr&&this._$dr!=x._$2o()},y.prototype.getType=function(){}
1,Z._$42=0,Z.prototype._$1b=function(){return this._$3S},Z.prototype.getDrawDataList=function(){return this._$aS},Z.prototype._$F0=function(t){this._$NL=t._$nP(),this._$aS=t._$nP(),this._$3S=t._$nP()},Z.prototype._$kr=function(t){t._$Zo(this._$3S),t._$xo(this._$aS),this._$3S=null,this._$aS=null},l.prototype=new $,l.loadModel=function(t){var e=new l;return $._$62(e,t),e},l.loadModel=function(t){var e=new l;return $._$62(e,t),e},l._$to=function(){return new l},l._$er=function(t){var e=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(0==e.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+e._$PL());for(var i=["../_$_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=l.loadModel(e._$3b()),o=0;o<i.length;o++){var n=new _$5(i[o]);if(0==n.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+n._$PL());r.setTexture(o,_$nL._$_o(t,n._$3b()))}return r},l.prototype.setGL=function(t){this._$zo.setGL(t)},l.prototype.setTransform=function(t){this._$zo.setTransform(t)},l.prototype.draw=function(){this._$5S.draw(this._$zo)},l.prototype._$K2=function(){this._$zo._$K2()},l.prototype.setTexture=function(t,e){null==this._$zo&&it._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!"),this._$zo.setTexture(t,e)},l.prototype.setTexture=function(t,e){null==this._$zo&&it._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!"),this._$zo.setTexture(t,e)},l.prototype._$Rs=function(){return this._$zo._$Rs()},l.prototype._$Ds=function(t){this._$zo._$Ds(t)},l.prototype.getDrawParam=function(){return this._$zo},P.prototype=new t,P._$cs="VISIBLE:",P._$ar="LAYOUT:",P.MTN_PREFIX_FADEIN="FADEIN:",P.MTN_PREFIX_FADEOUT="FADEOUT:",P._$Co=0,P._$1T=1,P.loadMotion=function(t){t=j._$C(t);return P.loadMotion(t)},P.loadMotion=function(t){t instanceof ArrayBuffer&&(t=new DataView(t));for(var e=new P,i=[0],r=t.byteLength,o=e._$yT=0;o<r;++o){var n=K(t,o),s=n.charCodeAt(0);if("\n"!=n&&"\r"!=n)if("#"!=n)if("$"!=n){if(97<=s&&s<=122||65<=s&&s<=90||"_"==n){for(l=o,$=-1;o<r&&"\r"!=(n=K(t,o))&&"\n"!=n;++o)if("="==n){$=o;break}if(0<=$){for(var s=new f,_=(c.startsWith(t,l,P._$cs)?(s._$RP=f._$hs,s._$4P=c.createString(t,l,$-l)):c.startsWith(t,l,P._$ar)?(s._$4P=c.createString(t,l+7,$-l-7),c.startsWith(t,l+7,"ANCHOR_X")?s._$RP=f._$xs:c.startsWith(t,l+7,"ANCHOR_Y")?s._$RP=f._$us:c.startsWith(t,l+7,"SCALE_X")?s._$RP=f._$qs:c.startsWith(t,l+7,"SCALE_Y")?s._$RP=f._$Ys:c.startsWith(t,l+7,"X")?s._$RP=f._$ws:c.startsWith(t,l+7,"Y")&&(s._$RP=f._$Ns)):(s._$RP=f._$Fr,s._$4P=c.createString(t,l,$-l)),e.motions.push(s),0),a=[],o=$+1;o<r&&"\r"!=(n=K(t,o))&&"\n"!=n;++o)if(","!=n&&" "!=n&&"\t"!=n&&(u=c._$LS(t,r,o,i),0<i[0])){a.push(u),_++;var h=i[0];if(h<o){console.log("_$n0 _$hi . @Live2DMotion loadMotion()\n");break}o=h-1}s._$I0=new Float32Array(a),_>e._$yT&&(e._$yT=_)}}}else{for(var l=o,$=-1;o<r&&"\r"!=(n=K(t,o))&&"\n"!=n;++o)if("="==n){$=o;break}var u,p=!1;if(0<=$)for($==l+4&&"f"==K(t,l+1)&&"p"==K(t,l+2)&&"s"==K(t,l+3)&&(p=!0),o=$+1;o<r&&"\r"!=(n=K(t,o))&&"\n"!=n;++o)","!=n&&" "!=n&&"\t"!=n&&(u=c._$LS(t,r,o,i),0<i[0]&&p&&5<u&&u<121&&(e._$D0=u),o=i[0]);for(;o<r&&"\n"!=K(t,o)&&"\r"!=K(t,o);++o);}else for(;o<r&&"\n"!=K(t,o)&&"\r"!=K(t,o);++o);}return e._$rr=1e3*e._$yT/e._$D0|0,e},P.prototype.getDurationMSec=function(){return this._$E?-1:this._$rr},P.prototype.getLoopDurationMSec=function(){return this._$rr},P.prototype.dump=function(){for(var t=0;t<this.motions.length;t++){var e=this.motions[t];console.log("_$wL[%s] [%d]. ",e._$4P,e._$I0.length);for(var i=0;i<e._$I0.length&&i<10;i++)console.log("%5.2f ,",e._$I0[i]);console.log("\n")}},P.prototype.updateParamExe=function(t,e,i,r){for(var o=(e-r._$z2)*this._$D0/1e3,n=0|o,s=o-n,_=0;_<this.motions.length;_++){var a,h,l,$,u=this.motions[_],p=u._$I0.length,c=u._$4P;u._$RP==f._$hs?(a=u._$I0[p<=n?p-1:n],t.setParamFloat(c,a)):f._$ws<=u._$RP&&u._$RP<=f._$Ys||(a=t.getParamIndex(c),h=.4*((l=t.getModelContext()).getParamMax(a)-l.getParamMin(a)),l=l.getParamFloat(a),$=u._$I0[p<=n?p-1:n],u=u._$I0[p<=1+n?p-1:1+n],t.setParamFloat(c,l+(($<u&&h<u-$||u<$&&h<$-u?$:$+(u-$)*s)-l)*i))}n>=this._$yT&&(this._$E?(r._$z2=e,this.loopFadeIn&&(r._$bs=e)):r._$9L=!0),this._$eP=i},P.prototype._$r0=function(){return this._$E},P.prototype._$aL=function(t){this._$E=t},P.prototype._$S0=function(){return this._$D0},P.prototype._$U0=function(t){this._$D0=t},P.prototype.isLoopFadeIn=function(){return this.loopFadeIn},P.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t},f._$Fr=0,f._$hs=1,f._$ws=100,f._$Ns=101,f._$xs=102,f._$us=103,f._$qs=104,f._$Ys=105,tt.prototype=new h,tt._$gT=new Array,tt.prototype._$zP=function(){this._$GS=new W,this._$GS._$zP()},tt.prototype._$F0=function(t){h.prototype._$F0.call(this,t),this._$A=t._$6L(),this._$o=t._$6L(),this._$GS=t._$nP(),this._$Eo=t._$nP(),h.prototype.readV2_opacity.call(this,t)},tt.prototype.init=function(t){var e=new et(this),i=(this._$o+1)*(this._$A+1);return null!=e._$Cr&&(e._$Cr=null),e._$Cr=new Float32Array(2*i),null!=e._$hr&&(e._$hr=null),this._$32()?e._$hr=new Float32Array(2*i):e._$hr=null,e},tt.prototype._$Nr=function(t,e){var i,r,o=e;this._$GS._$Ur(t)&&(i=this._$VT(),(r=tt._$gT)[0]=!1,V._$Vr(t,this._$GS,r,i,this._$Eo,o._$Cr,0,2),e._$Ib(r[0]),this.interpolateOpacity(t,this._$GS,e,r))},tt.prototype._$2b=function(t,e){var i,r,o;e._$hS(!0),this._$32()?(i=this.getTargetBaseDataID(),e._$8r==h._$ur&&(e._$8r=t.getBaseDataIndex(i)),e._$8r<0?(ot._$so&&it._$li("_$L _$0P _$G :: %s",i),e._$hS(!1)):(i=t.getBaseData(e._$8r),r=t._$q2(e._$8r),null!=i&&r._$yo()?(o=r.getTotalScale(),e.setTotalScale_notForClient(o),o=r.getTotalOpacity(),e.setTotalOpacity(o*e.getInterpolatedOpacity()),i._$nb(t,r,e._$Cr,e._$hr,this._$VT(),0,2),e._$hS(!0)):e._$hS(!1))):e.setTotalOpacity(e.getInterpolatedOpacity())}
1,tt.prototype._$nb=function(t,e,i,r,o,n,s){e=null!=e._$hr?e._$hr:e._$Cr;tt.transformPoints_sdk2(i,r,o,n,s,e,this._$o,this._$A)},tt.transformPoints_sdk2=function(t,e,C,N,B,i,r,o){for(var G=C*B,n=0,s=0,_=0,a=0,h=0,l=0,U=!1,$=N;$<G;$+=B){var u,p,c,f,g,d,y,m,T,P,S,L,v,M,E,x,A,w,I,D,O,b,R=t[$],F=(p=t[$+1])*o;(u=R*r)<0||F<0||r<=u||o<=F?(c=r+1,U||(U=!0,n=.25*(i[2*(0+0*c)]+i[2*(r+0*c)]+i[2*(0+o*c)]+i[2*(r+o*c)]),s=.25*(i[2*(0+0*c)+1]+i[2*(r+0*c)+1]+i[2*(0+o*c)+1]+i[2*(r+o*c)+1]),d=i[2*(r+o*c)]-i[2*(0+0*c)],f=i[2*(r+o*c)+1]-i[2*(0+0*c)+1],n-=.5*((_=.5*(d+(g=i[2*(r+0*c)]-i[2*(0+o*c)])))+(h=.5*(d-g))),s-=.5*((a=.5*(f+(d=i[2*(r+0*c)+1]-i[2*(0+o*c)+1])))+(l=.5*(f-d)))),-2<R&&R<3&&-2<p&&p<3?R<=0?p<=0?(S=i[2*(0+0*c)],L=i[2*(0+0*c)+1],T=n-2*h,P=s-2*l,v=(E=n-2*_)-2*h,M=(x=s-2*a)-2*l,(w=.5*(R- -2))+(I=.5*(p- -2))<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):1<=p?(T=i[2*(0+o*c)],P=i[2*(0+o*c)+1],v=n-2*_+ +h,M=s-2*a+ +l,S=n+3*h,L=s+3*l,E=n-2*_+3*h,x=s-2*a+3*l,(w=.5*(R- -2))+(I=.5*(p-1))<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):(I=F-(A=(A=0|F)==o?o-1:A),T=i[2*(0+A*c)],P=i[2*(0+A*c)+1],S=i[2*(0+(A+1)*c)],L=i[2*(0+(A+1)*c)+1],v=n-2*_+(y=A/o)*h,M=s-2*a+y*l,E=n-2*_+(m=(A+1)/o)*h,x=s-2*a+m*l,(w=.5*(R- -2))+I<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):1<=R?p<=0?(E=i[2*(r+0*c)],x=i[2*(r+0*c)+1],v=n+ +_-2*h,M=s+ +a-2*l,T=(S=n+3*_)-2*h,P=(L=s+3*a)-2*l,(w=.5*(R-1))+(I=.5*(p- -2))<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):1<=p?(v=i[2*(r+o*c)],M=i[2*(r+o*c)+1],T=n+3*_+ +h,P=s+3*a+ +l,E=n+ +_+3*h,x=s+ +a+3*l,S=n+3*_+3*h,L=s+3*a+3*l,(w=.5*(R-1))+(I=.5*(p-1))<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):(v=i[2*(r+(A=(A=0|F)==o?o-1:A)*c)],M=i[2*(r+A*c)+1],E=i[2*(r+(A+1)*c)],x=i[2*(r+(A+1)*c)+1],T=n+3*_+(y=A/o)*h,P=s+3*a+y*l,S=n+3*_+(m=(A+1)/o)*h,L=s+3*a+m*l,(w=.5*(R-1))+(I=F-A)<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):p<=0?(w=u-(b=(b=0|u)==r?r-1:b),E=i[2*(b+0*c)],x=i[2*(b+0*c)+1],S=i[2*(b+1+0*c)],L=i[2*(b+1+0*c)+1],v=n+(D=b/r)*_-2*h,M=s+D*a-2*l,T=n+(O=(b+1)/r)*_-2*h,P=s+O*a-2*l,w+(I=.5*(p- -2))<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):1<=p?(v=i[2*((b=(b=0|u)==r?r-1:b)+o*c)],M=i[2*(b+o*c)+1],T=i[2*(b+1+o*c)],P=i[2*(b+1+o*c)+1],E=n+(D=b/r)*_+3*h,x=s+D*a+3*l,S=n+(O=(b+1)/r)*_+3*h,L=s+O*a+3*l,(w=u-b)+(I=.5*(p-1))<=1?(e[$]=v+(T-v)*w+(E-v)*I,e[$+1]=M+(P-M)*w+(x-M)*I):(e[$]=S+(E-S)*(1-w)+(T-S)*(1-I),e[$+1]=L+(x-L)*(1-w)+(P-L)*(1-I))):Y.err.printf("_$li calc : %.4f , %.4f          @@BDBoxGrid\n",R,p):(e[$]=n+R*_+p*h,e[$+1]=s+R*a+p*l)):(g=2*((0|u)+(0|F)*(r+1)),(f=u-(0|u))+(d=F-(0|F))<1?(e[$]=i[g]*(1-f-d)+i[2+g]*f+i[g+2*(r+1)]*d,e[$+1]=i[1+g]*(1-f-d)+i[3+g]*f+i[g+2*(r+1)+1]*d):(e[$]=i[g+2*(r+1)+2]*(f-1+d)+i[g+2*(r+1)]*(1-f)+i[2+g]*(1-d),e[$+1]=i[g+2*(r+1)+3]*(f-1+d)+i[g+2*(r+1)+1]*(1-f)+i[3+g]*(1-d)))}},tt.prototype.transformPoints_sdk1=function(t,e,i,r,o,n,s){for(var _,a,h,l,$,u,p=this._$o,c=this._$A,f=o*s,g=null!=e._$hr?e._$hr:e._$Cr,d=n;d<f;d+=s)l=ot._$ts?((_=i[d])<0?_=0:1<_&&(_=1),(a=i[d+1])<0?a=0:1<a&&(a=1),h=0|(a*=c),(l=0|(_*=p))>p-1&&(l=p-1),$=_-l,u=a-(h=c-1<h?c-1:h),2*(l+h*(p+1))):($=(_=i[d]*p)-(0|_),u=(a=i[d+1]*c)-(0|a),2*((0|_)+(0|a)*(p+1))),$+u<1?(r[d]=g[l]*(1-$-u)+g[l+2]*$+g[l+2*(p+1)]*u,r[d+1]=g[l+1]*(1-$-u)+g[l+3]*$+g[l+2*(p+1)+1]*u):(r[d]=g[l+2*(p+1)+2]*($-1+u)+g[l+2*(p+1)]*(1-$)+g[l+2]*(1-u),r[d+1]=g[l+2*(p+1)+3]*($-1+u)+g[l+2*(p+1)+1]*(1-$)+g[l+3]*(1-u))},tt.prototype._$VT=function(){return(this._$o+1)*(this._$A+1)},tt.prototype.getType=function(){return h._$_b},et.prototype=new v,S._$42=0,S.prototype._$zP=function(){this._$3S=new Array,this._$aS=new Array},S.prototype._$F0=function(t){this._$g0=t._$8L(),this.visible=t._$8L(),this._$NL=t._$nP(),this._$3S=t._$nP(),this._$aS=t._$nP()},S.prototype.init=function(t){var e=new st(this);return e.setPartsOpacity(this.isVisible()?1:0),e},S.prototype._$6o=function(t){if(null==this._$3S)throw new Error("_$3S _$6 _$Wo@_$6o");this._$3S.push(t)},S.prototype._$3o=function(t){if(null==this._$aS)throw new Error("_$aS _$6 _$Wo@_$3o");this._$aS.push(t)},S.prototype._$Zo=function(t){this._$3S=t},S.prototype._$xo=function(t){this._$aS=t},S.prototype.isVisible=function(){return this.visible},S.prototype._$uL=function(){return this._$g0},S.prototype._$KP=function(t){this.visible=t},S.prototype._$ET=function(t){this._$g0=t},S.prototype.getBaseData=function(){return this._$3S},S.prototype.getDrawData=function(){return this._$aS},S.prototype._$p2=function(){return this._$NL},S.prototype._$ob=function(t){this._$NL=t},S.prototype.getPartsID=function(){return this._$NL},S.prototype._$MP=function(t){this._$NL=t}
1,(st.prototype=new function(){}).getPartsOpacity=function(){return this._$VS},st.prototype.setPartsOpacity=function(t){this._$VS=t},_t._$L7=function(){_._$27(),x._$27(),q._$27(),s._$27()},_t.prototype.toString=function(){return this.id},at.prototype._$1s=function(){return this._$4S},at.prototype._$zP=function(){this._$4S=new Array},at.prototype._$F0=function(t){this._$4S=t._$nP()},at.prototype._$Ks=function(t){this._$4S.push(t)},rt.tr=new gt,rt._$50=new gt,rt._$Ti=new Array(0,0),rt._$Pi=new Array(0,0),rt._$B=new Array(0,0),rt.prototype._$lP=function(t,e,i,r){this.viewport=new Array(t,e,i,r)},rt.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())},rt.prototype._$ei=function(){this.context.restore()},rt.prototype.drawElements=function(t,e,i,r,C,o,n,N){try{C!=this._$Qo&&(this._$Qo=C,this.context.globalAlpha=C);for(var B=e.length,s=t.width,_=t.height,a=this.context,G=this._$xP,U=this._$uP,Y=this._$6r,k=this._$3r,h=rt.tr,l=rt._$Ti,V=rt._$Pi,$=rt._$B,u=0;u<B;u+=3){a.save();var p,X,c,f=e[u],g=e[u+1],d=e[u+2],y=G+Y*i[2*f],m=U+k*i[2*f+1],T=G+Y*i[2*g],P=U+k*i[2*g+1],S=G+Y*i[2*d],L=U+k*i[2*d+1],v=(n&&(n._$PS(y,m,$),y=$[0],m=$[1],n._$PS(T,P,$),T=$[0],P=$[1],n._$PS(S,L,$),S=$[0],L=$[1]),s*r[2*f]),M=_-_*r[2*f+1],E=s*r[2*g],x=_-_*r[2*g+1],A=s*r[2*d],w=_-_*r[2*d+1],H=Math.atan2(x-M,E-v),z=Math.atan2(P-m,T-y),W=T-y,q=P-m,j=Math.sqrt(W*W+q*q),J=E-v,Q=x-M,Z=j/Math.sqrt(J*J+Q*Q),K=(nt._$ni(A,w,v,M,E-v,x-M,-(x-M),E-v,l),nt._$ni(S,L,y,m,T-y,P-m,-(P-m),T-y,V),(V[0]-l[0])/l[1]),I=Math.min(v,E,A),D=Math.max(v,E,A),O=Math.min(M,x,w),b=Math.max(M,x,w),R=Math.floor(I),F=Math.floor(O),tt=Math.ceil(D),et=Math.ceil(b);h.identity(),h.translate(y,m),h.rotate(z),h.scale(1,V[1]/l[1]),h.shear(K,0),h.scale(Z,Z),h.rotate(-H),h.translate(-v,-M),h.setContext(a),o=ot.IGNORE_EXPAND?0:o||1.2,ot.USE_CACHED_POLYGON_IMAGE?((p=N._$e0).gl_cacheImage=p.gl_cacheImage||{},p.gl_cacheImage[u]||(X=rt.createCanvas(tt-R,et-F),ot.DEBUG_DATA.LDGL_CANVAS_MB=ot.DEBUG_DATA.LDGL_CANVAS_MB||0,ot.DEBUG_DATA.LDGL_CANVAS_MB+=(tt-R)*(et-F)*4,(c=X.getContext("2d")).translate(-R,-F),rt.clip(c,h,o,j,v,M,E,x,A,w,y,m,T,P,S,L),c.drawImage(t,0,0),p.gl_cacheImage[u]={cacheCanvas:X,cacheContext:c}),a.drawImage(p.gl_cacheImage[u].cacheCanvas,R,F)):(ot.IGNORE_CLIP||rt.clip(a,h,o,j,v,M,E,x,A,w,y,m,T,P,S,L),ot.USE_ADJUST_TRANSLATION&&(D=s,O=I=0,b=_),a.drawImage(t,I,O,D-I,b-O,I,O,D-I,b-O)),a.restore()}}catch(t){it._$Rb(t)}},rt.clip=function(t,e,i,r,o,n,s,_,a,h,l,$,u,p,c,f){.02<i?rt.expandClip(t,e,i,r,l,$,u,p,c,f):rt.clipWithTransform(t,null,o,n,s,_,a,h)},rt.expandClip=function(t,e,i,r,o,n,s,_,a,h){var l=s-o,$=_-n,u=a-o,p=h-n,i=0<l*p-$*u?i:-i,$=-$,c=a-s,f=h-_,g=-f,d=c,c=Math.sqrt(c*c+f*f),f=-p,y=u,u=Math.sqrt(u*u+p*p),p=o-i*$/r,m=n-i*l/r,$=s-i*$/r,l=_-i*l/r,r=s-i*g/c,s=_-i*d/c,_=a-i*g/c,g=h-i*d/c,d=o+i*f/u,c=n+i*y/u,o=a+i*f/u,n=h+i*y/u,a=rt._$50;return null!=e._$P2(a)&&(rt.clipWithTransform(t,a,p,m,$,l,r,s,_,g,o,n,d,c),!0)},rt.clipWithTransform=function(t,e,i,r,o,n,s,_){if(arguments.length<7)it._$li("err : @LDGL.clip()");else if(e instanceof gt){var a=rt._$B,h=e,l=arguments;if(t.beginPath(),h){h._$PS(l[2],l[3],a),t.moveTo(a[0],a[1]);for(var $=4;$<l.length;$+=2)h._$PS(l[$],l[$+1],a),t.lineTo(a[0],a[1])}else for(t.moveTo(l[2],l[3]),$=4;$<l.length;$+=2)t.lineTo(l[$],l[$+1]);t.clip()}else it._$li("err : a[0] is _$6 LDTransform @LDGL.clip()")},rt.createCanvas=function(t,e){var i=document.createElement("canvas");return i.setAttribute("width",t),i.setAttribute("height",e),i||it._$li("err : "+i),i},rt.dumpValues=function(){for(var t="",e=0;e<arguments.length;e++)t+="["+e+"]= "+arguments[e].toFixed(3)+" , ";console.log(t)},ht.prototype._$F0=function(t){this._$TT=t._$_T(),this._$LT=t._$_T(),this._$FS=t._$_T(),this._$wL=t._$nP()},ht.prototype.getMinValue=function(){return this._$TT},ht.prototype.getMaxValue=function(){return this._$LT},ht.prototype.getDefaultValue=function(){return this._$FS},ht.prototype.getParamID=function(){return this._$wL},v.prototype._$yo=function(){return this._$AT&&!this._$JS},v.prototype._$hS=function(t){this._$AT=t},v.prototype._$GT=function(){return this._$e0},v.prototype._$l2=function(t){this._$IP=t},v.prototype.getPartsIndex=function(){return this._$IP},v.prototype._$x2=function(){return this._$JS},v.prototype._$Ib=function(t){this._$JS=t},v.prototype.getTotalScale=function(){return this.totalScale},v.prototype.setTotalScale_notForClient=function(t){this.totalScale=t},v.prototype.getInterpolatedOpacity=function(){return this._$7s},v.prototype.setInterpolatedOpacity=function(t){this._$7s=t},v.prototype.getTotalOpacity=function(t){return this.totalOpacity},v.prototype.setTotalOpacity=function(t){this.totalOpacity=t},ot._$2s="2.1.00_1",ot._$Kr=201001e3,ot._$sP=!0,ot._$so=!0,ot._$cb=!1,ot._$3T=!0,ot._$Ts=!0,ot._$fb=!0,ot._$ts=!0,ot.L2D_DEFORMER_EXTEND=!0,ot._$Wb=!1,ot._$yr=!1,ot._$Zs=!1,ot.L2D_NO_ERROR=0,ot._$i7=1e3,ot._$9s=1001,ot._$es=1100,ot._$r7=2e3,ot._$07=2001,ot._$b7=2002,ot._$H7=4e3,ot.L2D_COLOR_BLEND_MODE_MULT=0,ot.L2D_COLOR_BLEND_MODE_ADD=1,ot.L2D_COLOR_BLEND_MODE_INTERPOLATE=2,ot._$6b=!0,ot._$cT=0,ot.clippingMaskBufferSize=256,ot.glContext=new Array,ot.frameBuffers=new Array,ot.fTexture=new Array,ot.IGNORE_CLIP=!1,ot.IGNORE_EXPAND=!1,ot.EXPAND_W=2,ot.USE_ADJUST_TRANSLATION=!0,ot.USE_CANVAS_TRANSFORM=!0,ot.USE_CACHED_POLYGON_IMAGE=!1,ot.DEBUG_DATA={},ot.PROFILE_IOS_SPEED={PROFILE_NAME:"iOS Speed",USE_ADJUST_TRANSLATION:!0,USE_CACHED_POLYGON_IMAGE:!0,EXPAND_W:4},ot.PROFILE_IOS_DEFAULT=ot.PROFILE_IOS_QUALITY={PROFILE_NAME:"iOS HiQ",USE_ADJUST_TRANSLATION:!0,USE_CACHED_POLYGON_IMAGE:!1,EXPAND_W:2},ot.PROFILE_ANDROID={PROFILE_NAME:"Android",USE_ADJUST_TRANSLATION:!1,USE_CACHED_POLYGON_IMAGE:!1,EXPAND_W:2},ot.PROFILE_DESKTOP={PROFILE_NAME:"Desktop",USE_ADJUST_TRANSLATION:!1,USE_CACHED_POLYGON_IMAGE:!1,EXPAND_W:2},ot.initProfile=function(){D.isIOS()?ot.setupProfile(ot.PROFILE_IOS_DEFAULT):D.isAndroid()?ot.setupProfile(ot.PROFILE_ANDROID):ot.setupProfile(ot.PROFILE_DESKTOP)},ot.setupProfile=function(t,e){if("number"==typeof t)switch(t){case 9901:t=ot.PROFILE_IOS_SPEED;break;case 9902:t=ot.PROFILE_IOS_QUALITY;break;case 9903:t=ot.PROFILE_IOS_DEFAULT;break;case 9904:t=ot.PROFILE_ANDROID;break;case 9905:t=ot.PROFILE_DESKTOP;break;default:alert("profile _$6 _$Ui : "+t)}for(var i in(e=arguments.length<2?!0:e)&&console.log("profile : "+t.PROFILE_NAME),t)ot[i]=t[i],e&&console.log("  ["+i+"] = "+t[i])},ot.init=function(){ot._$6b&&(console.log("Live2D %s",ot._$2s),ot._$6b=!1,ot.initProfile())},ot.getVersionStr=function(){return ot._$2s},ot.getVersionNo=function(){return ot._$Kr},ot._$sT=function(t){ot._$cT=t},ot.getError=function(){var t=ot._$cT;return ot._$cT=0,t},ot.dispose=function(){ot.glContext=[],ot.frameBuffers=[],ot.fTexture=[]},ot.setGL=function(t,e){ot.glContext[e||0]=t},ot.getGL=function(t){return ot.glContext[t]},ot.setClippingMaskBufferSize=function(t){ot.clippingMaskBufferSize=t},ot.getClippingMaskBufferSize=function(){return ot.clippingMaskBufferSize},ot.deleteBuffer=function(t){ot.getGL(t).deleteFramebuffer(ot.frameBuffers[t].framebuffer),delete ot.frameBuffers[t],delete ot.glContext[t]},lt._$r2=function(t){return t<0?0:1<t?1:.5-.5*Math.cos(t*I.PI_F)},$t._$fr=-1,$t.prototype.toString=function(){return this._$ib},M.prototype=new y,M._$42=0,M._$Os=30,M._$ms=0,M._$ns=1,M._$_s=2,M._$gT=new Array,M.prototype._$_S=function(t){this._$LP=t},M.prototype.getTextureNo=function(){return this._$LP},M.prototype._$ZL=function(){return this._$Qi},M.prototype._$H2=function(){return this._$JP},M.prototype.getNumPoints=function(){return this._$d0},M.prototype.getType=function(){return y._$wb}
1,M.prototype._$B2=function(t,e,i){var r=null!=e._$hr?e._$hr:e._$Cr;switch(T._$do){default:case T._$Ms:throw new Error("_$L _$ro ");case T._$Qs:for(var o=this._$d0-1;0<=o;--o)r[o*T._$No+4]=i}},M.prototype._$zP=function(){this._$GS=new W,this._$GS._$zP()},M.prototype._$F0=function(t){y.prototype._$F0.call(this,t),this._$LP=t._$6L(),this._$d0=t._$6L(),this._$Yo=t._$6L();var e=t._$nP();this._$BP=new Int16Array(3*this._$Yo);for(var i=3*this._$Yo-1;0<=i;--i)this._$BP[i]=e[i];this._$Eo=t._$nP(),this._$Qi=t._$nP(),t.getFormatVersion()>=u._$s7?(this._$JP=t._$6L(),0!=this._$JP&&(0!=(1&this._$JP)&&(t=t._$6L(),null==this._$5P&&(this._$5P=new Object),this._$5P._$Hb=parseInt(t)),0!=(this._$JP&M._$Os)?this._$6s=(this._$JP&M._$Os)>>1:this._$6s=M._$ms,0!=(32&this._$JP)&&(this.culling=!1))):this._$JP=0},M.prototype.init=function(t){var e=new ut(this),i=this._$d0*T._$No,r=this._$32();switch(null!=e._$Cr&&(e._$Cr=null),e._$Cr=new Float32Array(i),null!=e._$hr&&(e._$hr=null),e._$hr=r?new Float32Array(i):null,T._$do){default:case T._$Ms:if(T._$Ls)for(var o=this._$d0-1;0<=o;--o){var n=o<<1;this._$Qi[n+1]=1-this._$Qi[n+1]}break;case T._$Qs:for(o=this._$d0-1;0<=o;--o){var n=o<<1,s=o*T._$No,_=this._$Qi[n],a=this._$Qi[n+1];e._$Cr[s]=_,e._$Cr[1+s]=a,e._$Cr[4+s]=0,r&&(e._$hr[s]=_,e._$hr[1+s]=a,e._$hr[4+s]=0)}}return e},M.prototype._$Nr=function(t,e){var i;this!=e._$GT()&&console.log("### assert!! ### "),this._$GS._$Ur(t)&&(y.prototype._$Nr.call(this,t,e),!e._$IS[0])&&((i=M._$gT)[0]=!1,V._$Vr(t,this._$GS,i,this._$d0,this._$Eo,e._$Cr,T._$i2,T._$No))},M.prototype._$2b=function(t,e){try{this!=e._$GT()&&console.log("### assert!! ### ");var i,r,o,n=!1,s=(e._$IS[0]&&(n=!0),e);!n&&(y.prototype._$2b.call(this,t),this._$32())&&(i=this.getTargetBaseDataID(),s._$8r==y._$ur&&(s._$8r=t.getBaseDataIndex(i)),s._$8r<0?ot._$so&&it._$li("_$L _$0P _$G :: %s",i):(r=t.getBaseData(s._$8r),o=t._$q2(s._$8r),null==r||o._$x2(
1)?s._$AT=!1:(r._$nb(t,o,s._$Cr,s._$hr,this._$d0,T._$i2,T._$No),s._$AT=!0),s.baseOpacity=o.getTotalOpacity()))}catch(t){throw t}},M.prototype.draw=function(t,e,i){var r,o,n;this!=i._$GT()&&console.log("### assert!! ### "),i._$IS[0]||((r=this._$LP)<0&&(r=1),o=this.getOpacity(e,e=i)*i._$VS*i.baseOpacity,n=null!=e._$hr?e._$hr:e._$Cr,t.setClipBufPre_clipContextForDraw(i.clipBufPre_clipContext),t._$WP(this.culling),t._$Uo(r,3*this._$Yo,this._$BP,n,this._$Qi,o,this._$6s,e))},M.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;t<this._$BP.length;t++)console.log("%5d ,",this._$BP[t]);for(console.log("\n  _$5i _$30"),t=0;t<this._$Eo.length;t++){console.log("\n    _$30[%d] = ",t);for(var e=this._$Eo[t],i=0;i<e.length;i++)console.log("%6.2f, ",e[i])}console.log("\n")},M.prototype._$72=function(t){return null==this._$5P?null:this._$5P[t]},M.prototype.getIndexArray=function(){return this._$BP},(ut.prototype=new Tt).getTransformedPoints=function(){return null!=this._$hr?this._$hr:this._$Cr},pt.prototype._$HT=function(t){this.x=t.x,this.y=t.y},pt.prototype._$HT=function(t,e){this.x=t,this.y=e}
vendor: 1,457 bytes, line 1
1,E.prototype=new $,E.loadModel=function(t){var e=new E;return $._$62(e,t),e},E.loadModel=function(t,e){e=new E(e||0);return $._$62(e,t),e},E._$to=function(){return new E},E._$er=function(t){var e=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(0==e.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+e._$PL());for(var i=["../_$_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=E.loadModel(e._$3b()),o=0;o<i.length;o++){var n=new _$5(i[o]);if(0==n.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+n._$PL());r.setTexture(o,_$nL._$_o(t,n._$3b()))}return r},E.prototype.setGL=function(t){ot.setGL(t)},E.prototype.setTransform=function(t){this.drawParamWebGL.setTransform(t)},E.prototype.update=function(){this._$5S.update(),this._$5S.preDraw(this.drawParamWebGL)},E.prototype.draw=function(){this._$5S.draw(this.drawParamWebGL)},E.prototype._$K2=function(){this.drawParamWebGL._$K2()},E.prototype.setTexture=function(t,e){null==this.drawParamWebGL&&it._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!"),this.drawParamWebGL.setTexture(t,e)},E.prototype.setTexture=function(t,e){null==this.drawParamWebGL&&it._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!"),this.drawParamWebGL.setTexture(t,e)},E.prototype._$Rs=function(){return this.drawParamWebGL._$Rs()},E.prototype._$Ds=function(t){this.drawParamWebGL._$Ds(t)},E.prototype.getDrawParam=function(){return this.drawParamWebGL}
1,E.prototype.setMatrix=function(t){this.drawParamWebGL.setMatrix(t)},E.prototype.setPremultipliedAlpha=function(t){this.drawParamWebGL.setPremultipliedAlpha(t)},E.prototype.isPremultipliedAlpha=function(){return this.drawParamWebGL.isPremultipliedAlpha()},E.prototype.setAnisotropy=function(t){this.drawParamWebGL.setAnisotropy(t)},E.prototype.getAnisotropy=function(){return this.drawParamWebGL.getAnisotropy()},ct.prototype._$tb=function(){return this.motions},ct.prototype.startMotion=function(t,e){for(var i=null,r=this.motions.length,o=0;o<r;++o)null!=(i=this.motions[o])&&(i._$qS(i._$w0.getFadeOut()),this._$eb&&it._$Ji("MotionQueueManager[size:%2d]->startMotion() / start _$K _$3 (m%d)\n",r,i._$sr));if(null==t)return-1;(i=new ft)._$w0=t,this.motions.push(i);t=i._$sr;return this._$eb&&it._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\n",r,t),t},ct.prototype.updateParam=function(t){try{for(var e=!1,i=0;i<this.motions.length;i++){var r,o=this.motions[i];null!=o?null!=(r=o._$w0)?(r.updateParam(t,o),e=!0,o.isFinished()&&(this._$eb&&it._$Ji("MotionQueueManager[size:%2d]->updateParam() / _$T0 _$w0 (m%d)\n",this.motions.length-1,o._$sr),this.motions.splice(i,1),i--)):(this.motions=this.motions.splice(i,1),i--):(this.motions.splice(i,1),i--)}return e}catch(t){return it._$li(t),!0}},ct.prototype.isFinished=function(t){if(1<=arguments.length){for(var e=0;e<this.motions.length;e++)if(null!=(i=this.motions[e])&&i._$sr==t&&!i.isFinished())return!1}else for(e=0;e<this.motions.length;e++){var i;if(null!=(i=this.motions[e]))if(null!=i._$w0){if(!i.isFinished())return!1}else this.motions.splice(e,1),e--;else this.motions.splice(e,1),e--}return!0},ct.prototype.stopAllMotions=function(){for(var t=0;t<this.motions.length;t++){var e=this.motions[t];null!=e&&e._$w0,this.motions.splice(t,1),t--}},ct.prototype._$Zr=function(t){this._$eb=t},ct.prototype._$e=function(){console.log("-- _$R --\n");for(var t=0;t<this.motions.length;t++){var e=this.motions[t]._$w0;console.log("MotionQueueEnt[%d] :: %s\n",this.motions.length,e.toString())}},ft._$Gs=0,ft.prototype.isFinished=function(){return this._$9L},ft.prototype._$qS=function(t){t=bt.getUserTimeMSec()+t;(this._$Do<0||t<this._$Do)&&(this._$Do=t)},ft.prototype._$Bs=function(){return this._$sr},gt.prototype.setContext=function(t){var e=this.m;t.transform(e[0],e[1],e[3],e[4],e[6],e[7])},gt.prototype.toString=function(){for(var t="LDTransform { ",e=0;e<9;e++)t+=this.m[e].toFixed(2)+" ,";return t+" }"},gt.prototype.identity=function(){var t=this.m;t[0]=t[4]=t[8]=1,t[1]=t[2]=t[3]=t[5]=t[6]=t[7]=0},gt.prototype._$PS=function(t,e,i){null==i&&(i=new Array(0,0));var r=this.m;return i[0]=r[0]*t+r[3]*e+r[6],i[1]=r[1]*t+r[4]*e+r[7],i},gt.prototype._$P2=function(t){t=t||new gt;var e=this.m,i=e[0],r=e[1],o=e[2],n=e[3],s=e[4],_=e[5],a=e[6],h=e[7],e=e[8],l=i*s*e+r*_*a+o*n*h-i*_*h-o*s*a-r*n*e;if(0==l)return null;l=1/l;return t.m[0]=l*(s*e-h*_),t.m[1]=l*(h*o-r*e),t.m[2]=l*(r*_-s*o),t.m[3]=l*(a*_-n*e),t.m[4]=l*(i*e-a*o),t.m[5]=l*(n*o-i*_),t.m[6]=l*(n*h-a*s),t.m[7]=l*(a*r-i*h),t.m[8]=l*(i*s-n*r),t},gt.prototype.transform=function(t,e,i){null==i&&(i=new Array(0,0));var r=this.m;return i[0]=r[0]*t+r[3]*e+r[6],i[1]=r[1]*t+r[4]*e+r[7],i},gt.prototype.translate=function(t,e){var i=this.m;i[6]=i[0]*t+i[3]*e+i[6],i[7]=i[1]*t+i[4]*e+i[7],i[8]=i[2]*t+i[5]*e+i[8]},gt.prototype.scale=function(t,e){var i=this.m;i[0]*=t,i[1]*=t,i[2]*=t,i[3]*=e,i[4]*=e,i[5]*=e},gt.prototype.shear=function(t,e){var i=this.m,r=i[0]+i[3]*e,o=i[1]+i[4]*e,e=i[2]+i[5]*e;i[3]=i[0]*t+i[3],i[4]=i[1]*t+i[4],i[5]=i[2]*t+i[5],i[0]=r,i[1]=o,i[2]=e},gt.prototype.rotate=function(t){var e=this.m,i=Math.cos(t),t=Math.sin(t),r=e[0]*i+e[3]*t,o=e[1]*i+e[4]*t,n=e[2]*i+e[5]*t;e[3]=-e[0]*t+e[3]*i,e[4]=-e[1]*t+e[4]*i,e[5]=-e[2]*t+e[5]*i,e[0]=r,e[1]=o,e[2]=n},gt.prototype.concatenate=function(t){var e=this.m,t=t.m,i=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],r=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],o=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],n=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],s=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],_=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],a=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],h=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],e=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];m[0]=i,m[1]=r,m[2]=o,m[3]=n,m[4]=s,m[5]=_,m[6]=a,m[7]=h,m[8]=e},x.prototype=new _t,x._$eT=null,x._$tP=new Object,x._$2o=function(){return x._$eT=null==x._$eT?x.getID("DST_BASE"):x._$eT},x._$27=function(){x._$tP.clear(),x._$eT=null},x.getID=function(t){var e=x._$tP[t];return null==e&&(e=new x(t),x._$tP[t]=e),e},x.prototype._$3s=function(){return new x},A.prototype=new e,A._$9r=function(t){return new Float32Array(t)},A._$vb=function(t){return new Int16Array(t)},A._$cr=function(t,e){return null==t||t._$yL()<e.length?(t=A._$9r(2*e.length)).put(e):(t.clear(),t.put(e)),t._$oT(0),t},A._$mb=function(t,e){return null==t||t._$yL()<e.length?(t=A._$vb(2*e.length)).put(e):(t.clear(),t.put(e)),t._$oT(0),t},A._$Hs=function(){return this._$Gr},A._$as=function(t){this._$Gr=t},A.prototype.getGL=function(){return this.gl},A.prototype.setGL=function(t){this.gl=t},A.prototype.setTransform=function(t){this.transform=t},A.prototype._$ZT=function(){var t=this.gl;this.firstDraw&&(this.initShader(),this.firstDraw=!1,this.anisotropyExt=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic"),this.anisotropyExt&&(this.maxAnisotropy=t.getParameter(this.anisotropyExt.MAX_TEXTURE_MAX_ANISOTROPY_EXT))),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.DEPTH_TEST),t.frontFace(t.CW),t.enable(t.BLEND),t.colorMask(1,1,1,1),t.bindBuffer(t.ARRAY_BUFFER,null),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null)}
1,A.prototype._$Uo=function(t,e,i,r,o,n,s,_){if(!(n<.01&&null==this.clipBufPre_clipContextMask)){var a=this.gl;if(null==this.gl)throw new Error("gl is null");var h,l,$,u,p,c,f=+this._$C0*n,g=+this._$tT*n,d=+this._$WL*n,n=this._$lT*n;if(null!=this.clipBufPre_clipContextMask?(a.frontFace(a.CCW),a.useProgram(this.shaderProgram),this._$vS=dt(a,this._$vS,r),this._$no=yt(a,this._$no,i),a.enableVertexAttribArray(this.a_position_Loc),a.vertexAttribPointer(this.a_position_Loc,2,a.FLOAT,!1,0,0),this._$NT=dt(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),h=this.getClipBufPre_clipContextMask().layoutChannelNo,l=this.getChannelFlagAsColor(h),a.uniform4f(this.u_channelFlag,l.r,l.g,l.b,l.a),y=this.getClipBufPre_clipContextMask().layoutBounds,a.uniform4f(this.u_baseColor_Loc,2*y.x-1,2*y.y-1,2*y._$EL()-1,2*y._$5T()-1),a.uniform1i(this.u_maskFlag_Loc,!0)):null!=this.getClipBufPre_clipContextDraw()?(a.useProgram(this.shaderProgramOff),this._$vS=dt(a,this._$vS,r),this._$no=yt(a,this._$no,i),a.enableVertexAttribArray(this.a_position_Loc_Off),a.vertexAttribPointer(this.a_position_Loc_Off,2,a.FLOAT,!1,0,0),this._$NT=dt(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,ot.fTexture[this.glno]),a.uniform1i(this.s_texture1_Loc_Off,2),h=this.getClipBufPre_clipContextDraw().layoutChannelNo,l=this.getChannelFlagAsColor(h),a.uniform4f(this.u_channelFlag_Loc_Off,l.r,l.g,l.b,l.a),a.uniform4f(this.u_baseColor_Loc_Off,f,g,d,n)):(a.useProgram(this.shaderProgram),this._$vS=dt(a,this._$vS,r),this._$no=yt(a,this._$no,i),a.enableVertexAttribArray(this.a_position_Loc),a.vertexAttribPointer(this.a_position_Loc,2,a.FLOAT,!1,0,0),this._$NT=dt(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,f,g,d,n),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),null!=this.clipBufPre_clipContextMask)$=a.ONE,u=a.ONE_MINUS_SRC_ALPHA,p=a.ONE,c=a.ONE_MINUS_SRC_ALPHA;else switch(s){case M._$ms:$=a.ONE,u=a.ONE_MINUS_SRC_ALPHA,p=a.ONE,c=a.ONE_MINUS_SRC_ALPHA;break;case M._$ns:$=a.ONE,u=a.ONE,p=a.ZERO,c=a.ONE;break;case M._$_s:$=a.DST_COLOR,u=a.ONE_MINUS_SRC_ALPHA,p=a.ZERO,c=a.ONE}a.blendEquationSeparate(a.FUNC_ADD,a.FUNC_ADD),a.blendFuncSeparate($,u,p,c),this.anisotropyExt&&a.texParameteri(a.TEXTURE_2D,this.anisotropyExt.TEXTURE_MAX_ANISOTROPY_EXT,this.maxAnisotropy);var y=i.length;a.drawElements(a.TRIANGLES,y,a.UNSIGNED_SHORT,0),a.bindTexture(a.TEXTURE_2D,null)}},A.prototype._$Rs=function(){throw new Error("_$Rs")},A.prototype._$Ds=function(t){throw new Error("_$Ds")},A.prototype._$K2=function(){for(var t=0;t<this.textures.length;t++)0!=this.textures[t]&&(this.gl._$K2(1,this.textures,t),this.textures[t]=null)},A.prototype.setTexture=function(t,e){this.textures[t]=e},A.prototype.initShader=function(){var t=this.gl;this.loadShaders2(),this.a_position_Loc=t.getAttribLocation(this.shaderProgram,"a_position"),this.a_texCoord_Loc=t.getAttribLocation(this.shaderProgram,"a_texCoord"),this.u_matrix_Loc=t.getUniformLocation(this.shaderProgram,"u_mvpMatrix"),this.s_texture0_Loc=t.getUniformLocation(this.shaderProgram,"s_texture0"),this.u_channelFlag=t.getUniformLocation(this.shaderProgram,"u_channelFlag"),this.u_baseColor_Loc=t.getUniformLocation(this.shaderProgram,"u_baseColor"),this.u_maskFlag_Loc=t.getUniformLocation(this.shaderProgram,"u_maskFlag"),this.a_position_Loc_Off=t.getAttribLocation(this.shaderProgramOff,"a_position"),this.a_texCoord_Loc_Off=t.getAttribLocation(this.shaderProgramOff,"a_texCoord"),this.u_matrix_Loc_Off=t.getUniformLocation(this.shaderProgramOff,"u_mvpMatrix"),this.u_clipMatrix_Loc_Off=t.getUniformLocation(this.shaderProgramOff,"u_ClipMatrix"),this.s_texture0_Loc_Off=t.getUniformLocation(this.shaderProgramOff,"s_texture0"),this.s_texture1_Loc_Off=t.getUniformLocation(this.shaderProgramOff,"s_texture1"),this.u_channelFlag_Loc_Off=t.getUniformLocation(this.shaderProgramOff,"u_channelFlag"),this.u_baseColor_Loc_Off=t.getUniformLocation(this.shaderProgramOff,"u_baseColor")},A.prototype.disposeShader=function(){var t=this.gl;this.shaderProgram&&(t.deleteProgram(this.shaderProgram),this.shaderProgram=null),this.shaderProgramOff&&(t.deleteProgram(this.shaderProgramOff),this.shaderProgramOff=null)},A.prototype.compileShader=function(t,e){var i=this.gl,t=i.createShader(t);return null==t?(it._$Ji("_$L0 to create shader"),null):(i.shaderSource(t,e),i.compileShader(t),i.getShaderParameter(t,i.COMPILE_STATUS)?t:(e=i.getShaderInfoLog(t),it._$Ji("_$L0 to compile shader : "+e),i.deleteShader(t),null))},A.prototype.loadShaders2=function(){var t,e=this.gl;return this.shaderProgram=e.createProgram(),!!this.shaderProgram&&(this.shaderProgramOff=e.createProgram(),!!this.shaderProgramOff&&(this.vertShader=this.compileShader(e.VERTEX_SHADER,"attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform mat4       u_mvpMatrix;void main(){    gl_Position = u_mvpMatrix * a_position;    v_ClipPos = u_mvpMatrix * a_position;    v_texCoord = a_texCoord;}"),this.vertShader?(this.vertShaderOff=this.compileShader(e.VERTEX_SHADER,"attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform mat4       u_mvpMatrix;uniform mat4       u_ClipMatrix;void main(){    gl_Position = u_mvpMatrix * a_position;    v_ClipPos = u_ClipMatrix * a_position;    v_texCoord = a_texCoord ;}"),this.vertShaderOff?(this.fragShader=this.compileShader(e.FRAGMENT_SHADER,"precision mediump float;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform sampler2D  s_texture0;uniform vec4       u_channelFlag;uniform vec4       u_baseColor;uniform bool       u_maskFlag;void main(){    vec4 smpColor;     if(u_maskFlag){        float isInside =             step(u_baseColor.x, v_ClipPos.x/v_ClipPos.w)          * step(u_baseColor.y, v_ClipPos.y/v_ClipPos.w)          * step(v_ClipPos.x/v_ClipPos.w, u_baseColor.z)          * step(v_ClipPos.y/v_ClipPos.w, u_baseColor.w);        smpColor = u_channelFlag * texture2D(s_texture0 , v_texCoord).a * isInside;    }else{        smpColor = texture2D(s_texture0 , v_texCoord) * u_baseColor;    }    gl_FragColor = smpColor;}"),this.fragShader?(this.fragShaderOff=this.compileShader(e.FRAGMENT_SHADER,"precision mediump float ;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform sampler2D  s_texture0;uniform sampler2D  s_texture1;uniform vec4       u_channelFlag;uniform vec4       u_baseColor ;void main(){    vec4 col_formask = texture2D(s_texture0, v_texCoord) * u_baseColor;    vec4 clipMask = texture2D(s_texture1, v_ClipPos.xy / v_ClipPos.w) * u_channelFlag;    float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;    col_formask = col_formask * maskVal;    gl_FragColor = col_formask;}"),this.fragShaderOff?(e.attachShader(this.shaderProgram,this.vertShader),e.attachShader(this.shaderProgram,this.fragShader),e.attachShader(this.shaderProgramOff,this.vertShaderOff),e.attachShader(this.shaderProgramOff,this.fragShaderOff),e.linkProgram(this.shaderProgram),e.linkProgram(this.shaderProgramOff),!!e.getProgramParameter(this.shaderProgram,e.LINK_STATUS)||(t=e.getProgramInfoLog(this.shaderProgram),it._$Ji("_$L0 to link program: "+t),this.vertShader&&(e.deleteShader(this.vertShader),this.vertShader=0),this.fragShader&&(e.deleteShader(this.fragShader),this.fragShader=0),this.shaderProgram&&(e.deleteProgram(this.shaderProgram),this.shaderProgram=0),this.vertShaderOff&&(e.deleteShader(this.vertShaderOff),this.vertShaderOff=0),this.fragShaderOff&&(e.deleteShader(this.fragShaderOff),this.fragShaderOff=0),this.shaderProgramOff&&(e.deleteProgram(this.shaderProgramOff),this.shaderProgramOff=0),!1)):(it._$Ji("OffFragment shader compile _$li!"),!1)):(it._$Ji("Fragment shader compile _$li!"),!1)):(it._$Ji("OffVertex shader compile _$li!"),!1)):(it._$Ji("Vertex shader compile _$li!"),!1)))},A.prototype.createFramebuffer=function(){var t=this.gl,e=ot.clippingMaskBufferSize,i=t.createFramebuffer(),r=(t.bindFramebuffer(t.FRAMEBUFFER,i),t.createRenderbuffer()),o=(t.bindRenderbuffer(t.RENDERBUFFER,r),t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,e,e),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,r),t.createTexture());return t.bindTexture(t.TEXTURE_2D,o),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,e,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,o,0),t.bindTexture(t.TEXTURE_2D,null),t.bindRenderbuffer(t.RENDERBUFFER,null),t.bindFramebuffer(t.FRAMEBUFFER,null),ot.fTexture[this.glno]=o,{framebuffer:i,renderbuffer:r,texture:ot.fTexture[this.glno]}},w.prototype._$fP=function(){var t,e,i,r=this._$ST();if(0==(128&r))return 255&r;if(0==(128&(t=this._$ST())))return(127&r)<<7|127&t;if(0==(128&(e=this._$ST())))return(127&r)<<14|(127&t)<<7|255&e;if(0==(128&(i=this._$ST())))return(127&r)<<21|(127&t)<<14|(127&e)<<7|255&i;throw new $t("_$L _$0P  _")},w.prototype.getFormatVersion=function(){return this._$S2},w.prototype._$gr=function(t){this._$S2=t},w.prototype._$3L=function(){return this._$fP()},w.prototype._$mP=function(){return this._$zT(),this._$F+=8,this._$T.getFloat64(this._$F-8)},w.prototype._$_T=function(){return this._$zT(),this._$F+=4,this._$T.getFloat32(this._$F-4)},w.prototype._$6L=function(){return this._$zT(),this._$F+=4,this._$T.getInt32(this._$F-4)},w.prototype._$ST=function(){return this._$zT(),this._$T.getInt8(this._$F++)},w.prototype._$9T=function(){return this._$zT(),this._$F+=2,this._$T.getInt16(this._$F-2)},w.prototype._$2T=function(){throw this._$zT(),this._$F+=8,new $t("_$L _$q read long")},w.prototype._$po=function(){return this._$zT(),0!=this._$T.getInt8(this._$F++)};var mt=!0;function I(){}function Tt(t){n||(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)}function D(){}w.prototype._$bT=function(){this._$zT();var t=this._$3L(),e=null;if(mt)try{for(var i=new ArrayBuffer(2*t),e=new Uint16Array(i),r=0;r<t;++r)e[r]=this._$T.getUint8(this._$F++);return String.fromCharCode.apply(null,e)}catch(t){mt=!1}try{var o=new Array;
1if(null==e)for(r=0;r<t;++r)o[r]=this._$T.getUint8(this._$F++);else for(r=0;r<t;++r)o[r]=e[r];return String.fromCharCode.apply(null,o)}catch(t){console.log("read utf8 / _$rT _$L0 !! : "+t)}},w.prototype._$cS=function(){this._$zT();for(var t=this._$3L(),e=new Int32Array(t),i=0;i<t;i++)e[i]=this._$T.getInt32(this._$F),this._$F+=4;return e},w.prototype._$Tb=function(){this._$zT();for(var t=this._$3L(),e=new Float32Array(t),i=0;i<t;i++)e[i]=this._$T.getFloat32(this._$F),this._$F+=4;return e},w.prototype._$5b=function(){this._$zT();for(var t=this._$3L(),e=new Float64Array(t),i=0;i<t;i++)e[i]=this._$T.getFloat64(this._$F),this._$F+=8;return e},w.prototype._$nP=function(){return this._$Jb(-1)},w.prototype._$Jb=function(t){if(this._$zT(),(t=t<0?this._$3L():t)==u._$7P){var e=this._$6L();if(0<=e&&e<this._$Ko.length)return this._$Ko[e];throw new $t("_$sL _$4i @_$m0")}e=this._$4b(t);return this._$Ko.push(e),e},w.prototype._$4b=function(t){if(0==t)return null;var e;if(50==t)return e=this._$bT(),q.getID(e);if(51==t)return e=this._$bT(),x.getID(e);if(134==t)return e=this._$bT(),s.getID(e);if(60==t)return e=this._$bT(),_.getID(e);if(48<=t)return null!=(e=u._$9o(t))?(e._$F0(this),e):null;switch(t){case 1:return this._$bT();case 10:return new function(){n||(this.color=null)}(this._$6L());case 11:return new k(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new k(this._$_T(),this._$_T(),this._$_T(),this._$_T());case 13:return new X(this._$mP(),this._$mP());case 14:return new X(this._$_T(),this._$_T());case 15:for(var i=this._$3L(),r=new Array(i),o=0;o<i;o++)r[o]=this._$nP();return r;case 17:return new p(this._$mP(),this._$mP(),this._$mP(),this._$mP(),this._$mP(),this._$mP());case 21:return new b(this._$6L(),this._$6L(),this._$6L(),this._$6L());case 22:return new pt(this._$6L(),this._$6L());case 23:throw new Error("_$L _$ro ");case 16:case 25:return this._$cS();case 26:return this._$5b();case 27:return this._$Tb();case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 18:case 19:case 20:case 24:case 28:throw new $t("_$6 _$q : _$nP() of 2-9 ,18,19,20,24,28 : "+t);default:throw new $t("_$6 _$q : _$nP() NO _$i : "+t)}},w.prototype._$8L=function(){return 0==this._$hL?this._$v0=this._$ST():8==this._$hL&&(this._$v0=this._$ST(),this._$hL=0),1==(this._$v0>>7-this._$hL++&1)},w.prototype._$zT=function(){0!=this._$hL&&(this._$hL=0)},I._$2S=Math.PI/180,I._$bS=Math.PI/180,I._$wS=180/Math.PI,I._$NS=180/Math.PI,I.PI_F=Math.PI,I._$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],I._$92=function(t,e){t=Math.atan2(t[1],t[0]),e=Math.atan2(e[1],e[0]);return I._$tS(t,e)},I._$tS=function(t,e){for(var i=t-e;i<-Math.PI;)i+=2*Math.PI;for(;i>Math.PI;)i-=2*Math.PI;return i},I._$9=function(t){return Math.sin(t)},I.fcos=function(t){return Math.cos(t)},Tt.prototype._$u2=function(){return this._$IS[0]},Tt.prototype._$yo=function(){return this._$AT&&!this._$IS[0]},Tt.prototype._$GT=function(){return this._$e0},D._$W2=0,D.SYSTEM_INFO=null,D.USER_AGENT=navigator.userAgent,D.isIPhone=function(){return D.SYSTEM_INFO||D.setup(),D.SYSTEM_INFO._isIPhone},D.isIOS=function(){return D.SYSTEM_INFO||D.setup(),D.SYSTEM_INFO._isIPhone||D.SYSTEM_INFO._isIPad},D.isAndroid=function(){return D.SYSTEM_INFO||D.setup(),D.SYSTEM_INFO._isAndroid},D.getOSVersion=function(){return D.SYSTEM_INFO||D.setup(),D.SYSTEM_INFO.version},D.getOS=function(){return D.SYSTEM_INFO||D.setup(),D.SYSTEM_INFO._isIPhone||D.SYSTEM_INFO._isIPad?"iOS":D.SYSTEM_INFO._isAndroid?"Android":"_$Q0 OS"},D.setup=function(){var t=D.USER_AGENT;function e(t,e){for(var i=t.substring(e).split(/[ _,;
1\.]/),r=0,o=0;o<=2&&!isNaN(i[o]);o++){var n=parseInt(i[o]);if(n<0||999<n){it._$li("err : "+n+" @UtHtml5.setup()"),r=0;break}r+=n*Math.pow(1e3,2-o)}return r}var i,r=D.SYSTEM_INFO={userAgent:t};0<=(i=t.indexOf("iPhone OS "))?(r.os="iPhone",r._isIPhone=!0,r.version=e(t,i+"iPhone OS ".length)):0<=(i=t.indexOf("iPad"))?(i=t.indexOf("CPU OS"))<0?it._$li(" err : "+t+" @UtHtml5.setup()"):(r.os="iPad",r._isIPad=!0,r.version=e(t,i+"CPU OS ".length)):0<=(i=t.indexOf("Android"))?(r.os="Android",r._isAndroid=!0,r.version=e(t,i+"Android ".length)):(r.os="-",r.version=-1)},ot.init(),n=!1,Pt.UtSystem=bt,Pt.UtDebug=it,Pt.LDTransform=gt,Pt.LDGL=rt,Pt.Live2D=ot,Pt.Live2DModelWebGL=E,Pt.Live2DModelJS=l,Pt.Live2DMotion=P,Pt.MotionQueueManager=ct,Pt.PhysicsHair=a,Pt.AMotion=t,Pt.PartsDataID=s,Pt.DrawDataID=q,Pt.BaseDataID=x,Pt.ParamID=_}.call(Pt,e(83))},78:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.L2DBaseModel=e.L2DExpressionMotion=e.L2DExpressionParam=e.L2DEyeBlink=e.EYE_STATE=e.L2DMatrix44=e.L2DModelMatrix=e.L2DMotionManager=e.L2DPhysics=e.L2DPartsParam=e.L2DPose=e.L2DViewMatrix=e.Live2DFramework=e.L2DTargetPoint=void 0;var S=i(77);function r(){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 h,this.expressionManager=new h,this.motions={},this.expressions={},this.isTexLoaded=!1}var n=0;function l(){S.AMotion.prototype.constructor.call(this),this.paramList=new Array}function $(){this.id="",this.type=-1,this.value=null}function o(){this.nextBlinkTime=null,this.stateStartTime=null,this.blinkIntervalMsec=null,this.eyeState=s.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"}r.prototype.getModelMatrix=function(){return this.modelMatrix},r.prototype.setAlpha=function(t){this.alpha=t=(t=.999<t?1:t)<.001?0:t},r.prototype.getAlpha=function(){return this.alpha},r.prototype.isInitialized=function(){return this.initialized},r.prototype.setInitialized=function(t){this.initialized=t},r.prototype.isUpdating=function(){return this.updating},r.prototype.setUpdating=function(t){this.updating=t},r.prototype.getLive2DModel=function(){return this.live2DModel},r.prototype.setLipSync=function(t){this.lipSync=t},r.prototype.setLipSyncValue=function(t){this.lipSyncValue=t},r.prototype.setAccel=function(t,e,i){this.accelX=t,this.accelY=e,this.accelZ=i},r.prototype.setDrag=function(t,e){this.dragX=t,this.dragY=e},r.prototype.getMainMotionManager=function(){return this.mainMotionManager},r.prototype.getExpressionManager=function(){return this.expressionManager},r.prototype.loadModelData=function(t,e){var i=v.getPlatformManager(),r=(this.debugMode&&i.log("Load model : "+t),this);i.loadLive2DModel(t,function(t){r.live2DModel=t,r.live2DModel.saveParam(),0==S.Live2D.getError()?(r.modelMatrix=new a(r.live2DModel.getCanvasWidth(),r.live2DModel.getCanvasHeight()),r.modelMatrix.setWidth(2),r.modelMatrix.setCenterPosition(0,0),e(r.live2DModel)):console.error("Error : Failed to loadModelData().")})},r.prototype.loadTexture=function(t,e,i){n++;var r=v.getPlatformManager(),o=(this.debugMode&&r.log("Load Texture : "+e),this);r.loadTexture(this.live2DModel,t,e,function(){0==--n&&(o.isTexLoaded=!0),"function"==typeof i&&i()})},r.prototype.loadMotion=function(e,t,i){var r,o=v.getPlatformManager(),n=(this.debugMode&&o.log("Load Motion : "+t),this);o.loadBytes(t,function(t){r=S.Live2DMotion.loadMotion(t),null!=e&&(n.motions[e]=r),i(r)})},r.prototype.loadExpression=function(e,t,i){var r=v.getPlatformManager(),o=(this.debugMode&&r.log("Load Expression : "+t),this);r.loadBytes(t,function(t){null!=e&&(o.expressions[e]=l.loadJson(t)),"function"==typeof i&&i()})},r.prototype.loadPose=function(t,e){var i=v.getPlatformManager(),r=(this.debugMode&&i.log("Load Pose : "+t),this);try{i.loadBytes(t,function(t){r.pose=f.load(t),"function"==typeof e&&e()})}catch(t){console.warn(t)}},r.prototype.loadPhysics=function(t){var e=v.getPlatformManager(),i=(this.debugMode&&e.log("Load Physics : "+t),this);try{e.loadBytes(t,function(t){i.physics=L.load(t)})}catch(t){console.warn(t)}}
1,r.prototype.hitTestSimple=function(t,e,i){if(null===this.live2DModel)return!1;t=this.live2DModel.getDrawDataIndex(t);if(t<0)return!1;for(var r=this.live2DModel.getTransformedPoints(t),o=this.live2DModel.getCanvasWidth(),n=0,s=this.live2DModel.getCanvasHeight(),_=0,a=0;a<r.length;a+=2){var h=r[a],l=r[a+1];h<o&&(o=h),n<h&&(n=h),l<s&&(s=l),_<l&&(_=l)}t=this.modelMatrix.invertTransformX(e),e=this.modelMatrix.invertTransformY(i);return o<=t&&t<=n&&s<=e&&e<=_},l.prototype=new S.AMotion,l.EXPRESSION_DEFAULT="DEFAULT",l.TYPE_SET=0,l.TYPE_ADD=1,l.TYPE_MULT=2,l.loadJson=function(t){var e=new l,t=v.getPlatformManager().jsonParseFromBytes(t);if(e.setFadeIn(0<parseInt(t.fade_in)?parseInt(t.fade_in):1e3),e.setFadeOut(0<parseInt(t.fade_out)?parseInt(t.fade_out):1e3),null!=t.params){var i=t.params,r=i.length;e.paramList=[];for(var o=0;o<r;o++){var n,s=i[o],_=s.id.toString(),a=parseFloat(s.val),h=null!=s.calc?s.calc.toString():"add",s=((h="add"===h?l.TYPE_ADD:"mult"===h?l.TYPE_MULT:"set"===h?l.TYPE_SET:l.TYPE_ADD)==l.TYPE_ADD?a-=n=null==s.def?0:parseFloat(s.def):h==l.TYPE_MULT&&(a/=n=0==(n=null==s.def?1:parseFloat(s.def))?1:n),new $);s.id=_,s.type=h,s.value=a,e.paramList.push(s)}}return e},l.prototype.updateParamExe=function(t,e,i,r){for(var o=this.paramList.length-1;0<=o;--o){var n=this.paramList[o];n.type==l.TYPE_ADD?t.addToParamFloat(n.id,n.value,i):n.type==l.TYPE_MULT?t.multParamFloat(n.id,n.value,i):n.type==l.TYPE_SET&&t.setParamFloat(n.id,n.value,i)}},o.prototype.calcNextBlink=function(){return S.UtSystem.getUserTimeMSec()+Math.random()*(2*this.blinkIntervalMsec-1)},o.prototype.setInterval=function(t){this.blinkIntervalMsec=t},o.prototype.setEyeMotion=function(t,e,i){this.closingMotionMsec=t,this.closedMotionMsec=e,this.openingMotionMsec=i},o.prototype.updateParam=function(t){var e,i=S.UtSystem.getUserTimeMSec(),r=0;switch(this.eyeState){case s.STATE_CLOSING:1<=(r=(i-this.stateStartTime)/this.closingMotionMsec)&&(r=1,this.eyeState=s.STATE_CLOSED,this.stateStartTime=i),e=1-r;break;case s.STATE_CLOSED:1<=(r=(i-this.stateStartTime)/this.closedMotionMsec)&&(this.eyeState=s.STATE_OPENING,this.stateStartTime=i),e=0;break;case s.STATE_OPENING:1<=(r=(i-this.stateStartTime)/this.openingMotionMsec)&&(r=1,this.eyeState=s.STATE_INTERVAL,this.nextBlinkTime=this.calcNextBlink()),e=r;break;case s.STATE_INTERVAL:this.nextBlinkTime<i&&(this.eyeState=s.STATE_CLOSING,this.stateStartTime=i),e=1;break;default:s.STATE_FIRST;this.eyeState=s.STATE_INTERVAL,this.nextBlinkTime=this.calcNextBlink(),e=1}this.closeIfZero||(e=-e),t.setParamFloat(this.eyeID_L,e),t.setParamFloat(this.eyeID_R,e)};var s=function(){};function _(){this.tr=new Float32Array(16),this.identity()}function a(t,e){_.prototype.constructor.call(this),this.width=t,this.height=e}function h(){S.MotionQueueManager.prototype.constructor.call(this),this.currentPriority=null,this.reservePriority=null,this.super=S.MotionQueueManager.prototype}function L(){this.physicsList=new Array,this.startTimeMSec=S.UtSystem.getUserTimeMSec()}function f(){this.lastTime=0,this.lastModel=null,this.partsGroups=new Array}function g(t){this.paramIndex=-1,this.partsIndex=-1,this.link=null,this.id=t}function u(){this.EPSILON=.01,this.faceTargetX=0,this.faceTargetY=0,this.faceX=0,this.faceY=0,this.faceVX=0,this.faceVY=0,this.lastTimeSec=0}function p(){_.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}function v(){}s.STATE_FIRST="STATE_FIRST",s.STATE_INTERVAL="STATE_INTERVAL",s.STATE_CLOSING="STATE_CLOSING",s.STATE_CLOSED="STATE_CLOSED",s.STATE_OPENING="STATE_OPENING",_.mul=function(t,e,i){for(var r,o,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s<4;s++)for(r=0;r<4;r++)for(o=0;o<4;o++)n[s+4*r]+=t[s+4*o]*e[o+4*r];for(s=0;s<16;s++)i[s]=n[s]},_.prototype.identity=function(){for(var t=0;t<16;t++)this.tr[t]=t%5==0?1:0},_.prototype.getArray=function(){return this.tr},_.prototype.getCopyMatrix=function(){return new Float32Array(this.tr)}
1,_.prototype.setMatrix=function(t){if(null!=this.tr&&this.tr.length==this.tr.length)for(var e=0;e<16;e++)this.tr[e]=t[e]},_.prototype.getScaleX=function(){return this.tr[0]},_.prototype.getScaleY=function(){return this.tr[5]},_.prototype.transformX=function(t){return this.tr[0]*t+this.tr[12]},_.prototype.transformY=function(t){return this.tr[5]*t+this.tr[13]},_.prototype.invertTransformX=function(t){return(t-this.tr[12])/this.tr[0]},_.prototype.invertTransformY=function(t){return(t-this.tr[13])/this.tr[5]},_.prototype.multTranslate=function(t,e){_.mul([1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1],this.tr,this.tr)},_.prototype.translate=function(t,e){this.tr[12]=t,this.tr[13]=e},_.prototype.translateX=function(t){this.tr[12]=t},_.prototype.translateY=function(t){this.tr[13]=t},_.prototype.multScale=function(t,e){_.mul([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1],this.tr,this.tr)},_.prototype.scale=function(t,e){this.tr[0]=t,this.tr[5]=e},(a.prototype=new _).setPosition=function(t,e){this.translate(t,e)},a.prototype.setCenterPosition=function(t,e){var i=this.width*this.getScaleX(),r=this.height*this.getScaleY();this.translate(t-i/2,e-r/2)},a.prototype.top=function(t){this.setY(t)},a.prototype.bottom=function(t){var e=this.height*this.getScaleY();this.translateY(t-e)},a.prototype.left=function(t){this.setX(t)},a.prototype.right=function(t){var e=this.width*this.getScaleX();this.translateX(t-e)},a.prototype.centerX=function(t){var e=this.width*this.getScaleX();this.translateX(t-e/2)},a.prototype.centerY=function(t){var e=this.height*this.getScaleY();this.translateY(t-e/2)},a.prototype.setX=function(t){this.translateX(t)},a.prototype.setY=function(t){this.translateY(t)},a.prototype.setHeight=function(t){t/=this.height;this.scale(t,-t)},a.prototype.setWidth=function(t){t/=this.width;this.scale(t,-t)},(h.prototype=new S.MotionQueueManager).getCurrentPriority=function(){return this.currentPriority},h.prototype.getReservePriority=function(){return this.reservePriority},h.prototype.reserveMotion=function(t){return!(this.reservePriority>=t||this.currentPriority>=t||(this.reservePriority=t,0))},h.prototype.setReservePriority=function(t){this.reservePriority=t},h.prototype.updateParam=function(t){t=S.MotionQueueManager.prototype.updateParam.call(this,t);return this.isFinished()&&(this.currentPriority=0),t},h.prototype.startMotionPrio=function(t,e){return e==this.reservePriority&&(this.reservePriority=0),this.currentPriority=e,this.startMotion(t,!1)},L.load=function(t){for(var e=new L,i=v.getPlatformManager().jsonParseFromBytes(t).physics_hair,r=i.length,o=0;o<r;o++){var n=i[o],s=new S.PhysicsHair,_=n.setup,a=parseFloat(_.length),h=parseFloat(_.regist),_=parseFloat(_.mass);s.setup(a,h,_);for(var l=n.src,$=l.length,u=0;u<$;u++){var p=l[u],c=p.id,f=S.PhysicsHair.Src.SRC_TO_X,g=("x"===(T=p.ptype)?f=S.PhysicsHair.Src.SRC_TO_X:"y"===T?f=S.PhysicsHair.Src.SRC_TO_Y:"angle"===T?f=S.PhysicsHair.Src.SRC_TO_G_ANGLE:S.UtDebug.error("live2d","Invalid parameter:PhysicsHair.Src"),parseFloat(p.scale)),d=parseFloat(p.weight);s.addSrcParam(f,c,g,d)}for(var y=n.targets,m=y.length,u=0;u<m;u++){var T,P=y[u],c=P.id,f=S.PhysicsHair.Target.TARGET_FROM_ANGLE;"angle"===(T=P.ptype)?f=S.PhysicsHair.Target.TARGET_FROM_ANGLE:"angle_v"===T?f=S.PhysicsHair.Target.TARGET_FROM_ANGLE_V:S.UtDebug.error("live2d","Invalid parameter:PhysicsHair.Target"),g=parseFloat(P.scale),d=parseFloat(P.weight),s.addTargetParam(f,c,g,d)}e.physicsList.push(s)}return e},L.prototype.updateParam=function(t){for(var e=S.UtSystem.getUserTimeMSec()-this.startTimeMSec,i=0;i<this.physicsList.length;i++)this.physicsList[i].update(t,e)},f.load=function(t){for(var e=new f,i=v.getPlatformManager().jsonParseFromBytes(t).parts_visible,r=i.length,o=0;o<r;o++){for(var n=i[o].group,s=n.length,_=new Array,a=0;a<s;a++){var h=n[a],l=new g(h.id);if(_[a]=l,null!=h.link){var $=h.link,u=$.length;l.link=new Array;for(var p=0;p<u;p++){var c=new g($[p]);l.link.push(c)}}}e.partsGroups.push(_)}return e},f.prototype.updateParam=function(t){if(null!=t){t!=this.lastModel&&this.initParam(t),this.lastModel=t;var e=S.UtSystem.getUserTimeMSec(),i=0==this.lastTime?0:(e-this.lastTime)/1e3;this.lastTime=e,i<0&&(i=0);for(var r=0;r<this.partsGroups.length;r++)this.normalizePartsOpacityGroup(t,this.partsGroups[r],i),this.copyOpacityOtherParts(t,this.partsGroups[r])}},f.prototype.initParam=function(t){if(null!=t)for(var e=0;e<this.partsGroups.length;e++)for(var i=this.partsGroups[e],r=0;r<i.length;r++){i[r].initIndex(t);var o=i[r].partsIndex,n=i[r].paramIndex;if(!(o<0)){var s=0!=t.getParamFloat(n);if(t.setPartsOpacity(o,s?1:0),t.setParamFloat(n,s?1:0),null!=i[r].link)for(var _=0;_<i[r].link.length;_++)i[r].link[_].initIndex(t)}}}
1,f.prototype.normalizePartsOpacityGroup=function(t,e,i){for(var r,o,n=-1,s=1,_=0;_<e.length;_++){var a=e[_].partsIndex,h=e[_].paramIndex;if(!(a<0)&&0!=t.getParamFloat(h)){if(0<=n)break;n=_,s=t.getPartsOpacity(a),1<(s+=i/.5)&&(s=1)}}for(n<0&&(n=0,s=1),_=0;_<e.length;_++)(a=e[_].partsIndex)<0||(n==_?t.setPartsOpacity(a,s):((r=.15<(1-(r=s<.5?-.5*s/.5+1:.5*(1-s)/.5))*(1-s)?1-.15/(1-s):r)<(o=t.getPartsOpacity(a))&&(o=r),t.setPartsOpacity(a,o)))},f.prototype.copyOpacityOtherParts=function(t,e){for(var i=0;i<e.length;i++){var r=e[i];if(null!=r.link&&!(r.partsIndex<0))for(var o=t.getPartsOpacity(r.partsIndex),n=0;n<r.link.length;n++){var s=r.link[n];s.partsIndex<0||t.setPartsOpacity(s.partsIndex,o)}}},g.prototype.initIndex=function(t){this.paramIndex=t.getParamIndex("VISIBLE:"+this.id),this.partsIndex=t.getPartsDataIndex(S.PartsDataID.getID(this.id)),t.setParamFloat(this.paramIndex,1)},u.FRAME_RATE=60,u.prototype.setPoint=function(t,e){this.faceTargetX=t,this.faceTargetY=e},u.prototype.getX=function(){return this.faceX},u.prototype.getY=function(){return this.faceY},u.prototype.update=function(){var t,e,i,r,o=40/7.5/u.FRAME_RATE;0!=this.lastTimeSec?(e=((t=S.UtSystem.getUserTimeMSec())-this.lastTimeSec)*u.FRAME_RATE/1e3,this.lastTimeSec=t,t=e*o/(.15*u.FRAME_RATE),e=this.faceTargetX-this.faceX,i=this.faceTargetY-this.faceY,Math.abs(e)<=this.EPSILON&&Math.abs(i)<=this.EPSILON||(r=o*e/(e=Math.sqrt(e*e+i*i))-this.faceVX,o=o*i/e-this.faceVY,((i=Math.sqrt(r*r+o*o))<-t||t<i)&&(r*=t/i,o*=t/i,i=t),this.faceVX+=r,this.faceVY+=o,(i=.5*(Math.sqrt(t*t+16*t*e-8*t*e)-t))<(r=Math.sqrt(this.faceVX*this.faceVX+this.faceVY*this.faceVY))&&(this.faceVX*=i/r,this.faceVY*=i/r),this.faceX+=this.faceVX,this.faceY+=this.faceVY)):this.lastTimeSec=S.UtSystem.getUserTimeMSec()},(p.prototype=new _).adjustTranslate=function(t,e){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.screenRight&&(t=this.screenRight-this.tr[0]*this.maxRight-this.tr[12]),this.tr[5]*this.maxTop+(this.tr[13]+e)<this.screenTop&&(e=this.screenTop-this.tr[5]*this.maxTop-this.tr[13]),this.tr[5]*this.maxBottom+(this.tr[13]+e)>this.screenBottom&&(e=this.screenBottom-this.tr[5]*this.maxBottom-this.tr[13]),_.mul([1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1],this.tr,this.tr)},p.prototype.adjustScale=function(t,e,i){this.tr[0];var r=[1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1],i=[i,0,0,0,0,i,0,0,0,0,1,0,0,0,0,1];_.mul([1,0,0,0,0,1,0,0,0,0,1,0,-t,-e,0,1],this.tr,this.tr),_.mul(i,this.tr,this.tr),_.mul(r,this.tr,this.tr)},p.prototype.setScreenRect=function(t,e,i,r){this.screenLeft=t,this.screenRight=e,this.screenTop=r,this.screenBottom=i},p.prototype.setMaxScreenRect=function(t,e,i,r){this.maxLeft=t,this.maxRight=e,this.maxTop=r,this.maxBottom=i},p.prototype.getScreenLeft=function(){return this.screenLeft},p.prototype.getScreenRight=function(){return this.screenRight},p.prototype.getScreenBottom=function(){return this.screenBottom},p.prototype.getScreenTop=function(){return this.screenTop},p.prototype.getMaxLeft=function(){return this.maxLeft},p.prototype.getMaxRight=function(){return this.maxRight},p.prototype.getMaxBottom=function(){return this.maxBottom},p.prototype.getMaxTop=function(){return this.maxTop},v.platformManager=null,v.getPlatformManager=function(){return v.platformManager},v.setPlatformManager=function(t){v.platformManager=t},e.L2DTargetPoint=u,e.Live2DFramework=v,e.L2DViewMatrix=p,e.L2DPose=f,e.L2DPartsParam=g,e.
1L2DPhysics=L,e.L2DMotionManager=h,e.L2DModelMatrix=a,e.L2DMatrix44=_,e.EYE_STATE=s,e.L2DEyeBlink=o,e.L2DExpressionParam=$,e.L2DExpressionMotion=l,e.L2DBaseModel=r},79:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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"}},80:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.currCanvas=n.currWebGL=n.createElement=void 0;var s=e(38),_=e(37),a=e(82),h=void 0,l=void 0;n.createElement=function(){var t=document.getElementById(s.config.name.div),t=(null!==t&&document.body.removeChild(t),document.createElement("div")),e=(t.id=s.config.name.div,t.className="live2d-widget-container",t.style.setProperty("position","fixed"),t.style.setProperty(s.config.display.position,s.config.display.hOffset+"px"),t.style.setProperty("bottom",s.config.display.vOffset+"px"),t.style.setProperty("width",s.config.display.width+"px"),t.style.setProperty("height",s.config.display.height+"px"),t.style.setProperty("z-index",99999),t.style.setProperty("opacity",s.config.react.opacity),t.style.setProperty("pointer-events","none"),document.body.appendChild(t),_.L2Dwidget.emit("create-container",t),s.config.dialog.enable&&(0,a.createDialogElement)(t),document.createElement("canvas"));e.setAttribute("id",s.config.name.canvas),e.setAttribute("width",s.config.display.width*s.config.display.superSample),e.setAttribute("height",s.config.display.height*s.config.display.superSample),e.style.setProperty("position","absolute"),e.style.setProperty("left","0px"),e.style.setProperty("top","0px"),e.style.setProperty("width",s.config.display.width+"px"),e.style.setProperty("height",s.config.display.height+"px"),s.config.dev.border&&e.style.setProperty("border","dashed 1px #CCC"),t.appendChild(e),n.currCanvas=l=document.getElementById(s.config.name.canvas),_.L2Dwidget.emit("create-canvas",e);for(var i=["webgl2","webgl","experimental-webgl2","experimental-webgl","webkit-3d","moz-webgl"],r=0;r<i.length;r++)try{var o=l.getContext(i[r],{alpha:!0,antialias:!0,premultipliedAlpha:!0,failIfMajorPerformanceCaveat:!1});o&&(n.currWebGL=h=o)}catch(i){}h||(console.error("Live2D widgets: Failed to create WebGL context."),window.WebGLRenderingContext||console.error("Your browser may not support WebGL, check https://get.webgl.org/ for futher information."))},n.currWebGL=h,n.currCanvas=l},81:function(t,e,i){"use strict";function r(){}Object.defineProperty(e,"__esModule",{value:!0}),(e.MatrixStack=r).matrixStack=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r.depth=0,r.currentMatrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r.tmp=new Array(16),r.reset=function(){this.depth=0},r.loadIdentity=function(){for(var t=0;t<16;t++)this.currentMatrix[t]=t%5==0?1:0},r.push=function(){var t=16*(this.depth+1);this.matrixStack.length<16+t&&(this.matrixStack.length=16+t);for(var e=0;e<16;e++)this.matrixStack[t+e]=this.currentMatrix[e];this.depth++},r.pop=function(){this.depth--,this.depth<0&&(myError("Invalid matrix stack."),this.depth=0);for(var t=16*this.depth,e=0;e<16;e++)this.currentMatrix[e]=this.matrixStack[t+e]},r.getMatrix=function(){return this.currentMatrix},r.multMatrix=function(t){for(var e,i,r=0;r<16;r++)this.tmp[r]=0;for(r=0;r<4;r++)for(e=0;e<4;e++)for(i=0;i<4;i++)this.tmp[r+4*e]+=this.currentMatrix[r+4*i]*t[i+4*e];for(r=0;r<16;r++)this.currentMatrix[r]=this.tmp[r]}},82:function(t,e,i){"use strict";var r=i(38),o=i(37),n=(document.head.innerHTML+="\n<style>\n  .live2d-widget-dialog-container {\n    width: 300px;\n    height: 120px;\n    position: absolute;\n    bottom: 65%;\n    right: 0px;\n    transform-origin: right;\n    padding: 12px;\n    box-sizing: border-box;\n    -webkit-font-smoothing: antialiased;\n  }\n  .live2d-widget-dialog {\n    width: 100%;\n    height: 100%;\n    color: #917159;\n    font-size: 16px;\n    padding: 12px;\n    border: 2px solid rgb(236, 203, 180);\n    background: rgb(252, 248, 244);\n    box-sizing: border-box;\n    border-radius: 10px;\n    transform: rotate(-2deg);\n    opacity: 0;\n    transition: 200ms opacity;\n    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;\n    animation: live2d-widget-dialog-tingle 4s ease-in-out 0s infinite alternate;\n  }\n  @keyframes live2d-widget-dialog-tingle {\n    0% { transform: translate(-1px, 1.5px) rotate(-2deg); }\n    100% { transform: translate(1px, -1.5px) rotate(2deg); }\n  }\n</style>\n",void 0),s=void 0,_=void 0;function a(){s.style.opacity=1}function h(){s.style.opacity=0}function l(t){a(),s.innerText=t,clearTimeout(_),_=setTimeout(function(){h()},5e3)}function $(){var t=new XMLHttpRequest;
vendor: 4,332 bytes, line 1
1t.open("get","https://v1.hitokoto.cn"),t.setRequestHeader("Cache-Control","no-cache"),t.onreadystatechange=function(){4===t.readyState&&(l(JSON.parse(t.responseText).hitokoto),setTimeout($,1e4))},t.send()}t.exports={createDialogElement:function(t){(n=document.createElement("div")).className="live2d-widget-dialog-container",n.style.transform="scale("+r.config.display.width/250+")",(s=document.createElement("div")).className="live2d-widget-dialog",n.appendChild(s),t.appendChild(n),o.L2Dwidget.emit("create-dialog",n),r.config.dialog.hitokoto&&$()},displayDialog:a,hiddenDialog:h,alertText:l,showHitokotoLoop:$}},83:function(t,e){t.exports={import:function(){throw new Error("System.import cannot be used indirectly")}}},84:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cManager=void 0;var r=i(78),o=i(85),n=i(86),s=i(79);function _(t){this.eventemitter=t,this.models=[],this.count=-1,this.reloadFlg=!1,r.Live2DFramework.setPlatformManager(new o.PlatformManager)}_.prototype.createModel=function(){var t=new n.cModel;return this.models.push(t),t},_.prototype.changeModel=function(t,e){this.reloadFlg&&(this.reloadFlg=!1,this.releaseModel(0,t),this.createModel(),this.models[0].load(t,e))},_.prototype.getModel=function(t){return t>=this.models.length?null:this.models[t]},_.prototype.releaseModel=function(t,e){this.models.length<=t||(this.models[t].release(e),delete this.models[t],this.models.splice(t,1))},_.prototype.numModels=function(){return this.models.length},_.prototype.setDrag=function(t,e){for(var i=0;i<this.models.length;i++)this.models[i].setDrag(t,e)},_.prototype.tapEvent=function(t,e){s.cDefine.DEBUG_LOG&&console.log("tapEvent view x:"+t+" y:"+e);for(var i=0;i<this.models.length;i++)this.models[i].hitTest(s.cDefine.HIT_AREA_HEAD,t,e)?(this.eventemitter.emit("tapface"),s.cDefine.DEBUG_LOG&&console.log("Tap face."),this.models[i].setRandomExpression()):this.models[i].hitTest(s.cDefine.HIT_AREA_BODY,t,e)&&(this.eventemitter.emit("tapbody"),s.cDefine.DEBUG_LOG&&console.log("Tap body. models["+i+"]"),this.models[i].startRandomMotion(s.cDefine.MOTION_GROUP_TAP_BODY,s.cDefine.PRIORITY_NORMAL));return!0},e.cManager=_},85:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlatformManager=o;var s=i(80),r=i(77);function o(){}o.prototype.loadBytes=function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="arraybuffer",i.onload=function(){200===i.status?e(i.response):console.error("Failed to load ("+i.status+") : "+t)},i.send(null)},o.prototype.loadString=function(t){this.loadBytes(t,function(t){return t})},o.prototype.loadLive2DModel=function(t,e){var i;this.loadBytes(t,function(t){i=r.Live2DModelWebGL.loadModel(t),e(i)})},o.prototype.loadTexture=function(i,r,t,o){var n=new Image;n.crossOrigin="Anonymous",n.src=t,n.onload=onload,n.onerror=onerror,n.onload=function(){var t=s.currWebGL,e=t.createTexture();if(!e)return console.error("Failed to generate gl texture name."),-1;i.isPremultipliedAlpha()||t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,1),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,e),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_NEAREST),t.generateMipmap(t.TEXTURE_2D),i.setTexture(r,e),"function"==typeof o&&o()},n.onerror=function(){console.error("Failed to load image : "+t)}},o.prototype.jsonParseFromBytes=function(t){var e=new Uint8Array(t,0,3),e=239==e[0]&&187==e[1]&&191==e[2]?String.fromCharCode.apply(null,new Uint8Array(t,3)):String.fromCharCode.apply(null,new Uint8Array(t));return JSON.parse(e)},o.prototype.log=function(t){console.log(t)}},86:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cModel=a;var s=i(78),r=i(87),o=i(81),_=i(79),n=i(77);function a(){s.L2DBaseModel.prototype.constructor.call(this),this.modelHomeDir="",this.modelSetting=null,this.tmpMatrix=[]}(a.prototype=new s.L2DBaseModel).load=function(t,e,o){this.setUpdating(!0),this.setInitialized(!1),this.modelHomeDir=e.substring(0,e.lastIndexOf("/")+1),this.modelSetting=new r.ModelSettingJson;var n=this;this.modelSetting.loadModelSetting(e,function(){var t=n.modelHomeDir+n.modelSetting.getModelFile();
1n.loadModelData(t,function(t){for(var e=0;e<n.modelSetting.getTextureNum();e++){var i=/^https?:\/\/|^\/\//i.test(n.modelSetting.getTextureFile(e))?n.modelSetting.getTextureFile(e):n.modelHomeDir+n.modelSetting.getTextureFile(e);n.loadTexture(e,i,function(){if(n.isTexLoaded){if(0<n.modelSetting.getExpressionNum()){n.expressions={};for(var t=0;t<n.modelSetting.getExpressionNum();t++){var e=n.modelSetting.getExpressionName(t),i=n.modelHomeDir+n.modelSetting.getExpressionFile(t);n.loadExpression(e,i)}}else n.expressionManager=null,n.expressions={};var r;for(null==n.eyeBlink&&(n.eyeBlink=new s.L2DEyeBlink),null!=n.modelSetting.getPhysicsFile()?n.loadPhysics(n.modelHomeDir+n.modelSetting.getPhysicsFile()):n.physics=null,null!=n.modelSetting.getPoseFile()?n.loadPose(n.modelHomeDir+n.modelSetting.getPoseFile(),function(){n.pose.updateParam(n.live2DModel)}):n.pose=null,null!=n.modelSetting.getLayout()&&(null!=(r=n.modelSetting.getLayout()).width&&n.modelMatrix.setWidth(r.width),null!=r.height&&n.modelMatrix.setHeight(r.height),null!=r.x&&n.modelMatrix.setX(r.x),null!=r.y&&n.modelMatrix.setY(r.y),null!=r.center_x&&n.modelMatrix.centerX(r.center_x),null!=r.center_y&&n.modelMatrix.centerY(r.center_y),null!=r.top&&n.modelMatrix.top(r.top),null!=r.bottom&&n.modelMatrix.bottom(r.bottom),null!=r.left&&n.modelMatrix.left(r.left),null!=r.right&&n.modelMatrix.right(r.right)),t=0;t<n.modelSetting.getInitParamNum();t++)n.live2DModel.setParamFloat(n.modelSetting.getInitParamID(t),n.modelSetting.getInitParamValue(t));for(t=0;t<n.modelSetting.getInitPartsVisibleNum();t++)n.live2DModel.setPartsOpacity(n.modelSetting.getInitPartsVisibleID(t),n.modelSetting.getInitPartsVisibleValue(t));n.live2DModel.saveParam(),n.preloadMotionGroup(_.cDefine.MOTION_GROUP_IDLE),n.mainMotionManager.stopAllMotions(),n.setUpdating(!1),n.setInitialized(!0),"function"==typeof o&&o()}})}})})},a.prototype.release=function(t){var e=s.Live2DFramework.getPlatformManager();t.deleteTexture(e.texture)},a.prototype.preloadMotionGroup=function(e){for(var i=this,r=0;r<this.modelSetting.getMotionNum(e);r++){var t=this.modelSetting.getMotionFile(e,r);this.loadMotion(t,this.modelHomeDir+t,function(t){t.setFadeIn(i.modelSetting.getMotionFadeIn(e,r)),t.setFadeOut(i.modelSetting.getMotionFadeOut(e,r))})}},a.prototype.update=function(){var t;null!=this.live2DModel?(t=(n.UtSystem.getUserTimeMSec()-this.startTimeMSec)/1e3*2*Math.PI,this.mainMotionManager.isFinished()&&this.startRandomMotion(_.cDefine.MOTION_GROUP_IDLE,_.cDefine.PRIORITY_IDLE),this.live2DModel.loadParam(),this.mainMotionManager.updateParam(this.live2DModel)||null!=this.eyeBlink&&this.eyeBlink.updateParam(this.live2DModel),this.live2DModel.saveParam(),null==this.expressionManager||null==this.expressions||this.expressionManager.isFinished()||this.expressionManager.updateParam(this.live2DModel),this.live2DModel.addToParamFloat("PARAM_ANGLE_X",30*this.dragX,1),this.live2DModel.addToParamFloat("PARAM_ANGLE_Y",30*this.dragY,1),this.live2DModel.addToParamFloat("PARAM_ANGLE_Z",this.dragX*this.dragY*-30,1),this.live2DModel.addToParamFloat("PARAM_BODY_ANGLE_X",10*this.dragX,1),this.live2DModel.addToParamFloat("PARAM_EYE_BALL_X",this.dragX,1),this.live2DModel.addToParamFloat("PARAM_EYE_BALL_Y",this.dragY,1),this.live2DModel.addToParamFloat("PARAM_ANGLE_X",Number(15*Math.sin(t/6.5345)),.5),this.live2DModel.addToParamFloat("PARAM_ANGLE_Y",Number(8*Math.sin(t/3.5345)),.5),this.live2DModel.addToParamFloat("PARAM_ANGLE_Z",Number(10*Math.sin(t/5.5345)),.5),this.live2DModel.addToParamFloat("PARAM_BODY_ANGLE_X",Number(4*Math.sin(t/15.5345)),.5),this.live2DModel.setParamFloat("PARAM_BREATH",Number(.5+.5*Math.sin(t/3.2345)),1),null!=this.physics&&this.physics.updateParam(this.live2DModel),null==this.lipSync&&this.live2DModel.setParamFloat("PARAM_MOUTH_OPEN_Y",this.lipSyncValue),null!=this.pose&&this.pose.updateParam(this.live2DModel),this.live2DModel.update()):_.cDefine.DEBUG_LOG&&console.error("Failed to update.")},a.prototype.setRandomExpression=function(){var t,e=[];for(t in this.expressions)e.push(t);var i=parseInt(Math.random()*e.length);this.setExpression(e[i])},a.prototype.startRandomMotion=function(t,e){var i=this.modelSetting.getMotionNum(t),i=parseInt(Math.random()*i);this.startMotion(t,i,e)},a.prototype.startMotion=function(e,i,r){var t=this.modelSetting.getMotionFile(e,i);if(null!=t&&""!=t){if(r==_.cDefine.PRIORITY_FORCE)this.mainMotionManager.setReservePriority(r);else if(!this.mainMotionManager.reserveMotion(r))return void(_.cDefine.DEBUG_LOG&&console.log("Motion is running."));var o,n=this;null==this.motions[e]?this.loadMotion(e,this.modelHomeDir+t,function(t){o=t,n.setFadeInFadeOut(e,i,r,o)}):(o=this.motions[e],n.setFadeInFadeOut(e,i,r,o))}else _.cDefine.DEBUG_LOG&&console.error("Failed to motion.")}
1,a.prototype.setFadeInFadeOut=function(t,e,i,r){var o=this.modelSetting.getMotionFile(t,e);r.setFadeIn(this.modelSetting.getMotionFadeIn(t,e)),r.setFadeOut(this.modelSetting.getMotionFadeOut(t,e)),_.cDefine.DEBUG_LOG&&console.log("Start motion : "+o),null!=this.modelSetting.getMotionSound(t,e)&&(o=this.modelSetting.getMotionSound(t,e),(t=document.createElement("audio")).src=this.modelHomeDir+o,_.cDefine.DEBUG_LOG&&console.log("Start sound : "+o),t.play()),this.mainMotionManager.startMotionPrio(r,i)},a.prototype.setExpression=function(t){var e=this.expressions[t];_.cDefine.DEBUG_LOG&&console.log("Expression : "+t),this.expressionManager.startMotion(e,!1)},a.prototype.draw=function(t){o.MatrixStack.push(),o.MatrixStack.multMatrix(this.modelMatrix.getArray()),this.tmpMatrix=o.MatrixStack.getMatrix(),this.live2DModel.setMatrix(this.tmpMatrix),this.live2DModel.draw(),o.MatrixStack.pop()},a.prototype.hitTest=function(t,e,i){for(var r,o=this.modelSetting.getHitAreaNum(),n=0;n<o;n++)if(t==this.modelSetting.getHitAreaName(n))return r=this.modelSetting.getHitAreaID(n),this.hitTestSimple(r,e,i);return!1}},87:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModelSettingJson=o;var r=i(78);function o(){this.NAME="name",this.ID="id",this.MODEL="model",this.TEXTURES="textures",this.HIT_AREAS="hit_areas",this.PHYSICS="physics",this.POSE="pose",this.EXPRESSIONS="expressions",this.MOTION_GROUPS="motions",this.SOUND="sound",this.FADE_IN="fade_in",this.FADE_OUT="fade_out",this.LAYOUT="layout",this.INIT_PARAM="init_param",this.INIT_PARTS_VISIBLE="init_parts_visible",this.VALUE="val",this.FILE="file",this.json={}}o.prototype.loadModelSetting=function(t,e){var i=this;r.Live2DFramework.getPlatformManager().loadBytes(t,function(t){t=String.fromCharCode.apply(null,new Uint8Array(t));i.json=JSON.parse(t),e()})},o.prototype.getTextureFile=function(t){return null==this.json[this.TEXTURES]||null==this.json[this.TEXTURES][t]?null:this.json[this.TEXTURES][t]},o.prototype.getModelFile=function(){return this.json[this.MODEL]},o.prototype.getTextureNum=function(){return null==this.json[this.TEXTURES]?0:this.json[this.TEXTURES].length},o.prototype.getHitAreaNum=function(){return null==this.json[this.HIT_AREAS]?0:this.json[this.HIT_AREAS].length},o.prototype.getHitAreaID=function(t){return null==this.json[this.HIT_AREAS]||null==this.json[this.HIT_AREAS][t]?null:this.json[this.HIT_AREAS][t][this.ID]},o.prototype.getHitAreaName=function(t){return null==this.json[this.HIT_AREAS]||null==this.json[this.HIT_AREAS][t]?null:this.json[this.HIT_AREAS][t][this.NAME]},o.prototype.getPhysicsFile=function(){return this.json[this.PHYSICS]},o.prototype.getPoseFile=function(){return this.json[this.POSE]},o.prototype.getExpressionNum=function(){return null==this.json[this.EXPRESSIONS]?0:this.json[this.EXPRESSIONS].length},o.prototype.getExpressionFile=function(t){return null==this.json[this.EXPRESSIONS]?null:this.json[this.EXPRESSIONS][t][this.FILE]},o.prototype.getExpressionName=function(t){return null==this.json[this.EXPRESSIONS]?null:this.json[this.EXPRESSIONS][t][this.NAME]},o.prototype.getLayout=function(){return this.json[this.LAYOUT]},o.prototype.getInitParamNum=function(){return null==this.json[this.INIT_PARAM]?0:this.json[this.INIT_PARAM].length},o.prototype.getMotionNum=function(t){return null==this.json[this.MOTION_GROUPS]||null==this.json[this.MOTION_GROUPS][t]?0:this.json[this.MOTION_GROUPS][t].length},o.prototype.getMotionFile=function(t,e){return null==this.json[this.MOTION_GROUPS]||null==this.json[this.MOTION_GROUPS][t]||null==this.json[this.MOTION_GROUPS][t][e]?null:this.json[this.MOTION_GROUPS][t][e][this.FILE]},o.prototype.getMotionSound=function(t,e){return null==this.json[this.MOTION_GROUPS]||null==this.json[this.MOTION_GROUPS][t]||null==this.json[this.MOTION_GROUPS][t][e]||null==this.json[this.MOTION_GROUPS][t][e][this.SOUND]?null:this.json[this.MOTION_GROUPS][t][e][this.SOUND]},o.prototype.getMotionFadeIn=function(t,e){return null==this.json[this.MOTION_GROUPS]||null==this.json[this.MOTION_GROUPS][t]||null==this.json[this.MOTION_GROUPS][t][e]||null==this.json[this.MOTION_GROUPS][t][e][this.FADE_IN]?1e3:this.json[this.MOTION_GROUPS][t][e][this.FADE_IN]},o.prototype.getMotionFadeOut=function(t,e){return null==this.json[this.MOTION_GROUPS]||null==this.json[this.MOTION_GROUPS][t]||null==this.json[this.MOTION_GROUPS][t][e]||null==this.json[this.MOTION_GROUPS][t][e][this.FADE_OUT]?1e3:this.json[this.MOTION_GROUPS][t][e][this.FADE_OUT]},o.prototype.getInitParamID=function(t){return null==this.json[this.INIT_PARAM]||null==this.json[this.INIT_PARAM][t]?null:this.json[this.INIT_PARAM][t][this.ID]},o.prototype.getInitParamValue=function(t){return null==this.json[this.INIT_PARAM]||null==this.json[this.INIT_PARAM][t]?NaN:this.json[this.INIT_PARAM][t][this.VALUE]},o.prototype.getInitPartsVisibleNum=function(){return null==this.json[this.INIT_PARTS_VISIBLE]?0:this.json[this.INIT_PARTS_VISIBLE].length},o.prototype.getInitPartsVisibleID=function(t){return null==this.json[this.INIT_PARTS_VISIBLE]||null==this.json[this.INIT_PARTS_VISIBLE][t]?null:this.json[this.INIT_PARTS_VISIBLE][t][this.ID]},o.prototype.getInitPartsVisibleValue=function(t){return null==this.json[this.INIT_PARTS_VISIBLE]||null==this.json[this.INIT_PARTS_VISIBLE][t]?NaN:this.json[this.INIT_PARTS_VISIBLE][t][this.VALUE]}}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.