chbim-plugins 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +273 -0
- package/chbim-plugins.js +245 -245
- package/chbim-plugins.umd.cjs +14 -14
- package/package.json +1 -1
- package/.npmr +0 -2
package/chbim-plugins.umd.cjs
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Club GreenSock members, the software agreement that was issued with your membership.
|
|
11
11
|
*
|
|
12
12
|
* @author: Jack Doyle, jack@greensock.com
|
|
13
|
-
**/var ln=typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window;(ln._gsQueue||(ln._gsQueue=[])).push(function(){ln._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,a,o){var c=function(E){var P,w=[],T=E.length;for(P=0;P!==T;w.push(E[P++]));return w},f=function(E,P,w){var T,I,C=E.cycle;for(T in C)I=C[T],E[T]=typeof I=="function"?I(w,P[w]):I[w%I.length];delete E.cycle},u=function(E,P,w){o.call(this,E,P,w),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=u.prototype.render},m=1e-10,g=o._internals,v=g.isSelector,S=g.isArray,b=u.prototype=o.to({},.1,{}),O=[];u.version="2.0.2",b.constructor=u,b.kill()._gc=!1,u.killTweensOf=u.killDelayedCallsTo=o.killTweensOf,u.getTweensOf=o.getTweensOf,u.lagSmoothing=o.lagSmoothing,u.ticker=o.ticker,u.render=o.render,b.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),o.prototype.invalidate.call(this)},b.updateTo=function(E,P){var w,T=this.ratio,I=this.vars.immediateRender||E.immediateRender;P&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(w in E)this.vars[w]=E[w];if(this._initted||I){if(P)this._initted=!1,I&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&o._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var C=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(C,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||I)for(var U,N=1/(1-T),X=this._firstPT;X;)U=X.s+X.c,X.c*=N,X.s=U-X.c,X=X._next}return this},b.render=function(E,P,w){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var T,I,C,U,N,X,J,Z,ct,Rt=this._dirty?this.totalDuration():this._totalDuration,tt=this._time,_t=this._totalTime,G=this._cycle,Pt=this._duration,Et=this._rawPrevTime;if(E>=Rt-1e-7&&E>=0?(this._totalTime=Rt,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=Pt,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(T=!0,I="onComplete",w=w||this._timeline.autoRemoveChildren),Pt===0&&(this._initted||!this.vars.lazy||w)&&(this._startTime===this._timeline._duration&&(E=0),(0>Et||0>=E&&E>=-1e-7||Et===m&&this.data!=="isPause")&&Et!==E&&(w=!0,Et>m&&(I="onReverseComplete")),this._rawPrevTime=Z=!P||E||Et===E?E:m)):1e-7>E?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(_t!==0||Pt===0&&Et>0)&&(I="onReverseComplete",T=this._reversed),0>E&&(this._active=!1,Pt===0&&(this._initted||!this.vars.lazy||w)&&(Et>=0&&(w=!0),this._rawPrevTime=Z=!P||E||Et===E?E:m)),this._initted||(w=!0)):(this._totalTime=this._time=E,this._repeat!==0&&(U=Pt+this._repeatDelay,this._cycle=this._totalTime/U>>0,this._cycle!==0&&this._cycle===this._totalTime/U&&E>=_t&&this._cycle--,this._time=this._totalTime-this._cycle*U,this._yoyo&&1&this._cycle&&(this._time=Pt-this._time,ct=this._yoyoEase||this.vars.yoyoEase,ct&&(this._yoyoEase||(ct!==!0||this._initted?this._yoyoEase=ct=ct===!0?this._ease:ct instanceof Ease?ct:Ease.map[ct]:(ct=this.vars.ease,this._yoyoEase=ct=ct?ct instanceof Ease?ct:typeof ct=="function"?new Ease(ct,this.vars.easeParams):Ease.map[ct]||o.defaultEase:o.defaultEase)),this.ratio=ct?1-ct.getRatio((Pt-this._time)/Pt):0)),this._time>Pt?this._time=Pt:this._time<0&&(this._time=0)),this._easeType&&!ct?(N=this._time/Pt,X=this._easeType,J=this._easePower,(X===1||X===3&&N>=.5)&&(N=1-N),X===3&&(N*=2),J===1?N*=N:J===2?N*=N*N:J===3?N*=N*N*N:J===4&&(N*=N*N*N*N),X===1?this.ratio=1-N:X===2?this.ratio=N:this._time/Pt<.5?this.ratio=N/2:this.ratio=1-N/2):ct||(this.ratio=this._ease.getRatio(this._time/Pt))),tt===this._time&&!w&&G===this._cycle)return void(_t!==this._totalTime&&this._onUpdate&&(P||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!w&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=tt,this._totalTime=_t,this._rawPrevTime=Et,this._cycle=G,g.lazyTweens.push(this),void(this._lazy=[E,P]);!this._time||T||ct?T&&this._ease._calcEnd&&!ct&&(this.ratio=this._ease.getRatio(this._time===0?0:1)):this.ratio=this._ease.getRatio(this._time/Pt)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==tt&&E>=0&&(this._active=!0),_t===0&&(this._initted===2&&E>0&&this._init(),this._startAt&&(E>=0?this._startAt.render(E,!0,w):I||(I="_dummyGS")),this.vars.onStart&&(this._totalTime!==0||Pt===0)&&(P||this._callback("onStart"))),C=this._firstPT;C;)C.f?C.t[C.p](C.c*this.ratio+C.s):C.t[C.p]=C.c*this.ratio+C.s,C=C._next;this._onUpdate&&(0>E&&this._startAt&&this._startTime&&this._startAt.render(E,!0,w),P||(this._totalTime!==_t||I)&&this._callback("onUpdate")),this._cycle!==G&&(P||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),I&&(!this._gc||w)&&(0>E&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(E,!0,w),T&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!P&&this.vars[I]&&this._callback(I),Pt===0&&this._rawPrevTime===m&&Z!==m&&(this._rawPrevTime=0))},u.to=function(E,P,w){return new u(E,P,w)},u.from=function(E,P,w){return w.runBackwards=!0,w.immediateRender=w.immediateRender!=0,new u(E,P,w)},u.fromTo=function(E,P,w,T){return T.startAt=w,T.immediateRender=T.immediateRender!=0&&w.immediateRender!=0,new u(E,P,T)},u.staggerTo=u.allTo=function(E,P,w,T,I,C,U){T=T||0;var N,X,J,Z,ct=0,Rt=[],tt=function(){w.onComplete&&w.onComplete.apply(w.onCompleteScope||this,arguments),I.apply(U||w.callbackScope||this,C||O)},_t=w.cycle,G=w.startAt&&w.startAt.cycle;for(S(E)||(typeof E=="string"&&(E=o.selector(E)||E),v(E)&&(E=c(E))),E=E||[],0>T&&(E=c(E),E.reverse(),T*=-1),N=E.length-1,J=0;N>=J;J++){X={};for(Z in w)X[Z]=w[Z];if(_t&&(f(X,E,J),X.duration!=null&&(P=X.duration,delete X.duration)),G){G=X.startAt={};for(Z in w.startAt)G[Z]=w.startAt[Z];f(X.startAt,E,J)}X.delay=ct+(X.delay||0),J===N&&I&&(X.onComplete=tt),Rt[J]=new u(E[J],P,X),ct+=T}return Rt},u.staggerFrom=u.allFrom=function(E,P,w,T,I,C,U){return w.runBackwards=!0,w.immediateRender=w.immediateRender!=0,u.staggerTo(E,P,w,T,I,C,U)},u.staggerFromTo=u.allFromTo=function(E,P,w,T,I,C,U,N){return T.startAt=w,T.immediateRender=T.immediateRender!=0&&w.immediateRender!=0,u.staggerTo(E,P,T,I,C,U,N)},u.delayedCall=function(E,P,w,T,I){return new u(P,0,{delay:E,onComplete:P,onCompleteParams:w,callbackScope:T,onReverseComplete:P,onReverseCompleteParams:w,immediateRender:!1,useFrames:I,overwrite:0})},u.set=function(E,P){return new u(E,0,P)},u.isTweening=function(E){return o.getTweensOf(E,!0).length>0};var k=function(E,P){for(var w=[],T=0,I=E._first;I;)I instanceof o?w[T++]=I:(P&&(w[T++]=I),w=w.concat(k(I,P)),T=w.length),I=I._next;return w},R=u.getAllTweens=function(E){return k(x._rootTimeline,E).concat(k(x._rootFramesTimeline,E))};u.killAll=function(E,P,w,T){P==null&&(P=!0),w==null&&(w=!0);var I,C,U,N=R(T!=0),X=N.length,J=P&&w&&T;for(U=0;X>U;U++)C=N[U],(J||C instanceof a||(I=C.target===C.vars.onComplete)&&w||P&&!I)&&(E?C.totalTime(C._reversed?0:C.totalDuration()):C._enabled(!1,!1))},u.killChildTweensOf=function(E,P){if(E!=null){var w,T,I,C,U,N=g.tweenLookup;if(typeof E=="string"&&(E=o.selector(E)||E),v(E)&&(E=c(E)),S(E))for(C=E.length;--C>-1;)u.killChildTweensOf(E[C],P);else{w=[];for(I in N)for(T=N[I].target.parentNode;T;)T===E&&(w=w.concat(N[I].tweens)),T=T.parentNode;for(U=w.length,C=0;U>C;C++)P&&w[C].totalTime(w[C].totalDuration()),w[C]._enabled(!1,!1)}}};var F=function(E,P,w,T){P=P!==!1,w=w!==!1,T=T!==!1;for(var I,C,U=R(T),N=P&&w&&T,X=U.length;--X>-1;)C=U[X],(N||C instanceof a||(I=C.target===C.vars.onComplete)&&w||P&&!I)&&C.paused(E)};return u.pauseAll=function(E,P,w){F(!0,E,P,w)},u.resumeAll=function(E,P,w){F(!1,E,P,w)},u.globalTimeScale=function(E){var P=x._rootTimeline,w=o.ticker.time;return arguments.length?(E=E||m,P._startTime=w-(w-P._startTime)*P._timeScale/E,P=x._rootFramesTimeline,w=o.ticker.frame,P._startTime=w-(w-P._startTime)*P._timeScale/E,P._timeScale=x._rootTimeline._timeScale=E,E):P._timeScale},b.progress=function(E,P){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-E:E)+this._cycle*(this._duration+this._repeatDelay),P):this._time/this.duration()},b.totalProgress=function(E,P){return arguments.length?this.totalTime(this.totalDuration()*E,P):this._totalTime/this.totalDuration()},b.time=function(E,P){return arguments.length?(this._dirty&&this.totalDuration(),E>this._duration&&(E=this._duration),this._yoyo&&1&this._cycle?E=this._duration-E+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(E+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(E,P)):this._time},b.duration=function(E){return arguments.length?x.prototype.duration.call(this,E):this._duration},b.totalDuration=function(E){return arguments.length?this._repeat===-1?this:this.duration((E-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},b.repeat=function(E){return arguments.length?(this._repeat=E,this._uncache(!0)):this._repeat},b.repeatDelay=function(E){return arguments.length?(this._repeatDelay=E,this._uncache(!0)):this._repeatDelay},b.yoyo=function(E){return arguments.length?(this._yoyo=E,this):this._yoyo},u},!0),ln._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,a,o){var c=function(w){a.call(this,w),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var T,I,C=this.vars;for(I in C)T=C[I],v(T)&&T.join("").indexOf("{self}")!==-1&&(C[I]=this._swapSelfInParams(T));v(C.tweens)&&this.add(C.tweens,0,C.align,C.stagger)},f=1e-10,u=o._internals,m=c._internals={},g=u.isSelector,v=u.isArray,S=u.lazyTweens,b=u.lazyRender,O=ln._gsDefine.globals,k=function(w){var T,I={};for(T in w)I[T]=w[T];return I},R=function(w,T,I){var C,U,N=w.cycle;for(C in N)U=N[C],w[C]=typeof U=="function"?U(I,T[I]):U[I%U.length];delete w.cycle},F=m.pauseCallback=function(){},E=function(w){var T,I=[],C=w.length;for(T=0;T!==C;I.push(w[T++]));return I},P=c.prototype=new a;return c.version="2.0.2",P.constructor=c,P.kill()._gc=P._forcingPlayhead=P._hasPause=!1,P.to=function(w,T,I,C){var U=I.repeat&&O.TweenMax||o;return T?this.add(new U(w,T,I),C):this.set(w,I,C)},P.from=function(w,T,I,C){return this.add((I.repeat&&O.TweenMax||o).from(w,T,I),C)},P.fromTo=function(w,T,I,C,U){var N=C.repeat&&O.TweenMax||o;return T?this.add(N.fromTo(w,T,I,C),U):this.set(w,C,U)},P.staggerTo=function(w,T,I,C,U,N,X,J){var Z,ct,Rt=new c({onComplete:N,onCompleteParams:X,callbackScope:J,smoothChildTiming:this.smoothChildTiming}),tt=I.cycle;for(typeof w=="string"&&(w=o.selector(w)||w),w=w||[],g(w)&&(w=E(w)),C=C||0,0>C&&(w=E(w),w.reverse(),C*=-1),ct=0;ct<w.length;ct++)Z=k(I),Z.startAt&&(Z.startAt=k(Z.startAt),Z.startAt.cycle&&R(Z.startAt,w,ct)),tt&&(R(Z,w,ct),Z.duration!=null&&(T=Z.duration,delete Z.duration)),Rt.to(w[ct],T,Z,ct*C);return this.add(Rt,U)},P.staggerFrom=function(w,T,I,C,U,N,X,J){return I.immediateRender=I.immediateRender!=0,I.runBackwards=!0,this.staggerTo(w,T,I,C,U,N,X,J)},P.staggerFromTo=function(w,T,I,C,U,N,X,J,Z){return C.startAt=I,C.immediateRender=C.immediateRender!=0&&I.immediateRender!=0,this.staggerTo(w,T,C,U,N,X,J,Z)},P.call=function(w,T,I,C){return this.add(o.delayedCall(0,w,T,I),C)},P.set=function(w,T,I){return I=this._parseTimeOrLabel(I,0,!0),T.immediateRender==null&&(T.immediateRender=I===this._time&&!this._paused),this.add(new o(w,0,T),I)},c.exportRoot=function(w,T){w=w||{},w.smoothChildTiming==null&&(w.smoothChildTiming=!0);var I,C,U,N,X=new c(w),J=X._timeline;for(T==null&&(T=!0),J._remove(X,!0),X._startTime=0,X._rawPrevTime=X._time=X._totalTime=J._time,U=J._first;U;)N=U._next,T&&U instanceof o&&U.target===U.vars.onComplete||(C=U._startTime-U._delay,0>C&&(I=1),X.add(U,C)),U=N;return J.add(X,0),I&&X.totalDuration(),X},P.add=function(w,T,I,C){var U,N,X,J,Z,ct;if(typeof T!="number"&&(T=this._parseTimeOrLabel(T,0,!0,w)),!(w instanceof x)){if(w instanceof Array||w&&w.push&&v(w)){for(I=I||"normal",C=C||0,U=T,N=w.length,X=0;N>X;X++)v(J=w[X])&&(J=new c({tweens:J})),this.add(J,U),typeof J!="string"&&typeof J!="function"&&(I==="sequence"?U=J._startTime+J.totalDuration()/J._timeScale:I==="start"&&(J._startTime-=J.delay())),U+=C;return this._uncache(!0)}if(typeof w=="string")return this.addLabel(w,T);if(typeof w!="function")throw"Cannot add "+w+" into the timeline; it is not a tween, timeline, function, or string.";w=o.delayedCall(0,w)}if(a.prototype.add.call(this,w,T),w._time&&(U=Math.max(0,Math.min(w.totalDuration(),(this.rawTime()-w._startTime)*w._timeScale)),Math.abs(U-w._totalTime)>1e-5&&w.render(U,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(Z=this,ct=Z.rawTime()>w._startTime;Z._timeline;)ct&&Z._timeline.smoothChildTiming?Z.totalTime(Z._totalTime,!0):Z._gc&&Z._enabled(!0,!1),Z=Z._timeline;return this},P.remove=function(w){if(w instanceof x){this._remove(w,!1);var T=w._timeline=w.vars.useFrames?x._rootFramesTimeline:x._rootTimeline;return w._startTime=(w._paused?w._pauseTime:T._time)-(w._reversed?w.totalDuration()-w._totalTime:w._totalTime)/w._timeScale,this}if(w instanceof Array||w&&w.push&&v(w)){for(var I=w.length;--I>-1;)this.remove(w[I]);return this}return typeof w=="string"?this.removeLabel(w):this.kill(null,w)},P._remove=function(w,T){a.prototype._remove.call(this,w,T);var I=this._last;return I?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},P.append=function(w,T){return this.add(w,this._parseTimeOrLabel(null,T,!0,w))},P.insert=P.insertMultiple=function(w,T,I,C){return this.add(w,T||0,I,C)},P.appendMultiple=function(w,T,I,C){return this.add(w,this._parseTimeOrLabel(null,T,!0,w),I,C)},P.addLabel=function(w,T){return this._labels[w]=this._parseTimeOrLabel(T),this},P.addPause=function(w,T,I,C){var U=o.delayedCall(0,F,I,C||this);return U.vars.onComplete=U.vars.onReverseComplete=T,U.data="isPause",this._hasPause=!0,this.add(U,w)},P.removeLabel=function(w){return delete this._labels[w],this},P.getLabelTime=function(w){return this._labels[w]!=null?this._labels[w]:-1},P._parseTimeOrLabel=function(w,T,I,C){var U,N;if(C instanceof x&&C.timeline===this)this.remove(C);else if(C&&(C instanceof Array||C.push&&v(C)))for(N=C.length;--N>-1;)C[N]instanceof x&&C[N].timeline===this&&this.remove(C[N]);if(U=typeof w!="number"||T?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,typeof T=="string")return this._parseTimeOrLabel(T,I&&typeof w=="number"&&this._labels[T]==null?w-U:0,I);if(T=T||0,typeof w!="string"||!isNaN(w)&&this._labels[w]==null)w==null&&(w=U);else{if(N=w.indexOf("="),N===-1)return this._labels[w]==null?I?this._labels[w]=U+T:T:this._labels[w]+T;T=parseInt(w.charAt(N-1)+"1",10)*Number(w.substr(N+1)),w=N>1?this._parseTimeOrLabel(w.substr(0,N-1),0,I):U}return Number(w)+T},P.seek=function(w,T){return this.totalTime(typeof w=="number"?w:this._parseTimeOrLabel(w),T!==!1)},P.stop=function(){return this.paused(!0)},P.gotoAndPlay=function(w,T){return this.play(w,T)},P.gotoAndStop=function(w,T){return this.pause(w,T)},P.render=function(w,T,I){this._gc&&this._enabled(!0,!1);var C,U,N,X,J,Z,ct,Rt=this._time,tt=this._dirty?this.totalDuration():this._totalDuration,_t=this._startTime,G=this._timeScale,Pt=this._paused;if(Rt!==this._time&&(w+=this._time-Rt),w>=tt-1e-7&&w>=0)this._totalTime=this._time=tt,this._reversed||this._hasPausedChild()||(U=!0,X="onComplete",J=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=w&&w>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===f)&&this._rawPrevTime!==w&&this._first&&(J=!0,this._rawPrevTime>f&&(X="onReverseComplete"))),this._rawPrevTime=this._duration||!T||w||this._rawPrevTime===w?w:f,w=tt+1e-4;else if(1e-7>w)if(this._totalTime=this._time=0,(Rt!==0||this._duration===0&&this._rawPrevTime!==f&&(this._rawPrevTime>0||0>w&&this._rawPrevTime>=0))&&(X="onReverseComplete",U=this._reversed),0>w)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(J=U=!0,X="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(J=!0),this._rawPrevTime=w;else{if(this._rawPrevTime=this._duration||!T||w||this._rawPrevTime===w?w:f,w===0&&U)for(C=this._first;C&&C._startTime===0;)C._duration||(U=!1),C=C._next;w=0,this._initted||(J=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!T){if(w>=Rt)for(C=this._first;C&&C._startTime<=w&&!Z;)C._duration||C.data!=="isPause"||C.ratio||C._startTime===0&&this._rawPrevTime===0||(Z=C),C=C._next;else for(C=this._last;C&&C._startTime>=w&&!Z;)C._duration||C.data==="isPause"&&C._rawPrevTime>0&&(Z=C),C=C._prev;Z&&(this._time=w=Z._startTime,this._totalTime=w+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=w}if(this._time!==Rt&&this._first||I||J||Z){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==Rt&&w>0&&(this._active=!0),Rt===0&&this.vars.onStart&&(this._time===0&&this._duration||T||this._callback("onStart")),ct=this._time,ct>=Rt)for(C=this._first;C&&(N=C._next,ct===this._time&&(!this._paused||Pt));)(C._active||C._startTime<=ct&&!C._paused&&!C._gc)&&(Z===C&&this.pause(),C._reversed?C.render((C._dirty?C.totalDuration():C._totalDuration)-(w-C._startTime)*C._timeScale,T,I):C.render((w-C._startTime)*C._timeScale,T,I)),C=N;else for(C=this._last;C&&(N=C._prev,ct===this._time&&(!this._paused||Pt));){if(C._active||C._startTime<=Rt&&!C._paused&&!C._gc){if(Z===C){for(Z=C._prev;Z&&Z.endTime()>this._time;)Z.render(Z._reversed?Z.totalDuration()-(w-Z._startTime)*Z._timeScale:(w-Z._startTime)*Z._timeScale,T,I),Z=Z._prev;Z=null,this.pause()}C._reversed?C.render((C._dirty?C.totalDuration():C._totalDuration)-(w-C._startTime)*C._timeScale,T,I):C.render((w-C._startTime)*C._timeScale,T,I)}C=N}this._onUpdate&&(T||(S.length&&b(),this._callback("onUpdate"))),X&&(this._gc||(_t===this._startTime||G!==this._timeScale)&&(this._time===0||tt>=this.totalDuration())&&(U&&(S.length&&b(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!T&&this.vars[X]&&this._callback(X)))}},P._hasPausedChild=function(){for(var w=this._first;w;){if(w._paused||w instanceof c&&w._hasPausedChild())return!0;w=w._next}return!1},P.getChildren=function(w,T,I,C){C=C||-9999999999;for(var U=[],N=this._first,X=0;N;)N._startTime<C||(N instanceof o?T!==!1&&(U[X++]=N):(I!==!1&&(U[X++]=N),w!==!1&&(U=U.concat(N.getChildren(!0,T,I)),X=U.length))),N=N._next;return U},P.getTweensOf=function(w,T){var I,C,U=this._gc,N=[],X=0;for(U&&this._enabled(!0,!0),I=o.getTweensOf(w),C=I.length;--C>-1;)(I[C].timeline===this||T&&this._contains(I[C]))&&(N[X++]=I[C]);return U&&this._enabled(!1,!0),N},P.recent=function(){return this._recent},P._contains=function(w){for(var T=w.timeline;T;){if(T===this)return!0;T=T.timeline}return!1},P.shiftChildren=function(w,T,I){I=I||0;for(var C,U=this._first,N=this._labels;U;)U._startTime>=I&&(U._startTime+=w),U=U._next;if(T)for(C in N)N[C]>=I&&(N[C]+=w);return this._uncache(!0)},P._kill=function(w,T){if(!w&&!T)return this._enabled(!1,!1);for(var I=T?this.getTweensOf(T):this.getChildren(!0,!0,!1),C=I.length,U=!1;--C>-1;)I[C]._kill(w,T)&&(U=!0);return U},P.clear=function(w){var T=this.getChildren(!1,!0,!0),I=T.length;for(this._time=this._totalTime=0;--I>-1;)T[I]._enabled(!1,!1);return w!==!1&&(this._labels={}),this._uncache(!0)},P.invalidate=function(){for(var w=this._first;w;)w.invalidate(),w=w._next;return x.prototype.invalidate.call(this)},P._enabled=function(w,T){if(w===this._gc)for(var I=this._first;I;)I._enabled(w,!0),I=I._next;return a.prototype._enabled.call(this,w,T)},P.totalTime=function(w,T,I){this._forcingPlayhead=!0;var C=x.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,C},P.duration=function(w){return arguments.length?(this.duration()!==0&&w!==0&&this.timeScale(this._duration/w),this):(this._dirty&&this.totalDuration(),this._duration)},P.totalDuration=function(w){if(!arguments.length){if(this._dirty){for(var T,I,C=0,U=this._last,N=999999999999;U;)T=U._prev,U._dirty&&U.totalDuration(),U._startTime>N&&this._sortChildren&&!U._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(U,U._startTime-U._delay),this._calculatingDuration=0):N=U._startTime,U._startTime<0&&!U._paused&&(C-=U._startTime,this._timeline.smoothChildTiming&&(this._startTime+=U._startTime/this._timeScale,this._time-=U._startTime,this._totalTime-=U._startTime,this._rawPrevTime-=U._startTime),this.shiftChildren(-U._startTime,!1,-9999999999),N=0),I=U._startTime+U._totalDuration/U._timeScale,I>C&&(C=I),U=T;this._duration=this._totalDuration=C,this._dirty=!1}return this._totalDuration}return w&&this.totalDuration()?this.timeScale(this._totalDuration/w):this},P.paused=function(w){if(!w)for(var T=this._first,I=this._time;T;)T._startTime===I&&T.data==="isPause"&&(T._rawPrevTime=0),T=T._next;return x.prototype.paused.apply(this,arguments)},P.usesFrames=function(){for(var w=this._timeline;w._timeline;)w=w._timeline;return w===x._rootFramesTimeline},P.rawTime=function(w){return w&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(w)-this._startTime)*this._timeScale},c},!0),ln._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(x,a,o){var c=function(O){x.call(this,O),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},f=1e-10,u=a._internals,m=u.lazyTweens,g=u.lazyRender,v=ln._gsDefine.globals,S=new o(null,null,1,0),b=c.prototype=new x;return b.constructor=c,b.kill()._gc=!1,c.version="2.0.2",b.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),x.prototype.invalidate.call(this)},b.addCallback=function(O,k,R,F){return this.add(a.delayedCall(0,O,R,F),k)},b.removeCallback=function(O,k){if(O)if(k==null)this._kill(null,O);else for(var R=this.getTweensOf(O,!1),F=R.length,E=this._parseTimeOrLabel(k);--F>-1;)R[F]._startTime===E&&R[F]._enabled(!1,!1);return this},b.removePause=function(O){return this.removeCallback(x._internals.pauseCallback,O)},b.tweenTo=function(O,k){k=k||{};var R,F,E,P={ease:S,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},w=k.repeat&&v.TweenMax||a;for(F in k)P[F]=k[F];return P.time=this._parseTimeOrLabel(O),R=Math.abs(Number(P.time)-this._time)/this._timeScale||.001,E=new w(this,R,P),P.onStart=function(){E.target.paused(!0),E.vars.time===E.target.time()||R!==E.duration()||E.isFromTo||E.duration(Math.abs(E.vars.time-E.target.time())/E.target._timeScale).render(E.time(),!0,!0),k.onStart&&k.onStart.apply(k.onStartScope||k.callbackScope||E,k.onStartParams||[])},E},b.tweenFromTo=function(O,k,R){R=R||{},O=this._parseTimeOrLabel(O),R.startAt={onComplete:this.seek,onCompleteParams:[O],callbackScope:this},R.immediateRender=R.immediateRender!==!1;var F=this.tweenTo(k,R);return F.isFromTo=1,F.duration(Math.abs(F.vars.time-O)/this._timeScale||.001)},b.render=function(O,k,R){this._gc&&this._enabled(!0,!1);var F,E,P,w,T,I,C,U,N=this._time,X=this._dirty?this.totalDuration():this._totalDuration,J=this._duration,Z=this._totalTime,ct=this._startTime,Rt=this._timeScale,tt=this._rawPrevTime,_t=this._paused,G=this._cycle;if(N!==this._time&&(O+=this._time-N),O>=X-1e-7&&O>=0)this._locked||(this._totalTime=X,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(E=!0,w="onComplete",T=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=O&&O>=-1e-7||0>tt||tt===f)&&tt!==O&&this._first&&(T=!0,tt>f&&(w="onReverseComplete"))),this._rawPrevTime=this._duration||!k||O||this._rawPrevTime===O?O:f,this._yoyo&&1&this._cycle?this._time=O=0:(this._time=J,O=J+1e-4);else if(1e-7>O)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(N!==0||J===0&&tt!==f&&(tt>0||0>O&&tt>=0)&&!this._locked)&&(w="onReverseComplete",E=this._reversed),0>O)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(T=E=!0,w="onReverseComplete"):tt>=0&&this._first&&(T=!0),this._rawPrevTime=O;else{if(this._rawPrevTime=J||!k||O||this._rawPrevTime===O?O:f,O===0&&E)for(F=this._first;F&&F._startTime===0;)F._duration||(E=!1),F=F._next;O=0,this._initted||(T=!0)}else if(J===0&&0>tt&&(T=!0),this._time=this._rawPrevTime=O,this._locked||(this._totalTime=O,this._repeat!==0&&(I=J+this._repeatDelay,this._cycle=this._totalTime/I>>0,this._cycle!==0&&this._cycle===this._totalTime/I&&O>=Z&&this._cycle--,this._time=this._totalTime-this._cycle*I,this._yoyo&&1&this._cycle&&(this._time=J-this._time),this._time>J?(this._time=J,O=J+1e-4):this._time<0?this._time=O=0:O=this._time)),this._hasPause&&!this._forcingPlayhead&&!k){if(O=this._time,O>=N||this._repeat&&G!==this._cycle)for(F=this._first;F&&F._startTime<=O&&!C;)F._duration||F.data!=="isPause"||F.ratio||F._startTime===0&&this._rawPrevTime===0||(C=F),F=F._next;else for(F=this._last;F&&F._startTime>=O&&!C;)F._duration||F.data==="isPause"&&F._rawPrevTime>0&&(C=F),F=F._prev;C&&C._startTime<J&&(this._time=O=C._startTime,this._totalTime=O+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==G&&!this._locked){var Pt=this._yoyo&&(1&G)!==0,Et=Pt===(this._yoyo&&(1&this._cycle)!==0),At=this._totalTime,ce=this._cycle,re=this._rawPrevTime,Ft=this._time;if(this._totalTime=G*J,this._cycle<G?Pt=!Pt:this._totalTime+=J,this._time=N,this._rawPrevTime=J===0?tt-1e-4:tt,this._cycle=G,this._locked=!0,N=Pt?0:J,this.render(N,k,J===0),k||this._gc||this.vars.onRepeat&&(this._cycle=ce,this._locked=!1,this._callback("onRepeat")),N!==this._time||(Et&&(this._cycle=G,this._locked=!0,N=Pt?J+1e-4:-1e-4,this.render(N,!0,!1)),this._locked=!1,this._paused&&!_t))return;this._time=Ft,this._totalTime=At,this._cycle=ce,this._rawPrevTime=re}if(!(this._time!==N&&this._first||R||T||C))return void(Z!==this._totalTime&&this._onUpdate&&(k||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==Z&&O>0&&(this._active=!0),Z===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||k||this._callback("onStart")),U=this._time,U>=N)for(F=this._first;F&&(P=F._next,U===this._time&&(!this._paused||_t));)(F._active||F._startTime<=this._time&&!F._paused&&!F._gc)&&(C===F&&this.pause(),F._reversed?F.render((F._dirty?F.totalDuration():F._totalDuration)-(O-F._startTime)*F._timeScale,k,R):F.render((O-F._startTime)*F._timeScale,k,R)),F=P;else for(F=this._last;F&&(P=F._prev,U===this._time&&(!this._paused||_t));){if(F._active||F._startTime<=N&&!F._paused&&!F._gc){if(C===F){for(C=F._prev;C&&C.endTime()>this._time;)C.render(C._reversed?C.totalDuration()-(O-C._startTime)*C._timeScale:(O-C._startTime)*C._timeScale,k,R),C=C._prev;C=null,this.pause()}F._reversed?F.render((F._dirty?F.totalDuration():F._totalDuration)-(O-F._startTime)*F._timeScale,k,R):F.render((O-F._startTime)*F._timeScale,k,R)}F=P}this._onUpdate&&(k||(m.length&&g(),this._callback("onUpdate"))),w&&(this._locked||this._gc||(ct===this._startTime||Rt!==this._timeScale)&&(this._time===0||X>=this.totalDuration())&&(E&&(m.length&&g(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!k&&this.vars[w]&&this._callback(w)))},b.getActive=function(O,k,R){O==null&&(O=!0),k==null&&(k=!0),R==null&&(R=!1);var F,E,P=[],w=this.getChildren(O,k,R),T=0,I=w.length;for(F=0;I>F;F++)E=w[F],E.isActive()&&(P[T++]=E);return P},b.getLabelAfter=function(O){O||O!==0&&(O=this._time);var k,R=this.getLabelsArray(),F=R.length;for(k=0;F>k;k++)if(R[k].time>O)return R[k].name;return null},b.getLabelBefore=function(O){O==null&&(O=this._time);for(var k=this.getLabelsArray(),R=k.length;--R>-1;)if(k[R].time<O)return k[R].name;return null},b.getLabelsArray=function(){var O,k=[],R=0;for(O in this._labels)k[R++]={time:this._labels[O],name:O};return k.sort(function(F,E){return F.time-E.time}),k},b.invalidate=function(){return this._locked=!1,x.prototype.invalidate.call(this)},b.progress=function(O,k){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-O:O)+this._cycle*(this._duration+this._repeatDelay),k):this._time/this.duration()||0},b.totalProgress=function(O,k){return arguments.length?this.totalTime(this.totalDuration()*O,k):this._totalTime/this.totalDuration()||0},b.totalDuration=function(O){return arguments.length?this._repeat!==-1&&O?this.timeScale(this.totalDuration()/O):this:(this._dirty&&(x.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},b.time=function(O,k){return arguments.length?(this._dirty&&this.totalDuration(),O>this._duration&&(O=this._duration),this._yoyo&&1&this._cycle?O=this._duration-O+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(O+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(O,k)):this._time},b.repeat=function(O){return arguments.length?(this._repeat=O,this._uncache(!0)):this._repeat},b.repeatDelay=function(O){return arguments.length?(this._repeatDelay=O,this._uncache(!0)):this._repeatDelay},b.yoyo=function(O){return arguments.length?(this._yoyo=O,this):this._yoyo},b.currentLabel=function(O){return arguments.length?this.seek(O,!0):this.getLabelBefore(this._time+1e-8)},c},!0),function(){var x=180/Math.PI,a=[],o=[],c=[],f={},u=ln._gsDefine.globals,m=function(w,T,I,C){I===C&&(I=C-(C-T)/1e6),w===T&&(T=w+(I-w)/1e6),this.a=w,this.b=T,this.c=I,this.d=C,this.da=C-w,this.ca=I-w,this.ba=T-w},g=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",v=function(w,T,I,C){var U={a:w},N={},X={},J={c:C},Z=(w+T)/2,ct=(T+I)/2,Rt=(I+C)/2,tt=(Z+ct)/2,_t=(ct+Rt)/2,G=(_t-tt)/8;return U.b=Z+(w-Z)/4,N.b=tt+G,U.c=N.a=(U.b+N.b)/2,N.c=X.a=(tt+_t)/2,X.b=_t-G,J.b=Rt+(C-Rt)/4,X.c=J.a=(X.b+J.b)/2,[U,N,X,J]},S=function(w,T,I,C,U){var N,X,J,Z,ct,Rt,tt,_t,G,Pt,Et,At,ce,re=w.length-1,Ft=0,It=w[0].a;for(N=0;re>N;N++)ct=w[Ft],X=ct.a,J=ct.d,Z=w[Ft+1].d,U?(Et=a[N],At=o[N],ce=(At+Et)*T*.25/(C?.5:c[N]||.5),Rt=J-(J-X)*(C?.5*T:Et!==0?ce/Et:0),tt=J+(Z-J)*(C?.5*T:At!==0?ce/At:0),_t=J-(Rt+((tt-Rt)*(3*Et/(Et+At)+.5)/4||0))):(Rt=J-(J-X)*T*.5,tt=J+(Z-J)*T*.5,_t=J-(Rt+tt)/2),Rt+=_t,tt+=_t,ct.c=G=Rt,N!==0?ct.b=It:ct.b=It=ct.a+.6*(ct.c-ct.a),ct.da=J-X,ct.ca=G-X,ct.ba=It-X,I?(Pt=v(X,It,G,J),w.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]),Ft+=4):Ft++,It=tt;ct=w[Ft],ct.b=It,ct.c=It+.4*(ct.d-It),ct.da=ct.d-ct.a,ct.ca=ct.c-ct.a,ct.ba=It-ct.a,I&&(Pt=v(ct.a,It,ct.c,ct.d),w.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]))},b=function(w,T,I,C){var U,N,X,J,Z,ct,Rt=[];if(C)for(w=[C].concat(w),N=w.length;--N>-1;)typeof(ct=w[N][T])=="string"&&ct.charAt(1)==="="&&(w[N][T]=C[T]+Number(ct.charAt(0)+ct.substr(2)));if(U=w.length-2,0>U)return Rt[0]=new m(w[0][T],0,0,w[0][T]),Rt;for(N=0;U>N;N++)X=w[N][T],J=w[N+1][T],Rt[N]=new m(X,0,0,J),I&&(Z=w[N+2][T],a[N]=(a[N]||0)+(J-X)*(J-X),o[N]=(o[N]||0)+(Z-J)*(Z-J));return Rt[N]=new m(w[N][T],0,0,w[N+1][T]),Rt},O=function(w,T,I,C,U,N){var X,J,Z,ct,Rt,tt,_t,G,Pt={},Et=[],At=N||w[0];U=typeof U=="string"?","+U+",":g,T==null&&(T=1);for(J in w[0])Et.push(J);if(w.length>1){for(G=w[w.length-1],_t=!0,X=Et.length;--X>-1;)if(J=Et[X],Math.abs(At[J]-G[J])>.05){_t=!1;break}_t&&(w=w.concat(),N&&w.unshift(N),w.push(w[1]),N=w[w.length-3])}for(a.length=o.length=c.length=0,X=Et.length;--X>-1;)J=Et[X],f[J]=U.indexOf(","+J+",")!==-1,Pt[J]=b(w,J,f[J],N);for(X=a.length;--X>-1;)a[X]=Math.sqrt(a[X]),o[X]=Math.sqrt(o[X]);if(!C){for(X=Et.length;--X>-1;)if(f[J])for(Z=Pt[Et[X]],tt=Z.length-1,ct=0;tt>ct;ct++)Rt=Z[ct+1].da/o[ct]+Z[ct].da/a[ct]||0,c[ct]=(c[ct]||0)+Rt*Rt;for(X=c.length;--X>-1;)c[X]=Math.sqrt(c[X])}for(X=Et.length,ct=I?4:1;--X>-1;)J=Et[X],Z=Pt[J],S(Z,T,I,C,f[J]),_t&&(Z.splice(0,ct),Z.splice(Z.length-ct,ct));return Pt},k=function(w,T,I){T=T||"soft";var C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt={},Et=T==="cubic"?3:2,At=T==="soft",ce=[];if(At&&I&&(w=[I].concat(w)),w==null||w.length<Et+1)throw"invalid Bezier data";for(tt in w[0])ce.push(tt);for(Z=ce.length;--Z>-1;){for(tt=ce[Z],Pt[tt]=J=[],_t=0,Rt=w.length,ct=0;Rt>ct;ct++)C=I==null?w[ct][tt]:typeof(G=w[ct][tt])=="string"&&G.charAt(1)==="="?I[tt]+Number(G.charAt(0)+G.substr(2)):Number(G),At&&ct>1&&Rt-1>ct&&(J[_t++]=(C+J[_t-2])/2),J[_t++]=C;for(Rt=_t-Et+1,_t=0,ct=0;Rt>ct;ct+=Et)C=J[ct],U=J[ct+1],N=J[ct+2],X=Et===2?0:J[ct+3],J[_t++]=G=Et===3?new m(C,U,N,X):new m(C,(2*U+C)/3,(2*U+N)/3,N);J.length=_t}return Pt},R=function(w,T,I){for(var C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt=1/I,Et=w.length;--Et>-1;)for(_t=w[Et],N=_t.a,X=_t.d-N,J=_t.c-N,Z=_t.b-N,C=U=0,Rt=1;I>=Rt;Rt++)ct=Pt*Rt,tt=1-ct,C=U-(U=(ct*ct*X+3*tt*(ct*J+tt*Z))*ct),G=Et*I+Rt-1,T[G]=(T[G]||0)+C*C},F=function(w,T){T=T>>0||6;var I,C,U,N,X=[],J=[],Z=0,ct=0,Rt=T-1,tt=[],_t=[];for(I in w)R(w[I],X,T);for(U=X.length,C=0;U>C;C++)Z+=Math.sqrt(X[C]),N=C%T,_t[N]=Z,N===Rt&&(ct+=Z,N=C/T>>0,tt[N]=_t,J[N]=ct,Z=0,_t=[]);return{length:ct,lengths:J,segments:tt}},E=ln._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(w,T,I){this._target=w,T instanceof Array&&(T={values:T}),this._func={},this._mod={},this._props=[],this._timeRes=T.timeResolution==null?6:parseInt(T.timeResolution,10);var C,U,N,X,J,Z=T.values||[],ct={},Rt=Z[0],tt=T.autoRotate||I.vars.orientToBezier;this._autoRotate=tt?tt instanceof Array?tt:[["x","y","rotation",tt===!0?0:Number(tt)||0]]:null;for(C in Rt)this._props.push(C);for(N=this._props.length;--N>-1;)C=this._props[N],this._overwriteProps.push(C),U=this._func[C]=typeof w[C]=="function",ct[C]=U?w[C.indexOf("set")||typeof w["get"+C.substr(3)]!="function"?C:"get"+C.substr(3)]():parseFloat(w[C]),J||ct[C]!==Z[0][C]&&(J=ct);if(this._beziers=T.type!=="cubic"&&T.type!=="quadratic"&&T.type!=="soft"?O(Z,isNaN(T.curviness)?1:T.curviness,!1,T.type==="thruBasic",T.correlate,J):k(Z,T.type,ct),this._segCount=this._beziers[C].length,this._timeRes){var _t=F(this._beziers,this._timeRes);this._length=_t.length,this._lengths=_t.lengths,this._segments=_t.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(tt=this._autoRotate)for(this._initialRotations=[],tt[0]instanceof Array||(this._autoRotate=tt=[tt]),N=tt.length;--N>-1;){for(X=0;3>X;X++)C=tt[N][X],this._func[C]=typeof w[C]=="function"?w[C.indexOf("set")||typeof w["get"+C.substr(3)]!="function"?C:"get"+C.substr(3)]:!1;C=tt[N][2],this._initialRotations[N]=(this._func[C]?this._func[C].call(this._target):this._target[C])||0,this._overwriteProps.push(C)}return this._startRatio=I.vars.runBackwards?1:0,!0},set:function(w){var T,I,C,U,N,X,J,Z,ct,Rt,tt=this._segCount,_t=this._func,G=this._target,Pt=w!==this._startRatio;if(this._timeRes){if(ct=this._lengths,Rt=this._curSeg,w*=this._length,C=this._li,w>this._l2&&tt-1>C){for(Z=tt-1;Z>C&&(this._l2=ct[++C])<=w;);this._l1=ct[C-1],this._li=C,this._curSeg=Rt=this._segments[C],this._s2=Rt[this._s1=this._si=0]}else if(w<this._l1&&C>0){for(;C>0&&(this._l1=ct[--C])>=w;);C===0&&w<this._l1?this._l1=0:C++,this._l2=ct[C],this._li=C,this._curSeg=Rt=this._segments[C],this._s1=Rt[(this._si=Rt.length-1)-1]||0,this._s2=Rt[this._si]}if(T=C,w-=this._l1,C=this._si,w>this._s2&&C<Rt.length-1){for(Z=Rt.length-1;Z>C&&(this._s2=Rt[++C])<=w;);this._s1=Rt[C-1],this._si=C}else if(w<this._s1&&C>0){for(;C>0&&(this._s1=Rt[--C])>=w;);C===0&&w<this._s1?this._s1=0:C++,this._s2=Rt[C],this._si=C}X=(C+(w-this._s1)/(this._s2-this._s1))*this._prec||0}else T=0>w?0:w>=1?tt-1:tt*w>>0,X=(w-T*(1/tt))*tt;for(I=1-X,C=this._props.length;--C>-1;)U=this._props[C],N=this._beziers[U][T],J=(X*X*N.da+3*I*(X*N.ca+I*N.ba))*X+N.a,this._mod[U]&&(J=this._mod[U](J,G)),_t[U]?G[U](J):G[U]=J;if(this._autoRotate){var Et,At,ce,re,Ft,It,Nt,Pe=this._autoRotate;for(C=Pe.length;--C>-1;)U=Pe[C][2],It=Pe[C][3]||0,Nt=Pe[C][4]===!0?1:x,N=this._beziers[Pe[C][0]],Et=this._beziers[Pe[C][1]],N&&Et&&(N=N[T],Et=Et[T],At=N.a+(N.b-N.a)*X,re=N.b+(N.c-N.b)*X,At+=(re-At)*X,re+=(N.c+(N.d-N.c)*X-re)*X,ce=Et.a+(Et.b-Et.a)*X,Ft=Et.b+(Et.c-Et.b)*X,ce+=(Ft-ce)*X,Ft+=(Et.c+(Et.d-Et.c)*X-Ft)*X,J=Pt?Math.atan2(Ft-ce,re-At)*Nt+It:this._initialRotations[C],this._mod[U]&&(J=this._mod[U](J,G)),_t[U]?G[U](J):G[U]=J)}}}),P=E.prototype;E.bezierThrough=O,E.cubicToQuadratic=v,E._autoCSS=!0,E.quadraticToCubic=function(w,T,I){return new m(w,(2*T+w)/3,(2*T+I)/3,I)},E._cssRegister=function(){var w=u.CSSPlugin;if(w){var T=w._internals,I=T._parseToProxy,C=T._setPluginRatio,U=T.CSSPropTween;T._registerComplexSpecialProp("bezier",{parser:function(N,X,J,Z,ct,Rt){X instanceof Array&&(X={values:X}),Rt=new E;var tt,_t,G,Pt=X.values,Et=Pt.length-1,At=[],ce={};if(0>Et)return ct;for(tt=0;Et>=tt;tt++)G=I(N,Pt[tt],Z,ct,Rt,Et!==tt),At[tt]=G.end;for(_t in X)ce[_t]=X[_t];return ce.values=At,ct=new U(N,"bezier",0,0,G.pt,2),ct.data=G,ct.plugin=Rt,ct.setRatio=C,ce.autoRotate===0&&(ce.autoRotate=!0),!ce.autoRotate||ce.autoRotate instanceof Array||(tt=ce.autoRotate===!0?0:Number(ce.autoRotate),ce.autoRotate=G.end.left!=null?[["left","top","rotation",tt,!1]]:G.end.x!=null?[["x","y","rotation",tt,!1]]:!1),ce.autoRotate&&(Z._transform||Z._enableTransforms(!1),G.autoRotate=Z._target._gsTransform,G.proxy.rotation=G.autoRotate.rotation||0,Z._overwriteProps.push("rotation")),Rt._onInitTween(G.proxy,ce,Z._tween),ct}})}},P._mod=function(w){for(var T,I=this._overwriteProps,C=I.length;--C>-1;)T=w[I[C]],T&&typeof T=="function"&&(this._mod[I[C]]=T)},P._kill=function(w){var T,I,C=this._props;for(T in this._beziers)if(T in w)for(delete this._beziers[T],delete this._func[T],I=C.length;--I>-1;)C[I]===T&&C.splice(I,1);if(C=this._autoRotate)for(I=C.length;--I>-1;)w[C[I][2]]&&C.splice(I,1);return this._super._kill.call(this,w)}}(),ln._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(x,a){var o,c,f,u,m=function(){x.call(this,"css"),this._overwriteProps.length=0,this.setRatio=m.prototype.setRatio},g=ln._gsDefine.globals,v={},S=m.prototype=new x("css");S.constructor=m,m.version="2.0.2",m.API=2,m.defaultTransformPerspective=0,m.defaultSkewType="compensated",m.defaultSmoothOrigin=!0,S="px",m.suffixMap={top:S,right:S,bottom:S,left:S,width:S,height:S,fontSize:S,padding:S,margin:S,perspective:S,lineHeight:""};var b,O,k,R,F,E,P,w,T=/(?:\-|\.|\b)(\d|\.|e\-)+/g,I=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,C=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,U=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,N=/(?:\d|\-|\+|=|#|\.)*/g,X=/opacity *= *([^)]*)/i,J=/opacity:([^;]*)/i,Z=/alpha\(opacity *=.+?\)/i,ct=/^(rgb|hsl)/,Rt=/([A-Z])/g,tt=/-([a-z])/gi,_t=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,G=function(V,et){return et.toUpperCase()},Pt=/(?:Left|Right|Width)/i,Et=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,At=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,ce=/,(?=[^\)]*(?:\(|$))/gi,re=/[\s,\(]/i,Ft=Math.PI/180,It=180/Math.PI,Nt={},Pe={style:{}},pe=ln.document||{createElement:function(){return Pe}},Wt=function(V,et){return pe.createElementNS?pe.createElementNS(et||"http://www.w3.org/1999/xhtml",V):pe.createElement(V)},$e=Wt("div"),Si=Wt("img"),Oe=m._internals={_specialProps:v},Ge=(ln.navigator||{}).userAgent||"",pi=function(){var V=Ge.indexOf("Android"),et=Wt("a");return k=Ge.indexOf("Safari")!==-1&&Ge.indexOf("Chrome")===-1&&(V===-1||parseFloat(Ge.substr(V+8,2))>3),F=k&&parseFloat(Ge.substr(Ge.indexOf("Version/")+8,2))<6,R=Ge.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge))&&(E=parseFloat(RegExp.$1)),et?(et.style.cssText="top:1px;opacity:.55;",/^0.55/.test(et.style.opacity)):!1}(),Di=function(V){return X.test(typeof V=="string"?V:(V.currentStyle?V.currentStyle.filter:V.style.filter)||"")?parseFloat(RegExp.$1)/100:1},gn=function(V){ln.console},Qi="",W="",Jt=function(V,et){et=et||$e;var lt,at,j=et.style;if(j[V]!==void 0)return V;for(V=V.charAt(0).toUpperCase()+V.substr(1),lt=["O","Moz","ms","Ms","Webkit"],at=5;--at>-1&&j[lt[at]+V]===void 0;);return at>=0?(W=at===3?"ms":lt[at],Qi="-"+W.toLowerCase()+"-",W+V):null},jt=(typeof window<"u"?window:pe.defaultView||{getComputedStyle:function(){}}).getComputedStyle,dt=m.getStyle=function(V,et,lt,at,j){var St;return pi||et!=="opacity"?(!at&&V.style[et]?St=V.style[et]:(lt=lt||jt(V))?St=lt[et]||lt.getPropertyValue(et)||lt.getPropertyValue(et.replace(Rt,"-$1").toLowerCase()):V.currentStyle&&(St=V.currentStyle[et]),j==null||St&&St!=="none"&&St!=="auto"&&St!=="auto auto"?St:j):Di(V)},pt=Oe.convertToPixels=function(V,et,lt,at,j){if(at==="px"||!at&&et!=="lineHeight")return lt;if(at==="auto"||!lt)return 0;var St,ht,Ot,Gt=Pt.test(et),zt=V,Tt=$e.style,he=0>lt,se=lt===1;if(he&&(lt=-lt),se&&(lt*=100),et!=="lineHeight"||at)if(at==="%"&&et.indexOf("border")!==-1)St=lt/100*(Gt?V.clientWidth:V.clientHeight);else{if(Tt.cssText="border:0 solid red;position:"+dt(V,"position")+";line-height:0;",at!=="%"&&zt.appendChild&&at.charAt(0)!=="v"&&at!=="rem")Tt[Gt?"borderLeftWidth":"borderTopWidth"]=lt+at;else{if(zt=V.parentNode||pe.body,dt(zt,"display").indexOf("flex")!==-1&&(Tt.position="absolute"),ht=zt._gsCache,Ot=a.ticker.frame,ht&&Gt&&ht.time===Ot)return ht.width*lt/100;Tt[Gt?"width":"height"]=lt+at}zt.appendChild($e),St=parseFloat($e[Gt?"offsetWidth":"offsetHeight"]),zt.removeChild($e),Gt&&at==="%"&&m.cacheWidths!==!1&&(ht=zt._gsCache=zt._gsCache||{},ht.time=Ot,ht.width=St/lt*100),St!==0||j||(St=pt(V,et,lt,at,!0))}else ht=jt(V).lineHeight,V.style.lineHeight=lt,St=parseFloat(jt(V).lineHeight),V.style.lineHeight=ht;return se&&(St/=100),he?-St:St},Dt=Oe.calculateOffset=function(V,et,lt){if(dt(V,"position",lt)!=="absolute")return 0;var at=et==="left"?"Left":"Top",j=dt(V,"margin"+at,lt);return V["offset"+at]-(pt(V,et,parseFloat(j),j.replace(N,""))||0)},ie=function(V,et){var lt,at,j,St={};if(et=et||jt(V,null))if(lt=et.length)for(;--lt>-1;)j=et[lt],(j.indexOf("-transform")===-1||ra===j)&&(St[j.replace(tt,G)]=et.getPropertyValue(j));else for(lt in et)(lt.indexOf("Transform")===-1||Sn===lt)&&(St[lt]=et[lt]);else if(et=V.currentStyle||V.style)for(lt in et)typeof lt=="string"&&St[lt]===void 0&&(St[lt.replace(tt,G)]=et[lt]);return pi||(St.opacity=Di(V)),at=co(V,et,!1),St.rotation=at.rotation,St.skewX=at.skewX,St.scaleX=at.scaleX,St.scaleY=at.scaleY,St.x=at.x,St.y=at.y,yr&&(St.z=at.z,St.rotationX=at.rotationX,St.rotationY=at.rotationY,St.scaleZ=at.scaleZ),St.filters&&delete St.filters,St},Kt=function(V,et,lt,at,j){var St,ht,Ot,Gt={},zt=V.style;for(ht in lt)ht!=="cssText"&&ht!=="length"&&isNaN(ht)&&(et[ht]!==(St=lt[ht])||j&&j[ht])&&ht.indexOf("Origin")===-1&&(typeof St=="number"||typeof St=="string")&&(Gt[ht]=St!=="auto"||ht!=="left"&&ht!=="top"?St!==""&&St!=="auto"&&St!=="none"||typeof et[ht]!="string"||et[ht].replace(U,"")===""?St:0:Dt(V,ht),zt[ht]!==void 0&&(Ot=new ni(zt,ht,zt[ht],Ot)));if(at)for(ht in at)ht!=="className"&&(Gt[ht]=at[ht]);return{difs:Gt,firstMPT:Ot}},z={width:["Left","Right"],height:["Top","Bottom"]},Q=["marginLeft","marginRight","marginTop","marginBottom"],st=function(V,et,lt){if((V.nodeName+"").toLowerCase()==="svg")return(lt||jt(V))[et]||0;if(V.getCTM&&Wl(V))return V.getBBox()[et]||0;var at=parseFloat(et==="width"?V.offsetWidth:V.offsetHeight),j=z[et],St=j.length;for(lt=lt||jt(V,null);--St>-1;)at-=parseFloat(dt(V,"padding"+j[St],lt,!0))||0,at-=parseFloat(dt(V,"border"+j[St]+"Width",lt,!0))||0;return at},nt=function(V,et){if(V==="contain"||V==="auto"||V==="auto auto")return V+" ";(V==null||V==="")&&(V="0 0");var lt,at=V.split(" "),j=V.indexOf("left")!==-1?"0%":V.indexOf("right")!==-1?"100%":at[0],St=V.indexOf("top")!==-1?"0%":V.indexOf("bottom")!==-1?"100%":at[1];if(at.length>3&&!et){for(at=V.split(", ").join(",").split(","),V=[],lt=0;lt<at.length;lt++)V.push(nt(at[lt]));return V.join(",")}return St==null?St=j==="center"?"50%":"0":St==="center"&&(St="50%"),(j==="center"||isNaN(parseFloat(j))&&(j+"").indexOf("=")===-1)&&(j="50%"),V=j+" "+St+(at.length>2?" "+at[2]:""),et&&(et.oxp=j.indexOf("%")!==-1,et.oyp=St.indexOf("%")!==-1,et.oxr=j.charAt(1)==="=",et.oyr=St.charAt(1)==="=",et.ox=parseFloat(j.replace(U,"")),et.oy=parseFloat(St.replace(U,"")),et.v=V),et||V},vt=function(V,et){return typeof V=="function"&&(V=V(w,P)),typeof V=="string"&&V.charAt(1)==="="?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2)):parseFloat(V)-parseFloat(et)||0},Ut=function(V,et){typeof V=="function"&&(V=V(w,P));var lt=typeof V=="string"&&V.charAt(1)==="=";return typeof V=="string"&&V.charAt(V.length-2)==="v"&&(V=(lt?V.substr(0,2):0)+window["inner"+(V.substr(-2)==="vh"?"Height":"Width")]*(parseFloat(lt?V.substr(2):V)/100)),V==null?et:lt?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2))+et:parseFloat(V)||0},qt=function(V,et,lt,at){var j,St,ht,Ot,Gt,zt=1e-6;return typeof V=="function"&&(V=V(w,P)),V==null?Ot=et:typeof V=="number"?Ot=V:(j=360,St=V.split("_"),Gt=V.charAt(1)==="=",ht=(Gt?parseInt(V.charAt(0)+"1",10)*parseFloat(St[0].substr(2)):parseFloat(St[0]))*(V.indexOf("rad")===-1?1:It)-(Gt?0:et),St.length&&(at&&(at[lt]=et+ht),V.indexOf("short")!==-1&&(ht%=j,ht!==ht%(j/2)&&(ht=0>ht?ht+j:ht-j)),V.indexOf("_cw")!==-1&&0>ht?ht=(ht+9999999999*j)%j-(ht/j|0)*j:V.indexOf("ccw")!==-1&&ht>0&&(ht=(ht-9999999999*j)%j-(ht/j|0)*j)),Ot=et+ht),zt>Ot&&Ot>-zt&&(Ot=0),Ot},Xt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ne=function(V,et,lt){return V=0>V?V+1:V>1?V-1:V,255*(1>6*V?et+(lt-et)*V*6:.5>V?lt:2>3*V?et+(lt-et)*(2/3-V)*6:et)+.5|0},Ie=m.parseColor=function(V,et){var lt,at,j,St,ht,Ot,Gt,zt,Tt,he,se;if(V)if(typeof V=="number")lt=[V>>16,V>>8&255,255&V];else{if(V.charAt(V.length-1)===","&&(V=V.substr(0,V.length-1)),Xt[V])lt=Xt[V];else if(V.charAt(0)==="#")V.length===4&&(at=V.charAt(1),j=V.charAt(2),St=V.charAt(3),V="#"+at+at+j+j+St+St),V=parseInt(V.substr(1),16),lt=[V>>16,V>>8&255,255&V];else if(V.substr(0,3)==="hsl")if(lt=se=V.match(T),et){if(V.indexOf("=")!==-1)return V.match(I)}else ht=Number(lt[0])%360/360,Ot=Number(lt[1])/100,Gt=Number(lt[2])/100,j=.5>=Gt?Gt*(Ot+1):Gt+Ot-Gt*Ot,at=2*Gt-j,lt.length>3&&(lt[3]=Number(lt[3])),lt[0]=Ne(ht+1/3,at,j),lt[1]=Ne(ht,at,j),lt[2]=Ne(ht-1/3,at,j);else lt=V.match(T)||Xt.transparent;lt[0]=Number(lt[0]),lt[1]=Number(lt[1]),lt[2]=Number(lt[2]),lt.length>3&&(lt[3]=Number(lt[3]))}else lt=Xt.black;return et&&!se&&(at=lt[0]/255,j=lt[1]/255,St=lt[2]/255,zt=Math.max(at,j,St),Tt=Math.min(at,j,St),Gt=(zt+Tt)/2,zt===Tt?ht=Ot=0:(he=zt-Tt,Ot=Gt>.5?he/(2-zt-Tt):he/(zt+Tt),ht=zt===at?(j-St)/he+(St>j?6:0):zt===j?(St-at)/he+2:(at-j)/he+4,ht*=60),lt[0]=ht+.5|0,lt[1]=100*Ot+.5|0,lt[2]=100*Gt+.5|0),lt},me=function(V,et){var lt,at,j,St=V.match(we)||[],ht=0,Ot="";if(!St.length)return V;for(lt=0;lt<St.length;lt++)at=St[lt],j=V.substr(ht,V.indexOf(at,ht)-ht),ht+=j.length+at.length,at=Ie(at,et),at.length===3&&at.push(1),Ot+=j+(et?"hsla("+at[0]+","+at[1]+"%,"+at[2]+"%,"+at[3]:"rgba("+at.join(","))+")";return Ot+V.substr(ht)},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(S in Xt)we+="|"+S+"\\b";we=new RegExp(we+")","gi"),m.colorStringFilter=function(V){var et,lt=V[0]+" "+V[1];we.test(lt)&&(et=lt.indexOf("hsl(")!==-1||lt.indexOf("hsla(")!==-1,V[0]=me(V[0],et),V[1]=me(V[1],et)),we.lastIndex=0},a.defaultStringFilter||(a.defaultStringFilter=m.colorStringFilter);var yi=function(V,et,lt,at){if(V==null)return function(se){return se};var j,St=et?(V.match(we)||[""])[0]:"",ht=V.split(St).join("").match(C)||[],Ot=V.substr(0,V.indexOf(ht[0])),Gt=V.charAt(V.length-1)===")"?")":"",zt=V.indexOf(" ")!==-1?" ":",",Tt=ht.length,he=Tt>0?ht[0].replace(T,""):"";return Tt?j=et?function(se){var te,ye,ue,je;if(typeof se=="number")se+=he;else if(at&&ce.test(se)){for(je=se.replace(ce,"|").split("|"),ue=0;ue<je.length;ue++)je[ue]=j(je[ue]);return je.join(",")}if(te=(se.match(we)||[St])[0],ye=se.split(te).join("").match(C)||[],ue=ye.length,Tt>ue--)for(;++ue<Tt;)ye[ue]=lt?ye[(ue-1)/2|0]:ht[ue];return Ot+ye.join(zt)+zt+te+Gt+(se.indexOf("inset")!==-1?" inset":"")}:function(se){var te,ye,ue;if(typeof se=="number")se+=he;else if(at&&ce.test(se)){for(ye=se.replace(ce,"|").split("|"),ue=0;ue<ye.length;ue++)ye[ue]=j(ye[ue]);return ye.join(",")}if(te=se.match(C)||[],ue=te.length,Tt>ue--)for(;++ue<Tt;)te[ue]=lt?te[(ue-1)/2|0]:ht[ue];return Ot+te.join(zt)+Gt}:function(se){return se}},Ei=function(V){return V=V.split(","),function(et,lt,at,j,St,ht,Ot){var Gt,zt=(lt+"").split(" ");for(Ot={},Gt=0;4>Gt;Gt++)Ot[V[Gt]]=zt[Gt]=zt[Gt]||zt[(Gt-1)/2>>0];return j.parse(et,Ot,St,ht)}},ni=(Oe._setPluginRatio=function(V){this.plugin.setRatio(V);for(var et,lt,at,j,St,ht=this.data,Ot=ht.proxy,Gt=ht.firstMPT,zt=1e-6;Gt;)et=Ot[Gt.v],Gt.r?et=Gt.r(et):zt>et&&et>-zt&&(et=0),Gt.t[Gt.p]=et,Gt=Gt._next;if(ht.autoRotate&&(ht.autoRotate.rotation=ht.mod?ht.mod.call(this._tween,Ot.rotation,this.t,this._tween):Ot.rotation),V===1||V===0)for(Gt=ht.firstMPT,St=V===1?"e":"b";Gt;){if(lt=Gt.t,lt.type){if(lt.type===1){for(j=lt.xs0+lt.s+lt.xs1,at=1;at<lt.l;at++)j+=lt["xn"+at]+lt["xs"+(at+1)];lt[St]=j}}else lt[St]=lt.s+lt.xs0;Gt=Gt._next}},function(V,et,lt,at,j){this.t=V,this.p=et,this.v=lt,this.r=j,at&&(at._prev=this,this._next=at)}),bi=(Oe._parseToProxy=function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he=at,se={},te={},ye=lt._transform,ue=Nt;for(lt._transform=null,Nt=et,at=Tt=lt.parse(V,et,at,j),Nt=ue,St&&(lt._transform=ye,he&&(he._prev=null,he._prev&&(he._prev._next=null)));at&&at!==he;){if(at.type<=1&&(Ot=at.p,te[Ot]=at.s+at.c,se[Ot]=at.s,St||(zt=new ni(at,"s",Ot,zt,at.r),at.c=0),at.type===1))for(ht=at.l;--ht>0;)Gt="xn"+ht,Ot=at.p+"_"+Gt,te[Ot]=at.data[Gt],se[Ot]=at[Gt],St||(zt=new ni(at,Gt,Ot,zt,at.rxp[Gt]));at=at._next}return{proxy:se,end:te,firstMPT:zt,pt:Tt}},Oe.CSSPropTween=function(V,et,lt,at,j,St,ht,Ot,Gt,zt,Tt){this.t=V,this.p=et,this.s=lt,this.c=at,this.n=ht||et,V instanceof bi||u.push(this.n),this.r=Ot&&(typeof Ot=="function"?Ot:Math.round),this.type=St||0,Gt&&(this.pr=Gt,o=!0),this.b=zt===void 0?lt:zt,this.e=Tt===void 0?lt+at:Tt,j&&(this._next=j,j._prev=this)}),Yr=function(V,et,lt,at,j,St){var ht=new bi(V,et,lt,at-lt,j,-1,St);return ht.b=lt,ht.e=ht.xs0=at,ht},ar=m.parseComplex=function(V,et,lt,at,j,St,ht,Ot,Gt,zt){lt=lt||St||"",typeof at=="function"&&(at=at(w,P)),ht=new bi(V,et,0,0,ht,zt?2:1,null,!1,Ot,lt,at),at+="",j&&we.test(at+lt)&&(at=[lt,at],m.colorStringFilter(at),lt=at[0],at=at[1]);var Tt,he,se,te,ye,ue,je,He,ci,Be,_e,Fe,fe,mi=lt.split(", ").join(",").split(" "),Le=at.split(", ").join(",").split(" "),xe=mi.length,Re=b!==!1;for((at.indexOf(",")!==-1||lt.indexOf(",")!==-1)&&((at+lt).indexOf("rgb")!==-1||(at+lt).indexOf("hsl")!==-1?(mi=mi.join(" ").replace(ce,", ").split(" "),Le=Le.join(" ").replace(ce,", ").split(" ")):(mi=mi.join(" ").split(",").join(", ").split(" "),Le=Le.join(" ").split(",").join(", ").split(" ")),xe=mi.length),xe!==Le.length&&(mi=(St||"").split(" "),xe=mi.length),ht.plugin=Gt,ht.setRatio=zt,we.lastIndex=0,Tt=0;xe>Tt;Tt++)if(te=mi[Tt],ye=Le[Tt]+"",He=parseFloat(te),He||He===0)ht.appendXtra("",He,vt(ye,He),ye.replace(I,""),Re&&ye.indexOf("px")!==-1?Math.round:!1,!0);else if(j&&we.test(te))Fe=ye.indexOf(")")+1,Fe=")"+(Fe?ye.substr(Fe):""),fe=ye.indexOf("hsl")!==-1&&pi,Be=ye,te=Ie(te,fe),ye=Ie(ye,fe),ci=te.length+ye.length>6,ci&&!pi&&ye[3]===0?(ht["xs"+ht.l]+=ht.l?" transparent":"transparent",ht.e=ht.e.split(Le[Tt]).join("transparent")):(pi||(ci=!1),fe?ht.appendXtra(Be.substr(0,Be.indexOf("hsl"))+(ci?"hsla(":"hsl("),te[0],vt(ye[0],te[0]),",",!1,!0).appendXtra("",te[1],vt(ye[1],te[1]),"%,",!1).appendXtra("",te[2],vt(ye[2],te[2]),ci?"%,":"%"+Fe,!1):ht.appendXtra(Be.substr(0,Be.indexOf("rgb"))+(ci?"rgba(":"rgb("),te[0],ye[0]-te[0],",",Math.round,!0).appendXtra("",te[1],ye[1]-te[1],",",Math.round).appendXtra("",te[2],ye[2]-te[2],ci?",":Fe,Math.round),ci&&(te=te.length<4?1:te[3],ht.appendXtra("",te,(ye.length<4?1:ye[3])-te,Fe,!1))),we.lastIndex=0;else if(ue=te.match(T)){if(je=ye.match(I),!je||je.length!==ue.length)return ht;for(se=0,he=0;he<ue.length;he++)_e=ue[he],Be=te.indexOf(_e,se),ht.appendXtra(te.substr(se,Be-se),Number(_e),vt(je[he],_e),"",Re&&te.substr(Be+_e.length,2)==="px"?Math.round:!1,he===0),se=Be+_e.length;ht["xs"+ht.l]+=te.substr(se)}else ht["xs"+ht.l]+=ht.l||ht["xs"+ht.l]?" "+ye:ye;if(at.indexOf("=")!==-1&&ht.data){for(Fe=ht.xs0+ht.data.s,Tt=1;Tt<ht.l;Tt++)Fe+=ht["xs"+Tt]+ht.data["xn"+Tt];ht.e=Fe+ht["xs"+Tt]}return ht.l||(ht.type=-1,ht.xs0=ht.e),ht.xfirst||ht},sn=9;for(S=bi.prototype,S.l=S.pr=0;--sn>0;)S["xn"+sn]=0,S["xs"+sn]="";S.xs0="",S._next=S._prev=S.xfirst=S.data=S.plugin=S.setRatio=S.rxp=null,S.appendXtra=function(V,et,lt,at,j,St){var ht=this,Ot=ht.l;return ht["xs"+Ot]+=St&&(Ot||ht["xs"+Ot])?" "+V:V||"",lt||Ot===0||ht.plugin?(ht.l++,ht.type=ht.setRatio?2:1,ht["xs"+ht.l]=at||"",Ot>0?(ht.data["xn"+Ot]=et+lt,ht.rxp["xn"+Ot]=j,ht["xn"+Ot]=et,ht.plugin||(ht.xfirst=new bi(ht,"xn"+Ot,et,lt,ht.xfirst||ht,0,ht.n,j,ht.pr),ht.xfirst.xs0=0),ht):(ht.data={s:et+lt},ht.rxp={},ht.s=et,ht.c=lt,ht.r=j,ht)):(ht["xs"+Ot]+=et+(at||""),ht)};var Po=function(V,et){et=et||{},this.p=et.prefix&&Jt(V)||V,v[V]=v[this.p]=this,this.format=et.formatter||yi(et.defaultValue,et.color,et.collapsible,et.multi),et.parser&&(this.parse=et.parser),this.clrs=et.color,this.multi=et.multi,this.keyword=et.keyword,this.dflt=et.defaultValue,this.pr=et.priority||0},zi=Oe._registerComplexSpecialProp=function(V,et,lt){typeof et!="object"&&(et={parser:lt});var at,j=V.split(","),St=et.defaultValue;for(lt=lt||[St],at=0;at<j.length;at++)et.prefix=at===0&&et.prefix,et.defaultValue=lt[at]||St,new Po(j[at],et)},Zo=Oe._registerPluginProp=function(V){if(!v[V]){var et=V.charAt(0).toUpperCase()+V.substr(1)+"Plugin";zi(V,{parser:function(lt,at,j,St,ht,Ot,Gt){var zt=g.com.greensock.plugins[et];return zt?(zt._cssRegister(),v[j].parse(lt,at,j,St,ht,Ot,Gt)):(gn("Error: "+et+" js file not loaded."),ht)}})}};S=Po.prototype,S.parseComplex=function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he,se=this.keyword;if(this.multi&&(ce.test(lt)||ce.test(et)?(Ot=et.replace(ce,"|").split("|"),Gt=lt.replace(ce,"|").split("|")):se&&(Ot=[et],Gt=[lt])),Gt){for(zt=Gt.length>Ot.length?Gt.length:Ot.length,ht=0;zt>ht;ht++)et=Ot[ht]=Ot[ht]||this.dflt,lt=Gt[ht]=Gt[ht]||this.dflt,se&&(Tt=et.indexOf(se),he=lt.indexOf(se),Tt!==he&&(he===-1?Ot[ht]=Ot[ht].split(se).join(""):Tt===-1&&(Ot[ht]+=" "+se)));et=Ot.join(", "),lt=Gt.join(", ")}return ar(V,this.p,et,lt,this.clrs,this.dflt,at,this.pr,j,St)},S.parse=function(V,et,lt,at,j,St,ht){return this.parseComplex(V.style,this.format(dt(V,this.p,f,!1,this.dflt)),this.format(et),j,St)},m.registerSpecialProp=function(V,et,lt){zi(V,{parser:function(at,j,St,ht,Ot,Gt,zt){var Tt=new bi(at,St,0,0,Ot,2,St,!1,lt);return Tt.plugin=Gt,Tt.setRatio=et(at,j,ht._tween,St),Tt},priority:lt})},m.useSVGTransformAttr=!0;var lo,Hl="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Sn=Jt("transform"),ra=Qi+"transform",ys=Jt("transformOrigin"),yr=Jt("perspective")!==null,oa=Oe.Transform=function(){this.perspective=parseFloat(m.defaultTransformPerspective)||0,this.force3D=m.defaultForce3D!==!1&&yr?m.defaultForce3D||"auto":!1},Ja=ln.SVGElement,Vl=function(V,et,lt){var at,j=pe.createElementNS("http://www.w3.org/2000/svg",V),St=/([a-z])([A-Z])/g;for(at in lt)j.setAttributeNS(null,at.replace(St,"$1-$2").toLowerCase(),lt[at]);return et.appendChild(j),j},ho=pe.documentElement||{},Ih=function(){var V,et,lt,at=E||/Android/i.test(Ge)&&!ln.chrome;return pe.createElementNS&&!at&&(V=Vl("svg",ho),et=Vl("rect",V,{width:100,height:50,x:100}),lt=et.getBoundingClientRect().width,et.style[ys]="50% 50%",et.style[Sn]="scaleX(0.5)",at=lt===et.getBoundingClientRect().width&&!(R&&yr),ho.removeChild(V)),at}(),sa=function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he,se,te,ye,ue,je,He,ci,Be,_e=V._gsTransform,Fe=la(V,!0);_e&&(ci=_e.xOrigin,Be=_e.yOrigin),(!at||(ht=at.split(" ")).length<2)&&(se=V.getBBox(),se.x===0&&se.y===0&&se.width+se.height===0&&(se={x:parseFloat(V.hasAttribute("x")?V.getAttribute("x"):V.hasAttribute("cx")?V.getAttribute("cx"):0)||0,y:parseFloat(V.hasAttribute("y")?V.getAttribute("y"):V.hasAttribute("cy")?V.getAttribute("cy"):0)||0,width:0,height:0}),et=nt(et).split(" "),ht=[(et[0].indexOf("%")!==-1?parseFloat(et[0])/100*se.width:parseFloat(et[0]))+se.x,(et[1].indexOf("%")!==-1?parseFloat(et[1])/100*se.height:parseFloat(et[1]))+se.y]),lt.xOrigin=zt=parseFloat(ht[0]),lt.yOrigin=Tt=parseFloat(ht[1]),at&&Fe!==aa&&(he=Fe[0],se=Fe[1],te=Fe[2],ye=Fe[3],ue=Fe[4],je=Fe[5],He=he*ye-se*te,He&&(Ot=zt*(ye/He)+Tt*(-te/He)+(te*je-ye*ue)/He,Gt=zt*(-se/He)+Tt*(he/He)-(he*je-se*ue)/He,zt=lt.xOrigin=ht[0]=Ot,Tt=lt.yOrigin=ht[1]=Gt)),_e&&(St&&(lt.xOffset=_e.xOffset,lt.yOffset=_e.yOffset,_e=lt),j||j!==!1&&m.defaultSmoothOrigin!==!1?(Ot=zt-ci,Gt=Tt-Be,_e.xOffset+=Ot*Fe[0]+Gt*Fe[2]-Ot,_e.yOffset+=Ot*Fe[1]+Gt*Fe[3]-Gt):_e.xOffset=_e.yOffset=0),St||V.setAttribute("data-svg-origin",ht.join(" "))},$a=function(V){var et,lt=Wt("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),at=this.parentNode,j=this.nextSibling,St=this.style.cssText;if(ho.appendChild(lt),lt.appendChild(this),this.style.display="block",V)try{et=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=$a}catch{}else this._originalGetBBox&&(et=this._originalGetBBox());return j?at.insertBefore(this,j):at.appendChild(this),ho.removeChild(lt),this.style.cssText=St,et},uo=function(V){try{return V.getBBox()}catch{return $a.call(V,!0)}},Wl=function(V){return!(!Ja||!V.getCTM||V.parentNode&&!V.ownerSVGElement||!uo(V))},aa=[1,0,0,1,0,0],la=function(V,et){var lt,at,j,St,ht,Ot,Gt=V._gsTransform||new oa,zt=1e5,Tt=V.style;if(Sn?at=dt(V,ra,null,!0):V.currentStyle&&(at=V.currentStyle.filter.match(Et),at=at&&at.length===4?[at[0].substr(4),Number(at[2].substr(4)),Number(at[1].substr(4)),at[3].substr(4),Gt.x||0,Gt.y||0].join(","):""),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",!Sn||!(Ot=!jt(V)||jt(V).display==="none")&&V.parentNode||(Ot&&(St=Tt.display,Tt.display="block"),V.parentNode||(ht=1,ho.appendChild(V)),at=dt(V,ra,null,!0),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",St?Tt.display=St:Ot&&_s(Tt,"display"),ht&&ho.removeChild(V)),(Gt.svg||V.getCTM&&Wl(V))&&(lt&&(Tt[Sn]+"").indexOf("matrix")!==-1&&(at=Tt[Sn],lt=0),j=V.getAttribute("transform"),lt&&j&&(j=V.transform.baseVal.consolidate().matrix,at="matrix("+j.a+","+j.b+","+j.c+","+j.d+","+j.e+","+j.f+")",lt=0)),lt)return aa;for(j=(at||"").match(T)||[],sn=j.length;--sn>-1;)St=Number(j[sn]),j[sn]=(ht=St-(St|=0))?(ht*zt+(0>ht?-.5:.5)|0)/zt+St:St;return et&&j.length>6?[j[0],j[1],j[4],j[5],j[12],j[13]]:j},co=Oe.getTransform=function(V,et,lt,at){if(V._gsTransform&<&&!at)return V._gsTransform;var j,St,ht,Ot,Gt,zt,Tt=lt?V._gsTransform||new oa:new oa,he=Tt.scaleX<0,se=2e-5,te=1e5,ye=yr&&(parseFloat(dt(V,ys,et,!1,"0 0 0").split(" ")[2])||Tt.zOrigin)||0,ue=parseFloat(m.defaultTransformPerspective)||0;if(Tt.svg=!(!V.getCTM||!Wl(V)),Tt.svg&&(sa(V,dt(V,ys,et,!1,"50% 50%")+"",Tt,V.getAttribute("data-svg-origin")),lo=m.useSVGTransformAttr||Ih),j=la(V),j!==aa){if(j.length===16){var je,He,ci,Be,_e,Fe=j[0],fe=j[1],mi=j[2],Le=j[3],xe=j[4],Re=j[5],En=j[6],qn=j[7],ki=j[8],Bi=j[9],Hi=j[10],nn=j[12],rn=j[13],cn=j[14],fn=j[11],Gi=Math.atan2(En,Hi);Tt.zOrigin&&(cn=-Tt.zOrigin,nn=ki*cn-j[12],rn=Bi*cn-j[13],cn=Hi*cn+Tt.zOrigin-j[14]),Tt.rotationX=Gi*It,Gi&&(Be=Math.cos(-Gi),_e=Math.sin(-Gi),je=xe*Be+ki*_e,He=Re*Be+Bi*_e,ci=En*Be+Hi*_e,ki=xe*-_e+ki*Be,Bi=Re*-_e+Bi*Be,Hi=En*-_e+Hi*Be,fn=qn*-_e+fn*Be,xe=je,Re=He,En=ci),Gi=Math.atan2(-mi,Hi),Tt.rotationY=Gi*It,Gi&&(Be=Math.cos(-Gi),_e=Math.sin(-Gi),je=Fe*Be-ki*_e,He=fe*Be-Bi*_e,ci=mi*Be-Hi*_e,Bi=fe*_e+Bi*Be,Hi=mi*_e+Hi*Be,fn=Le*_e+fn*Be,Fe=je,fe=He,mi=ci),Gi=Math.atan2(fe,Fe),Tt.rotation=Gi*It,Gi&&(Be=Math.cos(Gi),_e=Math.sin(Gi),je=Fe*Be+fe*_e,He=xe*Be+Re*_e,ci=ki*Be+Bi*_e,fe=fe*Be-Fe*_e,Re=Re*Be-xe*_e,Bi=Bi*Be-ki*_e,Fe=je,xe=He,ki=ci),Tt.rotationX&&Math.abs(Tt.rotationX)+Math.abs(Tt.rotation)>359.9&&(Tt.rotationX=Tt.rotation=0,Tt.rotationY=180-Tt.rotationY),Gi=Math.atan2(xe,Re),Tt.scaleX=(Math.sqrt(Fe*Fe+fe*fe+mi*mi)*te+.5|0)/te,Tt.scaleY=(Math.sqrt(Re*Re+En*En)*te+.5|0)/te,Tt.scaleZ=(Math.sqrt(ki*ki+Bi*Bi+Hi*Hi)*te+.5|0)/te,Fe/=Tt.scaleX,xe/=Tt.scaleY,fe/=Tt.scaleX,Re/=Tt.scaleY,Math.abs(Gi)>se?(Tt.skewX=Gi*It,xe=0,Tt.skewType!=="simple"&&(Tt.scaleY*=1/Math.cos(Gi))):Tt.skewX=0,Tt.perspective=fn?1/(0>fn?-fn:fn):0,Tt.x=nn,Tt.y=rn,Tt.z=cn,Tt.svg&&(Tt.x-=Tt.xOrigin-(Tt.xOrigin*Fe-Tt.yOrigin*xe),Tt.y-=Tt.yOrigin-(Tt.yOrigin*fe-Tt.xOrigin*Re))}else if(!yr||at||!j.length||Tt.x!==j[4]||Tt.y!==j[5]||!Tt.rotationX&&!Tt.rotationY){var Ni=j.length>=6,ji=Ni?j[0]:1,gi=j[1]||0,fo=j[2]||0,Un=Ni?j[3]:1;Tt.x=j[4]||0,Tt.y=j[5]||0,ht=Math.sqrt(ji*ji+gi*gi),Ot=Math.sqrt(Un*Un+fo*fo),Gt=ji||gi?Math.atan2(gi,ji)*It:Tt.rotation||0,zt=fo||Un?Math.atan2(fo,Un)*It+Gt:Tt.skewX||0,Tt.scaleX=ht,Tt.scaleY=Ot,Tt.rotation=Gt,Tt.skewX=zt,yr&&(Tt.rotationX=Tt.rotationY=Tt.z=0,Tt.perspective=ue,Tt.scaleZ=1),Tt.svg&&(Tt.x-=Tt.xOrigin-(Tt.xOrigin*ji+Tt.yOrigin*fo),Tt.y-=Tt.yOrigin-(Tt.xOrigin*gi+Tt.yOrigin*Un))}Math.abs(Tt.skewX)>90&&Math.abs(Tt.skewX)<270&&(he?(Tt.scaleX*=-1,Tt.skewX+=Tt.rotation<=0?180:-180,Tt.rotation+=Tt.rotation<=0?180:-180):(Tt.scaleY*=-1,Tt.skewX+=Tt.skewX<=0?180:-180)),Tt.zOrigin=ye;for(St in Tt)Tt[St]<se&&Tt[St]>-se&&(Tt[St]=0)}return lt&&(V._gsTransform=Tt,Tt.svg&&(lo&&V.style[Sn]?a.delayedCall(.001,function(){_s(V.style,Sn)}):!lo&&V.getAttribute("transform")&&a.delayedCall(.001,function(){V.removeAttribute("transform")}))),Tt},jl=function(V){var et,lt,at=this.data,j=-at.rotation*Ft,St=j+at.skewX*Ft,ht=1e5,Ot=(Math.cos(j)*at.scaleX*ht|0)/ht,Gt=(Math.sin(j)*at.scaleX*ht|0)/ht,zt=(Math.sin(St)*-at.scaleY*ht|0)/ht,Tt=(Math.cos(St)*at.scaleY*ht|0)/ht,he=this.t.style,se=this.t.currentStyle;if(se){lt=Gt,Gt=-zt,zt=-lt,et=se.filter,he.filter="";var te,ye,ue=this.t.offsetWidth,je=this.t.offsetHeight,He=se.position!=="absolute",ci="progid:DXImageTransform.Microsoft.Matrix(M11="+Ot+", M12="+Gt+", M21="+zt+", M22="+Tt,Be=at.x+ue*at.xPercent/100,_e=at.y+je*at.yPercent/100;if(at.ox!=null&&(te=(at.oxp?ue*at.ox*.01:at.ox)-ue/2,ye=(at.oyp?je*at.oy*.01:at.oy)-je/2,Be+=te-(te*Ot+ye*Gt),_e+=ye-(te*zt+ye*Tt)),He?(te=ue/2,ye=je/2,ci+=", Dx="+(te-(te*Ot+ye*Gt)+Be)+", Dy="+(ye-(te*zt+ye*Tt)+_e)+")"):ci+=", sizingMethod='auto expand')",et.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?he.filter=et.replace(At,ci):he.filter=ci+" "+et,(V===0||V===1)&&Ot===1&&Gt===0&&zt===0&&Tt===1&&(He&&ci.indexOf("Dx=0, Dy=0")===-1||X.test(et)&&parseFloat(RegExp.$1)!==100||et.indexOf(et.indexOf("Alpha"))===-1&&he.removeAttribute("filter")),!He){var Fe,fe,mi,Le=8>E?1:-1;for(te=at.ieOffsetX||0,ye=at.ieOffsetY||0,at.ieOffsetX=Math.round((ue-((0>Ot?-Ot:Ot)*ue+(0>Gt?-Gt:Gt)*je))/2+Be),at.ieOffsetY=Math.round((je-((0>Tt?-Tt:Tt)*je+(0>zt?-zt:zt)*ue))/2+_e),sn=0;4>sn;sn++)fe=Q[sn],Fe=se[fe],lt=Fe.indexOf("px")!==-1?parseFloat(Fe):pt(this.t,fe,parseFloat(Fe),Fe.replace(N,""))||0,mi=lt!==at[fe]?2>sn?-at.ieOffsetX:-at.ieOffsetY:2>sn?te-at.ieOffsetX:ye-at.ieOffsetY,he[fe]=(at[fe]=Math.round(lt-mi*(sn===0||sn===2?1:Le)))+"px"}}},Dh=Oe.set3DTransformRatio=Oe.setTransformRatio=function(V){var et,lt,at,j,St,ht,Ot,Gt,zt,Tt,he,se,te,ye,ue,je,He,ci,Be,_e,Fe,fe,mi,Le=this.data,xe=this.t.style,Re=Le.rotation,En=Le.rotationX,qn=Le.rotationY,ki=Le.scaleX,Bi=Le.scaleY,Hi=Le.scaleZ,nn=Le.x,rn=Le.y,cn=Le.z,fn=Le.svg,Gi=Le.perspective,Ni=Le.force3D,ji=Le.skewY,gi=Le.skewX;if(ji&&(gi+=ji,Re+=ji),((V===1||V===0)&&Ni==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!Ni)&&!cn&&!Gi&&!qn&&!En&&Hi===1||lo&&fn||!yr)return void(Re||gi||fn?(Re*=Ft,fe=gi*Ft,mi=1e5,lt=Math.cos(Re)*ki,St=Math.sin(Re)*ki,at=Math.sin(Re-fe)*-Bi,ht=Math.cos(Re-fe)*Bi,fe&&Le.skewType==="simple"&&(et=Math.tan(fe-ji*Ft),et=Math.sqrt(1+et*et),at*=et,ht*=et,ji&&(et=Math.tan(ji*Ft),et=Math.sqrt(1+et*et),lt*=et,St*=et)),fn&&(nn+=Le.xOrigin-(Le.xOrigin*lt+Le.yOrigin*at)+Le.xOffset,rn+=Le.yOrigin-(Le.xOrigin*St+Le.yOrigin*ht)+Le.yOffset,lo&&(Le.xPercent||Le.yPercent)&&(ue=this.t.getBBox(),nn+=.01*Le.xPercent*ue.width,rn+=.01*Le.yPercent*ue.height),ue=1e-6,ue>nn&&nn>-ue&&(nn=0),ue>rn&&rn>-ue&&(rn=0)),Be=(lt*mi|0)/mi+","+(St*mi|0)/mi+","+(at*mi|0)/mi+","+(ht*mi|0)/mi+","+nn+","+rn+")",fn&&lo?this.t.setAttribute("transform","matrix("+Be):xe[Sn]=(Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) matrix(":"matrix(")+Be):xe[Sn]=(Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) matrix(":"matrix(")+ki+",0,0,"+Bi+","+nn+","+rn+")");if(R&&(ue=1e-4,ue>ki&&ki>-ue&&(ki=Hi=2e-5),ue>Bi&&Bi>-ue&&(Bi=Hi=2e-5),!Gi||Le.z||Le.rotationX||Le.rotationY||(Gi=0)),Re||gi)Re*=Ft,je=lt=Math.cos(Re),He=St=Math.sin(Re),gi&&(Re-=gi*Ft,je=Math.cos(Re),He=Math.sin(Re),Le.skewType==="simple"&&(et=Math.tan((gi-ji)*Ft),et=Math.sqrt(1+et*et),je*=et,He*=et,Le.skewY&&(et=Math.tan(ji*Ft),et=Math.sqrt(1+et*et),lt*=et,St*=et))),at=-He,ht=je;else{if(!(qn||En||Hi!==1||Gi||fn))return void(xe[Sn]=(Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) translate3d(":"translate3d(")+nn+"px,"+rn+"px,"+cn+"px)"+(ki!==1||Bi!==1?" scale("+ki+","+Bi+")":""));lt=ht=1,at=St=0}Tt=1,j=Ot=Gt=zt=he=se=0,te=Gi?-1/Gi:0,ye=Le.zOrigin,ue=1e-6,_e=",",Fe="0",Re=qn*Ft,Re&&(je=Math.cos(Re),He=Math.sin(Re),Gt=-He,he=te*-He,j=lt*He,Ot=St*He,Tt=je,te*=je,lt*=je,St*=je),Re=En*Ft,Re&&(je=Math.cos(Re),He=Math.sin(Re),et=at*je+j*He,ci=ht*je+Ot*He,zt=Tt*He,se=te*He,j=at*-He+j*je,Ot=ht*-He+Ot*je,Tt*=je,te*=je,at=et,ht=ci),Hi!==1&&(j*=Hi,Ot*=Hi,Tt*=Hi,te*=Hi),Bi!==1&&(at*=Bi,ht*=Bi,zt*=Bi,se*=Bi),ki!==1&&(lt*=ki,St*=ki,Gt*=ki,he*=ki),(ye||fn)&&(ye&&(nn+=j*-ye,rn+=Ot*-ye,cn+=Tt*-ye+ye),fn&&(nn+=Le.xOrigin-(Le.xOrigin*lt+Le.yOrigin*at)+Le.xOffset,rn+=Le.yOrigin-(Le.xOrigin*St+Le.yOrigin*ht)+Le.yOffset),ue>nn&&nn>-ue&&(nn=Fe),ue>rn&&rn>-ue&&(rn=Fe),ue>cn&&cn>-ue&&(cn=0)),Be=Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) matrix3d(":"matrix3d(",Be+=(ue>lt&<>-ue?Fe:lt)+_e+(ue>St&&St>-ue?Fe:St)+_e+(ue>Gt&&Gt>-ue?Fe:Gt),Be+=_e+(ue>he&&he>-ue?Fe:he)+_e+(ue>at&&at>-ue?Fe:at)+_e+(ue>ht&&ht>-ue?Fe:ht),En||qn||Hi!==1?(Be+=_e+(ue>zt&&zt>-ue?Fe:zt)+_e+(ue>se&&se>-ue?Fe:se)+_e+(ue>j&&j>-ue?Fe:j),Be+=_e+(ue>Ot&&Ot>-ue?Fe:Ot)+_e+(ue>Tt&&Tt>-ue?Fe:Tt)+_e+(ue>te&&te>-ue?Fe:te)+_e):Be+=",0,0,0,0,1,0,",Be+=nn+_e+rn+_e+cn+_e+(Gi?1+-cn/Gi:1)+")",xe[Sn]=Be};S=oa.prototype,S.x=S.y=S.z=S.skewX=S.skewY=S.rotation=S.rotationX=S.rotationY=S.zOrigin=S.xPercent=S.yPercent=S.xOffset=S.yOffset=0,S.scaleX=S.scaleY=S.scaleZ=1,zi("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(V,et,lt,at,j,St,ht){if(at._lastParsedTransform===ht)return j;at._lastParsedTransform=ht;var Ot,Gt=ht.scale&&typeof ht.scale=="function"?ht.scale:0;typeof ht[lt]=="function"&&(Ot=ht[lt],ht[lt]=et),Gt&&(ht.scale=Gt(w,V));var zt,Tt,he,se,te,ye,ue,je,He,ci=V._gsTransform,Be=V.style,_e=1e-6,Fe=Hl.length,fe=ht,mi={},Le="transformOrigin",xe=co(V,f,!0,fe.parseTransform),Re=fe.transform&&(typeof fe.transform=="function"?fe.transform(w,P):fe.transform);if(xe.skewType=fe.skewType||xe.skewType||m.defaultSkewType,at._transform=xe,"rotationZ"in fe&&(fe.rotation=fe.rotationZ),Re&&typeof Re=="string"&&Sn)Tt=$e.style,Tt[Sn]=Re,Tt.display="block",Tt.position="absolute",Re.indexOf("%")!==-1&&(Tt.width=dt(V,"width"),Tt.height=dt(V,"height")),pe.body.appendChild($e),zt=co($e,null,!1),xe.skewType==="simple"&&(zt.scaleY*=Math.cos(zt.skewX*Ft)),xe.svg&&(ye=xe.xOrigin,ue=xe.yOrigin,zt.x-=xe.xOffset,zt.y-=xe.yOffset,(fe.transformOrigin||fe.svgOrigin)&&(Re={},sa(V,nt(fe.transformOrigin),Re,fe.svgOrigin,fe.smoothOrigin,!0),ye=Re.xOrigin,ue=Re.yOrigin,zt.x-=Re.xOffset-xe.xOffset,zt.y-=Re.yOffset-xe.yOffset),(ye||ue)&&(je=la($e,!0),zt.x-=ye-(ye*je[0]+ue*je[2]),zt.y-=ue-(ye*je[1]+ue*je[3]))),pe.body.removeChild($e),zt.perspective||(zt.perspective=xe.perspective),fe.xPercent!=null&&(zt.xPercent=Ut(fe.xPercent,xe.xPercent)),fe.yPercent!=null&&(zt.yPercent=Ut(fe.yPercent,xe.yPercent));else if(typeof fe=="object"){if(zt={scaleX:Ut(fe.scaleX!=null?fe.scaleX:fe.scale,xe.scaleX),scaleY:Ut(fe.scaleY!=null?fe.scaleY:fe.scale,xe.scaleY),scaleZ:Ut(fe.scaleZ,xe.scaleZ),x:Ut(fe.x,xe.x),y:Ut(fe.y,xe.y),z:Ut(fe.z,xe.z),xPercent:Ut(fe.xPercent,xe.xPercent),yPercent:Ut(fe.yPercent,xe.yPercent),perspective:Ut(fe.transformPerspective,xe.perspective)},te=fe.directionalRotation,te!=null)if(typeof te=="object")for(Tt in te)fe[Tt]=te[Tt];else fe.rotation=te;typeof fe.x=="string"&&fe.x.indexOf("%")!==-1&&(zt.x=0,zt.xPercent=Ut(fe.x,xe.xPercent)),typeof fe.y=="string"&&fe.y.indexOf("%")!==-1&&(zt.y=0,zt.yPercent=Ut(fe.y,xe.yPercent)),zt.rotation=qt("rotation"in fe?fe.rotation:"shortRotation"in fe?fe.shortRotation+"_short":xe.rotation,xe.rotation,"rotation",mi),yr&&(zt.rotationX=qt("rotationX"in fe?fe.rotationX:"shortRotationX"in fe?fe.shortRotationX+"_short":xe.rotationX||0,xe.rotationX,"rotationX",mi),zt.rotationY=qt("rotationY"in fe?fe.rotationY:"shortRotationY"in fe?fe.shortRotationY+"_short":xe.rotationY||0,xe.rotationY,"rotationY",mi)),zt.skewX=qt(fe.skewX,xe.skewX),zt.skewY=qt(fe.skewY,xe.skewY)}for(yr&&fe.force3D!=null&&(xe.force3D=fe.force3D,se=!0),he=xe.force3D||xe.z||xe.rotationX||xe.rotationY||zt.z||zt.rotationX||zt.rotationY||zt.perspective,he||fe.scale==null||(zt.scaleZ=1);--Fe>-1;)He=Hl[Fe],Re=zt[He]-xe[He],(Re>_e||-_e>Re||fe[He]!=null||Nt[He]!=null)&&(se=!0,j=new bi(xe,He,xe[He],Re,j),He in mi&&(j.e=mi[He]),j.xs0=0,j.plugin=St,at._overwriteProps.push(j.n));return Re=fe.transformOrigin,xe.svg&&(Re||fe.svgOrigin)&&(ye=xe.xOffset,ue=xe.yOffset,sa(V,nt(Re),zt,fe.svgOrigin,fe.smoothOrigin),j=Yr(xe,"xOrigin",(ci?xe:zt).xOrigin,zt.xOrigin,j,Le),j=Yr(xe,"yOrigin",(ci?xe:zt).yOrigin,zt.yOrigin,j,Le),(ye!==xe.xOffset||ue!==xe.yOffset)&&(j=Yr(xe,"xOffset",ci?ye:xe.xOffset,xe.xOffset,j,Le),j=Yr(xe,"yOffset",ci?ue:xe.yOffset,xe.yOffset,j,Le)),Re="0px 0px"),(Re||yr&&he&&xe.zOrigin)&&(Sn?(se=!0,He=ys,Re=(Re||dt(V,He,f,!1,"50% 50%"))+"",j=new bi(Be,He,0,0,j,-1,Le),j.b=Be[He],j.plugin=St,yr?(Tt=xe.zOrigin,Re=Re.split(" "),xe.zOrigin=(Re.length>2&&(Tt===0||Re[2]!=="0px")?parseFloat(Re[2]):Tt)||0,j.xs0=j.e=Re[0]+" "+(Re[1]||"50%")+" 0px",j=new bi(xe,"zOrigin",0,0,j,-1,j.n),j.b=Tt,j.xs0=j.e=xe.zOrigin):j.xs0=j.e=Re):nt(Re+"",xe)),se&&(at._transformType=xe.svg&&lo||!he&&this._transformType!==3?2:3),Ot&&(ht[lt]=Ot),Gt&&(ht.scale=Gt),j},prefix:!0}),zi("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),zi("borderRadius",{defaultValue:"0px",parser:function(V,et,lt,at,j,St){et=this.format(et);var ht,Ot,Gt,zt,Tt,he,se,te,ye,ue,je,He,ci,Be,_e,Fe,fe=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],mi=V.style;for(ye=parseFloat(V.offsetWidth),ue=parseFloat(V.offsetHeight),ht=et.split(" "),Ot=0;Ot<fe.length;Ot++)this.p.indexOf("border")&&(fe[Ot]=Jt(fe[Ot])),Tt=zt=dt(V,fe[Ot],f,!1,"0px"),Tt.indexOf(" ")!==-1&&(zt=Tt.split(" "),Tt=zt[0],zt=zt[1]),he=Gt=ht[Ot],se=parseFloat(Tt),He=Tt.substr((se+"").length),ci=he.charAt(1)==="=",ci?(te=parseInt(he.charAt(0)+"1",10),he=he.substr(2),te*=parseFloat(he),je=he.substr((te+"").length-(0>te?1:0))||""):(te=parseFloat(he),je=he.substr((te+"").length)),je===""&&(je=c[lt]||He),je!==He&&(Be=pt(V,"borderLeft",se,He),_e=pt(V,"borderTop",se,He),je==="%"?(Tt=Be/ye*100+"%",zt=_e/ue*100+"%"):je==="em"?(Fe=pt(V,"borderLeft",1,"em"),Tt=Be/Fe+"em",zt=_e/Fe+"em"):(Tt=Be+"px",zt=_e+"px"),ci&&(he=parseFloat(Tt)+te+je,Gt=parseFloat(zt)+te+je)),j=ar(mi,fe[Ot],Tt+" "+zt,he+" "+Gt,!1,"0px",j);return j},prefix:!0,formatter:yi("0px 0px 0px 0px",!1,!0)}),zi("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(V,et,lt,at,j,St){return ar(V.style,lt,this.format(dt(V,lt,f,!1,"0px 0px")),this.format(et),!1,"0px",j)},prefix:!0,formatter:yi("0px 0px",!1,!0)}),zi("backgroundPosition",{defaultValue:"0 0",parser:function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he,se="background-position",te=f||jt(V,null),ye=this.format((te?E?te.getPropertyValue(se+"-x")+" "+te.getPropertyValue(se+"-y"):te.getPropertyValue(se):V.currentStyle.backgroundPositionX+" "+V.currentStyle.backgroundPositionY)||"0 0"),ue=this.format(et);if(ye.indexOf("%")!==-1!=(ue.indexOf("%")!==-1)&&ue.split(",").length<2&&(he=dt(V,"backgroundImage").replace(_t,""),he&&he!=="none")){for(ht=ye.split(" "),Ot=ue.split(" "),Si.setAttribute("src",he),Gt=2;--Gt>-1;)ye=ht[Gt],zt=ye.indexOf("%")!==-1,zt!==(Ot[Gt].indexOf("%")!==-1)&&(Tt=Gt===0?V.offsetWidth-Si.width:V.offsetHeight-Si.height,ht[Gt]=zt?parseFloat(ye)/100*Tt+"px":parseFloat(ye)/Tt*100+"%");ye=ht.join(" ")}return this.parseComplex(V.style,ye,ue,j,St)},formatter:nt}),zi("backgroundSize",{defaultValue:"0 0",formatter:function(V){return V+="",V.substr(0,2)==="co"?V:nt(V.indexOf(" ")===-1?V+" "+V:V)}}),zi("perspective",{defaultValue:"0px",prefix:!0}),zi("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),zi("transformStyle",{prefix:!0}),zi("backfaceVisibility",{prefix:!0}),zi("userSelect",{prefix:!0}),zi("margin",{parser:Ei("marginTop,marginRight,marginBottom,marginLeft")}),zi("padding",{parser:Ei("paddingTop,paddingRight,paddingBottom,paddingLeft")}),zi("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(V,et,lt,at,j,St){var ht,Ot,Gt;return 9>E?(Ot=V.currentStyle,Gt=8>E?" ":",",ht="rect("+Ot.clipTop+Gt+Ot.clipRight+Gt+Ot.clipBottom+Gt+Ot.clipLeft+")",et=this.format(et).split(",").join(Gt)):(ht=this.format(dt(V,this.p,f,!1,this.dflt)),et=this.format(et)),this.parseComplex(V.style,ht,et,j,St)}}),zi("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),zi("autoRound,strictUnits",{parser:function(V,et,lt,at,j){return j}}),zi("border",{defaultValue:"0px solid #000",parser:function(V,et,lt,at,j,St){var ht=dt(V,"borderTopWidth",f,!1,"0px"),Ot=this.format(et).split(" "),Gt=Ot[0].replace(N,"");return Gt!=="px"&&(ht=parseFloat(ht)/pt(V,"borderTopWidth",1,Gt)+Gt),this.parseComplex(V.style,this.format(ht+" "+dt(V,"borderTopStyle",f,!1,"solid")+" "+dt(V,"borderTopColor",f,!1,"#000")),Ot.join(" "),j,St)},color:!0,formatter:function(V){var et=V.split(" ");return et[0]+" "+(et[1]||"solid")+" "+(V.match(we)||["#000"])[0]}}),zi("borderWidth",{parser:Ei("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),zi("float,cssFloat,styleFloat",{parser:function(V,et,lt,at,j,St){var ht=V.style,Ot="cssFloat"in ht?"cssFloat":"styleFloat";return new bi(ht,Ot,0,0,j,-1,lt,!1,0,ht[Ot],et)}});var zh=function(V){var et,lt=this.t,at=lt.filter||dt(this.data,"filter")||"",j=this.s+this.c*V|0;j===100&&(at.indexOf("atrix(")===-1&&at.indexOf("radient(")===-1&&at.indexOf("oader(")===-1?(lt.removeAttribute("filter"),et=!dt(this.data,"filter")):(lt.filter=at.replace(Z,""),et=!0)),et||(this.xn1&&(lt.filter=at=at||"alpha(opacity="+j+")"),at.indexOf("pacity")===-1?j===0&&this.xn1||(lt.filter=at+" alpha(opacity="+j+")"):lt.filter=at.replace(X,"opacity="+j))};zi("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(V,et,lt,at,j,St){var ht=parseFloat(dt(V,"opacity",f,!1,"1")),Ot=V.style,Gt=lt==="autoAlpha";return typeof et=="string"&&et.charAt(1)==="="&&(et=(et.charAt(0)==="-"?-1:1)*parseFloat(et.substr(2))+ht),Gt&&ht===1&&dt(V,"visibility",f)==="hidden"&&et!==0&&(ht=0),pi?j=new bi(Ot,"opacity",ht,et-ht,j):(j=new bi(Ot,"opacity",100*ht,100*(et-ht),j),j.xn1=Gt?1:0,Ot.zoom=1,j.type=2,j.b="alpha(opacity="+j.s+")",j.e="alpha(opacity="+(j.s+j.c)+")",j.data=V,j.plugin=St,j.setRatio=zh),Gt&&(j=new bi(Ot,"visibility",0,0,j,-1,null,!1,0,ht!==0?"inherit":"hidden",et===0?"hidden":"inherit"),j.xs0="inherit",at._overwriteProps.push(j.n),at._overwriteProps.push(lt)),j}});var _s=function(V,et){et&&(V.removeProperty?((et.substr(0,2)==="ms"||et.substr(0,6)==="webkit")&&(et="-"+et),V.removeProperty(et.replace(Rt,"-$1").toLowerCase())):V.removeAttribute(et))},xs=function(V){if(this.t._gsClassPT=this,V===1||V===0){this.t.setAttribute("class",V===0?this.b:this.e);for(var et=this.data,lt=this.t.style;et;)et.v?lt[et.p]=et.v:_s(lt,et.p),et=et._next;V===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};zi("className",{parser:function(V,et,lt,at,j,St,ht){var Ot,Gt,zt,Tt,he,se=V.getAttribute("class")||"",te=V.style.cssText;if(j=at._classNamePT=new bi(V,lt,0,0,j,2),j.setRatio=xs,j.pr=-11,o=!0,j.b=se,Gt=ie(V,f),zt=V._gsClassPT){for(Tt={},he=zt.data;he;)Tt[he.p]=1,he=he._next;zt.setRatio(1)}return V._gsClassPT=j,j.e=et.charAt(1)!=="="?et:se.replace(new RegExp("(?:\\s|^)"+et.substr(2)+"(?![\\w-])"),"")+(et.charAt(0)==="+"?" "+et.substr(2):""),V.setAttribute("class",j.e),Ot=Kt(V,Gt,ie(V),ht,Tt),V.setAttribute("class",se),j.data=Ot.firstMPT,V.style.cssText=te,j=j.xfirst=at.parse(V,Ot.difs,j,St)}});var Xl=function(V){if((V===1||V===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var et,lt,at,j,St,ht=this.t.style,Ot=v.transform.parse;if(this.e==="all")ht.cssText="",j=!0;else for(et=this.e.split(" ").join("").split(","),at=et.length;--at>-1;)lt=et[at],v[lt]&&(v[lt].parse===Ot?j=!0:lt=lt==="transformOrigin"?ys:v[lt].p),_s(ht,lt);j&&(_s(ht,Sn),St=this.t._gsTransform,St&&(St.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(zi("clearProps",{parser:function(V,et,lt,at,j){return j=new bi(V,lt,0,0,j,2),j.setRatio=Xl,j.e=et,j.pr=-10,j.data=at._tween,o=!0,j}}),S="bezier,throwProps,physicsProps,physics2D".split(","),sn=S.length;sn--;)Zo(S[sn]);S=m.prototype,S._firstPT=S._lastParsedTransform=S._transform=null,S._onInitTween=function(V,et,lt,at){if(!V.nodeType)return!1;this._target=P=V,this._tween=lt,this._vars=et,w=at,b=et.autoRound,o=!1,c=et.suffixMap||m.suffixMap,f=jt(V,""),u=this._overwriteProps;var j,St,ht,Ot,Gt,zt,Tt,he,se,te=V.style;if(O&&te.zIndex===""&&(j=dt(V,"zIndex",f),(j==="auto"||j==="")&&this._addLazySet(te,"zIndex",0)),typeof et=="string"&&(Ot=te.cssText,j=ie(V,f),te.cssText=Ot+";"+et,j=Kt(V,j,ie(V)).difs,!pi&&J.test(et)&&(j.opacity=parseFloat(RegExp.$1)),et=j,te.cssText=Ot),et.className?this._firstPT=St=v.className.parse(V,et.className,"className",this,null,null,et):this._firstPT=St=this.parse(V,et,null),this._transformType){for(se=this._transformType===3,Sn?k&&(O=!0,te.zIndex===""&&(Tt=dt(V,"zIndex",f),(Tt==="auto"||Tt==="")&&this._addLazySet(te,"zIndex",0)),F&&this._addLazySet(te,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(se?"visible":"hidden"))):te.zoom=1,ht=St;ht&&ht._next;)ht=ht._next;he=new bi(V,"transform",0,0,null,2),this._linkCSSP(he,null,ht),he.setRatio=Sn?Dh:jl,he.data=this._transform||co(V,f,!0),he.tween=lt,he.pr=-1,u.pop()}if(o){for(;St;){for(zt=St._next,ht=Ot;ht&&ht.pr>St.pr;)ht=ht._next;(St._prev=ht?ht._prev:Gt)?St._prev._next=St:Ot=St,(St._next=ht)?ht._prev=St:Gt=St,St=zt}this._firstPT=Ot}return!0},S.parse=function(V,et,lt,at){var j,St,ht,Ot,Gt,zt,Tt,he,se,te,ye=V.style;for(j in et){if(zt=et[j],typeof zt=="function"&&(zt=zt(w,P)),St=v[j])lt=St.parse(V,zt,j,this,lt,at,et);else{if(j.substr(0,2)==="--"){this._tween._propLookup[j]=this._addTween.call(this._tween,V.style,"setProperty",jt(V).getPropertyValue(j)+"",zt+"",j,!1,j);continue}Gt=dt(V,j,f)+"",se=typeof zt=="string",j==="color"||j==="fill"||j==="stroke"||j.indexOf("Color")!==-1||se&&ct.test(zt)?(se||(zt=Ie(zt),zt=(zt.length>3?"rgba(":"rgb(")+zt.join(",")+")"),lt=ar(ye,j,Gt,zt,!0,"transparent",lt,0,at)):se&&re.test(zt)?lt=ar(ye,j,Gt,zt,!0,null,lt,0,at):(ht=parseFloat(Gt),Tt=ht||ht===0?Gt.substr((ht+"").length):"",(Gt===""||Gt==="auto")&&(j==="width"||j==="height"?(ht=st(V,j,f),Tt="px"):j==="left"||j==="top"?(ht=Dt(V,j,f),Tt="px"):(ht=j!=="opacity"?0:1,Tt="")),te=se&&zt.charAt(1)==="=",te?(Ot=parseInt(zt.charAt(0)+"1",10),zt=zt.substr(2),Ot*=parseFloat(zt),he=zt.replace(N,"")):(Ot=parseFloat(zt),he=se?zt.replace(N,""):""),he===""&&(he=j in c?c[j]:Tt),zt=Ot||Ot===0?(te?Ot+ht:Ot)+he:et[j],Tt!==he&&(he!==""||j==="lineHeight")&&(Ot||Ot===0)&&ht&&(ht=pt(V,j,ht,Tt),he==="%"?(ht/=pt(V,j,100,"%")/100,et.strictUnits!==!0&&(Gt=ht+"%")):he==="em"||he==="rem"||he==="vw"||he==="vh"?ht/=pt(V,j,1,he):he!=="px"&&(Ot=pt(V,j,Ot,he),he="px"),te&&(Ot||Ot===0)&&(zt=Ot+ht+he)),te&&(Ot+=ht),!ht&&ht!==0||!Ot&&Ot!==0?ye[j]!==void 0&&(zt||zt+""!="NaN"&&zt!=null)?(lt=new bi(ye,j,Ot||ht||0,0,lt,-1,j,!1,0,Gt,zt),lt.xs0=zt!=="none"||j!=="display"&&j.indexOf("Style")===-1?zt:Gt):gn("invalid "+j+" tween value: "+et[j]):(lt=new bi(ye,j,ht,Ot-ht,lt,0,j,b!==!1&&(he==="px"||j==="zIndex"),0,Gt,zt),lt.xs0=he))}at&<&&!lt.plugin&&(lt.plugin=at)}return lt},S.setRatio=function(V){var et,lt,at,j=this._firstPT,St=1e-6;if(V!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(V||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;j;){if(et=j.c*V+j.s,j.r?et=j.r(et):St>et&&et>-St&&(et=0),j.type)if(j.type===1)if(at=j.l,at===2)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2;else if(at===3)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3;else if(at===4)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3+j.xn3+j.xs4;else if(at===5)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3+j.xn3+j.xs4+j.xn4+j.xs5;else{for(lt=j.xs0+et+j.xs1,at=1;at<j.l;at++)lt+=j["xn"+at]+j["xs"+(at+1)];j.t[j.p]=lt}else j.type===-1?j.t[j.p]=j.xs0:j.setRatio&&j.setRatio(V);else j.t[j.p]=et+j.xs0;j=j._next}else for(;j;)j.type!==2?j.t[j.p]=j.b:j.setRatio(V),j=j._next;else for(;j;){if(j.type!==2)if(j.r&&j.type!==-1)if(et=j.r(j.s+j.c),j.type){if(j.type===1){for(at=j.l,lt=j.xs0+et+j.xs1,at=1;at<j.l;at++)lt+=j["xn"+at]+j["xs"+(at+1)];j.t[j.p]=lt}}else j.t[j.p]=et+j.xs0;else j.t[j.p]=j.e;else j.setRatio(V);j=j._next}},S._enableTransforms=function(V){this._transform=this._transform||co(this._target,f,!0),this._transformType=this._transform.svg&&lo||!V&&this._transformType!==3?2:3};var ql=function(V){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};S._addLazySet=function(V,et,lt){var at=this._firstPT=new bi(V,et,0,0,this._firstPT,2);at.e=lt,at.setRatio=ql,at.data=this},S._linkCSSP=function(V,et,lt,at){return V&&(et&&(et._prev=V),V._next&&(V._next._prev=V._prev),V._prev?V._prev._next=V._next:this._firstPT===V&&(this._firstPT=V._next,at=!0),lt?lt._next=V:at||this._firstPT!==null||(this._firstPT=V),V._next=et,V._prev=lt),V},S._mod=function(V){for(var et=this._firstPT;et;)typeof V[et.p]=="function"&&(et.r=V[et.p]),et=et._next},S._kill=function(V){var et,lt,at,j=V;if(V.autoAlpha||V.alpha){j={};for(lt in V)j[lt]=V[lt];j.opacity=1,j.autoAlpha&&(j.visibility=1)}for(V.className&&(et=this._classNamePT)&&(at=et.xfirst,at&&at._prev?this._linkCSSP(at._prev,et._next,at._prev._prev):at===this._firstPT&&(this._firstPT=et._next),et._next&&this._linkCSSP(et._next,et._next._next,at._prev),this._classNamePT=null),et=this._firstPT;et;)et.plugin&&et.plugin!==lt&&et.plugin._kill&&(et.plugin._kill(V),lt=et.plugin),et=et._next;return x.prototype._kill.call(this,j)};var Zr=function(V,et,lt){var at,j,St,ht;if(V.slice)for(j=V.length;--j>-1;)Zr(V[j],et,lt);else for(at=V.childNodes,j=at.length;--j>-1;)St=at[j],ht=St.type,St.style&&(et.push(ie(St)),lt&<.push(St)),ht!==1&&ht!==9&&ht!==11||!St.childNodes.length||Zr(St,et,lt)};return m.cascadeTo=function(V,et,lt){var at,j,St,ht,Ot=a.to(V,et,lt),Gt=[Ot],zt=[],Tt=[],he=[],se=a._internals.reservedProps;for(V=Ot._targets||Ot.target,Zr(V,zt,he),Ot.render(et,!0,!0),Zr(V,Tt),Ot.render(0,!0,!0),Ot._enabled(!0),at=he.length;--at>-1;)if(j=Kt(he[at],zt[at],Tt[at]),j.firstMPT){j=j.difs;for(St in lt)se[St]&&(j[St]=lt[St]);ht={};for(St in j)ht[St]=zt[at][St];Gt.push(a.fromTo(he[at],et,ht,j))}return Gt},x.activate([m]),m},!0),function(){var x=ln._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(f,u,m){return this._tween=m,!0}}),a=function(f){var u=1>f?Math.pow(10,(f+"").length-2):1;return function(m){return(Math.round(m/f)*f*u|0)/u}},o=function(f,u){for(;f;)f.f||f.blob||(f.m=u||Math.round),f=f._next},c=x.prototype;c._onInitAllProps=function(){var f,u,m,g,v=this._tween,S=v.vars.roundProps,b={},O=v._propLookup.roundProps;if(typeof S!="object"||S.push)for(typeof S=="string"&&(S=S.split(",")),m=S.length;--m>-1;)b[S[m]]=Math.round;else for(g in S)b[g]=a(S[g]);for(g in b)for(f=v._firstPT;f;)u=f._next,f.pg?f.t._mod(b):f.n===g&&(f.f===2&&f.t?o(f.t._firstPT,b[g]):(this._add(f.t,g,f.s,f.c,b[g]),u&&(u._prev=f._prev),f._prev?f._prev._next=u:v._firstPT===f&&(v._firstPT=u),f._next=f._prev=null,v._propLookup[g]=O)),f=u;return!1},c._add=function(f,u,m,g,v){this._addTween(f,u,m,m+g,u,v||Math.round),this._overwriteProps.push(u)}}(),function(){ln._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(x,a,o,c){var f,u;if(typeof x.setAttribute!="function")return!1;for(f in a)u=a[f],typeof u=="function"&&(u=u(c,x)),this._addTween(x,"setAttribute",x.getAttribute(f)+"",u+"",f,!1,f),this._overwriteProps.push(f);return!0}})}(),ln._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(x,a,o,c){typeof a!="object"&&(a={rotation:a}),this.finals={};var f,u,m,g,v,S,b=a.useRadians===!0?2*Math.PI:360,O=1e-6;for(f in a)f!=="useRadians"&&(g=a[f],typeof g=="function"&&(g=g(c,x)),S=(g+"").split("_"),u=S[0],m=parseFloat(typeof x[f]!="function"?x[f]:x[f.indexOf("set")||typeof x["get"+f.substr(3)]!="function"?f:"get"+f.substr(3)]()),g=this.finals[f]=typeof u=="string"&&u.charAt(1)==="="?m+parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)||0,v=g-m,S.length&&(u=S.join("_"),u.indexOf("short")!==-1&&(v%=b,v!==v%(b/2)&&(v=0>v?v+b:v-b)),u.indexOf("_cw")!==-1&&0>v?v=(v+9999999999*b)%b-(v/b|0)*b:u.indexOf("ccw")!==-1&&v>0&&(v=(v-9999999999*b)%b-(v/b|0)*b)),(v>O||-O>v)&&(this._addTween(x,f,m,m+v,f),this._overwriteProps.push(f)));return!0},set:function(x){var a;if(x!==1)this._super.setRatio.call(this,x);else for(a=this._firstPT;a;)a.f?a.t[a.p](this.finals[a.p]):a.t[a.p]=this.finals[a.p],a=a._next}})._autoCSS=!0,ln._gsDefine("easing.Back",["easing.Ease"],function(x){var a,o,c,f,u=ln.GreenSockGlobals||ln,m=u.com.greensock,g=2*Math.PI,v=Math.PI/2,S=m._class,b=function(T,I){var C=S("easing."+T,function(){},!0),U=C.prototype=new x;return U.constructor=C,U.getRatio=I,C},O=x.register||function(){},k=function(T,I,C,U,N){var X=S("easing."+T,{easeOut:new I,easeIn:new C,easeInOut:new U},!0);return O(X,T),X},R=function(T,I,C){this.t=T,this.v=I,C&&(this.next=C,C.prev=this,this.c=C.v-I,this.gap=C.t-T)},F=function(T,I){var C=S("easing."+T,function(N){this._p1=N||N===0?N:1.70158,this._p2=1.525*this._p1},!0),U=C.prototype=new x;return U.constructor=C,U.getRatio=I,U.config=function(N){return new C(N)},C},E=k("Back",F("BackOut",function(T){return(T-=1)*T*((this._p1+1)*T+this._p1)+1}),F("BackIn",function(T){return T*T*((this._p1+1)*T-this._p1)}),F("BackInOut",function(T){return(T*=2)<1?.5*T*T*((this._p2+1)*T-this._p2):.5*((T-=2)*T*((this._p2+1)*T+this._p2)+2)})),P=S("easing.SlowMo",function(T,I,C){I=I||I===0?I:.7,T==null?T=.7:T>1&&(T=1),this._p=T!==1?I:0,this._p1=(1-T)/2,this._p2=T,this._p3=this._p1+this._p2,this._calcEnd=C===!0},!0),w=P.prototype=new x;return w.constructor=P,w.getRatio=function(T){var I=T+(.5-T)*this._p;return T<this._p1?this._calcEnd?1-(T=1-T/this._p1)*T:I-(T=1-T/this._p1)*T*T*T*I:T>this._p3?this._calcEnd?T===1?0:1-(T=(T-this._p3)/this._p1)*T:I+(T-I)*(T=(T-this._p3)/this._p1)*T*T*T:this._calcEnd?1:I},P.ease=new P(.7,.7),w.config=P.config=function(T,I,C){return new P(T,I,C)},a=S("easing.SteppedEase",function(T,I){T=T||1,this._p1=1/T,this._p2=T+(I?0:1),this._p3=I?1:0},!0),w=a.prototype=new x,w.constructor=a,w.getRatio=function(T){return 0>T?T=0:T>=1&&(T=.999999999),((this._p2*T|0)+this._p3)*this._p1},w.config=a.config=function(T,I){return new a(T,I)},o=S("easing.ExpoScaleEase",function(T,I,C){this._p1=Math.log(I/T),this._p2=I-T,this._p3=T,this._ease=C},!0),w=o.prototype=new x,w.constructor=o,w.getRatio=function(T){return this._ease&&(T=this._ease.getRatio(T)),(this._p3*Math.exp(this._p1*T)-this._p3)/this._p2},w.config=o.config=function(T,I,C){return new o(T,I,C)},c=S("easing.RoughEase",function(T){T=T||{};for(var I,C,U,N,X,J,Z=T.taper||"none",ct=[],Rt=0,tt=0|(T.points||20),_t=tt,G=T.randomize!==!1,Pt=T.clamp===!0,Et=T.template instanceof x?T.template:null,At=typeof T.strength=="number"?.4*T.strength:.4;--_t>-1;)I=G?Math.random():1/tt*_t,C=Et?Et.getRatio(I):I,Z==="none"?U=At:Z==="out"?(N=1-I,U=N*N*At):Z==="in"?U=I*I*At:.5>I?(N=2*I,U=N*N*.5*At):(N=2*(1-I),U=N*N*.5*At),G?C+=Math.random()*U-.5*U:_t%2?C+=.5*U:C-=.5*U,Pt&&(C>1?C=1:0>C&&(C=0)),ct[Rt++]={x:I,y:C};for(ct.sort(function(ce,re){return ce.x-re.x}),J=new R(1,1,null),_t=tt;--_t>-1;)X=ct[_t],J=new R(X.x,X.y,J);this._prev=new R(0,0,J.t!==0?J:J.next)},!0),w=c.prototype=new x,w.constructor=c,w.getRatio=function(T){var I=this._prev;if(T>I.t){for(;I.next&&T>=I.t;)I=I.next;I=I.prev}else for(;I.prev&&T<=I.t;)I=I.prev;return this._prev=I,I.v+(T-I.t)/I.gap*I.c},w.config=function(T){return new c(T)},c.ease=new c,k("Bounce",b("BounceOut",function(T){return 1/2.75>T?7.5625*T*T:2/2.75>T?7.5625*(T-=1.5/2.75)*T+.75:2.5/2.75>T?7.5625*(T-=2.25/2.75)*T+.9375:7.5625*(T-=2.625/2.75)*T+.984375}),b("BounceIn",function(T){return(T=1-T)<1/2.75?1-7.5625*T*T:2/2.75>T?1-(7.5625*(T-=1.5/2.75)*T+.75):2.5/2.75>T?1-(7.5625*(T-=2.25/2.75)*T+.9375):1-(7.5625*(T-=2.625/2.75)*T+.984375)}),b("BounceInOut",function(T){var I=.5>T;return T=I?1-2*T:2*T-1,T=1/2.75>T?7.5625*T*T:2/2.75>T?7.5625*(T-=1.5/2.75)*T+.75:2.5/2.75>T?7.5625*(T-=2.25/2.75)*T+.9375:7.5625*(T-=2.625/2.75)*T+.984375,I?.5*(1-T):.5*T+.5})),k("Circ",b("CircOut",function(T){return Math.sqrt(1-(T-=1)*T)}),b("CircIn",function(T){return-(Math.sqrt(1-T*T)-1)}),b("CircInOut",function(T){return(T*=2)<1?-.5*(Math.sqrt(1-T*T)-1):.5*(Math.sqrt(1-(T-=2)*T)+1)})),f=function(T,I,C){var U=S("easing."+T,function(X,J){this._p1=X>=1?X:1,this._p2=(J||C)/(1>X?X:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),N=U.prototype=new x;return N.constructor=U,N.getRatio=I,N.config=function(X,J){return new U(X,J)},U},k("Elastic",f("ElasticOut",function(T){return this._p1*Math.pow(2,-10*T)*Math.sin((T-this._p3)*this._p2)+1},.3),f("ElasticIn",function(T){return-(this._p1*Math.pow(2,10*(T-=1))*Math.sin((T-this._p3)*this._p2))},.3),f("ElasticInOut",function(T){return(T*=2)<1?-.5*(this._p1*Math.pow(2,10*(T-=1))*Math.sin((T-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(T-=1))*Math.sin((T-this._p3)*this._p2)*.5+1},.45)),k("Expo",b("ExpoOut",function(T){return 1-Math.pow(2,-10*T)}),b("ExpoIn",function(T){return Math.pow(2,10*(T-1))-.001}),b("ExpoInOut",function(T){return(T*=2)<1?.5*Math.pow(2,10*(T-1)):.5*(2-Math.pow(2,-10*(T-1)))})),k("Sine",b("SineOut",function(T){return Math.sin(T*v)}),b("SineIn",function(T){return-Math.cos(T*v)+1}),b("SineInOut",function(T){return-.5*(Math.cos(Math.PI*T)-1)})),S("easing.EaseLookup",{find:function(T){return x.map[T]}},!0),O(u.SlowMo,"SlowMo","ease,"),O(c,"RoughEase","ease,"),O(a,"SteppedEase","ease,"),E},!0)}),ln._gsDefine&&ln._gsQueue.pop()(),function(x,a){var o={},c=x.document,f=x.GreenSockGlobals=x.GreenSockGlobals||x,u=f[a];if(u)return typeof module<"u"&&module.exports&&(module.exports=u),u;var m,g,v,S,b,O=function(z){var Q,st=z.split("."),nt=f;for(Q=0;Q<st.length;Q++)nt[st[Q]]=nt=nt[st[Q]]||{};return nt},k=O("com.greensock"),R=1e-10,F=function(z){var Q,st=[],nt=z.length;for(Q=0;Q!==nt;st.push(z[Q++]));return st},E=function(){},P=function(){var z=Object.prototype.toString,Q=z.call([]);return function(st){return st!=null&&(st instanceof Array||typeof st=="object"&&!!st.push&&z.call(st)===Q)}}(),w={},T=function(z,Q,st,nt){this.sc=w[z]?w[z].sc:[],w[z]=this,this.gsClass=null,this.func=st;var vt=[];this.check=function(Ut){for(var qt,Xt,Ne,Ie,me=Q.length,we=me;--me>-1;)(qt=w[Q[me]]||new T(Q[me],[])).gsClass?(vt[me]=qt.gsClass,we--):Ut&&qt.sc.push(this);if(we===0&&st){if(Xt=("com.greensock."+z).split("."),Ne=Xt.pop(),Ie=O(Xt.join("."))[Ne]=this.gsClass=st.apply(st,vt),nt)if(f[Ne]=o[Ne]=Ie,typeof module<"u"&&module.exports)if(z===a){module.exports=o[a]=Ie;for(me in o)Ie[me]=o[me]}else o[a]&&(o[a][Ne]=Ie);else typeof define=="function"&&define.amd&&define((x.GreenSockAMDPath?x.GreenSockAMDPath+"/":"")+z.split(".").pop(),[],function(){return Ie});for(me=0;me<this.sc.length;me++)this.sc[me].check()}},this.check(!0)},I=x._gsDefine=function(z,Q,st,nt){return new T(z,Q,st,nt)},C=k._class=function(z,Q,st){return Q=Q||function(){},I(z,[],function(){return Q},st),Q};I.globals=f;var U=[0,0,1,1],N=C("easing.Ease",function(z,Q,st,nt){this._func=z,this._type=st||0,this._power=nt||0,this._params=Q?U.concat(Q):U},!0),X=N.map={},J=N.register=function(z,Q,st,nt){for(var vt,Ut,qt,Xt,Ne=Q.split(","),Ie=Ne.length,me=(st||"easeIn,easeOut,easeInOut").split(",");--Ie>-1;)for(Ut=Ne[Ie],vt=nt?C("easing."+Ut,null,!0):k.easing[Ut]||{},qt=me.length;--qt>-1;)Xt=me[qt],X[Ut+"."+Xt]=X[Xt+Ut]=vt[Xt]=z.getRatio?z:z[Xt]||new z};for(v=N.prototype,v._calcEnd=!1,v.getRatio=function(z){if(this._func)return this._params[0]=z,this._func.apply(null,this._params);var Q=this._type,st=this._power,nt=Q===1?1-z:Q===2?z:.5>z?2*z:2*(1-z);return st===1?nt*=nt:st===2?nt*=nt*nt:st===3?nt*=nt*nt*nt:st===4&&(nt*=nt*nt*nt*nt),Q===1?1-nt:Q===2?nt:.5>z?nt/2:1-nt/2},m=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=m.length;--g>-1;)v=m[g]+",Power"+g,J(new N(null,null,1,g),v,"easeOut",!0),J(new N(null,null,2,g),v,"easeIn"+(g===0?",easeNone":"")),J(new N(null,null,3,g),v,"easeInOut");X.linear=k.easing.Linear.easeIn,X.swing=k.easing.Quad.easeInOut;var Z=C("events.EventDispatcher",function(z){this._listeners={},this._eventTarget=z||this});v=Z.prototype,v.addEventListener=function(z,Q,st,nt,vt){vt=vt||0;var Ut,qt,Xt=this._listeners[z],Ne=0;for(this!==S||b||S.wake(),Xt==null&&(this._listeners[z]=Xt=[]),qt=Xt.length;--qt>-1;)Ut=Xt[qt],Ut.c===Q&&Ut.s===st?Xt.splice(qt,1):Ne===0&&Ut.pr<vt&&(Ne=qt+1);Xt.splice(Ne,0,{c:Q,s:st,up:nt,pr:vt})},v.removeEventListener=function(z,Q){var st,nt=this._listeners[z];if(nt){for(st=nt.length;--st>-1;)if(nt[st].c===Q)return void nt.splice(st,1)}},v.dispatchEvent=function(z){var Q,st,nt,vt=this._listeners[z];if(vt)for(Q=vt.length,Q>1&&(vt=vt.slice(0)),st=this._eventTarget;--Q>-1;)nt=vt[Q],nt&&(nt.up?nt.c.call(nt.s||st,{type:z,target:st}):nt.c.call(nt.s||st))};var ct=x.requestAnimationFrame,Rt=x.cancelAnimationFrame,tt=Date.now||function(){return new Date().getTime()},_t=tt();for(m=["ms","moz","webkit","o"],g=m.length;--g>-1&&!ct;)ct=x[m[g]+"RequestAnimationFrame"],Rt=x[m[g]+"CancelAnimationFrame"]||x[m[g]+"CancelRequestAnimationFrame"];C("Ticker",function(z,Q){var st,nt,vt,Ut,qt,Xt=this,Ne=tt(),Ie=Q!==!1&&ct?"auto":!1,me=500,we=33,yi="tick",Ei=function(ni){var bi,Yr,ar=tt()-_t;ar>me&&(Ne+=ar-we),_t+=ar,Xt.time=(_t-Ne)/1e3,bi=Xt.time-qt,(!st||bi>0||ni===!0)&&(Xt.frame++,qt+=bi+(bi>=Ut?.004:Ut-bi),Yr=!0),ni!==!0&&(vt=nt(Ei)),Yr&&Xt.dispatchEvent(yi)};Z.call(Xt),Xt.time=Xt.frame=0,Xt.tick=function(){Ei(!0)},Xt.lagSmoothing=function(ni,bi){return arguments.length?(me=ni||1/R,void(we=Math.min(bi,me,0))):1/R>me},Xt.sleep=function(){vt!=null&&(Ie&&Rt?Rt(vt):clearTimeout(vt),nt=E,vt=null,Xt===S&&(b=!1))},Xt.wake=function(ni){vt!==null?Xt.sleep():ni?Ne+=-_t+(_t=tt()):Xt.frame>10&&(_t=tt()-me+5),nt=st===0?E:Ie&&ct?ct:function(bi){return setTimeout(bi,1e3*(qt-Xt.time)+1|0)},Xt===S&&(b=!0),Ei(2)},Xt.fps=function(ni){return arguments.length?(st=ni,Ut=1/(st||60),qt=this.time+Ut,void Xt.wake()):st},Xt.useRAF=function(ni){return arguments.length?(Xt.sleep(),Ie=ni,void Xt.fps(st)):Ie},Xt.fps(z),setTimeout(function(){Ie==="auto"&&Xt.frame<5&&(c||{}).visibilityState!=="hidden"&&Xt.useRAF(!1)},1500)}),v=k.Ticker.prototype=new k.events.EventDispatcher,v.constructor=k.Ticker;var G=C("core.Animation",function(z,Q){if(this.vars=Q=Q||{},this._duration=this._totalDuration=z||0,this._delay=Number(Q.delay)||0,this._timeScale=1,this._active=Q.immediateRender===!0,this.data=Q.data,this._reversed=Q.reversed===!0,W){b||S.wake();var st=this.vars.useFrames?Qi:W;st.add(this,st._time),this.vars.paused&&this.paused(!0)}});S=G.ticker=new k.Ticker,v=G.prototype,v._dirty=v._gc=v._initted=v._paused=!1,v._totalTime=v._time=0,v._rawPrevTime=-1,v._next=v._last=v._onUpdate=v._timeline=v.timeline=null,v._paused=!1;var Pt=function(){b&&tt()-_t>2e3&&((c||{}).visibilityState!=="hidden"||!S.lagSmoothing())&&S.wake();var z=setTimeout(Pt,2e3);z.unref&&z.unref()};Pt(),v.play=function(z,Q){return z!=null&&this.seek(z,Q),this.reversed(!1).paused(!1)},v.pause=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!0)},v.resume=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!1)},v.seek=function(z,Q){return this.totalTime(Number(z),Q!==!1)},v.restart=function(z,Q){return this.reversed(!1).paused(!1).totalTime(z?-this._delay:0,Q!==!1,!0)},v.reverse=function(z,Q){return z!=null&&this.seek(z||this.totalDuration(),Q),this.reversed(!0).paused(!1)},v.render=function(z,Q,st){},v.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},v.isActive=function(){var z,Q=this._timeline,st=this._startTime;return!Q||!this._gc&&!this._paused&&Q.isActive()&&(z=Q.rawTime(!0))>=st&&z<st+this.totalDuration()/this._timeScale-1e-7},v._enabled=function(z,Q){return b||S.wake(),this._gc=!z,this._active=this.isActive(),Q!==!0&&(z&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!z&&this.timeline&&this._timeline._remove(this,!0)),!1},v._kill=function(z,Q){return this._enabled(!1,!1)},v.kill=function(z,Q){return this._kill(z,Q),this},v._uncache=function(z){for(var Q=z?this:this.timeline;Q;)Q._dirty=!0,Q=Q.timeline;return this},v._swapSelfInParams=function(z){for(var Q=z.length,st=z.concat();--Q>-1;)z[Q]==="{self}"&&(st[Q]=this);return st},v._callback=function(z){var Q=this.vars,st=Q[z],nt=Q[z+"Params"],vt=Q[z+"Scope"]||Q.callbackScope||this,Ut=nt?nt.length:0;switch(Ut){case 0:st.call(vt);break;case 1:st.call(vt,nt[0]);break;case 2:st.call(vt,nt[0],nt[1]);break;default:st.apply(vt,nt)}},v.eventCallback=function(z,Q,st,nt){if((z||"").substr(0,2)==="on"){var vt=this.vars;if(arguments.length===1)return vt[z];Q==null?delete vt[z]:(vt[z]=Q,vt[z+"Params"]=P(st)&&st.join("").indexOf("{self}")!==-1?this._swapSelfInParams(st):st,vt[z+"Scope"]=nt),z==="onUpdate"&&(this._onUpdate=Q)}return this},v.delay=function(z){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+z-this._delay),this._delay=z,this):this._delay},v.duration=function(z){return arguments.length?(this._duration=this._totalDuration=z,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&z!==0&&this.totalTime(this._totalTime*(z/this._duration),!0),this):(this._dirty=!1,this._duration)},v.totalDuration=function(z){return this._dirty=!1,arguments.length?this.duration(z):this._totalDuration},v.time=function(z,Q){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(z>this._duration?this._duration:z,Q)):this._time},v.totalTime=function(z,Q,st){if(b||S.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>z&&!st&&(z+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var nt=this._totalDuration,vt=this._timeline;if(z>nt&&!st&&(z=nt),this._startTime=(this._paused?this._pauseTime:vt._time)-(this._reversed?nt-z:z)/this._timeScale,vt._dirty||this._uncache(!1),vt._timeline)for(;vt._timeline;)vt._timeline._time!==(vt._startTime+vt._totalTime)/vt._timeScale&&vt.totalTime(vt._totalTime,!0),vt=vt._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==z||this._duration===0)&&(Ft.length&&jt(),this.render(z,Q,!1),Ft.length&&jt())}return this},v.progress=v.totalProgress=function(z,Q){var st=this.duration();return arguments.length?this.totalTime(st*z,Q):st?this._time/st:this.ratio},v.startTime=function(z){return arguments.length?(z!==this._startTime&&(this._startTime=z,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,z-this._delay)),this):this._startTime},v.endTime=function(z){return this._startTime+(z!=0?this.totalDuration():this.duration())/this._timeScale},v.timeScale=function(z){if(!arguments.length)return this._timeScale;var Q,st;for(z=z||R,this._timeline&&this._timeline.smoothChildTiming&&(Q=this._pauseTime,st=Q||Q===0?Q:this._timeline.totalTime(),this._startTime=st-(st-this._startTime)*this._timeScale/z),this._timeScale=z,st=this.timeline;st&&st.timeline;)st._dirty=!0,st.totalDuration(),st=st.timeline;return this},v.reversed=function(z){return arguments.length?(z!=this._reversed&&(this._reversed=z,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},v.paused=function(z){if(!arguments.length)return this._paused;var Q,st,nt=this._timeline;return z!=this._paused&&nt&&(b||z||S.wake(),Q=nt.rawTime(),st=Q-this._pauseTime,!z&&nt.smoothChildTiming&&(this._startTime+=st,this._uncache(!1)),this._pauseTime=z?Q:null,this._paused=z,this._active=this.isActive(),!z&&st!==0&&this._initted&&this.duration()&&(Q=nt.smoothChildTiming?this._totalTime:(Q-this._startTime)/this._timeScale,this.render(Q,Q===this._totalTime,!0))),this._gc&&!z&&this._enabled(!0,!1),this};var Et=C("core.SimpleTimeline",function(z){G.call(this,0,z),this.autoRemoveChildren=this.smoothChildTiming=!0});v=Et.prototype=new G,v.constructor=Et,v.kill()._gc=!1,v._first=v._last=v._recent=null,v._sortChildren=!1,v.add=v.insert=function(z,Q,st,nt){var vt,Ut;if(z._startTime=Number(Q||0)+z._delay,z._paused&&this!==z._timeline&&(z._pauseTime=this.rawTime()-(z._timeline.rawTime()-z._pauseTime)),z.timeline&&z.timeline._remove(z,!0),z.timeline=z._timeline=this,z._gc&&z._enabled(!0,!0),vt=this._last,this._sortChildren)for(Ut=z._startTime;vt&&vt._startTime>Ut;)vt=vt._prev;return vt?(z._next=vt._next,vt._next=z):(z._next=this._first,this._first=z),z._next?z._next._prev=z:this._last=z,z._prev=vt,this._recent=z,this._timeline&&this._uncache(!0),this},v._remove=function(z,Q){return z.timeline===this&&(Q||z._enabled(!1,!0),z._prev?z._prev._next=z._next:this._first===z&&(this._first=z._next),z._next?z._next._prev=z._prev:this._last===z&&(this._last=z._prev),z._next=z._prev=z.timeline=null,z===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},v.render=function(z,Q,st){var nt,vt=this._first;for(this._totalTime=this._time=this._rawPrevTime=z;vt;)nt=vt._next,(vt._active||z>=vt._startTime&&!vt._paused&&!vt._gc)&&(vt._reversed?vt.render((vt._dirty?vt.totalDuration():vt._totalDuration)-(z-vt._startTime)*vt._timeScale,Q,st):vt.render((z-vt._startTime)*vt._timeScale,Q,st)),vt=nt},v.rawTime=function(){return b||S.wake(),this._totalTime};var At=C("TweenLite",function(z,Q,st){if(G.call(this,Q,st),this.render=At.prototype.render,z==null)throw"Cannot tween a null target.";this.target=z=typeof z!="string"?z:At.selector(z)||z;var nt,vt,Ut,qt=z.jquery||z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType),Xt=this.vars.overwrite;if(this._overwrite=Xt=Xt==null?gn[At.defaultOverwrite]:typeof Xt=="number"?Xt>>0:gn[Xt],(qt||z instanceof Array||z.push&&P(z))&&typeof z[0]!="number")for(this._targets=Ut=F(z),this._propLookup=[],this._siblings=[],nt=0;nt<Ut.length;nt++)vt=Ut[nt],vt?typeof vt!="string"?vt.length&&vt!==x&&vt[0]&&(vt[0]===x||vt[0].nodeType&&vt[0].style&&!vt.nodeType)?(Ut.splice(nt--,1),this._targets=Ut=Ut.concat(F(vt))):(this._siblings[nt]=dt(vt,this,!1),Xt===1&&this._siblings[nt].length>1&&Dt(vt,this,null,1,this._siblings[nt])):(vt=Ut[nt--]=At.selector(vt),typeof vt=="string"&&Ut.splice(nt+1,1)):Ut.splice(nt--,1);else this._propLookup={},this._siblings=dt(z,this,!1),Xt===1&&this._siblings.length>1&&Dt(z,this,null,1,this._siblings);(this.vars.immediateRender||Q===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-R,this.render(Math.min(0,-this._delay)))},!0),ce=function(z){return z&&z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType)},re=function(z,Q){var st,nt={};for(st in z)Di[st]||st in Q&&st!=="transform"&&st!=="x"&&st!=="y"&&st!=="width"&&st!=="height"&&st!=="className"&&st!=="border"||!(!Oe[st]||Oe[st]&&Oe[st]._autoCSS)||(nt[st]=z[st],delete z[st]);z.css=nt};v=At.prototype=new G,v.constructor=At,v.kill()._gc=!1,v.ratio=0,v._firstPT=v._targets=v._overwrittenProps=v._startAt=null,v._notifyPluginsOfEnabled=v._lazy=!1,At.version="2.0.2",At.defaultEase=v._ease=new N(null,null,1,1),At.defaultOverwrite="auto",At.ticker=S,At.autoSleep=120,At.lagSmoothing=function(z,Q){S.lagSmoothing(z,Q)},At.selector=x.$||x.jQuery||function(z){var Q=x.$||x.jQuery;return Q?(At.selector=Q,Q(z)):(c||(c=x.document),c?c.querySelectorAll?c.querySelectorAll(z):c.getElementById(z.charAt(0)==="#"?z.substr(1):z):z)};var Ft=[],It={},Nt=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Pe=/[\+-]=-?[\.\d]/,pe=function(z){for(var Q,st=this._firstPT,nt=1e-6;st;)Q=st.blob?z===1&&this.end!=null?this.end:z?this.join(""):this.start:st.c*z+st.s,st.m?Q=st.m.call(this._tween,Q,this._target||st.t,this._tween):nt>Q&&Q>-nt&&!st.blob&&(Q=0),st.f?st.fp?st.t[st.p](st.fp,Q):st.t[st.p](Q):st.t[st.p]=Q,st=st._next},Wt=function(z,Q,st,nt){var vt,Ut,qt,Xt,Ne,Ie,me,we=[],yi=0,Ei="",ni=0;for(we.start=z,we.end=Q,z=we[0]=z+"",Q=we[1]=Q+"",st&&(st(we),z=we[0],Q=we[1]),we.length=0,vt=z.match(Nt)||[],Ut=Q.match(Nt)||[],nt&&(nt._next=null,nt.blob=1,we._firstPT=we._applyPT=nt),Ne=Ut.length,Xt=0;Ne>Xt;Xt++)me=Ut[Xt],Ie=Q.substr(yi,Q.indexOf(me,yi)-yi),Ei+=Ie||!Xt?Ie:",",yi+=Ie.length,ni?ni=(ni+1)%5:Ie.substr(-5)==="rgba("&&(ni=1),me===vt[Xt]||vt.length<=Xt?Ei+=me:(Ei&&(we.push(Ei),Ei=""),qt=parseFloat(vt[Xt]),we.push(qt),we._firstPT={_next:we._firstPT,t:we,p:we.length-1,s:qt,c:(me.charAt(1)==="="?parseInt(me.charAt(0)+"1",10)*parseFloat(me.substr(2)):parseFloat(me)-qt)||0,f:0,m:ni&&4>ni?Math.round:0}),yi+=me.length;return Ei+=Q.substr(yi),Ei&&we.push(Ei),we.setRatio=pe,Pe.test(Q)&&(we.end=null),we},$e=function(z,Q,st,nt,vt,Ut,qt,Xt,Ne){typeof nt=="function"&&(nt=nt(Ne||0,z));var Ie,me=typeof z[Q],we=me!=="function"?"":Q.indexOf("set")||typeof z["get"+Q.substr(3)]!="function"?Q:"get"+Q.substr(3),yi=st!=="get"?st:we?qt?z[we](qt):z[we]():z[Q],Ei=typeof nt=="string"&&nt.charAt(1)==="=",ni={t:z,p:Q,s:yi,f:me==="function",pg:0,n:vt||Q,m:Ut?typeof Ut=="function"?Ut:Math.round:0,pr:0,c:Ei?parseInt(nt.charAt(0)+"1",10)*parseFloat(nt.substr(2)):parseFloat(nt)-yi||0};return(typeof yi!="number"||typeof nt!="number"&&!Ei)&&(qt||isNaN(yi)||!Ei&&isNaN(nt)||typeof yi=="boolean"||typeof nt=="boolean"?(ni.fp=qt,Ie=Wt(yi,Ei?parseFloat(ni.s)+ni.c+(ni.s+"").replace(/[0-9\-\.]/g,""):nt,Xt||At.defaultStringFilter,ni),ni={t:Ie,p:"setRatio",s:0,c:1,f:2,pg:0,n:vt||Q,pr:0,m:0}):(ni.s=parseFloat(yi),Ei||(ni.c=parseFloat(nt)-ni.s||0))),ni.c?((ni._next=this._firstPT)&&(ni._next._prev=ni),this._firstPT=ni,ni):void 0},Si=At._internals={isArray:P,isSelector:ce,lazyTweens:Ft,blobDif:Wt},Oe=At._plugins={},Ge=Si.tweenLookup={},pi=0,Di=Si.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},gn={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Qi=G._rootFramesTimeline=new Et,W=G._rootTimeline=new Et,Jt=30,jt=Si.lazyRender=function(){var z,Q=Ft.length;for(It={};--Q>-1;)z=Ft[Q],z&&z._lazy!==!1&&(z.render(z._lazy[0],z._lazy[1],!0),z._lazy=!1);Ft.length=0};W._startTime=S.time,Qi._startTime=S.frame,W._active=Qi._active=!0,setTimeout(jt,1),G._updateRoot=At.render=function(){var z,Q,st;if(Ft.length&&jt(),W.render((S.time-W._startTime)*W._timeScale,!1,!1),Qi.render((S.frame-Qi._startTime)*Qi._timeScale,!1,!1),Ft.length&&jt(),S.frame>=Jt){Jt=S.frame+(parseInt(At.autoSleep,10)||120);for(st in Ge){for(Q=Ge[st].tweens,z=Q.length;--z>-1;)Q[z]._gc&&Q.splice(z,1);Q.length===0&&delete Ge[st]}if(st=W._first,(!st||st._paused)&&At.autoSleep&&!Qi._first&&S._listeners.tick.length===1){for(;st&&st._paused;)st=st._next;st||S.sleep()}}},S.addEventListener("tick",G._updateRoot);var dt=function(z,Q,st){var nt,vt,Ut=z._gsTweenID;if(Ge[Ut||(z._gsTweenID=Ut="t"+pi++)]||(Ge[Ut]={target:z,tweens:[]}),Q&&(nt=Ge[Ut].tweens,nt[vt=nt.length]=Q,st))for(;--vt>-1;)nt[vt]===Q&&nt.splice(vt,1);return Ge[Ut].tweens},pt=function(z,Q,st,nt){var vt,Ut,qt=z.vars.onOverwrite;return qt&&(vt=qt(z,Q,st,nt)),qt=At.onOverwrite,qt&&(Ut=qt(z,Q,st,nt)),vt!==!1&&Ut!==!1},Dt=function(z,Q,st,nt,vt){var Ut,qt,Xt,Ne;if(nt===1||nt>=4){for(Ne=vt.length,Ut=0;Ne>Ut;Ut++)if((Xt=vt[Ut])!==Q)Xt._gc||Xt._kill(null,z,Q)&&(qt=!0);else if(nt===5)break;return qt}var Ie,me=Q._startTime+R,we=[],yi=0,Ei=Q._duration===0;for(Ut=vt.length;--Ut>-1;)(Xt=vt[Ut])===Q||Xt._gc||Xt._paused||(Xt._timeline!==Q._timeline?(Ie=Ie||ie(Q,0,Ei),ie(Xt,Ie,Ei)===0&&(we[yi++]=Xt)):Xt._startTime<=me&&Xt._startTime+Xt.totalDuration()/Xt._timeScale>me&&((Ei||!Xt._initted)&&me-Xt._startTime<=2e-10||(we[yi++]=Xt)));for(Ut=yi;--Ut>-1;)if(Xt=we[Ut],Ne=Xt._firstPT,nt===2&&Xt._kill(st,z,Q)&&(qt=!0),nt!==2||!Xt._firstPT&&Xt._initted&&Ne){if(nt!==2&&!pt(Xt,Q))continue;Xt._enabled(!1,!1)&&(qt=!0)}return qt},ie=function(z,Q,st){for(var nt=z._timeline,vt=nt._timeScale,Ut=z._startTime;nt._timeline;){if(Ut+=nt._startTime,vt*=nt._timeScale,nt._paused)return-100;nt=nt._timeline}return Ut/=vt,Ut>Q?Ut-Q:st&&Ut===Q||!z._initted&&2*R>Ut-Q?R:(Ut+=z.totalDuration()/z._timeScale/vt)>Q+R?0:Ut-Q-R};v._init=function(){var z,Q,st,nt,vt,Ut,qt=this.vars,Xt=this._overwrittenProps,Ne=this._duration,Ie=!!qt.immediateRender,me=qt.ease;if(qt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),vt={};for(nt in qt.startAt)vt[nt]=qt.startAt[nt];if(vt.data="isStart",vt.overwrite=!1,vt.immediateRender=!0,vt.lazy=Ie&&qt.lazy!==!1,vt.startAt=vt.delay=null,vt.onUpdate=qt.onUpdate,vt.onUpdateParams=qt.onUpdateParams,vt.onUpdateScope=qt.onUpdateScope||qt.callbackScope||this,this._startAt=At.to(this.target||{},0,vt),Ie){if(this._time>0)this._startAt=null;else if(Ne!==0)return}}else if(qt.runBackwards&&Ne!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Ie=!1),st={};for(nt in qt)Di[nt]&&nt!=="autoCSS"||(st[nt]=qt[nt]);if(st.overwrite=0,st.data="isFromStart",st.lazy=Ie&&qt.lazy!==!1,st.immediateRender=Ie,this._startAt=At.to(this.target,0,st),Ie){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=me=me?me instanceof N?me:typeof me=="function"?new N(me,qt.easeParams):X[me]||At.defaultEase:At.defaultEase,qt.easeParams instanceof Array&&me.config&&(this._ease=me.config.apply(me,qt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(Ut=this._targets.length,z=0;Ut>z;z++)this._initProps(this._targets[z],this._propLookup[z]={},this._siblings[z],Xt?Xt[z]:null,z)&&(Q=!0);else Q=this._initProps(this.target,this._propLookup,this._siblings,Xt,0);if(Q&&At._onPluginEvent("_onInitAllProps",this),Xt&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),qt.runBackwards)for(st=this._firstPT;st;)st.s+=st.c,st.c=-st.c,st=st._next;this._onUpdate=qt.onUpdate,this._initted=!0},v._initProps=function(z,Q,st,nt,vt){var Ut,qt,Xt,Ne,Ie,me;if(z==null)return!1;It[z._gsTweenID]&&jt(),this.vars.css||z.style&&z!==x&&z.nodeType&&Oe.css&&this.vars.autoCSS!==!1&&re(this.vars,z);for(Ut in this.vars)if(me=this.vars[Ut],Di[Ut])me&&(me instanceof Array||me.push&&P(me))&&me.join("").indexOf("{self}")!==-1&&(this.vars[Ut]=me=this._swapSelfInParams(me,this));else if(Oe[Ut]&&(Ne=new Oe[Ut])._onInitTween(z,this.vars[Ut],this,vt)){for(this._firstPT=Ie={_next:this._firstPT,t:Ne,p:"setRatio",s:0,c:1,f:1,n:Ut,pg:1,pr:Ne._priority,m:0},qt=Ne._overwriteProps.length;--qt>-1;)Q[Ne._overwriteProps[qt]]=this._firstPT;(Ne._priority||Ne._onInitAllProps)&&(Xt=!0),(Ne._onDisable||Ne._onEnable)&&(this._notifyPluginsOfEnabled=!0),Ie._next&&(Ie._next._prev=Ie)}else Q[Ut]=$e.call(this,z,Ut,"get",me,Ut,0,null,this.vars.stringFilter,vt);return nt&&this._kill(nt,z)?this._initProps(z,Q,st,nt,vt):this._overwrite>1&&this._firstPT&&st.length>1&&Dt(z,this,Q,this._overwrite,st)?(this._kill(Q,z),this._initProps(z,Q,st,nt,vt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(It[z._gsTweenID]=!0),Xt)},v.render=function(z,Q,st){var nt,vt,Ut,qt,Xt=this._time,Ne=this._duration,Ie=this._rawPrevTime;if(z>=Ne-1e-7&&z>=0)this._totalTime=this._time=Ne,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(nt=!0,vt="onComplete",st=st||this._timeline.autoRemoveChildren),Ne===0&&(this._initted||!this.vars.lazy||st)&&(this._startTime===this._timeline._duration&&(z=0),(0>Ie||0>=z&&z>=-1e-7||Ie===R&&this.data!=="isPause")&&Ie!==z&&(st=!0,Ie>R&&(vt="onReverseComplete")),this._rawPrevTime=qt=!Q||z||Ie===z?z:R);else if(1e-7>z)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(Xt!==0||Ne===0&&Ie>0)&&(vt="onReverseComplete",nt=this._reversed),0>z&&(this._active=!1,Ne===0&&(this._initted||!this.vars.lazy||st)&&(Ie>=0&&(Ie!==R||this.data!=="isPause")&&(st=!0),this._rawPrevTime=qt=!Q||z||Ie===z?z:R)),(!this._initted||this._startAt&&this._startAt.progress())&&(st=!0);else if(this._totalTime=this._time=z,this._easeType){var me=z/Ne,we=this._easeType,yi=this._easePower;(we===1||we===3&&me>=.5)&&(me=1-me),we===3&&(me*=2),yi===1?me*=me:yi===2?me*=me*me:yi===3?me*=me*me*me:yi===4&&(me*=me*me*me*me),we===1?this.ratio=1-me:we===2?this.ratio=me:.5>z/Ne?this.ratio=me/2:this.ratio=1-me/2}else this.ratio=this._ease.getRatio(z/Ne);if(this._time!==Xt||st){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!st&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=Xt,this._rawPrevTime=Ie,Ft.push(this),void(this._lazy=[z,Q]);this._time&&!nt?this.ratio=this._ease.getRatio(this._time/Ne):nt&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==Xt&&z>=0&&(this._active=!0),Xt===0&&(this._startAt&&(z>=0?this._startAt.render(z,!0,st):vt||(vt="_dummyGS")),this.vars.onStart&&(this._time!==0||Ne===0)&&(Q||this._callback("onStart"))),Ut=this._firstPT;Ut;)Ut.f?Ut.t[Ut.p](Ut.c*this.ratio+Ut.s):Ut.t[Ut.p]=Ut.c*this.ratio+Ut.s,Ut=Ut._next;this._onUpdate&&(0>z&&this._startAt&&z!==-1e-4&&this._startAt.render(z,!0,st),Q||(this._time!==Xt||nt||st)&&this._callback("onUpdate")),vt&&(!this._gc||st)&&(0>z&&this._startAt&&!this._onUpdate&&z!==-1e-4&&this._startAt.render(z,!0,st),nt&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!Q&&this.vars[vt]&&this._callback(vt),Ne===0&&this._rawPrevTime===R&&qt!==R&&(this._rawPrevTime=0))}},v._kill=function(z,Q,st){if(z==="all"&&(z=null),z==null&&(Q==null||Q===this.target))return this._lazy=!1,this._enabled(!1,!1);Q=typeof Q!="string"?Q||this._targets||this.target:At.selector(Q)||Q;var nt,vt,Ut,qt,Xt,Ne,Ie,me,we,yi=st&&this._time&&st._startTime===this._startTime&&this._timeline===st._timeline,Ei=this._firstPT;if((P(Q)||ce(Q))&&typeof Q[0]!="number")for(nt=Q.length;--nt>-1;)this._kill(z,Q[nt],st)&&(Ne=!0);else{if(this._targets){for(nt=this._targets.length;--nt>-1;)if(Q===this._targets[nt]){Xt=this._propLookup[nt]||{},this._overwrittenProps=this._overwrittenProps||[],vt=this._overwrittenProps[nt]=z?this._overwrittenProps[nt]||{}:"all";break}}else{if(Q!==this.target)return!1;Xt=this._propLookup,vt=this._overwrittenProps=z?this._overwrittenProps||{}:"all"}if(Xt){if(Ie=z||Xt,me=z!==vt&&vt!=="all"&&z!==Xt&&(typeof z!="object"||!z._tempKill),st&&(At.onOverwrite||this.vars.onOverwrite)){for(Ut in Ie)Xt[Ut]&&(we||(we=[]),we.push(Ut));if((we||!z)&&!pt(this,st,Q,we))return!1}for(Ut in Ie)(qt=Xt[Ut])&&(yi&&(qt.f?qt.t[qt.p](qt.s):qt.t[qt.p]=qt.s,Ne=!0),qt.pg&&qt.t._kill(Ie)&&(Ne=!0),qt.pg&&qt.t._overwriteProps.length!==0||(qt._prev?qt._prev._next=qt._next:qt===this._firstPT&&(this._firstPT=qt._next),qt._next&&(qt._next._prev=qt._prev),qt._next=qt._prev=null),delete Xt[Ut]),me&&(vt[Ut]=1);!this._firstPT&&this._initted&&Ei&&this._enabled(!1,!1)}}return Ne},v.invalidate=function(){return this._notifyPluginsOfEnabled&&At._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],G.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-R,this.render(Math.min(0,-this._delay))),this},v._enabled=function(z,Q){if(b||S.wake(),z&&this._gc){var st,nt=this._targets;if(nt)for(st=nt.length;--st>-1;)this._siblings[st]=dt(nt[st],this,!0);else this._siblings=dt(this.target,this,!0)}return G.prototype._enabled.call(this,z,Q),this._notifyPluginsOfEnabled&&this._firstPT?At._onPluginEvent(z?"_onEnable":"_onDisable",this):!1},At.to=function(z,Q,st){return new At(z,Q,st)},At.from=function(z,Q,st){return st.runBackwards=!0,st.immediateRender=st.immediateRender!=0,new At(z,Q,st)},At.fromTo=function(z,Q,st,nt){return nt.startAt=st,nt.immediateRender=nt.immediateRender!=0&&st.immediateRender!=0,new At(z,Q,nt)},At.delayedCall=function(z,Q,st,nt,vt){return new At(Q,0,{delay:z,onComplete:Q,onCompleteParams:st,callbackScope:nt,onReverseComplete:Q,onReverseCompleteParams:st,immediateRender:!1,lazy:!1,useFrames:vt,overwrite:0})},At.set=function(z,Q){return new At(z,0,Q)},At.getTweensOf=function(z,Q){if(z==null)return[];z=typeof z!="string"?z:At.selector(z)||z;var st,nt,vt,Ut;if((P(z)||ce(z))&&typeof z[0]!="number"){for(st=z.length,nt=[];--st>-1;)nt=nt.concat(At.getTweensOf(z[st],Q));for(st=nt.length;--st>-1;)for(Ut=nt[st],vt=st;--vt>-1;)Ut===nt[vt]&&nt.splice(st,1)}else if(z._gsTweenID)for(nt=dt(z).concat(),st=nt.length;--st>-1;)(nt[st]._gc||Q&&!nt[st].isActive())&&nt.splice(st,1);return nt||[]},At.killTweensOf=At.killDelayedCallsTo=function(z,Q,st){typeof Q=="object"&&(st=Q,Q=!1);for(var nt=At.getTweensOf(z,Q),vt=nt.length;--vt>-1;)nt[vt]._kill(st,z)};var Kt=C("plugins.TweenPlugin",function(z,Q){this._overwriteProps=(z||"").split(","),this._propName=this._overwriteProps[0],this._priority=Q||0,this._super=Kt.prototype},!0);if(v=Kt.prototype,Kt.version="1.19.0",Kt.API=2,v._firstPT=null,v._addTween=$e,v.setRatio=pe,v._kill=function(z){var Q,st=this._overwriteProps,nt=this._firstPT;if(z[this._propName]!=null)this._overwriteProps=[];else for(Q=st.length;--Q>-1;)z[st[Q]]!=null&&st.splice(Q,1);for(;nt;)z[nt.n]!=null&&(nt._next&&(nt._next._prev=nt._prev),nt._prev?(nt._prev._next=nt._next,nt._prev=null):this._firstPT===nt&&(this._firstPT=nt._next)),nt=nt._next;return!1},v._mod=v._roundProps=function(z){for(var Q,st=this._firstPT;st;)Q=z[this._propName]||st.n!=null&&z[st.n.split(this._propName+"_").join("")],Q&&typeof Q=="function"&&(st.f===2?st.t._applyPT.m=Q:st.m=Q),st=st._next},At._onPluginEvent=function(z,Q){var st,nt,vt,Ut,qt,Xt=Q._firstPT;if(z==="_onInitAllProps"){for(;Xt;){for(qt=Xt._next,nt=vt;nt&&nt.pr>Xt.pr;)nt=nt._next;(Xt._prev=nt?nt._prev:Ut)?Xt._prev._next=Xt:vt=Xt,(Xt._next=nt)?nt._prev=Xt:Ut=Xt,Xt=qt}Xt=Q._firstPT=vt}for(;Xt;)Xt.pg&&typeof Xt.t[z]=="function"&&Xt.t[z]()&&(st=!0),Xt=Xt._next;return st},Kt.activate=function(z){for(var Q=z.length;--Q>-1;)z[Q].API===Kt.API&&(Oe[new z[Q]()._propName]=z[Q]);return!0},I.plugin=function(z){if(!(z&&z.propName&&z.init&&z.API))throw"illegal plugin definition.";var Q,st=z.propName,nt=z.priority||0,vt=z.overwriteProps,Ut={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},qt=C("plugins."+st.charAt(0).toUpperCase()+st.substr(1)+"Plugin",function(){Kt.call(this,st,nt),this._overwriteProps=vt||[]},z.global===!0),Xt=qt.prototype=new Kt(st);Xt.constructor=qt,qt.API=z.API;for(Q in Ut)typeof z[Q]=="function"&&(Xt[Ut[Q]]=z[Q]);return qt.version=z.version,Kt.activate([qt]),qt},m=x._gsQueue){for(g=0;g<m.length;g++)m[g]();for(v in w)w[v].func||x.console.log("GSAP encountered missing dependency: "+v)}b=!1}(typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window,"TweenMax");const Qp={class:"modal-background"},tm=["innerHTML"],em={name:"MapModali"},Ef=oi.defineComponent({...em,props:{},setup(x,{expose:a}){const o=oi.ref(""),c=oi.ref(""),f=m=>{c.value=m,o.value="five"},u=()=>{o.value=o.value+" out"};return oi.onMounted(()=>{}),a({text:c,show:f,hide:u}),(m,g)=>(oi.openBlock(),oi.createElementBlock("div",{id:"modal-container",class:oi.normalizeClass(o.value),onClick:u},[oi.createElementVNode("div",Qp,[oi.createElementVNode("div",{class:"modal",onClick:g[0]||(g[0]=v=>{v.stopPropagation()})},[oi.createElementVNode("p",{style:{"white-space":"pre-line","line-height":"1",margin:"0",color:"#fff"},innerHTML:c.value},null,8,tm)])])],2))}}),L1="",im={class:"bim_background_plate"},nm={class:"content"},rm=oi.createElementVNode("canvas",{class:"landscape"},null,-1),om={class:"content__title"},sm=oi.createElementVNode("div",{class:"overlay"},null,-1),am={name:"BimBackgroundPlate"},bf=oi.defineComponent({...am,setup(x){const a=()=>{let f=`
|
|
13
|
+
**/var ln=typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window;(ln._gsQueue||(ln._gsQueue=[])).push(function(){ln._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,a,o){var c=function(E){var P,w=[],T=E.length;for(P=0;P!==T;w.push(E[P++]));return w},f=function(E,P,w){var T,I,C=E.cycle;for(T in C)I=C[T],E[T]=typeof I=="function"?I(w,P[w]):I[w%I.length];delete E.cycle},u=function(E,P,w){o.call(this,E,P,w),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=u.prototype.render},m=1e-10,g=o._internals,v=g.isSelector,S=g.isArray,b=u.prototype=o.to({},.1,{}),O=[];u.version="2.0.2",b.constructor=u,b.kill()._gc=!1,u.killTweensOf=u.killDelayedCallsTo=o.killTweensOf,u.getTweensOf=o.getTweensOf,u.lagSmoothing=o.lagSmoothing,u.ticker=o.ticker,u.render=o.render,b.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),o.prototype.invalidate.call(this)},b.updateTo=function(E,P){var w,T=this.ratio,I=this.vars.immediateRender||E.immediateRender;P&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(w in E)this.vars[w]=E[w];if(this._initted||I){if(P)this._initted=!1,I&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&o._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var C=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(C,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||I)for(var U,N=1/(1-T),X=this._firstPT;X;)U=X.s+X.c,X.c*=N,X.s=U-X.c,X=X._next}return this},b.render=function(E,P,w){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var T,I,C,U,N,X,J,Z,ct,Rt=this._dirty?this.totalDuration():this._totalDuration,tt=this._time,_t=this._totalTime,G=this._cycle,Pt=this._duration,Et=this._rawPrevTime;if(E>=Rt-1e-7&&E>=0?(this._totalTime=Rt,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=Pt,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(T=!0,I="onComplete",w=w||this._timeline.autoRemoveChildren),Pt===0&&(this._initted||!this.vars.lazy||w)&&(this._startTime===this._timeline._duration&&(E=0),(0>Et||0>=E&&E>=-1e-7||Et===m&&this.data!=="isPause")&&Et!==E&&(w=!0,Et>m&&(I="onReverseComplete")),this._rawPrevTime=Z=!P||E||Et===E?E:m)):1e-7>E?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(_t!==0||Pt===0&&Et>0)&&(I="onReverseComplete",T=this._reversed),0>E&&(this._active=!1,Pt===0&&(this._initted||!this.vars.lazy||w)&&(Et>=0&&(w=!0),this._rawPrevTime=Z=!P||E||Et===E?E:m)),this._initted||(w=!0)):(this._totalTime=this._time=E,this._repeat!==0&&(U=Pt+this._repeatDelay,this._cycle=this._totalTime/U>>0,this._cycle!==0&&this._cycle===this._totalTime/U&&E>=_t&&this._cycle--,this._time=this._totalTime-this._cycle*U,this._yoyo&&1&this._cycle&&(this._time=Pt-this._time,ct=this._yoyoEase||this.vars.yoyoEase,ct&&(this._yoyoEase||(ct!==!0||this._initted?this._yoyoEase=ct=ct===!0?this._ease:ct instanceof Ease?ct:Ease.map[ct]:(ct=this.vars.ease,this._yoyoEase=ct=ct?ct instanceof Ease?ct:typeof ct=="function"?new Ease(ct,this.vars.easeParams):Ease.map[ct]||o.defaultEase:o.defaultEase)),this.ratio=ct?1-ct.getRatio((Pt-this._time)/Pt):0)),this._time>Pt?this._time=Pt:this._time<0&&(this._time=0)),this._easeType&&!ct?(N=this._time/Pt,X=this._easeType,J=this._easePower,(X===1||X===3&&N>=.5)&&(N=1-N),X===3&&(N*=2),J===1?N*=N:J===2?N*=N*N:J===3?N*=N*N*N:J===4&&(N*=N*N*N*N),X===1?this.ratio=1-N:X===2?this.ratio=N:this._time/Pt<.5?this.ratio=N/2:this.ratio=1-N/2):ct||(this.ratio=this._ease.getRatio(this._time/Pt))),tt===this._time&&!w&&G===this._cycle)return void(_t!==this._totalTime&&this._onUpdate&&(P||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!w&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=tt,this._totalTime=_t,this._rawPrevTime=Et,this._cycle=G,g.lazyTweens.push(this),void(this._lazy=[E,P]);!this._time||T||ct?T&&this._ease._calcEnd&&!ct&&(this.ratio=this._ease.getRatio(this._time===0?0:1)):this.ratio=this._ease.getRatio(this._time/Pt)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==tt&&E>=0&&(this._active=!0),_t===0&&(this._initted===2&&E>0&&this._init(),this._startAt&&(E>=0?this._startAt.render(E,!0,w):I||(I="_dummyGS")),this.vars.onStart&&(this._totalTime!==0||Pt===0)&&(P||this._callback("onStart"))),C=this._firstPT;C;)C.f?C.t[C.p](C.c*this.ratio+C.s):C.t[C.p]=C.c*this.ratio+C.s,C=C._next;this._onUpdate&&(0>E&&this._startAt&&this._startTime&&this._startAt.render(E,!0,w),P||(this._totalTime!==_t||I)&&this._callback("onUpdate")),this._cycle!==G&&(P||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),I&&(!this._gc||w)&&(0>E&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(E,!0,w),T&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!P&&this.vars[I]&&this._callback(I),Pt===0&&this._rawPrevTime===m&&Z!==m&&(this._rawPrevTime=0))},u.to=function(E,P,w){return new u(E,P,w)},u.from=function(E,P,w){return w.runBackwards=!0,w.immediateRender=w.immediateRender!=0,new u(E,P,w)},u.fromTo=function(E,P,w,T){return T.startAt=w,T.immediateRender=T.immediateRender!=0&&w.immediateRender!=0,new u(E,P,T)},u.staggerTo=u.allTo=function(E,P,w,T,I,C,U){T=T||0;var N,X,J,Z,ct=0,Rt=[],tt=function(){w.onComplete&&w.onComplete.apply(w.onCompleteScope||this,arguments),I.apply(U||w.callbackScope||this,C||O)},_t=w.cycle,G=w.startAt&&w.startAt.cycle;for(S(E)||(typeof E=="string"&&(E=o.selector(E)||E),v(E)&&(E=c(E))),E=E||[],0>T&&(E=c(E),E.reverse(),T*=-1),N=E.length-1,J=0;N>=J;J++){X={};for(Z in w)X[Z]=w[Z];if(_t&&(f(X,E,J),X.duration!=null&&(P=X.duration,delete X.duration)),G){G=X.startAt={};for(Z in w.startAt)G[Z]=w.startAt[Z];f(X.startAt,E,J)}X.delay=ct+(X.delay||0),J===N&&I&&(X.onComplete=tt),Rt[J]=new u(E[J],P,X),ct+=T}return Rt},u.staggerFrom=u.allFrom=function(E,P,w,T,I,C,U){return w.runBackwards=!0,w.immediateRender=w.immediateRender!=0,u.staggerTo(E,P,w,T,I,C,U)},u.staggerFromTo=u.allFromTo=function(E,P,w,T,I,C,U,N){return T.startAt=w,T.immediateRender=T.immediateRender!=0&&w.immediateRender!=0,u.staggerTo(E,P,T,I,C,U,N)},u.delayedCall=function(E,P,w,T,I){return new u(P,0,{delay:E,onComplete:P,onCompleteParams:w,callbackScope:T,onReverseComplete:P,onReverseCompleteParams:w,immediateRender:!1,useFrames:I,overwrite:0})},u.set=function(E,P){return new u(E,0,P)},u.isTweening=function(E){return o.getTweensOf(E,!0).length>0};var k=function(E,P){for(var w=[],T=0,I=E._first;I;)I instanceof o?w[T++]=I:(P&&(w[T++]=I),w=w.concat(k(I,P)),T=w.length),I=I._next;return w},R=u.getAllTweens=function(E){return k(x._rootTimeline,E).concat(k(x._rootFramesTimeline,E))};u.killAll=function(E,P,w,T){P==null&&(P=!0),w==null&&(w=!0);var I,C,U,N=R(T!=0),X=N.length,J=P&&w&&T;for(U=0;X>U;U++)C=N[U],(J||C instanceof a||(I=C.target===C.vars.onComplete)&&w||P&&!I)&&(E?C.totalTime(C._reversed?0:C.totalDuration()):C._enabled(!1,!1))},u.killChildTweensOf=function(E,P){if(E!=null){var w,T,I,C,U,N=g.tweenLookup;if(typeof E=="string"&&(E=o.selector(E)||E),v(E)&&(E=c(E)),S(E))for(C=E.length;--C>-1;)u.killChildTweensOf(E[C],P);else{w=[];for(I in N)for(T=N[I].target.parentNode;T;)T===E&&(w=w.concat(N[I].tweens)),T=T.parentNode;for(U=w.length,C=0;U>C;C++)P&&w[C].totalTime(w[C].totalDuration()),w[C]._enabled(!1,!1)}}};var F=function(E,P,w,T){P=P!==!1,w=w!==!1,T=T!==!1;for(var I,C,U=R(T),N=P&&w&&T,X=U.length;--X>-1;)C=U[X],(N||C instanceof a||(I=C.target===C.vars.onComplete)&&w||P&&!I)&&C.paused(E)};return u.pauseAll=function(E,P,w){F(!0,E,P,w)},u.resumeAll=function(E,P,w){F(!1,E,P,w)},u.globalTimeScale=function(E){var P=x._rootTimeline,w=o.ticker.time;return arguments.length?(E=E||m,P._startTime=w-(w-P._startTime)*P._timeScale/E,P=x._rootFramesTimeline,w=o.ticker.frame,P._startTime=w-(w-P._startTime)*P._timeScale/E,P._timeScale=x._rootTimeline._timeScale=E,E):P._timeScale},b.progress=function(E,P){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-E:E)+this._cycle*(this._duration+this._repeatDelay),P):this._time/this.duration()},b.totalProgress=function(E,P){return arguments.length?this.totalTime(this.totalDuration()*E,P):this._totalTime/this.totalDuration()},b.time=function(E,P){return arguments.length?(this._dirty&&this.totalDuration(),E>this._duration&&(E=this._duration),this._yoyo&&1&this._cycle?E=this._duration-E+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(E+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(E,P)):this._time},b.duration=function(E){return arguments.length?x.prototype.duration.call(this,E):this._duration},b.totalDuration=function(E){return arguments.length?this._repeat===-1?this:this.duration((E-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},b.repeat=function(E){return arguments.length?(this._repeat=E,this._uncache(!0)):this._repeat},b.repeatDelay=function(E){return arguments.length?(this._repeatDelay=E,this._uncache(!0)):this._repeatDelay},b.yoyo=function(E){return arguments.length?(this._yoyo=E,this):this._yoyo},u},!0),ln._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,a,o){var c=function(w){a.call(this,w),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var T,I,C=this.vars;for(I in C)T=C[I],v(T)&&T.join("").indexOf("{self}")!==-1&&(C[I]=this._swapSelfInParams(T));v(C.tweens)&&this.add(C.tweens,0,C.align,C.stagger)},f=1e-10,u=o._internals,m=c._internals={},g=u.isSelector,v=u.isArray,S=u.lazyTweens,b=u.lazyRender,O=ln._gsDefine.globals,k=function(w){var T,I={};for(T in w)I[T]=w[T];return I},R=function(w,T,I){var C,U,N=w.cycle;for(C in N)U=N[C],w[C]=typeof U=="function"?U(I,T[I]):U[I%U.length];delete w.cycle},F=m.pauseCallback=function(){},E=function(w){var T,I=[],C=w.length;for(T=0;T!==C;I.push(w[T++]));return I},P=c.prototype=new a;return c.version="2.0.2",P.constructor=c,P.kill()._gc=P._forcingPlayhead=P._hasPause=!1,P.to=function(w,T,I,C){var U=I.repeat&&O.TweenMax||o;return T?this.add(new U(w,T,I),C):this.set(w,I,C)},P.from=function(w,T,I,C){return this.add((I.repeat&&O.TweenMax||o).from(w,T,I),C)},P.fromTo=function(w,T,I,C,U){var N=C.repeat&&O.TweenMax||o;return T?this.add(N.fromTo(w,T,I,C),U):this.set(w,C,U)},P.staggerTo=function(w,T,I,C,U,N,X,J){var Z,ct,Rt=new c({onComplete:N,onCompleteParams:X,callbackScope:J,smoothChildTiming:this.smoothChildTiming}),tt=I.cycle;for(typeof w=="string"&&(w=o.selector(w)||w),w=w||[],g(w)&&(w=E(w)),C=C||0,0>C&&(w=E(w),w.reverse(),C*=-1),ct=0;ct<w.length;ct++)Z=k(I),Z.startAt&&(Z.startAt=k(Z.startAt),Z.startAt.cycle&&R(Z.startAt,w,ct)),tt&&(R(Z,w,ct),Z.duration!=null&&(T=Z.duration,delete Z.duration)),Rt.to(w[ct],T,Z,ct*C);return this.add(Rt,U)},P.staggerFrom=function(w,T,I,C,U,N,X,J){return I.immediateRender=I.immediateRender!=0,I.runBackwards=!0,this.staggerTo(w,T,I,C,U,N,X,J)},P.staggerFromTo=function(w,T,I,C,U,N,X,J,Z){return C.startAt=I,C.immediateRender=C.immediateRender!=0&&I.immediateRender!=0,this.staggerTo(w,T,C,U,N,X,J,Z)},P.call=function(w,T,I,C){return this.add(o.delayedCall(0,w,T,I),C)},P.set=function(w,T,I){return I=this._parseTimeOrLabel(I,0,!0),T.immediateRender==null&&(T.immediateRender=I===this._time&&!this._paused),this.add(new o(w,0,T),I)},c.exportRoot=function(w,T){w=w||{},w.smoothChildTiming==null&&(w.smoothChildTiming=!0);var I,C,U,N,X=new c(w),J=X._timeline;for(T==null&&(T=!0),J._remove(X,!0),X._startTime=0,X._rawPrevTime=X._time=X._totalTime=J._time,U=J._first;U;)N=U._next,T&&U instanceof o&&U.target===U.vars.onComplete||(C=U._startTime-U._delay,0>C&&(I=1),X.add(U,C)),U=N;return J.add(X,0),I&&X.totalDuration(),X},P.add=function(w,T,I,C){var U,N,X,J,Z,ct;if(typeof T!="number"&&(T=this._parseTimeOrLabel(T,0,!0,w)),!(w instanceof x)){if(w instanceof Array||w&&w.push&&v(w)){for(I=I||"normal",C=C||0,U=T,N=w.length,X=0;N>X;X++)v(J=w[X])&&(J=new c({tweens:J})),this.add(J,U),typeof J!="string"&&typeof J!="function"&&(I==="sequence"?U=J._startTime+J.totalDuration()/J._timeScale:I==="start"&&(J._startTime-=J.delay())),U+=C;return this._uncache(!0)}if(typeof w=="string")return this.addLabel(w,T);if(typeof w!="function")throw"Cannot add "+w+" into the timeline; it is not a tween, timeline, function, or string.";w=o.delayedCall(0,w)}if(a.prototype.add.call(this,w,T),w._time&&(U=Math.max(0,Math.min(w.totalDuration(),(this.rawTime()-w._startTime)*w._timeScale)),Math.abs(U-w._totalTime)>1e-5&&w.render(U,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(Z=this,ct=Z.rawTime()>w._startTime;Z._timeline;)ct&&Z._timeline.smoothChildTiming?Z.totalTime(Z._totalTime,!0):Z._gc&&Z._enabled(!0,!1),Z=Z._timeline;return this},P.remove=function(w){if(w instanceof x){this._remove(w,!1);var T=w._timeline=w.vars.useFrames?x._rootFramesTimeline:x._rootTimeline;return w._startTime=(w._paused?w._pauseTime:T._time)-(w._reversed?w.totalDuration()-w._totalTime:w._totalTime)/w._timeScale,this}if(w instanceof Array||w&&w.push&&v(w)){for(var I=w.length;--I>-1;)this.remove(w[I]);return this}return typeof w=="string"?this.removeLabel(w):this.kill(null,w)},P._remove=function(w,T){a.prototype._remove.call(this,w,T);var I=this._last;return I?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},P.append=function(w,T){return this.add(w,this._parseTimeOrLabel(null,T,!0,w))},P.insert=P.insertMultiple=function(w,T,I,C){return this.add(w,T||0,I,C)},P.appendMultiple=function(w,T,I,C){return this.add(w,this._parseTimeOrLabel(null,T,!0,w),I,C)},P.addLabel=function(w,T){return this._labels[w]=this._parseTimeOrLabel(T),this},P.addPause=function(w,T,I,C){var U=o.delayedCall(0,F,I,C||this);return U.vars.onComplete=U.vars.onReverseComplete=T,U.data="isPause",this._hasPause=!0,this.add(U,w)},P.removeLabel=function(w){return delete this._labels[w],this},P.getLabelTime=function(w){return this._labels[w]!=null?this._labels[w]:-1},P._parseTimeOrLabel=function(w,T,I,C){var U,N;if(C instanceof x&&C.timeline===this)this.remove(C);else if(C&&(C instanceof Array||C.push&&v(C)))for(N=C.length;--N>-1;)C[N]instanceof x&&C[N].timeline===this&&this.remove(C[N]);if(U=typeof w!="number"||T?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,typeof T=="string")return this._parseTimeOrLabel(T,I&&typeof w=="number"&&this._labels[T]==null?w-U:0,I);if(T=T||0,typeof w!="string"||!isNaN(w)&&this._labels[w]==null)w==null&&(w=U);else{if(N=w.indexOf("="),N===-1)return this._labels[w]==null?I?this._labels[w]=U+T:T:this._labels[w]+T;T=parseInt(w.charAt(N-1)+"1",10)*Number(w.substr(N+1)),w=N>1?this._parseTimeOrLabel(w.substr(0,N-1),0,I):U}return Number(w)+T},P.seek=function(w,T){return this.totalTime(typeof w=="number"?w:this._parseTimeOrLabel(w),T!==!1)},P.stop=function(){return this.paused(!0)},P.gotoAndPlay=function(w,T){return this.play(w,T)},P.gotoAndStop=function(w,T){return this.pause(w,T)},P.render=function(w,T,I){this._gc&&this._enabled(!0,!1);var C,U,N,X,J,Z,ct,Rt=this._time,tt=this._dirty?this.totalDuration():this._totalDuration,_t=this._startTime,G=this._timeScale,Pt=this._paused;if(Rt!==this._time&&(w+=this._time-Rt),w>=tt-1e-7&&w>=0)this._totalTime=this._time=tt,this._reversed||this._hasPausedChild()||(U=!0,X="onComplete",J=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=w&&w>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===f)&&this._rawPrevTime!==w&&this._first&&(J=!0,this._rawPrevTime>f&&(X="onReverseComplete"))),this._rawPrevTime=this._duration||!T||w||this._rawPrevTime===w?w:f,w=tt+1e-4;else if(1e-7>w)if(this._totalTime=this._time=0,(Rt!==0||this._duration===0&&this._rawPrevTime!==f&&(this._rawPrevTime>0||0>w&&this._rawPrevTime>=0))&&(X="onReverseComplete",U=this._reversed),0>w)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(J=U=!0,X="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(J=!0),this._rawPrevTime=w;else{if(this._rawPrevTime=this._duration||!T||w||this._rawPrevTime===w?w:f,w===0&&U)for(C=this._first;C&&C._startTime===0;)C._duration||(U=!1),C=C._next;w=0,this._initted||(J=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!T){if(w>=Rt)for(C=this._first;C&&C._startTime<=w&&!Z;)C._duration||C.data!=="isPause"||C.ratio||C._startTime===0&&this._rawPrevTime===0||(Z=C),C=C._next;else for(C=this._last;C&&C._startTime>=w&&!Z;)C._duration||C.data==="isPause"&&C._rawPrevTime>0&&(Z=C),C=C._prev;Z&&(this._time=w=Z._startTime,this._totalTime=w+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=w}if(this._time!==Rt&&this._first||I||J||Z){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==Rt&&w>0&&(this._active=!0),Rt===0&&this.vars.onStart&&(this._time===0&&this._duration||T||this._callback("onStart")),ct=this._time,ct>=Rt)for(C=this._first;C&&(N=C._next,ct===this._time&&(!this._paused||Pt));)(C._active||C._startTime<=ct&&!C._paused&&!C._gc)&&(Z===C&&this.pause(),C._reversed?C.render((C._dirty?C.totalDuration():C._totalDuration)-(w-C._startTime)*C._timeScale,T,I):C.render((w-C._startTime)*C._timeScale,T,I)),C=N;else for(C=this._last;C&&(N=C._prev,ct===this._time&&(!this._paused||Pt));){if(C._active||C._startTime<=Rt&&!C._paused&&!C._gc){if(Z===C){for(Z=C._prev;Z&&Z.endTime()>this._time;)Z.render(Z._reversed?Z.totalDuration()-(w-Z._startTime)*Z._timeScale:(w-Z._startTime)*Z._timeScale,T,I),Z=Z._prev;Z=null,this.pause()}C._reversed?C.render((C._dirty?C.totalDuration():C._totalDuration)-(w-C._startTime)*C._timeScale,T,I):C.render((w-C._startTime)*C._timeScale,T,I)}C=N}this._onUpdate&&(T||(S.length&&b(),this._callback("onUpdate"))),X&&(this._gc||(_t===this._startTime||G!==this._timeScale)&&(this._time===0||tt>=this.totalDuration())&&(U&&(S.length&&b(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!T&&this.vars[X]&&this._callback(X)))}},P._hasPausedChild=function(){for(var w=this._first;w;){if(w._paused||w instanceof c&&w._hasPausedChild())return!0;w=w._next}return!1},P.getChildren=function(w,T,I,C){C=C||-9999999999;for(var U=[],N=this._first,X=0;N;)N._startTime<C||(N instanceof o?T!==!1&&(U[X++]=N):(I!==!1&&(U[X++]=N),w!==!1&&(U=U.concat(N.getChildren(!0,T,I)),X=U.length))),N=N._next;return U},P.getTweensOf=function(w,T){var I,C,U=this._gc,N=[],X=0;for(U&&this._enabled(!0,!0),I=o.getTweensOf(w),C=I.length;--C>-1;)(I[C].timeline===this||T&&this._contains(I[C]))&&(N[X++]=I[C]);return U&&this._enabled(!1,!0),N},P.recent=function(){return this._recent},P._contains=function(w){for(var T=w.timeline;T;){if(T===this)return!0;T=T.timeline}return!1},P.shiftChildren=function(w,T,I){I=I||0;for(var C,U=this._first,N=this._labels;U;)U._startTime>=I&&(U._startTime+=w),U=U._next;if(T)for(C in N)N[C]>=I&&(N[C]+=w);return this._uncache(!0)},P._kill=function(w,T){if(!w&&!T)return this._enabled(!1,!1);for(var I=T?this.getTweensOf(T):this.getChildren(!0,!0,!1),C=I.length,U=!1;--C>-1;)I[C]._kill(w,T)&&(U=!0);return U},P.clear=function(w){var T=this.getChildren(!1,!0,!0),I=T.length;for(this._time=this._totalTime=0;--I>-1;)T[I]._enabled(!1,!1);return w!==!1&&(this._labels={}),this._uncache(!0)},P.invalidate=function(){for(var w=this._first;w;)w.invalidate(),w=w._next;return x.prototype.invalidate.call(this)},P._enabled=function(w,T){if(w===this._gc)for(var I=this._first;I;)I._enabled(w,!0),I=I._next;return a.prototype._enabled.call(this,w,T)},P.totalTime=function(w,T,I){this._forcingPlayhead=!0;var C=x.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,C},P.duration=function(w){return arguments.length?(this.duration()!==0&&w!==0&&this.timeScale(this._duration/w),this):(this._dirty&&this.totalDuration(),this._duration)},P.totalDuration=function(w){if(!arguments.length){if(this._dirty){for(var T,I,C=0,U=this._last,N=999999999999;U;)T=U._prev,U._dirty&&U.totalDuration(),U._startTime>N&&this._sortChildren&&!U._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(U,U._startTime-U._delay),this._calculatingDuration=0):N=U._startTime,U._startTime<0&&!U._paused&&(C-=U._startTime,this._timeline.smoothChildTiming&&(this._startTime+=U._startTime/this._timeScale,this._time-=U._startTime,this._totalTime-=U._startTime,this._rawPrevTime-=U._startTime),this.shiftChildren(-U._startTime,!1,-9999999999),N=0),I=U._startTime+U._totalDuration/U._timeScale,I>C&&(C=I),U=T;this._duration=this._totalDuration=C,this._dirty=!1}return this._totalDuration}return w&&this.totalDuration()?this.timeScale(this._totalDuration/w):this},P.paused=function(w){if(!w)for(var T=this._first,I=this._time;T;)T._startTime===I&&T.data==="isPause"&&(T._rawPrevTime=0),T=T._next;return x.prototype.paused.apply(this,arguments)},P.usesFrames=function(){for(var w=this._timeline;w._timeline;)w=w._timeline;return w===x._rootFramesTimeline},P.rawTime=function(w){return w&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(w)-this._startTime)*this._timeScale},c},!0),ln._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(x,a,o){var c=function(O){x.call(this,O),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},f=1e-10,u=a._internals,m=u.lazyTweens,g=u.lazyRender,v=ln._gsDefine.globals,S=new o(null,null,1,0),b=c.prototype=new x;return b.constructor=c,b.kill()._gc=!1,c.version="2.0.2",b.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),x.prototype.invalidate.call(this)},b.addCallback=function(O,k,R,F){return this.add(a.delayedCall(0,O,R,F),k)},b.removeCallback=function(O,k){if(O)if(k==null)this._kill(null,O);else for(var R=this.getTweensOf(O,!1),F=R.length,E=this._parseTimeOrLabel(k);--F>-1;)R[F]._startTime===E&&R[F]._enabled(!1,!1);return this},b.removePause=function(O){return this.removeCallback(x._internals.pauseCallback,O)},b.tweenTo=function(O,k){k=k||{};var R,F,E,P={ease:S,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},w=k.repeat&&v.TweenMax||a;for(F in k)P[F]=k[F];return P.time=this._parseTimeOrLabel(O),R=Math.abs(Number(P.time)-this._time)/this._timeScale||.001,E=new w(this,R,P),P.onStart=function(){E.target.paused(!0),E.vars.time===E.target.time()||R!==E.duration()||E.isFromTo||E.duration(Math.abs(E.vars.time-E.target.time())/E.target._timeScale).render(E.time(),!0,!0),k.onStart&&k.onStart.apply(k.onStartScope||k.callbackScope||E,k.onStartParams||[])},E},b.tweenFromTo=function(O,k,R){R=R||{},O=this._parseTimeOrLabel(O),R.startAt={onComplete:this.seek,onCompleteParams:[O],callbackScope:this},R.immediateRender=R.immediateRender!==!1;var F=this.tweenTo(k,R);return F.isFromTo=1,F.duration(Math.abs(F.vars.time-O)/this._timeScale||.001)},b.render=function(O,k,R){this._gc&&this._enabled(!0,!1);var F,E,P,w,T,I,C,U,N=this._time,X=this._dirty?this.totalDuration():this._totalDuration,J=this._duration,Z=this._totalTime,ct=this._startTime,Rt=this._timeScale,tt=this._rawPrevTime,_t=this._paused,G=this._cycle;if(N!==this._time&&(O+=this._time-N),O>=X-1e-7&&O>=0)this._locked||(this._totalTime=X,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(E=!0,w="onComplete",T=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=O&&O>=-1e-7||0>tt||tt===f)&&tt!==O&&this._first&&(T=!0,tt>f&&(w="onReverseComplete"))),this._rawPrevTime=this._duration||!k||O||this._rawPrevTime===O?O:f,this._yoyo&&1&this._cycle?this._time=O=0:(this._time=J,O=J+1e-4);else if(1e-7>O)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(N!==0||J===0&&tt!==f&&(tt>0||0>O&&tt>=0)&&!this._locked)&&(w="onReverseComplete",E=this._reversed),0>O)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(T=E=!0,w="onReverseComplete"):tt>=0&&this._first&&(T=!0),this._rawPrevTime=O;else{if(this._rawPrevTime=J||!k||O||this._rawPrevTime===O?O:f,O===0&&E)for(F=this._first;F&&F._startTime===0;)F._duration||(E=!1),F=F._next;O=0,this._initted||(T=!0)}else if(J===0&&0>tt&&(T=!0),this._time=this._rawPrevTime=O,this._locked||(this._totalTime=O,this._repeat!==0&&(I=J+this._repeatDelay,this._cycle=this._totalTime/I>>0,this._cycle!==0&&this._cycle===this._totalTime/I&&O>=Z&&this._cycle--,this._time=this._totalTime-this._cycle*I,this._yoyo&&1&this._cycle&&(this._time=J-this._time),this._time>J?(this._time=J,O=J+1e-4):this._time<0?this._time=O=0:O=this._time)),this._hasPause&&!this._forcingPlayhead&&!k){if(O=this._time,O>=N||this._repeat&&G!==this._cycle)for(F=this._first;F&&F._startTime<=O&&!C;)F._duration||F.data!=="isPause"||F.ratio||F._startTime===0&&this._rawPrevTime===0||(C=F),F=F._next;else for(F=this._last;F&&F._startTime>=O&&!C;)F._duration||F.data==="isPause"&&F._rawPrevTime>0&&(C=F),F=F._prev;C&&C._startTime<J&&(this._time=O=C._startTime,this._totalTime=O+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==G&&!this._locked){var Pt=this._yoyo&&(1&G)!==0,Et=Pt===(this._yoyo&&(1&this._cycle)!==0),At=this._totalTime,ce=this._cycle,re=this._rawPrevTime,Ft=this._time;if(this._totalTime=G*J,this._cycle<G?Pt=!Pt:this._totalTime+=J,this._time=N,this._rawPrevTime=J===0?tt-1e-4:tt,this._cycle=G,this._locked=!0,N=Pt?0:J,this.render(N,k,J===0),k||this._gc||this.vars.onRepeat&&(this._cycle=ce,this._locked=!1,this._callback("onRepeat")),N!==this._time||(Et&&(this._cycle=G,this._locked=!0,N=Pt?J+1e-4:-1e-4,this.render(N,!0,!1)),this._locked=!1,this._paused&&!_t))return;this._time=Ft,this._totalTime=At,this._cycle=ce,this._rawPrevTime=re}if(!(this._time!==N&&this._first||R||T||C))return void(Z!==this._totalTime&&this._onUpdate&&(k||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==Z&&O>0&&(this._active=!0),Z===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||k||this._callback("onStart")),U=this._time,U>=N)for(F=this._first;F&&(P=F._next,U===this._time&&(!this._paused||_t));)(F._active||F._startTime<=this._time&&!F._paused&&!F._gc)&&(C===F&&this.pause(),F._reversed?F.render((F._dirty?F.totalDuration():F._totalDuration)-(O-F._startTime)*F._timeScale,k,R):F.render((O-F._startTime)*F._timeScale,k,R)),F=P;else for(F=this._last;F&&(P=F._prev,U===this._time&&(!this._paused||_t));){if(F._active||F._startTime<=N&&!F._paused&&!F._gc){if(C===F){for(C=F._prev;C&&C.endTime()>this._time;)C.render(C._reversed?C.totalDuration()-(O-C._startTime)*C._timeScale:(O-C._startTime)*C._timeScale,k,R),C=C._prev;C=null,this.pause()}F._reversed?F.render((F._dirty?F.totalDuration():F._totalDuration)-(O-F._startTime)*F._timeScale,k,R):F.render((O-F._startTime)*F._timeScale,k,R)}F=P}this._onUpdate&&(k||(m.length&&g(),this._callback("onUpdate"))),w&&(this._locked||this._gc||(ct===this._startTime||Rt!==this._timeScale)&&(this._time===0||X>=this.totalDuration())&&(E&&(m.length&&g(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!k&&this.vars[w]&&this._callback(w)))},b.getActive=function(O,k,R){O==null&&(O=!0),k==null&&(k=!0),R==null&&(R=!1);var F,E,P=[],w=this.getChildren(O,k,R),T=0,I=w.length;for(F=0;I>F;F++)E=w[F],E.isActive()&&(P[T++]=E);return P},b.getLabelAfter=function(O){O||O!==0&&(O=this._time);var k,R=this.getLabelsArray(),F=R.length;for(k=0;F>k;k++)if(R[k].time>O)return R[k].name;return null},b.getLabelBefore=function(O){O==null&&(O=this._time);for(var k=this.getLabelsArray(),R=k.length;--R>-1;)if(k[R].time<O)return k[R].name;return null},b.getLabelsArray=function(){var O,k=[],R=0;for(O in this._labels)k[R++]={time:this._labels[O],name:O};return k.sort(function(F,E){return F.time-E.time}),k},b.invalidate=function(){return this._locked=!1,x.prototype.invalidate.call(this)},b.progress=function(O,k){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-O:O)+this._cycle*(this._duration+this._repeatDelay),k):this._time/this.duration()||0},b.totalProgress=function(O,k){return arguments.length?this.totalTime(this.totalDuration()*O,k):this._totalTime/this.totalDuration()||0},b.totalDuration=function(O){return arguments.length?this._repeat!==-1&&O?this.timeScale(this.totalDuration()/O):this:(this._dirty&&(x.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},b.time=function(O,k){return arguments.length?(this._dirty&&this.totalDuration(),O>this._duration&&(O=this._duration),this._yoyo&&1&this._cycle?O=this._duration-O+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(O+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(O,k)):this._time},b.repeat=function(O){return arguments.length?(this._repeat=O,this._uncache(!0)):this._repeat},b.repeatDelay=function(O){return arguments.length?(this._repeatDelay=O,this._uncache(!0)):this._repeatDelay},b.yoyo=function(O){return arguments.length?(this._yoyo=O,this):this._yoyo},b.currentLabel=function(O){return arguments.length?this.seek(O,!0):this.getLabelBefore(this._time+1e-8)},c},!0),function(){var x=180/Math.PI,a=[],o=[],c=[],f={},u=ln._gsDefine.globals,m=function(w,T,I,C){I===C&&(I=C-(C-T)/1e6),w===T&&(T=w+(I-w)/1e6),this.a=w,this.b=T,this.c=I,this.d=C,this.da=C-w,this.ca=I-w,this.ba=T-w},g=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",v=function(w,T,I,C){var U={a:w},N={},X={},J={c:C},Z=(w+T)/2,ct=(T+I)/2,Rt=(I+C)/2,tt=(Z+ct)/2,_t=(ct+Rt)/2,G=(_t-tt)/8;return U.b=Z+(w-Z)/4,N.b=tt+G,U.c=N.a=(U.b+N.b)/2,N.c=X.a=(tt+_t)/2,X.b=_t-G,J.b=Rt+(C-Rt)/4,X.c=J.a=(X.b+J.b)/2,[U,N,X,J]},S=function(w,T,I,C,U){var N,X,J,Z,ct,Rt,tt,_t,G,Pt,Et,At,ce,re=w.length-1,Ft=0,It=w[0].a;for(N=0;re>N;N++)ct=w[Ft],X=ct.a,J=ct.d,Z=w[Ft+1].d,U?(Et=a[N],At=o[N],ce=(At+Et)*T*.25/(C?.5:c[N]||.5),Rt=J-(J-X)*(C?.5*T:Et!==0?ce/Et:0),tt=J+(Z-J)*(C?.5*T:At!==0?ce/At:0),_t=J-(Rt+((tt-Rt)*(3*Et/(Et+At)+.5)/4||0))):(Rt=J-(J-X)*T*.5,tt=J+(Z-J)*T*.5,_t=J-(Rt+tt)/2),Rt+=_t,tt+=_t,ct.c=G=Rt,N!==0?ct.b=It:ct.b=It=ct.a+.6*(ct.c-ct.a),ct.da=J-X,ct.ca=G-X,ct.ba=It-X,I?(Pt=v(X,It,G,J),w.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]),Ft+=4):Ft++,It=tt;ct=w[Ft],ct.b=It,ct.c=It+.4*(ct.d-It),ct.da=ct.d-ct.a,ct.ca=ct.c-ct.a,ct.ba=It-ct.a,I&&(Pt=v(ct.a,It,ct.c,ct.d),w.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]))},b=function(w,T,I,C){var U,N,X,J,Z,ct,Rt=[];if(C)for(w=[C].concat(w),N=w.length;--N>-1;)typeof(ct=w[N][T])=="string"&&ct.charAt(1)==="="&&(w[N][T]=C[T]+Number(ct.charAt(0)+ct.substr(2)));if(U=w.length-2,0>U)return Rt[0]=new m(w[0][T],0,0,w[0][T]),Rt;for(N=0;U>N;N++)X=w[N][T],J=w[N+1][T],Rt[N]=new m(X,0,0,J),I&&(Z=w[N+2][T],a[N]=(a[N]||0)+(J-X)*(J-X),o[N]=(o[N]||0)+(Z-J)*(Z-J));return Rt[N]=new m(w[N][T],0,0,w[N+1][T]),Rt},O=function(w,T,I,C,U,N){var X,J,Z,ct,Rt,tt,_t,G,Pt={},Et=[],At=N||w[0];U=typeof U=="string"?","+U+",":g,T==null&&(T=1);for(J in w[0])Et.push(J);if(w.length>1){for(G=w[w.length-1],_t=!0,X=Et.length;--X>-1;)if(J=Et[X],Math.abs(At[J]-G[J])>.05){_t=!1;break}_t&&(w=w.concat(),N&&w.unshift(N),w.push(w[1]),N=w[w.length-3])}for(a.length=o.length=c.length=0,X=Et.length;--X>-1;)J=Et[X],f[J]=U.indexOf(","+J+",")!==-1,Pt[J]=b(w,J,f[J],N);for(X=a.length;--X>-1;)a[X]=Math.sqrt(a[X]),o[X]=Math.sqrt(o[X]);if(!C){for(X=Et.length;--X>-1;)if(f[J])for(Z=Pt[Et[X]],tt=Z.length-1,ct=0;tt>ct;ct++)Rt=Z[ct+1].da/o[ct]+Z[ct].da/a[ct]||0,c[ct]=(c[ct]||0)+Rt*Rt;for(X=c.length;--X>-1;)c[X]=Math.sqrt(c[X])}for(X=Et.length,ct=I?4:1;--X>-1;)J=Et[X],Z=Pt[J],S(Z,T,I,C,f[J]),_t&&(Z.splice(0,ct),Z.splice(Z.length-ct,ct));return Pt},k=function(w,T,I){T=T||"soft";var C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt={},Et=T==="cubic"?3:2,At=T==="soft",ce=[];if(At&&I&&(w=[I].concat(w)),w==null||w.length<Et+1)throw"invalid Bezier data";for(tt in w[0])ce.push(tt);for(Z=ce.length;--Z>-1;){for(tt=ce[Z],Pt[tt]=J=[],_t=0,Rt=w.length,ct=0;Rt>ct;ct++)C=I==null?w[ct][tt]:typeof(G=w[ct][tt])=="string"&&G.charAt(1)==="="?I[tt]+Number(G.charAt(0)+G.substr(2)):Number(G),At&&ct>1&&Rt-1>ct&&(J[_t++]=(C+J[_t-2])/2),J[_t++]=C;for(Rt=_t-Et+1,_t=0,ct=0;Rt>ct;ct+=Et)C=J[ct],U=J[ct+1],N=J[ct+2],X=Et===2?0:J[ct+3],J[_t++]=G=Et===3?new m(C,U,N,X):new m(C,(2*U+C)/3,(2*U+N)/3,N);J.length=_t}return Pt},R=function(w,T,I){for(var C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt=1/I,Et=w.length;--Et>-1;)for(_t=w[Et],N=_t.a,X=_t.d-N,J=_t.c-N,Z=_t.b-N,C=U=0,Rt=1;I>=Rt;Rt++)ct=Pt*Rt,tt=1-ct,C=U-(U=(ct*ct*X+3*tt*(ct*J+tt*Z))*ct),G=Et*I+Rt-1,T[G]=(T[G]||0)+C*C},F=function(w,T){T=T>>0||6;var I,C,U,N,X=[],J=[],Z=0,ct=0,Rt=T-1,tt=[],_t=[];for(I in w)R(w[I],X,T);for(U=X.length,C=0;U>C;C++)Z+=Math.sqrt(X[C]),N=C%T,_t[N]=Z,N===Rt&&(ct+=Z,N=C/T>>0,tt[N]=_t,J[N]=ct,Z=0,_t=[]);return{length:ct,lengths:J,segments:tt}},E=ln._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(w,T,I){this._target=w,T instanceof Array&&(T={values:T}),this._func={},this._mod={},this._props=[],this._timeRes=T.timeResolution==null?6:parseInt(T.timeResolution,10);var C,U,N,X,J,Z=T.values||[],ct={},Rt=Z[0],tt=T.autoRotate||I.vars.orientToBezier;this._autoRotate=tt?tt instanceof Array?tt:[["x","y","rotation",tt===!0?0:Number(tt)||0]]:null;for(C in Rt)this._props.push(C);for(N=this._props.length;--N>-1;)C=this._props[N],this._overwriteProps.push(C),U=this._func[C]=typeof w[C]=="function",ct[C]=U?w[C.indexOf("set")||typeof w["get"+C.substr(3)]!="function"?C:"get"+C.substr(3)]():parseFloat(w[C]),J||ct[C]!==Z[0][C]&&(J=ct);if(this._beziers=T.type!=="cubic"&&T.type!=="quadratic"&&T.type!=="soft"?O(Z,isNaN(T.curviness)?1:T.curviness,!1,T.type==="thruBasic",T.correlate,J):k(Z,T.type,ct),this._segCount=this._beziers[C].length,this._timeRes){var _t=F(this._beziers,this._timeRes);this._length=_t.length,this._lengths=_t.lengths,this._segments=_t.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(tt=this._autoRotate)for(this._initialRotations=[],tt[0]instanceof Array||(this._autoRotate=tt=[tt]),N=tt.length;--N>-1;){for(X=0;3>X;X++)C=tt[N][X],this._func[C]=typeof w[C]=="function"?w[C.indexOf("set")||typeof w["get"+C.substr(3)]!="function"?C:"get"+C.substr(3)]:!1;C=tt[N][2],this._initialRotations[N]=(this._func[C]?this._func[C].call(this._target):this._target[C])||0,this._overwriteProps.push(C)}return this._startRatio=I.vars.runBackwards?1:0,!0},set:function(w){var T,I,C,U,N,X,J,Z,ct,Rt,tt=this._segCount,_t=this._func,G=this._target,Pt=w!==this._startRatio;if(this._timeRes){if(ct=this._lengths,Rt=this._curSeg,w*=this._length,C=this._li,w>this._l2&&tt-1>C){for(Z=tt-1;Z>C&&(this._l2=ct[++C])<=w;);this._l1=ct[C-1],this._li=C,this._curSeg=Rt=this._segments[C],this._s2=Rt[this._s1=this._si=0]}else if(w<this._l1&&C>0){for(;C>0&&(this._l1=ct[--C])>=w;);C===0&&w<this._l1?this._l1=0:C++,this._l2=ct[C],this._li=C,this._curSeg=Rt=this._segments[C],this._s1=Rt[(this._si=Rt.length-1)-1]||0,this._s2=Rt[this._si]}if(T=C,w-=this._l1,C=this._si,w>this._s2&&C<Rt.length-1){for(Z=Rt.length-1;Z>C&&(this._s2=Rt[++C])<=w;);this._s1=Rt[C-1],this._si=C}else if(w<this._s1&&C>0){for(;C>0&&(this._s1=Rt[--C])>=w;);C===0&&w<this._s1?this._s1=0:C++,this._s2=Rt[C],this._si=C}X=(C+(w-this._s1)/(this._s2-this._s1))*this._prec||0}else T=0>w?0:w>=1?tt-1:tt*w>>0,X=(w-T*(1/tt))*tt;for(I=1-X,C=this._props.length;--C>-1;)U=this._props[C],N=this._beziers[U][T],J=(X*X*N.da+3*I*(X*N.ca+I*N.ba))*X+N.a,this._mod[U]&&(J=this._mod[U](J,G)),_t[U]?G[U](J):G[U]=J;if(this._autoRotate){var Et,At,ce,re,Ft,It,Bt,Pe=this._autoRotate;for(C=Pe.length;--C>-1;)U=Pe[C][2],It=Pe[C][3]||0,Bt=Pe[C][4]===!0?1:x,N=this._beziers[Pe[C][0]],Et=this._beziers[Pe[C][1]],N&&Et&&(N=N[T],Et=Et[T],At=N.a+(N.b-N.a)*X,re=N.b+(N.c-N.b)*X,At+=(re-At)*X,re+=(N.c+(N.d-N.c)*X-re)*X,ce=Et.a+(Et.b-Et.a)*X,Ft=Et.b+(Et.c-Et.b)*X,ce+=(Ft-ce)*X,Ft+=(Et.c+(Et.d-Et.c)*X-Ft)*X,J=Pt?Math.atan2(Ft-ce,re-At)*Bt+It:this._initialRotations[C],this._mod[U]&&(J=this._mod[U](J,G)),_t[U]?G[U](J):G[U]=J)}}}),P=E.prototype;E.bezierThrough=O,E.cubicToQuadratic=v,E._autoCSS=!0,E.quadraticToCubic=function(w,T,I){return new m(w,(2*T+w)/3,(2*T+I)/3,I)},E._cssRegister=function(){var w=u.CSSPlugin;if(w){var T=w._internals,I=T._parseToProxy,C=T._setPluginRatio,U=T.CSSPropTween;T._registerComplexSpecialProp("bezier",{parser:function(N,X,J,Z,ct,Rt){X instanceof Array&&(X={values:X}),Rt=new E;var tt,_t,G,Pt=X.values,Et=Pt.length-1,At=[],ce={};if(0>Et)return ct;for(tt=0;Et>=tt;tt++)G=I(N,Pt[tt],Z,ct,Rt,Et!==tt),At[tt]=G.end;for(_t in X)ce[_t]=X[_t];return ce.values=At,ct=new U(N,"bezier",0,0,G.pt,2),ct.data=G,ct.plugin=Rt,ct.setRatio=C,ce.autoRotate===0&&(ce.autoRotate=!0),!ce.autoRotate||ce.autoRotate instanceof Array||(tt=ce.autoRotate===!0?0:Number(ce.autoRotate),ce.autoRotate=G.end.left!=null?[["left","top","rotation",tt,!1]]:G.end.x!=null?[["x","y","rotation",tt,!1]]:!1),ce.autoRotate&&(Z._transform||Z._enableTransforms(!1),G.autoRotate=Z._target._gsTransform,G.proxy.rotation=G.autoRotate.rotation||0,Z._overwriteProps.push("rotation")),Rt._onInitTween(G.proxy,ce,Z._tween),ct}})}},P._mod=function(w){for(var T,I=this._overwriteProps,C=I.length;--C>-1;)T=w[I[C]],T&&typeof T=="function"&&(this._mod[I[C]]=T)},P._kill=function(w){var T,I,C=this._props;for(T in this._beziers)if(T in w)for(delete this._beziers[T],delete this._func[T],I=C.length;--I>-1;)C[I]===T&&C.splice(I,1);if(C=this._autoRotate)for(I=C.length;--I>-1;)w[C[I][2]]&&C.splice(I,1);return this._super._kill.call(this,w)}}(),ln._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(x,a){var o,c,f,u,m=function(){x.call(this,"css"),this._overwriteProps.length=0,this.setRatio=m.prototype.setRatio},g=ln._gsDefine.globals,v={},S=m.prototype=new x("css");S.constructor=m,m.version="2.0.2",m.API=2,m.defaultTransformPerspective=0,m.defaultSkewType="compensated",m.defaultSmoothOrigin=!0,S="px",m.suffixMap={top:S,right:S,bottom:S,left:S,width:S,height:S,fontSize:S,padding:S,margin:S,perspective:S,lineHeight:""};var b,O,k,R,F,E,P,w,T=/(?:\-|\.|\b)(\d|\.|e\-)+/g,I=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,C=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,U=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,N=/(?:\d|\-|\+|=|#|\.)*/g,X=/opacity *= *([^)]*)/i,J=/opacity:([^;]*)/i,Z=/alpha\(opacity *=.+?\)/i,ct=/^(rgb|hsl)/,Rt=/([A-Z])/g,tt=/-([a-z])/gi,_t=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,G=function(V,et){return et.toUpperCase()},Pt=/(?:Left|Right|Width)/i,Et=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,At=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,ce=/,(?=[^\)]*(?:\(|$))/gi,re=/[\s,\(]/i,Ft=Math.PI/180,It=180/Math.PI,Bt={},Pe={style:{}},pe=ln.document||{createElement:function(){return Pe}},Wt=function(V,et){return pe.createElementNS?pe.createElementNS(et||"http://www.w3.org/1999/xhtml",V):pe.createElement(V)},$e=Wt("div"),Si=Wt("img"),Oe=m._internals={_specialProps:v},Ge=(ln.navigator||{}).userAgent||"",pi=function(){var V=Ge.indexOf("Android"),et=Wt("a");return k=Ge.indexOf("Safari")!==-1&&Ge.indexOf("Chrome")===-1&&(V===-1||parseFloat(Ge.substr(V+8,2))>3),F=k&&parseFloat(Ge.substr(Ge.indexOf("Version/")+8,2))<6,R=Ge.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge))&&(E=parseFloat(RegExp.$1)),et?(et.style.cssText="top:1px;opacity:.55;",/^0.55/.test(et.style.opacity)):!1}(),Di=function(V){return X.test(typeof V=="string"?V:(V.currentStyle?V.currentStyle.filter:V.style.filter)||"")?parseFloat(RegExp.$1)/100:1},gn=function(V){ln.console},Qi="",W="",Jt=function(V,et){et=et||$e;var lt,at,j=et.style;if(j[V]!==void 0)return V;for(V=V.charAt(0).toUpperCase()+V.substr(1),lt=["O","Moz","ms","Ms","Webkit"],at=5;--at>-1&&j[lt[at]+V]===void 0;);return at>=0?(W=at===3?"ms":lt[at],Qi="-"+W.toLowerCase()+"-",W+V):null},jt=(typeof window<"u"?window:pe.defaultView||{getComputedStyle:function(){}}).getComputedStyle,dt=m.getStyle=function(V,et,lt,at,j){var St;return pi||et!=="opacity"?(!at&&V.style[et]?St=V.style[et]:(lt=lt||jt(V))?St=lt[et]||lt.getPropertyValue(et)||lt.getPropertyValue(et.replace(Rt,"-$1").toLowerCase()):V.currentStyle&&(St=V.currentStyle[et]),j==null||St&&St!=="none"&&St!=="auto"&&St!=="auto auto"?St:j):Di(V)},pt=Oe.convertToPixels=function(V,et,lt,at,j){if(at==="px"||!at&&et!=="lineHeight")return lt;if(at==="auto"||!lt)return 0;var St,ht,Ot,Gt=Pt.test(et),zt=V,Tt=$e.style,he=0>lt,se=lt===1;if(he&&(lt=-lt),se&&(lt*=100),et!=="lineHeight"||at)if(at==="%"&&et.indexOf("border")!==-1)St=lt/100*(Gt?V.clientWidth:V.clientHeight);else{if(Tt.cssText="border:0 solid red;position:"+dt(V,"position")+";line-height:0;",at!=="%"&&zt.appendChild&&at.charAt(0)!=="v"&&at!=="rem")Tt[Gt?"borderLeftWidth":"borderTopWidth"]=lt+at;else{if(zt=V.parentNode||pe.body,dt(zt,"display").indexOf("flex")!==-1&&(Tt.position="absolute"),ht=zt._gsCache,Ot=a.ticker.frame,ht&&Gt&&ht.time===Ot)return ht.width*lt/100;Tt[Gt?"width":"height"]=lt+at}zt.appendChild($e),St=parseFloat($e[Gt?"offsetWidth":"offsetHeight"]),zt.removeChild($e),Gt&&at==="%"&&m.cacheWidths!==!1&&(ht=zt._gsCache=zt._gsCache||{},ht.time=Ot,ht.width=St/lt*100),St!==0||j||(St=pt(V,et,lt,at,!0))}else ht=jt(V).lineHeight,V.style.lineHeight=lt,St=parseFloat(jt(V).lineHeight),V.style.lineHeight=ht;return se&&(St/=100),he?-St:St},Dt=Oe.calculateOffset=function(V,et,lt){if(dt(V,"position",lt)!=="absolute")return 0;var at=et==="left"?"Left":"Top",j=dt(V,"margin"+at,lt);return V["offset"+at]-(pt(V,et,parseFloat(j),j.replace(N,""))||0)},ie=function(V,et){var lt,at,j,St={};if(et=et||jt(V,null))if(lt=et.length)for(;--lt>-1;)j=et[lt],(j.indexOf("-transform")===-1||ra===j)&&(St[j.replace(tt,G)]=et.getPropertyValue(j));else for(lt in et)(lt.indexOf("Transform")===-1||Sn===lt)&&(St[lt]=et[lt]);else if(et=V.currentStyle||V.style)for(lt in et)typeof lt=="string"&&St[lt]===void 0&&(St[lt.replace(tt,G)]=et[lt]);return pi||(St.opacity=Di(V)),at=co(V,et,!1),St.rotation=at.rotation,St.skewX=at.skewX,St.scaleX=at.scaleX,St.scaleY=at.scaleY,St.x=at.x,St.y=at.y,yr&&(St.z=at.z,St.rotationX=at.rotationX,St.rotationY=at.rotationY,St.scaleZ=at.scaleZ),St.filters&&delete St.filters,St},Kt=function(V,et,lt,at,j){var St,ht,Ot,Gt={},zt=V.style;for(ht in lt)ht!=="cssText"&&ht!=="length"&&isNaN(ht)&&(et[ht]!==(St=lt[ht])||j&&j[ht])&&ht.indexOf("Origin")===-1&&(typeof St=="number"||typeof St=="string")&&(Gt[ht]=St!=="auto"||ht!=="left"&&ht!=="top"?St!==""&&St!=="auto"&&St!=="none"||typeof et[ht]!="string"||et[ht].replace(U,"")===""?St:0:Dt(V,ht),zt[ht]!==void 0&&(Ot=new ni(zt,ht,zt[ht],Ot)));if(at)for(ht in at)ht!=="className"&&(Gt[ht]=at[ht]);return{difs:Gt,firstMPT:Ot}},z={width:["Left","Right"],height:["Top","Bottom"]},Q=["marginLeft","marginRight","marginTop","marginBottom"],st=function(V,et,lt){if((V.nodeName+"").toLowerCase()==="svg")return(lt||jt(V))[et]||0;if(V.getCTM&&Wl(V))return V.getBBox()[et]||0;var at=parseFloat(et==="width"?V.offsetWidth:V.offsetHeight),j=z[et],St=j.length;for(lt=lt||jt(V,null);--St>-1;)at-=parseFloat(dt(V,"padding"+j[St],lt,!0))||0,at-=parseFloat(dt(V,"border"+j[St]+"Width",lt,!0))||0;return at},nt=function(V,et){if(V==="contain"||V==="auto"||V==="auto auto")return V+" ";(V==null||V==="")&&(V="0 0");var lt,at=V.split(" "),j=V.indexOf("left")!==-1?"0%":V.indexOf("right")!==-1?"100%":at[0],St=V.indexOf("top")!==-1?"0%":V.indexOf("bottom")!==-1?"100%":at[1];if(at.length>3&&!et){for(at=V.split(", ").join(",").split(","),V=[],lt=0;lt<at.length;lt++)V.push(nt(at[lt]));return V.join(",")}return St==null?St=j==="center"?"50%":"0":St==="center"&&(St="50%"),(j==="center"||isNaN(parseFloat(j))&&(j+"").indexOf("=")===-1)&&(j="50%"),V=j+" "+St+(at.length>2?" "+at[2]:""),et&&(et.oxp=j.indexOf("%")!==-1,et.oyp=St.indexOf("%")!==-1,et.oxr=j.charAt(1)==="=",et.oyr=St.charAt(1)==="=",et.ox=parseFloat(j.replace(U,"")),et.oy=parseFloat(St.replace(U,"")),et.v=V),et||V},vt=function(V,et){return typeof V=="function"&&(V=V(w,P)),typeof V=="string"&&V.charAt(1)==="="?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2)):parseFloat(V)-parseFloat(et)||0},Ut=function(V,et){typeof V=="function"&&(V=V(w,P));var lt=typeof V=="string"&&V.charAt(1)==="=";return typeof V=="string"&&V.charAt(V.length-2)==="v"&&(V=(lt?V.substr(0,2):0)+window["inner"+(V.substr(-2)==="vh"?"Height":"Width")]*(parseFloat(lt?V.substr(2):V)/100)),V==null?et:lt?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2))+et:parseFloat(V)||0},qt=function(V,et,lt,at){var j,St,ht,Ot,Gt,zt=1e-6;return typeof V=="function"&&(V=V(w,P)),V==null?Ot=et:typeof V=="number"?Ot=V:(j=360,St=V.split("_"),Gt=V.charAt(1)==="=",ht=(Gt?parseInt(V.charAt(0)+"1",10)*parseFloat(St[0].substr(2)):parseFloat(St[0]))*(V.indexOf("rad")===-1?1:It)-(Gt?0:et),St.length&&(at&&(at[lt]=et+ht),V.indexOf("short")!==-1&&(ht%=j,ht!==ht%(j/2)&&(ht=0>ht?ht+j:ht-j)),V.indexOf("_cw")!==-1&&0>ht?ht=(ht+9999999999*j)%j-(ht/j|0)*j:V.indexOf("ccw")!==-1&&ht>0&&(ht=(ht-9999999999*j)%j-(ht/j|0)*j)),Ot=et+ht),zt>Ot&&Ot>-zt&&(Ot=0),Ot},Xt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ne=function(V,et,lt){return V=0>V?V+1:V>1?V-1:V,255*(1>6*V?et+(lt-et)*V*6:.5>V?lt:2>3*V?et+(lt-et)*(2/3-V)*6:et)+.5|0},Ie=m.parseColor=function(V,et){var lt,at,j,St,ht,Ot,Gt,zt,Tt,he,se;if(V)if(typeof V=="number")lt=[V>>16,V>>8&255,255&V];else{if(V.charAt(V.length-1)===","&&(V=V.substr(0,V.length-1)),Xt[V])lt=Xt[V];else if(V.charAt(0)==="#")V.length===4&&(at=V.charAt(1),j=V.charAt(2),St=V.charAt(3),V="#"+at+at+j+j+St+St),V=parseInt(V.substr(1),16),lt=[V>>16,V>>8&255,255&V];else if(V.substr(0,3)==="hsl")if(lt=se=V.match(T),et){if(V.indexOf("=")!==-1)return V.match(I)}else ht=Number(lt[0])%360/360,Ot=Number(lt[1])/100,Gt=Number(lt[2])/100,j=.5>=Gt?Gt*(Ot+1):Gt+Ot-Gt*Ot,at=2*Gt-j,lt.length>3&&(lt[3]=Number(lt[3])),lt[0]=Ne(ht+1/3,at,j),lt[1]=Ne(ht,at,j),lt[2]=Ne(ht-1/3,at,j);else lt=V.match(T)||Xt.transparent;lt[0]=Number(lt[0]),lt[1]=Number(lt[1]),lt[2]=Number(lt[2]),lt.length>3&&(lt[3]=Number(lt[3]))}else lt=Xt.black;return et&&!se&&(at=lt[0]/255,j=lt[1]/255,St=lt[2]/255,zt=Math.max(at,j,St),Tt=Math.min(at,j,St),Gt=(zt+Tt)/2,zt===Tt?ht=Ot=0:(he=zt-Tt,Ot=Gt>.5?he/(2-zt-Tt):he/(zt+Tt),ht=zt===at?(j-St)/he+(St>j?6:0):zt===j?(St-at)/he+2:(at-j)/he+4,ht*=60),lt[0]=ht+.5|0,lt[1]=100*Ot+.5|0,lt[2]=100*Gt+.5|0),lt},me=function(V,et){var lt,at,j,St=V.match(we)||[],ht=0,Ot="";if(!St.length)return V;for(lt=0;lt<St.length;lt++)at=St[lt],j=V.substr(ht,V.indexOf(at,ht)-ht),ht+=j.length+at.length,at=Ie(at,et),at.length===3&&at.push(1),Ot+=j+(et?"hsla("+at[0]+","+at[1]+"%,"+at[2]+"%,"+at[3]:"rgba("+at.join(","))+")";return Ot+V.substr(ht)},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(S in Xt)we+="|"+S+"\\b";we=new RegExp(we+")","gi"),m.colorStringFilter=function(V){var et,lt=V[0]+" "+V[1];we.test(lt)&&(et=lt.indexOf("hsl(")!==-1||lt.indexOf("hsla(")!==-1,V[0]=me(V[0],et),V[1]=me(V[1],et)),we.lastIndex=0},a.defaultStringFilter||(a.defaultStringFilter=m.colorStringFilter);var yi=function(V,et,lt,at){if(V==null)return function(se){return se};var j,St=et?(V.match(we)||[""])[0]:"",ht=V.split(St).join("").match(C)||[],Ot=V.substr(0,V.indexOf(ht[0])),Gt=V.charAt(V.length-1)===")"?")":"",zt=V.indexOf(" ")!==-1?" ":",",Tt=ht.length,he=Tt>0?ht[0].replace(T,""):"";return Tt?j=et?function(se){var te,ye,ue,je;if(typeof se=="number")se+=he;else if(at&&ce.test(se)){for(je=se.replace(ce,"|").split("|"),ue=0;ue<je.length;ue++)je[ue]=j(je[ue]);return je.join(",")}if(te=(se.match(we)||[St])[0],ye=se.split(te).join("").match(C)||[],ue=ye.length,Tt>ue--)for(;++ue<Tt;)ye[ue]=lt?ye[(ue-1)/2|0]:ht[ue];return Ot+ye.join(zt)+zt+te+Gt+(se.indexOf("inset")!==-1?" inset":"")}:function(se){var te,ye,ue;if(typeof se=="number")se+=he;else if(at&&ce.test(se)){for(ye=se.replace(ce,"|").split("|"),ue=0;ue<ye.length;ue++)ye[ue]=j(ye[ue]);return ye.join(",")}if(te=se.match(C)||[],ue=te.length,Tt>ue--)for(;++ue<Tt;)te[ue]=lt?te[(ue-1)/2|0]:ht[ue];return Ot+te.join(zt)+Gt}:function(se){return se}},Ei=function(V){return V=V.split(","),function(et,lt,at,j,St,ht,Ot){var Gt,zt=(lt+"").split(" ");for(Ot={},Gt=0;4>Gt;Gt++)Ot[V[Gt]]=zt[Gt]=zt[Gt]||zt[(Gt-1)/2>>0];return j.parse(et,Ot,St,ht)}},ni=(Oe._setPluginRatio=function(V){this.plugin.setRatio(V);for(var et,lt,at,j,St,ht=this.data,Ot=ht.proxy,Gt=ht.firstMPT,zt=1e-6;Gt;)et=Ot[Gt.v],Gt.r?et=Gt.r(et):zt>et&&et>-zt&&(et=0),Gt.t[Gt.p]=et,Gt=Gt._next;if(ht.autoRotate&&(ht.autoRotate.rotation=ht.mod?ht.mod.call(this._tween,Ot.rotation,this.t,this._tween):Ot.rotation),V===1||V===0)for(Gt=ht.firstMPT,St=V===1?"e":"b";Gt;){if(lt=Gt.t,lt.type){if(lt.type===1){for(j=lt.xs0+lt.s+lt.xs1,at=1;at<lt.l;at++)j+=lt["xn"+at]+lt["xs"+(at+1)];lt[St]=j}}else lt[St]=lt.s+lt.xs0;Gt=Gt._next}},function(V,et,lt,at,j){this.t=V,this.p=et,this.v=lt,this.r=j,at&&(at._prev=this,this._next=at)}),bi=(Oe._parseToProxy=function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he=at,se={},te={},ye=lt._transform,ue=Bt;for(lt._transform=null,Bt=et,at=Tt=lt.parse(V,et,at,j),Bt=ue,St&&(lt._transform=ye,he&&(he._prev=null,he._prev&&(he._prev._next=null)));at&&at!==he;){if(at.type<=1&&(Ot=at.p,te[Ot]=at.s+at.c,se[Ot]=at.s,St||(zt=new ni(at,"s",Ot,zt,at.r),at.c=0),at.type===1))for(ht=at.l;--ht>0;)Gt="xn"+ht,Ot=at.p+"_"+Gt,te[Ot]=at.data[Gt],se[Ot]=at[Gt],St||(zt=new ni(at,Gt,Ot,zt,at.rxp[Gt]));at=at._next}return{proxy:se,end:te,firstMPT:zt,pt:Tt}},Oe.CSSPropTween=function(V,et,lt,at,j,St,ht,Ot,Gt,zt,Tt){this.t=V,this.p=et,this.s=lt,this.c=at,this.n=ht||et,V instanceof bi||u.push(this.n),this.r=Ot&&(typeof Ot=="function"?Ot:Math.round),this.type=St||0,Gt&&(this.pr=Gt,o=!0),this.b=zt===void 0?lt:zt,this.e=Tt===void 0?lt+at:Tt,j&&(this._next=j,j._prev=this)}),Yr=function(V,et,lt,at,j,St){var ht=new bi(V,et,lt,at-lt,j,-1,St);return ht.b=lt,ht.e=ht.xs0=at,ht},ar=m.parseComplex=function(V,et,lt,at,j,St,ht,Ot,Gt,zt){lt=lt||St||"",typeof at=="function"&&(at=at(w,P)),ht=new bi(V,et,0,0,ht,zt?2:1,null,!1,Ot,lt,at),at+="",j&&we.test(at+lt)&&(at=[lt,at],m.colorStringFilter(at),lt=at[0],at=at[1]);var Tt,he,se,te,ye,ue,je,He,ci,Be,_e,Fe,fe,mi=lt.split(", ").join(",").split(" "),Le=at.split(", ").join(",").split(" "),xe=mi.length,Re=b!==!1;for((at.indexOf(",")!==-1||lt.indexOf(",")!==-1)&&((at+lt).indexOf("rgb")!==-1||(at+lt).indexOf("hsl")!==-1?(mi=mi.join(" ").replace(ce,", ").split(" "),Le=Le.join(" ").replace(ce,", ").split(" ")):(mi=mi.join(" ").split(",").join(", ").split(" "),Le=Le.join(" ").split(",").join(", ").split(" ")),xe=mi.length),xe!==Le.length&&(mi=(St||"").split(" "),xe=mi.length),ht.plugin=Gt,ht.setRatio=zt,we.lastIndex=0,Tt=0;xe>Tt;Tt++)if(te=mi[Tt],ye=Le[Tt]+"",He=parseFloat(te),He||He===0)ht.appendXtra("",He,vt(ye,He),ye.replace(I,""),Re&&ye.indexOf("px")!==-1?Math.round:!1,!0);else if(j&&we.test(te))Fe=ye.indexOf(")")+1,Fe=")"+(Fe?ye.substr(Fe):""),fe=ye.indexOf("hsl")!==-1&&pi,Be=ye,te=Ie(te,fe),ye=Ie(ye,fe),ci=te.length+ye.length>6,ci&&!pi&&ye[3]===0?(ht["xs"+ht.l]+=ht.l?" transparent":"transparent",ht.e=ht.e.split(Le[Tt]).join("transparent")):(pi||(ci=!1),fe?ht.appendXtra(Be.substr(0,Be.indexOf("hsl"))+(ci?"hsla(":"hsl("),te[0],vt(ye[0],te[0]),",",!1,!0).appendXtra("",te[1],vt(ye[1],te[1]),"%,",!1).appendXtra("",te[2],vt(ye[2],te[2]),ci?"%,":"%"+Fe,!1):ht.appendXtra(Be.substr(0,Be.indexOf("rgb"))+(ci?"rgba(":"rgb("),te[0],ye[0]-te[0],",",Math.round,!0).appendXtra("",te[1],ye[1]-te[1],",",Math.round).appendXtra("",te[2],ye[2]-te[2],ci?",":Fe,Math.round),ci&&(te=te.length<4?1:te[3],ht.appendXtra("",te,(ye.length<4?1:ye[3])-te,Fe,!1))),we.lastIndex=0;else if(ue=te.match(T)){if(je=ye.match(I),!je||je.length!==ue.length)return ht;for(se=0,he=0;he<ue.length;he++)_e=ue[he],Be=te.indexOf(_e,se),ht.appendXtra(te.substr(se,Be-se),Number(_e),vt(je[he],_e),"",Re&&te.substr(Be+_e.length,2)==="px"?Math.round:!1,he===0),se=Be+_e.length;ht["xs"+ht.l]+=te.substr(se)}else ht["xs"+ht.l]+=ht.l||ht["xs"+ht.l]?" "+ye:ye;if(at.indexOf("=")!==-1&&ht.data){for(Fe=ht.xs0+ht.data.s,Tt=1;Tt<ht.l;Tt++)Fe+=ht["xs"+Tt]+ht.data["xn"+Tt];ht.e=Fe+ht["xs"+Tt]}return ht.l||(ht.type=-1,ht.xs0=ht.e),ht.xfirst||ht},sn=9;for(S=bi.prototype,S.l=S.pr=0;--sn>0;)S["xn"+sn]=0,S["xs"+sn]="";S.xs0="",S._next=S._prev=S.xfirst=S.data=S.plugin=S.setRatio=S.rxp=null,S.appendXtra=function(V,et,lt,at,j,St){var ht=this,Ot=ht.l;return ht["xs"+Ot]+=St&&(Ot||ht["xs"+Ot])?" "+V:V||"",lt||Ot===0||ht.plugin?(ht.l++,ht.type=ht.setRatio?2:1,ht["xs"+ht.l]=at||"",Ot>0?(ht.data["xn"+Ot]=et+lt,ht.rxp["xn"+Ot]=j,ht["xn"+Ot]=et,ht.plugin||(ht.xfirst=new bi(ht,"xn"+Ot,et,lt,ht.xfirst||ht,0,ht.n,j,ht.pr),ht.xfirst.xs0=0),ht):(ht.data={s:et+lt},ht.rxp={},ht.s=et,ht.c=lt,ht.r=j,ht)):(ht["xs"+Ot]+=et+(at||""),ht)};var Po=function(V,et){et=et||{},this.p=et.prefix&&Jt(V)||V,v[V]=v[this.p]=this,this.format=et.formatter||yi(et.defaultValue,et.color,et.collapsible,et.multi),et.parser&&(this.parse=et.parser),this.clrs=et.color,this.multi=et.multi,this.keyword=et.keyword,this.dflt=et.defaultValue,this.pr=et.priority||0},zi=Oe._registerComplexSpecialProp=function(V,et,lt){typeof et!="object"&&(et={parser:lt});var at,j=V.split(","),St=et.defaultValue;for(lt=lt||[St],at=0;at<j.length;at++)et.prefix=at===0&&et.prefix,et.defaultValue=lt[at]||St,new Po(j[at],et)},Zo=Oe._registerPluginProp=function(V){if(!v[V]){var et=V.charAt(0).toUpperCase()+V.substr(1)+"Plugin";zi(V,{parser:function(lt,at,j,St,ht,Ot,Gt){var zt=g.com.greensock.plugins[et];return zt?(zt._cssRegister(),v[j].parse(lt,at,j,St,ht,Ot,Gt)):(gn("Error: "+et+" js file not loaded."),ht)}})}};S=Po.prototype,S.parseComplex=function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he,se=this.keyword;if(this.multi&&(ce.test(lt)||ce.test(et)?(Ot=et.replace(ce,"|").split("|"),Gt=lt.replace(ce,"|").split("|")):se&&(Ot=[et],Gt=[lt])),Gt){for(zt=Gt.length>Ot.length?Gt.length:Ot.length,ht=0;zt>ht;ht++)et=Ot[ht]=Ot[ht]||this.dflt,lt=Gt[ht]=Gt[ht]||this.dflt,se&&(Tt=et.indexOf(se),he=lt.indexOf(se),Tt!==he&&(he===-1?Ot[ht]=Ot[ht].split(se).join(""):Tt===-1&&(Ot[ht]+=" "+se)));et=Ot.join(", "),lt=Gt.join(", ")}return ar(V,this.p,et,lt,this.clrs,this.dflt,at,this.pr,j,St)},S.parse=function(V,et,lt,at,j,St,ht){return this.parseComplex(V.style,this.format(dt(V,this.p,f,!1,this.dflt)),this.format(et),j,St)},m.registerSpecialProp=function(V,et,lt){zi(V,{parser:function(at,j,St,ht,Ot,Gt,zt){var Tt=new bi(at,St,0,0,Ot,2,St,!1,lt);return Tt.plugin=Gt,Tt.setRatio=et(at,j,ht._tween,St),Tt},priority:lt})},m.useSVGTransformAttr=!0;var lo,Hl="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Sn=Jt("transform"),ra=Qi+"transform",ys=Jt("transformOrigin"),yr=Jt("perspective")!==null,oa=Oe.Transform=function(){this.perspective=parseFloat(m.defaultTransformPerspective)||0,this.force3D=m.defaultForce3D!==!1&&yr?m.defaultForce3D||"auto":!1},Ja=ln.SVGElement,Vl=function(V,et,lt){var at,j=pe.createElementNS("http://www.w3.org/2000/svg",V),St=/([a-z])([A-Z])/g;for(at in lt)j.setAttributeNS(null,at.replace(St,"$1-$2").toLowerCase(),lt[at]);return et.appendChild(j),j},ho=pe.documentElement||{},Ih=function(){var V,et,lt,at=E||/Android/i.test(Ge)&&!ln.chrome;return pe.createElementNS&&!at&&(V=Vl("svg",ho),et=Vl("rect",V,{width:100,height:50,x:100}),lt=et.getBoundingClientRect().width,et.style[ys]="50% 50%",et.style[Sn]="scaleX(0.5)",at=lt===et.getBoundingClientRect().width&&!(R&&yr),ho.removeChild(V)),at}(),sa=function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he,se,te,ye,ue,je,He,ci,Be,_e=V._gsTransform,Fe=la(V,!0);_e&&(ci=_e.xOrigin,Be=_e.yOrigin),(!at||(ht=at.split(" ")).length<2)&&(se=V.getBBox(),se.x===0&&se.y===0&&se.width+se.height===0&&(se={x:parseFloat(V.hasAttribute("x")?V.getAttribute("x"):V.hasAttribute("cx")?V.getAttribute("cx"):0)||0,y:parseFloat(V.hasAttribute("y")?V.getAttribute("y"):V.hasAttribute("cy")?V.getAttribute("cy"):0)||0,width:0,height:0}),et=nt(et).split(" "),ht=[(et[0].indexOf("%")!==-1?parseFloat(et[0])/100*se.width:parseFloat(et[0]))+se.x,(et[1].indexOf("%")!==-1?parseFloat(et[1])/100*se.height:parseFloat(et[1]))+se.y]),lt.xOrigin=zt=parseFloat(ht[0]),lt.yOrigin=Tt=parseFloat(ht[1]),at&&Fe!==aa&&(he=Fe[0],se=Fe[1],te=Fe[2],ye=Fe[3],ue=Fe[4],je=Fe[5],He=he*ye-se*te,He&&(Ot=zt*(ye/He)+Tt*(-te/He)+(te*je-ye*ue)/He,Gt=zt*(-se/He)+Tt*(he/He)-(he*je-se*ue)/He,zt=lt.xOrigin=ht[0]=Ot,Tt=lt.yOrigin=ht[1]=Gt)),_e&&(St&&(lt.xOffset=_e.xOffset,lt.yOffset=_e.yOffset,_e=lt),j||j!==!1&&m.defaultSmoothOrigin!==!1?(Ot=zt-ci,Gt=Tt-Be,_e.xOffset+=Ot*Fe[0]+Gt*Fe[2]-Ot,_e.yOffset+=Ot*Fe[1]+Gt*Fe[3]-Gt):_e.xOffset=_e.yOffset=0),St||V.setAttribute("data-svg-origin",ht.join(" "))},$a=function(V){var et,lt=Wt("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),at=this.parentNode,j=this.nextSibling,St=this.style.cssText;if(ho.appendChild(lt),lt.appendChild(this),this.style.display="block",V)try{et=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=$a}catch{}else this._originalGetBBox&&(et=this._originalGetBBox());return j?at.insertBefore(this,j):at.appendChild(this),ho.removeChild(lt),this.style.cssText=St,et},uo=function(V){try{return V.getBBox()}catch{return $a.call(V,!0)}},Wl=function(V){return!(!Ja||!V.getCTM||V.parentNode&&!V.ownerSVGElement||!uo(V))},aa=[1,0,0,1,0,0],la=function(V,et){var lt,at,j,St,ht,Ot,Gt=V._gsTransform||new oa,zt=1e5,Tt=V.style;if(Sn?at=dt(V,ra,null,!0):V.currentStyle&&(at=V.currentStyle.filter.match(Et),at=at&&at.length===4?[at[0].substr(4),Number(at[2].substr(4)),Number(at[1].substr(4)),at[3].substr(4),Gt.x||0,Gt.y||0].join(","):""),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",!Sn||!(Ot=!jt(V)||jt(V).display==="none")&&V.parentNode||(Ot&&(St=Tt.display,Tt.display="block"),V.parentNode||(ht=1,ho.appendChild(V)),at=dt(V,ra,null,!0),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",St?Tt.display=St:Ot&&_s(Tt,"display"),ht&&ho.removeChild(V)),(Gt.svg||V.getCTM&&Wl(V))&&(lt&&(Tt[Sn]+"").indexOf("matrix")!==-1&&(at=Tt[Sn],lt=0),j=V.getAttribute("transform"),lt&&j&&(j=V.transform.baseVal.consolidate().matrix,at="matrix("+j.a+","+j.b+","+j.c+","+j.d+","+j.e+","+j.f+")",lt=0)),lt)return aa;for(j=(at||"").match(T)||[],sn=j.length;--sn>-1;)St=Number(j[sn]),j[sn]=(ht=St-(St|=0))?(ht*zt+(0>ht?-.5:.5)|0)/zt+St:St;return et&&j.length>6?[j[0],j[1],j[4],j[5],j[12],j[13]]:j},co=Oe.getTransform=function(V,et,lt,at){if(V._gsTransform&<&&!at)return V._gsTransform;var j,St,ht,Ot,Gt,zt,Tt=lt?V._gsTransform||new oa:new oa,he=Tt.scaleX<0,se=2e-5,te=1e5,ye=yr&&(parseFloat(dt(V,ys,et,!1,"0 0 0").split(" ")[2])||Tt.zOrigin)||0,ue=parseFloat(m.defaultTransformPerspective)||0;if(Tt.svg=!(!V.getCTM||!Wl(V)),Tt.svg&&(sa(V,dt(V,ys,et,!1,"50% 50%")+"",Tt,V.getAttribute("data-svg-origin")),lo=m.useSVGTransformAttr||Ih),j=la(V),j!==aa){if(j.length===16){var je,He,ci,Be,_e,Fe=j[0],fe=j[1],mi=j[2],Le=j[3],xe=j[4],Re=j[5],En=j[6],qn=j[7],ki=j[8],Bi=j[9],Hi=j[10],nn=j[12],rn=j[13],cn=j[14],fn=j[11],Gi=Math.atan2(En,Hi);Tt.zOrigin&&(cn=-Tt.zOrigin,nn=ki*cn-j[12],rn=Bi*cn-j[13],cn=Hi*cn+Tt.zOrigin-j[14]),Tt.rotationX=Gi*It,Gi&&(Be=Math.cos(-Gi),_e=Math.sin(-Gi),je=xe*Be+ki*_e,He=Re*Be+Bi*_e,ci=En*Be+Hi*_e,ki=xe*-_e+ki*Be,Bi=Re*-_e+Bi*Be,Hi=En*-_e+Hi*Be,fn=qn*-_e+fn*Be,xe=je,Re=He,En=ci),Gi=Math.atan2(-mi,Hi),Tt.rotationY=Gi*It,Gi&&(Be=Math.cos(-Gi),_e=Math.sin(-Gi),je=Fe*Be-ki*_e,He=fe*Be-Bi*_e,ci=mi*Be-Hi*_e,Bi=fe*_e+Bi*Be,Hi=mi*_e+Hi*Be,fn=Le*_e+fn*Be,Fe=je,fe=He,mi=ci),Gi=Math.atan2(fe,Fe),Tt.rotation=Gi*It,Gi&&(Be=Math.cos(Gi),_e=Math.sin(Gi),je=Fe*Be+fe*_e,He=xe*Be+Re*_e,ci=ki*Be+Bi*_e,fe=fe*Be-Fe*_e,Re=Re*Be-xe*_e,Bi=Bi*Be-ki*_e,Fe=je,xe=He,ki=ci),Tt.rotationX&&Math.abs(Tt.rotationX)+Math.abs(Tt.rotation)>359.9&&(Tt.rotationX=Tt.rotation=0,Tt.rotationY=180-Tt.rotationY),Gi=Math.atan2(xe,Re),Tt.scaleX=(Math.sqrt(Fe*Fe+fe*fe+mi*mi)*te+.5|0)/te,Tt.scaleY=(Math.sqrt(Re*Re+En*En)*te+.5|0)/te,Tt.scaleZ=(Math.sqrt(ki*ki+Bi*Bi+Hi*Hi)*te+.5|0)/te,Fe/=Tt.scaleX,xe/=Tt.scaleY,fe/=Tt.scaleX,Re/=Tt.scaleY,Math.abs(Gi)>se?(Tt.skewX=Gi*It,xe=0,Tt.skewType!=="simple"&&(Tt.scaleY*=1/Math.cos(Gi))):Tt.skewX=0,Tt.perspective=fn?1/(0>fn?-fn:fn):0,Tt.x=nn,Tt.y=rn,Tt.z=cn,Tt.svg&&(Tt.x-=Tt.xOrigin-(Tt.xOrigin*Fe-Tt.yOrigin*xe),Tt.y-=Tt.yOrigin-(Tt.yOrigin*fe-Tt.xOrigin*Re))}else if(!yr||at||!j.length||Tt.x!==j[4]||Tt.y!==j[5]||!Tt.rotationX&&!Tt.rotationY){var Ni=j.length>=6,ji=Ni?j[0]:1,gi=j[1]||0,fo=j[2]||0,Un=Ni?j[3]:1;Tt.x=j[4]||0,Tt.y=j[5]||0,ht=Math.sqrt(ji*ji+gi*gi),Ot=Math.sqrt(Un*Un+fo*fo),Gt=ji||gi?Math.atan2(gi,ji)*It:Tt.rotation||0,zt=fo||Un?Math.atan2(fo,Un)*It+Gt:Tt.skewX||0,Tt.scaleX=ht,Tt.scaleY=Ot,Tt.rotation=Gt,Tt.skewX=zt,yr&&(Tt.rotationX=Tt.rotationY=Tt.z=0,Tt.perspective=ue,Tt.scaleZ=1),Tt.svg&&(Tt.x-=Tt.xOrigin-(Tt.xOrigin*ji+Tt.yOrigin*fo),Tt.y-=Tt.yOrigin-(Tt.xOrigin*gi+Tt.yOrigin*Un))}Math.abs(Tt.skewX)>90&&Math.abs(Tt.skewX)<270&&(he?(Tt.scaleX*=-1,Tt.skewX+=Tt.rotation<=0?180:-180,Tt.rotation+=Tt.rotation<=0?180:-180):(Tt.scaleY*=-1,Tt.skewX+=Tt.skewX<=0?180:-180)),Tt.zOrigin=ye;for(St in Tt)Tt[St]<se&&Tt[St]>-se&&(Tt[St]=0)}return lt&&(V._gsTransform=Tt,Tt.svg&&(lo&&V.style[Sn]?a.delayedCall(.001,function(){_s(V.style,Sn)}):!lo&&V.getAttribute("transform")&&a.delayedCall(.001,function(){V.removeAttribute("transform")}))),Tt},jl=function(V){var et,lt,at=this.data,j=-at.rotation*Ft,St=j+at.skewX*Ft,ht=1e5,Ot=(Math.cos(j)*at.scaleX*ht|0)/ht,Gt=(Math.sin(j)*at.scaleX*ht|0)/ht,zt=(Math.sin(St)*-at.scaleY*ht|0)/ht,Tt=(Math.cos(St)*at.scaleY*ht|0)/ht,he=this.t.style,se=this.t.currentStyle;if(se){lt=Gt,Gt=-zt,zt=-lt,et=se.filter,he.filter="";var te,ye,ue=this.t.offsetWidth,je=this.t.offsetHeight,He=se.position!=="absolute",ci="progid:DXImageTransform.Microsoft.Matrix(M11="+Ot+", M12="+Gt+", M21="+zt+", M22="+Tt,Be=at.x+ue*at.xPercent/100,_e=at.y+je*at.yPercent/100;if(at.ox!=null&&(te=(at.oxp?ue*at.ox*.01:at.ox)-ue/2,ye=(at.oyp?je*at.oy*.01:at.oy)-je/2,Be+=te-(te*Ot+ye*Gt),_e+=ye-(te*zt+ye*Tt)),He?(te=ue/2,ye=je/2,ci+=", Dx="+(te-(te*Ot+ye*Gt)+Be)+", Dy="+(ye-(te*zt+ye*Tt)+_e)+")"):ci+=", sizingMethod='auto expand')",et.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?he.filter=et.replace(At,ci):he.filter=ci+" "+et,(V===0||V===1)&&Ot===1&&Gt===0&&zt===0&&Tt===1&&(He&&ci.indexOf("Dx=0, Dy=0")===-1||X.test(et)&&parseFloat(RegExp.$1)!==100||et.indexOf(et.indexOf("Alpha"))===-1&&he.removeAttribute("filter")),!He){var Fe,fe,mi,Le=8>E?1:-1;for(te=at.ieOffsetX||0,ye=at.ieOffsetY||0,at.ieOffsetX=Math.round((ue-((0>Ot?-Ot:Ot)*ue+(0>Gt?-Gt:Gt)*je))/2+Be),at.ieOffsetY=Math.round((je-((0>Tt?-Tt:Tt)*je+(0>zt?-zt:zt)*ue))/2+_e),sn=0;4>sn;sn++)fe=Q[sn],Fe=se[fe],lt=Fe.indexOf("px")!==-1?parseFloat(Fe):pt(this.t,fe,parseFloat(Fe),Fe.replace(N,""))||0,mi=lt!==at[fe]?2>sn?-at.ieOffsetX:-at.ieOffsetY:2>sn?te-at.ieOffsetX:ye-at.ieOffsetY,he[fe]=(at[fe]=Math.round(lt-mi*(sn===0||sn===2?1:Le)))+"px"}}},Dh=Oe.set3DTransformRatio=Oe.setTransformRatio=function(V){var et,lt,at,j,St,ht,Ot,Gt,zt,Tt,he,se,te,ye,ue,je,He,ci,Be,_e,Fe,fe,mi,Le=this.data,xe=this.t.style,Re=Le.rotation,En=Le.rotationX,qn=Le.rotationY,ki=Le.scaleX,Bi=Le.scaleY,Hi=Le.scaleZ,nn=Le.x,rn=Le.y,cn=Le.z,fn=Le.svg,Gi=Le.perspective,Ni=Le.force3D,ji=Le.skewY,gi=Le.skewX;if(ji&&(gi+=ji,Re+=ji),((V===1||V===0)&&Ni==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!Ni)&&!cn&&!Gi&&!qn&&!En&&Hi===1||lo&&fn||!yr)return void(Re||gi||fn?(Re*=Ft,fe=gi*Ft,mi=1e5,lt=Math.cos(Re)*ki,St=Math.sin(Re)*ki,at=Math.sin(Re-fe)*-Bi,ht=Math.cos(Re-fe)*Bi,fe&&Le.skewType==="simple"&&(et=Math.tan(fe-ji*Ft),et=Math.sqrt(1+et*et),at*=et,ht*=et,ji&&(et=Math.tan(ji*Ft),et=Math.sqrt(1+et*et),lt*=et,St*=et)),fn&&(nn+=Le.xOrigin-(Le.xOrigin*lt+Le.yOrigin*at)+Le.xOffset,rn+=Le.yOrigin-(Le.xOrigin*St+Le.yOrigin*ht)+Le.yOffset,lo&&(Le.xPercent||Le.yPercent)&&(ue=this.t.getBBox(),nn+=.01*Le.xPercent*ue.width,rn+=.01*Le.yPercent*ue.height),ue=1e-6,ue>nn&&nn>-ue&&(nn=0),ue>rn&&rn>-ue&&(rn=0)),Be=(lt*mi|0)/mi+","+(St*mi|0)/mi+","+(at*mi|0)/mi+","+(ht*mi|0)/mi+","+nn+","+rn+")",fn&&lo?this.t.setAttribute("transform","matrix("+Be):xe[Sn]=(Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) matrix(":"matrix(")+Be):xe[Sn]=(Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) matrix(":"matrix(")+ki+",0,0,"+Bi+","+nn+","+rn+")");if(R&&(ue=1e-4,ue>ki&&ki>-ue&&(ki=Hi=2e-5),ue>Bi&&Bi>-ue&&(Bi=Hi=2e-5),!Gi||Le.z||Le.rotationX||Le.rotationY||(Gi=0)),Re||gi)Re*=Ft,je=lt=Math.cos(Re),He=St=Math.sin(Re),gi&&(Re-=gi*Ft,je=Math.cos(Re),He=Math.sin(Re),Le.skewType==="simple"&&(et=Math.tan((gi-ji)*Ft),et=Math.sqrt(1+et*et),je*=et,He*=et,Le.skewY&&(et=Math.tan(ji*Ft),et=Math.sqrt(1+et*et),lt*=et,St*=et))),at=-He,ht=je;else{if(!(qn||En||Hi!==1||Gi||fn))return void(xe[Sn]=(Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) translate3d(":"translate3d(")+nn+"px,"+rn+"px,"+cn+"px)"+(ki!==1||Bi!==1?" scale("+ki+","+Bi+")":""));lt=ht=1,at=St=0}Tt=1,j=Ot=Gt=zt=he=se=0,te=Gi?-1/Gi:0,ye=Le.zOrigin,ue=1e-6,_e=",",Fe="0",Re=qn*Ft,Re&&(je=Math.cos(Re),He=Math.sin(Re),Gt=-He,he=te*-He,j=lt*He,Ot=St*He,Tt=je,te*=je,lt*=je,St*=je),Re=En*Ft,Re&&(je=Math.cos(Re),He=Math.sin(Re),et=at*je+j*He,ci=ht*je+Ot*He,zt=Tt*He,se=te*He,j=at*-He+j*je,Ot=ht*-He+Ot*je,Tt*=je,te*=je,at=et,ht=ci),Hi!==1&&(j*=Hi,Ot*=Hi,Tt*=Hi,te*=Hi),Bi!==1&&(at*=Bi,ht*=Bi,zt*=Bi,se*=Bi),ki!==1&&(lt*=ki,St*=ki,Gt*=ki,he*=ki),(ye||fn)&&(ye&&(nn+=j*-ye,rn+=Ot*-ye,cn+=Tt*-ye+ye),fn&&(nn+=Le.xOrigin-(Le.xOrigin*lt+Le.yOrigin*at)+Le.xOffset,rn+=Le.yOrigin-(Le.xOrigin*St+Le.yOrigin*ht)+Le.yOffset),ue>nn&&nn>-ue&&(nn=Fe),ue>rn&&rn>-ue&&(rn=Fe),ue>cn&&cn>-ue&&(cn=0)),Be=Le.xPercent||Le.yPercent?"translate("+Le.xPercent+"%,"+Le.yPercent+"%) matrix3d(":"matrix3d(",Be+=(ue>lt&<>-ue?Fe:lt)+_e+(ue>St&&St>-ue?Fe:St)+_e+(ue>Gt&&Gt>-ue?Fe:Gt),Be+=_e+(ue>he&&he>-ue?Fe:he)+_e+(ue>at&&at>-ue?Fe:at)+_e+(ue>ht&&ht>-ue?Fe:ht),En||qn||Hi!==1?(Be+=_e+(ue>zt&&zt>-ue?Fe:zt)+_e+(ue>se&&se>-ue?Fe:se)+_e+(ue>j&&j>-ue?Fe:j),Be+=_e+(ue>Ot&&Ot>-ue?Fe:Ot)+_e+(ue>Tt&&Tt>-ue?Fe:Tt)+_e+(ue>te&&te>-ue?Fe:te)+_e):Be+=",0,0,0,0,1,0,",Be+=nn+_e+rn+_e+cn+_e+(Gi?1+-cn/Gi:1)+")",xe[Sn]=Be};S=oa.prototype,S.x=S.y=S.z=S.skewX=S.skewY=S.rotation=S.rotationX=S.rotationY=S.zOrigin=S.xPercent=S.yPercent=S.xOffset=S.yOffset=0,S.scaleX=S.scaleY=S.scaleZ=1,zi("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(V,et,lt,at,j,St,ht){if(at._lastParsedTransform===ht)return j;at._lastParsedTransform=ht;var Ot,Gt=ht.scale&&typeof ht.scale=="function"?ht.scale:0;typeof ht[lt]=="function"&&(Ot=ht[lt],ht[lt]=et),Gt&&(ht.scale=Gt(w,V));var zt,Tt,he,se,te,ye,ue,je,He,ci=V._gsTransform,Be=V.style,_e=1e-6,Fe=Hl.length,fe=ht,mi={},Le="transformOrigin",xe=co(V,f,!0,fe.parseTransform),Re=fe.transform&&(typeof fe.transform=="function"?fe.transform(w,P):fe.transform);if(xe.skewType=fe.skewType||xe.skewType||m.defaultSkewType,at._transform=xe,"rotationZ"in fe&&(fe.rotation=fe.rotationZ),Re&&typeof Re=="string"&&Sn)Tt=$e.style,Tt[Sn]=Re,Tt.display="block",Tt.position="absolute",Re.indexOf("%")!==-1&&(Tt.width=dt(V,"width"),Tt.height=dt(V,"height")),pe.body.appendChild($e),zt=co($e,null,!1),xe.skewType==="simple"&&(zt.scaleY*=Math.cos(zt.skewX*Ft)),xe.svg&&(ye=xe.xOrigin,ue=xe.yOrigin,zt.x-=xe.xOffset,zt.y-=xe.yOffset,(fe.transformOrigin||fe.svgOrigin)&&(Re={},sa(V,nt(fe.transformOrigin),Re,fe.svgOrigin,fe.smoothOrigin,!0),ye=Re.xOrigin,ue=Re.yOrigin,zt.x-=Re.xOffset-xe.xOffset,zt.y-=Re.yOffset-xe.yOffset),(ye||ue)&&(je=la($e,!0),zt.x-=ye-(ye*je[0]+ue*je[2]),zt.y-=ue-(ye*je[1]+ue*je[3]))),pe.body.removeChild($e),zt.perspective||(zt.perspective=xe.perspective),fe.xPercent!=null&&(zt.xPercent=Ut(fe.xPercent,xe.xPercent)),fe.yPercent!=null&&(zt.yPercent=Ut(fe.yPercent,xe.yPercent));else if(typeof fe=="object"){if(zt={scaleX:Ut(fe.scaleX!=null?fe.scaleX:fe.scale,xe.scaleX),scaleY:Ut(fe.scaleY!=null?fe.scaleY:fe.scale,xe.scaleY),scaleZ:Ut(fe.scaleZ,xe.scaleZ),x:Ut(fe.x,xe.x),y:Ut(fe.y,xe.y),z:Ut(fe.z,xe.z),xPercent:Ut(fe.xPercent,xe.xPercent),yPercent:Ut(fe.yPercent,xe.yPercent),perspective:Ut(fe.transformPerspective,xe.perspective)},te=fe.directionalRotation,te!=null)if(typeof te=="object")for(Tt in te)fe[Tt]=te[Tt];else fe.rotation=te;typeof fe.x=="string"&&fe.x.indexOf("%")!==-1&&(zt.x=0,zt.xPercent=Ut(fe.x,xe.xPercent)),typeof fe.y=="string"&&fe.y.indexOf("%")!==-1&&(zt.y=0,zt.yPercent=Ut(fe.y,xe.yPercent)),zt.rotation=qt("rotation"in fe?fe.rotation:"shortRotation"in fe?fe.shortRotation+"_short":xe.rotation,xe.rotation,"rotation",mi),yr&&(zt.rotationX=qt("rotationX"in fe?fe.rotationX:"shortRotationX"in fe?fe.shortRotationX+"_short":xe.rotationX||0,xe.rotationX,"rotationX",mi),zt.rotationY=qt("rotationY"in fe?fe.rotationY:"shortRotationY"in fe?fe.shortRotationY+"_short":xe.rotationY||0,xe.rotationY,"rotationY",mi)),zt.skewX=qt(fe.skewX,xe.skewX),zt.skewY=qt(fe.skewY,xe.skewY)}for(yr&&fe.force3D!=null&&(xe.force3D=fe.force3D,se=!0),he=xe.force3D||xe.z||xe.rotationX||xe.rotationY||zt.z||zt.rotationX||zt.rotationY||zt.perspective,he||fe.scale==null||(zt.scaleZ=1);--Fe>-1;)He=Hl[Fe],Re=zt[He]-xe[He],(Re>_e||-_e>Re||fe[He]!=null||Bt[He]!=null)&&(se=!0,j=new bi(xe,He,xe[He],Re,j),He in mi&&(j.e=mi[He]),j.xs0=0,j.plugin=St,at._overwriteProps.push(j.n));return Re=fe.transformOrigin,xe.svg&&(Re||fe.svgOrigin)&&(ye=xe.xOffset,ue=xe.yOffset,sa(V,nt(Re),zt,fe.svgOrigin,fe.smoothOrigin),j=Yr(xe,"xOrigin",(ci?xe:zt).xOrigin,zt.xOrigin,j,Le),j=Yr(xe,"yOrigin",(ci?xe:zt).yOrigin,zt.yOrigin,j,Le),(ye!==xe.xOffset||ue!==xe.yOffset)&&(j=Yr(xe,"xOffset",ci?ye:xe.xOffset,xe.xOffset,j,Le),j=Yr(xe,"yOffset",ci?ue:xe.yOffset,xe.yOffset,j,Le)),Re="0px 0px"),(Re||yr&&he&&xe.zOrigin)&&(Sn?(se=!0,He=ys,Re=(Re||dt(V,He,f,!1,"50% 50%"))+"",j=new bi(Be,He,0,0,j,-1,Le),j.b=Be[He],j.plugin=St,yr?(Tt=xe.zOrigin,Re=Re.split(" "),xe.zOrigin=(Re.length>2&&(Tt===0||Re[2]!=="0px")?parseFloat(Re[2]):Tt)||0,j.xs0=j.e=Re[0]+" "+(Re[1]||"50%")+" 0px",j=new bi(xe,"zOrigin",0,0,j,-1,j.n),j.b=Tt,j.xs0=j.e=xe.zOrigin):j.xs0=j.e=Re):nt(Re+"",xe)),se&&(at._transformType=xe.svg&&lo||!he&&this._transformType!==3?2:3),Ot&&(ht[lt]=Ot),Gt&&(ht.scale=Gt),j},prefix:!0}),zi("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),zi("borderRadius",{defaultValue:"0px",parser:function(V,et,lt,at,j,St){et=this.format(et);var ht,Ot,Gt,zt,Tt,he,se,te,ye,ue,je,He,ci,Be,_e,Fe,fe=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],mi=V.style;for(ye=parseFloat(V.offsetWidth),ue=parseFloat(V.offsetHeight),ht=et.split(" "),Ot=0;Ot<fe.length;Ot++)this.p.indexOf("border")&&(fe[Ot]=Jt(fe[Ot])),Tt=zt=dt(V,fe[Ot],f,!1,"0px"),Tt.indexOf(" ")!==-1&&(zt=Tt.split(" "),Tt=zt[0],zt=zt[1]),he=Gt=ht[Ot],se=parseFloat(Tt),He=Tt.substr((se+"").length),ci=he.charAt(1)==="=",ci?(te=parseInt(he.charAt(0)+"1",10),he=he.substr(2),te*=parseFloat(he),je=he.substr((te+"").length-(0>te?1:0))||""):(te=parseFloat(he),je=he.substr((te+"").length)),je===""&&(je=c[lt]||He),je!==He&&(Be=pt(V,"borderLeft",se,He),_e=pt(V,"borderTop",se,He),je==="%"?(Tt=Be/ye*100+"%",zt=_e/ue*100+"%"):je==="em"?(Fe=pt(V,"borderLeft",1,"em"),Tt=Be/Fe+"em",zt=_e/Fe+"em"):(Tt=Be+"px",zt=_e+"px"),ci&&(he=parseFloat(Tt)+te+je,Gt=parseFloat(zt)+te+je)),j=ar(mi,fe[Ot],Tt+" "+zt,he+" "+Gt,!1,"0px",j);return j},prefix:!0,formatter:yi("0px 0px 0px 0px",!1,!0)}),zi("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(V,et,lt,at,j,St){return ar(V.style,lt,this.format(dt(V,lt,f,!1,"0px 0px")),this.format(et),!1,"0px",j)},prefix:!0,formatter:yi("0px 0px",!1,!0)}),zi("backgroundPosition",{defaultValue:"0 0",parser:function(V,et,lt,at,j,St){var ht,Ot,Gt,zt,Tt,he,se="background-position",te=f||jt(V,null),ye=this.format((te?E?te.getPropertyValue(se+"-x")+" "+te.getPropertyValue(se+"-y"):te.getPropertyValue(se):V.currentStyle.backgroundPositionX+" "+V.currentStyle.backgroundPositionY)||"0 0"),ue=this.format(et);if(ye.indexOf("%")!==-1!=(ue.indexOf("%")!==-1)&&ue.split(",").length<2&&(he=dt(V,"backgroundImage").replace(_t,""),he&&he!=="none")){for(ht=ye.split(" "),Ot=ue.split(" "),Si.setAttribute("src",he),Gt=2;--Gt>-1;)ye=ht[Gt],zt=ye.indexOf("%")!==-1,zt!==(Ot[Gt].indexOf("%")!==-1)&&(Tt=Gt===0?V.offsetWidth-Si.width:V.offsetHeight-Si.height,ht[Gt]=zt?parseFloat(ye)/100*Tt+"px":parseFloat(ye)/Tt*100+"%");ye=ht.join(" ")}return this.parseComplex(V.style,ye,ue,j,St)},formatter:nt}),zi("backgroundSize",{defaultValue:"0 0",formatter:function(V){return V+="",V.substr(0,2)==="co"?V:nt(V.indexOf(" ")===-1?V+" "+V:V)}}),zi("perspective",{defaultValue:"0px",prefix:!0}),zi("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),zi("transformStyle",{prefix:!0}),zi("backfaceVisibility",{prefix:!0}),zi("userSelect",{prefix:!0}),zi("margin",{parser:Ei("marginTop,marginRight,marginBottom,marginLeft")}),zi("padding",{parser:Ei("paddingTop,paddingRight,paddingBottom,paddingLeft")}),zi("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(V,et,lt,at,j,St){var ht,Ot,Gt;return 9>E?(Ot=V.currentStyle,Gt=8>E?" ":",",ht="rect("+Ot.clipTop+Gt+Ot.clipRight+Gt+Ot.clipBottom+Gt+Ot.clipLeft+")",et=this.format(et).split(",").join(Gt)):(ht=this.format(dt(V,this.p,f,!1,this.dflt)),et=this.format(et)),this.parseComplex(V.style,ht,et,j,St)}}),zi("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),zi("autoRound,strictUnits",{parser:function(V,et,lt,at,j){return j}}),zi("border",{defaultValue:"0px solid #000",parser:function(V,et,lt,at,j,St){var ht=dt(V,"borderTopWidth",f,!1,"0px"),Ot=this.format(et).split(" "),Gt=Ot[0].replace(N,"");return Gt!=="px"&&(ht=parseFloat(ht)/pt(V,"borderTopWidth",1,Gt)+Gt),this.parseComplex(V.style,this.format(ht+" "+dt(V,"borderTopStyle",f,!1,"solid")+" "+dt(V,"borderTopColor",f,!1,"#000")),Ot.join(" "),j,St)},color:!0,formatter:function(V){var et=V.split(" ");return et[0]+" "+(et[1]||"solid")+" "+(V.match(we)||["#000"])[0]}}),zi("borderWidth",{parser:Ei("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),zi("float,cssFloat,styleFloat",{parser:function(V,et,lt,at,j,St){var ht=V.style,Ot="cssFloat"in ht?"cssFloat":"styleFloat";return new bi(ht,Ot,0,0,j,-1,lt,!1,0,ht[Ot],et)}});var zh=function(V){var et,lt=this.t,at=lt.filter||dt(this.data,"filter")||"",j=this.s+this.c*V|0;j===100&&(at.indexOf("atrix(")===-1&&at.indexOf("radient(")===-1&&at.indexOf("oader(")===-1?(lt.removeAttribute("filter"),et=!dt(this.data,"filter")):(lt.filter=at.replace(Z,""),et=!0)),et||(this.xn1&&(lt.filter=at=at||"alpha(opacity="+j+")"),at.indexOf("pacity")===-1?j===0&&this.xn1||(lt.filter=at+" alpha(opacity="+j+")"):lt.filter=at.replace(X,"opacity="+j))};zi("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(V,et,lt,at,j,St){var ht=parseFloat(dt(V,"opacity",f,!1,"1")),Ot=V.style,Gt=lt==="autoAlpha";return typeof et=="string"&&et.charAt(1)==="="&&(et=(et.charAt(0)==="-"?-1:1)*parseFloat(et.substr(2))+ht),Gt&&ht===1&&dt(V,"visibility",f)==="hidden"&&et!==0&&(ht=0),pi?j=new bi(Ot,"opacity",ht,et-ht,j):(j=new bi(Ot,"opacity",100*ht,100*(et-ht),j),j.xn1=Gt?1:0,Ot.zoom=1,j.type=2,j.b="alpha(opacity="+j.s+")",j.e="alpha(opacity="+(j.s+j.c)+")",j.data=V,j.plugin=St,j.setRatio=zh),Gt&&(j=new bi(Ot,"visibility",0,0,j,-1,null,!1,0,ht!==0?"inherit":"hidden",et===0?"hidden":"inherit"),j.xs0="inherit",at._overwriteProps.push(j.n),at._overwriteProps.push(lt)),j}});var _s=function(V,et){et&&(V.removeProperty?((et.substr(0,2)==="ms"||et.substr(0,6)==="webkit")&&(et="-"+et),V.removeProperty(et.replace(Rt,"-$1").toLowerCase())):V.removeAttribute(et))},xs=function(V){if(this.t._gsClassPT=this,V===1||V===0){this.t.setAttribute("class",V===0?this.b:this.e);for(var et=this.data,lt=this.t.style;et;)et.v?lt[et.p]=et.v:_s(lt,et.p),et=et._next;V===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};zi("className",{parser:function(V,et,lt,at,j,St,ht){var Ot,Gt,zt,Tt,he,se=V.getAttribute("class")||"",te=V.style.cssText;if(j=at._classNamePT=new bi(V,lt,0,0,j,2),j.setRatio=xs,j.pr=-11,o=!0,j.b=se,Gt=ie(V,f),zt=V._gsClassPT){for(Tt={},he=zt.data;he;)Tt[he.p]=1,he=he._next;zt.setRatio(1)}return V._gsClassPT=j,j.e=et.charAt(1)!=="="?et:se.replace(new RegExp("(?:\\s|^)"+et.substr(2)+"(?![\\w-])"),"")+(et.charAt(0)==="+"?" "+et.substr(2):""),V.setAttribute("class",j.e),Ot=Kt(V,Gt,ie(V),ht,Tt),V.setAttribute("class",se),j.data=Ot.firstMPT,V.style.cssText=te,j=j.xfirst=at.parse(V,Ot.difs,j,St)}});var Xl=function(V){if((V===1||V===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var et,lt,at,j,St,ht=this.t.style,Ot=v.transform.parse;if(this.e==="all")ht.cssText="",j=!0;else for(et=this.e.split(" ").join("").split(","),at=et.length;--at>-1;)lt=et[at],v[lt]&&(v[lt].parse===Ot?j=!0:lt=lt==="transformOrigin"?ys:v[lt].p),_s(ht,lt);j&&(_s(ht,Sn),St=this.t._gsTransform,St&&(St.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(zi("clearProps",{parser:function(V,et,lt,at,j){return j=new bi(V,lt,0,0,j,2),j.setRatio=Xl,j.e=et,j.pr=-10,j.data=at._tween,o=!0,j}}),S="bezier,throwProps,physicsProps,physics2D".split(","),sn=S.length;sn--;)Zo(S[sn]);S=m.prototype,S._firstPT=S._lastParsedTransform=S._transform=null,S._onInitTween=function(V,et,lt,at){if(!V.nodeType)return!1;this._target=P=V,this._tween=lt,this._vars=et,w=at,b=et.autoRound,o=!1,c=et.suffixMap||m.suffixMap,f=jt(V,""),u=this._overwriteProps;var j,St,ht,Ot,Gt,zt,Tt,he,se,te=V.style;if(O&&te.zIndex===""&&(j=dt(V,"zIndex",f),(j==="auto"||j==="")&&this._addLazySet(te,"zIndex",0)),typeof et=="string"&&(Ot=te.cssText,j=ie(V,f),te.cssText=Ot+";"+et,j=Kt(V,j,ie(V)).difs,!pi&&J.test(et)&&(j.opacity=parseFloat(RegExp.$1)),et=j,te.cssText=Ot),et.className?this._firstPT=St=v.className.parse(V,et.className,"className",this,null,null,et):this._firstPT=St=this.parse(V,et,null),this._transformType){for(se=this._transformType===3,Sn?k&&(O=!0,te.zIndex===""&&(Tt=dt(V,"zIndex",f),(Tt==="auto"||Tt==="")&&this._addLazySet(te,"zIndex",0)),F&&this._addLazySet(te,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(se?"visible":"hidden"))):te.zoom=1,ht=St;ht&&ht._next;)ht=ht._next;he=new bi(V,"transform",0,0,null,2),this._linkCSSP(he,null,ht),he.setRatio=Sn?Dh:jl,he.data=this._transform||co(V,f,!0),he.tween=lt,he.pr=-1,u.pop()}if(o){for(;St;){for(zt=St._next,ht=Ot;ht&&ht.pr>St.pr;)ht=ht._next;(St._prev=ht?ht._prev:Gt)?St._prev._next=St:Ot=St,(St._next=ht)?ht._prev=St:Gt=St,St=zt}this._firstPT=Ot}return!0},S.parse=function(V,et,lt,at){var j,St,ht,Ot,Gt,zt,Tt,he,se,te,ye=V.style;for(j in et){if(zt=et[j],typeof zt=="function"&&(zt=zt(w,P)),St=v[j])lt=St.parse(V,zt,j,this,lt,at,et);else{if(j.substr(0,2)==="--"){this._tween._propLookup[j]=this._addTween.call(this._tween,V.style,"setProperty",jt(V).getPropertyValue(j)+"",zt+"",j,!1,j);continue}Gt=dt(V,j,f)+"",se=typeof zt=="string",j==="color"||j==="fill"||j==="stroke"||j.indexOf("Color")!==-1||se&&ct.test(zt)?(se||(zt=Ie(zt),zt=(zt.length>3?"rgba(":"rgb(")+zt.join(",")+")"),lt=ar(ye,j,Gt,zt,!0,"transparent",lt,0,at)):se&&re.test(zt)?lt=ar(ye,j,Gt,zt,!0,null,lt,0,at):(ht=parseFloat(Gt),Tt=ht||ht===0?Gt.substr((ht+"").length):"",(Gt===""||Gt==="auto")&&(j==="width"||j==="height"?(ht=st(V,j,f),Tt="px"):j==="left"||j==="top"?(ht=Dt(V,j,f),Tt="px"):(ht=j!=="opacity"?0:1,Tt="")),te=se&&zt.charAt(1)==="=",te?(Ot=parseInt(zt.charAt(0)+"1",10),zt=zt.substr(2),Ot*=parseFloat(zt),he=zt.replace(N,"")):(Ot=parseFloat(zt),he=se?zt.replace(N,""):""),he===""&&(he=j in c?c[j]:Tt),zt=Ot||Ot===0?(te?Ot+ht:Ot)+he:et[j],Tt!==he&&(he!==""||j==="lineHeight")&&(Ot||Ot===0)&&ht&&(ht=pt(V,j,ht,Tt),he==="%"?(ht/=pt(V,j,100,"%")/100,et.strictUnits!==!0&&(Gt=ht+"%")):he==="em"||he==="rem"||he==="vw"||he==="vh"?ht/=pt(V,j,1,he):he!=="px"&&(Ot=pt(V,j,Ot,he),he="px"),te&&(Ot||Ot===0)&&(zt=Ot+ht+he)),te&&(Ot+=ht),!ht&&ht!==0||!Ot&&Ot!==0?ye[j]!==void 0&&(zt||zt+""!="NaN"&&zt!=null)?(lt=new bi(ye,j,Ot||ht||0,0,lt,-1,j,!1,0,Gt,zt),lt.xs0=zt!=="none"||j!=="display"&&j.indexOf("Style")===-1?zt:Gt):gn("invalid "+j+" tween value: "+et[j]):(lt=new bi(ye,j,ht,Ot-ht,lt,0,j,b!==!1&&(he==="px"||j==="zIndex"),0,Gt,zt),lt.xs0=he))}at&<&&!lt.plugin&&(lt.plugin=at)}return lt},S.setRatio=function(V){var et,lt,at,j=this._firstPT,St=1e-6;if(V!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(V||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;j;){if(et=j.c*V+j.s,j.r?et=j.r(et):St>et&&et>-St&&(et=0),j.type)if(j.type===1)if(at=j.l,at===2)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2;else if(at===3)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3;else if(at===4)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3+j.xn3+j.xs4;else if(at===5)j.t[j.p]=j.xs0+et+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3+j.xn3+j.xs4+j.xn4+j.xs5;else{for(lt=j.xs0+et+j.xs1,at=1;at<j.l;at++)lt+=j["xn"+at]+j["xs"+(at+1)];j.t[j.p]=lt}else j.type===-1?j.t[j.p]=j.xs0:j.setRatio&&j.setRatio(V);else j.t[j.p]=et+j.xs0;j=j._next}else for(;j;)j.type!==2?j.t[j.p]=j.b:j.setRatio(V),j=j._next;else for(;j;){if(j.type!==2)if(j.r&&j.type!==-1)if(et=j.r(j.s+j.c),j.type){if(j.type===1){for(at=j.l,lt=j.xs0+et+j.xs1,at=1;at<j.l;at++)lt+=j["xn"+at]+j["xs"+(at+1)];j.t[j.p]=lt}}else j.t[j.p]=et+j.xs0;else j.t[j.p]=j.e;else j.setRatio(V);j=j._next}},S._enableTransforms=function(V){this._transform=this._transform||co(this._target,f,!0),this._transformType=this._transform.svg&&lo||!V&&this._transformType!==3?2:3};var ql=function(V){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};S._addLazySet=function(V,et,lt){var at=this._firstPT=new bi(V,et,0,0,this._firstPT,2);at.e=lt,at.setRatio=ql,at.data=this},S._linkCSSP=function(V,et,lt,at){return V&&(et&&(et._prev=V),V._next&&(V._next._prev=V._prev),V._prev?V._prev._next=V._next:this._firstPT===V&&(this._firstPT=V._next,at=!0),lt?lt._next=V:at||this._firstPT!==null||(this._firstPT=V),V._next=et,V._prev=lt),V},S._mod=function(V){for(var et=this._firstPT;et;)typeof V[et.p]=="function"&&(et.r=V[et.p]),et=et._next},S._kill=function(V){var et,lt,at,j=V;if(V.autoAlpha||V.alpha){j={};for(lt in V)j[lt]=V[lt];j.opacity=1,j.autoAlpha&&(j.visibility=1)}for(V.className&&(et=this._classNamePT)&&(at=et.xfirst,at&&at._prev?this._linkCSSP(at._prev,et._next,at._prev._prev):at===this._firstPT&&(this._firstPT=et._next),et._next&&this._linkCSSP(et._next,et._next._next,at._prev),this._classNamePT=null),et=this._firstPT;et;)et.plugin&&et.plugin!==lt&&et.plugin._kill&&(et.plugin._kill(V),lt=et.plugin),et=et._next;return x.prototype._kill.call(this,j)};var Zr=function(V,et,lt){var at,j,St,ht;if(V.slice)for(j=V.length;--j>-1;)Zr(V[j],et,lt);else for(at=V.childNodes,j=at.length;--j>-1;)St=at[j],ht=St.type,St.style&&(et.push(ie(St)),lt&<.push(St)),ht!==1&&ht!==9&&ht!==11||!St.childNodes.length||Zr(St,et,lt)};return m.cascadeTo=function(V,et,lt){var at,j,St,ht,Ot=a.to(V,et,lt),Gt=[Ot],zt=[],Tt=[],he=[],se=a._internals.reservedProps;for(V=Ot._targets||Ot.target,Zr(V,zt,he),Ot.render(et,!0,!0),Zr(V,Tt),Ot.render(0,!0,!0),Ot._enabled(!0),at=he.length;--at>-1;)if(j=Kt(he[at],zt[at],Tt[at]),j.firstMPT){j=j.difs;for(St in lt)se[St]&&(j[St]=lt[St]);ht={};for(St in j)ht[St]=zt[at][St];Gt.push(a.fromTo(he[at],et,ht,j))}return Gt},x.activate([m]),m},!0),function(){var x=ln._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(f,u,m){return this._tween=m,!0}}),a=function(f){var u=1>f?Math.pow(10,(f+"").length-2):1;return function(m){return(Math.round(m/f)*f*u|0)/u}},o=function(f,u){for(;f;)f.f||f.blob||(f.m=u||Math.round),f=f._next},c=x.prototype;c._onInitAllProps=function(){var f,u,m,g,v=this._tween,S=v.vars.roundProps,b={},O=v._propLookup.roundProps;if(typeof S!="object"||S.push)for(typeof S=="string"&&(S=S.split(",")),m=S.length;--m>-1;)b[S[m]]=Math.round;else for(g in S)b[g]=a(S[g]);for(g in b)for(f=v._firstPT;f;)u=f._next,f.pg?f.t._mod(b):f.n===g&&(f.f===2&&f.t?o(f.t._firstPT,b[g]):(this._add(f.t,g,f.s,f.c,b[g]),u&&(u._prev=f._prev),f._prev?f._prev._next=u:v._firstPT===f&&(v._firstPT=u),f._next=f._prev=null,v._propLookup[g]=O)),f=u;return!1},c._add=function(f,u,m,g,v){this._addTween(f,u,m,m+g,u,v||Math.round),this._overwriteProps.push(u)}}(),function(){ln._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(x,a,o,c){var f,u;if(typeof x.setAttribute!="function")return!1;for(f in a)u=a[f],typeof u=="function"&&(u=u(c,x)),this._addTween(x,"setAttribute",x.getAttribute(f)+"",u+"",f,!1,f),this._overwriteProps.push(f);return!0}})}(),ln._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(x,a,o,c){typeof a!="object"&&(a={rotation:a}),this.finals={};var f,u,m,g,v,S,b=a.useRadians===!0?2*Math.PI:360,O=1e-6;for(f in a)f!=="useRadians"&&(g=a[f],typeof g=="function"&&(g=g(c,x)),S=(g+"").split("_"),u=S[0],m=parseFloat(typeof x[f]!="function"?x[f]:x[f.indexOf("set")||typeof x["get"+f.substr(3)]!="function"?f:"get"+f.substr(3)]()),g=this.finals[f]=typeof u=="string"&&u.charAt(1)==="="?m+parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)||0,v=g-m,S.length&&(u=S.join("_"),u.indexOf("short")!==-1&&(v%=b,v!==v%(b/2)&&(v=0>v?v+b:v-b)),u.indexOf("_cw")!==-1&&0>v?v=(v+9999999999*b)%b-(v/b|0)*b:u.indexOf("ccw")!==-1&&v>0&&(v=(v-9999999999*b)%b-(v/b|0)*b)),(v>O||-O>v)&&(this._addTween(x,f,m,m+v,f),this._overwriteProps.push(f)));return!0},set:function(x){var a;if(x!==1)this._super.setRatio.call(this,x);else for(a=this._firstPT;a;)a.f?a.t[a.p](this.finals[a.p]):a.t[a.p]=this.finals[a.p],a=a._next}})._autoCSS=!0,ln._gsDefine("easing.Back",["easing.Ease"],function(x){var a,o,c,f,u=ln.GreenSockGlobals||ln,m=u.com.greensock,g=2*Math.PI,v=Math.PI/2,S=m._class,b=function(T,I){var C=S("easing."+T,function(){},!0),U=C.prototype=new x;return U.constructor=C,U.getRatio=I,C},O=x.register||function(){},k=function(T,I,C,U,N){var X=S("easing."+T,{easeOut:new I,easeIn:new C,easeInOut:new U},!0);return O(X,T),X},R=function(T,I,C){this.t=T,this.v=I,C&&(this.next=C,C.prev=this,this.c=C.v-I,this.gap=C.t-T)},F=function(T,I){var C=S("easing."+T,function(N){this._p1=N||N===0?N:1.70158,this._p2=1.525*this._p1},!0),U=C.prototype=new x;return U.constructor=C,U.getRatio=I,U.config=function(N){return new C(N)},C},E=k("Back",F("BackOut",function(T){return(T-=1)*T*((this._p1+1)*T+this._p1)+1}),F("BackIn",function(T){return T*T*((this._p1+1)*T-this._p1)}),F("BackInOut",function(T){return(T*=2)<1?.5*T*T*((this._p2+1)*T-this._p2):.5*((T-=2)*T*((this._p2+1)*T+this._p2)+2)})),P=S("easing.SlowMo",function(T,I,C){I=I||I===0?I:.7,T==null?T=.7:T>1&&(T=1),this._p=T!==1?I:0,this._p1=(1-T)/2,this._p2=T,this._p3=this._p1+this._p2,this._calcEnd=C===!0},!0),w=P.prototype=new x;return w.constructor=P,w.getRatio=function(T){var I=T+(.5-T)*this._p;return T<this._p1?this._calcEnd?1-(T=1-T/this._p1)*T:I-(T=1-T/this._p1)*T*T*T*I:T>this._p3?this._calcEnd?T===1?0:1-(T=(T-this._p3)/this._p1)*T:I+(T-I)*(T=(T-this._p3)/this._p1)*T*T*T:this._calcEnd?1:I},P.ease=new P(.7,.7),w.config=P.config=function(T,I,C){return new P(T,I,C)},a=S("easing.SteppedEase",function(T,I){T=T||1,this._p1=1/T,this._p2=T+(I?0:1),this._p3=I?1:0},!0),w=a.prototype=new x,w.constructor=a,w.getRatio=function(T){return 0>T?T=0:T>=1&&(T=.999999999),((this._p2*T|0)+this._p3)*this._p1},w.config=a.config=function(T,I){return new a(T,I)},o=S("easing.ExpoScaleEase",function(T,I,C){this._p1=Math.log(I/T),this._p2=I-T,this._p3=T,this._ease=C},!0),w=o.prototype=new x,w.constructor=o,w.getRatio=function(T){return this._ease&&(T=this._ease.getRatio(T)),(this._p3*Math.exp(this._p1*T)-this._p3)/this._p2},w.config=o.config=function(T,I,C){return new o(T,I,C)},c=S("easing.RoughEase",function(T){T=T||{};for(var I,C,U,N,X,J,Z=T.taper||"none",ct=[],Rt=0,tt=0|(T.points||20),_t=tt,G=T.randomize!==!1,Pt=T.clamp===!0,Et=T.template instanceof x?T.template:null,At=typeof T.strength=="number"?.4*T.strength:.4;--_t>-1;)I=G?Math.random():1/tt*_t,C=Et?Et.getRatio(I):I,Z==="none"?U=At:Z==="out"?(N=1-I,U=N*N*At):Z==="in"?U=I*I*At:.5>I?(N=2*I,U=N*N*.5*At):(N=2*(1-I),U=N*N*.5*At),G?C+=Math.random()*U-.5*U:_t%2?C+=.5*U:C-=.5*U,Pt&&(C>1?C=1:0>C&&(C=0)),ct[Rt++]={x:I,y:C};for(ct.sort(function(ce,re){return ce.x-re.x}),J=new R(1,1,null),_t=tt;--_t>-1;)X=ct[_t],J=new R(X.x,X.y,J);this._prev=new R(0,0,J.t!==0?J:J.next)},!0),w=c.prototype=new x,w.constructor=c,w.getRatio=function(T){var I=this._prev;if(T>I.t){for(;I.next&&T>=I.t;)I=I.next;I=I.prev}else for(;I.prev&&T<=I.t;)I=I.prev;return this._prev=I,I.v+(T-I.t)/I.gap*I.c},w.config=function(T){return new c(T)},c.ease=new c,k("Bounce",b("BounceOut",function(T){return 1/2.75>T?7.5625*T*T:2/2.75>T?7.5625*(T-=1.5/2.75)*T+.75:2.5/2.75>T?7.5625*(T-=2.25/2.75)*T+.9375:7.5625*(T-=2.625/2.75)*T+.984375}),b("BounceIn",function(T){return(T=1-T)<1/2.75?1-7.5625*T*T:2/2.75>T?1-(7.5625*(T-=1.5/2.75)*T+.75):2.5/2.75>T?1-(7.5625*(T-=2.25/2.75)*T+.9375):1-(7.5625*(T-=2.625/2.75)*T+.984375)}),b("BounceInOut",function(T){var I=.5>T;return T=I?1-2*T:2*T-1,T=1/2.75>T?7.5625*T*T:2/2.75>T?7.5625*(T-=1.5/2.75)*T+.75:2.5/2.75>T?7.5625*(T-=2.25/2.75)*T+.9375:7.5625*(T-=2.625/2.75)*T+.984375,I?.5*(1-T):.5*T+.5})),k("Circ",b("CircOut",function(T){return Math.sqrt(1-(T-=1)*T)}),b("CircIn",function(T){return-(Math.sqrt(1-T*T)-1)}),b("CircInOut",function(T){return(T*=2)<1?-.5*(Math.sqrt(1-T*T)-1):.5*(Math.sqrt(1-(T-=2)*T)+1)})),f=function(T,I,C){var U=S("easing."+T,function(X,J){this._p1=X>=1?X:1,this._p2=(J||C)/(1>X?X:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),N=U.prototype=new x;return N.constructor=U,N.getRatio=I,N.config=function(X,J){return new U(X,J)},U},k("Elastic",f("ElasticOut",function(T){return this._p1*Math.pow(2,-10*T)*Math.sin((T-this._p3)*this._p2)+1},.3),f("ElasticIn",function(T){return-(this._p1*Math.pow(2,10*(T-=1))*Math.sin((T-this._p3)*this._p2))},.3),f("ElasticInOut",function(T){return(T*=2)<1?-.5*(this._p1*Math.pow(2,10*(T-=1))*Math.sin((T-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(T-=1))*Math.sin((T-this._p3)*this._p2)*.5+1},.45)),k("Expo",b("ExpoOut",function(T){return 1-Math.pow(2,-10*T)}),b("ExpoIn",function(T){return Math.pow(2,10*(T-1))-.001}),b("ExpoInOut",function(T){return(T*=2)<1?.5*Math.pow(2,10*(T-1)):.5*(2-Math.pow(2,-10*(T-1)))})),k("Sine",b("SineOut",function(T){return Math.sin(T*v)}),b("SineIn",function(T){return-Math.cos(T*v)+1}),b("SineInOut",function(T){return-.5*(Math.cos(Math.PI*T)-1)})),S("easing.EaseLookup",{find:function(T){return x.map[T]}},!0),O(u.SlowMo,"SlowMo","ease,"),O(c,"RoughEase","ease,"),O(a,"SteppedEase","ease,"),E},!0)}),ln._gsDefine&&ln._gsQueue.pop()(),function(x,a){var o={},c=x.document,f=x.GreenSockGlobals=x.GreenSockGlobals||x,u=f[a];if(u)return typeof module<"u"&&module.exports&&(module.exports=u),u;var m,g,v,S,b,O=function(z){var Q,st=z.split("."),nt=f;for(Q=0;Q<st.length;Q++)nt[st[Q]]=nt=nt[st[Q]]||{};return nt},k=O("com.greensock"),R=1e-10,F=function(z){var Q,st=[],nt=z.length;for(Q=0;Q!==nt;st.push(z[Q++]));return st},E=function(){},P=function(){var z=Object.prototype.toString,Q=z.call([]);return function(st){return st!=null&&(st instanceof Array||typeof st=="object"&&!!st.push&&z.call(st)===Q)}}(),w={},T=function(z,Q,st,nt){this.sc=w[z]?w[z].sc:[],w[z]=this,this.gsClass=null,this.func=st;var vt=[];this.check=function(Ut){for(var qt,Xt,Ne,Ie,me=Q.length,we=me;--me>-1;)(qt=w[Q[me]]||new T(Q[me],[])).gsClass?(vt[me]=qt.gsClass,we--):Ut&&qt.sc.push(this);if(we===0&&st){if(Xt=("com.greensock."+z).split("."),Ne=Xt.pop(),Ie=O(Xt.join("."))[Ne]=this.gsClass=st.apply(st,vt),nt)if(f[Ne]=o[Ne]=Ie,typeof module<"u"&&module.exports)if(z===a){module.exports=o[a]=Ie;for(me in o)Ie[me]=o[me]}else o[a]&&(o[a][Ne]=Ie);else typeof define=="function"&&define.amd&&define((x.GreenSockAMDPath?x.GreenSockAMDPath+"/":"")+z.split(".").pop(),[],function(){return Ie});for(me=0;me<this.sc.length;me++)this.sc[me].check()}},this.check(!0)},I=x._gsDefine=function(z,Q,st,nt){return new T(z,Q,st,nt)},C=k._class=function(z,Q,st){return Q=Q||function(){},I(z,[],function(){return Q},st),Q};I.globals=f;var U=[0,0,1,1],N=C("easing.Ease",function(z,Q,st,nt){this._func=z,this._type=st||0,this._power=nt||0,this._params=Q?U.concat(Q):U},!0),X=N.map={},J=N.register=function(z,Q,st,nt){for(var vt,Ut,qt,Xt,Ne=Q.split(","),Ie=Ne.length,me=(st||"easeIn,easeOut,easeInOut").split(",");--Ie>-1;)for(Ut=Ne[Ie],vt=nt?C("easing."+Ut,null,!0):k.easing[Ut]||{},qt=me.length;--qt>-1;)Xt=me[qt],X[Ut+"."+Xt]=X[Xt+Ut]=vt[Xt]=z.getRatio?z:z[Xt]||new z};for(v=N.prototype,v._calcEnd=!1,v.getRatio=function(z){if(this._func)return this._params[0]=z,this._func.apply(null,this._params);var Q=this._type,st=this._power,nt=Q===1?1-z:Q===2?z:.5>z?2*z:2*(1-z);return st===1?nt*=nt:st===2?nt*=nt*nt:st===3?nt*=nt*nt*nt:st===4&&(nt*=nt*nt*nt*nt),Q===1?1-nt:Q===2?nt:.5>z?nt/2:1-nt/2},m=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=m.length;--g>-1;)v=m[g]+",Power"+g,J(new N(null,null,1,g),v,"easeOut",!0),J(new N(null,null,2,g),v,"easeIn"+(g===0?",easeNone":"")),J(new N(null,null,3,g),v,"easeInOut");X.linear=k.easing.Linear.easeIn,X.swing=k.easing.Quad.easeInOut;var Z=C("events.EventDispatcher",function(z){this._listeners={},this._eventTarget=z||this});v=Z.prototype,v.addEventListener=function(z,Q,st,nt,vt){vt=vt||0;var Ut,qt,Xt=this._listeners[z],Ne=0;for(this!==S||b||S.wake(),Xt==null&&(this._listeners[z]=Xt=[]),qt=Xt.length;--qt>-1;)Ut=Xt[qt],Ut.c===Q&&Ut.s===st?Xt.splice(qt,1):Ne===0&&Ut.pr<vt&&(Ne=qt+1);Xt.splice(Ne,0,{c:Q,s:st,up:nt,pr:vt})},v.removeEventListener=function(z,Q){var st,nt=this._listeners[z];if(nt){for(st=nt.length;--st>-1;)if(nt[st].c===Q)return void nt.splice(st,1)}},v.dispatchEvent=function(z){var Q,st,nt,vt=this._listeners[z];if(vt)for(Q=vt.length,Q>1&&(vt=vt.slice(0)),st=this._eventTarget;--Q>-1;)nt=vt[Q],nt&&(nt.up?nt.c.call(nt.s||st,{type:z,target:st}):nt.c.call(nt.s||st))};var ct=x.requestAnimationFrame,Rt=x.cancelAnimationFrame,tt=Date.now||function(){return new Date().getTime()},_t=tt();for(m=["ms","moz","webkit","o"],g=m.length;--g>-1&&!ct;)ct=x[m[g]+"RequestAnimationFrame"],Rt=x[m[g]+"CancelAnimationFrame"]||x[m[g]+"CancelRequestAnimationFrame"];C("Ticker",function(z,Q){var st,nt,vt,Ut,qt,Xt=this,Ne=tt(),Ie=Q!==!1&&ct?"auto":!1,me=500,we=33,yi="tick",Ei=function(ni){var bi,Yr,ar=tt()-_t;ar>me&&(Ne+=ar-we),_t+=ar,Xt.time=(_t-Ne)/1e3,bi=Xt.time-qt,(!st||bi>0||ni===!0)&&(Xt.frame++,qt+=bi+(bi>=Ut?.004:Ut-bi),Yr=!0),ni!==!0&&(vt=nt(Ei)),Yr&&Xt.dispatchEvent(yi)};Z.call(Xt),Xt.time=Xt.frame=0,Xt.tick=function(){Ei(!0)},Xt.lagSmoothing=function(ni,bi){return arguments.length?(me=ni||1/R,void(we=Math.min(bi,me,0))):1/R>me},Xt.sleep=function(){vt!=null&&(Ie&&Rt?Rt(vt):clearTimeout(vt),nt=E,vt=null,Xt===S&&(b=!1))},Xt.wake=function(ni){vt!==null?Xt.sleep():ni?Ne+=-_t+(_t=tt()):Xt.frame>10&&(_t=tt()-me+5),nt=st===0?E:Ie&&ct?ct:function(bi){return setTimeout(bi,1e3*(qt-Xt.time)+1|0)},Xt===S&&(b=!0),Ei(2)},Xt.fps=function(ni){return arguments.length?(st=ni,Ut=1/(st||60),qt=this.time+Ut,void Xt.wake()):st},Xt.useRAF=function(ni){return arguments.length?(Xt.sleep(),Ie=ni,void Xt.fps(st)):Ie},Xt.fps(z),setTimeout(function(){Ie==="auto"&&Xt.frame<5&&(c||{}).visibilityState!=="hidden"&&Xt.useRAF(!1)},1500)}),v=k.Ticker.prototype=new k.events.EventDispatcher,v.constructor=k.Ticker;var G=C("core.Animation",function(z,Q){if(this.vars=Q=Q||{},this._duration=this._totalDuration=z||0,this._delay=Number(Q.delay)||0,this._timeScale=1,this._active=Q.immediateRender===!0,this.data=Q.data,this._reversed=Q.reversed===!0,W){b||S.wake();var st=this.vars.useFrames?Qi:W;st.add(this,st._time),this.vars.paused&&this.paused(!0)}});S=G.ticker=new k.Ticker,v=G.prototype,v._dirty=v._gc=v._initted=v._paused=!1,v._totalTime=v._time=0,v._rawPrevTime=-1,v._next=v._last=v._onUpdate=v._timeline=v.timeline=null,v._paused=!1;var Pt=function(){b&&tt()-_t>2e3&&((c||{}).visibilityState!=="hidden"||!S.lagSmoothing())&&S.wake();var z=setTimeout(Pt,2e3);z.unref&&z.unref()};Pt(),v.play=function(z,Q){return z!=null&&this.seek(z,Q),this.reversed(!1).paused(!1)},v.pause=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!0)},v.resume=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!1)},v.seek=function(z,Q){return this.totalTime(Number(z),Q!==!1)},v.restart=function(z,Q){return this.reversed(!1).paused(!1).totalTime(z?-this._delay:0,Q!==!1,!0)},v.reverse=function(z,Q){return z!=null&&this.seek(z||this.totalDuration(),Q),this.reversed(!0).paused(!1)},v.render=function(z,Q,st){},v.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},v.isActive=function(){var z,Q=this._timeline,st=this._startTime;return!Q||!this._gc&&!this._paused&&Q.isActive()&&(z=Q.rawTime(!0))>=st&&z<st+this.totalDuration()/this._timeScale-1e-7},v._enabled=function(z,Q){return b||S.wake(),this._gc=!z,this._active=this.isActive(),Q!==!0&&(z&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!z&&this.timeline&&this._timeline._remove(this,!0)),!1},v._kill=function(z,Q){return this._enabled(!1,!1)},v.kill=function(z,Q){return this._kill(z,Q),this},v._uncache=function(z){for(var Q=z?this:this.timeline;Q;)Q._dirty=!0,Q=Q.timeline;return this},v._swapSelfInParams=function(z){for(var Q=z.length,st=z.concat();--Q>-1;)z[Q]==="{self}"&&(st[Q]=this);return st},v._callback=function(z){var Q=this.vars,st=Q[z],nt=Q[z+"Params"],vt=Q[z+"Scope"]||Q.callbackScope||this,Ut=nt?nt.length:0;switch(Ut){case 0:st.call(vt);break;case 1:st.call(vt,nt[0]);break;case 2:st.call(vt,nt[0],nt[1]);break;default:st.apply(vt,nt)}},v.eventCallback=function(z,Q,st,nt){if((z||"").substr(0,2)==="on"){var vt=this.vars;if(arguments.length===1)return vt[z];Q==null?delete vt[z]:(vt[z]=Q,vt[z+"Params"]=P(st)&&st.join("").indexOf("{self}")!==-1?this._swapSelfInParams(st):st,vt[z+"Scope"]=nt),z==="onUpdate"&&(this._onUpdate=Q)}return this},v.delay=function(z){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+z-this._delay),this._delay=z,this):this._delay},v.duration=function(z){return arguments.length?(this._duration=this._totalDuration=z,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&z!==0&&this.totalTime(this._totalTime*(z/this._duration),!0),this):(this._dirty=!1,this._duration)},v.totalDuration=function(z){return this._dirty=!1,arguments.length?this.duration(z):this._totalDuration},v.time=function(z,Q){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(z>this._duration?this._duration:z,Q)):this._time},v.totalTime=function(z,Q,st){if(b||S.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>z&&!st&&(z+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var nt=this._totalDuration,vt=this._timeline;if(z>nt&&!st&&(z=nt),this._startTime=(this._paused?this._pauseTime:vt._time)-(this._reversed?nt-z:z)/this._timeScale,vt._dirty||this._uncache(!1),vt._timeline)for(;vt._timeline;)vt._timeline._time!==(vt._startTime+vt._totalTime)/vt._timeScale&&vt.totalTime(vt._totalTime,!0),vt=vt._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==z||this._duration===0)&&(Ft.length&&jt(),this.render(z,Q,!1),Ft.length&&jt())}return this},v.progress=v.totalProgress=function(z,Q){var st=this.duration();return arguments.length?this.totalTime(st*z,Q):st?this._time/st:this.ratio},v.startTime=function(z){return arguments.length?(z!==this._startTime&&(this._startTime=z,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,z-this._delay)),this):this._startTime},v.endTime=function(z){return this._startTime+(z!=0?this.totalDuration():this.duration())/this._timeScale},v.timeScale=function(z){if(!arguments.length)return this._timeScale;var Q,st;for(z=z||R,this._timeline&&this._timeline.smoothChildTiming&&(Q=this._pauseTime,st=Q||Q===0?Q:this._timeline.totalTime(),this._startTime=st-(st-this._startTime)*this._timeScale/z),this._timeScale=z,st=this.timeline;st&&st.timeline;)st._dirty=!0,st.totalDuration(),st=st.timeline;return this},v.reversed=function(z){return arguments.length?(z!=this._reversed&&(this._reversed=z,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},v.paused=function(z){if(!arguments.length)return this._paused;var Q,st,nt=this._timeline;return z!=this._paused&&nt&&(b||z||S.wake(),Q=nt.rawTime(),st=Q-this._pauseTime,!z&&nt.smoothChildTiming&&(this._startTime+=st,this._uncache(!1)),this._pauseTime=z?Q:null,this._paused=z,this._active=this.isActive(),!z&&st!==0&&this._initted&&this.duration()&&(Q=nt.smoothChildTiming?this._totalTime:(Q-this._startTime)/this._timeScale,this.render(Q,Q===this._totalTime,!0))),this._gc&&!z&&this._enabled(!0,!1),this};var Et=C("core.SimpleTimeline",function(z){G.call(this,0,z),this.autoRemoveChildren=this.smoothChildTiming=!0});v=Et.prototype=new G,v.constructor=Et,v.kill()._gc=!1,v._first=v._last=v._recent=null,v._sortChildren=!1,v.add=v.insert=function(z,Q,st,nt){var vt,Ut;if(z._startTime=Number(Q||0)+z._delay,z._paused&&this!==z._timeline&&(z._pauseTime=this.rawTime()-(z._timeline.rawTime()-z._pauseTime)),z.timeline&&z.timeline._remove(z,!0),z.timeline=z._timeline=this,z._gc&&z._enabled(!0,!0),vt=this._last,this._sortChildren)for(Ut=z._startTime;vt&&vt._startTime>Ut;)vt=vt._prev;return vt?(z._next=vt._next,vt._next=z):(z._next=this._first,this._first=z),z._next?z._next._prev=z:this._last=z,z._prev=vt,this._recent=z,this._timeline&&this._uncache(!0),this},v._remove=function(z,Q){return z.timeline===this&&(Q||z._enabled(!1,!0),z._prev?z._prev._next=z._next:this._first===z&&(this._first=z._next),z._next?z._next._prev=z._prev:this._last===z&&(this._last=z._prev),z._next=z._prev=z.timeline=null,z===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},v.render=function(z,Q,st){var nt,vt=this._first;for(this._totalTime=this._time=this._rawPrevTime=z;vt;)nt=vt._next,(vt._active||z>=vt._startTime&&!vt._paused&&!vt._gc)&&(vt._reversed?vt.render((vt._dirty?vt.totalDuration():vt._totalDuration)-(z-vt._startTime)*vt._timeScale,Q,st):vt.render((z-vt._startTime)*vt._timeScale,Q,st)),vt=nt},v.rawTime=function(){return b||S.wake(),this._totalTime};var At=C("TweenLite",function(z,Q,st){if(G.call(this,Q,st),this.render=At.prototype.render,z==null)throw"Cannot tween a null target.";this.target=z=typeof z!="string"?z:At.selector(z)||z;var nt,vt,Ut,qt=z.jquery||z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType),Xt=this.vars.overwrite;if(this._overwrite=Xt=Xt==null?gn[At.defaultOverwrite]:typeof Xt=="number"?Xt>>0:gn[Xt],(qt||z instanceof Array||z.push&&P(z))&&typeof z[0]!="number")for(this._targets=Ut=F(z),this._propLookup=[],this._siblings=[],nt=0;nt<Ut.length;nt++)vt=Ut[nt],vt?typeof vt!="string"?vt.length&&vt!==x&&vt[0]&&(vt[0]===x||vt[0].nodeType&&vt[0].style&&!vt.nodeType)?(Ut.splice(nt--,1),this._targets=Ut=Ut.concat(F(vt))):(this._siblings[nt]=dt(vt,this,!1),Xt===1&&this._siblings[nt].length>1&&Dt(vt,this,null,1,this._siblings[nt])):(vt=Ut[nt--]=At.selector(vt),typeof vt=="string"&&Ut.splice(nt+1,1)):Ut.splice(nt--,1);else this._propLookup={},this._siblings=dt(z,this,!1),Xt===1&&this._siblings.length>1&&Dt(z,this,null,1,this._siblings);(this.vars.immediateRender||Q===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-R,this.render(Math.min(0,-this._delay)))},!0),ce=function(z){return z&&z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType)},re=function(z,Q){var st,nt={};for(st in z)Di[st]||st in Q&&st!=="transform"&&st!=="x"&&st!=="y"&&st!=="width"&&st!=="height"&&st!=="className"&&st!=="border"||!(!Oe[st]||Oe[st]&&Oe[st]._autoCSS)||(nt[st]=z[st],delete z[st]);z.css=nt};v=At.prototype=new G,v.constructor=At,v.kill()._gc=!1,v.ratio=0,v._firstPT=v._targets=v._overwrittenProps=v._startAt=null,v._notifyPluginsOfEnabled=v._lazy=!1,At.version="2.0.2",At.defaultEase=v._ease=new N(null,null,1,1),At.defaultOverwrite="auto",At.ticker=S,At.autoSleep=120,At.lagSmoothing=function(z,Q){S.lagSmoothing(z,Q)},At.selector=x.$||x.jQuery||function(z){var Q=x.$||x.jQuery;return Q?(At.selector=Q,Q(z)):(c||(c=x.document),c?c.querySelectorAll?c.querySelectorAll(z):c.getElementById(z.charAt(0)==="#"?z.substr(1):z):z)};var Ft=[],It={},Bt=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Pe=/[\+-]=-?[\.\d]/,pe=function(z){for(var Q,st=this._firstPT,nt=1e-6;st;)Q=st.blob?z===1&&this.end!=null?this.end:z?this.join(""):this.start:st.c*z+st.s,st.m?Q=st.m.call(this._tween,Q,this._target||st.t,this._tween):nt>Q&&Q>-nt&&!st.blob&&(Q=0),st.f?st.fp?st.t[st.p](st.fp,Q):st.t[st.p](Q):st.t[st.p]=Q,st=st._next},Wt=function(z,Q,st,nt){var vt,Ut,qt,Xt,Ne,Ie,me,we=[],yi=0,Ei="",ni=0;for(we.start=z,we.end=Q,z=we[0]=z+"",Q=we[1]=Q+"",st&&(st(we),z=we[0],Q=we[1]),we.length=0,vt=z.match(Bt)||[],Ut=Q.match(Bt)||[],nt&&(nt._next=null,nt.blob=1,we._firstPT=we._applyPT=nt),Ne=Ut.length,Xt=0;Ne>Xt;Xt++)me=Ut[Xt],Ie=Q.substr(yi,Q.indexOf(me,yi)-yi),Ei+=Ie||!Xt?Ie:",",yi+=Ie.length,ni?ni=(ni+1)%5:Ie.substr(-5)==="rgba("&&(ni=1),me===vt[Xt]||vt.length<=Xt?Ei+=me:(Ei&&(we.push(Ei),Ei=""),qt=parseFloat(vt[Xt]),we.push(qt),we._firstPT={_next:we._firstPT,t:we,p:we.length-1,s:qt,c:(me.charAt(1)==="="?parseInt(me.charAt(0)+"1",10)*parseFloat(me.substr(2)):parseFloat(me)-qt)||0,f:0,m:ni&&4>ni?Math.round:0}),yi+=me.length;return Ei+=Q.substr(yi),Ei&&we.push(Ei),we.setRatio=pe,Pe.test(Q)&&(we.end=null),we},$e=function(z,Q,st,nt,vt,Ut,qt,Xt,Ne){typeof nt=="function"&&(nt=nt(Ne||0,z));var Ie,me=typeof z[Q],we=me!=="function"?"":Q.indexOf("set")||typeof z["get"+Q.substr(3)]!="function"?Q:"get"+Q.substr(3),yi=st!=="get"?st:we?qt?z[we](qt):z[we]():z[Q],Ei=typeof nt=="string"&&nt.charAt(1)==="=",ni={t:z,p:Q,s:yi,f:me==="function",pg:0,n:vt||Q,m:Ut?typeof Ut=="function"?Ut:Math.round:0,pr:0,c:Ei?parseInt(nt.charAt(0)+"1",10)*parseFloat(nt.substr(2)):parseFloat(nt)-yi||0};return(typeof yi!="number"||typeof nt!="number"&&!Ei)&&(qt||isNaN(yi)||!Ei&&isNaN(nt)||typeof yi=="boolean"||typeof nt=="boolean"?(ni.fp=qt,Ie=Wt(yi,Ei?parseFloat(ni.s)+ni.c+(ni.s+"").replace(/[0-9\-\.]/g,""):nt,Xt||At.defaultStringFilter,ni),ni={t:Ie,p:"setRatio",s:0,c:1,f:2,pg:0,n:vt||Q,pr:0,m:0}):(ni.s=parseFloat(yi),Ei||(ni.c=parseFloat(nt)-ni.s||0))),ni.c?((ni._next=this._firstPT)&&(ni._next._prev=ni),this._firstPT=ni,ni):void 0},Si=At._internals={isArray:P,isSelector:ce,lazyTweens:Ft,blobDif:Wt},Oe=At._plugins={},Ge=Si.tweenLookup={},pi=0,Di=Si.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},gn={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Qi=G._rootFramesTimeline=new Et,W=G._rootTimeline=new Et,Jt=30,jt=Si.lazyRender=function(){var z,Q=Ft.length;for(It={};--Q>-1;)z=Ft[Q],z&&z._lazy!==!1&&(z.render(z._lazy[0],z._lazy[1],!0),z._lazy=!1);Ft.length=0};W._startTime=S.time,Qi._startTime=S.frame,W._active=Qi._active=!0,setTimeout(jt,1),G._updateRoot=At.render=function(){var z,Q,st;if(Ft.length&&jt(),W.render((S.time-W._startTime)*W._timeScale,!1,!1),Qi.render((S.frame-Qi._startTime)*Qi._timeScale,!1,!1),Ft.length&&jt(),S.frame>=Jt){Jt=S.frame+(parseInt(At.autoSleep,10)||120);for(st in Ge){for(Q=Ge[st].tweens,z=Q.length;--z>-1;)Q[z]._gc&&Q.splice(z,1);Q.length===0&&delete Ge[st]}if(st=W._first,(!st||st._paused)&&At.autoSleep&&!Qi._first&&S._listeners.tick.length===1){for(;st&&st._paused;)st=st._next;st||S.sleep()}}},S.addEventListener("tick",G._updateRoot);var dt=function(z,Q,st){var nt,vt,Ut=z._gsTweenID;if(Ge[Ut||(z._gsTweenID=Ut="t"+pi++)]||(Ge[Ut]={target:z,tweens:[]}),Q&&(nt=Ge[Ut].tweens,nt[vt=nt.length]=Q,st))for(;--vt>-1;)nt[vt]===Q&&nt.splice(vt,1);return Ge[Ut].tweens},pt=function(z,Q,st,nt){var vt,Ut,qt=z.vars.onOverwrite;return qt&&(vt=qt(z,Q,st,nt)),qt=At.onOverwrite,qt&&(Ut=qt(z,Q,st,nt)),vt!==!1&&Ut!==!1},Dt=function(z,Q,st,nt,vt){var Ut,qt,Xt,Ne;if(nt===1||nt>=4){for(Ne=vt.length,Ut=0;Ne>Ut;Ut++)if((Xt=vt[Ut])!==Q)Xt._gc||Xt._kill(null,z,Q)&&(qt=!0);else if(nt===5)break;return qt}var Ie,me=Q._startTime+R,we=[],yi=0,Ei=Q._duration===0;for(Ut=vt.length;--Ut>-1;)(Xt=vt[Ut])===Q||Xt._gc||Xt._paused||(Xt._timeline!==Q._timeline?(Ie=Ie||ie(Q,0,Ei),ie(Xt,Ie,Ei)===0&&(we[yi++]=Xt)):Xt._startTime<=me&&Xt._startTime+Xt.totalDuration()/Xt._timeScale>me&&((Ei||!Xt._initted)&&me-Xt._startTime<=2e-10||(we[yi++]=Xt)));for(Ut=yi;--Ut>-1;)if(Xt=we[Ut],Ne=Xt._firstPT,nt===2&&Xt._kill(st,z,Q)&&(qt=!0),nt!==2||!Xt._firstPT&&Xt._initted&&Ne){if(nt!==2&&!pt(Xt,Q))continue;Xt._enabled(!1,!1)&&(qt=!0)}return qt},ie=function(z,Q,st){for(var nt=z._timeline,vt=nt._timeScale,Ut=z._startTime;nt._timeline;){if(Ut+=nt._startTime,vt*=nt._timeScale,nt._paused)return-100;nt=nt._timeline}return Ut/=vt,Ut>Q?Ut-Q:st&&Ut===Q||!z._initted&&2*R>Ut-Q?R:(Ut+=z.totalDuration()/z._timeScale/vt)>Q+R?0:Ut-Q-R};v._init=function(){var z,Q,st,nt,vt,Ut,qt=this.vars,Xt=this._overwrittenProps,Ne=this._duration,Ie=!!qt.immediateRender,me=qt.ease;if(qt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),vt={};for(nt in qt.startAt)vt[nt]=qt.startAt[nt];if(vt.data="isStart",vt.overwrite=!1,vt.immediateRender=!0,vt.lazy=Ie&&qt.lazy!==!1,vt.startAt=vt.delay=null,vt.onUpdate=qt.onUpdate,vt.onUpdateParams=qt.onUpdateParams,vt.onUpdateScope=qt.onUpdateScope||qt.callbackScope||this,this._startAt=At.to(this.target||{},0,vt),Ie){if(this._time>0)this._startAt=null;else if(Ne!==0)return}}else if(qt.runBackwards&&Ne!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Ie=!1),st={};for(nt in qt)Di[nt]&&nt!=="autoCSS"||(st[nt]=qt[nt]);if(st.overwrite=0,st.data="isFromStart",st.lazy=Ie&&qt.lazy!==!1,st.immediateRender=Ie,this._startAt=At.to(this.target,0,st),Ie){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=me=me?me instanceof N?me:typeof me=="function"?new N(me,qt.easeParams):X[me]||At.defaultEase:At.defaultEase,qt.easeParams instanceof Array&&me.config&&(this._ease=me.config.apply(me,qt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(Ut=this._targets.length,z=0;Ut>z;z++)this._initProps(this._targets[z],this._propLookup[z]={},this._siblings[z],Xt?Xt[z]:null,z)&&(Q=!0);else Q=this._initProps(this.target,this._propLookup,this._siblings,Xt,0);if(Q&&At._onPluginEvent("_onInitAllProps",this),Xt&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),qt.runBackwards)for(st=this._firstPT;st;)st.s+=st.c,st.c=-st.c,st=st._next;this._onUpdate=qt.onUpdate,this._initted=!0},v._initProps=function(z,Q,st,nt,vt){var Ut,qt,Xt,Ne,Ie,me;if(z==null)return!1;It[z._gsTweenID]&&jt(),this.vars.css||z.style&&z!==x&&z.nodeType&&Oe.css&&this.vars.autoCSS!==!1&&re(this.vars,z);for(Ut in this.vars)if(me=this.vars[Ut],Di[Ut])me&&(me instanceof Array||me.push&&P(me))&&me.join("").indexOf("{self}")!==-1&&(this.vars[Ut]=me=this._swapSelfInParams(me,this));else if(Oe[Ut]&&(Ne=new Oe[Ut])._onInitTween(z,this.vars[Ut],this,vt)){for(this._firstPT=Ie={_next:this._firstPT,t:Ne,p:"setRatio",s:0,c:1,f:1,n:Ut,pg:1,pr:Ne._priority,m:0},qt=Ne._overwriteProps.length;--qt>-1;)Q[Ne._overwriteProps[qt]]=this._firstPT;(Ne._priority||Ne._onInitAllProps)&&(Xt=!0),(Ne._onDisable||Ne._onEnable)&&(this._notifyPluginsOfEnabled=!0),Ie._next&&(Ie._next._prev=Ie)}else Q[Ut]=$e.call(this,z,Ut,"get",me,Ut,0,null,this.vars.stringFilter,vt);return nt&&this._kill(nt,z)?this._initProps(z,Q,st,nt,vt):this._overwrite>1&&this._firstPT&&st.length>1&&Dt(z,this,Q,this._overwrite,st)?(this._kill(Q,z),this._initProps(z,Q,st,nt,vt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(It[z._gsTweenID]=!0),Xt)},v.render=function(z,Q,st){var nt,vt,Ut,qt,Xt=this._time,Ne=this._duration,Ie=this._rawPrevTime;if(z>=Ne-1e-7&&z>=0)this._totalTime=this._time=Ne,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(nt=!0,vt="onComplete",st=st||this._timeline.autoRemoveChildren),Ne===0&&(this._initted||!this.vars.lazy||st)&&(this._startTime===this._timeline._duration&&(z=0),(0>Ie||0>=z&&z>=-1e-7||Ie===R&&this.data!=="isPause")&&Ie!==z&&(st=!0,Ie>R&&(vt="onReverseComplete")),this._rawPrevTime=qt=!Q||z||Ie===z?z:R);else if(1e-7>z)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(Xt!==0||Ne===0&&Ie>0)&&(vt="onReverseComplete",nt=this._reversed),0>z&&(this._active=!1,Ne===0&&(this._initted||!this.vars.lazy||st)&&(Ie>=0&&(Ie!==R||this.data!=="isPause")&&(st=!0),this._rawPrevTime=qt=!Q||z||Ie===z?z:R)),(!this._initted||this._startAt&&this._startAt.progress())&&(st=!0);else if(this._totalTime=this._time=z,this._easeType){var me=z/Ne,we=this._easeType,yi=this._easePower;(we===1||we===3&&me>=.5)&&(me=1-me),we===3&&(me*=2),yi===1?me*=me:yi===2?me*=me*me:yi===3?me*=me*me*me:yi===4&&(me*=me*me*me*me),we===1?this.ratio=1-me:we===2?this.ratio=me:.5>z/Ne?this.ratio=me/2:this.ratio=1-me/2}else this.ratio=this._ease.getRatio(z/Ne);if(this._time!==Xt||st){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!st&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=Xt,this._rawPrevTime=Ie,Ft.push(this),void(this._lazy=[z,Q]);this._time&&!nt?this.ratio=this._ease.getRatio(this._time/Ne):nt&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==Xt&&z>=0&&(this._active=!0),Xt===0&&(this._startAt&&(z>=0?this._startAt.render(z,!0,st):vt||(vt="_dummyGS")),this.vars.onStart&&(this._time!==0||Ne===0)&&(Q||this._callback("onStart"))),Ut=this._firstPT;Ut;)Ut.f?Ut.t[Ut.p](Ut.c*this.ratio+Ut.s):Ut.t[Ut.p]=Ut.c*this.ratio+Ut.s,Ut=Ut._next;this._onUpdate&&(0>z&&this._startAt&&z!==-1e-4&&this._startAt.render(z,!0,st),Q||(this._time!==Xt||nt||st)&&this._callback("onUpdate")),vt&&(!this._gc||st)&&(0>z&&this._startAt&&!this._onUpdate&&z!==-1e-4&&this._startAt.render(z,!0,st),nt&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!Q&&this.vars[vt]&&this._callback(vt),Ne===0&&this._rawPrevTime===R&&qt!==R&&(this._rawPrevTime=0))}},v._kill=function(z,Q,st){if(z==="all"&&(z=null),z==null&&(Q==null||Q===this.target))return this._lazy=!1,this._enabled(!1,!1);Q=typeof Q!="string"?Q||this._targets||this.target:At.selector(Q)||Q;var nt,vt,Ut,qt,Xt,Ne,Ie,me,we,yi=st&&this._time&&st._startTime===this._startTime&&this._timeline===st._timeline,Ei=this._firstPT;if((P(Q)||ce(Q))&&typeof Q[0]!="number")for(nt=Q.length;--nt>-1;)this._kill(z,Q[nt],st)&&(Ne=!0);else{if(this._targets){for(nt=this._targets.length;--nt>-1;)if(Q===this._targets[nt]){Xt=this._propLookup[nt]||{},this._overwrittenProps=this._overwrittenProps||[],vt=this._overwrittenProps[nt]=z?this._overwrittenProps[nt]||{}:"all";break}}else{if(Q!==this.target)return!1;Xt=this._propLookup,vt=this._overwrittenProps=z?this._overwrittenProps||{}:"all"}if(Xt){if(Ie=z||Xt,me=z!==vt&&vt!=="all"&&z!==Xt&&(typeof z!="object"||!z._tempKill),st&&(At.onOverwrite||this.vars.onOverwrite)){for(Ut in Ie)Xt[Ut]&&(we||(we=[]),we.push(Ut));if((we||!z)&&!pt(this,st,Q,we))return!1}for(Ut in Ie)(qt=Xt[Ut])&&(yi&&(qt.f?qt.t[qt.p](qt.s):qt.t[qt.p]=qt.s,Ne=!0),qt.pg&&qt.t._kill(Ie)&&(Ne=!0),qt.pg&&qt.t._overwriteProps.length!==0||(qt._prev?qt._prev._next=qt._next:qt===this._firstPT&&(this._firstPT=qt._next),qt._next&&(qt._next._prev=qt._prev),qt._next=qt._prev=null),delete Xt[Ut]),me&&(vt[Ut]=1);!this._firstPT&&this._initted&&Ei&&this._enabled(!1,!1)}}return Ne},v.invalidate=function(){return this._notifyPluginsOfEnabled&&At._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],G.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-R,this.render(Math.min(0,-this._delay))),this},v._enabled=function(z,Q){if(b||S.wake(),z&&this._gc){var st,nt=this._targets;if(nt)for(st=nt.length;--st>-1;)this._siblings[st]=dt(nt[st],this,!0);else this._siblings=dt(this.target,this,!0)}return G.prototype._enabled.call(this,z,Q),this._notifyPluginsOfEnabled&&this._firstPT?At._onPluginEvent(z?"_onEnable":"_onDisable",this):!1},At.to=function(z,Q,st){return new At(z,Q,st)},At.from=function(z,Q,st){return st.runBackwards=!0,st.immediateRender=st.immediateRender!=0,new At(z,Q,st)},At.fromTo=function(z,Q,st,nt){return nt.startAt=st,nt.immediateRender=nt.immediateRender!=0&&st.immediateRender!=0,new At(z,Q,nt)},At.delayedCall=function(z,Q,st,nt,vt){return new At(Q,0,{delay:z,onComplete:Q,onCompleteParams:st,callbackScope:nt,onReverseComplete:Q,onReverseCompleteParams:st,immediateRender:!1,lazy:!1,useFrames:vt,overwrite:0})},At.set=function(z,Q){return new At(z,0,Q)},At.getTweensOf=function(z,Q){if(z==null)return[];z=typeof z!="string"?z:At.selector(z)||z;var st,nt,vt,Ut;if((P(z)||ce(z))&&typeof z[0]!="number"){for(st=z.length,nt=[];--st>-1;)nt=nt.concat(At.getTweensOf(z[st],Q));for(st=nt.length;--st>-1;)for(Ut=nt[st],vt=st;--vt>-1;)Ut===nt[vt]&&nt.splice(st,1)}else if(z._gsTweenID)for(nt=dt(z).concat(),st=nt.length;--st>-1;)(nt[st]._gc||Q&&!nt[st].isActive())&&nt.splice(st,1);return nt||[]},At.killTweensOf=At.killDelayedCallsTo=function(z,Q,st){typeof Q=="object"&&(st=Q,Q=!1);for(var nt=At.getTweensOf(z,Q),vt=nt.length;--vt>-1;)nt[vt]._kill(st,z)};var Kt=C("plugins.TweenPlugin",function(z,Q){this._overwriteProps=(z||"").split(","),this._propName=this._overwriteProps[0],this._priority=Q||0,this._super=Kt.prototype},!0);if(v=Kt.prototype,Kt.version="1.19.0",Kt.API=2,v._firstPT=null,v._addTween=$e,v.setRatio=pe,v._kill=function(z){var Q,st=this._overwriteProps,nt=this._firstPT;if(z[this._propName]!=null)this._overwriteProps=[];else for(Q=st.length;--Q>-1;)z[st[Q]]!=null&&st.splice(Q,1);for(;nt;)z[nt.n]!=null&&(nt._next&&(nt._next._prev=nt._prev),nt._prev?(nt._prev._next=nt._next,nt._prev=null):this._firstPT===nt&&(this._firstPT=nt._next)),nt=nt._next;return!1},v._mod=v._roundProps=function(z){for(var Q,st=this._firstPT;st;)Q=z[this._propName]||st.n!=null&&z[st.n.split(this._propName+"_").join("")],Q&&typeof Q=="function"&&(st.f===2?st.t._applyPT.m=Q:st.m=Q),st=st._next},At._onPluginEvent=function(z,Q){var st,nt,vt,Ut,qt,Xt=Q._firstPT;if(z==="_onInitAllProps"){for(;Xt;){for(qt=Xt._next,nt=vt;nt&&nt.pr>Xt.pr;)nt=nt._next;(Xt._prev=nt?nt._prev:Ut)?Xt._prev._next=Xt:vt=Xt,(Xt._next=nt)?nt._prev=Xt:Ut=Xt,Xt=qt}Xt=Q._firstPT=vt}for(;Xt;)Xt.pg&&typeof Xt.t[z]=="function"&&Xt.t[z]()&&(st=!0),Xt=Xt._next;return st},Kt.activate=function(z){for(var Q=z.length;--Q>-1;)z[Q].API===Kt.API&&(Oe[new z[Q]()._propName]=z[Q]);return!0},I.plugin=function(z){if(!(z&&z.propName&&z.init&&z.API))throw"illegal plugin definition.";var Q,st=z.propName,nt=z.priority||0,vt=z.overwriteProps,Ut={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},qt=C("plugins."+st.charAt(0).toUpperCase()+st.substr(1)+"Plugin",function(){Kt.call(this,st,nt),this._overwriteProps=vt||[]},z.global===!0),Xt=qt.prototype=new Kt(st);Xt.constructor=qt,qt.API=z.API;for(Q in Ut)typeof z[Q]=="function"&&(Xt[Ut[Q]]=z[Q]);return qt.version=z.version,Kt.activate([qt]),qt},m=x._gsQueue){for(g=0;g<m.length;g++)m[g]();for(v in w)w[v].func||x.console.log("GSAP encountered missing dependency: "+v)}b=!1}(typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window,"TweenMax");const Qp={class:"modal-background"},tm=["innerHTML"],em={name:"MapModali"},Ef=oi.defineComponent({...em,props:{},setup(x,{expose:a}){const o=oi.ref(""),c=oi.ref(""),f=m=>{c.value=m,o.value="five"},u=()=>{o.value=o.value+" out"};return oi.onMounted(()=>{}),a({text:c,show:f,hide:u}),(m,g)=>(oi.openBlock(),oi.createElementBlock("div",{id:"modal-container",class:oi.normalizeClass(o.value),onClick:u},[oi.createElementVNode("div",Qp,[oi.createElementVNode("div",{class:"modal",onClick:g[0]||(g[0]=v=>{v.stopPropagation()})},[oi.createElementVNode("p",{style:{"white-space":"pre-line","line-height":"1",margin:"0",color:"#fff"},innerHTML:c.value},null,8,tm)])])],2))}}),L1="",im={class:"bim_background_plate"},nm={class:"content"},rm=oi.createElementVNode("canvas",{class:"landscape"},null,-1),om={class:"content__title"},sm=oi.createElementVNode("div",{class:"overlay"},null,-1),am={name:"BimBackgroundPlate"},bf=oi.defineComponent({...am,setup(x){const a=()=>{let f=`
|
|
14
14
|
vec3 mod289(vec3 x)
|
|
15
15
|
{
|
|
16
16
|
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
@@ -248,11 +248,11 @@
|
|
|
248
248
|
float fogFactor = smoothstep( fogNear, fogFar, fogDepth );
|
|
249
249
|
gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
|
|
250
250
|
#endif
|
|
251
|
-
}`;var m=document.querySelector(".landscape"),g=window.innerWidth,v=window.innerHeight,S,b,O,k,R={x:0,y:0,xDamped:0,yDamped:0},F=typeof window.orientation<"u";E();function E(){P(),w(),T(),N(),F?window.addEventListener("touchmove",U,{passive:!1}):window.addEventListener("mousemove",U),window.addEventListener("resize",C),C()}function P(){S=new THREE.Scene;var Z=new THREE.Color(3355443);S.background=Z,S.fog=new THREE.Fog(Z,0,400),I(),O=new THREE.PerspectiveCamera(60,g/v,.1,1e4),O.position.y=8,O.position.z=4;let ct=new THREE.AmbientLight(16777215,1);S.add(ct),b=new THREE.WebGLRenderer({canvas:m,antialias:!0}),b.setPixelRatio=devicePixelRatio,b.setSize(g,v)}function w(){var Z=new THREE.PlaneBufferGeometry(100,400,400,400),ct={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},Rt=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,ct]),vertexShader:f,fragmentShader:u,wireframe:!1,fog:!0});k=new THREE.Mesh(Z,Rt),k.position.z=-180,k.rotation.x=-Math.PI/2,S.add(k)}function T(){new THREE.TextureLoader().load("",function(Z){k.material.uniforms.pallete.value=Z,k.material.needsUpdate=!0})}function I(){I=new THREE.Sky,I.scale.setScalar(45e4),I.material.uniforms.turbidity.value=13,I.material.uniforms.rayleigh.value=1.2,I.material.uniforms.luminance.value=1,I.material.uniforms.mieCoefficient.value=.1,I.material.uniforms.mieDirectionalG.value=.58,S.add(I);let Z=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));Z.visible=!1,S.add(Z);var ct=Math.PI*-.002,Rt=2*Math.PI*-.25;Z.position.x=4e5*Math.cos(Rt),Z.position.y=4e5*Math.sin(Rt)*Math.sin(ct),Z.position.z=4e5*Math.sin(Rt)*Math.cos(ct),I.material.uniforms.sunPosition.value.copy(Z.position)}function C(){g=window.innerWidth,v=window.innerHeight,O.aspect=g/v,O.updateProjectionMatrix(),b.setSize(g,v)}function U(Z){Z.preventDefault();var ct,Rt;Z.type=="mousemove"?(ct=Z.clientX,Rt=Z.clientY):(ct=Z.changedTouches[0].clientX,Rt=Z.changedTouches[0].clientY),R.x=ct,R.y=Rt}function N(){requestAnimationFrame(N),R.xDamped=J(R.xDamped,R.x,.1),R.yDamped=J(R.yDamped,R.y,.1);var Z=performance.now()*.001;k.material.uniforms.time.value=Z,k.material.uniforms.scroll.value=Z+X(R.yDamped,0,v,0,4),k.material.uniforms.distortCenter.value=Math.sin(Z)*.1,k.material.uniforms.roadWidth.value=X(R.xDamped,0,g,1,4.5),O.position.y=X(R.yDamped,0,v,4,11),b.render(S,O)}function X(Z,ct,Rt,tt,_t){return tt+(_t-tt)*((Z-ct)/(Rt-ct))}function J(Z,ct,Rt){return(1-Rt)*Z+Rt*ct}},o=()=>{const f=document.querySelector(".overlay"),u=document.querySelector(".content__title");charming(u);const m=Array.from(u.querySelectorAll("span"));TweenMax.to(f,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(m,{opacity:0}),TweenMax.staggerTo(m,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1)},c=()=>{a(),o()};return oi.onMounted(()=>{c()}),(f,u)=>(oi.openBlock(),oi.createElementBlock("div",im,[oi.createElementVNode("div",nm,[rm,oi.createElementVNode("h2",om,[oi.renderSlot(f.$slots,"default")])]),sm]))}}),R1="";(function(x,a){typeof Pi=="object"&&typeof module<"u"?a(Pi):typeof define=="function"&&define.amd?define(["exports"],a):a(x.THREE={})})(window,function(x){function a(){}function o(t,e){this.x=t||0,this.y=e||0}function c(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length}function f(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function u(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function m(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length}function g(t,e,i,n,s,l,d,p,_,M){Object.defineProperty(this,"id",{value:Gs++}),this.uuid=di.generateUUID(),this.name="",this.image=t!==void 0?t:g.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:g.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=s!==void 0?s:1006,this.minFilter=l!==void 0?l:1008,this.anisotropy=_!==void 0?_:1,this.format=d!==void 0?d:1023,this.type=p!==void 0?p:1009,this.offset=new o(0,0),this.repeat=new o(1,1),this.center=new o(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new m,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=M!==void 0?M:3e3,this.version=0,this.onUpdate=null}function v(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function S(t,e,i){this.width=t,this.height=e,this.scissor=new v(0,0,t,e),this.scissorTest=!1,this.viewport=new v(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new g(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function b(t,e,i){S.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function O(t,e,i,n,s,l,d,p,_,M,A,L){g.call(this,null,l,d,p,_,M,n,s,A,L),this.image={data:t,width:e,height:i},this.magFilter=_!==void 0?_:1003,this.minFilter=M!==void 0?M:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function k(t,e){this.min=t!==void 0?t:new u(1/0,1/0,1/0),this.max=e!==void 0?e:new u(-1/0,-1/0,-1/0)}function R(t,e){this.center=t!==void 0?t:new u,this.radius=e!==void 0?e:0}function F(t,e){this.normal=t!==void 0?t:new u(1,0,0),this.constant=e!==void 0?e:0}function E(t,e,i,n,s,l){this.planes=[t!==void 0?t:new F,e!==void 0?e:new F,i!==void 0?i:new F,n!==void 0?n:new F,s!==void 0?s:new F,l!==void 0?l:new F]}function P(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function w(){function t(s,l){i!==!1&&(n(s,l),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(s){n=s},setContext:function(s){e=s}}}function T(t){function e(n,s){var l=n.array,d=n.dynamic?35048:35044,p=t.createBuffer();return t.bindBuffer(s,p),t.bufferData(s,l,d),n.onUploadCallback(),s=5126,l instanceof Float32Array?s=5126:l instanceof Float64Array||(l instanceof Uint16Array?s=5123:l instanceof Int16Array?s=5122:l instanceof Uint32Array?s=5125:l instanceof Int32Array?s=5124:l instanceof Int8Array?s=5120:l instanceof Uint8Array&&(s=5121)),{buffer:p,type:s,bytesPerElement:l.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var s=i.get(n);s&&(t.deleteBuffer(s.buffer),i.delete(n))},update:function(n,s){n.isInterleavedBufferAttribute&&(n=n.data);var l=i.get(n);if(l===void 0)i.set(n,e(n,s));else if(l.version<n.version){var d=n,p=d.array,_=d.updateRange;t.bindBuffer(s,l.buffer),d.dynamic===!1?t.bufferData(s,p,35044):_.count===-1?t.bufferSubData(s,0,p):_.count===0||(t.bufferSubData(s,_.offset*p.BYTES_PER_ELEMENT,p.subarray(_.offset,_.offset+_.count)),_.count=-1),l.version=n.version}}}}function I(t,e,i,n,s,l){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new u,this.vertexNormals=Array.isArray(n)?n:[],this.color=s&&s.isColor?s:new P,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=l!==void 0?l:0}function C(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||C.DefaultOrder}function U(){this.mask=1}function N(){Object.defineProperty(this,"id",{value:Yc++}),this.uuid=di.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=N.DefaultUp.clone();var t=new u,e=new C,i=new f,n=new u(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new c},normalMatrix:{value:new m}}),this.matrix=new c,this.matrixWorld=new c,this.matrixAutoUpdate=N.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new U,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function X(){Object.defineProperty(this,"id",{value:Zc+=2}),this.uuid=di.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function J(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function Z(t,e,i){J.call(this,new Int8Array(t),e,i)}function ct(t,e,i){J.call(this,new Uint8Array(t),e,i)}function Rt(t,e,i){J.call(this,new Uint8ClampedArray(t),e,i)}function tt(t,e,i){J.call(this,new Int16Array(t),e,i)}function _t(t,e,i){J.call(this,new Uint16Array(t),e,i)}function G(t,e,i){J.call(this,new Int32Array(t),e,i)}function Pt(t,e,i){J.call(this,new Uint32Array(t),e,i)}function Et(t,e,i){J.call(this,new Float32Array(t),e,i)}function At(t,e,i){J.call(this,new Float64Array(t),e,i)}function ce(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function re(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Ft(){Object.defineProperty(this,"id",{value:Jc+=2}),this.uuid=di.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function It(t,e,i,n,s,l){X.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:l},this.fromBufferGeometry(new Nt(t,e,i,n,s,l)),this.mergeVertices()}function Nt(t,e,i,n,s,l){function d(q,$,rt,xt,gt,Ct,wt,Vt,K,ot,kt){var ee=Ct/K,$t=wt/ot,Yt=Ct/2,Me=wt/2,ge=Vt/2;wt=K+1;var De=ot+1,be=Ct=0,ae,We,Qe=new u;for(We=0;We<De;We++){var fi=We*$t-Me;for(ae=0;ae<wt;ae++)Qe[q]=(ae*ee-Yt)*xt,Qe[$]=fi*gt,Qe[rt]=ge,M.push(Qe.x,Qe.y,Qe.z),Qe[q]=0,Qe[$]=0,Qe[rt]=0<Vt?1:-1,A.push(Qe.x,Qe.y,Qe.z),L.push(ae/K),L.push(1-We/ot),Ct+=1}for(We=0;We<ot;We++)for(ae=0;ae<K;ae++)q=B+ae+wt*(We+1),$=B+(ae+1)+wt*(We+1),rt=B+(ae+1)+wt*We,_.push(B+ae+wt*We,q,rt),_.push(q,$,rt),be+=6;p.addGroup(H,be,kt),H+=be,B+=Ct}Ft.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:l};var p=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,s=Math.floor(s)||1,l=Math.floor(l)||1;var _=[],M=[],A=[],L=[],B=0,H=0;d("z","y","x",-1,-1,i,e,t,l,s,0),d("z","y","x",1,-1,i,e,-t,l,s,1),d("x","z","y",1,1,t,i,e,n,l,2),d("x","z","y",1,-1,t,i,-e,n,l,3),d("x","y","z",1,-1,t,e,i,n,s,4),d("x","y","z",-1,-1,t,e,-i,n,s,5),this.setIndex(_),this.addAttribute("position",new Et(M,3)),this.addAttribute("normal",new Et(A,3)),this.addAttribute("uv",new Et(L,2))}function Pe(t,e,i,n){X.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new pe(t,e,i,n)),this.mergeVertices()}function pe(t,e,i,n){Ft.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var s=t/2,l=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var d=i+1,p=n+1,_=t/i,M=e/n,A=[],L=[],B=[],H=[];for(t=0;t<p;t++){var q=t*M-l;for(e=0;e<d;e++)L.push(e*_-s,-q,0),B.push(0,0,1),H.push(e/i),H.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)s=e+d*(t+1),l=e+1+d*(t+1),p=e+1+d*t,A.push(e+d*t,s,p),A.push(s,l,p);this.setIndex(A),this.addAttribute("position",new Et(L,3)),this.addAttribute("normal",new Et(B,3)),this.addAttribute("uv",new Et(H,2))}function Wt(){Object.defineProperty(this,"id",{value:ku++}),this.uuid=di.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function $e(t){Wt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
|
|
251
|
+
}`;var m=document.querySelector(".landscape"),g=window.innerWidth,v=window.innerHeight,S,b,O,k,R={x:0,y:0,xDamped:0,yDamped:0},F=typeof window.orientation<"u";E();function E(){P(),w(),T(),N(),F?window.addEventListener("touchmove",U,{passive:!1}):window.addEventListener("mousemove",U),window.addEventListener("resize",C),C()}function P(){S=new THREE.Scene;var Z=new THREE.Color(3355443);S.background=Z,S.fog=new THREE.Fog(Z,0,400),I(),O=new THREE.PerspectiveCamera(60,g/v,.1,1e4),O.position.y=8,O.position.z=4;let ct=new THREE.AmbientLight(16777215,1);S.add(ct),b=new THREE.WebGLRenderer({canvas:m,antialias:!0}),b.setPixelRatio=devicePixelRatio,b.setSize(g,v)}function w(){var Z=new THREE.PlaneBufferGeometry(100,400,400,400),ct={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},Rt=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,ct]),vertexShader:f,fragmentShader:u,wireframe:!1,fog:!0});k=new THREE.Mesh(Z,Rt),k.position.z=-180,k.rotation.x=-Math.PI/2,S.add(k)}function T(){new THREE.TextureLoader().load("",function(Z){k.material.uniforms.pallete.value=Z,k.material.needsUpdate=!0})}function I(){I=new THREE.Sky,I.scale.setScalar(45e4),I.material.uniforms.turbidity.value=13,I.material.uniforms.rayleigh.value=1.2,I.material.uniforms.luminance.value=1,I.material.uniforms.mieCoefficient.value=.1,I.material.uniforms.mieDirectionalG.value=.58,S.add(I);let Z=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));Z.visible=!1,S.add(Z);var ct=Math.PI*-.002,Rt=2*Math.PI*-.25;Z.position.x=4e5*Math.cos(Rt),Z.position.y=4e5*Math.sin(Rt)*Math.sin(ct),Z.position.z=4e5*Math.sin(Rt)*Math.cos(ct),I.material.uniforms.sunPosition.value.copy(Z.position)}function C(){g=window.innerWidth,v=window.innerHeight,O.aspect=g/v,O.updateProjectionMatrix(),b.setSize(g,v)}function U(Z){Z.preventDefault();var ct,Rt;Z.type=="mousemove"?(ct=Z.clientX,Rt=Z.clientY):(ct=Z.changedTouches[0].clientX,Rt=Z.changedTouches[0].clientY),R.x=ct,R.y=Rt}function N(){requestAnimationFrame(N),R.xDamped=J(R.xDamped,R.x,.1),R.yDamped=J(R.yDamped,R.y,.1);var Z=performance.now()*.001;k.material.uniforms.time.value=Z,k.material.uniforms.scroll.value=Z+X(R.yDamped,0,v,0,4),k.material.uniforms.distortCenter.value=Math.sin(Z)*.1,k.material.uniforms.roadWidth.value=X(R.xDamped,0,g,1,4.5),O.position.y=X(R.yDamped,0,v,4,11),b.render(S,O)}function X(Z,ct,Rt,tt,_t){return tt+(_t-tt)*((Z-ct)/(Rt-ct))}function J(Z,ct,Rt){return(1-Rt)*Z+Rt*ct}},o=()=>{const f=document.querySelector(".overlay"),u=document.querySelector(".content__title");charming(u);const m=Array.from(u.querySelectorAll("span"));TweenMax.to(f,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(m,{opacity:0}),TweenMax.staggerTo(m,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1)},c=()=>{a(),o()};return oi.onMounted(()=>{c()}),(f,u)=>(oi.openBlock(),oi.createElementBlock("div",im,[oi.createElementVNode("div",nm,[rm,oi.createElementVNode("h2",om,[oi.renderSlot(f.$slots,"default")])]),sm]))}}),R1="";(function(x,a){typeof Pi=="object"&&typeof module<"u"?a(Pi):typeof define=="function"&&define.amd?define(["exports"],a):a(x.THREE={})})(window,function(x){function a(){}function o(t,e){this.x=t||0,this.y=e||0}function c(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length}function f(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function u(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function m(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length}function g(t,e,i,n,s,l,d,p,_,M){Object.defineProperty(this,"id",{value:Gs++}),this.uuid=di.generateUUID(),this.name="",this.image=t!==void 0?t:g.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:g.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=s!==void 0?s:1006,this.minFilter=l!==void 0?l:1008,this.anisotropy=_!==void 0?_:1,this.format=d!==void 0?d:1023,this.type=p!==void 0?p:1009,this.offset=new o(0,0),this.repeat=new o(1,1),this.center=new o(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new m,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=M!==void 0?M:3e3,this.version=0,this.onUpdate=null}function v(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function S(t,e,i){this.width=t,this.height=e,this.scissor=new v(0,0,t,e),this.scissorTest=!1,this.viewport=new v(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new g(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function b(t,e,i){S.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function O(t,e,i,n,s,l,d,p,_,M,A,L){g.call(this,null,l,d,p,_,M,n,s,A,L),this.image={data:t,width:e,height:i},this.magFilter=_!==void 0?_:1003,this.minFilter=M!==void 0?M:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function k(t,e){this.min=t!==void 0?t:new u(1/0,1/0,1/0),this.max=e!==void 0?e:new u(-1/0,-1/0,-1/0)}function R(t,e){this.center=t!==void 0?t:new u,this.radius=e!==void 0?e:0}function F(t,e){this.normal=t!==void 0?t:new u(1,0,0),this.constant=e!==void 0?e:0}function E(t,e,i,n,s,l){this.planes=[t!==void 0?t:new F,e!==void 0?e:new F,i!==void 0?i:new F,n!==void 0?n:new F,s!==void 0?s:new F,l!==void 0?l:new F]}function P(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function w(){function t(s,l){i!==!1&&(n(s,l),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(s){n=s},setContext:function(s){e=s}}}function T(t){function e(n,s){var l=n.array,d=n.dynamic?35048:35044,p=t.createBuffer();return t.bindBuffer(s,p),t.bufferData(s,l,d),n.onUploadCallback(),s=5126,l instanceof Float32Array?s=5126:l instanceof Float64Array||(l instanceof Uint16Array?s=5123:l instanceof Int16Array?s=5122:l instanceof Uint32Array?s=5125:l instanceof Int32Array?s=5124:l instanceof Int8Array?s=5120:l instanceof Uint8Array&&(s=5121)),{buffer:p,type:s,bytesPerElement:l.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var s=i.get(n);s&&(t.deleteBuffer(s.buffer),i.delete(n))},update:function(n,s){n.isInterleavedBufferAttribute&&(n=n.data);var l=i.get(n);if(l===void 0)i.set(n,e(n,s));else if(l.version<n.version){var d=n,p=d.array,_=d.updateRange;t.bindBuffer(s,l.buffer),d.dynamic===!1?t.bufferData(s,p,35044):_.count===-1?t.bufferSubData(s,0,p):_.count===0||(t.bufferSubData(s,_.offset*p.BYTES_PER_ELEMENT,p.subarray(_.offset,_.offset+_.count)),_.count=-1),l.version=n.version}}}}function I(t,e,i,n,s,l){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new u,this.vertexNormals=Array.isArray(n)?n:[],this.color=s&&s.isColor?s:new P,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=l!==void 0?l:0}function C(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||C.DefaultOrder}function U(){this.mask=1}function N(){Object.defineProperty(this,"id",{value:Yc++}),this.uuid=di.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=N.DefaultUp.clone();var t=new u,e=new C,i=new f,n=new u(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new c},normalMatrix:{value:new m}}),this.matrix=new c,this.matrixWorld=new c,this.matrixAutoUpdate=N.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new U,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function X(){Object.defineProperty(this,"id",{value:Zc+=2}),this.uuid=di.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function J(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function Z(t,e,i){J.call(this,new Int8Array(t),e,i)}function ct(t,e,i){J.call(this,new Uint8Array(t),e,i)}function Rt(t,e,i){J.call(this,new Uint8ClampedArray(t),e,i)}function tt(t,e,i){J.call(this,new Int16Array(t),e,i)}function _t(t,e,i){J.call(this,new Uint16Array(t),e,i)}function G(t,e,i){J.call(this,new Int32Array(t),e,i)}function Pt(t,e,i){J.call(this,new Uint32Array(t),e,i)}function Et(t,e,i){J.call(this,new Float32Array(t),e,i)}function At(t,e,i){J.call(this,new Float64Array(t),e,i)}function ce(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function re(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Ft(){Object.defineProperty(this,"id",{value:Jc+=2}),this.uuid=di.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function It(t,e,i,n,s,l){X.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:l},this.fromBufferGeometry(new Bt(t,e,i,n,s,l)),this.mergeVertices()}function Bt(t,e,i,n,s,l){function d(q,$,rt,xt,gt,Ct,wt,Vt,K,ot,kt){var ee=Ct/K,$t=wt/ot,Yt=Ct/2,Me=wt/2,ge=Vt/2;wt=K+1;var De=ot+1,be=Ct=0,ae,We,Qe=new u;for(We=0;We<De;We++){var fi=We*$t-Me;for(ae=0;ae<wt;ae++)Qe[q]=(ae*ee-Yt)*xt,Qe[$]=fi*gt,Qe[rt]=ge,M.push(Qe.x,Qe.y,Qe.z),Qe[q]=0,Qe[$]=0,Qe[rt]=0<Vt?1:-1,A.push(Qe.x,Qe.y,Qe.z),L.push(ae/K),L.push(1-We/ot),Ct+=1}for(We=0;We<ot;We++)for(ae=0;ae<K;ae++)q=B+ae+wt*(We+1),$=B+(ae+1)+wt*(We+1),rt=B+(ae+1)+wt*We,_.push(B+ae+wt*We,q,rt),_.push(q,$,rt),be+=6;p.addGroup(H,be,kt),H+=be,B+=Ct}Ft.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:l};var p=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,s=Math.floor(s)||1,l=Math.floor(l)||1;var _=[],M=[],A=[],L=[],B=0,H=0;d("z","y","x",-1,-1,i,e,t,l,s,0),d("z","y","x",1,-1,i,e,-t,l,s,1),d("x","z","y",1,1,t,i,e,n,l,2),d("x","z","y",1,-1,t,i,-e,n,l,3),d("x","y","z",1,-1,t,e,i,n,s,4),d("x","y","z",-1,-1,t,e,-i,n,s,5),this.setIndex(_),this.addAttribute("position",new Et(M,3)),this.addAttribute("normal",new Et(A,3)),this.addAttribute("uv",new Et(L,2))}function Pe(t,e,i,n){X.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new pe(t,e,i,n)),this.mergeVertices()}function pe(t,e,i,n){Ft.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var s=t/2,l=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var d=i+1,p=n+1,_=t/i,M=e/n,A=[],L=[],B=[],H=[];for(t=0;t<p;t++){var q=t*M-l;for(e=0;e<d;e++)L.push(e*_-s,-q,0),B.push(0,0,1),H.push(e/i),H.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)s=e+d*(t+1),l=e+1+d*(t+1),p=e+1+d*t,A.push(e+d*t,s,p),A.push(s,l,p);this.setIndex(A),this.addAttribute("position",new Et(L,3)),this.addAttribute("normal",new Et(B,3)),this.addAttribute("uv",new Et(H,2))}function Wt(){Object.defineProperty(this,"id",{value:ku++}),this.uuid=di.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function $e(t){Wt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
|
|
252
252
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
253
253
|
}`,this.fragmentShader=`void main() {
|
|
254
254
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
255
|
-
}`,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,t!==void 0&&(t.attributes,this.setValues(t))}function Si(t,e){this.origin=t!==void 0?t:new u,this.direction=e!==void 0?e:new u}function Oe(t,e,i){this.a=t!==void 0?t:new u,this.b=e!==void 0?e:new u,this.c=i!==void 0?i:new u}function Ge(t){Wt.call(this),this.type="MeshBasicMaterial",this.color=new P(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function pi(t,e){N.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ge({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function Di(t,e,i,n){function s(M,A){e.buffers.color.setClear(M.r,M.g,M.b,A,n)}var l=new P(0),d=0,p,_;return{getClearColor:function(){return l},setClearColor:function(M,A){l.set(M),d=A!==void 0?A:1,s(l,d)},getClearAlpha:function(){return d},setClearAlpha:function(M){d=M,s(l,d)},render:function(M,A,L,B){A=A.background,A===null?s(l,d):A&&A.isColor&&(s(A,1),B=!0),(t.autoClear||B)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),A&&(A.isCubeTexture||A.isWebGLRenderTargetCube)?(_===void 0&&(_=new pi(new Nt(1,1,1),new $e({type:"BackgroundCubeMaterial",uniforms:Nn.clone(Mo.cube.uniforms),vertexShader:Mo.cube.vertexShader,fragmentShader:Mo.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1})),_.geometry.removeAttribute("normal"),_.geometry.removeAttribute("uv"),_.onBeforeRender=function(H,q,$){this.matrixWorld.copyPosition($.matrixWorld)},i.update(_)),_.material.uniforms.tCube.value=A.isWebGLRenderTargetCube?A.texture:A,_.material.uniforms.tFlip.value=A.isWebGLRenderTargetCube?1:-1,M.push(_,_.geometry,_.material,0,null)):A&&A.isTexture&&(p===void 0&&(p=new pi(new pe(2,2),new $e({type:"BackgroundMaterial",uniforms:Nn.clone(Mo.background.uniforms),vertexShader:Mo.background.vertexShader,fragmentShader:Mo.background.fragmentShader,side:0,depthTest:!0,depthWrite:!1,fog:!1})),p.geometry.removeAttribute("normal"),i.update(p)),p.material.uniforms.t2D.value=A,A.matrixAutoUpdate===!0&&A.updateMatrix(),p.material.uniforms.uvTransform.value.copy(A.matrix),M.push(p,p.geometry,p.material,0,null))}}}function gn(t,e,i,n){var s;this.setMode=function(l){s=l},this.render=function(l,d){t.drawArrays(s,l,d),i.update(d,s)},this.renderInstances=function(l,d,p){if(n.isWebGL2)var _=t;else if(_=e.get("ANGLE_instanced_arrays"),_===null)return;_[n.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](s,d,p,l.maxInstancedCount),i.update(p,s,l.maxInstancedCount)}}function Qi(t,e,i){function n(xt){if(xt==="highp"){if(0<t.getShaderPrecisionFormat(35633,36338).precision&&0<t.getShaderPrecisionFormat(35632,36338).precision)return"highp";xt="mediump"}return xt==="mediump"&&0<t.getShaderPrecisionFormat(35633,36337).precision&&0<t.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var s,l=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext,d=i.precision!==void 0?i.precision:"highp",p=n(d);p!==d&&(d=p),i=i.logarithmicDepthBuffer===!0,p=t.getParameter(34930);var _=t.getParameter(35660),M=t.getParameter(3379),A=t.getParameter(34076),L=t.getParameter(34921),B=t.getParameter(36347),H=t.getParameter(36348),q=t.getParameter(36349),$=0<_,rt=l||!!e.get("OES_texture_float");return{isWebGL2:l,getMaxAnisotropy:function(){if(s!==void 0)return s;var xt=e.get("EXT_texture_filter_anisotropic");return s=xt!==null?t.getParameter(xt.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:n,precision:d,logarithmicDepthBuffer:i,maxTextures:p,maxVertexTextures:_,maxTextureSize:M,maxCubemapSize:A,maxAttributes:L,maxVertexUniforms:B,maxVaryings:H,maxFragmentUniforms:q,vertexTextures:$,floatFragmentTextures:rt,floatVertexTextures:$&&rt}}function W(){function t(){M.value!==n&&(M.value=n,M.needsUpdate=0<s),i.numPlanes=s,i.numIntersection=0}function e(A,L,B,H){var q=A!==null?A.length:0,$=null;if(q!==0){if($=M.value,H!==!0||$===null)for(H=B+4*q,L=L.matrixWorldInverse,_.getNormalMatrix(L),($===null||$.length<H)&&($=new Float32Array(H)),H=0;H!==q;++H,B+=4)p.copy(A[H]).applyMatrix4(L,_),p.normal.toArray($,B),$[B+3]=p.constant;M.value=$,M.needsUpdate=!0}return i.numPlanes=q,$}var i=this,n=null,s=0,l=!1,d=!1,p=new F,_=new m,M={value:null,needsUpdate:!1};this.uniform=M,this.numIntersection=this.numPlanes=0,this.init=function(A,L,B){var H=A.length!==0||L||s!==0||l;return l=L,n=e(A,B,0),s=A.length,H},this.beginShadows=function(){d=!0,e(null)},this.endShadows=function(){d=!1,t()},this.setState=function(A,L,B,H,q,$){if(!l||A===null||A.length===0||d&&!B)d?e(null):t();else{B=d?0:s;var rt=4*B,xt=q.clippingState||null;for(M.value=xt,xt=e(A,H,rt,$),A=0;A!==rt;++A)xt[A]=n[A];q.clippingState=xt,this.numIntersection=L?this.numPlanes:0,this.numPlanes+=B}}}function Jt(t){var e={};return{get:function(i){if(e[i]!==void 0)return e[i];switch(i){case"WEBGL_depth_texture":var n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return e[i]=n}}}function jt(t,e,i){function n(d){var p=d.target;d=s[p.id],d.index!==null&&e.remove(d.index);for(var _ in d.attributes)e.remove(d.attributes[_]);p.removeEventListener("dispose",n),delete s[p.id],(_=l[d.id])&&(e.remove(_),delete l[d.id]),i.memory.geometries--}var s={},l={};return{get:function(d,p){var _=s[p.id];return _||(p.addEventListener("dispose",n),p.isBufferGeometry?_=p:p.isGeometry&&(p._bufferGeometry===void 0&&(p._bufferGeometry=new Ft().setFromObject(d)),_=p._bufferGeometry),s[p.id]=_,i.memory.geometries++,_)},update:function(d){var p=d.index,_=d.attributes;p!==null&&e.update(p,34963);for(var M in _)e.update(_[M],34962);d=d.morphAttributes;for(M in d){p=d[M],_=0;for(var A=p.length;_<A;_++)e.update(p[_],34962)}},getWireframeAttribute:function(d){var p=l[d.id];if(p)return p;p=[];var _=d.index,M=d.attributes;if(_!==null){_=_.array,M=0;for(var A=_.length;M<A;M+=3){var L=_[M+0],B=_[M+1],H=_[M+2];p.push(L,B,B,H,H,L)}}else for(_=M.position.array,M=0,A=_.length/3-1;M<A;M+=3)L=M+0,B=M+1,H=M+2,p.push(L,B,B,H,H,L);return p=new(65535<re(p)?Pt:_t)(p,1),e.update(p,34963),l[d.id]=p}}}function dt(t,e,i,n){var s,l,d;this.setMode=function(p){s=p},this.setIndex=function(p){l=p.type,d=p.bytesPerElement},this.render=function(p,_){t.drawElements(s,_,l,p*d),i.update(_,s)},this.renderInstances=function(p,_,M){if(n.isWebGL2)var A=t;else if(A=e.get("ANGLE_instanced_arrays"),A===null)return;A[n.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](s,M,l,_*d,p.maxInstancedCount),i.update(M,s,p.maxInstancedCount)}}function pt(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(i,n,s){switch(s=s||1,e.calls++,n){case 4:e.triangles+=i/3*s;break;case 5:case 6:e.triangles+=s*(i-2);break;case 1:e.lines+=i/2*s;break;case 3:e.lines+=s*(i-1);break;case 2:e.lines+=s*i;break;case 0:e.points+=s*i;break;default:}}}}function Dt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function ie(t){var e={},i=new Float32Array(8);return{update:function(n,s,l,d){var p=n.morphTargetInfluences,_=p.length;if(n=e[s.id],n===void 0){n=[];for(var M=0;M<_;M++)n[M]=[M,0];e[s.id]=n}var A=l.morphTargets&&s.morphAttributes.position;for(l=l.morphNormals&&s.morphAttributes.normal,M=0;M<_;M++){var L=n[M];L[1]!==0&&(A&&s.removeAttribute("morphTarget"+M),l&&s.removeAttribute("morphNormal"+M))}for(M=0;M<_;M++)L=n[M],L[0]=M,L[1]=p[M];for(n.sort(Dt),M=0;8>M;M++){if((L=n[M])&&(p=L[0],_=L[1])){A&&s.addAttribute("morphTarget"+M,A[p]),l&&s.addAttribute("morphNormal"+M,l[p]),i[M]=_;continue}i[M]=0}d.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function Kt(t,e){var i={};return{update:function(n){var s=e.render.frame,l=n.geometry,d=t.get(n,l);return i[d.id]!==s&&(l.isGeometry&&d.updateFromObject(n),t.update(d),i[d.id]=s),d},dispose:function(){i={}}}}function z(t,e,i,n,s,l,d,p,_,M){t=t!==void 0?t:[],g.call(this,t,e!==void 0?e:301,i,n,s,l,d,p,_,M),this.flipY=!1}function Q(t,e,i,n){g.call(this,null),this.image={data:t,width:e,height:i,depth:n},this.minFilter=this.magFilter=1003,this.flipY=this.generateMipmaps=!1}function st(t,e,i){var n=t[0];if(0>=n||0<n)return t;var s=e*i,l=ah[s];if(l===void 0&&(l=new Float32Array(s),ah[s]=l),e!==0)for(n.toArray(l,0),n=1,s=0;n!==e;++n)s+=i,t[n].toArray(l,s);return l}function nt(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vt(t,e){for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}function Ut(t,e){var i=Ra[e];i===void 0&&(i=new Int32Array(e),Ra[e]=i);for(var n=0;n!==e;++n)i[n]=t.allocTextureUnit();return i}function qt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function Xt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Ne(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y):nt(i,e)||(t.uniform2fv(this.addr,e),vt(i,e))}function Ie(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z):e.r!==void 0?(i[0]!==e.r||i[1]!==e.g||i[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b):nt(i,e)||(t.uniform3fv(this.addr,e),vt(i,e))}function me(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z||i[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w):nt(i,e)||(t.uniform4fv(this.addr,e),vt(i,e))}function we(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Zh.set(n),t.uniformMatrix2fv(this.addr,!1,Zh),vt(i,n))}function yi(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Nu.set(n),t.uniformMatrix3fv(this.addr,!1,Nu),vt(i,n))}function Ei(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Ml.set(n),t.uniformMatrix4fv(this.addr,!1,Ml),vt(i,n))}function ni(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture2D(e||Yh,s)}function bi(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture3D(e||$c,s)}function Yr(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTextureCube(e||Bu,s)}function ar(t,e){var i=this.cache;nt(i,e)||(t.uniform2iv(this.addr,e),vt(i,e))}function sn(t,e){var i=this.cache;nt(i,e)||(t.uniform3iv(this.addr,e),vt(i,e))}function Po(t,e){var i=this.cache;nt(i,e)||(t.uniform4iv(this.addr,e),vt(i,e))}function zi(t){switch(t){case 5126:return qt;case 35664:return Ne;case 35665:return Ie;case 35666:return me;case 35674:return we;case 35675:return yi;case 35676:return Ei;case 35678:case 36198:return ni;case 35679:return bi;case 35680:return Yr;case 5124:case 35670:return Xt;case 35667:case 35671:return ar;case 35668:case 35672:return sn;case 35669:case 35673:return Po}}function Zo(t,e){var i=this.cache;nt(i,e)||(t.uniform1fv(this.addr,e),vt(i,e))}function lo(t,e){var i=this.cache;nt(i,e)||(t.uniform1iv(this.addr,e),vt(i,e))}function Hl(t,e){var i=this.cache;e=st(e,this.size,2),nt(i,e)||(t.uniform2fv(this.addr,e),this.updateCache(e))}function Sn(t,e){var i=this.cache;e=st(e,this.size,3),nt(i,e)||(t.uniform3fv(this.addr,e),this.updateCache(e))}function ra(t,e){var i=this.cache;e=st(e,this.size,4),nt(i,e)||(t.uniform4fv(this.addr,e),this.updateCache(e))}function ys(t,e){var i=this.cache;e=st(e,this.size,4),nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function yr(t,e){var i=this.cache;e=st(e,this.size,9),nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function oa(t,e){var i=this.cache;e=st(e,this.size,16),nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Ja(t,e,i){var n=this.cache,s=e.length,l=Ut(i,s);for(nt(n,l)===!1&&(t.uniform1iv(this.addr,l),vt(n,l)),t=0;t!==s;++t)i.setTexture2D(e[t]||Yh,l[t])}function Vl(t,e,i){var n=this.cache,s=e.length,l=Ut(i,s);for(nt(n,l)===!1&&(t.uniform1iv(this.addr,l),vt(n,l)),t=0;t!==s;++t)i.setTextureCube(e[t]||Bu,l[t])}function ho(t){switch(t){case 5126:return Zo;case 35664:return Hl;case 35665:return Sn;case 35666:return ra;case 35674:return ys;case 35675:return yr;case 35676:return oa;case 35678:return Ja;case 35680:return Vl;case 5124:case 35670:return lo;case 35667:case 35671:return ar;case 35668:case 35672:return sn;case 35669:case 35673:return Po}}function Ih(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=zi(e.type)}function sa(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=ho(e.type)}function $a(t){this.id=t,this.seq=[],this.map={}}function uo(t,e,i){this.seq=[],this.map={},this.renderer=i,i=t.getProgramParameter(e,35718);for(var n=0;n<i;++n){var s=t.getActiveUniform(e,n),l=t.getUniformLocation(e,s.name),d=this,p=s.name,_=p.length;for(Jh.lastIndex=0;;){var M=Jh.exec(p),A=Jh.lastIndex,L=M[1],B=M[3];if(M[2]==="]"&&(L|=0),B===void 0||B==="["&&A+2===_){p=d,s=B===void 0?new Ih(L,s,l):new sa(L,s,l),p.seq.push(s),p.map[s.id]=s;break}else B=d.map[L],B===void 0&&(B=new $a(L),L=d,d=B,L.seq.push(d),L.map[d.id]=d),d=B}}}function Wl(t){t=t.split(`
|
|
255
|
+
}`,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,t!==void 0&&(t.attributes,this.setValues(t))}function Si(t,e){this.origin=t!==void 0?t:new u,this.direction=e!==void 0?e:new u}function Oe(t,e,i){this.a=t!==void 0?t:new u,this.b=e!==void 0?e:new u,this.c=i!==void 0?i:new u}function Ge(t){Wt.call(this),this.type="MeshBasicMaterial",this.color=new P(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function pi(t,e){N.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ge({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function Di(t,e,i,n){function s(M,A){e.buffers.color.setClear(M.r,M.g,M.b,A,n)}var l=new P(0),d=0,p,_;return{getClearColor:function(){return l},setClearColor:function(M,A){l.set(M),d=A!==void 0?A:1,s(l,d)},getClearAlpha:function(){return d},setClearAlpha:function(M){d=M,s(l,d)},render:function(M,A,L,B){A=A.background,A===null?s(l,d):A&&A.isColor&&(s(A,1),B=!0),(t.autoClear||B)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),A&&(A.isCubeTexture||A.isWebGLRenderTargetCube)?(_===void 0&&(_=new pi(new Bt(1,1,1),new $e({type:"BackgroundCubeMaterial",uniforms:Nn.clone(Mo.cube.uniforms),vertexShader:Mo.cube.vertexShader,fragmentShader:Mo.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1})),_.geometry.removeAttribute("normal"),_.geometry.removeAttribute("uv"),_.onBeforeRender=function(H,q,$){this.matrixWorld.copyPosition($.matrixWorld)},i.update(_)),_.material.uniforms.tCube.value=A.isWebGLRenderTargetCube?A.texture:A,_.material.uniforms.tFlip.value=A.isWebGLRenderTargetCube?1:-1,M.push(_,_.geometry,_.material,0,null)):A&&A.isTexture&&(p===void 0&&(p=new pi(new pe(2,2),new $e({type:"BackgroundMaterial",uniforms:Nn.clone(Mo.background.uniforms),vertexShader:Mo.background.vertexShader,fragmentShader:Mo.background.fragmentShader,side:0,depthTest:!0,depthWrite:!1,fog:!1})),p.geometry.removeAttribute("normal"),i.update(p)),p.material.uniforms.t2D.value=A,A.matrixAutoUpdate===!0&&A.updateMatrix(),p.material.uniforms.uvTransform.value.copy(A.matrix),M.push(p,p.geometry,p.material,0,null))}}}function gn(t,e,i,n){var s;this.setMode=function(l){s=l},this.render=function(l,d){t.drawArrays(s,l,d),i.update(d,s)},this.renderInstances=function(l,d,p){if(n.isWebGL2)var _=t;else if(_=e.get("ANGLE_instanced_arrays"),_===null)return;_[n.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](s,d,p,l.maxInstancedCount),i.update(p,s,l.maxInstancedCount)}}function Qi(t,e,i){function n(xt){if(xt==="highp"){if(0<t.getShaderPrecisionFormat(35633,36338).precision&&0<t.getShaderPrecisionFormat(35632,36338).precision)return"highp";xt="mediump"}return xt==="mediump"&&0<t.getShaderPrecisionFormat(35633,36337).precision&&0<t.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var s,l=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext,d=i.precision!==void 0?i.precision:"highp",p=n(d);p!==d&&(d=p),i=i.logarithmicDepthBuffer===!0,p=t.getParameter(34930);var _=t.getParameter(35660),M=t.getParameter(3379),A=t.getParameter(34076),L=t.getParameter(34921),B=t.getParameter(36347),H=t.getParameter(36348),q=t.getParameter(36349),$=0<_,rt=l||!!e.get("OES_texture_float");return{isWebGL2:l,getMaxAnisotropy:function(){if(s!==void 0)return s;var xt=e.get("EXT_texture_filter_anisotropic");return s=xt!==null?t.getParameter(xt.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:n,precision:d,logarithmicDepthBuffer:i,maxTextures:p,maxVertexTextures:_,maxTextureSize:M,maxCubemapSize:A,maxAttributes:L,maxVertexUniforms:B,maxVaryings:H,maxFragmentUniforms:q,vertexTextures:$,floatFragmentTextures:rt,floatVertexTextures:$&&rt}}function W(){function t(){M.value!==n&&(M.value=n,M.needsUpdate=0<s),i.numPlanes=s,i.numIntersection=0}function e(A,L,B,H){var q=A!==null?A.length:0,$=null;if(q!==0){if($=M.value,H!==!0||$===null)for(H=B+4*q,L=L.matrixWorldInverse,_.getNormalMatrix(L),($===null||$.length<H)&&($=new Float32Array(H)),H=0;H!==q;++H,B+=4)p.copy(A[H]).applyMatrix4(L,_),p.normal.toArray($,B),$[B+3]=p.constant;M.value=$,M.needsUpdate=!0}return i.numPlanes=q,$}var i=this,n=null,s=0,l=!1,d=!1,p=new F,_=new m,M={value:null,needsUpdate:!1};this.uniform=M,this.numIntersection=this.numPlanes=0,this.init=function(A,L,B){var H=A.length!==0||L||s!==0||l;return l=L,n=e(A,B,0),s=A.length,H},this.beginShadows=function(){d=!0,e(null)},this.endShadows=function(){d=!1,t()},this.setState=function(A,L,B,H,q,$){if(!l||A===null||A.length===0||d&&!B)d?e(null):t();else{B=d?0:s;var rt=4*B,xt=q.clippingState||null;for(M.value=xt,xt=e(A,H,rt,$),A=0;A!==rt;++A)xt[A]=n[A];q.clippingState=xt,this.numIntersection=L?this.numPlanes:0,this.numPlanes+=B}}}function Jt(t){var e={};return{get:function(i){if(e[i]!==void 0)return e[i];switch(i){case"WEBGL_depth_texture":var n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return e[i]=n}}}function jt(t,e,i){function n(d){var p=d.target;d=s[p.id],d.index!==null&&e.remove(d.index);for(var _ in d.attributes)e.remove(d.attributes[_]);p.removeEventListener("dispose",n),delete s[p.id],(_=l[d.id])&&(e.remove(_),delete l[d.id]),i.memory.geometries--}var s={},l={};return{get:function(d,p){var _=s[p.id];return _||(p.addEventListener("dispose",n),p.isBufferGeometry?_=p:p.isGeometry&&(p._bufferGeometry===void 0&&(p._bufferGeometry=new Ft().setFromObject(d)),_=p._bufferGeometry),s[p.id]=_,i.memory.geometries++,_)},update:function(d){var p=d.index,_=d.attributes;p!==null&&e.update(p,34963);for(var M in _)e.update(_[M],34962);d=d.morphAttributes;for(M in d){p=d[M],_=0;for(var A=p.length;_<A;_++)e.update(p[_],34962)}},getWireframeAttribute:function(d){var p=l[d.id];if(p)return p;p=[];var _=d.index,M=d.attributes;if(_!==null){_=_.array,M=0;for(var A=_.length;M<A;M+=3){var L=_[M+0],B=_[M+1],H=_[M+2];p.push(L,B,B,H,H,L)}}else for(_=M.position.array,M=0,A=_.length/3-1;M<A;M+=3)L=M+0,B=M+1,H=M+2,p.push(L,B,B,H,H,L);return p=new(65535<re(p)?Pt:_t)(p,1),e.update(p,34963),l[d.id]=p}}}function dt(t,e,i,n){var s,l,d;this.setMode=function(p){s=p},this.setIndex=function(p){l=p.type,d=p.bytesPerElement},this.render=function(p,_){t.drawElements(s,_,l,p*d),i.update(_,s)},this.renderInstances=function(p,_,M){if(n.isWebGL2)var A=t;else if(A=e.get("ANGLE_instanced_arrays"),A===null)return;A[n.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](s,M,l,_*d,p.maxInstancedCount),i.update(M,s,p.maxInstancedCount)}}function pt(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(i,n,s){switch(s=s||1,e.calls++,n){case 4:e.triangles+=i/3*s;break;case 5:case 6:e.triangles+=s*(i-2);break;case 1:e.lines+=i/2*s;break;case 3:e.lines+=s*(i-1);break;case 2:e.lines+=s*i;break;case 0:e.points+=s*i;break;default:}}}}function Dt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function ie(t){var e={},i=new Float32Array(8);return{update:function(n,s,l,d){var p=n.morphTargetInfluences,_=p.length;if(n=e[s.id],n===void 0){n=[];for(var M=0;M<_;M++)n[M]=[M,0];e[s.id]=n}var A=l.morphTargets&&s.morphAttributes.position;for(l=l.morphNormals&&s.morphAttributes.normal,M=0;M<_;M++){var L=n[M];L[1]!==0&&(A&&s.removeAttribute("morphTarget"+M),l&&s.removeAttribute("morphNormal"+M))}for(M=0;M<_;M++)L=n[M],L[0]=M,L[1]=p[M];for(n.sort(Dt),M=0;8>M;M++){if((L=n[M])&&(p=L[0],_=L[1])){A&&s.addAttribute("morphTarget"+M,A[p]),l&&s.addAttribute("morphNormal"+M,l[p]),i[M]=_;continue}i[M]=0}d.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function Kt(t,e){var i={};return{update:function(n){var s=e.render.frame,l=n.geometry,d=t.get(n,l);return i[d.id]!==s&&(l.isGeometry&&d.updateFromObject(n),t.update(d),i[d.id]=s),d},dispose:function(){i={}}}}function z(t,e,i,n,s,l,d,p,_,M){t=t!==void 0?t:[],g.call(this,t,e!==void 0?e:301,i,n,s,l,d,p,_,M),this.flipY=!1}function Q(t,e,i,n){g.call(this,null),this.image={data:t,width:e,height:i,depth:n},this.minFilter=this.magFilter=1003,this.flipY=this.generateMipmaps=!1}function st(t,e,i){var n=t[0];if(0>=n||0<n)return t;var s=e*i,l=ah[s];if(l===void 0&&(l=new Float32Array(s),ah[s]=l),e!==0)for(n.toArray(l,0),n=1,s=0;n!==e;++n)s+=i,t[n].toArray(l,s);return l}function nt(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vt(t,e){for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}function Ut(t,e){var i=Ra[e];i===void 0&&(i=new Int32Array(e),Ra[e]=i);for(var n=0;n!==e;++n)i[n]=t.allocTextureUnit();return i}function qt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function Xt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Ne(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y):nt(i,e)||(t.uniform2fv(this.addr,e),vt(i,e))}function Ie(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z):e.r!==void 0?(i[0]!==e.r||i[1]!==e.g||i[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b):nt(i,e)||(t.uniform3fv(this.addr,e),vt(i,e))}function me(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z||i[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w):nt(i,e)||(t.uniform4fv(this.addr,e),vt(i,e))}function we(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Zh.set(n),t.uniformMatrix2fv(this.addr,!1,Zh),vt(i,n))}function yi(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Nu.set(n),t.uniformMatrix3fv(this.addr,!1,Nu),vt(i,n))}function Ei(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Ml.set(n),t.uniformMatrix4fv(this.addr,!1,Ml),vt(i,n))}function ni(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture2D(e||Yh,s)}function bi(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture3D(e||$c,s)}function Yr(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTextureCube(e||Bu,s)}function ar(t,e){var i=this.cache;nt(i,e)||(t.uniform2iv(this.addr,e),vt(i,e))}function sn(t,e){var i=this.cache;nt(i,e)||(t.uniform3iv(this.addr,e),vt(i,e))}function Po(t,e){var i=this.cache;nt(i,e)||(t.uniform4iv(this.addr,e),vt(i,e))}function zi(t){switch(t){case 5126:return qt;case 35664:return Ne;case 35665:return Ie;case 35666:return me;case 35674:return we;case 35675:return yi;case 35676:return Ei;case 35678:case 36198:return ni;case 35679:return bi;case 35680:return Yr;case 5124:case 35670:return Xt;case 35667:case 35671:return ar;case 35668:case 35672:return sn;case 35669:case 35673:return Po}}function Zo(t,e){var i=this.cache;nt(i,e)||(t.uniform1fv(this.addr,e),vt(i,e))}function lo(t,e){var i=this.cache;nt(i,e)||(t.uniform1iv(this.addr,e),vt(i,e))}function Hl(t,e){var i=this.cache;e=st(e,this.size,2),nt(i,e)||(t.uniform2fv(this.addr,e),this.updateCache(e))}function Sn(t,e){var i=this.cache;e=st(e,this.size,3),nt(i,e)||(t.uniform3fv(this.addr,e),this.updateCache(e))}function ra(t,e){var i=this.cache;e=st(e,this.size,4),nt(i,e)||(t.uniform4fv(this.addr,e),this.updateCache(e))}function ys(t,e){var i=this.cache;e=st(e,this.size,4),nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function yr(t,e){var i=this.cache;e=st(e,this.size,9),nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function oa(t,e){var i=this.cache;e=st(e,this.size,16),nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Ja(t,e,i){var n=this.cache,s=e.length,l=Ut(i,s);for(nt(n,l)===!1&&(t.uniform1iv(this.addr,l),vt(n,l)),t=0;t!==s;++t)i.setTexture2D(e[t]||Yh,l[t])}function Vl(t,e,i){var n=this.cache,s=e.length,l=Ut(i,s);for(nt(n,l)===!1&&(t.uniform1iv(this.addr,l),vt(n,l)),t=0;t!==s;++t)i.setTextureCube(e[t]||Bu,l[t])}function ho(t){switch(t){case 5126:return Zo;case 35664:return Hl;case 35665:return Sn;case 35666:return ra;case 35674:return ys;case 35675:return yr;case 35676:return oa;case 35678:return Ja;case 35680:return Vl;case 5124:case 35670:return lo;case 35667:case 35671:return ar;case 35668:case 35672:return sn;case 35669:case 35673:return Po}}function Ih(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=zi(e.type)}function sa(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=ho(e.type)}function $a(t){this.id=t,this.seq=[],this.map={}}function uo(t,e,i){this.seq=[],this.map={},this.renderer=i,i=t.getProgramParameter(e,35718);for(var n=0;n<i;++n){var s=t.getActiveUniform(e,n),l=t.getUniformLocation(e,s.name),d=this,p=s.name,_=p.length;for(Jh.lastIndex=0;;){var M=Jh.exec(p),A=Jh.lastIndex,L=M[1],B=M[3];if(M[2]==="]"&&(L|=0),B===void 0||B==="["&&A+2===_){p=d,s=B===void 0?new Ih(L,s,l):new sa(L,s,l),p.seq.push(s),p.map[s.id]=s;break}else B=d.map[L],B===void 0&&(B=new $a(L),L=d,d=B,L.seq.push(d),L.map[d.id]=d),d=B}}}function Wl(t){t=t.split(`
|
|
256
256
|
`);for(var e=0;e<t.length;e++)t[e]=e+1+": "+t[e];return t.join(`
|
|
257
257
|
`)}function aa(t,e,i){var n=t.createShader(e);return t.shaderSource(n,i),t.compileShader(n),t.getShaderParameter(n,35713),t.getShaderInfoLog(n),n}function la(t){switch(t){case 3e3:return["Linear","( value )"];case 3001:return["sRGB","( value )"];case 3002:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case 3007:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw Error("unsupported encoding: "+t)}}function co(t,e){return e=la(e),"vec4 "+t+"( vec4 value ) { return "+e[0]+"ToLinear"+e[1]+"; }"}function jl(t,e){return e=la(e),"vec4 "+t+"( vec4 value ) { return LinearTo"+e[0]+e[1]+"; }"}function Dh(t,e){switch(e){case 1:e="Linear";break;case 2:e="Reinhard";break;case 3:e="Uncharted2";break;case 4:e="OptimizedCineon";break;default:throw Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+e+"ToneMapping( color ); }"}function zh(t,e,i){return t=t||{},[t.derivatives||e.envMapCubeUV||e.bumpMap||e.normalMap&&!e.objectSpaceNormalMap||e.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(t.fragDepth||e.logarithmicDepthBuffer)&&i.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",t.drawBuffers&&i.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(t.shaderTextureLOD||e.envMap)&&i.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(xs).join(`
|
|
258
258
|
`)}function _s(t){var e=[],i;for(i in t){var n=t[i];n!==!1&&e.push("#define "+i+" "+n)}return e.join(`
|
|
@@ -2567,8 +2567,8 @@ void main() {
|
|
|
2567
2567
|
#include <clipping_planes_vertex>
|
|
2568
2568
|
#include <fog_vertex>
|
|
2569
2569
|
}
|
|
2570
|
-
`},Nn={merge:function(t){for(var e={},i=0;i<t.length;i++){var n=this.clone(t[i]),s;for(s in n)e[s]=n[s]}return e},clone:function(t){var e={},i;for(i in t){e[i]={};for(var n in t[i]){var s=t[i][n];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[i][n]=s.clone():Array.isArray(s)?e[i][n]=s.slice():e[i][n]=s}}return e}},to={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(P.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,i){return this.r=t,this.g=e,this.b=i,this},setHSL:function(){function t(e,i,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(i-e)*n:.5>n?i:n<2/3?e+6*(i-e)*(2/3-n):e}return function(e,i,n){return e=di.euclideanModulo(e,1),i=di.clamp(i,0,1),n=di.clamp(n,0,1),i===0?this.r=this.g=this.b=n:(i=.5>=n?n*(1+i):n+i-n*i,n=2*n-i,this.r=t(n,i,e+1/3),this.g=t(n,i,e),this.b=t(n,i,e-1/3)),this}}(),setStyle:function(t){function e(d){d!==void 0&&1>parseFloat(d)}var i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var n=i[2];switch(i[1]){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n)){n=parseFloat(i[1])/360;var s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(n,s,l)}}}else if(i=/^#([A-Fa-f0-9]+)$/.exec(t)){if(i=i[1],n=i.length,n===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(n===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return t&&0<t.length&&(i=to[t],i!==void 0&&this.setHex(i)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return e===void 0&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(e){return .04045>e?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(e){return .0031308>e?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(t={h:0,s:0,l:0});var e=this.r,i=this.g,n=this.b,s=Math.max(e,i,n),l=Math.min(e,i,n),d,p=(l+s)/2;if(l===s)l=d=0;else{var _=s-l;switch(l=.5>=p?_/(s+l):_/(2-s-l),s){case e:d=(i-n)/_+(i<n?6:0);break;case i:d=(n-e)/_+2;break;case n:d=(e-i)/_+4}d/=6}return t.h=d,t.s=l,t.l=p,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,i,n){return this.getHSL(t),t.h+=e,t.s+=i,t.l+=n,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(){var t={h:0,s:0,l:0},e={h:0,s:0,l:0};return function(i,n){this.getHSL(t),i.getHSL(e),i=di.lerp(t.h,e.h,n);var s=di.lerp(t.s,e.s,n);return n=di.lerp(t.l,e.l,n),this.setHSL(i,s,n),this}}(),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var qe={common:{diffuse:{value:new P(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new m},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new o(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new P(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new P(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new m}},sprite:{diffuse:{value:new P(15658734)},opacity:{value:1},center:{value:new o(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new m}}},Mo={basic:{uniforms:Nn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:Ci.meshbasic_vert,fragmentShader:Ci.meshbasic_frag},lambert:{uniforms:Nn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.fog,qe.lights,{emissive:{value:new P(0)}}]),vertexShader:Ci.meshlambert_vert,fragmentShader:Ci.meshlambert_frag},phong:{uniforms:Nn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new P(0)},specular:{value:new P(1118481)},shininess:{value:30}}]),vertexShader:Ci.meshphong_vert,fragmentShader:Ci.meshphong_frag},standard:{uniforms:Nn.merge([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new P(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:Ci.meshphysical_vert,fragmentShader:Ci.meshphysical_frag},matcap:{uniforms:Nn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:Ci.meshmatcap_vert,fragmentShader:Ci.meshmatcap_frag},points:{uniforms:Nn.merge([qe.points,qe.fog]),vertexShader:Ci.points_vert,fragmentShader:Ci.points_frag},dashed:{uniforms:Nn.merge([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ci.linedashed_vert,fragmentShader:Ci.linedashed_frag},depth:{uniforms:Nn.merge([qe.common,qe.displacementmap]),vertexShader:Ci.depth_vert,fragmentShader:Ci.depth_frag},normal:{uniforms:Nn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:Ci.normal_vert,fragmentShader:Ci.normal_frag},sprite:{uniforms:Nn.merge([qe.sprite,qe.fog]),vertexShader:Ci.sprite_vert,fragmentShader:Ci.sprite_frag},background:{uniforms:{uvTransform:{value:new m},t2D:{value:null}},vertexShader:Ci.background_vert,fragmentShader:Ci.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ci.cube_vert,fragmentShader:Ci.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ci.equirect_vert,fragmentShader:Ci.equirect_frag},distanceRGBA:{uniforms:Nn.merge([qe.common,qe.displacementmap,{referencePosition:{value:new u},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ci.distanceRGBA_vert,fragmentShader:Ci.distanceRGBA_frag},shadow:{uniforms:Nn.merge([qe.lights,qe.fog,{color:{value:new P(0)},opacity:{value:1}}]),vertexShader:Ci.shadow_vert,fragmentShader:Ci.shadow_frag}};Mo.physical={uniforms:Nn.merge([Mo.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:Ci.meshphysical_vert,fragmentShader:Ci.meshphysical_frag},Object.assign(I.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),C.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),C.DefaultOrder="XYZ",Object.defineProperties(C.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(C.prototype,{isEuler:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,i){var n=di.clamp,s=t.elements;t=s[0];var l=s[4],d=s[8],p=s[1],_=s[5],M=s[9],A=s[2],L=s[6];return s=s[10],e=e||this._order,e==="XYZ"?(this._y=Math.asin(n(d,-1,1)),.99999>Math.abs(d)?(this._x=Math.atan2(-M,s),this._z=Math.atan2(-l,t)):(this._x=Math.atan2(L,_),this._z=0)):e==="YXZ"?(this._x=Math.asin(-n(M,-1,1)),.99999>Math.abs(M)?(this._y=Math.atan2(d,s),this._z=Math.atan2(p,_)):(this._y=Math.atan2(-A,t),this._z=0)):e==="ZXY"?(this._x=Math.asin(n(L,-1,1)),.99999>Math.abs(L)?(this._y=Math.atan2(-A,s),this._z=Math.atan2(-l,_)):(this._y=0,this._z=Math.atan2(p,t))):e==="ZYX"?(this._y=Math.asin(-n(A,-1,1)),.99999>Math.abs(A)?(this._x=Math.atan2(L,s),this._z=Math.atan2(p,t)):(this._x=0,this._z=Math.atan2(-l,_))):e==="YZX"?(this._z=Math.asin(n(p,-1,1)),.99999>Math.abs(p)?(this._x=Math.atan2(-M,_),this._y=Math.atan2(-A,t)):(this._x=0,this._y=Math.atan2(d,s))):e==="XZY"&&(this._z=Math.asin(-n(l,-1,1)),.99999>Math.abs(l)?(this._x=Math.atan2(L,_),this._y=Math.atan2(d,t)):(this._x=Math.atan2(-M,s),this._y=0)),this._order=e,i!==!1&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new c;return function(e,i,n){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,i,n)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new f;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new u(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(U.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return(this.mask&t.mask)!==0}});var Yc=0;N.DefaultUp=new u(0,1,0),N.DefaultMatrixAutoUpdate=!0,N.prototype=Object.assign(Object.create(a.prototype),{constructor:N,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new f;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new f;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new u(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new u(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new u(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new u;return function(e,i){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(i)),this}}(),translateX:function(){var t=new u(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new u(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new u(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new c;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new f,e=new c,i=new u,n=new u;return function(s,l,d){s.isVector3?i.copy(s):i.set(s,l,d),s=this.parent,this.updateWorldMatrix(!0,!1),n.setFromMatrixPosition(this.matrixWorld),this.isCamera?e.lookAt(n,i,this.up):e.lookAt(i,n,this.up),this.quaternion.setFromRotationMatrix(e),s&&(e.extractRotation(s.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?this:(t&&t.isObject3D&&(t.parent!==null&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return e=this.children.indexOf(t),e!==-1&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var i=0,n=this.children.length;i<n;i++){var s=this.children[i].getObjectByProperty(t,e);if(s!==void 0)return s}},getWorldPosition:function(t){return t===void 0&&(t=new u),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new u,e=new u;return function(i){return i===void 0&&(i=new f),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,i,e),i}}(),getWorldScale:function(){var t=new u,e=new f;return function(i){return i===void 0&&(i=new u),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,i),i}}(),getWorldDirection:function(t){t===void 0&&(t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(t=this.children,e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)},toJSON:function(t){function e(A,L){return A[L.uuid]===void 0&&(A[L.uuid]=L.toJSON(t)),L.uuid}function i(A){var L=[],B;for(B in A){var H=A[B];delete H.metadata,L.push(H)}return L}var n=t===void 0||typeof t=="string",s={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},s.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var l={};if(l.uuid=this.uuid,l.type=this.type,this.name!==""&&(l.name=this.name),this.castShadow===!0&&(l.castShadow=!0),this.receiveShadow===!0&&(l.receiveShadow=!0),this.visible===!1&&(l.visible=!1),this.frustumCulled===!1&&(l.frustumCulled=!1),this.renderOrder!==0&&(l.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(l.userData=this.userData),l.layers=this.layers.mask,l.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(l.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){l.geometry=e(t.geometries,this.geometry);var d=this.geometry.parameters;if(d!==void 0&&d.shapes!==void 0)if(d=d.shapes,Array.isArray(d))for(var p=0,_=d.length;p<_;p++)e(t.shapes,d[p]);else e(t.shapes,d)}if(this.material!==void 0)if(Array.isArray(this.material)){for(d=[],p=0,_=this.material.length;p<_;p++)d.push(e(t.materials,this.material[p]));l.material=d}else l.material=e(t.materials,this.material);if(0<this.children.length)for(l.children=[],p=0;p<this.children.length;p++)l.children.push(this.children[p].toJSON(t).object);if(n){n=i(t.geometries),p=i(t.materials),_=i(t.textures);var M=i(t.images);d=i(t.shapes),0<n.length&&(s.geometries=n),0<p.length&&(s.materials=p),0<_.length&&(s.textures=_),0<M.length&&(s.images=M),0<d.length&&(s.shapes=d)}return s.object=l,s},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}});var Zc=0;X.prototype=Object.assign(Object.create(a.prototype),{constructor:X,isGeometry:!0,applyMatrix:function(t){for(var e=new m().getNormalMatrix(t),i=0,n=this.vertices.length;i<n;i++)this.vertices[i].applyMatrix4(t);for(i=0,n=this.faces.length;i<n;i++){t=this.faces[i],t.normal.applyMatrix3(e).normalize();for(var s=0,l=t.vertexNormals.length;s<l;s++)t.vertexNormals[s].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new N;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(q,$,rt,xt){var gt=p===void 0?[]:[i.colors[q].clone(),i.colors[$].clone(),i.colors[rt].clone()],Ct=d===void 0?[]:[new u().fromArray(d,3*q),new u().fromArray(d,3*$),new u().fromArray(d,3*rt)];xt=new I(q,$,rt,Ct,gt,xt),i.faces.push(xt),_!==void 0&&i.faceVertexUvs[0].push([new o().fromArray(_,2*q),new o().fromArray(_,2*$),new o().fromArray(_,2*rt)]),M!==void 0&&i.faceVertexUvs[1].push([new o().fromArray(M,2*q),new o().fromArray(M,2*$),new o().fromArray(M,2*rt)])}var i=this,n=t.index!==null?t.index.array:void 0,s=t.attributes,l=s.position.array,d=s.normal!==void 0?s.normal.array:void 0,p=s.color!==void 0?s.color.array:void 0,_=s.uv!==void 0?s.uv.array:void 0,M=s.uv2!==void 0?s.uv2.array:void 0;M!==void 0&&(this.faceVertexUvs[1]=[]);for(var A=s=0;s<l.length;s+=3,A+=2)i.vertices.push(new u().fromArray(l,s)),p!==void 0&&i.colors.push(new P().fromArray(p,s));var L=t.groups;if(0<L.length)for(s=0;s<L.length;s++){l=L[s];var B=l.start,H=l.count;for(A=B,B+=H;A<B;A+=3)n!==void 0?e(n[A],n[A+1],n[A+2],l.materialIndex):e(A,A+1,A+2,l.materialIndex)}else if(n!==void 0)for(s=0;s<n.length;s+=3)e(n[s],n[s+1],n[s+2]);else for(s=0;s<l.length/3;s+=3)e(s,s+1,s+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=e===0?1:1/e;var i=new c;return i.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var t=new u,e=new u,i=0,n=this.faces.length;i<n;i++){var s=this.faces[i],l=this.vertices[s.a],d=this.vertices[s.b];t.subVectors(this.vertices[s.c],d),e.subVectors(l,d),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,i=Array(this.vertices.length),n=0;for(e=this.vertices.length;n<e;n++)i[n]=new u;if(t){var s=new u,l=new u;for(t=0,n=this.faces.length;t<n;t++){e=this.faces[t];var d=this.vertices[e.a],p=this.vertices[e.b],_=this.vertices[e.c];s.subVectors(_,p),l.subVectors(d,p),s.cross(l),i[e.a].add(s),i[e.b].add(s),i[e.c].add(s)}}else for(this.computeFaceNormals(),t=0,n=this.faces.length;t<n;t++)e=this.faces[t],i[e.a].add(e.normal),i[e.b].add(e.normal),i[e.c].add(e.normal);for(n=0,e=this.vertices.length;n<e;n++)i[n].normalize();for(t=0,n=this.faces.length;t<n;t++)e=this.faces[t],d=e.vertexNormals,d.length===3?(d[0].copy(i[e.a]),d[1].copy(i[e.b]),d[2].copy(i[e.c])):(d[0]=i[e.a].clone(),d[1]=i[e.b].clone(),d[2]=i[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var i=this.faces[e],n=i.vertexNormals;n.length===3?(n[0].copy(i.normal),n[1].copy(i.normal),n[2].copy(i.normal)):(n[0]=i.normal.clone(),n[1]=i.normal.clone(),n[2]=i.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,i=0;for(e=this.faces.length;i<e;i++){var n=this.faces[i];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);var s=0;for(t=n.vertexNormals.length;s<t;s++)n.__originalVertexNormals[s]?n.__originalVertexNormals[s].copy(n.vertexNormals[s]):n.__originalVertexNormals[s]=n.vertexNormals[s].clone()}var l=new X;for(l.faces=this.faces,s=0,t=this.morphTargets.length;s<t;s++){if(!this.morphNormals[s]){this.morphNormals[s]={},this.morphNormals[s].faceNormals=[],this.morphNormals[s].vertexNormals=[],n=this.morphNormals[s].faceNormals;var d=this.morphNormals[s].vertexNormals;for(i=0,e=this.faces.length;i<e;i++){var p=new u,_={a:new u,b:new u,c:new u};n.push(p),d.push(_)}}for(d=this.morphNormals[s],l.vertices=this.morphTargets[s].vertices,l.computeFaceNormals(),l.computeVertexNormals(),i=0,e=this.faces.length;i<e;i++)n=this.faces[i],p=d.faceNormals[i],_=d.vertexNormals[i],p.copy(n.normal),_.a.copy(n.vertexNormals[0]),_.b.copy(n.vertexNormals[1]),_.c.copy(n.vertexNormals[2])}for(i=0,e=this.faces.length;i<e;i++)n=this.faces[i],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new R),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(t&&t.isGeometry){var n,s=this.vertices.length,l=this.vertices,d=t.vertices,p=this.faces,_=t.faces,M=this.faceVertexUvs[0],A=t.faceVertexUvs[0],L=this.colors,B=t.colors;i===void 0&&(i=0),e!==void 0&&(n=new m().getNormalMatrix(e)),t=0;for(var H=d.length;t<H;t++){var q=d[t].clone();e!==void 0&&q.applyMatrix4(e),l.push(q)}for(t=0,H=B.length;t<H;t++)L.push(B[t].clone());for(t=0,H=_.length;t<H;t++){d=_[t];var $=d.vertexNormals;for(B=d.vertexColors,L=new I(d.a+s,d.b+s,d.c+s),L.normal.copy(d.normal),n!==void 0&&L.normal.applyMatrix3(n).normalize(),e=0,l=$.length;e<l;e++)q=$[e].clone(),n!==void 0&&q.applyMatrix3(n).normalize(),L.vertexNormals.push(q);for(L.color.copy(d.color),e=0,l=B.length;e<l;e++)q=B[e],L.vertexColors.push(q.clone());L.materialIndex=d.materialIndex+i,p.push(L)}for(t=0,H=A.length;t<H;t++)if(i=A[t],n=[],i!==void 0){for(e=0,l=i.length;e<l;e++)n.push(i[e].clone());M.push(n)}}},mergeMesh:function(t){t&&t.isMesh&&(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix))},mergeVertices:function(){var t={},e=[],i=[],n=Math.pow(10,4),s,l=0;for(s=this.vertices.length;l<s;l++){var d=this.vertices[l];d=Math.round(d.x*n)+"_"+Math.round(d.y*n)+"_"+Math.round(d.z*n),t[d]===void 0?(t[d]=l,e.push(this.vertices[l]),i[l]=e.length-1):i[l]=i[t[d]]}for(t=[],l=0,s=this.faces.length;l<s;l++)for(n=this.faces[l],n.a=i[n.a],n.b=i[n.b],n.c=i[n.c],n=[n.a,n.b,n.c],d=0;3>d;d++)if(n[d]===n[(d+1)%3]){t.push(l);break}for(l=t.length-1;0<=l;l--)for(n=t[l],this.faces.splice(n,1),i=0,s=this.faceVertexUvs.length;i<s;i++)this.faceVertexUvs[i].splice(n,1);return l=this.vertices.length-e.length,this.vertices=e,l},setFromPoints:function(t){this.vertices=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];this.vertices.push(new u(n.x,n.y,n.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,i=0;i<e;i++)t[i]._id=i;t.sort(function(_,M){return _.materialIndex-M.materialIndex});var n=this.faceVertexUvs[0],s=this.faceVertexUvs[1],l,d;for(n&&n.length===e&&(l=[]),s&&s.length===e&&(d=[]),i=0;i<e;i++){var p=t[i]._id;l&&l.push(n[p]),d&&d.push(s[p])}l&&(this.faceVertexUvs[0]=l),d&&(this.faceVertexUvs[1]=d)},toJSON:function(){function t(Vt,K,ot){return ot?Vt|1<<K:Vt&~(1<<K)}function e(Vt){var K=Vt.x.toString()+Vt.y.toString()+Vt.z.toString();return M[K]!==void 0||(M[K]=_.length/3,_.push(Vt.x,Vt.y,Vt.z)),M[K]}function i(Vt){var K=Vt.r.toString()+Vt.g.toString()+Vt.b.toString();return L[K]!==void 0||(L[K]=A.length,A.push(Vt.getHex())),L[K]}function n(Vt){var K=Vt.x.toString()+Vt.y.toString();return H[K]!==void 0||(H[K]=B.length/2,B.push(Vt.x,Vt.y)),H[K]}var s={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.parameters!==void 0){var l=this.parameters,d;for(d in l)l[d]!==void 0&&(s[d]=l[d]);return s}for(l=[],d=0;d<this.vertices.length;d++){var p=this.vertices[d];l.push(p.x,p.y,p.z)}p=[];var _=[],M={},A=[],L={},B=[],H={};for(d=0;d<this.faces.length;d++){var q=this.faces[d],$=this.faceVertexUvs[0][d]!==void 0,rt=0<q.normal.length(),xt=0<q.vertexNormals.length,gt=q.color.r!==1||q.color.g!==1||q.color.b!==1,Ct=0<q.vertexColors.length,wt=0;wt=t(wt,0,0),wt=t(wt,1,!0),wt=t(wt,2,!1),wt=t(wt,3,$),wt=t(wt,4,rt),wt=t(wt,5,xt),wt=t(wt,6,gt),wt=t(wt,7,Ct),p.push(wt),p.push(q.a,q.b,q.c),p.push(q.materialIndex),$&&($=this.faceVertexUvs[0][d],p.push(n($[0]),n($[1]),n($[2]))),rt&&p.push(e(q.normal)),xt&&(rt=q.vertexNormals,p.push(e(rt[0]),e(rt[1]),e(rt[2]))),gt&&p.push(i(q.color)),Ct&&(q=q.vertexColors,p.push(i(q[0]),i(q[1]),i(q[2])))}return s.data={},s.data.vertices=l,s.data.normals=_,0<A.length&&(s.data.colors=A),0<B.length&&(s.data.uvs=[B]),s.data.faces=p,s},clone:function(){return new X().copy(this)},copy:function(t){var e,i,n;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var s=t.vertices,l=0;for(e=s.length;l<e;l++)this.vertices.push(s[l].clone());for(s=t.colors,l=0,e=s.length;l<e;l++)this.colors.push(s[l].clone());for(s=t.faces,l=0,e=s.length;l<e;l++)this.faces.push(s[l].clone());for(l=0,e=t.faceVertexUvs.length;l<e;l++){var d=t.faceVertexUvs[l];for(this.faceVertexUvs[l]===void 0&&(this.faceVertexUvs[l]=[]),s=0,i=d.length;s<i;s++){var p=d[s],_=[],M=0;for(n=p.length;M<n;M++)_.push(p[M].clone());this.faceVertexUvs[l].push(_)}}for(M=t.morphTargets,l=0,e=M.length;l<e;l++){if(n={},n.name=M[l].name,M[l].vertices!==void 0)for(n.vertices=[],s=0,i=M[l].vertices.length;s<i;s++)n.vertices.push(M[l].vertices[s].clone());if(M[l].normals!==void 0)for(n.normals=[],s=0,i=M[l].normals.length;s<i;s++)n.normals.push(M[l].normals[s].clone());this.morphTargets.push(n)}for(M=t.morphNormals,l=0,e=M.length;l<e;l++){if(n={},M[l].vertexNormals!==void 0)for(n.vertexNormals=[],s=0,i=M[l].vertexNormals.length;s<i;s++)d=M[l].vertexNormals[s],p={},p.a=d.a.clone(),p.b=d.b.clone(),p.c=d.c.clone(),n.vertexNormals.push(p);if(M[l].faceNormals!==void 0)for(n.faceNormals=[],s=0,i=M[l].faceNormals.length;s<i;s++)n.faceNormals.push(M[l].faceNormals[s].clone());this.morphNormals.push(n)}for(s=t.skinWeights,l=0,e=s.length;l<e;l++)this.skinWeights.push(s[l].clone());for(s=t.skinIndices,l=0,e=s.length;l<e;l++)this.skinIndices.push(s[l].clone());for(s=t.lineDistances,l=0,e=s.length;l<e;l++)this.lineDistances.push(s[l]);return l=t.boundingBox,l!==null&&(this.boundingBox=l.clone()),l=t.boundingSphere,l!==null&&(this.boundingSphere=l.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(J.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(J.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,s=this.itemSize;n<s;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new P),e[i++]=l.r,e[i++]=l.g,e[i++]=l.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new o),e[i++]=l.x,e[i++]=l.y}return this},copyVector3sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new u),e[i++]=l.x,e[i++]=l.y,e[i++]=l.z}return this},copyVector4sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new v),e[i++]=l.x,e[i++]=l.y,e[i++]=l.z,e[i++]=l.w}return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),Z.prototype=Object.create(J.prototype),Z.prototype.constructor=Z,ct.prototype=Object.create(J.prototype),ct.prototype.constructor=ct,Rt.prototype=Object.create(J.prototype),Rt.prototype.constructor=Rt,tt.prototype=Object.create(J.prototype),tt.prototype.constructor=tt,_t.prototype=Object.create(J.prototype),_t.prototype.constructor=_t,G.prototype=Object.create(J.prototype),G.prototype.constructor=G,Pt.prototype=Object.create(J.prototype),Pt.prototype.constructor=Pt,Et.prototype=Object.create(J.prototype),Et.prototype.constructor=Et,At.prototype=Object.create(J.prototype),At.prototype.constructor=At,Object.assign(ce.prototype,{computeGroups:function(t){var e=[],i=void 0;t=t.faces;for(var n=0;n<t.length;n++){var s=t[n];if(s.materialIndex!==i){i=s.materialIndex,l!==void 0&&(l.count=3*n-l.start,e.push(l));var l={start:3*n,materialIndex:i}}}l!==void 0&&(l.count=3*n-l.start,e.push(l)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,n=t.faceVertexUvs,s=n[0]&&0<n[0].length,l=n[1]&&0<n[1].length,d=t.morphTargets,p=d.length;if(0<p){for(var _=[],M=0;M<p;M++)_[M]={name:d[M].name,data:[]};this.morphTargets.position=_}var A=t.morphNormals,L=A.length;if(0<L){var B=[];for(M=0;M<L;M++)B[M]={name:A[M].name,data:[]};this.morphTargets.normal=B}var H=t.skinIndices,q=t.skinWeights,$=H.length===i.length,rt=q.length===i.length;for(0<i.length&&e.length,M=0;M<e.length;M++){var xt=e[M];this.vertices.push(i[xt.a],i[xt.b],i[xt.c]);var gt=xt.vertexNormals;for(gt.length===3?this.normals.push(gt[0],gt[1],gt[2]):(gt=xt.normal,this.normals.push(gt,gt,gt)),gt=xt.vertexColors,gt.length===3?this.colors.push(gt[0],gt[1],gt[2]):(gt=xt.color,this.colors.push(gt,gt,gt)),s===!0&&(gt=n[0][M],gt!==void 0?this.uvs.push(gt[0],gt[1],gt[2]):this.uvs.push(new o,new o,new o)),l===!0&&(gt=n[1][M],gt!==void 0?this.uvs2.push(gt[0],gt[1],gt[2]):this.uvs2.push(new o,new o,new o)),gt=0;gt<p;gt++){var Ct=d[gt].vertices;_[gt].data.push(Ct[xt.a],Ct[xt.b],Ct[xt.c])}for(gt=0;gt<L;gt++)Ct=A[gt].vertexNormals[M],B[gt].data.push(Ct.a,Ct.b,Ct.c);$&&this.skinIndices.push(H[xt.a],H[xt.b],H[xt.c]),rt&&this.skinWeights.push(q[xt.a],q[xt.b],q[xt.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var Jc=1;Ft.prototype=Object.assign(Object.create(a.prototype),{constructor:Ft,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<re(t)?Pt:_t)(t,1):this.index=t},addAttribute:function(t,e,i){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?t==="index"?(this.setIndex(e),this):(this.attributes[t]=e,this):this.addAttribute(t,new J(e,i))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:i!==void 0?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return e!==void 0&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),e=this.attributes.normal,e!==void 0&&(new m().getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new N;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new Et(3*e.vertices.length,3);var i=new Et(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new Et(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],i=0,n=t.length;i<n;i++){var s=t[i];e.push(s.x,s.y,s.z||0)}return this.addAttribute("position",new Et(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var i=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(i=void 0,e.elementsNeedUpdate=!1),i===void 0)return this.fromGeometry(e);i.verticesNeedUpdate=e.verticesNeedUpdate,i.normalsNeedUpdate=e.normalsNeedUpdate,i.colorsNeedUpdate=e.colorsNeedUpdate,i.uvsNeedUpdate=e.uvsNeedUpdate,i.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=i}return e.verticesNeedUpdate===!0&&(i=this.attributes.position,i!==void 0&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(i=this.attributes.normal,i!==void 0&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(i=this.attributes.color,i!==void 0&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,i!==void 0&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,i!==void 0&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new ce().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);this.addAttribute("position",new J(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new J(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new J(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new J(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new J(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups;for(var i in t.morphTargets){e=[];for(var n=t.morphTargets[i],s=0,l=n.length;s<l;s++){var d=n[s],p=new Et(3*d.data.length,3);p.name=d.name,e.push(p.copyVector3sArray(d.data))}this.morphAttributes[i]=e}return 0<t.skinIndices.length&&(i=new Et(4*t.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(i=new Et(4*t.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(t.skinWeights))),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k);var t=this.attributes.position;t!==void 0?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)},computeBoundingSphere:function(){var t=new k,e=new u;return function(){this.boundingSphere===null&&(this.boundingSphere=new R);var i=this.attributes.position;if(i){var n=this.boundingSphere.center;t.setFromBufferAttribute(i),t.getCenter(n);for(var s=0,l=0,d=i.count;l<d;l++)e.x=i.getX(l),e.y=i.getY(l),e.z=i.getZ(l),s=Math.max(s,n.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var i=e.position.array;if(e.normal===void 0)this.addAttribute("normal",new J(new Float32Array(i.length),3));else for(var n=e.normal.array,s=0,l=n.length;s<l;s++)n[s]=0;n=e.normal.array;var d=new u,p=new u,_=new u,M=new u,A=new u;if(t){var L=t.array;for(s=0,l=t.count;s<l;s+=3){t=3*L[s+0];var B=3*L[s+1],H=3*L[s+2];d.fromArray(i,t),p.fromArray(i,B),_.fromArray(i,H),M.subVectors(_,p),A.subVectors(d,p),M.cross(A),n[t]+=M.x,n[t+1]+=M.y,n[t+2]+=M.z,n[B]+=M.x,n[B+1]+=M.y,n[B+2]+=M.z,n[H]+=M.x,n[H+1]+=M.y,n[H+2]+=M.z}}else for(s=0,l=i.length;s<l;s+=9)d.fromArray(i,s),p.fromArray(i,s+3),_.fromArray(i,s+6),M.subVectors(_,p),A.subVectors(d,p),M.cross(A),n[s]=M.x,n[s+1]=M.y,n[s+2]=M.z,n[s+3]=M.x,n[s+4]=M.y,n[s+5]=M.z,n[s+6]=M.x,n[s+7]=M.y,n[s+8]=M.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){e===void 0&&(e=0);var i=this.attributes,n;for(n in i)if(t.attributes[n]!==void 0){var s=i[n].array,l=t.attributes[n],d=l.array,p=0;for(l=l.itemSize*e;p<d.length;p++,l++)s[l]=d[p]}return this}},normalizeNormals:function(){var t=new u;return function(){for(var e=this.attributes.normal,i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.normalize(),e.setXYZ(i,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(this.index===null)return this;var t=new Ft,e=this.index.array,i=this.attributes,n;for(n in i){var s=i[n],l=s.array,d=s.itemSize,p=new l.constructor(e.length*d),_=0;s=0;for(var M=e.length;s<M;s++)for(var A=e[s]*d,L=0;L<d;L++)p[_++]=l[A++];t.addAttribute(n,new J(p,d))}for(e=this.groups,s=0,M=e.length;s<M;s++)i=e[s],t.addGroup(i.start,i.count,i.materialIndex);return t},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(s in e)e[s]!==void 0&&(t[s]=e[s]);return t}t.data={attributes:{}};var i=this.index;i!==null&&(e=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:e}),i=this.attributes;for(s in i){var n=i[s];e=Array.prototype.slice.call(n.array),t.data.attributes[s]={itemSize:n.itemSize,type:n.array.constructor.name,array:e,normalized:n.normalized}}var s=this.groups;return 0<s.length&&(t.data.groups=JSON.parse(JSON.stringify(s))),s=this.boundingSphere,s!==null&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return new Ft().copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var i=t.index;i!==null&&this.setIndex(i.clone()),i=t.attributes;for(d in i)this.addAttribute(d,i[d].clone());var n=t.morphAttributes;for(d in n){var s=[],l=n[d];for(i=0,e=l.length;i<e;i++)s.push(l[i].clone());this.morphAttributes[d]=s}var d=t.groups;for(i=0,e=d.length;i<e;i++)n=d[i],this.addGroup(n.start,n.count,n.materialIndex);return d=t.boundingBox,d!==null&&(this.boundingBox=d.clone()),d=t.boundingSphere,d!==null&&(this.boundingSphere=d.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),It.prototype=Object.create(X.prototype),It.prototype.constructor=It,Nt.prototype=Object.create(Ft.prototype),Nt.prototype.constructor=Nt,Pe.prototype=Object.create(X.prototype),Pe.prototype.constructor=Pe,pe.prototype=Object.create(Ft.prototype),pe.prototype.constructor=pe;var ku=0;Wt.prototype=Object.assign(Object.create(a.prototype),{constructor:Wt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var i=t[e];if(i!==void 0)if(e==="shading")this.flatShading=i===1;else{var n=this[e];n===void 0||(n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i)}}},toJSON:function(t){function e(s){var l=[],d;for(d in s){var p=s[d];delete p.metadata,l.push(p)}return l}var i=t===void 0||typeof t=="string";i&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};return n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearCoat!==void 0&&(n.clearCoat=this.clearCoat),this.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==0&&(n.side=this.side),this.vertexColors!==0&&(n.vertexColors=this.vertexColors),1>this.opacity&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),0<this.alphaTest&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData),i&&(i=e(t.textures),t=e(t.images),0<i.length&&(n.textures=i),0<t.length&&(n.images=t)),n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,i=null;if(e!==null){var n=e.length;i=Array(n);for(var s=0;s!==n;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),$e.prototype=Object.create(Wt.prototype),$e.prototype.constructor=$e,$e.prototype.isShaderMaterial=!0,$e.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Nn.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$e.prototype.toJSON=function(t){var e=Wt.prototype.toJSON.call(this,t);e.uniforms={};for(var i in this.uniforms){var n=this.uniforms[i].value;e.uniforms[i]=n.isTexture?{type:"t",value:n.toJSON(t).uuid}:n.isColor?{type:"c",value:n.getHex()}:n.isVector2?{type:"v2",value:n.toArray()}:n.isVector3?{type:"v3",value:n.toArray()}:n.isVector4?{type:"v4",value:n.toArray()}:n.isMatrix4?{type:"m4",value:n.toArray()}:{value:n}}return 0<Object.keys(this.defines).length&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(Si.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(e=new u),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new u;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return e===void 0&&(e=new u),e.subVectors(t,this.origin),t=e.dot(this.direction),0>t?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new u;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new u,e=new u,i=new u;return function(n,s,l,d){t.copy(n).add(s).multiplyScalar(.5),e.copy(s).sub(n).normalize(),i.copy(this.origin).sub(t);var p=.5*n.distanceTo(s),_=-this.direction.dot(e),M=i.dot(this.direction),A=-i.dot(e),L=i.lengthSq(),B=Math.abs(1-_*_);if(0<B){n=_*A-M,s=_*M-A;var H=p*B;0<=n?s>=-H?s<=H?(p=1/B,n*=p,s*=p,_=n*(n+_*s+2*M)+s*(_*n+s+2*A)+L):(s=p,n=Math.max(0,-(_*s+M)),_=-n*n+s*(s+2*A)+L):(s=-p,n=Math.max(0,-(_*s+M)),_=-n*n+s*(s+2*A)+L):s<=-H?(n=Math.max(0,-(-_*p+M)),s=0<n?-p:Math.min(Math.max(-p,-A),p),_=-n*n+s*(s+2*A)+L):s<=H?(n=0,s=Math.min(Math.max(-p,-A),p),_=s*(s+2*A)+L):(n=Math.max(0,-(_*p+M)),s=0<n?p:Math.min(Math.max(-p,-A),p),_=-n*n+s*(s+2*A)+L)}else s=0<_?-p:p,n=Math.max(0,-(_*s+M)),_=-n*n+s*(s+2*A)+L;return l&&l.copy(this.direction).multiplyScalar(n).add(this.origin),d&&d.copy(e).multiplyScalar(s).add(t),_}}(),intersectSphere:function(){var t=new u;return function(e,i){t.subVectors(e.center,this.origin);var n=t.dot(this.direction),s=t.dot(t)-n*n;return e=e.radius*e.radius,s>e?null:(e=Math.sqrt(e-s),s=n-e,n+=e,0>s&&0>n?null:0>s?this.at(n,i):this.at(s,i))}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return e===0?t.distanceToPoint(this.origin)===0?0:null:(t=-(this.origin.dot(t.normal)+t.constant)/e,0<=t?t:null)},intersectPlane:function(t,e){return t=this.distanceToPlane(t),t===null?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return e===0||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var i=1/this.direction.x,n=1/this.direction.y,s=1/this.direction.z,l=this.origin;if(0<=i){var d=(t.min.x-l.x)*i;i*=t.max.x-l.x}else d=(t.max.x-l.x)*i,i*=t.min.x-l.x;if(0<=n){var p=(t.min.y-l.y)*n;n*=t.max.y-l.y}else p=(t.max.y-l.y)*n,n*=t.min.y-l.y;return d>n||p>i||((p>d||d!==d)&&(d=p),(n<i||i!==i)&&(i=n),0<=s?(p=(t.min.z-l.z)*s,t=(t.max.z-l.z)*s):(p=(t.max.z-l.z)*s,t=(t.min.z-l.z)*s),d>t||p>i)?null:((p>d||d!==d)&&(d=p),(t<i||i!==i)&&(i=t),0>i?null:this.at(0<=d?d:i,e))},intersectsBox:function(){var t=new u;return function(e){return this.intersectBox(e,t)!==null}}(),intersectTriangle:function(){var t=new u,e=new u,i=new u,n=new u;return function(s,l,d,p,_){if(e.subVectors(l,s),i.subVectors(d,s),n.crossVectors(e,i),l=this.direction.dot(n),0<l){if(p)return null;p=1}else if(0>l)p=-1,l=-l;else return null;return t.subVectors(this.origin,s),s=p*this.direction.dot(i.crossVectors(t,i)),0>s||(d=p*this.direction.dot(e.cross(t)),0>d||s+d>l)?null:(s=-p*t.dot(n),0>s?null:this.at(s/l,_))}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(Oe,{getNormal:function(){var t=new u;return function(e,i,n,s){return s===void 0&&(s=new u),s.subVectors(n,i),t.subVectors(e,i),s.cross(t),e=s.lengthSq(),0<e?s.multiplyScalar(1/Math.sqrt(e)):s.set(0,0,0)}}(),getBarycoord:function(){var t=new u,e=new u,i=new u;return function(n,s,l,d,p){t.subVectors(d,s),e.subVectors(l,s),i.subVectors(n,s),n=t.dot(t),s=t.dot(e),l=t.dot(i);var _=e.dot(e);d=e.dot(i);var M=n*_-s*s;return p===void 0&&(p=new u),M===0?p.set(-2,-1,-1):(M=1/M,_=(_*l-s*d)*M,n=(n*d-s*l)*M,p.set(1-_-n,n,_))}}(),containsPoint:function(){var t=new u;return function(e,i,n,s){return Oe.getBarycoord(e,i,n,s,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}(),getUV:function(){var t=new u;return function(e,i,n,s,l,d,p,_){return this.getBarycoord(e,i,n,s,t),_.set(0,0),_.addScaledVector(l,t.x),_.addScaledVector(d,t.y),_.addScaledVector(p,t.z),_}}()}),Object.assign(Oe.prototype,{set:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this},setFromPointsAndIndices:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new u,e=new u;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return t===void 0&&(t=new u),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Oe.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(t=new u),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Oe.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Oe.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,i,n,s){return Oe.getUV(t,this.a,this.b,this.c,e,i,n,s)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new u,e=new u,i=new u,n=new u,s=new u,l=new u;return function(d,p){p===void 0&&(p=new u);var _=this.a,M=this.b,A=this.c;t.subVectors(M,_),e.subVectors(A,_),n.subVectors(d,_);var L=t.dot(n),B=e.dot(n);if(0>=L&&0>=B)return p.copy(_);s.subVectors(d,M);var H=t.dot(s),q=e.dot(s);if(0<=H&&q<=H)return p.copy(M);var $=L*q-H*B;if(0>=$&&0<=L&&0>=H)return M=L/(L-H),p.copy(_).addScaledVector(t,M);l.subVectors(d,A),d=t.dot(l);var rt=e.dot(l);return 0<=rt&&d<=rt?p.copy(A):(L=d*B-L*rt,0>=L&&0<=B&&0>=rt?($=B/(B-rt),p.copy(_).addScaledVector(e,$)):(B=H*rt-d*q,0>=B&&0<=q-H&&0<=d-rt?(i.subVectors(A,M),$=(q-H)/(q-H+(d-rt)),p.copy(M).addScaledVector(i,$)):(A=1/(B+L+$),M=L*A,$*=A,p.copy(_).addScaledVector(t,M).addScaledVector(e,$))))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Ge.prototype=Object.create(Wt.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isMeshBasicMaterial=!0,Ge.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},pi.prototype=Object.assign(Object.create(N.prototype),{constructor:pi,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return N.prototype.copy.call(this,t),this.drawMode=t.drawMode,t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var i=t[e[0]];if(i!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++){var n=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}else if(i=t.morphTargets,i!==void 0&&0<i.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++)n=i[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t},raycast:function(){function t(rt,xt,gt,Ct,wt,Vt,K,ot){return(xt.side===1?Ct.intersectTriangle(K,Vt,wt,!0,ot):Ct.intersectTriangle(wt,Vt,K,xt.side!==2,ot))===null?null:($.copy(ot),$.applyMatrix4(rt.matrixWorld),xt=gt.ray.origin.distanceTo($),xt<gt.near||xt>gt.far?null:{distance:xt,point:$.clone(),object:rt})}function e(rt,xt,gt,Ct,wt,Vt,K,ot,kt){return l.fromBufferAttribute(wt,K),d.fromBufferAttribute(wt,ot),p.fromBufferAttribute(wt,kt),(rt=t(rt,xt,gt,Ct,l,d,p,q))&&(Vt&&(L.fromBufferAttribute(Vt,K),B.fromBufferAttribute(Vt,ot),H.fromBufferAttribute(Vt,kt),rt.uv=Oe.getUV(q,l,d,p,L,B,H,new o)),Vt=new I(K,ot,kt),Oe.getNormal(l,d,p,Vt.normal),rt.face=Vt),rt}var i=new c,n=new Si,s=new R,l=new u,d=new u,p=new u,_=new u,M=new u,A=new u,L=new o,B=new o,H=new o,q=new u,$=new u;return function(rt,xt){var gt=this.geometry,Ct=this.material,wt=this.matrixWorld;if(Ct!==void 0&&(gt.boundingSphere===null&>.computeBoundingSphere(),s.copy(gt.boundingSphere),s.applyMatrix4(wt),rt.ray.intersectsSphere(s)!==!1&&(i.getInverse(wt),n.copy(rt.ray).applyMatrix4(i),gt.boundingBox===null||n.intersectsBox(gt.boundingBox)!==!1))){if(gt.isBufferGeometry){var Vt=gt.index,K=gt.attributes.position,ot=gt.attributes.uv,kt=gt.groups;gt=gt.drawRange;var ee;if(Vt!==null)if(Array.isArray(Ct)){var $t=0;for(ee=kt.length;$t<ee;$t++){var Yt=kt[$t],Me=Ct[Yt.materialIndex];wt=Math.max(Yt.start,gt.start);var ge=Math.min(Yt.start+Yt.count,gt.start+gt.count);for(Yt=wt;Yt<ge;Yt+=3){wt=Vt.getX(Yt);var De=Vt.getX(Yt+1),be=Vt.getX(Yt+2);(wt=e(this,Me,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor(Yt/3),xt.push(wt))}}}else for(wt=Math.max(0,gt.start),ge=Math.min(Vt.count,gt.start+gt.count),$t=wt,ee=ge;$t<ee;$t+=3)wt=Vt.getX($t),De=Vt.getX($t+1),be=Vt.getX($t+2),(wt=e(this,Ct,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt));else if(K!==void 0)if(Array.isArray(Ct))for($t=0,ee=kt.length;$t<ee;$t++)for(Yt=kt[$t],Me=Ct[Yt.materialIndex],wt=Math.max(Yt.start,gt.start),ge=Math.min(Yt.start+Yt.count,gt.start+gt.count),Yt=wt;Yt<ge;Yt+=3)wt=Yt,De=Yt+1,be=Yt+2,(wt=e(this,Me,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor(Yt/3),xt.push(wt));else for(wt=Math.max(0,gt.start),ge=Math.min(K.count,gt.start+gt.count),$t=wt,ee=ge;$t<ee;$t+=3)wt=$t,De=$t+1,be=$t+2,(wt=e(this,Ct,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt))}else if(gt.isGeometry){for(K=Array.isArray(Ct),ot=gt.vertices,kt=gt.faces,wt=gt.faceVertexUvs[0],0<wt.length&&(Vt=wt),Yt=0,ge=kt.length;Yt<ge;Yt++)if(De=kt[Yt],wt=K?Ct[De.materialIndex]:Ct,wt!==void 0){if($t=ot[De.a],ee=ot[De.b],Me=ot[De.c],wt.morphTargets===!0){be=gt.morphTargets;var ae=this.morphTargetInfluences;l.set(0,0,0),d.set(0,0,0),p.set(0,0,0);for(var We=0,Qe=be.length;We<Qe;We++){var fi=ae[We];if(fi!==0){var An=be[We].vertices;l.addScaledVector(_.subVectors(An[De.a],$t),fi),d.addScaledVector(M.subVectors(An[De.b],ee),fi),p.addScaledVector(A.subVectors(An[De.c],Me),fi)}}l.add($t),d.add(ee),p.add(Me),$t=l,ee=d,Me=p}(wt=t(this,wt,rt,n,$t,ee,Me,q))&&(Vt&&Vt[Yt]&&(be=Vt[Yt],L.copy(be[0]),B.copy(be[1]),H.copy(be[2]),wt.uv=Oe.getUV(q,$t,ee,Me,L,B,H,new o)),wt.face=De,wt.faceIndex=Yt,xt.push(wt))}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),z.prototype=Object.create(g.prototype),z.prototype.constructor=z,z.prototype.isCubeTexture=!0,Object.defineProperty(z.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),Q.prototype=Object.create(g.prototype),Q.prototype.constructor=Q,Q.prototype.isDataTexture3D=!0;var Yh=new g,$c=new Q,Bu=new z,ah=[],Ra=[],Ml=new Float32Array(16),Nu=new Float32Array(9),Zh=new Float32Array(4);sa.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),vt(e,t)},$a.prototype.setValue=function(t,e,i){for(var n=this.seq,s=0,l=n.length;s!==l;++s){var d=n[s];d.setValue(t,e[d.id],i)}};var Jh=/([\w\d_]+)(\])?(\[|\.)?/g;uo.prototype.setValue=function(t,e,i){e=this.map[e],e!==void 0&&e.setValue(t,i,this.renderer)},uo.prototype.setOptional=function(t,e,i){e=e[i],e!==void 0&&this.setValue(t,i,e)},uo.upload=function(t,e,i,n){for(var s=0,l=e.length;s!==l;++s){var d=e[s],p=i[d.id];p.needsUpdate!==!1&&d.setValue(t,p.value,n)}},uo.seqWithValue=function(t,e){for(var i=[],n=0,s=t.length;n!==s;++n){var l=t[n];l.id in e&&i.push(l)}return i};var No=0,$h=0;se.prototype=Object.create(Wt.prototype),se.prototype.constructor=se,se.prototype.isMeshDepthMaterial=!0,se.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},te.prototype=Object.create(Wt.prototype),te.prototype.constructor=te,te.prototype.isMeshDistanceMaterial=!0,te.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},ci.prototype=Object.assign(Object.create(N.prototype),{constructor:ci,isGroup:!0}),Be.prototype=Object.assign(Object.create(N.prototype),{constructor:Be,isCamera:!0,copy:function(t,e){return N.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){t===void 0&&(t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){N.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),_e.prototype=Object.assign(Object.create(Be.prototype),{constructor:_e,isPerspectiveCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*di.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*di.DEG2RAD*this.fov);return .5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*di.RAD2DEG*Math.atan(Math.tan(.5*di.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,s,l){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=l,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*di.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,s=-.5*n,l=this.view;if(this.view!==null&&this.view.enabled){var d=l.fullWidth,p=l.fullHeight;s+=l.offsetX*n/d,e-=l.offsetY*i/p,n*=l.width/d,i*=l.height/p}l=this.filmOffset,l!==0&&(s+=t*l/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Fe.prototype=Object.assign(Object.create(_e.prototype),{constructor:Fe,isArrayCamera:!0});var hs=new u,Mr=new u;Re.prototype.isFogExp2=!0,Re.prototype.clone=function(){return new Re(this.color,this.density)},Re.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},En.prototype.isFog=!0,En.prototype.clone=function(){return new En(this.color,this.near,this.far)},En.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},qn.prototype=Object.assign(Object.create(N.prototype),{constructor:qn,copy:function(t,e){return N.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=N.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(ki.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(ki.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(var n=0,s=this.stride;n<s;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(Bi.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(Bi.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=s,this}}),Hi.prototype=Object.create(Wt.prototype),Hi.prototype.constructor=Hi,Hi.prototype.isSpriteMaterial=!0,Hi.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};var Oa;nn.prototype=Object.assign(Object.create(N.prototype),{constructor:nn,isSprite:!0,raycast:function(){function t(H,q,$,rt,xt,gt){s.subVectors(H,$).addScalar(.5).multiply(rt),xt!==void 0?(l.x=gt*s.x-xt*s.y,l.y=xt*s.x+gt*s.y):l.copy(s),H.copy(q),H.x+=l.x,H.y+=l.y,H.applyMatrix4(d)}var e=new u,i=new u,n=new u,s=new o,l=new o,d=new c,p=new u,_=new u,M=new u,A=new o,L=new o,B=new o;return function(H,q){i.setFromMatrixScale(this.matrixWorld),d.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var $=this.material.rotation;if($!==0)var rt=Math.cos($),xt=Math.sin($);$=this.center,t(p.set(-.5,-.5,0),n,$,i,xt,rt),t(_.set(.5,-.5,0),n,$,i,xt,rt),t(M.set(.5,.5,0),n,$,i,xt,rt),A.set(0,0),L.set(1,0),B.set(1,1);var gt=H.ray.intersectTriangle(p,_,M,!1,e);gt===null&&(t(_.set(-.5,.5,0),n,$,i,xt,rt),L.set(0,1),gt=H.ray.intersectTriangle(p,M,_,!1,e),gt===null)||(xt=H.ray.origin.distanceTo(e),xt<H.near||xt>H.far||q.push({distance:xt,point:e.clone(),uv:Oe.getUV(e,p,_,M,A,L,B,new o),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return N.prototype.copy.call(this,t),t.center!==void 0&&this.center.copy(t.center),this}}),rn.prototype=Object.assign(Object.create(N.prototype),{constructor:rn,copy:function(t){N.prototype.copy.call(this,t,!1),t=t.levels;for(var e=0,i=t.length;e<i;e++){var n=t[e];this.addLevel(n.object.clone(),n.distance)}return this},addLevel:function(t,e){e===void 0&&(e=0),e=Math.abs(e);for(var i=this.levels,n=0;n<i.length&&!(e<i[n].distance);n++);i.splice(n,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object},raycast:function(){var t=new u;return function(e,i){t.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(t);this.getObjectForDistance(n).raycast(e,i)}}(),update:function(){var t=new u,e=new u;return function(i){var n=this.levels;if(1<n.length){t.setFromMatrixPosition(i.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),i=t.distanceTo(e),n[0].object.visible=!0;for(var s=1,l=n.length;s<l&&i>=n[s].distance;s++)n[s-1].object.visible=!1,n[s].object.visible=!0;for(;s<l;s++)n[s].object.visible=!1}}}(),toJSON:function(t){t=N.prototype.toJSON.call(this,t),t.object.levels=[];for(var e=this.levels,i=0,n=e.length;i<n;i++){var s=e[i];t.object.levels.push({object:s.object.uuid,distance:s.distance})}return t}}),Object.assign(cn.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var i=new c;this.bones[t]&&i.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(i)}},pose:function(){var t,e,i=0;for(e=this.bones.length;i<e;i++)(t=this.bones[i])&&t.matrixWorld.getInverse(this.boneInverses[i]);for(i=0,e=this.bones.length;i<e;i++)(t=this.bones[i])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new c,e=new c;return function(){for(var i=this.bones,n=this.boneInverses,s=this.boneMatrices,l=this.boneTexture,d=0,p=i.length;d<p;d++)t.multiplyMatrices(i[d]?i[d].matrixWorld:e,n[d]),t.toArray(s,16*d);l!==void 0&&(l.needsUpdate=!0)}}(),clone:function(){return new cn(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,i=this.bones.length;e<i;e++){var n=this.bones[e];if(n.name===t)return n}}}),fn.prototype=Object.assign(Object.create(N.prototype),{constructor:fn,isBone:!0}),Gi.prototype=Object.assign(Object.create(pi.prototype),{constructor:Gi,isSkinnedMesh:!0,initBones:function(){var t=[],e;if(this.geometry&&this.geometry.bones!==void 0){var i=0;for(e=this.geometry.bones.length;i<e;i++){var n=this.geometry.bones[i],s=new fn;t.push(s),s.name=n.name,s.position.fromArray(n.pos),s.quaternion.fromArray(n.rotq),n.scl!==void 0&&s.scale.fromArray(n.scl)}for(i=0,e=this.geometry.bones.length;i<e;i++)n=this.geometry.bones[i],n.parent!==-1&&n.parent!==null&&t[n.parent]!==void 0?t[n.parent].add(t[i]):this.add(t[i])}return this.updateMatrixWorld(!0),t},bind:function(t,e){this.skeleton=t,e===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new v;var n=this.geometry.attributes.skinWeight;for(t=0;t<n.count;t++)e.x=n.getX(t),e.y=n.getY(t),e.z=n.getZ(t),e.w=n.getW(t),i=1/e.manhattanLength(),i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),n.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){pi.prototype.updateMatrixWorld.call(this,t),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"&&this.bindMatrixInverse.getInverse(this.bindMatrix)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Ni.prototype=Object.create(Wt.prototype),Ni.prototype.constructor=Ni,Ni.prototype.isLineBasicMaterial=!0,Ni.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},ji.prototype=Object.assign(Object.create(N.prototype),{constructor:ji,isLine:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry){if(i.index===null){for(var n=i.attributes.position,s=[0],l=1,d=n.count;l<d;l++)t.fromBufferAttribute(n,l-1),e.fromBufferAttribute(n,l),s[l]=s[l-1],s[l]+=t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}}else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,s[0]=0,l=1,d=n.length;l<d;l++)s[l]=s[l-1],s[l]+=n[l-1].distanceTo(n[l]);return this}}(),raycast:function(){var t=new c,e=new Si,i=new R;return function(n,s){var l=n.linePrecision,d=this.geometry,p=this.matrixWorld;if(d.boundingSphere===null&&d.computeBoundingSphere(),i.copy(d.boundingSphere),i.applyMatrix4(p),i.radius+=l,n.ray.intersectsSphere(i)!==!1){t.getInverse(p),e.copy(n.ray).applyMatrix4(t),l/=(this.scale.x+this.scale.y+this.scale.z)/3,l*=l;var _=new u,M=new u;p=new u;var A=new u,L=this&&this.isLineSegments?2:1;if(d.isBufferGeometry){var B=d.index,H=d.attributes.position.array;if(B!==null){B=B.array,d=0;for(var q=B.length-1;d<q;d+=L){var $=B[d+1];_.fromArray(H,3*B[d]),M.fromArray(H,3*$),$=e.distanceSqToSegment(_,M,A,p),$>l||(A.applyMatrix4(this.matrixWorld),$=n.ray.origin.distanceTo(A),$<n.near||$>n.far||s.push({distance:$,point:p.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}}else for(d=0,q=H.length/3-1;d<q;d+=L)_.fromArray(H,3*d),M.fromArray(H,3*d+3),$=e.distanceSqToSegment(_,M,A,p),$>l||(A.applyMatrix4(this.matrixWorld),$=n.ray.origin.distanceTo(A),$<n.near||$>n.far||s.push({distance:$,point:p.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}else if(d.isGeometry)for(_=d.vertices,M=_.length,d=0;d<M-1;d+=L)$=e.distanceSqToSegment(_[d],_[d+1],A,p),$>l||(A.applyMatrix4(this.matrixWorld),$=n.ray.origin.distanceTo(A),$<n.near||$>n.far||s.push({distance:$,point:p.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}}}(),copy:function(t){return N.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return new this.constructor().copy(this)}}),gi.prototype=Object.assign(Object.create(ji.prototype),{constructor:gi,isLineSegments:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry){if(i.index===null){for(var n=i.attributes.position,s=[],l=0,d=n.count;l<d;l+=2)t.fromBufferAttribute(n,l),e.fromBufferAttribute(n,l+1),s[l]=l===0?0:s[l-1],s[l+1]=s[l]+t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}}else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,l=0,d=n.length;l<d;l+=2)t.copy(n[l]),e.copy(n[l+1]),s[l]=l===0?0:s[l-1],s[l+1]=s[l]+t.distanceTo(e);return this}}()}),fo.prototype=Object.assign(Object.create(ji.prototype),{constructor:fo,isLineLoop:!0}),Un.prototype=Object.create(Wt.prototype),Un.prototype.constructor=Un,Un.prototype.isPointsMaterial=!0,Un.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},ha.prototype=Object.assign(Object.create(N.prototype),{constructor:ha,isPoints:!0,raycast:function(){var t=new c,e=new Si,i=new R;return function(n,s){function l(rt,xt){var gt=e.distanceSqToPoint(rt);gt<A&&(e.closestPointToPoint(rt,L),L.applyMatrix4(_),rt=n.ray.origin.distanceTo(L),rt<n.near||rt>n.far||s.push({distance:rt,distanceToRay:Math.sqrt(gt),point:L.clone(),index:xt,face:null,object:d}))}var d=this,p=this.geometry,_=this.matrixWorld,M=n.params.Points.threshold;if(p.boundingSphere===null&&p.computeBoundingSphere(),i.copy(p.boundingSphere),i.applyMatrix4(_),i.radius+=M,n.ray.intersectsSphere(i)!==!1){t.getInverse(_),e.copy(n.ray).applyMatrix4(t),M/=(this.scale.x+this.scale.y+this.scale.z)/3;var A=M*M;M=new u;var L=new u;if(p.isBufferGeometry){var B=p.index;if(p=p.attributes.position.array,B!==null){var H=B.array;B=0;for(var q=H.length;B<q;B++){var $=H[B];M.fromArray(p,3*$),l(M,$)}}else for(B=0,H=p.length/3;B<H;B++)M.fromArray(p,3*B),l(M,B)}else for(M=p.vertices,B=0,H=M.length;B<H;B++)l(M[B],B)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),kh.prototype=Object.assign(Object.create(g.prototype),{constructor:kh,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),Jo.prototype=Object.create(g.prototype),Jo.prototype.constructor=Jo,Jo.prototype.isCompressedTexture=!0,Ka.prototype=Object.create(g.prototype),Ka.prototype.constructor=Ka,Ka.prototype.isCanvasTexture=!0,Qa.prototype=Object.create(g.prototype),Qa.prototype.constructor=Qa,Qa.prototype.isDepthTexture=!0,ua.prototype=Object.create(Ft.prototype),ua.prototype.constructor=ua,tl.prototype=Object.create(X.prototype),tl.prototype.constructor=tl,ca.prototype=Object.create(Ft.prototype),ca.prototype.constructor=ca,Xi.prototype=Object.create(X.prototype),Xi.prototype.constructor=Xi,xi.prototype=Object.create(Ft.prototype),xi.prototype.constructor=xi,el.prototype=Object.create(X.prototype),el.prototype.constructor=el,fa.prototype=Object.create(xi.prototype),fa.prototype.constructor=fa,il.prototype=Object.create(X.prototype),il.prototype.constructor=il,ws.prototype=Object.create(xi.prototype),ws.prototype.constructor=ws,nl.prototype=Object.create(X.prototype),nl.prototype.constructor=nl,da.prototype=Object.create(xi.prototype),da.prototype.constructor=da,pa.prototype=Object.create(X.prototype),pa.prototype.constructor=pa,ma.prototype=Object.create(xi.prototype),ma.prototype.constructor=ma,vn.prototype=Object.create(X.prototype),vn.prototype.constructor=vn,$o.prototype=Object.create(Ft.prototype),$o.prototype.constructor=$o,Jr.prototype=Object.create(X.prototype),Jr.prototype.constructor=Jr,Ms.prototype=Object.create(Ft.prototype),Ms.prototype.constructor=Ms,Ts.prototype=Object.create(X.prototype),Ts.prototype.constructor=Ts,Gn.prototype=Object.create(Ft.prototype),Gn.prototype.constructor=Gn;var Fu={triangulate:function(t,e,i){i=i||2;var n=e&&e.length,s=n?e[0]*i:t.length,l=Bh(t,0,s,i,!0),d=[];if(!l)return d;var p;if(n){var _=i;n=[];var M,A=0;for(M=e.length;A<M;A++){var L=e[A]*_,B=A<M-1?e[A+1]*_:t.length;L=Bh(t,L,B,_,!1),L===L.next&&(L.steiner=!0),n.push(_r(L))}for(n.sort(Eu),A=0;A<n.length;A++)e=n[A],_=l,(_=bu(e,_))&&(e=rl(_,e),ga(e,e.next)),l=ga(l,l.next)}if(t.length>80*i){var H=p=t[0],q=n=t[1];for(_=i;_<s;_+=i)A=t[_],e=t[_+1],A<H&&(H=A),e<q&&(q=e),A>p&&(p=A),e>n&&(n=e);p=Math.max(p-H,n-q),p=p!==0?1/p:0}return va(l,d,i,H,q,p),d}},To={area:function(t){for(var e=t.length,i=0,n=e-1,s=0;s<e;n=s++)i+=t[n].x*t[s].y-t[s].x*t[n].y;return .5*i},isClockWise:function(t){return 0>To.area(t)},triangulateShape:function(t,e){var i=[],n=[],s=[];$l(t),Cu(i,t);var l=t.length;for(e.forEach($l),t=0;t<e.length;t++)n.push(l),l+=e[t].length,Cu(i,e[t]);for(e=Fu.triangulate(i,n),t=0;t<e.length;t+=3)s.push(e.slice(t,t+3));return s}};Lo.prototype=Object.create(X.prototype),Lo.prototype.constructor=Lo,Lo.prototype.toJSON=function(){var t=X.prototype.toJSON.call(this);return Au(this.parameters.shapes,this.parameters.options,t)},mo.prototype=Object.create(Ft.prototype),mo.prototype.constructor=mo,mo.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Au(this.parameters.shapes,this.parameters.options,t)};var Tl={generateTopUV:function(t,e,i,n,s){t=e[3*n],n=e[3*n+1];var l=e[3*s];return s=e[3*s+1],[new o(e[3*i],e[3*i+1]),new o(t,n),new o(l,s)]},generateSideWallUV:function(t,e,i,n,s,l){t=e[3*i];var d=e[3*i+1];i=e[3*i+2];var p=e[3*n],_=e[3*n+1];n=e[3*n+2];var M=e[3*s],A=e[3*s+1];s=e[3*s+2];var L=e[3*l],B=e[3*l+1];return e=e[3*l+2],.01>Math.abs(d-_)?[new o(t,1-i),new o(p,1-n),new o(M,1-s),new o(L,1-e)]:[new o(d,1-i),new o(_,1-n),new o(A,1-s),new o(B,1-e)]}};ol.prototype=Object.create(X.prototype),ol.prototype.constructor=ol,Es.prototype=Object.create(mo.prototype),Es.prototype.constructor=Es,Ko.prototype=Object.create(X.prototype),Ko.prototype.constructor=Ko,Ir.prototype=Object.create(Ft.prototype),Ir.prototype.constructor=Ir,sl.prototype=Object.create(X.prototype),sl.prototype.constructor=sl,bs.prototype=Object.create(Ft.prototype),bs.prototype.constructor=bs,ya.prototype=Object.create(X.prototype),ya.prototype.constructor=ya,Qo.prototype=Object.create(Ft.prototype),Qo.prototype.constructor=Qo,Ro.prototype=Object.create(X.prototype),Ro.prototype.constructor=Ro,Ro.prototype.toJSON=function(){var t=X.prototype.toJSON.call(this);return Pu(this.parameters.shapes,t)},ts.prototype=Object.create(Ft.prototype),ts.prototype.constructor=ts,ts.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Pu(this.parameters.shapes,t)},es.prototype=Object.create(Ft.prototype),es.prototype.constructor=es,Oo.prototype=Object.create(X.prototype),Oo.prototype.constructor=Oo,Io.prototype=Object.create(Ft.prototype),Io.prototype.constructor=Io,_a.prototype=Object.create(Oo.prototype),_a.prototype.constructor=_a,Hn.prototype=Object.create(Io.prototype),Hn.prototype.constructor=Hn,Cs.prototype=Object.create(X.prototype),Cs.prototype.constructor=Cs,go.prototype=Object.create(Ft.prototype),go.prototype.constructor=go;var _n=Object.freeze({WireframeGeometry:ua,ParametricGeometry:tl,ParametricBufferGeometry:ca,TetrahedronGeometry:el,TetrahedronBufferGeometry:fa,OctahedronGeometry:il,OctahedronBufferGeometry:ws,IcosahedronGeometry:nl,IcosahedronBufferGeometry:da,DodecahedronGeometry:pa,DodecahedronBufferGeometry:ma,PolyhedronGeometry:Xi,PolyhedronBufferGeometry:xi,TubeGeometry:vn,TubeBufferGeometry:$o,TorusKnotGeometry:Jr,TorusKnotBufferGeometry:Ms,TorusGeometry:Ts,TorusBufferGeometry:Gn,TextGeometry:ol,TextBufferGeometry:Es,SphereGeometry:Ko,SphereBufferGeometry:Ir,RingGeometry:sl,RingBufferGeometry:bs,PlaneGeometry:Pe,PlaneBufferGeometry:pe,LatheGeometry:ya,LatheBufferGeometry:Qo,ShapeGeometry:Ro,ShapeBufferGeometry:ts,ExtrudeGeometry:Lo,ExtrudeBufferGeometry:mo,EdgesGeometry:es,ConeGeometry:_a,ConeBufferGeometry:Hn,CylinderGeometry:Oo,CylinderBufferGeometry:Io,CircleGeometry:Cs,CircleBufferGeometry:go,BoxGeometry:It,BoxBufferGeometry:Nt});is.prototype=Object.create(Wt.prototype),is.prototype.constructor=is,is.prototype.isShadowMaterial=!0,is.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this},As.prototype=Object.create($e.prototype),As.prototype.constructor=As,As.prototype.isRawShaderMaterial=!0,vo.prototype=Object.create(Wt.prototype),vo.prototype.constructor=vo,vo.prototype.isMeshStandardMaterial=!0,vo.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ps.prototype=Object.create(vo.prototype),Ps.prototype.constructor=Ps,Ps.prototype.isMeshPhysicalMaterial=!0,Ps.prototype.copy=function(t){return vo.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},$r.prototype=Object.create(Wt.prototype),$r.prototype.constructor=$r,$r.prototype.isMeshPhongMaterial=!0,$r.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ls.prototype=Object.create($r.prototype),Ls.prototype.constructor=Ls,Ls.prototype.isMeshToonMaterial=!0,Ls.prototype.copy=function(t){return $r.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},Rs.prototype=Object.create(Wt.prototype),Rs.prototype.constructor=Rs,Rs.prototype.isMeshNormalMaterial=!0,Rs.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Dr.prototype=Object.create(Wt.prototype),Dr.prototype.constructor=Dr,Dr.prototype.isMeshLambertMaterial=!0,Dr.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Os.prototype=Object.create(Wt.prototype),Os.prototype.constructor=Os,Os.prototype.isMeshMatcapMaterial=!0,Os.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Is.prototype=Object.create(Ni.prototype),Is.prototype.constructor=Is,Is.prototype.isLineDashedMaterial=!0,Is.prototype.copy=function(t){return Ni.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var Uu=Object.freeze({ShadowMaterial:is,SpriteMaterial:Hi,RawShaderMaterial:As,ShaderMaterial:$e,PointsMaterial:Un,MeshPhysicalMaterial:Ps,MeshStandardMaterial:vo,MeshPhongMaterial:$r,MeshToonMaterial:Ls,MeshNormalMaterial:Rs,MeshLambertMaterial:Dr,MeshDepthMaterial:se,MeshDistanceMaterial:te,MeshBasicMaterial:Ge,MeshMatcapMaterial:Os,LineDashedMaterial:Is,LineBasicMaterial:Ni,Material:Wt}),Zn={arraySlice:function(t,e,i){return Zn.isTypedArray(t)?new t.constructor(t.subarray(e,i!==void 0?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,i=Array(e),n=0;n!==e;++n)i[n]=n;return i.sort(function(s,l){return t[s]-t[l]}),i},sortedArray:function(t,e,i){for(var n=t.length,s=new t.constructor(n),l=0,d=0;d!==n;++l)for(var p=i[l]*e,_=0;_!==e;++_)s[d++]=t[p+_];return s},flattenJSON:function(t,e,i,n){for(var s=1,l=t[0];l!==void 0&&l[n]===void 0;)l=t[s++];if(l!==void 0){var d=l[n];if(d!==void 0)if(Array.isArray(d))do d=l[n],d!==void 0&&(e.push(l.time),i.push.apply(i,d)),l=t[s++];while(l!==void 0);else if(d.toArray!==void 0)do d=l[n],d!==void 0&&(e.push(l.time),d.toArray(i,i.length)),l=t[s++];while(l!==void 0);else do d=l[n],d!==void 0&&(e.push(l.time),i.push(d)),l=t[s++];while(l!==void 0)}}};Object.assign(Kn.prototype,{evaluate:function(t){var e=this.parameterPositions,i=this._cachedIndex,n=e[i],s=e[i-1];t:{e:{i:{n:if(!(t<n)){for(var l=i+2;;){if(n===void 0){if(t<s)break n;return this._cachedIndex=i=e.length,this.afterEnd_(i-1,t,s)}if(i===l)break;if(s=n,n=e[++i],t<n)break e}n=e.length;break i}if(t>=s)break t;for(l=e[1],t<l&&(i=2,s=l),l=i-2;;){if(s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===l)break;if(n=s,s=e[--i-1],t>=s)break e}n=i,i=0}for(;i<n;)s=i+n>>>1,t<e[s]?n=s:i=s+1;if(n=e[i],s=e[i-1],s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(n===void 0)return this._cachedIndex=i=e.length,this.afterEnd_(i-1,s,t)}this._cachedIndex=i,this.intervalChanged_(i,s,n)}return this.interpolate_(i,s,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,i=this.sampleValues,n=this.valueSize;t*=n;for(var s=0;s!==n;++s)e[s]=i[t+s];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(Kn.prototype,{beforeStart_:Kn.prototype.copySampleValue_,afterEnd_:Kn.prototype.copySampleValue_}),al.prototype=Object.assign(Object.create(Kn.prototype),{constructor:al,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,i){var n=this.parameterPositions,s=t-2,l=t+1,d=n[s],p=n[l];if(d===void 0)switch(this.getSettings_().endingStart){case 2401:s=t,d=2*e-i;break;case 2402:s=n.length-2,d=e+n[s]-n[s+1];break;default:s=t,d=i}if(p===void 0)switch(this.getSettings_().endingEnd){case 2401:l=t,p=2*i-e;break;case 2402:l=1,p=i+n[1]-n[0];break;default:l=t-1,p=e}t=.5*(i-e),n=this.valueSize,this._weightPrev=t/(e-d),this._weightNext=t/(p-i),this._offsetPrev=s*n,this._offsetNext=l*n},interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,d=this.valueSize;t*=d;var p=t-d,_=this._offsetPrev,M=this._offsetNext,A=this._weightPrev,L=this._weightNext,B=(i-e)/(n-e);for(i=B*B,n=i*B,e=-A*n+2*A*i-A*B,A=(1+A)*n+(-1.5-2*A)*i+(-.5+A)*B+1,B=(-1-L)*n+(1.5+L)*i+.5*B,L=L*n-L*i,i=0;i!==d;++i)s[i]=e*l[_+i]+A*l[p+i]+B*l[t+i]+L*l[M+i];return s}}),zr.prototype=Object.assign(Object.create(Kn.prototype),{constructor:zr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,d=this.valueSize;t*=d;var p=t-d;for(e=(i-e)/(n-e),i=1-e,n=0;n!==d;++n)s[n]=l[p+n]*i+l[t+n]*e;return s}}),Ds.prototype=Object.assign(Object.create(Kn.prototype),{constructor:Ds,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Vn,{toJSON:function(t){var e=t.constructor;if(e.toJSON!==void 0)e=e.toJSON(t);else{e={name:t.name,times:Zn.convertArray(t.times,Array),values:Zn.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(Vn.prototype,{constructor:Vn,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new Ds(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new zr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new al(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(e===void 0){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(e);return this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(t!==0)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(t!==1)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,s=0,l=n-1;s!==n&&i[s]<t;)++s;for(;l!==-1&&i[l]>e;)--l;return++l,(s!==0||l!==n)&&(s>=l&&(l=Math.max(l,1),s=l-1),t=this.getValueSize(),this.times=Zn.arraySlice(i,s,l),this.values=Zn.arraySlice(this.values,s*t,l*t)),this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!==0&&(t=!1);var i=this.times;e=this.values;var n=i.length;n===0&&(t=!1);for(var s=null,l=0;l!==n;l++){var d=i[l];if(typeof d=="number"&&isNaN(d)){t=!1;break}if(s!==null&&s>d){t=!1;break}s=d}if(e!==void 0&&Zn.isTypedArray(e)){for(l=0,i=e.length;l!==i;++l)if(n=e[l],isNaN(n)){t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===2302,s=1,l=t.length-1,d=1;d<l;++d){var p=!1,_=t[d];if(_!==t[d+1]&&(d!==1||_!==_[0]))if(n)p=!0;else{var M=d*i,A=M-i,L=M+i;for(_=0;_!==i;++_){var B=e[M+_];if(B!==e[A+_]||B!==e[L+_]){p=!0;break}}}if(p){if(d!==s)for(t[s]=t[d],p=d*i,M=s*i,_=0;_!==i;++_)e[M+_]=e[p+_];++s}}if(0<l){for(t[s]=t[l],p=l*i,M=s*i,_=0;_!==i;++_)e[M+_]=e[p+_];++s}return s!==t.length&&(this.times=Zn.arraySlice(t,0,s),this.values=Zn.arraySlice(e,0,s*i)),this}}),Kl.prototype=Object.assign(Object.create(Vn.prototype),{constructor:Kl,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Ql.prototype=Object.assign(Object.create(Vn.prototype),{constructor:Ql,ValueTypeName:"color"}),Kr.prototype=Object.assign(Object.create(Vn.prototype),{constructor:Kr,ValueTypeName:"number"}),lr.prototype=Object.assign(Object.create(Kn.prototype),{constructor:lr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,d=this.valueSize;for(t*=d,e=(i-e)/(n-e),i=t+d;t!==i;t+=4)f.slerpFlat(s,0,l,t-d,l,t,e);return s}}),xa.prototype=Object.assign(Object.create(Vn.prototype),{constructor:xa,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new lr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),th.prototype=Object.assign(Object.create(Vn.prototype),{constructor:th,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),wa.prototype=Object.assign(Object.create(Vn.prototype),{constructor:wa,ValueTypeName:"vector"}),Object.assign(xr,{parse:function(t){for(var e=[],i=t.tracks,n=1/(t.fps||1),s=0,l=i.length;s!==l;++s)e.push(qc(i[s]).scale(n));return new xr(t.name,t.duration,e)},toJSON:function(t){var e=[],i=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var n=0,s=i.length;n!==s;++n)e.push(Vn.toJSON(i[n]));return t},CreateFromMorphTargetSequence:function(t,e,i,n){for(var s=e.length,l=[],d=0;d<s;d++){var p=[],_=[];p.push((d+s-1)%s,d,(d+1)%s),_.push(0,1,0);var M=Zn.getKeyframeOrder(p);p=Zn.sortedArray(p,1,M),_=Zn.sortedArray(_,1,M),n||p[0]!==0||(p.push(s),_.push(_[0])),l.push(new Kr(".morphTargetInfluences["+e[d].name+"]",p,_).scale(1/i))}return new xr(t,-1,l)},findByName:function(t,e){var i=t;for(Array.isArray(t)||(i=t.geometry&&t.geometry.animations||t.animations),t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){for(var n={},s=/^([\w-]*?)([\d]+)$/,l=0,d=t.length;l<d;l++){var p=t[l],_=p.name.match(s);if(_&&1<_.length){var M=_[1];(_=n[M])||(n[M]=_=[]),_.push(p)}}t=[];for(M in n)t.push(xr.CreateFromMorphTargetSequence(M,n[M],e,i));return t},parseAnimation:function(t,e){if(!t)return null;var i=function($,rt,xt,gt,Ct){if(xt.length!==0){var wt=[],Vt=[];Zn.flattenJSON(xt,wt,Vt,gt),wt.length!==0&&Ct.push(new $(rt,wt,Vt))}},n=[],s=t.name||"default",l=t.length||-1,d=t.fps||30;t=t.hierarchy||[];for(var p=0;p<t.length;p++){var _=t[p].keys;if(_&&_.length!==0)if(_[0].morphTargets){l={};for(var M=0;M<_.length;M++)if(_[M].morphTargets)for(var A=0;A<_[M].morphTargets.length;A++)l[_[M].morphTargets[A]]=-1;for(var L in l){var B=[],H=[];for(A=0;A!==_[M].morphTargets.length;++A){var q=_[M];B.push(q.time),H.push(q.morphTarget===L?1:0)}n.push(new Kr(".morphTargetInfluence["+L+"]",B,H))}l=l.length*(d||1)}else M=".bones["+e[p].name+"]",i(wa,M+".position",_,"pos",n),i(xa,M+".quaternion",_,"rot",n),i(wa,M+".scale",_,"scl",n)}return n.length===0?null:new xr(s,l,n)}}),Object.assign(xr.prototype,{resetDuration:function(){for(var t=0,e=0,i=this.tracks.length;e!==i;++e){var n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}});var So={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},er=new ns,Nr={};Object.assign(Lt.prototype,{load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,l=So.get(t);if(l!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(l),s.manager.itemEnd(t)},0),l;if(Nr[t]!==void 0)Nr[t].push({onLoad:e,onProgress:i,onError:n});else{var d=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(d){i=d[1];var p=!!d[2];d=d[3],d=decodeURIComponent(d),p&&(d=atob(d));try{var _=(this.responseType||"").toLowerCase();switch(_){case"arraybuffer":case"blob":var M=new Uint8Array(d.length);for(p=0;p<d.length;p++)M[p]=d.charCodeAt(p);var A=_==="blob"?new Blob([M.buffer],{type:i}):M.buffer;break;case"document":A=new DOMParser().parseFromString(d,i);break;case"json":A=JSON.parse(d);break;default:A=d}setTimeout(function(){e&&e(A),s.manager.itemEnd(t)},0)}catch(B){setTimeout(function(){n&&n(B),s.manager.itemError(t),s.manager.itemEnd(t)},0)}}else{Nr[t]=[],Nr[t].push({onLoad:e,onProgress:i,onError:n});var L=new XMLHttpRequest;L.open("GET",t,!0),L.addEventListener("load",function(B){var H=this.response;So.add(t,H);var q=Nr[t];if(delete Nr[t],this.status===200||this.status===0){this.status;for(var $=0,rt=q.length;$<rt;$++){var xt=q[$];xt.onLoad&&xt.onLoad(H)}}else{for($=0,rt=q.length;$<rt;$++)xt=q[$],xt.onError&&xt.onError(B);s.manager.itemError(t)}s.manager.itemEnd(t)},!1),L.addEventListener("progress",function(B){for(var H=Nr[t],q=0,$=H.length;q<$;q++){var rt=H[q];rt.onProgress&&rt.onProgress(B)}},!1),L.addEventListener("error",function(B){var H=Nr[t];delete Nr[t];for(var q=0,$=H.length;q<$;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),L.addEventListener("abort",function(B){var H=Nr[t];delete Nr[t];for(var q=0,$=H.length;q<$;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),this.responseType!==void 0&&(L.responseType=this.responseType),this.withCredentials!==void 0&&(L.withCredentials=this.withCredentials),L.overrideMimeType&&L.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain");for(p in this.requestHeader)L.setRequestHeader(p,this.requestHeader[p]);L.send(null)}return s.manager.itemStart(t),L}},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Qt.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(d){e(s.parse(JSON.parse(d)))},i,n)},parse:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=xr.parse(t[n]);i.push(s)}e(i)},setPath:function(t){return this.path=t,this}}),Object.assign(Zt.prototype,{load:function(t,e,i,n){function s(B){_.load(t[B],function(H){H=l._parser(H,!0),d[B]={width:H.width,height:H.height,format:H.format,mipmaps:H.mipmaps},M+=1,M===6&&(H.mipmapCount===1&&(p.minFilter=1006),p.format=H.format,p.needsUpdate=!0,e&&e(p))},i,n)}var l=this,d=[],p=new Jo;p.image=d;var _=new Lt(this.manager);if(_.setPath(this.path),_.setResponseType("arraybuffer"),Array.isArray(t))for(var M=0,A=0,L=t.length;A<L;++A)s(A);else _.load(t,function(B){if(B=l._parser(B,!0),B.isCubemap)for(var H=B.mipmaps.length/B.mipmapCount,q=0;q<H;q++){d[q]={mipmaps:[]};for(var $=0;$<B.mipmapCount;$++)d[q].mipmaps.push(B.mipmaps[q*B.mipmapCount+$]),d[q].format=B.format,d[q].width=B.width,d[q].height=B.height}else p.image.width=B.width,p.image.height=B.height,p.mipmaps=B.mipmaps;B.mipmapCount===1&&(p.minFilter=1006),p.format=B.format,p.needsUpdate=!0,e&&e(p)},i,n);return p},setPath:function(t){return this.path=t,this}}),Object.assign(Ue.prototype,{load:function(t,e,i,n){var s=this,l=new O,d=new Lt(this.manager);return d.setResponseType("arraybuffer"),d.setPath(this.path),d.load(t,function(p){(p=s._parser(p))&&(p.image!==void 0?l.image=p.image:p.data!==void 0&&(l.image.width=p.width,l.image.height=p.height,l.image.data=p.data),l.wrapS=p.wrapS!==void 0?p.wrapS:1001,l.wrapT=p.wrapT!==void 0?p.wrapT:1001,l.magFilter=p.magFilter!==void 0?p.magFilter:1006,l.minFilter=p.minFilter!==void 0?p.minFilter:1008,l.anisotropy=p.anisotropy!==void 0?p.anisotropy:1,p.format!==void 0&&(l.format=p.format),p.type!==void 0&&(l.type=p.type),p.mipmaps!==void 0&&(l.mipmaps=p.mipmaps),p.mipmapCount===1&&(l.minFilter=1006),l.needsUpdate=!0,e&&e(l,p))},i,n),l},setPath:function(t){return this.path=t,this}}),Object.assign(ai.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(){_.removeEventListener("load",s,!1),_.removeEventListener("error",l,!1),So.add(t,this),e&&e(this),d.manager.itemEnd(t)}function l(M){_.removeEventListener("load",s,!1),_.removeEventListener("error",l,!1),n&&n(M),d.manager.itemError(t),d.manager.itemEnd(t)}t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var d=this,p=So.get(t);if(p!==void 0)return d.manager.itemStart(t),setTimeout(function(){e&&e(p),d.manager.itemEnd(t)},0),p;var _=document.createElementNS("http://www.w3.org/1999/xhtml","img");return _.addEventListener("load",s,!1),_.addEventListener("error",l,!1),t.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(_.crossOrigin=this.crossOrigin),d.manager.itemStart(t),_.src=t,_},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Fi.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(_){d.load(t[_],function(M){l.images[_]=M,p++,p===6&&(l.needsUpdate=!0,e&&e(l))},void 0,n)}var l=new z,d=new ai(this.manager);d.setCrossOrigin(this.crossOrigin),d.setPath(this.path);var p=0;for(i=0;i<t.length;++i)s(i);return l},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(dn.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=new g,l=new ai(this.manager);return l.setCrossOrigin(this.crossOrigin),l.setPath(this.path),l.load(t,function(d){s.image=d,d=0<t.search(/\.jpe?g$/i)||t.search(/^data:image\/jpeg/)===0,s.format=d?1022:1023,s.needsUpdate=!0,e!==void 0&&e(s)},i,n),s},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ee.prototype,{getPoint:function(){return null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t===void 0&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e=[],i=this.getPoint(0),n,s=0;for(e.push(0),n=1;n<=t;n++){var l=this.getPoint(n/t);s+=l.distanceTo(i),e.push(s),i=l}return this.cacheArcLengths=e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var i=this.getLengths(),n=i.length;e=e||t*i[n-1];for(var s=0,l=n-1,d;s<=l;)if(t=Math.floor(s+(l-s)/2),d=i[t]-e,0>d)s=t+1;else if(0<d)l=t-1;else{l=t;break}return t=l,i[t]===e?t/(n-1):(s=i[t],(t+(e-s)/(i[t+1]-s))/(n-1))},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var i=new u,n=[],s=[],l=[],d=new u,p=new c,_;for(_=0;_<=t;_++){var M=_/t;n[_]=this.getTangentAt(M),n[_].normalize()}s[0]=new u,l[0]=new u,_=Number.MAX_VALUE,M=Math.abs(n[0].x);var A=Math.abs(n[0].y),L=Math.abs(n[0].z);for(M<=_&&(_=M,i.set(1,0,0)),A<=_&&(_=A,i.set(0,1,0)),L<=_&&i.set(0,0,1),d.crossVectors(n[0],i).normalize(),s[0].crossVectors(n[0],d),l[0].crossVectors(n[0],s[0]),_=1;_<=t;_++)s[_]=s[_-1].clone(),l[_]=l[_-1].clone(),d.crossVectors(n[_-1],n[_]),d.length()>Number.EPSILON&&(d.normalize(),i=Math.acos(di.clamp(n[_-1].dot(n[_]),-1,1)),s[_].applyMatrix4(p.makeRotationAxis(d,i))),l[_].crossVectors(n[_],s[_]);if(e===!0)for(i=Math.acos(di.clamp(s[0].dot(s[t]),-1,1)),i/=t,0<n[0].dot(d.crossVectors(s[0],s[t]))&&(i=-i),_=1;_<=t;_++)s[_].applyMatrix4(p.makeRotationAxis(n[_],i*_)),l[_].crossVectors(n[_],s[_]);return{tangents:n,normals:s,binormals:l}},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Qn.prototype=Object.create(Ee.prototype),Qn.prototype.constructor=Qn,Qn.prototype.isEllipseCurve=!0,Qn.prototype.getPoint=function(t,e){e=e||new o;for(var i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,s=Math.abs(n)<Number.EPSILON;0>n;)n+=i;for(;n>i;)n-=i;n<Number.EPSILON&&(n=s?0:i),this.aClockwise!==!0||s||(n=n===i?-i:n-i),i=this.aStartAngle+t*n,t=this.aX+this.xRadius*Math.cos(i);var l=this.aY+this.yRadius*Math.sin(i);return this.aRotation!==0&&(i=Math.cos(this.aRotation),n=Math.sin(this.aRotation),s=t-this.aX,l-=this.aY,t=s*i-l*n+this.aX,l=s*n+l*i+this.aY),e.set(t,l)},Qn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Qn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Qn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Ma.prototype=Object.create(Qn.prototype),Ma.prototype.constructor=Ma,Ma.prototype.isArcCurve=!0;var Cn=new u,Sl=new hr,lh=new hr,Fr=new hr;In.prototype=Object.create(Ee.prototype),In.prototype.constructor=In,In.prototype.isCatmullRomCurve3=!0,In.prototype.getPoint=function(t,e){e=e||new u;var i=this.points,n=i.length;t*=n-(this.closed?0:1);var s=Math.floor(t);if(t-=s,this.closed?s+=0<s?0:(Math.floor(Math.abs(s)/n)+1)*n:t===0&&s===n-1&&(s=n-2,t=1),this.closed||0<s)var l=i[(s-1)%n];else Cn.subVectors(i[0],i[1]).add(i[0]),l=Cn;var d=i[s%n],p=i[(s+1)%n];if(this.closed||s+2<n?i=i[(s+2)%n]:(Cn.subVectors(i[n-1],i[n-2]).add(i[n-1]),i=Cn),this.curveType==="centripetal"||this.curveType==="chordal"){var _=this.curveType==="chordal"?.5:.25;n=Math.pow(l.distanceToSquared(d),_),s=Math.pow(d.distanceToSquared(p),_),_=Math.pow(p.distanceToSquared(i),_),1e-4>s&&(s=1),1e-4>n&&(n=s),1e-4>_&&(_=s),Sl.initNonuniformCatmullRom(l.x,d.x,p.x,i.x,n,s,_),lh.initNonuniformCatmullRom(l.y,d.y,p.y,i.y,n,s,_),Fr.initNonuniformCatmullRom(l.z,d.z,p.z,i.z,n,s,_)}else this.curveType==="catmullrom"&&(Sl.initCatmullRom(l.x,d.x,p.x,i.x,this.tension),lh.initCatmullRom(l.y,d.y,p.y,i.y,this.tension),Fr.initCatmullRom(l.z,d.z,p.z,i.z,this.tension));return e.set(Sl.calc(t),lh.calc(t),Fr.calc(t)),e},In.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},In.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},In.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new u().fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},ur.prototype=Object.create(Ee.prototype),ur.prototype.constructor=ur,ur.prototype.isCubicBezierCurve=!0,ur.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2,l=this.v3;return e.set(rs(t,i.x,n.x,s.x,l.x),rs(t,i.y,n.y,s.y,l.y)),e},ur.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},ur.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},ur.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Mi.prototype=Object.create(Ee.prototype),Mi.prototype.constructor=Mi,Mi.prototype.isCubicBezierCurve3=!0,Mi.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2,l=this.v3;return e.set(rs(t,i.x,n.x,s.x,l.x),rs(t,i.y,n.y,s.y,l.y),rs(t,i.z,n.z,s.z,l.z)),e},Mi.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Mi.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Mi.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},cr.prototype=Object.create(Ee.prototype),cr.prototype.constructor=cr,cr.prototype.isLineCurve=!0,cr.prototype.getPoint=function(t,e){return e=e||new o,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},cr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},cr.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},cr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},cr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},cr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},kr.prototype=Object.create(Ee.prototype),kr.prototype.constructor=kr,kr.prototype.isLineCurve3=!0,kr.prototype.getPoint=function(t,e){return e=e||new u,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},kr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},kr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},kr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},kr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},fr.prototype=Object.create(Ee.prototype),fr.prototype.constructor=fr,fr.prototype.isQuadraticBezierCurve=!0,fr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2;return e.set(yo(t,i.x,n.x,s.x),yo(t,i.y,n.y,s.y)),e},fr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},fr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},fr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},_o.prototype=Object.create(Ee.prototype),_o.prototype.constructor=_o,_o.prototype.isQuadraticBezierCurve3=!0,_o.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2;return e.set(yo(t,i.x,n.x,s.x),yo(t,i.y,n.y,s.y),yo(t,i.z,n.z,s.z)),e},_o.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},_o.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},_o.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Qr.prototype=Object.create(Ee.prototype),Qr.prototype.constructor=Qr,Qr.prototype.isSplineCurve=!0,Qr.prototype.getPoint=function(t,e){e=e||new o;var i=this.points,n=(i.length-1)*t;t=Math.floor(n),n-=t;var s=i[t===0?t:t-1],l=i[t],d=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(Lu(n,s.x,l.x,d.x,i.x),Lu(n,s.y,l.y,d.y,i.y)),e},Qr.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this},Qr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t},Qr.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new o().fromArray(n))}return this};var hh=Object.freeze({ArcCurve:Ma,CatmullRomCurve3:In,CubicBezierCurve:ur,CubicBezierCurve3:Mi,EllipseCurve:Qn,LineCurve:cr,LineCurve3:kr,QuadraticBezierCurve:fr,QuadraticBezierCurve3:_o,SplineCurve:Qr});Do.prototype=Object.assign(Object.create(Ee.prototype),{constructor:Do,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new cr(e,t))},getPoint:function(t){var e=t*this.getLength(),i=this.getCurveLengths();for(t=0;t<i.length;){if(i[t]>=e)return e=i[t]-e,t=this.curves[t],i=t.getLength(),t.getPointAt(i===0?0:1-e/i);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){t===void 0&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e=[],i,n=0,s=this.curves;n<s.length;n++){var l=s[n];l=l.getPoints(l&&l.isEllipseCurve?2*t:l&&(l.isLineCurve||l.isLineCurve3)?1:l&&l.isSplineCurve?t*l.points.length:t);for(var d=0;d<l.length;d++){var p=l[d];i&&i.equals(p)||(e.push(p),i=p)}}return this.autoClose&&1<e.length&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){Ee.prototype.copy.call(this,t),this.curves=[];for(var e=0,i=t.curves.length;e<i;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Ee.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,i=this.curves.length;e<i;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Ee.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,i=t.curves.length;e<i;e++){var n=t.curves[e];this.curves.push(new hh[n.type]().fromJSON(n))}return this}}),dr.prototype=Object.assign(Object.create(Do.prototype),{constructor:dr,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new cr(this.currentPoint.clone(),new o(t,e));this.curves.push(i),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,i,n){t=new fr(this.currentPoint.clone(),new o(t,e),new o(i,n)),this.curves.push(t),this.currentPoint.set(i,n)},bezierCurveTo:function(t,e,i,n,s,l){t=new ur(this.currentPoint.clone(),new o(t,e),new o(i,n),new o(s,l)),this.curves.push(t),this.currentPoint.set(s,l)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new Qr(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,i,n,s,l){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,l)},absarc:function(t,e,i,n,s,l){this.absellipse(t,e,i,i,n,s,l)},ellipse:function(t,e,i,n,s,l,d,p){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,l,d,p)},absellipse:function(t,e,i,n,s,l,d,p){t=new Qn(t,e,i,n,s,l,d,p),0<this.curves.length&&(e=t.getPoint(0),e.equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return Do.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=Do.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Do.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),tr.prototype=Object.assign(Object.create(dr.prototype),{constructor:tr,getPointsHoles:function(t){for(var e=[],i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){dr.prototype.copy.call(this,t),this.holes=[];for(var e=0,i=t.holes.length;e<i;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=dr.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,i=this.holes.length;e<i;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){dr.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,i=t.holes.length;e<i;e++){var n=t.holes[e];this.holes.push(new dr().fromJSON(n))}return this}}),tn.prototype=Object.assign(Object.create(N.prototype),{constructor:tn,isLight:!0,copy:function(t){return N.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}),ll.prototype=Object.assign(Object.create(tn.prototype),{constructor:ll,isHemisphereLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(xo.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var t={};return this.bias!==0&&(t.bias=this.bias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),hl.prototype=Object.assign(Object.create(xo.prototype),{constructor:hl,isSpotLightShadow:!0,update:function(t){var e=this.camera,i=2*di.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,(i!==e.fov||n!==e.aspect||t!==e.far)&&(e.fov=i,e.aspect=n,e.far=t,e.updateProjectionMatrix())}}),ul.prototype=Object.assign(Object.create(tn.prototype),{constructor:ul,isSpotLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),zs.prototype=Object.assign(Object.create(tn.prototype),{constructor:zs,isPointLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),Ta.prototype=Object.assign(Object.create(Be.prototype),{constructor:Ta,isOrthographicCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,s,l){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=l,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,s=i-t;if(i+=t,t=n+e,e=n-e,this.view!==null&&this.view.enabled){i=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var l=(this.right-this.left)/this.view.width;n=(this.top-this.bottom)/this.view.height,s+=this.view.offsetX/i*l,i=s+this.view.width/i*l,t-=this.view.offsetY/e*n,e=t-this.view.height/e*n}this.projectionMatrix.makeOrthographic(s,i,t,e,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}),os.prototype=Object.assign(Object.create(xo.prototype),{constructor:os}),wo.prototype=Object.assign(Object.create(tn.prototype),{constructor:wo,isDirectionalLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),ks.prototype=Object.assign(Object.create(tn.prototype),{constructor:ks,isAmbientLight:!0}),eh.prototype=Object.assign(Object.create(tn.prototype),{constructor:eh,isRectAreaLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return t=tn.prototype.toJSON.call(this,t),t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(ih.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(d){e(s.parse(JSON.parse(d)))},i,n)},parse:function(t){function e(d){return i[d],i[d]}var i=this.textures,n=new Uu[t.type];if(t.uuid!==void 0&&(n.uuid=t.uuid),t.name!==void 0&&(n.name=t.name),t.color!==void 0&&n.color.setHex(t.color),t.roughness!==void 0&&(n.roughness=t.roughness),t.metalness!==void 0&&(n.metalness=t.metalness),t.emissive!==void 0&&n.emissive.setHex(t.emissive),t.specular!==void 0&&n.specular.setHex(t.specular),t.shininess!==void 0&&(n.shininess=t.shininess),t.clearCoat!==void 0&&(n.clearCoat=t.clearCoat),t.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=t.clearCoatRoughness),t.vertexColors!==void 0&&(n.vertexColors=t.vertexColors),t.fog!==void 0&&(n.fog=t.fog),t.flatShading!==void 0&&(n.flatShading=t.flatShading),t.blending!==void 0&&(n.blending=t.blending),t.combine!==void 0&&(n.combine=t.combine),t.side!==void 0&&(n.side=t.side),t.opacity!==void 0&&(n.opacity=t.opacity),t.transparent!==void 0&&(n.transparent=t.transparent),t.alphaTest!==void 0&&(n.alphaTest=t.alphaTest),t.depthTest!==void 0&&(n.depthTest=t.depthTest),t.depthWrite!==void 0&&(n.depthWrite=t.depthWrite),t.colorWrite!==void 0&&(n.colorWrite=t.colorWrite),t.wireframe!==void 0&&(n.wireframe=t.wireframe),t.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=t.wireframeLinewidth),t.wireframeLinecap!==void 0&&(n.wireframeLinecap=t.wireframeLinecap),t.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=t.wireframeLinejoin),t.rotation!==void 0&&(n.rotation=t.rotation),t.linewidth!==1&&(n.linewidth=t.linewidth),t.dashSize!==void 0&&(n.dashSize=t.dashSize),t.gapSize!==void 0&&(n.gapSize=t.gapSize),t.scale!==void 0&&(n.scale=t.scale),t.polygonOffset!==void 0&&(n.polygonOffset=t.polygonOffset),t.polygonOffsetFactor!==void 0&&(n.polygonOffsetFactor=t.polygonOffsetFactor),t.polygonOffsetUnits!==void 0&&(n.polygonOffsetUnits=t.polygonOffsetUnits),t.skinning!==void 0&&(n.skinning=t.skinning),t.morphTargets!==void 0&&(n.morphTargets=t.morphTargets),t.dithering!==void 0&&(n.dithering=t.dithering),t.visible!==void 0&&(n.visible=t.visible),t.userData!==void 0&&(n.userData=t.userData),t.uniforms!==void 0)for(var s in t.uniforms){var l=t.uniforms[s];switch(n.uniforms[s]={},l.type){case"t":n.uniforms[s].value=e(l.value);break;case"c":n.uniforms[s].value=new P().setHex(l.value);break;case"v2":n.uniforms[s].value=new o().fromArray(l.value);break;case"v3":n.uniforms[s].value=new u().fromArray(l.value);break;case"v4":n.uniforms[s].value=new v().fromArray(l.value);break;case"m4":n.uniforms[s].value=new c().fromArray(l.value);break;default:n.uniforms[s].value=l.value}}return t.defines!==void 0&&(n.defines=t.defines),t.vertexShader!==void 0&&(n.vertexShader=t.vertexShader),t.fragmentShader!==void 0&&(n.fragmentShader=t.fragmentShader),t.shading!==void 0&&(n.flatShading=t.shading===1),t.size!==void 0&&(n.size=t.size),t.sizeAttenuation!==void 0&&(n.sizeAttenuation=t.sizeAttenuation),t.map!==void 0&&(n.map=e(t.map)),t.alphaMap!==void 0&&(n.alphaMap=e(t.alphaMap),n.transparent=!0),t.bumpMap!==void 0&&(n.bumpMap=e(t.bumpMap)),t.bumpScale!==void 0&&(n.bumpScale=t.bumpScale),t.normalMap!==void 0&&(n.normalMap=e(t.normalMap)),t.normalMapType!==void 0&&(n.normalMapType=t.normalMapType),t.normalScale!==void 0&&(s=t.normalScale,Array.isArray(s)===!1&&(s=[s,s]),n.normalScale=new o().fromArray(s)),t.displacementMap!==void 0&&(n.displacementMap=e(t.displacementMap)),t.displacementScale!==void 0&&(n.displacementScale=t.displacementScale),t.displacementBias!==void 0&&(n.displacementBias=t.displacementBias),t.roughnessMap!==void 0&&(n.roughnessMap=e(t.roughnessMap)),t.metalnessMap!==void 0&&(n.metalnessMap=e(t.metalnessMap)),t.emissiveMap!==void 0&&(n.emissiveMap=e(t.emissiveMap)),t.emissiveIntensity!==void 0&&(n.emissiveIntensity=t.emissiveIntensity),t.specularMap!==void 0&&(n.specularMap=e(t.specularMap)),t.envMap!==void 0&&(n.envMap=e(t.envMap)),t.envMapIntensity!==void 0&&(n.envMapIntensity=t.envMapIntensity),t.reflectivity!==void 0&&(n.reflectivity=t.reflectivity),t.lightMap!==void 0&&(n.lightMap=e(t.lightMap)),t.lightMapIntensity!==void 0&&(n.lightMapIntensity=t.lightMapIntensity),t.aoMap!==void 0&&(n.aoMap=e(t.aoMap)),t.aoMapIntensity!==void 0&&(n.aoMapIntensity=t.aoMapIntensity),t.gradientMap!==void 0&&(n.gradientMap=e(t.gradientMap)),n},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var Hs={decodeText:function(t){if(typeof TextDecoder<"u")return new TextDecoder().decode(t);for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return e===-1?"./":t.substr(0,e+1)}};Object.assign(Fh.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(d){e(s.parse(JSON.parse(d)))},i,n)},parse:function(t){var e=new Ft,i=t.data.index;i!==void 0&&(i=new us[i.type](i.array),e.setIndex(new J(i,1)));var n=t.data.attributes;for(l in n){var s=n[l];i=new us[s.type](s.array),e.addAttribute(l,new J(i,s.itemSize,s.normalized))}var l=t.data.groups||t.data.drawcalls||t.data.offsets;if(l!==void 0)for(i=0,n=l.length;i!==n;++i)s=l[i],e.addGroup(s.start,s.count,s.materialIndex);return t=t.data.boundingSphere,t!==void 0&&(l=new u,t.center!==void 0&&l.fromArray(t.center),e.boundingSphere=new R(l,t.radius)),e},setPath:function(t){return this.path=t,this}});var us={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray<"u"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};zo.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,i=0,n=e.length;i<n;i+=2){var s=e[i+1];if(e[i].test(t))return s}return null}},Object.assign(zo.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,i){for(var n=[],s=0;s<t.length;++s)n[s]=this.createMaterial(t[s],e,i);return n},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new P,i=new dn,n=new ih;return function(s,l,d){function p(B,H,q,$,rt){B=l+B;var xt=zo.Handlers.get(B);return xt!==null?B=xt.load(B):(i.setCrossOrigin(d),B=i.load(B)),H!==void 0&&(B.repeat.fromArray(H),H[0]!==1&&(B.wrapS=1e3),H[1]!==1&&(B.wrapT=1e3)),q!==void 0&&B.offset.fromArray(q),$!==void 0&&($[0]==="repeat"&&(B.wrapS=1e3),$[0]==="mirror"&&(B.wrapS=1002),$[1]==="repeat"&&(B.wrapT=1e3),$[1]==="mirror"&&(B.wrapT=1002)),rt!==void 0&&(B.anisotropy=rt),H=di.generateUUID(),_[H]=B,H}var _={},M={uuid:di.generateUUID(),type:"MeshLambertMaterial"},A;for(A in s){var L=s[A];switch(A){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":M.name=L;break;case"blending":M.blending=t[L];break;case"colorAmbient":case"mapAmbient":break;case"colorDiffuse":M.color=e.fromArray(L).getHex();break;case"colorSpecular":M.specular=e.fromArray(L).getHex();break;case"colorEmissive":M.emissive=e.fromArray(L).getHex();break;case"specularCoef":M.shininess=L;break;case"shading":L.toLowerCase()==="basic"&&(M.type="MeshBasicMaterial"),L.toLowerCase()==="phong"&&(M.type="MeshPhongMaterial"),L.toLowerCase()==="standard"&&(M.type="MeshStandardMaterial");break;case"mapDiffuse":M.map=p(L,s.mapDiffuseRepeat,s.mapDiffuseOffset,s.mapDiffuseWrap,s.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":M.emissiveMap=p(L,s.mapEmissiveRepeat,s.mapEmissiveOffset,s.mapEmissiveWrap,s.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":M.lightMap=p(L,s.mapLightRepeat,s.mapLightOffset,s.mapLightWrap,s.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":M.aoMap=p(L,s.mapAORepeat,s.mapAOOffset,s.mapAOWrap,s.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":M.bumpMap=p(L,s.mapBumpRepeat,s.mapBumpOffset,s.mapBumpWrap,s.mapBumpAnisotropy);break;case"mapBumpScale":M.bumpScale=L;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":M.normalMap=p(L,s.mapNormalRepeat,s.mapNormalOffset,s.mapNormalWrap,s.mapNormalAnisotropy);break;case"mapNormalFactor":M.normalScale=L;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":M.specularMap=p(L,s.mapSpecularRepeat,s.mapSpecularOffset,s.mapSpecularWrap,s.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":M.metalnessMap=p(L,s.mapMetalnessRepeat,s.mapMetalnessOffset,s.mapMetalnessWrap,s.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":M.roughnessMap=p(L,s.mapRoughnessRepeat,s.mapRoughnessOffset,s.mapRoughnessWrap,s.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":M.alphaMap=p(L,s.mapAlphaRepeat,s.mapAlphaOffset,s.mapAlphaWrap,s.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":M.side=1;break;case"doubleSided":M.side=2;break;case"transparency":M.opacity=L;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":M[A]=L;break;case"vertexColors":L===!0&&(M.vertexColors=2),L==="face"&&(M.vertexColors=1);break;default:}}return M.type==="MeshBasicMaterial"&&delete M.emissive,M.type!=="MeshPhongMaterial"&&delete M.specular,1>M.opacity&&(M.transparent=!0),n.setTextures(_),n.parse(M)}}()}),Object.assign(Bs.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,l=this.path===void 0?Hs.extractUrlBase(t):this.path,d=new Lt(this.manager);d.setPath(this.path),d.setWithCredentials(this.withCredentials),d.load(t,function(p){p=JSON.parse(p);var _=p.metadata;_!==void 0&&(_=_.type,_!==void 0&&_.toLowerCase()==="object")||(p=s.parse(p,l),e(p.geometry,p.materials))},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(){return function(t,e){t.data!==void 0&&(t=t.data),t.scale=t.scale!==void 0?1/t.scale:1;var i=new X,n=t,s,l,d,p=n.faces,_=n.vertices,M=n.normals,A=n.colors,L=n.scale,B=0;if(n.uvs!==void 0){for(s=0;s<n.uvs.length;s++)n.uvs[s].length&&B++;for(s=0;s<B;s++)i.faceVertexUvs[s]=[]}var H=0;for(d=_.length;H<d;)s=new u,s.x=_[H++]*L,s.y=_[H++]*L,s.z=_[H++]*L,i.vertices.push(s);for(H=0,d=p.length;H<d;){_=p[H++];var q=_&1,$=_&2;s=_&8;var rt=_&16,xt=_&32;if(L=_&64,_&=128,q){q=new I,q.a=p[H],q.b=p[H+1],q.c=p[H+3];var gt=new I;if(gt.a=p[H+1],gt.b=p[H+2],gt.c=p[H+3],H+=4,$&&($=p[H++],q.materialIndex=$,gt.materialIndex=$),$=i.faces.length,s)for(s=0;s<B;s++){var Ct=n.uvs[s];for(i.faceVertexUvs[s][$]=[],i.faceVertexUvs[s][$+1]=[],l=0;4>l;l++){var wt=p[H++],Vt=Ct[2*wt];wt=Ct[2*wt+1],Vt=new o(Vt,wt),l!==2&&i.faceVertexUvs[s][$].push(Vt),l!==0&&i.faceVertexUvs[s][$+1].push(Vt)}}if(rt&&(rt=3*p[H++],q.normal.set(M[rt++],M[rt++],M[rt]),gt.normal.copy(q.normal)),xt)for(s=0;4>s;s++)rt=3*p[H++],xt=new u(M[rt++],M[rt++],M[rt]),s!==2&&q.vertexNormals.push(xt),s!==0&>.vertexNormals.push(xt);if(L&&(L=p[H++],L=A[L],q.color.setHex(L),gt.color.setHex(L)),_)for(s=0;4>s;s++)L=p[H++],L=A[L],s!==2&&q.vertexColors.push(new P(L)),s!==0&>.vertexColors.push(new P(L));i.faces.push(q),i.faces.push(gt)}else{if(q=new I,q.a=p[H++],q.b=p[H++],q.c=p[H++],$&&($=p[H++],q.materialIndex=$),$=i.faces.length,s)for(s=0;s<B;s++)for(Ct=n.uvs[s],i.faceVertexUvs[s][$]=[],l=0;3>l;l++)wt=p[H++],Vt=Ct[2*wt],wt=Ct[2*wt+1],Vt=new o(Vt,wt),i.faceVertexUvs[s][$].push(Vt);if(rt&&(rt=3*p[H++],q.normal.set(M[rt++],M[rt++],M[rt])),xt)for(s=0;3>s;s++)rt=3*p[H++],xt=new u(M[rt++],M[rt++],M[rt]),q.vertexNormals.push(xt);if(L&&(L=p[H++],q.color.setHex(A[L])),_)for(s=0;3>s;s++)L=p[H++],q.vertexColors.push(new P(A[L]));i.faces.push(q)}}if(n=t,H=n.influencesPerVertex!==void 0?n.influencesPerVertex:2,n.skinWeights)for(d=0,p=n.skinWeights.length;d<p;d+=H)i.skinWeights.push(new v(n.skinWeights[d],1<H?n.skinWeights[d+1]:0,2<H?n.skinWeights[d+2]:0,3<H?n.skinWeights[d+3]:0));if(n.skinIndices)for(d=0,p=n.skinIndices.length;d<p;d+=H)i.skinIndices.push(new v(n.skinIndices[d],1<H?n.skinIndices[d+1]:0,2<H?n.skinIndices[d+2]:0,3<H?n.skinIndices[d+3]:0));if(i.bones=n.bones,i.bones&&0<i.bones.length&&(i.skinWeights.length!==i.skinIndices.length||(i.skinIndices.length,i.vertices.length)),d=t,p=d.scale,d.morphTargets!==void 0)for(n=0,H=d.morphTargets.length;n<H;n++)for(i.morphTargets[n]={},i.morphTargets[n].name=d.morphTargets[n].name,i.morphTargets[n].vertices=[],M=i.morphTargets[n].vertices,A=d.morphTargets[n].vertices,B=0,_=A.length;B<_;B+=3)L=new u,L.x=A[B]*p,L.y=A[B+1]*p,L.z=A[B+2]*p,M.push(L);if(d.morphColors!==void 0&&0<d.morphColors.length)for(p=i.faces,d=d.morphColors[0].colors,n=0,H=p.length;n<H;n++)p[n].color.fromArray(d,3*n);for(d=t,n=[],H=[],d.animation!==void 0&&H.push(d.animation),d.animations!==void 0&&(d.animations.length?H=H.concat(d.animations):H.push(d.animations)),d=0;d<H.length;d++)(p=xr.parseAnimation(H[d],i.bones))&&n.push(p);return i.morphTargets&&(H=xr.CreateClipsFromMorphTargetSequences(i.morphTargets,10),n=n.concat(H)),0<n.length&&(i.animations=n),i.computeFaceNormals(),i.computeBoundingSphere(),t.materials===void 0||t.materials.length===0?{geometry:i}:(t=zo.prototype.initMaterials(t.materials,this.resourcePath||e,this.crossOrigin),{geometry:i,materials:t})}}()}),Object.assign(cl.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,l=this.path===void 0?Hs.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||l,l=new Lt(s.manager),l.setPath(this.path),l.load(t,function(d){var p=null;try{p=JSON.parse(d)}catch(_){n!==void 0&&n(_);return}d=p.metadata,d===void 0||d.type===void 0||d.type.toLowerCase()==="geometry"||s.parse(p,e)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var i=this.parseShape(t.shapes);i=this.parseGeometries(t.geometries,i);var n=this.parseImages(t.images,function(){e!==void 0&&e(s)});n=this.parseTextures(t.textures,n),n=this.parseMaterials(t.materials,n);var s=this.parseObject(t.object,i,n);return t.animations&&(s.animations=this.parseAnimations(t.animations)),t.images!==void 0&&t.images.length!==0||e===void 0||e(s),s},parseShape:function(t){var e={};if(t!==void 0)for(var i=0,n=t.length;i<n;i++){var s=new tr().fromJSON(t[i]);e[s.uuid]=s}return e},parseGeometries:function(t,e){var i={};if(t!==void 0)for(var n=new Bs,s=new Fh,l=0,d=t.length;l<d;l++){var p=t[l];switch(p.type){case"PlaneGeometry":case"PlaneBufferGeometry":var _=new _n[p.type](p.width,p.height,p.widthSegments,p.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":_=new _n[p.type](p.width,p.height,p.depth,p.widthSegments,p.heightSegments,p.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":_=new _n[p.type](p.radius,p.segments,p.thetaStart,p.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":_=new _n[p.type](p.radiusTop,p.radiusBottom,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":_=new _n[p.type](p.radius,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":_=new _n[p.type](p.radius,p.widthSegments,p.heightSegments,p.phiStart,p.phiLength,p.thetaStart,p.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":_=new _n[p.type](p.radius,p.detail);break;case"RingGeometry":case"RingBufferGeometry":_=new _n[p.type](p.innerRadius,p.outerRadius,p.thetaSegments,p.phiSegments,p.thetaStart,p.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":_=new _n[p.type](p.radius,p.tube,p.radialSegments,p.tubularSegments,p.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":_=new _n[p.type](p.radius,p.tube,p.tubularSegments,p.radialSegments,p.p,p.q);break;case"LatheGeometry":case"LatheBufferGeometry":_=new _n[p.type](p.points,p.segments,p.phiStart,p.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":_=new _n[p.type](p.vertices,p.indices,p.radius,p.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":_=[];for(var M=0,A=p.shapes.length;M<A;M++){var L=e[p.shapes[M]];_.push(L)}_=new _n[p.type](_,p.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(_=[],M=0,A=p.shapes.length;M<A;M++)L=e[p.shapes[M]],_.push(L);M=p.options.extrudePath,M!==void 0&&(p.options.extrudePath=new hh[M.type]().fromJSON(M)),_=new _n[p.type](_,p.options);break;case"BufferGeometry":_=s.parse(p);break;case"Geometry":_=n.parse(p,this.resourcePath).geometry;break;default:continue}_.uuid=p.uuid,p.name!==void 0&&(_.name=p.name),_.isBufferGeometry===!0&&p.userData!==void 0&&(_.userData=p.userData),i[p.uuid]=_}return i},parseMaterials:function(t,e){var i={},n={};if(t!==void 0){var s=new ih;s.setTextures(e),e=0;for(var l=t.length;e<l;e++){var d=t[e];if(d.type==="MultiMaterial"){for(var p=[],_=0;_<d.materials.length;_++){var M=d.materials[_];i[M.uuid]===void 0&&(i[M.uuid]=s.parse(M)),p.push(i[M.uuid])}n[d.uuid]=p}else n[d.uuid]=s.parse(d),i[d.uuid]=n[d.uuid]}}return n},parseAnimations:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],s=xr.parse(n);n.uuid!==void 0&&(s.uuid=n.uuid),e.push(s)}return e},parseImages:function(t,e){function i(B){return n.manager.itemStart(B),l.load(B,function(){n.manager.itemEnd(B)},void 0,function(){n.manager.itemError(B),n.manager.itemEnd(B)})}var n=this,s={};if(t!==void 0&&0<t.length){e=new ns(e);var l=new ai(e);l.setCrossOrigin(this.crossOrigin),e=0;for(var d=t.length;e<d;e++){var p=t[e],_=p.url;if(Array.isArray(_)){s[p.uuid]=[];for(var M=0,A=_.length;M<A;M++){var L=_[M];L=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(L)?L:n.resourcePath+L,s[p.uuid].push(i(L))}}else L=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p.url)?p.url:n.resourcePath+p.url,s[p.uuid]=i(L)}}return s},parseTextures:function(t,e){function i(_,M){return typeof _=="number"?_:M[_]}var n={};if(t!==void 0)for(var s=0,l=t.length;s<l;s++){var d=t[s];d.image,e[d.image];var p=Array.isArray(e[d.image])?new z(e[d.image]):new g(e[d.image]);p.needsUpdate=!0,p.uuid=d.uuid,d.name!==void 0&&(p.name=d.name),d.mapping!==void 0&&(p.mapping=i(d.mapping,Gu)),d.offset!==void 0&&p.offset.fromArray(d.offset),d.repeat!==void 0&&p.repeat.fromArray(d.repeat),d.center!==void 0&&p.center.fromArray(d.center),d.rotation!==void 0&&(p.rotation=d.rotation),d.wrap!==void 0&&(p.wrapS=i(d.wrap[0],Jn),p.wrapT=i(d.wrap[1],Jn)),d.format!==void 0&&(p.format=d.format),d.minFilter!==void 0&&(p.minFilter=i(d.minFilter,uh)),d.magFilter!==void 0&&(p.magFilter=i(d.magFilter,uh)),d.anisotropy!==void 0&&(p.anisotropy=d.anisotropy),d.flipY!==void 0&&(p.flipY=d.flipY),n[d.uuid]=p}return n},parseObject:function(t,e,i){function n(M){return e[M],e[M]}function s(M){if(M!==void 0){if(Array.isArray(M)){for(var A=[],L=0,B=M.length;L<B;L++){var H=M[L];i[H],A.push(i[H])}return A}return i[M],i[M]}}switch(t.type){case"Scene":var l=new qn;t.background!==void 0&&Number.isInteger(t.background)&&(l.background=new P(t.background)),t.fog!==void 0&&(t.fog.type==="Fog"?l.fog=new En(t.fog.color,t.fog.near,t.fog.far):t.fog.type==="FogExp2"&&(l.fog=new Re(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":l=new _e(t.fov,t.aspect,t.near,t.far),t.focus!==void 0&&(l.focus=t.focus),t.zoom!==void 0&&(l.zoom=t.zoom),t.filmGauge!==void 0&&(l.filmGauge=t.filmGauge),t.filmOffset!==void 0&&(l.filmOffset=t.filmOffset),t.view!==void 0&&(l.view=Object.assign({},t.view));break;case"OrthographicCamera":l=new Ta(t.left,t.right,t.top,t.bottom,t.near,t.far),t.zoom!==void 0&&(l.zoom=t.zoom),t.view!==void 0&&(l.view=Object.assign({},t.view));break;case"AmbientLight":l=new ks(t.color,t.intensity);break;case"DirectionalLight":l=new wo(t.color,t.intensity);break;case"PointLight":l=new zs(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":l=new eh(t.color,t.intensity,t.width,t.height);break;case"SpotLight":l=new ul(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":l=new ll(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":case"Mesh":l=n(t.geometry);var d=s(t.material);l=l.bones&&0<l.bones.length?new Gi(l,d):new pi(l,d);break;case"LOD":l=new rn;break;case"Line":l=new ji(n(t.geometry),s(t.material),t.mode);break;case"LineLoop":l=new fo(n(t.geometry),s(t.material));break;case"LineSegments":l=new gi(n(t.geometry),s(t.material));break;case"PointCloud":case"Points":l=new ha(n(t.geometry),s(t.material));break;case"Sprite":l=new nn(s(t.material));break;case"Group":l=new ci;break;default:l=new N}if(l.uuid=t.uuid,t.name!==void 0&&(l.name=t.name),t.matrix!==void 0?(l.matrix.fromArray(t.matrix),t.matrixAutoUpdate!==void 0&&(l.matrixAutoUpdate=t.matrixAutoUpdate),l.matrixAutoUpdate&&l.matrix.decompose(l.position,l.quaternion,l.scale)):(t.position!==void 0&&l.position.fromArray(t.position),t.rotation!==void 0&&l.rotation.fromArray(t.rotation),t.quaternion!==void 0&&l.quaternion.fromArray(t.quaternion),t.scale!==void 0&&l.scale.fromArray(t.scale)),t.castShadow!==void 0&&(l.castShadow=t.castShadow),t.receiveShadow!==void 0&&(l.receiveShadow=t.receiveShadow),t.shadow&&(t.shadow.bias!==void 0&&(l.shadow.bias=t.shadow.bias),t.shadow.radius!==void 0&&(l.shadow.radius=t.shadow.radius),t.shadow.mapSize!==void 0&&l.shadow.mapSize.fromArray(t.shadow.mapSize),t.shadow.camera!==void 0&&(l.shadow.camera=this.parseObject(t.shadow.camera))),t.visible!==void 0&&(l.visible=t.visible),t.frustumCulled!==void 0&&(l.frustumCulled=t.frustumCulled),t.renderOrder!==void 0&&(l.renderOrder=t.renderOrder),t.userData!==void 0&&(l.userData=t.userData),t.layers!==void 0&&(l.layers.mask=t.layers),t.children!==void 0){d=t.children;for(var p=0;p<d.length;p++)l.add(this.parseObject(d[p],e,i))}if(t.type==="LOD")for(t=t.levels,d=0;d<t.length;d++){p=t[d];var _=l.getObjectByProperty("uuid",p.object);_!==void 0&&l.addLevel(_,p.distance)}return l}});var Gu={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Jn={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},uh={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};Uh.prototype={constructor:Uh,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,l=So.get(t);if(l!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(l),s.manager.itemEnd(t)},0),l;fetch(t).then(function(d){return d.blob()}).then(function(d){return createImageBitmap(d,s.options)}).then(function(d){So.add(t,d),e&&e(d),s.manager.itemEnd(t)}).catch(function(d){n&&n(d),s.manager.itemError(t),s.manager.itemEnd(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(nh.prototype,{moveTo:function(t,e){this.currentPath=new dr,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,i,n){this.currentPath.quadraticCurveTo(t,e,i,n)},bezierCurveTo:function(t,e,i,n,s,l){this.currentPath.bezierCurveTo(t,e,i,n,s,l)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function i(rt){for(var xt=[],gt=0,Ct=rt.length;gt<Ct;gt++){var wt=rt[gt],Vt=new tr;Vt.curves=wt.curves,xt.push(Vt)}return xt}function n(rt,xt){for(var gt=xt.length,Ct=!1,wt=gt-1,Vt=0;Vt<gt;wt=Vt++){var K=xt[wt],ot=xt[Vt],kt=ot.x-K.x,ee=ot.y-K.y;if(Math.abs(ee)>Number.EPSILON){if(0>ee&&(K=xt[Vt],kt=-kt,ot=xt[wt],ee=-ee),!(rt.y<K.y||rt.y>ot.y))if(rt.y===K.y){if(rt.x===K.x)return!0}else{if(wt=ee*(rt.x-K.x)-kt*(rt.y-K.y),wt===0)return!0;0>wt||(Ct=!Ct)}}else if(rt.y===K.y&&(ot.x<=rt.x&&rt.x<=K.x||K.x<=rt.x&&rt.x<=ot.x))return!0}return Ct}var s=To.isClockWise,l=this.subPaths;if(l.length===0)return[];if(e===!0)return i(l);if(e=[],l.length===1){var d=l[0],p=new tr;return p.curves=d.curves,e.push(p),e}var _=!s(l[0].getPoints());_=t?!_:_,p=[];var M=[],A=[],L=0;M[L]=void 0,A[L]=[];for(var B=0,H=l.length;B<H;B++){d=l[B];var q=d.getPoints(),$=s(q);($=t?!$:$)?(!_&&M[L]&&L++,M[L]={s:new tr,p:q},M[L].s.curves=d.curves,_&&L++,A[L]=[]):A[L].push({h:d,p:q[0]})}if(!M[0])return i(l);if(1<M.length){for(B=!1,t=[],s=0,l=M.length;s<l;s++)p[s]=[];for(s=0,l=M.length;s<l;s++)for(d=A[s],$=0;$<d.length;$++){for(_=d[$],L=!0,q=0;q<M.length;q++)n(_.p,M[q].p)&&(s!==q&&t.push({froms:s,tos:q,hole:$}),L?(L=!1,p[q].push(_)):B=!0);L&&p[s].push(_)}0<t.length&&(B||(A=p))}for(B=0,s=M.length;B<s;B++)for(p=M[B].s,e.push(p),t=A[B],l=0,d=t.length;l<d;l++)p.holes.push(t[l].h);return e}}),Object.assign(Gh.prototype,{isFont:!0,generateShapes:function(t,e){e===void 0&&(e=100);var i=[],n=e;e=this.data;var s=Array.from?Array.from(t):String(t).split("");n/=e.resolution;var l=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*n;t=[];for(var d=0,p=0,_=0;_<s.length;_++){var M=s[_];if(M===`
|
|
2571
|
-
`)d=0,p-=l;else{var A=n,L=d,B=p;if(M=e.glyphs[M]||e.glyphs["?"]){var H=new nh;if(M.o)for(var q=M._cachedOutline||(M._cachedOutline=M.o.split(" ")),$=0,rt=q.length;$<rt;)switch(q[$++]){case"m":var xt=q[$++]*A+L,gt=q[$++]*A+B;H.moveTo(xt,gt);break;case"l":xt=q[$++]*A+L,gt=q[$++]*A+B,H.lineTo(xt,gt);break;case"q":var Ct=q[$++]*A+L,wt=q[$++]*A+B,Vt=q[$++]*A+L,K=q[$++]*A+B;H.quadraticCurveTo(Vt,K,Ct,wt);break;case"b":Ct=q[$++]*A+L,wt=q[$++]*A+B,Vt=q[$++]*A+L,K=q[$++]*A+B,xt=q[$++]*A+L,gt=q[$++]*A+B,H.bezierCurveTo(Vt,K,xt,gt,Ct,wt)}A={offsetX:M.ha*A,path:H}}else A=void 0;d+=A.offsetX,t.push(A.path)}}for(e=0,s=t.length;e<s;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}}),Object.assign(Ru.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(this.manager);l.setPath(this.path),l.load(t,function(d){try{var p=JSON.parse(d)}catch{p=JSON.parse(d.substring(65,d.length-2))}d=s.parse(p),e&&e(d)},i,n)},parse:function(t){return new Gh(t)},setPath:function(t){return this.path=t,this}});var ch,Kh={getContext:function(){return ch===void 0&&(ch=new(window.AudioContext||window.webkitAudioContext)),ch},setContext:function(t){ch=t}};Object.assign(yn.prototype,{load:function(t,e,i,n){var s=new Lt(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.load(t,function(l){l=l.slice(0),Kh.getContext().decodeAudioData(l,function(d){e(d)})},i,n)},setPath:function(t){return this.path=t,this}}),Object.assign(Wn.prototype,{update:function(){var t,e,i,n,s,l,d,p,_=new c,M=new c;return function(A){if(t!==this||e!==A.focus||i!==A.fov||n!==A.aspect*this.aspect||s!==A.near||l!==A.far||d!==A.zoom||p!==this.eyeSep){t=this,e=A.focus,i=A.fov,n=A.aspect*this.aspect,s=A.near,l=A.far,d=A.zoom;var L=A.projectionMatrix.clone();p=this.eyeSep/2;var B=p*s/e,H=s*Math.tan(di.DEG2RAD*i*.5)/d;M.elements[12]=-p,_.elements[12]=p;var q=-H*n+B,$=H*n+B;L.elements[0]=2*s/($-q),L.elements[8]=($+q)/($-q),this.cameraL.projectionMatrix.copy(L),q=-H*n-B,$=H*n-B,L.elements[0]=2*s/($-q),L.elements[8]=($+q)/($-q),this.cameraR.projectionMatrix.copy(L)}this.cameraL.matrixWorld.copy(A.matrixWorld).multiply(M),this.cameraR.matrixWorld.copy(A.matrixWorld).multiply(_)}}()}),fl.prototype=Object.create(N.prototype),fl.prototype.constructor=fl,Object.assign(Hh.prototype,{start:function(){this.oldTime=this.startTime=(typeof performance>"u"?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=(typeof performance>"u"?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),rh.prototype=Object.assign(Object.create(N.prototype),{constructor:rh,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new u,e=new f,i=new u,n=new u,s=new Hh;return function(l){N.prototype.updateMatrixWorld.call(this,l),l=this.context.listener;var d=this.up;if(this.timeDelta=s.getDelta(),this.matrixWorld.decompose(t,e,i),n.set(0,0,-1).applyQuaternion(e),l.positionX){var p=this.context.currentTime+this.timeDelta;l.positionX.linearRampToValueAtTime(t.x,p),l.positionY.linearRampToValueAtTime(t.y,p),l.positionZ.linearRampToValueAtTime(t.z,p),l.forwardX.linearRampToValueAtTime(n.x,p),l.forwardY.linearRampToValueAtTime(n.y,p),l.forwardZ.linearRampToValueAtTime(n.z,p),l.upX.linearRampToValueAtTime(d.x,p),l.upY.linearRampToValueAtTime(d.y,p),l.upZ.linearRampToValueAtTime(d.z,p)}else l.setPosition(t.x,t.y,t.z),l.setOrientation(n.x,n.y,n.z,d.x,d.y,d.z)}}()}),Sa.prototype=Object.assign(Object.create(N.prototype),{constructor:Sa,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(this.isPlaying!==!0){if(this.hasPlaybackControl!==!1){var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}}},pause:function(){if(this.hasPlaybackControl!==!1)return this.isPlaying===!0&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this},stop:function(){if(this.hasPlaybackControl!==!1)return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),this.isPlaying===!0?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(this.hasPlaybackControl!==!1)return this.playbackRate=t,this.isPlaying===!0&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?!1:this.loop},setLoop:function(t){if(this.hasPlaybackControl!==!1)return this.loop=t,this.isPlaying===!0&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),dl.prototype=Object.assign(Object.create(Sa.prototype),{constructor:dl,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this},updateMatrixWorld:function(){var t=new u,e=new f,i=new u,n=new u;return function(s){if(N.prototype.updateMatrixWorld.call(this,s),s=this.panner,this.matrixWorld.decompose(t,e,i),n.set(0,0,1).applyQuaternion(e),s.positionX){var l=this.context.currentTime+this.listener.timeDelta;s.positionX.linearRampToValueAtTime(t.x,l),s.positionY.linearRampToValueAtTime(t.y,l),s.positionZ.linearRampToValueAtTime(t.z,l),s.orientationX.linearRampToValueAtTime(n.x,l),s.orientationY.linearRampToValueAtTime(n.y,l),s.orientationZ.linearRampToValueAtTime(n.z,l)}else s.setPosition(t.x,t.y,t.z),s.setOrientation(n.x,n.y,n.z)}}()}),Object.assign(Ns.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),i=0;i<e.length;i++)t+=e[i];return t/e.length}}),Object.assign(pl.prototype,{accumulate:function(t,e){var i=this.buffer,n=this.valueSize;t=t*n+n;var s=this.cumulativeWeight;if(s===0){for(s=0;s!==n;++s)i[t+s]=i[s];s=e}else s+=e,this._mixBufferRegion(i,t,0,e/s,n);this.cumulativeWeight=s},apply:function(t){var e=this.valueSize,i=this.buffer;t=t*e+e;var n=this.cumulativeWeight,s=this.binding;this.cumulativeWeight=0,1>n&&this._mixBufferRegion(i,t,3*e,1-n,e),n=e;for(var l=e+e;n!==l;++n)if(i[n]!==i[n+e]){s.setValue(i,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,i=3*e;this.binding.getValue(t,i);for(var n=e;n!==i;++n)t[n]=t[i+n%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,i,n,s){if(.5<=n)for(n=0;n!==s;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){f.slerpFlat(t,e,t,e,t,i,n)},_lerp:function(t,e,i,n,s){for(var l=1-n,d=0;d!==s;++d){var p=e+d;t[p]=t[p]*l+t[i+d]*n}}}),Object.assign(Fs.prototype,{getValue:function(t,e){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];i!==void 0&&i.getValue(t,e)},setValue:function(t,e){for(var i=this._bindings,n=this._targetGroup.nCachedObjects_,s=i.length;n!==s;++n)i[n].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(bn,{Composite:Fs,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new bn.Composite(t,e,i):new bn(t,e,i)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),n=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),s=new RegExp("^"+e+t+i+n+"$"),l=["material","materials","bones"];return function(d){var p=s.exec(d);if(!p)throw Error("PropertyBinding: Cannot parse trackName: "+d);p={nodeName:p[2],objectName:p[3],objectIndex:p[4],propertyName:p[5],propertyIndex:p[6]};var _=p.nodeName&&p.nodeName.lastIndexOf(".");if(_!==void 0&&_!==-1){var M=p.nodeName.substring(_+1);l.indexOf(M)!==-1&&(p.nodeName=p.nodeName.substring(0,_),p.objectName=M)}if(p.propertyName===null||p.propertyName.length===0)throw Error("PropertyBinding: can not parse propertyName from trackName: "+d);return p}}(),findNode:function(t,e){if(!e||e===""||e==="root"||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){var i=t.skeleton.getBoneByName(e);if(i!==void 0)return i}if(t.children){var n=function(s){for(var l=0;l<s.length;l++){var d=s[l];if(d.name===e||d.uuid===e||(d=n(d.children)))return d}return null};if(t=n(t.children))return t}return null}}),Object.assign(bn.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,i=e.objectName,n=e.propertyName,s=e.propertyIndex;if(t||(this.node=t=bn.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(i){var l=e.objectIndex;switch(i){case"materials":if(!t.material||!t.material.materials)return;t=t.material.materials;break;case"bones":if(!t.skeleton)return;for(t=t.skeleton.bones,i=0;i<t.length;i++)if(t[i].name===l){l=i;break}break;default:if(t[i]===void 0)return;t=t[i]}if(l!==void 0){if(t[l]===void 0)return;t=t[l]}}if(l=t[n],l!==void 0){if(e=this.Versioning.None,this.targetObject=t,t.needsUpdate!==void 0?e=this.Versioning.NeedsUpdate:t.matrixWorldNeedsUpdate!==void 0&&(e=this.Versioning.MatrixWorldNeedsUpdate),i=this.BindingType.Direct,s!==void 0){if(n==="morphTargetInfluences"){if(!t.geometry)return;if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes)return;for(i=0;i<this.node.geometry.morphAttributes.position.length;i++)if(t.geometry.morphAttributes.position[i].name===s){s=i;break}}else{if(!t.geometry.morphTargets)return;for(i=0;i<this.node.geometry.morphTargets.length;i++)if(t.geometry.morphTargets[i].name===s){s=i;break}}}i=this.BindingType.ArrayElement,this.resolvedProperty=l,this.propertyIndex=s}else l.fromArray!==void 0&&l.toArray!==void 0?(i=this.BindingType.HasFromToArray,this.resolvedProperty=l):Array.isArray(l)?(i=this.BindingType.EntireArray,this.resolvedProperty=l):this.propertyName=n;this.getValue=this.GetterByBindingType[i],this.setValue=this.SetterByBindingTypeAndVersioning[i][e]}}},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(bn.prototype,{_getValue_unbound:bn.prototype.getValue,_setValue_unbound:bn.prototype.setValue}),Object.assign(Ea.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._paths,l=this._parsedPaths,d=this._bindings,p=d.length,_=void 0,M=0,A=arguments.length;M!==A;++M){var L=arguments[M],B=L.uuid,H=n[B];if(H===void 0){H=e++,n[B]=H,t.push(L),B=0;for(var q=p;B!==q;++B)d[B].push(new bn(L,s[B],l[B]))}else if(H<i){_=t[H];var $=--i;for(q=t[$],n[q.uuid]=H,t[H]=q,n[B]=$,t[$]=L,B=0,q=p;B!==q;++B){var rt=d[B],xt=rt[H];rt[H]=rt[$],xt===void 0&&(xt=new bn(L,s[B],l[B])),rt[$]=xt}}else t[H]}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,s=n.length,l=0,d=arguments.length;l!==d;++l){var p=arguments[l],_=p.uuid,M=i[_];if(M!==void 0&&M>=e){var A=e++,L=t[A];for(i[L.uuid]=M,t[M]=L,i[_]=A,t[A]=p,p=0,_=s;p!==_;++p){L=n[p];var B=L[M];L[M]=L[A],L[A]=B}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._bindings,l=s.length,d=0,p=arguments.length;d!==p;++d){var _=arguments[d].uuid,M=n[_];if(M!==void 0)if(delete n[_],M<i){_=--i;var A=t[_],L=--e,B=t[L];for(n[A.uuid]=M,t[M]=A,n[B.uuid]=_,t[_]=B,t.pop(),A=0,B=l;A!==B;++A){var H=s[A],q=H[L];H[M]=H[_],H[_]=q,H.pop()}}else for(L=--e,B=t[L],n[B.uuid]=M,t[M]=B,t.pop(),A=0,B=l;A!==B;++A)H=s[A],H[M]=H[L],H.pop()}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],s=this._bindings;if(n!==void 0)return s[n];var l=this._paths,d=this._parsedPaths,p=this._objects,_=this.nCachedObjects_,M=Array(p.length);for(n=s.length,i[t]=n,l.push(t),d.push(e),s.push(M),i=_,n=p.length;i!==n;++i)M[i]=new bn(p[i],t,e);return M},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(i!==void 0){var n=this._paths,s=this._parsedPaths,l=this._bindings,d=l.length-1,p=l[d];e[t[d]]=i,l[i]=p,l.pop(),s[i]=s[d],s.pop(),n[i]=n[d],n.pop()}}}),Object.assign(ml.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){i=this._clip.duration;var n=t._clip.duration,s=i/n;t.warp(1,n/i,e),this.warp(s,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return t!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,i){var n=this._mixer,s=n.time,l=this._timeScaleInterpolant,d=this.timeScale;return l===null&&(this._timeScaleInterpolant=l=n._lendControlInterpolant()),n=l.parameterPositions,l=l.sampleValues,n[0]=s,n[1]=s+i,l[0]=t/d,l[1]=e/d,this},stopWarping:function(){var t=this._timeScaleInterpolant;return t!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,i,n){if(this.enabled){var s=this._startTime;if(s!==null){if(e=(t-s)*i,0>e||i===0)return;this._startTime=null,e*=i}if(e*=this._updateTimeScale(t),i=this._updateTime(e),t=this._updateWeight(t),0<t){e=this._interpolants,s=this._propertyBindings;for(var l=0,d=e.length;l!==d;++l)e[l].evaluate(i),s[l].accumulate(n,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var i=this._weightInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),n===0&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var i=this._timeScaleInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopWarping(),e===0?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,i=this._clip.duration,n=this.loop,s=this._loopCount,l=n===2202;if(t===0)return s===-1?e:l&&(s&1)===1?i-e:e;if(n===2200)t:{if(s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=i)e=i;else if(0>e)e=0;else break t;this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(s===-1&&(0<=t?(s=0,this._setEndings(!0,this.repetitions===0,l)):this._setEndings(this.repetitions===0,!0,l)),e>=i||0>e){n=Math.floor(e/i),e-=i*n,s+=Math.abs(n);var d=this.repetitions-s;0>=d?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?i:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(d===1?(t=0>t,this._setEndings(t,!t,l)):this._setEndings(!1,!1,l),this._loopCount=s,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n}))}if(l&&(s&1)===1)return this.time=e,i-e}return this.time=e},_setEndings:function(t,e,i){var n=this._interpolantSettings;i?(n.endingStart=2401,n.endingEnd=2401):(n.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,n.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,i){var n=this._mixer,s=n.time,l=this._weightInterpolant;return l===null&&(this._weightInterpolant=l=n._lendControlInterpolant()),n=l.parameterPositions,l=l.sampleValues,n[0]=s,l[0]=e,n[1]=s+t,l[1]=i,this}}),ss.prototype=Object.assign(Object.create(a.prototype),{constructor:ss,_bindAction:function(t,e){var i=t._localRoot||this._root,n=t._clip.tracks,s=n.length,l=t._propertyBindings;t=t._interpolants;var d=i.uuid,p=this._bindingsByRootAndName,_=p[d];for(_===void 0&&(_={},p[d]=_),p=0;p!==s;++p){var M=n[p],A=M.name,L=_[A];if(L===void 0){if(L=l[p],L!==void 0){L._cacheIndex===null&&(++L.referenceCount,this._addInactiveBinding(L,d,A));continue}L=new pl(bn.create(i,A,e&&e._propertyBindings[p].binding.parsedPath),M.ValueTypeName,M.getValueSize()),++L.referenceCount,this._addInactiveBinding(L,d,A)}l[p]=L,t[p].resultBuffer=L.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(t._cacheIndex===null){var e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}for(e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return t=t._cacheIndex,t!==null&&t<this._nActiveActions},_addInactiveAction:function(t,e,i){var n=this._actions,s=this._actionsByClip,l=s[e];l===void 0?(l={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,s[e]=l):(e=l.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=n.length,n.push(t),l.actionByRoot[i]=t},_removeInactiveAction:function(t){var e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null,e=t._clip.uuid,i=this._actionsByClip,n=i[e];var s=n.knownActions,l=s[s.length-1],d=t._byClipCacheIndex;l._byClipCacheIndex=d,s[d]=l,s.pop(),t._byClipCacheIndex=null,delete n.actionByRoot[(t._localRoot||this._root).uuid],s.length===0&&delete i[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){t=t._propertyBindings;for(var e=0,i=t.length;e!==i;++e){var n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}},_lendAction:function(t){var e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackAction:function(t){var e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_addInactiveBinding:function(t,e,i){var n=this._bindingsByRootAndName,s=n[e],l=this._bindings;s===void 0&&(s={},n[e]=s),s[i]=t,t._cacheIndex=l.length,l.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,i=t.binding,n=i.rootNode.uuid;i=i.path;var s=this._bindingsByRootAndName,l=s[n],d=e[e.length-1];t=t._cacheIndex,d._cacheIndex=t,e[t]=d,e.pop(),delete l[i];t:{for(var p in l)break t;delete s[n]}},_lendBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,i=t[e];return i===void 0&&(i=new zr(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,s=e[n];t.__cacheIndex=n,e[n]=t,s.__cacheIndex=i,e[i]=s},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var i=e||this._root,n=i.uuid;i=typeof t=="string"?xr.findByName(i,t):t,t=i!==null?i.uuid:t;var s=this._actionsByClip[t],l=null;if(s!==void 0){if(l=s.actionByRoot[n],l!==void 0)return l;l=s.knownActions[0],i===null&&(i=l._clip)}return i===null?null:(e=new ml(this,i,e),this._bindAction(e,l),this._addInactiveAction(e,t,n),e)},existingAction:function(t,e){var i=e||this._root;return e=i.uuid,i=typeof t=="string"?xr.findByName(i,t):t,t=this._actionsByClip[i?i.uuid:t],t!==void 0&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,i=this._bindings,n=this._nActiveBindings,s=this._nActiveBindings=this._nActiveActions=0;s!==e;++s)t[s].reset();for(s=0;s!==n;++s)i[s].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,i=this._nActiveActions,n=this.time+=t,s=Math.sign(t),l=this._accuIndex^=1,d=0;d!==i;++d)e[d]._update(n,t,s,l);for(t=this._bindings,e=this._nActiveBindings,d=0;d!==e;++d)t[d].apply(l);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var i=this._actionsByClip,n=i[t];if(n!==void 0){n=n.knownActions;for(var s=0,l=n.length;s!==l;++s){var d=n[s];this._deactivateAction(d);var p=d._cacheIndex,_=e[e.length-1];d._cacheIndex=null,d._byClipCacheIndex=null,_._cacheIndex=p,e[p]=_,e.pop(),this._removeInactiveBindingsForAction(d)}delete i[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(n in e){var i=e[n].actionByRoot[t];i!==void 0&&(this._deactivateAction(i),this._removeInactiveAction(i))}var n=this._bindingsByRootAndName[t];if(n!==void 0)for(var s in n)t=n[s],t.restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){t=this.existingAction(t,e),t!==null&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),oh.prototype.clone=function(){return new oh(this.value.clone===void 0?this.value:this.value.clone())},Vh.prototype=Object.assign(Object.create(Ft.prototype),{constructor:Vh,isInstancedBufferGeometry:!0,copy:function(t){return Ft.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)}}),Wh.prototype=Object.assign(Object.create(ki.prototype),{constructor:Wh,isInstancedInterleavedBuffer:!0,copy:function(t){return ki.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),jh.prototype=Object.assign(Object.create(J.prototype),{constructor:jh,isInstancedBufferAttribute:!0,copy:function(t){return J.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Ou.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera&&(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld))},intersectObject:function(t,e,i){return i=i||[],Us(t,this,i,e),i.sort(gl),i},intersectObjects:function(t,e,i){if(i=i||[],Array.isArray(t)===!1)return i;for(var n=0,s=t.length;n<s;n++)Us(t[n],this,i,e);return i.sort(gl),i}}),Object.assign(Xh.prototype,{set:function(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?this.phi=this.theta=0:(this.theta=Math.atan2(t,i),this.phi=Math.acos(di.clamp(e/this.radius,-1,1))),this}}),Object.assign(it.prototype,{set:function(t,e,i){return this.radius=t,this.theta=e,this.y=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}}),Object.assign(as.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new o;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return t===void 0&&(t=new o),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(t=new o),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return e===void 0&&(e=new o),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return e===void 0&&(e=new o),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new o;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(ba.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return t===void 0&&(t=new u),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return t===void 0&&(t=new u),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return e===void 0&&(e=new u),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new u,e=new u;return function(i,n){return t.subVectors(i,this.start),e.subVectors(this.end,this.start),i=e.dot(e),i=e.dot(t)/i,n&&(i=di.clamp(i,0,1)),i}}(),closestPointToPoint:function(t,e,i){return t=this.closestPointToPointParameter(t,e),i===void 0&&(i=new u),this.delta(i).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),Yn.prototype=Object.create(N.prototype),Yn.prototype.constructor=Yn,Yn.prototype.isImmediateRenderObject=!0,_i.prototype=Object.create(gi.prototype),_i.prototype.constructor=_i,_i.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){var n=["a","b","c"];this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var s=this.object.matrixWorld,l=this.geometry.attributes.position,d=this.object.geometry;if(d&&d.isGeometry)for(var p=d.vertices,_=d.faces,M=d=0,A=_.length;M<A;M++)for(var L=_[M],B=0,H=L.vertexNormals.length;B<H;B++){var q=L.vertexNormals[B];t.copy(p[L[n[B]]]).applyMatrix4(s),e.copy(q).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),l.setXYZ(d,t.x,t.y,t.z),d+=1,l.setXYZ(d,e.x,e.y,e.z),d+=1}else if(d&&d.isBufferGeometry)for(n=d.attributes.position,p=d.attributes.normal,B=d=0,H=n.count;B<H;B++)t.set(n.getX(B),n.getY(B),n.getZ(B)).applyMatrix4(s),e.set(p.getX(B),p.getY(B),p.getZ(B)),e.applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),l.setXYZ(d,t.x,t.y,t.z),d+=1,l.setXYZ(d,e.x,e.y,e.z),d+=1;l.needsUpdate=!0}}(),Ca.prototype=Object.create(N.prototype),Ca.prototype.constructor=Ca,Ca.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},Ca.prototype.update=function(){var t=new u,e=new u;return function(){this.light.updateMatrixWorld();var i=this.light.distance?this.light.distance:1e3,n=i*Math.tan(this.light.angle);this.cone.scale.set(n,n,i),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Aa.prototype=Object.create(gi.prototype),Aa.prototype.constructor=Aa,Aa.prototype.updateMatrixWorld=function(){var t=new u,e=new c,i=new c;return function(n){var s=this.bones,l=this.geometry,d=l.getAttribute("position");i.getInverse(this.root.matrixWorld);for(var p=0,_=0;p<s.length;p++){var M=s[p];M.parent&&M.parent.isBone&&(e.multiplyMatrices(i,M.matrixWorld),t.setFromMatrixPosition(e),d.setXYZ(_,t.x,t.y,t.z),e.multiplyMatrices(i,M.parent.matrixWorld),t.setFromMatrixPosition(e),d.setXYZ(_+1,t.x,t.y,t.z),_+=2)}l.getAttribute("position").needsUpdate=!0,N.prototype.updateMatrixWorld.call(this,n)}}(),Br.prototype=Object.create(pi.prototype),Br.prototype.constructor=Br,Br.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},Br.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)},Pa.prototype=Object.create(N.prototype),Pa.prototype.constructor=Pa,Pa.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Pa.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,i=this.line.geometry.attributes.position,n=i.array;n[0]=t,n[1]=-e,n[2]=0,n[3]=t,n[4]=e,n[5]=0,n[6]=-t,n[7]=e,n[8]=0,n[9]=-t,n[10]=-e,n[11]=0,n[12]=t,n[13]=-e,n[14]=0,i.needsUpdate=!0,this.color!==void 0?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},La.prototype=Object.create(N.prototype),La.prototype.constructor=La,La.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},La.prototype.update=function(){var t=new u,e=new P,i=new P;return function(){var n=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var s=n.geometry.getAttribute("color");e.copy(this.light.color),i.copy(this.light.groundColor);for(var l=0,d=s.count;l<d;l++){var p=l<d/2?e:i;s.setXYZ(l,p.r,p.g,p.b)}s.needsUpdate=!0}n.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),vl.prototype=Object.create(gi.prototype),vl.prototype.constructor=vl,sh.prototype=Object.create(gi.prototype),sh.prototype.constructor=sh,yl.prototype=Object.create(gi.prototype),yl.prototype.constructor=yl,yl.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var n=this.object.matrixWorld,s=this.geometry.attributes.position,l=this.object.geometry,d=l.vertices;l=l.faces;for(var p=0,_=0,M=l.length;_<M;_++){var A=l[_],L=A.normal;t.copy(d[A.a]).add(d[A.b]).add(d[A.c]).divideScalar(3).applyMatrix4(n),e.copy(L).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(p,t.x,t.y,t.z),p+=1,s.setXYZ(p,e.x,e.y,e.z),p+=1}s.needsUpdate=!0}}(),pr.prototype=Object.create(N.prototype),pr.prototype.constructor=pr,pr.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},pr.prototype.update=function(){var t=new u,e=new u,i=new u;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),i.subVectors(e,t),this.lightPlane.lookAt(i),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(i),this.targetLine.scale.z=i.length()}}(),_l.prototype=Object.create(gi.prototype),_l.prototype.constructor=_l,_l.prototype.update=function(){function t(l,d,p,_){if(n.set(d,p,_).unproject(s),l=i[l],l!==void 0)for(d=e.getAttribute("position"),p=0,_=l.length;p<_;p++)d.setXYZ(l[p],n.x,n.y,n.z)}var e,i,n=new u,s=new Be;return function(){e=this.geometry,i=this.pointMap,s.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),ko.prototype=Object.create(gi.prototype),ko.prototype.constructor=ko,ko.prototype.update=function(){var t=new k;return function(e){if(this.object!==void 0&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var i=t.max,n=this.geometry.attributes.position,s=n.array;s[0]=i.x,s[1]=i.y,s[2]=i.z,s[3]=e.x,s[4]=i.y,s[5]=i.z,s[6]=e.x,s[7]=e.y,s[8]=i.z,s[9]=i.x,s[10]=e.y,s[11]=i.z,s[12]=i.x,s[13]=i.y,s[14]=e.z,s[15]=e.x,s[16]=i.y,s[17]=e.z,s[18]=e.x,s[19]=e.y,s[20]=e.z,s[21]=i.x,s[22]=e.y,s[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),ko.prototype.setFromObject=function(t){return this.object=t,this.update(),this},ko.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.object=t.object,this},ko.prototype.clone=function(){return new this.constructor().copy(this)},xl.prototype=Object.create(gi.prototype),xl.prototype.constructor=xl,xl.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),N.prototype.updateMatrixWorld.call(this,t))},wl.prototype=Object.create(ji.prototype),wl.prototype.constructor=wl,wl.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),N.prototype.updateMatrixWorld.call(this,t)};var fh,El;Bo.prototype=Object.create(N.prototype),Bo.prototype.constructor=Bo,Bo.prototype.setDirection=function(){var t=new u,e;return function(i){.99999<i.y?this.quaternion.set(0,0,0,1):-.99999>i.y?this.quaternion.set(1,0,0,0):(t.set(i.z,0,-i.x).normalize(),e=Math.acos(i.y),this.quaternion.setFromAxisAngle(t,e))}}(),Bo.prototype.setLength=function(t,e,i){e===void 0&&(e=.2*t),i===void 0&&(i=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()},Bo.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},Bo.prototype.copy=function(t){return N.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},Bo.prototype.clone=function(){return new this.constructor().copy(this)},wr.prototype=Object.create(gi.prototype),wr.prototype.constructor=wr,Ee.create=function(t,e){return t.prototype=Object.create(Ee.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Do.prototype,{createPointsGeometry:function(t){return t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){for(var e=new X,i=0,n=t.length;i<n;i++){var s=t[i];e.vertices.push(new u(s.x,s.y,s.z||0))}return e}}),Object.assign(dr.prototype,{fromPoints:function(t){this.setFromPoints(t)}}),Du.prototype=Object.create(In.prototype),zu.prototype=Object.create(In.prototype),qh.prototype=Object.create(In.prototype),Object.assign(qh.prototype,{initFromArray:function(){},getControlPointsArray:function(){},reparametrizeByArcLength:function(){}}),vl.prototype.setColors=function(){},Aa.prototype.update=function(){},Object.assign(zo.prototype,{extractUrlBase:function(t){return Hs.extractUrlBase(t)}}),Object.assign(Bs.prototype,{setTexturePath:function(t){return this.setResourcePath(t)}}),Object.assign(cl.prototype,{setTexturePath:function(t){return this.setResourcePath(t)}}),Object.assign(as.prototype,{center:function(t){return this.getCenter(t)},empty:function(){return this.isEmpty()},isIntersectionBox:function(t){return this.intersectsBox(t)},size:function(t){return this.getSize(t)}}),Object.assign(k.prototype,{center:function(t){return this.getCenter(t)},empty:function(){return this.isEmpty()},isIntersectionBox:function(t){return this.intersectsBox(t)},isIntersectionSphere:function(t){return this.intersectsSphere(t)},size:function(t){return this.getSize(t)}}),ba.prototype.center=function(t){return this.getCenter(t)},Object.assign(di,{random16:function(){return Math.random()},nearestPowerOfTwo:function(t){return di.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return di.ceilPowerOfTwo(t)}}),Object.assign(m.prototype,{flattenToArrayOffset:function(t,e){return this.toArray(t,e)},multiplyVector3:function(t){return t.applyMatrix3(this)},multiplyVector3Array:function(){},applyToBuffer:function(t){return this.applyToBufferAttribute(t)},applyToVector3Array:function(){}}),Object.assign(c.prototype,{extractPosition:function(t){return this.copyPosition(t)},flattenToArrayOffset:function(t,e){return this.toArray(t,e)},getPosition:function(){var t;return function(){return t===void 0&&(t=new u),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return this.makeRotationFromQuaternion(t)},multiplyToArray:function(){},multiplyVector3:function(t){return t.applyMatrix4(this)},multiplyVector4:function(t){return t.applyMatrix4(this)},multiplyVector3Array:function(){},rotateAxis:function(t){t.transformDirection(this)},crossVector:function(t){return t.applyMatrix4(this)},translate:function(){},rotateX:function(){},rotateY:function(){},rotateZ:function(){},rotateByAxis:function(){},applyToBuffer:function(t){return this.applyToBufferAttribute(t)},applyToVector3Array:function(){},makeFrustum:function(t,e,i,n,s,l){return this.makePerspective(t,e,n,i,s,l)}}),F.prototype.isIntersectionLine=function(t){return this.intersectsLine(t)},f.prototype.multiplyVector3=function(t){return t.applyQuaternion(this)},Object.assign(Si.prototype,{isIntersectionBox:function(t){return this.intersectsBox(t)},isIntersectionPlane:function(t){return this.intersectsPlane(t)},isIntersectionSphere:function(t){return this.intersectsSphere(t)}}),Object.assign(Oe.prototype,{area:function(){return this.getArea()},barycoordFromPoint:function(t,e){return this.getBarycoord(t,e)},midpoint:function(t){return this.getMidpoint(t)},normal:function(t){return this.getNormal(t)},plane:function(t){return this.getPlane(t)}}),Object.assign(Oe,{barycoordFromPoint:function(t,e,i,n,s){return Oe.getBarycoord(t,e,i,n,s)},normal:function(t,e,i,n){return Oe.getNormal(t,e,i,n)}}),Object.assign(tr.prototype,{extractAllPoints:function(t){return this.extractPoints(t)},extrude:function(t){return new Lo(this,t)},makeGeometry:function(t){return new Ro(this,t)}}),Object.assign(o.prototype,{fromAttribute:function(t,e,i){return this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return this.manhattanDistanceTo(t)},lengthManhattan:function(){return this.manhattanLength()}}),Object.assign(u.prototype,{setEulerFromRotationMatrix:function(){},setEulerFromQuaternion:function(){},getPositionFromMatrix:function(t){return this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return this.setFromMatrixColumn(e,t)},applyProjection:function(t){return this.applyMatrix4(t)},fromAttribute:function(t,e,i){return this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return this.manhattanDistanceTo(t)},lengthManhattan:function(){return this.manhattanLength()}}),Object.assign(v.prototype,{fromAttribute:function(t,e,i){return this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return this.manhattanLength()}}),Object.assign(X.prototype,{computeTangents:function(){},computeLineDistances:function(){}}),Object.assign(N.prototype,{getChildByName:function(t){return this.getObjectByName(t)},renderDepth:function(){},translate:function(t,e){return this.translateOnAxis(e,t)},getWorldRotation:function(){}}),Object.defineProperties(N.prototype,{eulerOrder:{get:function(){return this.rotation.order},set:function(t){this.rotation.order=t}},useQuaternion:{get:function(){},set:function(){}}}),Object.defineProperties(rn.prototype,{objects:{get:function(){return this.levels}}}),Object.defineProperty(cn.prototype,"useVertexTexture",{get:function(){},set:function(){}}),Object.defineProperty(Ee.prototype,"__arcLengthDivisions",{get:function(){return this.arcLengthDivisions},set:function(t){this.arcLengthDivisions=t}}),_e.prototype.setLens=function(t,e){e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(tn.prototype,{onlyShadow:{set:function(){}},shadowCameraFov:{set:function(t){this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){}},shadowBias:{set:function(t){this.shadow.bias=t}},shadowDarkness:{set:function(){}},shadowMapWidth:{set:function(t){this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){this.shadow.mapSize.height=t}}}),Object.defineProperties(J.prototype,{length:{get:function(){return this.array.length}},copyIndicesArray:function(){}}),Object.assign(Ft.prototype,{addIndex:function(t){this.setIndex(t)},addDrawCall:function(t,e,i){this.addGroup(t,e)},clearDrawCalls:function(){this.clearGroups()},computeTangents:function(){},computeOffsets:function(){}}),Object.defineProperties(Ft.prototype,{drawcalls:{get:function(){return this.groups}},offsets:{get:function(){return this.groups}}}),Object.assign(mo.prototype,{getArrays:function(){},addShapeList:function(){},addShape:function(){}}),Object.defineProperties(oh.prototype,{dynamic:{set:function(){}},onUpdate:{value:function(){return this}}}),Object.defineProperties(Wt.prototype,{wrapAround:{get:function(){},set:function(){}},overdraw:{get:function(){},set:function(){}},wrapRGB:{get:function(){return new P}},shading:{get:function(){},set:function(t){this.flatShading=t===1}}}),Object.defineProperties($r.prototype,{metal:{get:function(){return!1},set:function(){}}}),Object.defineProperties($e.prototype,{derivatives:{get:function(){return this.extensions.derivatives},set:function(t){this.extensions.derivatives=t}}}),Object.assign(xe.prototype,{clearTarget:function(t,e,i,n){this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return this.getRenderTarget()},getMaxAnisotropy:function(){return this.capabilities.getMaxAnisotropy()},getPrecision:function(){return this.capabilities.precision},resetGLState:function(){return this.state.reset()},supportsFloatTextures:function(){return this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return this.capabilities.vertexTextures},supportsInstancedArrays:function(){return this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){this.setScissorTest(t)},initMaterial:function(){},addPrePlugin:function(){},addPostPlugin:function(){},updateShadowMap:function(){},setFaceCulling:function(){}}),Object.defineProperties(xe.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){this.shadowMap.type=t}},shadowMapCullFace:{get:function(){},set:function(){}}}),Object.defineProperties(ye.prototype,{cullFace:{get:function(){},set:function(){}},renderReverseSided:{get:function(){},set:function(){}},renderSingleSided:{get:function(){},set:function(){}}}),Object.defineProperties(S.prototype,{wrapS:{get:function(){return this.texture.wrapS},set:function(t){this.texture.wrapS=t}},wrapT:{get:function(){return this.texture.wrapT},set:function(t){this.texture.wrapT=t}},magFilter:{get:function(){return this.texture.magFilter},set:function(t){this.texture.magFilter=t}},minFilter:{get:function(){return this.texture.minFilter},set:function(t){this.texture.minFilter=t}},anisotropy:{get:function(){return this.texture.anisotropy},set:function(t){this.texture.anisotropy=t}},offset:{get:function(){return this.texture.offset},set:function(t){this.texture.offset=t}},repeat:{get:function(){return this.texture.repeat},set:function(t){this.texture.repeat=t}},format:{get:function(){return this.texture.format},set:function(t){this.texture.format=t}},type:{get:function(){return this.texture.type},set:function(t){this.texture.type=t}},generateMipmaps:{get:function(){return this.texture.generateMipmaps},set:function(t){this.texture.generateMipmaps=t}}}),Object.defineProperties(mi.prototype,{standing:{set:function(){}},userHeight:{set:function(){}}}),Sa.prototype.load=function(t){var e=this;return new yn().load(t,function(i){e.setBuffer(i)}),this},Ns.prototype.getData=function(){return this.getFrequencyData()},fl.prototype.updateCubeMap=function(t,e){return this.update(t,e)},ls.crossOrigin=void 0,ls.loadTexture=function(t,e,i,n){var s=new dn;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},ls.loadTextureCube=function(t,e,i,n){var s=new Fi;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},ls.loadCompressedTexture=function(){},ls.loadCompressedTextureCube=function(){},x.WebGLRenderTargetCube=b,x.WebGLRenderTarget=S,x.WebGLRenderer=xe,x.ShaderLib=Mo,x.UniformsLib=qe,x.UniformsUtils=Nn,x.ShaderChunk=Ci,x.FogExp2=Re,x.Fog=En,x.Scene=qn,x.Sprite=nn,x.LOD=rn,x.SkinnedMesh=Gi,x.Skeleton=cn,x.Bone=fn,x.Mesh=pi,x.LineSegments=gi,x.LineLoop=fo,x.Line=ji,x.Points=ha,x.Group=ci,x.VideoTexture=kh,x.DataTexture=O,x.DataTexture3D=Q,x.CompressedTexture=Jo,x.CubeTexture=z,x.CanvasTexture=Ka,x.DepthTexture=Qa,x.Texture=g,x.AnimationLoader=Qt,x.CompressedTextureLoader=Zt,x.DataTextureLoader=Ue,x.CubeTextureLoader=Fi,x.TextureLoader=dn,x.ObjectLoader=cl,x.MaterialLoader=ih,x.BufferGeometryLoader=Fh,x.DefaultLoadingManager=er,x.LoadingManager=ns,x.JSONLoader=Bs,x.ImageLoader=ai,x.ImageBitmapLoader=Uh,x.FontLoader=Ru,x.FileLoader=Lt,x.Loader=zo,x.LoaderUtils=Hs,x.Cache=So,x.AudioLoader=yn,x.SpotLightShadow=hl,x.SpotLight=ul,x.PointLight=zs,x.RectAreaLight=eh,x.HemisphereLight=ll,x.DirectionalLightShadow=os,x.DirectionalLight=wo,x.AmbientLight=ks,x.LightShadow=xo,x.Light=tn,x.StereoCamera=Wn,x.PerspectiveCamera=_e,x.OrthographicCamera=Ta,x.CubeCamera=fl,x.ArrayCamera=Fe,x.Camera=Be,x.AudioListener=rh,x.PositionalAudio=dl,x.AudioContext=Kh,x.AudioAnalyser=Ns,x.Audio=Sa,x.VectorKeyframeTrack=wa,x.StringKeyframeTrack=th,x.QuaternionKeyframeTrack=xa,x.NumberKeyframeTrack=Kr,x.ColorKeyframeTrack=Ql,x.BooleanKeyframeTrack=Kl,x.PropertyMixer=pl,x.PropertyBinding=bn,x.KeyframeTrack=Vn,x.AnimationUtils=Zn,x.AnimationObjectGroup=Ea,x.AnimationMixer=ss,x.AnimationClip=xr,x.Uniform=oh,x.InstancedBufferGeometry=Vh,x.BufferGeometry=Ft,x.Geometry=X,x.InterleavedBufferAttribute=Bi,x.InstancedInterleavedBuffer=Wh,x.InterleavedBuffer=ki,x.InstancedBufferAttribute=jh,x.Face3=I,x.Object3D=N,x.Raycaster=Ou,x.Layers=U,x.EventDispatcher=a,x.Clock=Hh,x.QuaternionLinearInterpolant=lr,x.LinearInterpolant=zr,x.DiscreteInterpolant=Ds,x.CubicInterpolant=al,x.Interpolant=Kn,x.Triangle=Oe,x.Math=di,x.Spherical=Xh,x.Cylindrical=it,x.Plane=F,x.Frustum=E,x.Sphere=R,x.Ray=Si,x.Matrix4=c,x.Matrix3=m,x.Box3=k,x.Box2=as,x.Line3=ba,x.Euler=C,x.Vector4=v,x.Vector3=u,x.Vector2=o,x.Quaternion=f,x.Color=P,x.ImmediateRenderObject=Yn,x.VertexNormalsHelper=_i,x.SpotLightHelper=Ca,x.SkeletonHelper=Aa,x.PointLightHelper=Br,x.RectAreaLightHelper=Pa,x.HemisphereLightHelper=La,x.GridHelper=vl,x.PolarGridHelper=sh,x.FaceNormalsHelper=yl,x.DirectionalLightHelper=pr,x.CameraHelper=_l,x.BoxHelper=ko,x.Box3Helper=xl,x.PlaneHelper=wl,x.ArrowHelper=Bo,x.AxesHelper=wr,x.Shape=tr,x.Path=dr,x.ShapePath=nh,x.Font=Gh,x.CurvePath=Do,x.Curve=Ee,x.ImageUtils=ls,x.ShapeUtils=To,x.WebGLUtils=He,x.WireframeGeometry=ua,x.ParametricGeometry=tl,x.ParametricBufferGeometry=ca,x.TetrahedronGeometry=el,x.TetrahedronBufferGeometry=fa,x.OctahedronGeometry=il,x.OctahedronBufferGeometry=ws,x.IcosahedronGeometry=nl,x.IcosahedronBufferGeometry=da,x.DodecahedronGeometry=pa,x.DodecahedronBufferGeometry=ma,x.PolyhedronGeometry=Xi,x.PolyhedronBufferGeometry=xi,x.TubeGeometry=vn,x.TubeBufferGeometry=$o,x.TorusKnotGeometry=Jr,x.TorusKnotBufferGeometry=Ms,x.TorusGeometry=Ts,x.TorusBufferGeometry=Gn,x.TextGeometry=ol,x.TextBufferGeometry=Es,x.SphereGeometry=Ko,x.SphereBufferGeometry=Ir,x.RingGeometry=sl,x.RingBufferGeometry=bs,x.PlaneGeometry=Pe,x.PlaneBufferGeometry=pe,x.LatheGeometry=ya,x.LatheBufferGeometry=Qo,x.ShapeGeometry=Ro,x.ShapeBufferGeometry=ts,x.ExtrudeGeometry=Lo,x.ExtrudeBufferGeometry=mo,x.EdgesGeometry=es,x.ConeGeometry=_a,x.ConeBufferGeometry=Hn,x.CylinderGeometry=Oo,x.CylinderBufferGeometry=Io,x.CircleGeometry=Cs,x.CircleBufferGeometry=go,x.BoxGeometry=It,x.BoxBufferGeometry=Nt,x.ShadowMaterial=is,x.SpriteMaterial=Hi,x.RawShaderMaterial=As,x.ShaderMaterial=$e,x.PointsMaterial=Un,x.MeshPhysicalMaterial=Ps,x.MeshStandardMaterial=vo,x.MeshPhongMaterial=$r,x.MeshToonMaterial=Ls,x.MeshNormalMaterial=Rs,x.MeshLambertMaterial=Dr,x.MeshDepthMaterial=se,x.MeshDistanceMaterial=te,x.MeshBasicMaterial=Ge,x.MeshMatcapMaterial=Os,x.LineDashedMaterial=Is,x.LineBasicMaterial=Ni,x.Material=Wt,x.Float64BufferAttribute=At,x.Float32BufferAttribute=Et,x.Uint32BufferAttribute=Pt,x.Int32BufferAttribute=G,x.Uint16BufferAttribute=_t,x.Int16BufferAttribute=tt,x.Uint8ClampedBufferAttribute=Rt,x.Uint8BufferAttribute=ct,x.Int8BufferAttribute=Z,x.BufferAttribute=J,x.ArcCurve=Ma,x.CatmullRomCurve3=In,x.CubicBezierCurve=ur,x.CubicBezierCurve3=Mi,x.EllipseCurve=Qn,x.LineCurve=cr,x.LineCurve3=kr,x.QuadraticBezierCurve=fr,x.QuadraticBezierCurve3=_o,x.SplineCurve=Qr,x.REVISION="98",x.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},x.CullFaceNone=0,x.CullFaceBack=1,x.CullFaceFront=2,x.CullFaceFrontBack=3,x.FrontFaceDirectionCW=0,x.FrontFaceDirectionCCW=1,x.BasicShadowMap=0,x.PCFShadowMap=1,x.PCFSoftShadowMap=2,x.FrontSide=0,x.BackSide=1,x.DoubleSide=2,x.FlatShading=1,x.SmoothShading=2,x.NoColors=0,x.FaceColors=1,x.VertexColors=2,x.NoBlending=0,x.NormalBlending=1,x.AdditiveBlending=2,x.SubtractiveBlending=3,x.MultiplyBlending=4,x.CustomBlending=5,x.AddEquation=100,x.SubtractEquation=101,x.ReverseSubtractEquation=102,x.MinEquation=103,x.MaxEquation=104,x.ZeroFactor=200,x.OneFactor=201,x.SrcColorFactor=202,x.OneMinusSrcColorFactor=203,x.SrcAlphaFactor=204,x.OneMinusSrcAlphaFactor=205,x.DstAlphaFactor=206,x.OneMinusDstAlphaFactor=207,x.DstColorFactor=208,x.OneMinusDstColorFactor=209,x.SrcAlphaSaturateFactor=210,x.NeverDepth=0,x.AlwaysDepth=1,x.LessDepth=2,x.LessEqualDepth=3,x.EqualDepth=4,x.GreaterEqualDepth=5,x.GreaterDepth=6,x.NotEqualDepth=7,x.MultiplyOperation=0,x.MixOperation=1,x.AddOperation=2,x.NoToneMapping=0,x.LinearToneMapping=1,x.ReinhardToneMapping=2,x.Uncharted2ToneMapping=3,x.CineonToneMapping=4,x.UVMapping=300,x.CubeReflectionMapping=301,x.CubeRefractionMapping=302,x.EquirectangularReflectionMapping=303,x.EquirectangularRefractionMapping=304,x.SphericalReflectionMapping=305,x.CubeUVReflectionMapping=306,x.CubeUVRefractionMapping=307,x.RepeatWrapping=1e3,x.ClampToEdgeWrapping=1001,x.MirroredRepeatWrapping=1002,x.NearestFilter=1003,x.NearestMipMapNearestFilter=1004,x.NearestMipMapLinearFilter=1005,x.LinearFilter=1006,x.LinearMipMapNearestFilter=1007,x.LinearMipMapLinearFilter=1008,x.UnsignedByteType=1009,x.ByteType=1010,x.ShortType=1011,x.UnsignedShortType=1012,x.IntType=1013,x.UnsignedIntType=1014,x.FloatType=1015,x.HalfFloatType=1016,x.UnsignedShort4444Type=1017,x.UnsignedShort5551Type=1018,x.UnsignedShort565Type=1019,x.UnsignedInt248Type=1020,x.AlphaFormat=1021,x.RGBFormat=1022,x.RGBAFormat=1023,x.LuminanceFormat=1024,x.LuminanceAlphaFormat=1025,x.RGBEFormat=1023,x.DepthFormat=1026,x.DepthStencilFormat=1027,x.RedFormat=1028,x.RGB_S3TC_DXT1_Format=33776,x.RGBA_S3TC_DXT1_Format=33777,x.RGBA_S3TC_DXT3_Format=33778,x.RGBA_S3TC_DXT5_Format=33779,x.RGB_PVRTC_4BPPV1_Format=35840,x.RGB_PVRTC_2BPPV1_Format=35841,x.RGBA_PVRTC_4BPPV1_Format=35842,x.RGBA_PVRTC_2BPPV1_Format=35843,x.RGB_ETC1_Format=36196,x.RGBA_ASTC_4x4_Format=37808,x.RGBA_ASTC_5x4_Format=37809,x.RGBA_ASTC_5x5_Format=37810,x.RGBA_ASTC_6x5_Format=37811,x.RGBA_ASTC_6x6_Format=37812,x.RGBA_ASTC_8x5_Format=37813,x.RGBA_ASTC_8x6_Format=37814,x.RGBA_ASTC_8x8_Format=37815,x.RGBA_ASTC_10x5_Format=37816,x.RGBA_ASTC_10x6_Format=37817,x.RGBA_ASTC_10x8_Format=37818,x.RGBA_ASTC_10x10_Format=37819,x.RGBA_ASTC_12x10_Format=37820,x.RGBA_ASTC_12x12_Format=37821,x.LoopOnce=2200,x.LoopRepeat=2201,x.LoopPingPong=2202,x.InterpolateDiscrete=2300,x.InterpolateLinear=2301,x.InterpolateSmooth=2302,x.ZeroCurvatureEnding=2400,x.ZeroSlopeEnding=2401,x.WrapAroundEnding=2402,x.TrianglesDrawMode=0,x.TriangleStripDrawMode=1,x.TriangleFanDrawMode=2,x.LinearEncoding=3e3,x.sRGBEncoding=3001,x.GammaEncoding=3007,x.RGBEEncoding=3002,x.LogLuvEncoding=3003,x.RGBM7Encoding=3004,x.RGBM16Encoding=3005,x.RGBDEncoding=3006,x.BasicDepthPacking=3200,x.RGBADepthPacking=3201,x.TangentSpaceNormalMap=0,x.ObjectSpaceNormalMap=1,x.CubeGeometry=It,x.Face4=function(t,e,i,n,s,l,d){return new I(t,e,i,s,l,d)},x.LineStrip=0,x.LinePieces=1,x.MeshFaceMaterial=function(t){return t},x.MultiMaterial=function(t){return t===void 0&&(t=[]),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},x.PointCloud=function(t,e){return new ha(t,e)},x.Particle=function(t){return new nn(t)},x.ParticleSystem=function(t,e){return new ha(t,e)},x.PointCloudMaterial=function(t){return new Un(t)},x.ParticleBasicMaterial=function(t){return new Un(t)},x.ParticleSystemMaterial=function(t){return new Un(t)},x.Vertex=function(t,e,i){return new u(t,e,i)},x.DynamicBufferAttribute=function(t,e){return new J(t,e).setDynamic(!0)},x.Int8Attribute=function(t,e){return new Z(t,e)},x.Uint8Attribute=function(t,e){return new ct(t,e)},x.Uint8ClampedAttribute=function(t,e){return new Rt(t,e)},x.Int16Attribute=function(t,e){return new tt(t,e)},x.Uint16Attribute=function(t,e){return new _t(t,e)},x.Int32Attribute=function(t,e){return new G(t,e)},x.Uint32Attribute=function(t,e){return new Pt(t,e)},x.Float32Attribute=function(t,e){return new Et(t,e)},x.Float64Attribute=function(t,e){return new At(t,e)},x.ClosedSplineCurve3=Du,x.SplineCurve3=zu,x.Spline=qh,x.AxisHelper=function(t){return new wr(t)},x.BoundingBoxHelper=function(t,e){return new ko(t,e)},x.EdgesHelper=function(t,e){return new gi(new es(t.geometry),new Ni({color:e!==void 0?e:16777215}))},x.WireframeHelper=function(t,e){return new gi(new ua(t.geometry),new Ni({color:e!==void 0?e:16777215}))},x.XHRLoader=function(t){return new Lt(t)},x.BinaryTextureLoader=function(t){return new Ue(t)},x.GeometryUtils={merge:function(t,e,i){if(e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var n=e.matrix;e=e.geometry}t.merge(e,n,i)},center:function(t){return t.center()}},x.Projector=function(){this.projectVector=function(t,e){t.project(e)},this.unprojectVector=function(t,e){t.unproject(e)},this.pickingRay=function(){}},x.CanvasRenderer=function(){},x.SceneUtils={createMultiMaterialObject:function(){},detach:function(){},attach:function(){}},x.LensFlare=function(){},Object.defineProperty(x,"__esModule",{value:!0})}),THREE.Sky=function(){var x=THREE.Sky.SkyShader,a=new THREE.ShaderMaterial({fragmentShader:x.fragmentShader,vertexShader:x.vertexShader,uniforms:THREE.UniformsUtils.clone(x.uniforms),side:THREE.BackSide});THREE.Mesh.call(this,new THREE.BoxBufferGeometry(1,1,1),a)},THREE.Sky.prototype=Object.create(THREE.Mesh.prototype),THREE.Sky.SkyShader={uniforms:{luminance:{value:1},turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new THREE.Vector3}},vertexShader:["uniform vec3 sunPosition;","uniform float rayleigh;","uniform float turbidity;","uniform float mieCoefficient;","varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float e = 2.71828182845904523536028747135266249775724709369995957;","const float pi = 3.141592653589793238462643383279502884197169;","const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );","const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );","const float v = 4.0;","const vec3 K = vec3( 0.686, 0.678, 0.666 );","const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );","const float cutoffAngle = 1.6110731556870734;","const float steepness = 1.5;","const float EE = 1000.0;","float sunIntensity( float zenithAngleCos ) {"," zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );"," return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );","}","vec3 totalMie( float T ) {"," float c = ( 0.2 * T ) * 10E-18;"," return 0.434 * c * MieConst;","}","void main() {"," vec4 worldPosition = modelMatrix * vec4( position, 1.0 );"," vWorldPosition = worldPosition.xyz;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," gl_Position.z = gl_Position.w;"," vSunDirection = normalize( sunPosition );"," vSunE = sunIntensity( dot( vSunDirection, up ) );"," vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );"," float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );"," vBetaR = totalRayleigh * rayleighCoefficient;"," vBetaM = totalMie( turbidity ) * mieCoefficient;","}"].join(`
|
|
2570
|
+
`},Nn={merge:function(t){for(var e={},i=0;i<t.length;i++){var n=this.clone(t[i]),s;for(s in n)e[s]=n[s]}return e},clone:function(t){var e={},i;for(i in t){e[i]={};for(var n in t[i]){var s=t[i][n];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[i][n]=s.clone():Array.isArray(s)?e[i][n]=s.slice():e[i][n]=s}}return e}},to={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(P.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,i){return this.r=t,this.g=e,this.b=i,this},setHSL:function(){function t(e,i,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(i-e)*n:.5>n?i:n<2/3?e+6*(i-e)*(2/3-n):e}return function(e,i,n){return e=di.euclideanModulo(e,1),i=di.clamp(i,0,1),n=di.clamp(n,0,1),i===0?this.r=this.g=this.b=n:(i=.5>=n?n*(1+i):n+i-n*i,n=2*n-i,this.r=t(n,i,e+1/3),this.g=t(n,i,e),this.b=t(n,i,e-1/3)),this}}(),setStyle:function(t){function e(d){d!==void 0&&1>parseFloat(d)}var i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var n=i[2];switch(i[1]){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n)){n=parseFloat(i[1])/360;var s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(n,s,l)}}}else if(i=/^#([A-Fa-f0-9]+)$/.exec(t)){if(i=i[1],n=i.length,n===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(n===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return t&&0<t.length&&(i=to[t],i!==void 0&&this.setHex(i)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return e===void 0&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(e){return .04045>e?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(e){return .0031308>e?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(t={h:0,s:0,l:0});var e=this.r,i=this.g,n=this.b,s=Math.max(e,i,n),l=Math.min(e,i,n),d,p=(l+s)/2;if(l===s)l=d=0;else{var _=s-l;switch(l=.5>=p?_/(s+l):_/(2-s-l),s){case e:d=(i-n)/_+(i<n?6:0);break;case i:d=(n-e)/_+2;break;case n:d=(e-i)/_+4}d/=6}return t.h=d,t.s=l,t.l=p,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,i,n){return this.getHSL(t),t.h+=e,t.s+=i,t.l+=n,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(){var t={h:0,s:0,l:0},e={h:0,s:0,l:0};return function(i,n){this.getHSL(t),i.getHSL(e),i=di.lerp(t.h,e.h,n);var s=di.lerp(t.s,e.s,n);return n=di.lerp(t.l,e.l,n),this.setHSL(i,s,n),this}}(),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var qe={common:{diffuse:{value:new P(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new m},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new o(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new P(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new P(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new m}},sprite:{diffuse:{value:new P(15658734)},opacity:{value:1},center:{value:new o(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new m}}},Mo={basic:{uniforms:Nn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:Ci.meshbasic_vert,fragmentShader:Ci.meshbasic_frag},lambert:{uniforms:Nn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.fog,qe.lights,{emissive:{value:new P(0)}}]),vertexShader:Ci.meshlambert_vert,fragmentShader:Ci.meshlambert_frag},phong:{uniforms:Nn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new P(0)},specular:{value:new P(1118481)},shininess:{value:30}}]),vertexShader:Ci.meshphong_vert,fragmentShader:Ci.meshphong_frag},standard:{uniforms:Nn.merge([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new P(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:Ci.meshphysical_vert,fragmentShader:Ci.meshphysical_frag},matcap:{uniforms:Nn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:Ci.meshmatcap_vert,fragmentShader:Ci.meshmatcap_frag},points:{uniforms:Nn.merge([qe.points,qe.fog]),vertexShader:Ci.points_vert,fragmentShader:Ci.points_frag},dashed:{uniforms:Nn.merge([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ci.linedashed_vert,fragmentShader:Ci.linedashed_frag},depth:{uniforms:Nn.merge([qe.common,qe.displacementmap]),vertexShader:Ci.depth_vert,fragmentShader:Ci.depth_frag},normal:{uniforms:Nn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:Ci.normal_vert,fragmentShader:Ci.normal_frag},sprite:{uniforms:Nn.merge([qe.sprite,qe.fog]),vertexShader:Ci.sprite_vert,fragmentShader:Ci.sprite_frag},background:{uniforms:{uvTransform:{value:new m},t2D:{value:null}},vertexShader:Ci.background_vert,fragmentShader:Ci.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ci.cube_vert,fragmentShader:Ci.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ci.equirect_vert,fragmentShader:Ci.equirect_frag},distanceRGBA:{uniforms:Nn.merge([qe.common,qe.displacementmap,{referencePosition:{value:new u},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ci.distanceRGBA_vert,fragmentShader:Ci.distanceRGBA_frag},shadow:{uniforms:Nn.merge([qe.lights,qe.fog,{color:{value:new P(0)},opacity:{value:1}}]),vertexShader:Ci.shadow_vert,fragmentShader:Ci.shadow_frag}};Mo.physical={uniforms:Nn.merge([Mo.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:Ci.meshphysical_vert,fragmentShader:Ci.meshphysical_frag},Object.assign(I.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),C.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),C.DefaultOrder="XYZ",Object.defineProperties(C.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(C.prototype,{isEuler:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,i){var n=di.clamp,s=t.elements;t=s[0];var l=s[4],d=s[8],p=s[1],_=s[5],M=s[9],A=s[2],L=s[6];return s=s[10],e=e||this._order,e==="XYZ"?(this._y=Math.asin(n(d,-1,1)),.99999>Math.abs(d)?(this._x=Math.atan2(-M,s),this._z=Math.atan2(-l,t)):(this._x=Math.atan2(L,_),this._z=0)):e==="YXZ"?(this._x=Math.asin(-n(M,-1,1)),.99999>Math.abs(M)?(this._y=Math.atan2(d,s),this._z=Math.atan2(p,_)):(this._y=Math.atan2(-A,t),this._z=0)):e==="ZXY"?(this._x=Math.asin(n(L,-1,1)),.99999>Math.abs(L)?(this._y=Math.atan2(-A,s),this._z=Math.atan2(-l,_)):(this._y=0,this._z=Math.atan2(p,t))):e==="ZYX"?(this._y=Math.asin(-n(A,-1,1)),.99999>Math.abs(A)?(this._x=Math.atan2(L,s),this._z=Math.atan2(p,t)):(this._x=0,this._z=Math.atan2(-l,_))):e==="YZX"?(this._z=Math.asin(n(p,-1,1)),.99999>Math.abs(p)?(this._x=Math.atan2(-M,_),this._y=Math.atan2(-A,t)):(this._x=0,this._y=Math.atan2(d,s))):e==="XZY"&&(this._z=Math.asin(-n(l,-1,1)),.99999>Math.abs(l)?(this._x=Math.atan2(L,_),this._y=Math.atan2(d,t)):(this._x=Math.atan2(-M,s),this._y=0)),this._order=e,i!==!1&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new c;return function(e,i,n){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,i,n)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new f;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new u(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(U.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return(this.mask&t.mask)!==0}});var Yc=0;N.DefaultUp=new u(0,1,0),N.DefaultMatrixAutoUpdate=!0,N.prototype=Object.assign(Object.create(a.prototype),{constructor:N,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new f;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new f;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new u(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new u(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new u(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new u;return function(e,i){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(i)),this}}(),translateX:function(){var t=new u(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new u(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new u(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new c;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new f,e=new c,i=new u,n=new u;return function(s,l,d){s.isVector3?i.copy(s):i.set(s,l,d),s=this.parent,this.updateWorldMatrix(!0,!1),n.setFromMatrixPosition(this.matrixWorld),this.isCamera?e.lookAt(n,i,this.up):e.lookAt(i,n,this.up),this.quaternion.setFromRotationMatrix(e),s&&(e.extractRotation(s.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?this:(t&&t.isObject3D&&(t.parent!==null&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return e=this.children.indexOf(t),e!==-1&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var i=0,n=this.children.length;i<n;i++){var s=this.children[i].getObjectByProperty(t,e);if(s!==void 0)return s}},getWorldPosition:function(t){return t===void 0&&(t=new u),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new u,e=new u;return function(i){return i===void 0&&(i=new f),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,i,e),i}}(),getWorldScale:function(){var t=new u,e=new f;return function(i){return i===void 0&&(i=new u),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,i),i}}(),getWorldDirection:function(t){t===void 0&&(t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(t=this.children,e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)},toJSON:function(t){function e(A,L){return A[L.uuid]===void 0&&(A[L.uuid]=L.toJSON(t)),L.uuid}function i(A){var L=[],B;for(B in A){var H=A[B];delete H.metadata,L.push(H)}return L}var n=t===void 0||typeof t=="string",s={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},s.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var l={};if(l.uuid=this.uuid,l.type=this.type,this.name!==""&&(l.name=this.name),this.castShadow===!0&&(l.castShadow=!0),this.receiveShadow===!0&&(l.receiveShadow=!0),this.visible===!1&&(l.visible=!1),this.frustumCulled===!1&&(l.frustumCulled=!1),this.renderOrder!==0&&(l.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(l.userData=this.userData),l.layers=this.layers.mask,l.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(l.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){l.geometry=e(t.geometries,this.geometry);var d=this.geometry.parameters;if(d!==void 0&&d.shapes!==void 0)if(d=d.shapes,Array.isArray(d))for(var p=0,_=d.length;p<_;p++)e(t.shapes,d[p]);else e(t.shapes,d)}if(this.material!==void 0)if(Array.isArray(this.material)){for(d=[],p=0,_=this.material.length;p<_;p++)d.push(e(t.materials,this.material[p]));l.material=d}else l.material=e(t.materials,this.material);if(0<this.children.length)for(l.children=[],p=0;p<this.children.length;p++)l.children.push(this.children[p].toJSON(t).object);if(n){n=i(t.geometries),p=i(t.materials),_=i(t.textures);var M=i(t.images);d=i(t.shapes),0<n.length&&(s.geometries=n),0<p.length&&(s.materials=p),0<_.length&&(s.textures=_),0<M.length&&(s.images=M),0<d.length&&(s.shapes=d)}return s.object=l,s},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}});var Zc=0;X.prototype=Object.assign(Object.create(a.prototype),{constructor:X,isGeometry:!0,applyMatrix:function(t){for(var e=new m().getNormalMatrix(t),i=0,n=this.vertices.length;i<n;i++)this.vertices[i].applyMatrix4(t);for(i=0,n=this.faces.length;i<n;i++){t=this.faces[i],t.normal.applyMatrix3(e).normalize();for(var s=0,l=t.vertexNormals.length;s<l;s++)t.vertexNormals[s].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new N;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(q,$,rt,xt){var gt=p===void 0?[]:[i.colors[q].clone(),i.colors[$].clone(),i.colors[rt].clone()],Ct=d===void 0?[]:[new u().fromArray(d,3*q),new u().fromArray(d,3*$),new u().fromArray(d,3*rt)];xt=new I(q,$,rt,Ct,gt,xt),i.faces.push(xt),_!==void 0&&i.faceVertexUvs[0].push([new o().fromArray(_,2*q),new o().fromArray(_,2*$),new o().fromArray(_,2*rt)]),M!==void 0&&i.faceVertexUvs[1].push([new o().fromArray(M,2*q),new o().fromArray(M,2*$),new o().fromArray(M,2*rt)])}var i=this,n=t.index!==null?t.index.array:void 0,s=t.attributes,l=s.position.array,d=s.normal!==void 0?s.normal.array:void 0,p=s.color!==void 0?s.color.array:void 0,_=s.uv!==void 0?s.uv.array:void 0,M=s.uv2!==void 0?s.uv2.array:void 0;M!==void 0&&(this.faceVertexUvs[1]=[]);for(var A=s=0;s<l.length;s+=3,A+=2)i.vertices.push(new u().fromArray(l,s)),p!==void 0&&i.colors.push(new P().fromArray(p,s));var L=t.groups;if(0<L.length)for(s=0;s<L.length;s++){l=L[s];var B=l.start,H=l.count;for(A=B,B+=H;A<B;A+=3)n!==void 0?e(n[A],n[A+1],n[A+2],l.materialIndex):e(A,A+1,A+2,l.materialIndex)}else if(n!==void 0)for(s=0;s<n.length;s+=3)e(n[s],n[s+1],n[s+2]);else for(s=0;s<l.length/3;s+=3)e(s,s+1,s+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=e===0?1:1/e;var i=new c;return i.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var t=new u,e=new u,i=0,n=this.faces.length;i<n;i++){var s=this.faces[i],l=this.vertices[s.a],d=this.vertices[s.b];t.subVectors(this.vertices[s.c],d),e.subVectors(l,d),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,i=Array(this.vertices.length),n=0;for(e=this.vertices.length;n<e;n++)i[n]=new u;if(t){var s=new u,l=new u;for(t=0,n=this.faces.length;t<n;t++){e=this.faces[t];var d=this.vertices[e.a],p=this.vertices[e.b],_=this.vertices[e.c];s.subVectors(_,p),l.subVectors(d,p),s.cross(l),i[e.a].add(s),i[e.b].add(s),i[e.c].add(s)}}else for(this.computeFaceNormals(),t=0,n=this.faces.length;t<n;t++)e=this.faces[t],i[e.a].add(e.normal),i[e.b].add(e.normal),i[e.c].add(e.normal);for(n=0,e=this.vertices.length;n<e;n++)i[n].normalize();for(t=0,n=this.faces.length;t<n;t++)e=this.faces[t],d=e.vertexNormals,d.length===3?(d[0].copy(i[e.a]),d[1].copy(i[e.b]),d[2].copy(i[e.c])):(d[0]=i[e.a].clone(),d[1]=i[e.b].clone(),d[2]=i[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var i=this.faces[e],n=i.vertexNormals;n.length===3?(n[0].copy(i.normal),n[1].copy(i.normal),n[2].copy(i.normal)):(n[0]=i.normal.clone(),n[1]=i.normal.clone(),n[2]=i.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,i=0;for(e=this.faces.length;i<e;i++){var n=this.faces[i];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);var s=0;for(t=n.vertexNormals.length;s<t;s++)n.__originalVertexNormals[s]?n.__originalVertexNormals[s].copy(n.vertexNormals[s]):n.__originalVertexNormals[s]=n.vertexNormals[s].clone()}var l=new X;for(l.faces=this.faces,s=0,t=this.morphTargets.length;s<t;s++){if(!this.morphNormals[s]){this.morphNormals[s]={},this.morphNormals[s].faceNormals=[],this.morphNormals[s].vertexNormals=[],n=this.morphNormals[s].faceNormals;var d=this.morphNormals[s].vertexNormals;for(i=0,e=this.faces.length;i<e;i++){var p=new u,_={a:new u,b:new u,c:new u};n.push(p),d.push(_)}}for(d=this.morphNormals[s],l.vertices=this.morphTargets[s].vertices,l.computeFaceNormals(),l.computeVertexNormals(),i=0,e=this.faces.length;i<e;i++)n=this.faces[i],p=d.faceNormals[i],_=d.vertexNormals[i],p.copy(n.normal),_.a.copy(n.vertexNormals[0]),_.b.copy(n.vertexNormals[1]),_.c.copy(n.vertexNormals[2])}for(i=0,e=this.faces.length;i<e;i++)n=this.faces[i],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new R),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(t&&t.isGeometry){var n,s=this.vertices.length,l=this.vertices,d=t.vertices,p=this.faces,_=t.faces,M=this.faceVertexUvs[0],A=t.faceVertexUvs[0],L=this.colors,B=t.colors;i===void 0&&(i=0),e!==void 0&&(n=new m().getNormalMatrix(e)),t=0;for(var H=d.length;t<H;t++){var q=d[t].clone();e!==void 0&&q.applyMatrix4(e),l.push(q)}for(t=0,H=B.length;t<H;t++)L.push(B[t].clone());for(t=0,H=_.length;t<H;t++){d=_[t];var $=d.vertexNormals;for(B=d.vertexColors,L=new I(d.a+s,d.b+s,d.c+s),L.normal.copy(d.normal),n!==void 0&&L.normal.applyMatrix3(n).normalize(),e=0,l=$.length;e<l;e++)q=$[e].clone(),n!==void 0&&q.applyMatrix3(n).normalize(),L.vertexNormals.push(q);for(L.color.copy(d.color),e=0,l=B.length;e<l;e++)q=B[e],L.vertexColors.push(q.clone());L.materialIndex=d.materialIndex+i,p.push(L)}for(t=0,H=A.length;t<H;t++)if(i=A[t],n=[],i!==void 0){for(e=0,l=i.length;e<l;e++)n.push(i[e].clone());M.push(n)}}},mergeMesh:function(t){t&&t.isMesh&&(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix))},mergeVertices:function(){var t={},e=[],i=[],n=Math.pow(10,4),s,l=0;for(s=this.vertices.length;l<s;l++){var d=this.vertices[l];d=Math.round(d.x*n)+"_"+Math.round(d.y*n)+"_"+Math.round(d.z*n),t[d]===void 0?(t[d]=l,e.push(this.vertices[l]),i[l]=e.length-1):i[l]=i[t[d]]}for(t=[],l=0,s=this.faces.length;l<s;l++)for(n=this.faces[l],n.a=i[n.a],n.b=i[n.b],n.c=i[n.c],n=[n.a,n.b,n.c],d=0;3>d;d++)if(n[d]===n[(d+1)%3]){t.push(l);break}for(l=t.length-1;0<=l;l--)for(n=t[l],this.faces.splice(n,1),i=0,s=this.faceVertexUvs.length;i<s;i++)this.faceVertexUvs[i].splice(n,1);return l=this.vertices.length-e.length,this.vertices=e,l},setFromPoints:function(t){this.vertices=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];this.vertices.push(new u(n.x,n.y,n.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,i=0;i<e;i++)t[i]._id=i;t.sort(function(_,M){return _.materialIndex-M.materialIndex});var n=this.faceVertexUvs[0],s=this.faceVertexUvs[1],l,d;for(n&&n.length===e&&(l=[]),s&&s.length===e&&(d=[]),i=0;i<e;i++){var p=t[i]._id;l&&l.push(n[p]),d&&d.push(s[p])}l&&(this.faceVertexUvs[0]=l),d&&(this.faceVertexUvs[1]=d)},toJSON:function(){function t(Vt,K,ot){return ot?Vt|1<<K:Vt&~(1<<K)}function e(Vt){var K=Vt.x.toString()+Vt.y.toString()+Vt.z.toString();return M[K]!==void 0||(M[K]=_.length/3,_.push(Vt.x,Vt.y,Vt.z)),M[K]}function i(Vt){var K=Vt.r.toString()+Vt.g.toString()+Vt.b.toString();return L[K]!==void 0||(L[K]=A.length,A.push(Vt.getHex())),L[K]}function n(Vt){var K=Vt.x.toString()+Vt.y.toString();return H[K]!==void 0||(H[K]=B.length/2,B.push(Vt.x,Vt.y)),H[K]}var s={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.parameters!==void 0){var l=this.parameters,d;for(d in l)l[d]!==void 0&&(s[d]=l[d]);return s}for(l=[],d=0;d<this.vertices.length;d++){var p=this.vertices[d];l.push(p.x,p.y,p.z)}p=[];var _=[],M={},A=[],L={},B=[],H={};for(d=0;d<this.faces.length;d++){var q=this.faces[d],$=this.faceVertexUvs[0][d]!==void 0,rt=0<q.normal.length(),xt=0<q.vertexNormals.length,gt=q.color.r!==1||q.color.g!==1||q.color.b!==1,Ct=0<q.vertexColors.length,wt=0;wt=t(wt,0,0),wt=t(wt,1,!0),wt=t(wt,2,!1),wt=t(wt,3,$),wt=t(wt,4,rt),wt=t(wt,5,xt),wt=t(wt,6,gt),wt=t(wt,7,Ct),p.push(wt),p.push(q.a,q.b,q.c),p.push(q.materialIndex),$&&($=this.faceVertexUvs[0][d],p.push(n($[0]),n($[1]),n($[2]))),rt&&p.push(e(q.normal)),xt&&(rt=q.vertexNormals,p.push(e(rt[0]),e(rt[1]),e(rt[2]))),gt&&p.push(i(q.color)),Ct&&(q=q.vertexColors,p.push(i(q[0]),i(q[1]),i(q[2])))}return s.data={},s.data.vertices=l,s.data.normals=_,0<A.length&&(s.data.colors=A),0<B.length&&(s.data.uvs=[B]),s.data.faces=p,s},clone:function(){return new X().copy(this)},copy:function(t){var e,i,n;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var s=t.vertices,l=0;for(e=s.length;l<e;l++)this.vertices.push(s[l].clone());for(s=t.colors,l=0,e=s.length;l<e;l++)this.colors.push(s[l].clone());for(s=t.faces,l=0,e=s.length;l<e;l++)this.faces.push(s[l].clone());for(l=0,e=t.faceVertexUvs.length;l<e;l++){var d=t.faceVertexUvs[l];for(this.faceVertexUvs[l]===void 0&&(this.faceVertexUvs[l]=[]),s=0,i=d.length;s<i;s++){var p=d[s],_=[],M=0;for(n=p.length;M<n;M++)_.push(p[M].clone());this.faceVertexUvs[l].push(_)}}for(M=t.morphTargets,l=0,e=M.length;l<e;l++){if(n={},n.name=M[l].name,M[l].vertices!==void 0)for(n.vertices=[],s=0,i=M[l].vertices.length;s<i;s++)n.vertices.push(M[l].vertices[s].clone());if(M[l].normals!==void 0)for(n.normals=[],s=0,i=M[l].normals.length;s<i;s++)n.normals.push(M[l].normals[s].clone());this.morphTargets.push(n)}for(M=t.morphNormals,l=0,e=M.length;l<e;l++){if(n={},M[l].vertexNormals!==void 0)for(n.vertexNormals=[],s=0,i=M[l].vertexNormals.length;s<i;s++)d=M[l].vertexNormals[s],p={},p.a=d.a.clone(),p.b=d.b.clone(),p.c=d.c.clone(),n.vertexNormals.push(p);if(M[l].faceNormals!==void 0)for(n.faceNormals=[],s=0,i=M[l].faceNormals.length;s<i;s++)n.faceNormals.push(M[l].faceNormals[s].clone());this.morphNormals.push(n)}for(s=t.skinWeights,l=0,e=s.length;l<e;l++)this.skinWeights.push(s[l].clone());for(s=t.skinIndices,l=0,e=s.length;l<e;l++)this.skinIndices.push(s[l].clone());for(s=t.lineDistances,l=0,e=s.length;l<e;l++)this.lineDistances.push(s[l]);return l=t.boundingBox,l!==null&&(this.boundingBox=l.clone()),l=t.boundingSphere,l!==null&&(this.boundingSphere=l.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(J.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(J.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,s=this.itemSize;n<s;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new P),e[i++]=l.r,e[i++]=l.g,e[i++]=l.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new o),e[i++]=l.x,e[i++]=l.y}return this},copyVector3sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new u),e[i++]=l.x,e[i++]=l.y,e[i++]=l.z}return this},copyVector4sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(l=new v),e[i++]=l.x,e[i++]=l.y,e[i++]=l.z,e[i++]=l.w}return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),Z.prototype=Object.create(J.prototype),Z.prototype.constructor=Z,ct.prototype=Object.create(J.prototype),ct.prototype.constructor=ct,Rt.prototype=Object.create(J.prototype),Rt.prototype.constructor=Rt,tt.prototype=Object.create(J.prototype),tt.prototype.constructor=tt,_t.prototype=Object.create(J.prototype),_t.prototype.constructor=_t,G.prototype=Object.create(J.prototype),G.prototype.constructor=G,Pt.prototype=Object.create(J.prototype),Pt.prototype.constructor=Pt,Et.prototype=Object.create(J.prototype),Et.prototype.constructor=Et,At.prototype=Object.create(J.prototype),At.prototype.constructor=At,Object.assign(ce.prototype,{computeGroups:function(t){var e=[],i=void 0;t=t.faces;for(var n=0;n<t.length;n++){var s=t[n];if(s.materialIndex!==i){i=s.materialIndex,l!==void 0&&(l.count=3*n-l.start,e.push(l));var l={start:3*n,materialIndex:i}}}l!==void 0&&(l.count=3*n-l.start,e.push(l)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,n=t.faceVertexUvs,s=n[0]&&0<n[0].length,l=n[1]&&0<n[1].length,d=t.morphTargets,p=d.length;if(0<p){for(var _=[],M=0;M<p;M++)_[M]={name:d[M].name,data:[]};this.morphTargets.position=_}var A=t.morphNormals,L=A.length;if(0<L){var B=[];for(M=0;M<L;M++)B[M]={name:A[M].name,data:[]};this.morphTargets.normal=B}var H=t.skinIndices,q=t.skinWeights,$=H.length===i.length,rt=q.length===i.length;for(0<i.length&&e.length,M=0;M<e.length;M++){var xt=e[M];this.vertices.push(i[xt.a],i[xt.b],i[xt.c]);var gt=xt.vertexNormals;for(gt.length===3?this.normals.push(gt[0],gt[1],gt[2]):(gt=xt.normal,this.normals.push(gt,gt,gt)),gt=xt.vertexColors,gt.length===3?this.colors.push(gt[0],gt[1],gt[2]):(gt=xt.color,this.colors.push(gt,gt,gt)),s===!0&&(gt=n[0][M],gt!==void 0?this.uvs.push(gt[0],gt[1],gt[2]):this.uvs.push(new o,new o,new o)),l===!0&&(gt=n[1][M],gt!==void 0?this.uvs2.push(gt[0],gt[1],gt[2]):this.uvs2.push(new o,new o,new o)),gt=0;gt<p;gt++){var Ct=d[gt].vertices;_[gt].data.push(Ct[xt.a],Ct[xt.b],Ct[xt.c])}for(gt=0;gt<L;gt++)Ct=A[gt].vertexNormals[M],B[gt].data.push(Ct.a,Ct.b,Ct.c);$&&this.skinIndices.push(H[xt.a],H[xt.b],H[xt.c]),rt&&this.skinWeights.push(q[xt.a],q[xt.b],q[xt.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var Jc=1;Ft.prototype=Object.assign(Object.create(a.prototype),{constructor:Ft,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<re(t)?Pt:_t)(t,1):this.index=t},addAttribute:function(t,e,i){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?t==="index"?(this.setIndex(e),this):(this.attributes[t]=e,this):this.addAttribute(t,new J(e,i))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:i!==void 0?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return e!==void 0&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),e=this.attributes.normal,e!==void 0&&(new m().getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new N;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new Et(3*e.vertices.length,3);var i=new Et(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new Et(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],i=0,n=t.length;i<n;i++){var s=t[i];e.push(s.x,s.y,s.z||0)}return this.addAttribute("position",new Et(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var i=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(i=void 0,e.elementsNeedUpdate=!1),i===void 0)return this.fromGeometry(e);i.verticesNeedUpdate=e.verticesNeedUpdate,i.normalsNeedUpdate=e.normalsNeedUpdate,i.colorsNeedUpdate=e.colorsNeedUpdate,i.uvsNeedUpdate=e.uvsNeedUpdate,i.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=i}return e.verticesNeedUpdate===!0&&(i=this.attributes.position,i!==void 0&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(i=this.attributes.normal,i!==void 0&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(i=this.attributes.color,i!==void 0&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,i!==void 0&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,i!==void 0&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new ce().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);this.addAttribute("position",new J(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new J(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new J(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new J(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new J(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups;for(var i in t.morphTargets){e=[];for(var n=t.morphTargets[i],s=0,l=n.length;s<l;s++){var d=n[s],p=new Et(3*d.data.length,3);p.name=d.name,e.push(p.copyVector3sArray(d.data))}this.morphAttributes[i]=e}return 0<t.skinIndices.length&&(i=new Et(4*t.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(i=new Et(4*t.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(t.skinWeights))),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k);var t=this.attributes.position;t!==void 0?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)},computeBoundingSphere:function(){var t=new k,e=new u;return function(){this.boundingSphere===null&&(this.boundingSphere=new R);var i=this.attributes.position;if(i){var n=this.boundingSphere.center;t.setFromBufferAttribute(i),t.getCenter(n);for(var s=0,l=0,d=i.count;l<d;l++)e.x=i.getX(l),e.y=i.getY(l),e.z=i.getZ(l),s=Math.max(s,n.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var i=e.position.array;if(e.normal===void 0)this.addAttribute("normal",new J(new Float32Array(i.length),3));else for(var n=e.normal.array,s=0,l=n.length;s<l;s++)n[s]=0;n=e.normal.array;var d=new u,p=new u,_=new u,M=new u,A=new u;if(t){var L=t.array;for(s=0,l=t.count;s<l;s+=3){t=3*L[s+0];var B=3*L[s+1],H=3*L[s+2];d.fromArray(i,t),p.fromArray(i,B),_.fromArray(i,H),M.subVectors(_,p),A.subVectors(d,p),M.cross(A),n[t]+=M.x,n[t+1]+=M.y,n[t+2]+=M.z,n[B]+=M.x,n[B+1]+=M.y,n[B+2]+=M.z,n[H]+=M.x,n[H+1]+=M.y,n[H+2]+=M.z}}else for(s=0,l=i.length;s<l;s+=9)d.fromArray(i,s),p.fromArray(i,s+3),_.fromArray(i,s+6),M.subVectors(_,p),A.subVectors(d,p),M.cross(A),n[s]=M.x,n[s+1]=M.y,n[s+2]=M.z,n[s+3]=M.x,n[s+4]=M.y,n[s+5]=M.z,n[s+6]=M.x,n[s+7]=M.y,n[s+8]=M.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){e===void 0&&(e=0);var i=this.attributes,n;for(n in i)if(t.attributes[n]!==void 0){var s=i[n].array,l=t.attributes[n],d=l.array,p=0;for(l=l.itemSize*e;p<d.length;p++,l++)s[l]=d[p]}return this}},normalizeNormals:function(){var t=new u;return function(){for(var e=this.attributes.normal,i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.normalize(),e.setXYZ(i,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(this.index===null)return this;var t=new Ft,e=this.index.array,i=this.attributes,n;for(n in i){var s=i[n],l=s.array,d=s.itemSize,p=new l.constructor(e.length*d),_=0;s=0;for(var M=e.length;s<M;s++)for(var A=e[s]*d,L=0;L<d;L++)p[_++]=l[A++];t.addAttribute(n,new J(p,d))}for(e=this.groups,s=0,M=e.length;s<M;s++)i=e[s],t.addGroup(i.start,i.count,i.materialIndex);return t},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(s in e)e[s]!==void 0&&(t[s]=e[s]);return t}t.data={attributes:{}};var i=this.index;i!==null&&(e=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:e}),i=this.attributes;for(s in i){var n=i[s];e=Array.prototype.slice.call(n.array),t.data.attributes[s]={itemSize:n.itemSize,type:n.array.constructor.name,array:e,normalized:n.normalized}}var s=this.groups;return 0<s.length&&(t.data.groups=JSON.parse(JSON.stringify(s))),s=this.boundingSphere,s!==null&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return new Ft().copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var i=t.index;i!==null&&this.setIndex(i.clone()),i=t.attributes;for(d in i)this.addAttribute(d,i[d].clone());var n=t.morphAttributes;for(d in n){var s=[],l=n[d];for(i=0,e=l.length;i<e;i++)s.push(l[i].clone());this.morphAttributes[d]=s}var d=t.groups;for(i=0,e=d.length;i<e;i++)n=d[i],this.addGroup(n.start,n.count,n.materialIndex);return d=t.boundingBox,d!==null&&(this.boundingBox=d.clone()),d=t.boundingSphere,d!==null&&(this.boundingSphere=d.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),It.prototype=Object.create(X.prototype),It.prototype.constructor=It,Bt.prototype=Object.create(Ft.prototype),Bt.prototype.constructor=Bt,Pe.prototype=Object.create(X.prototype),Pe.prototype.constructor=Pe,pe.prototype=Object.create(Ft.prototype),pe.prototype.constructor=pe;var ku=0;Wt.prototype=Object.assign(Object.create(a.prototype),{constructor:Wt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var i=t[e];if(i!==void 0)if(e==="shading")this.flatShading=i===1;else{var n=this[e];n===void 0||(n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i)}}},toJSON:function(t){function e(s){var l=[],d;for(d in s){var p=s[d];delete p.metadata,l.push(p)}return l}var i=t===void 0||typeof t=="string";i&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};return n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearCoat!==void 0&&(n.clearCoat=this.clearCoat),this.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==0&&(n.side=this.side),this.vertexColors!==0&&(n.vertexColors=this.vertexColors),1>this.opacity&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),0<this.alphaTest&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData),i&&(i=e(t.textures),t=e(t.images),0<i.length&&(n.textures=i),0<t.length&&(n.images=t)),n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,i=null;if(e!==null){var n=e.length;i=Array(n);for(var s=0;s!==n;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),$e.prototype=Object.create(Wt.prototype),$e.prototype.constructor=$e,$e.prototype.isShaderMaterial=!0,$e.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Nn.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$e.prototype.toJSON=function(t){var e=Wt.prototype.toJSON.call(this,t);e.uniforms={};for(var i in this.uniforms){var n=this.uniforms[i].value;e.uniforms[i]=n.isTexture?{type:"t",value:n.toJSON(t).uuid}:n.isColor?{type:"c",value:n.getHex()}:n.isVector2?{type:"v2",value:n.toArray()}:n.isVector3?{type:"v3",value:n.toArray()}:n.isVector4?{type:"v4",value:n.toArray()}:n.isMatrix4?{type:"m4",value:n.toArray()}:{value:n}}return 0<Object.keys(this.defines).length&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(Si.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(e=new u),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new u;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return e===void 0&&(e=new u),e.subVectors(t,this.origin),t=e.dot(this.direction),0>t?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new u;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new u,e=new u,i=new u;return function(n,s,l,d){t.copy(n).add(s).multiplyScalar(.5),e.copy(s).sub(n).normalize(),i.copy(this.origin).sub(t);var p=.5*n.distanceTo(s),_=-this.direction.dot(e),M=i.dot(this.direction),A=-i.dot(e),L=i.lengthSq(),B=Math.abs(1-_*_);if(0<B){n=_*A-M,s=_*M-A;var H=p*B;0<=n?s>=-H?s<=H?(p=1/B,n*=p,s*=p,_=n*(n+_*s+2*M)+s*(_*n+s+2*A)+L):(s=p,n=Math.max(0,-(_*s+M)),_=-n*n+s*(s+2*A)+L):(s=-p,n=Math.max(0,-(_*s+M)),_=-n*n+s*(s+2*A)+L):s<=-H?(n=Math.max(0,-(-_*p+M)),s=0<n?-p:Math.min(Math.max(-p,-A),p),_=-n*n+s*(s+2*A)+L):s<=H?(n=0,s=Math.min(Math.max(-p,-A),p),_=s*(s+2*A)+L):(n=Math.max(0,-(_*p+M)),s=0<n?p:Math.min(Math.max(-p,-A),p),_=-n*n+s*(s+2*A)+L)}else s=0<_?-p:p,n=Math.max(0,-(_*s+M)),_=-n*n+s*(s+2*A)+L;return l&&l.copy(this.direction).multiplyScalar(n).add(this.origin),d&&d.copy(e).multiplyScalar(s).add(t),_}}(),intersectSphere:function(){var t=new u;return function(e,i){t.subVectors(e.center,this.origin);var n=t.dot(this.direction),s=t.dot(t)-n*n;return e=e.radius*e.radius,s>e?null:(e=Math.sqrt(e-s),s=n-e,n+=e,0>s&&0>n?null:0>s?this.at(n,i):this.at(s,i))}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return e===0?t.distanceToPoint(this.origin)===0?0:null:(t=-(this.origin.dot(t.normal)+t.constant)/e,0<=t?t:null)},intersectPlane:function(t,e){return t=this.distanceToPlane(t),t===null?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return e===0||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var i=1/this.direction.x,n=1/this.direction.y,s=1/this.direction.z,l=this.origin;if(0<=i){var d=(t.min.x-l.x)*i;i*=t.max.x-l.x}else d=(t.max.x-l.x)*i,i*=t.min.x-l.x;if(0<=n){var p=(t.min.y-l.y)*n;n*=t.max.y-l.y}else p=(t.max.y-l.y)*n,n*=t.min.y-l.y;return d>n||p>i||((p>d||d!==d)&&(d=p),(n<i||i!==i)&&(i=n),0<=s?(p=(t.min.z-l.z)*s,t=(t.max.z-l.z)*s):(p=(t.max.z-l.z)*s,t=(t.min.z-l.z)*s),d>t||p>i)?null:((p>d||d!==d)&&(d=p),(t<i||i!==i)&&(i=t),0>i?null:this.at(0<=d?d:i,e))},intersectsBox:function(){var t=new u;return function(e){return this.intersectBox(e,t)!==null}}(),intersectTriangle:function(){var t=new u,e=new u,i=new u,n=new u;return function(s,l,d,p,_){if(e.subVectors(l,s),i.subVectors(d,s),n.crossVectors(e,i),l=this.direction.dot(n),0<l){if(p)return null;p=1}else if(0>l)p=-1,l=-l;else return null;return t.subVectors(this.origin,s),s=p*this.direction.dot(i.crossVectors(t,i)),0>s||(d=p*this.direction.dot(e.cross(t)),0>d||s+d>l)?null:(s=-p*t.dot(n),0>s?null:this.at(s/l,_))}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(Oe,{getNormal:function(){var t=new u;return function(e,i,n,s){return s===void 0&&(s=new u),s.subVectors(n,i),t.subVectors(e,i),s.cross(t),e=s.lengthSq(),0<e?s.multiplyScalar(1/Math.sqrt(e)):s.set(0,0,0)}}(),getBarycoord:function(){var t=new u,e=new u,i=new u;return function(n,s,l,d,p){t.subVectors(d,s),e.subVectors(l,s),i.subVectors(n,s),n=t.dot(t),s=t.dot(e),l=t.dot(i);var _=e.dot(e);d=e.dot(i);var M=n*_-s*s;return p===void 0&&(p=new u),M===0?p.set(-2,-1,-1):(M=1/M,_=(_*l-s*d)*M,n=(n*d-s*l)*M,p.set(1-_-n,n,_))}}(),containsPoint:function(){var t=new u;return function(e,i,n,s){return Oe.getBarycoord(e,i,n,s,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}(),getUV:function(){var t=new u;return function(e,i,n,s,l,d,p,_){return this.getBarycoord(e,i,n,s,t),_.set(0,0),_.addScaledVector(l,t.x),_.addScaledVector(d,t.y),_.addScaledVector(p,t.z),_}}()}),Object.assign(Oe.prototype,{set:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this},setFromPointsAndIndices:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new u,e=new u;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return t===void 0&&(t=new u),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Oe.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(t=new u),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Oe.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Oe.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,i,n,s){return Oe.getUV(t,this.a,this.b,this.c,e,i,n,s)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new u,e=new u,i=new u,n=new u,s=new u,l=new u;return function(d,p){p===void 0&&(p=new u);var _=this.a,M=this.b,A=this.c;t.subVectors(M,_),e.subVectors(A,_),n.subVectors(d,_);var L=t.dot(n),B=e.dot(n);if(0>=L&&0>=B)return p.copy(_);s.subVectors(d,M);var H=t.dot(s),q=e.dot(s);if(0<=H&&q<=H)return p.copy(M);var $=L*q-H*B;if(0>=$&&0<=L&&0>=H)return M=L/(L-H),p.copy(_).addScaledVector(t,M);l.subVectors(d,A),d=t.dot(l);var rt=e.dot(l);return 0<=rt&&d<=rt?p.copy(A):(L=d*B-L*rt,0>=L&&0<=B&&0>=rt?($=B/(B-rt),p.copy(_).addScaledVector(e,$)):(B=H*rt-d*q,0>=B&&0<=q-H&&0<=d-rt?(i.subVectors(A,M),$=(q-H)/(q-H+(d-rt)),p.copy(M).addScaledVector(i,$)):(A=1/(B+L+$),M=L*A,$*=A,p.copy(_).addScaledVector(t,M).addScaledVector(e,$))))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Ge.prototype=Object.create(Wt.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isMeshBasicMaterial=!0,Ge.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},pi.prototype=Object.assign(Object.create(N.prototype),{constructor:pi,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return N.prototype.copy.call(this,t),this.drawMode=t.drawMode,t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var i=t[e[0]];if(i!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++){var n=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}else if(i=t.morphTargets,i!==void 0&&0<i.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++)n=i[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t},raycast:function(){function t(rt,xt,gt,Ct,wt,Vt,K,ot){return(xt.side===1?Ct.intersectTriangle(K,Vt,wt,!0,ot):Ct.intersectTriangle(wt,Vt,K,xt.side!==2,ot))===null?null:($.copy(ot),$.applyMatrix4(rt.matrixWorld),xt=gt.ray.origin.distanceTo($),xt<gt.near||xt>gt.far?null:{distance:xt,point:$.clone(),object:rt})}function e(rt,xt,gt,Ct,wt,Vt,K,ot,kt){return l.fromBufferAttribute(wt,K),d.fromBufferAttribute(wt,ot),p.fromBufferAttribute(wt,kt),(rt=t(rt,xt,gt,Ct,l,d,p,q))&&(Vt&&(L.fromBufferAttribute(Vt,K),B.fromBufferAttribute(Vt,ot),H.fromBufferAttribute(Vt,kt),rt.uv=Oe.getUV(q,l,d,p,L,B,H,new o)),Vt=new I(K,ot,kt),Oe.getNormal(l,d,p,Vt.normal),rt.face=Vt),rt}var i=new c,n=new Si,s=new R,l=new u,d=new u,p=new u,_=new u,M=new u,A=new u,L=new o,B=new o,H=new o,q=new u,$=new u;return function(rt,xt){var gt=this.geometry,Ct=this.material,wt=this.matrixWorld;if(Ct!==void 0&&(gt.boundingSphere===null&>.computeBoundingSphere(),s.copy(gt.boundingSphere),s.applyMatrix4(wt),rt.ray.intersectsSphere(s)!==!1&&(i.getInverse(wt),n.copy(rt.ray).applyMatrix4(i),gt.boundingBox===null||n.intersectsBox(gt.boundingBox)!==!1))){if(gt.isBufferGeometry){var Vt=gt.index,K=gt.attributes.position,ot=gt.attributes.uv,kt=gt.groups;gt=gt.drawRange;var ee;if(Vt!==null)if(Array.isArray(Ct)){var $t=0;for(ee=kt.length;$t<ee;$t++){var Yt=kt[$t],Me=Ct[Yt.materialIndex];wt=Math.max(Yt.start,gt.start);var ge=Math.min(Yt.start+Yt.count,gt.start+gt.count);for(Yt=wt;Yt<ge;Yt+=3){wt=Vt.getX(Yt);var De=Vt.getX(Yt+1),be=Vt.getX(Yt+2);(wt=e(this,Me,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor(Yt/3),xt.push(wt))}}}else for(wt=Math.max(0,gt.start),ge=Math.min(Vt.count,gt.start+gt.count),$t=wt,ee=ge;$t<ee;$t+=3)wt=Vt.getX($t),De=Vt.getX($t+1),be=Vt.getX($t+2),(wt=e(this,Ct,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt));else if(K!==void 0)if(Array.isArray(Ct))for($t=0,ee=kt.length;$t<ee;$t++)for(Yt=kt[$t],Me=Ct[Yt.materialIndex],wt=Math.max(Yt.start,gt.start),ge=Math.min(Yt.start+Yt.count,gt.start+gt.count),Yt=wt;Yt<ge;Yt+=3)wt=Yt,De=Yt+1,be=Yt+2,(wt=e(this,Me,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor(Yt/3),xt.push(wt));else for(wt=Math.max(0,gt.start),ge=Math.min(K.count,gt.start+gt.count),$t=wt,ee=ge;$t<ee;$t+=3)wt=$t,De=$t+1,be=$t+2,(wt=e(this,Ct,rt,n,K,ot,wt,De,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt))}else if(gt.isGeometry){for(K=Array.isArray(Ct),ot=gt.vertices,kt=gt.faces,wt=gt.faceVertexUvs[0],0<wt.length&&(Vt=wt),Yt=0,ge=kt.length;Yt<ge;Yt++)if(De=kt[Yt],wt=K?Ct[De.materialIndex]:Ct,wt!==void 0){if($t=ot[De.a],ee=ot[De.b],Me=ot[De.c],wt.morphTargets===!0){be=gt.morphTargets;var ae=this.morphTargetInfluences;l.set(0,0,0),d.set(0,0,0),p.set(0,0,0);for(var We=0,Qe=be.length;We<Qe;We++){var fi=ae[We];if(fi!==0){var An=be[We].vertices;l.addScaledVector(_.subVectors(An[De.a],$t),fi),d.addScaledVector(M.subVectors(An[De.b],ee),fi),p.addScaledVector(A.subVectors(An[De.c],Me),fi)}}l.add($t),d.add(ee),p.add(Me),$t=l,ee=d,Me=p}(wt=t(this,wt,rt,n,$t,ee,Me,q))&&(Vt&&Vt[Yt]&&(be=Vt[Yt],L.copy(be[0]),B.copy(be[1]),H.copy(be[2]),wt.uv=Oe.getUV(q,$t,ee,Me,L,B,H,new o)),wt.face=De,wt.faceIndex=Yt,xt.push(wt))}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),z.prototype=Object.create(g.prototype),z.prototype.constructor=z,z.prototype.isCubeTexture=!0,Object.defineProperty(z.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),Q.prototype=Object.create(g.prototype),Q.prototype.constructor=Q,Q.prototype.isDataTexture3D=!0;var Yh=new g,$c=new Q,Bu=new z,ah=[],Ra=[],Ml=new Float32Array(16),Nu=new Float32Array(9),Zh=new Float32Array(4);sa.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),vt(e,t)},$a.prototype.setValue=function(t,e,i){for(var n=this.seq,s=0,l=n.length;s!==l;++s){var d=n[s];d.setValue(t,e[d.id],i)}};var Jh=/([\w\d_]+)(\])?(\[|\.)?/g;uo.prototype.setValue=function(t,e,i){e=this.map[e],e!==void 0&&e.setValue(t,i,this.renderer)},uo.prototype.setOptional=function(t,e,i){e=e[i],e!==void 0&&this.setValue(t,i,e)},uo.upload=function(t,e,i,n){for(var s=0,l=e.length;s!==l;++s){var d=e[s],p=i[d.id];p.needsUpdate!==!1&&d.setValue(t,p.value,n)}},uo.seqWithValue=function(t,e){for(var i=[],n=0,s=t.length;n!==s;++n){var l=t[n];l.id in e&&i.push(l)}return i};var No=0,$h=0;se.prototype=Object.create(Wt.prototype),se.prototype.constructor=se,se.prototype.isMeshDepthMaterial=!0,se.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},te.prototype=Object.create(Wt.prototype),te.prototype.constructor=te,te.prototype.isMeshDistanceMaterial=!0,te.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},ci.prototype=Object.assign(Object.create(N.prototype),{constructor:ci,isGroup:!0}),Be.prototype=Object.assign(Object.create(N.prototype),{constructor:Be,isCamera:!0,copy:function(t,e){return N.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){t===void 0&&(t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){N.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),_e.prototype=Object.assign(Object.create(Be.prototype),{constructor:_e,isPerspectiveCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*di.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*di.DEG2RAD*this.fov);return .5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*di.RAD2DEG*Math.atan(Math.tan(.5*di.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,s,l){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=l,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*di.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,s=-.5*n,l=this.view;if(this.view!==null&&this.view.enabled){var d=l.fullWidth,p=l.fullHeight;s+=l.offsetX*n/d,e-=l.offsetY*i/p,n*=l.width/d,i*=l.height/p}l=this.filmOffset,l!==0&&(s+=t*l/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Fe.prototype=Object.assign(Object.create(_e.prototype),{constructor:Fe,isArrayCamera:!0});var hs=new u,Mr=new u;Re.prototype.isFogExp2=!0,Re.prototype.clone=function(){return new Re(this.color,this.density)},Re.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},En.prototype.isFog=!0,En.prototype.clone=function(){return new En(this.color,this.near,this.far)},En.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},qn.prototype=Object.assign(Object.create(N.prototype),{constructor:qn,copy:function(t,e){return N.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=N.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(ki.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(ki.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(var n=0,s=this.stride;n<s;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(Bi.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(Bi.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=s,this}}),Hi.prototype=Object.create(Wt.prototype),Hi.prototype.constructor=Hi,Hi.prototype.isSpriteMaterial=!0,Hi.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};var Oa;nn.prototype=Object.assign(Object.create(N.prototype),{constructor:nn,isSprite:!0,raycast:function(){function t(H,q,$,rt,xt,gt){s.subVectors(H,$).addScalar(.5).multiply(rt),xt!==void 0?(l.x=gt*s.x-xt*s.y,l.y=xt*s.x+gt*s.y):l.copy(s),H.copy(q),H.x+=l.x,H.y+=l.y,H.applyMatrix4(d)}var e=new u,i=new u,n=new u,s=new o,l=new o,d=new c,p=new u,_=new u,M=new u,A=new o,L=new o,B=new o;return function(H,q){i.setFromMatrixScale(this.matrixWorld),d.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var $=this.material.rotation;if($!==0)var rt=Math.cos($),xt=Math.sin($);$=this.center,t(p.set(-.5,-.5,0),n,$,i,xt,rt),t(_.set(.5,-.5,0),n,$,i,xt,rt),t(M.set(.5,.5,0),n,$,i,xt,rt),A.set(0,0),L.set(1,0),B.set(1,1);var gt=H.ray.intersectTriangle(p,_,M,!1,e);gt===null&&(t(_.set(-.5,.5,0),n,$,i,xt,rt),L.set(0,1),gt=H.ray.intersectTriangle(p,M,_,!1,e),gt===null)||(xt=H.ray.origin.distanceTo(e),xt<H.near||xt>H.far||q.push({distance:xt,point:e.clone(),uv:Oe.getUV(e,p,_,M,A,L,B,new o),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return N.prototype.copy.call(this,t),t.center!==void 0&&this.center.copy(t.center),this}}),rn.prototype=Object.assign(Object.create(N.prototype),{constructor:rn,copy:function(t){N.prototype.copy.call(this,t,!1),t=t.levels;for(var e=0,i=t.length;e<i;e++){var n=t[e];this.addLevel(n.object.clone(),n.distance)}return this},addLevel:function(t,e){e===void 0&&(e=0),e=Math.abs(e);for(var i=this.levels,n=0;n<i.length&&!(e<i[n].distance);n++);i.splice(n,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object},raycast:function(){var t=new u;return function(e,i){t.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(t);this.getObjectForDistance(n).raycast(e,i)}}(),update:function(){var t=new u,e=new u;return function(i){var n=this.levels;if(1<n.length){t.setFromMatrixPosition(i.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),i=t.distanceTo(e),n[0].object.visible=!0;for(var s=1,l=n.length;s<l&&i>=n[s].distance;s++)n[s-1].object.visible=!1,n[s].object.visible=!0;for(;s<l;s++)n[s].object.visible=!1}}}(),toJSON:function(t){t=N.prototype.toJSON.call(this,t),t.object.levels=[];for(var e=this.levels,i=0,n=e.length;i<n;i++){var s=e[i];t.object.levels.push({object:s.object.uuid,distance:s.distance})}return t}}),Object.assign(cn.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var i=new c;this.bones[t]&&i.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(i)}},pose:function(){var t,e,i=0;for(e=this.bones.length;i<e;i++)(t=this.bones[i])&&t.matrixWorld.getInverse(this.boneInverses[i]);for(i=0,e=this.bones.length;i<e;i++)(t=this.bones[i])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new c,e=new c;return function(){for(var i=this.bones,n=this.boneInverses,s=this.boneMatrices,l=this.boneTexture,d=0,p=i.length;d<p;d++)t.multiplyMatrices(i[d]?i[d].matrixWorld:e,n[d]),t.toArray(s,16*d);l!==void 0&&(l.needsUpdate=!0)}}(),clone:function(){return new cn(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,i=this.bones.length;e<i;e++){var n=this.bones[e];if(n.name===t)return n}}}),fn.prototype=Object.assign(Object.create(N.prototype),{constructor:fn,isBone:!0}),Gi.prototype=Object.assign(Object.create(pi.prototype),{constructor:Gi,isSkinnedMesh:!0,initBones:function(){var t=[],e;if(this.geometry&&this.geometry.bones!==void 0){var i=0;for(e=this.geometry.bones.length;i<e;i++){var n=this.geometry.bones[i],s=new fn;t.push(s),s.name=n.name,s.position.fromArray(n.pos),s.quaternion.fromArray(n.rotq),n.scl!==void 0&&s.scale.fromArray(n.scl)}for(i=0,e=this.geometry.bones.length;i<e;i++)n=this.geometry.bones[i],n.parent!==-1&&n.parent!==null&&t[n.parent]!==void 0?t[n.parent].add(t[i]):this.add(t[i])}return this.updateMatrixWorld(!0),t},bind:function(t,e){this.skeleton=t,e===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new v;var n=this.geometry.attributes.skinWeight;for(t=0;t<n.count;t++)e.x=n.getX(t),e.y=n.getY(t),e.z=n.getZ(t),e.w=n.getW(t),i=1/e.manhattanLength(),i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),n.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){pi.prototype.updateMatrixWorld.call(this,t),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"&&this.bindMatrixInverse.getInverse(this.bindMatrix)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Ni.prototype=Object.create(Wt.prototype),Ni.prototype.constructor=Ni,Ni.prototype.isLineBasicMaterial=!0,Ni.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},ji.prototype=Object.assign(Object.create(N.prototype),{constructor:ji,isLine:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry){if(i.index===null){for(var n=i.attributes.position,s=[0],l=1,d=n.count;l<d;l++)t.fromBufferAttribute(n,l-1),e.fromBufferAttribute(n,l),s[l]=s[l-1],s[l]+=t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}}else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,s[0]=0,l=1,d=n.length;l<d;l++)s[l]=s[l-1],s[l]+=n[l-1].distanceTo(n[l]);return this}}(),raycast:function(){var t=new c,e=new Si,i=new R;return function(n,s){var l=n.linePrecision,d=this.geometry,p=this.matrixWorld;if(d.boundingSphere===null&&d.computeBoundingSphere(),i.copy(d.boundingSphere),i.applyMatrix4(p),i.radius+=l,n.ray.intersectsSphere(i)!==!1){t.getInverse(p),e.copy(n.ray).applyMatrix4(t),l/=(this.scale.x+this.scale.y+this.scale.z)/3,l*=l;var _=new u,M=new u;p=new u;var A=new u,L=this&&this.isLineSegments?2:1;if(d.isBufferGeometry){var B=d.index,H=d.attributes.position.array;if(B!==null){B=B.array,d=0;for(var q=B.length-1;d<q;d+=L){var $=B[d+1];_.fromArray(H,3*B[d]),M.fromArray(H,3*$),$=e.distanceSqToSegment(_,M,A,p),$>l||(A.applyMatrix4(this.matrixWorld),$=n.ray.origin.distanceTo(A),$<n.near||$>n.far||s.push({distance:$,point:p.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}}else for(d=0,q=H.length/3-1;d<q;d+=L)_.fromArray(H,3*d),M.fromArray(H,3*d+3),$=e.distanceSqToSegment(_,M,A,p),$>l||(A.applyMatrix4(this.matrixWorld),$=n.ray.origin.distanceTo(A),$<n.near||$>n.far||s.push({distance:$,point:p.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}else if(d.isGeometry)for(_=d.vertices,M=_.length,d=0;d<M-1;d+=L)$=e.distanceSqToSegment(_[d],_[d+1],A,p),$>l||(A.applyMatrix4(this.matrixWorld),$=n.ray.origin.distanceTo(A),$<n.near||$>n.far||s.push({distance:$,point:p.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}}}(),copy:function(t){return N.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return new this.constructor().copy(this)}}),gi.prototype=Object.assign(Object.create(ji.prototype),{constructor:gi,isLineSegments:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry){if(i.index===null){for(var n=i.attributes.position,s=[],l=0,d=n.count;l<d;l+=2)t.fromBufferAttribute(n,l),e.fromBufferAttribute(n,l+1),s[l]=l===0?0:s[l-1],s[l+1]=s[l]+t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}}else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,l=0,d=n.length;l<d;l+=2)t.copy(n[l]),e.copy(n[l+1]),s[l]=l===0?0:s[l-1],s[l+1]=s[l]+t.distanceTo(e);return this}}()}),fo.prototype=Object.assign(Object.create(ji.prototype),{constructor:fo,isLineLoop:!0}),Un.prototype=Object.create(Wt.prototype),Un.prototype.constructor=Un,Un.prototype.isPointsMaterial=!0,Un.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},ha.prototype=Object.assign(Object.create(N.prototype),{constructor:ha,isPoints:!0,raycast:function(){var t=new c,e=new Si,i=new R;return function(n,s){function l(rt,xt){var gt=e.distanceSqToPoint(rt);gt<A&&(e.closestPointToPoint(rt,L),L.applyMatrix4(_),rt=n.ray.origin.distanceTo(L),rt<n.near||rt>n.far||s.push({distance:rt,distanceToRay:Math.sqrt(gt),point:L.clone(),index:xt,face:null,object:d}))}var d=this,p=this.geometry,_=this.matrixWorld,M=n.params.Points.threshold;if(p.boundingSphere===null&&p.computeBoundingSphere(),i.copy(p.boundingSphere),i.applyMatrix4(_),i.radius+=M,n.ray.intersectsSphere(i)!==!1){t.getInverse(_),e.copy(n.ray).applyMatrix4(t),M/=(this.scale.x+this.scale.y+this.scale.z)/3;var A=M*M;M=new u;var L=new u;if(p.isBufferGeometry){var B=p.index;if(p=p.attributes.position.array,B!==null){var H=B.array;B=0;for(var q=H.length;B<q;B++){var $=H[B];M.fromArray(p,3*$),l(M,$)}}else for(B=0,H=p.length/3;B<H;B++)M.fromArray(p,3*B),l(M,B)}else for(M=p.vertices,B=0,H=M.length;B<H;B++)l(M[B],B)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),kh.prototype=Object.assign(Object.create(g.prototype),{constructor:kh,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),Jo.prototype=Object.create(g.prototype),Jo.prototype.constructor=Jo,Jo.prototype.isCompressedTexture=!0,Ka.prototype=Object.create(g.prototype),Ka.prototype.constructor=Ka,Ka.prototype.isCanvasTexture=!0,Qa.prototype=Object.create(g.prototype),Qa.prototype.constructor=Qa,Qa.prototype.isDepthTexture=!0,ua.prototype=Object.create(Ft.prototype),ua.prototype.constructor=ua,tl.prototype=Object.create(X.prototype),tl.prototype.constructor=tl,ca.prototype=Object.create(Ft.prototype),ca.prototype.constructor=ca,Xi.prototype=Object.create(X.prototype),Xi.prototype.constructor=Xi,xi.prototype=Object.create(Ft.prototype),xi.prototype.constructor=xi,el.prototype=Object.create(X.prototype),el.prototype.constructor=el,fa.prototype=Object.create(xi.prototype),fa.prototype.constructor=fa,il.prototype=Object.create(X.prototype),il.prototype.constructor=il,ws.prototype=Object.create(xi.prototype),ws.prototype.constructor=ws,nl.prototype=Object.create(X.prototype),nl.prototype.constructor=nl,da.prototype=Object.create(xi.prototype),da.prototype.constructor=da,pa.prototype=Object.create(X.prototype),pa.prototype.constructor=pa,ma.prototype=Object.create(xi.prototype),ma.prototype.constructor=ma,vn.prototype=Object.create(X.prototype),vn.prototype.constructor=vn,$o.prototype=Object.create(Ft.prototype),$o.prototype.constructor=$o,Jr.prototype=Object.create(X.prototype),Jr.prototype.constructor=Jr,Ms.prototype=Object.create(Ft.prototype),Ms.prototype.constructor=Ms,Ts.prototype=Object.create(X.prototype),Ts.prototype.constructor=Ts,Gn.prototype=Object.create(Ft.prototype),Gn.prototype.constructor=Gn;var Fu={triangulate:function(t,e,i){i=i||2;var n=e&&e.length,s=n?e[0]*i:t.length,l=Bh(t,0,s,i,!0),d=[];if(!l)return d;var p;if(n){var _=i;n=[];var M,A=0;for(M=e.length;A<M;A++){var L=e[A]*_,B=A<M-1?e[A+1]*_:t.length;L=Bh(t,L,B,_,!1),L===L.next&&(L.steiner=!0),n.push(_r(L))}for(n.sort(Eu),A=0;A<n.length;A++)e=n[A],_=l,(_=bu(e,_))&&(e=rl(_,e),ga(e,e.next)),l=ga(l,l.next)}if(t.length>80*i){var H=p=t[0],q=n=t[1];for(_=i;_<s;_+=i)A=t[_],e=t[_+1],A<H&&(H=A),e<q&&(q=e),A>p&&(p=A),e>n&&(n=e);p=Math.max(p-H,n-q),p=p!==0?1/p:0}return va(l,d,i,H,q,p),d}},To={area:function(t){for(var e=t.length,i=0,n=e-1,s=0;s<e;n=s++)i+=t[n].x*t[s].y-t[s].x*t[n].y;return .5*i},isClockWise:function(t){return 0>To.area(t)},triangulateShape:function(t,e){var i=[],n=[],s=[];$l(t),Cu(i,t);var l=t.length;for(e.forEach($l),t=0;t<e.length;t++)n.push(l),l+=e[t].length,Cu(i,e[t]);for(e=Fu.triangulate(i,n),t=0;t<e.length;t+=3)s.push(e.slice(t,t+3));return s}};Lo.prototype=Object.create(X.prototype),Lo.prototype.constructor=Lo,Lo.prototype.toJSON=function(){var t=X.prototype.toJSON.call(this);return Au(this.parameters.shapes,this.parameters.options,t)},mo.prototype=Object.create(Ft.prototype),mo.prototype.constructor=mo,mo.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Au(this.parameters.shapes,this.parameters.options,t)};var Tl={generateTopUV:function(t,e,i,n,s){t=e[3*n],n=e[3*n+1];var l=e[3*s];return s=e[3*s+1],[new o(e[3*i],e[3*i+1]),new o(t,n),new o(l,s)]},generateSideWallUV:function(t,e,i,n,s,l){t=e[3*i];var d=e[3*i+1];i=e[3*i+2];var p=e[3*n],_=e[3*n+1];n=e[3*n+2];var M=e[3*s],A=e[3*s+1];s=e[3*s+2];var L=e[3*l],B=e[3*l+1];return e=e[3*l+2],.01>Math.abs(d-_)?[new o(t,1-i),new o(p,1-n),new o(M,1-s),new o(L,1-e)]:[new o(d,1-i),new o(_,1-n),new o(A,1-s),new o(B,1-e)]}};ol.prototype=Object.create(X.prototype),ol.prototype.constructor=ol,Es.prototype=Object.create(mo.prototype),Es.prototype.constructor=Es,Ko.prototype=Object.create(X.prototype),Ko.prototype.constructor=Ko,Ir.prototype=Object.create(Ft.prototype),Ir.prototype.constructor=Ir,sl.prototype=Object.create(X.prototype),sl.prototype.constructor=sl,bs.prototype=Object.create(Ft.prototype),bs.prototype.constructor=bs,ya.prototype=Object.create(X.prototype),ya.prototype.constructor=ya,Qo.prototype=Object.create(Ft.prototype),Qo.prototype.constructor=Qo,Ro.prototype=Object.create(X.prototype),Ro.prototype.constructor=Ro,Ro.prototype.toJSON=function(){var t=X.prototype.toJSON.call(this);return Pu(this.parameters.shapes,t)},ts.prototype=Object.create(Ft.prototype),ts.prototype.constructor=ts,ts.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Pu(this.parameters.shapes,t)},es.prototype=Object.create(Ft.prototype),es.prototype.constructor=es,Oo.prototype=Object.create(X.prototype),Oo.prototype.constructor=Oo,Io.prototype=Object.create(Ft.prototype),Io.prototype.constructor=Io,_a.prototype=Object.create(Oo.prototype),_a.prototype.constructor=_a,Hn.prototype=Object.create(Io.prototype),Hn.prototype.constructor=Hn,Cs.prototype=Object.create(X.prototype),Cs.prototype.constructor=Cs,go.prototype=Object.create(Ft.prototype),go.prototype.constructor=go;var _n=Object.freeze({WireframeGeometry:ua,ParametricGeometry:tl,ParametricBufferGeometry:ca,TetrahedronGeometry:el,TetrahedronBufferGeometry:fa,OctahedronGeometry:il,OctahedronBufferGeometry:ws,IcosahedronGeometry:nl,IcosahedronBufferGeometry:da,DodecahedronGeometry:pa,DodecahedronBufferGeometry:ma,PolyhedronGeometry:Xi,PolyhedronBufferGeometry:xi,TubeGeometry:vn,TubeBufferGeometry:$o,TorusKnotGeometry:Jr,TorusKnotBufferGeometry:Ms,TorusGeometry:Ts,TorusBufferGeometry:Gn,TextGeometry:ol,TextBufferGeometry:Es,SphereGeometry:Ko,SphereBufferGeometry:Ir,RingGeometry:sl,RingBufferGeometry:bs,PlaneGeometry:Pe,PlaneBufferGeometry:pe,LatheGeometry:ya,LatheBufferGeometry:Qo,ShapeGeometry:Ro,ShapeBufferGeometry:ts,ExtrudeGeometry:Lo,ExtrudeBufferGeometry:mo,EdgesGeometry:es,ConeGeometry:_a,ConeBufferGeometry:Hn,CylinderGeometry:Oo,CylinderBufferGeometry:Io,CircleGeometry:Cs,CircleBufferGeometry:go,BoxGeometry:It,BoxBufferGeometry:Bt});is.prototype=Object.create(Wt.prototype),is.prototype.constructor=is,is.prototype.isShadowMaterial=!0,is.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this},As.prototype=Object.create($e.prototype),As.prototype.constructor=As,As.prototype.isRawShaderMaterial=!0,vo.prototype=Object.create(Wt.prototype),vo.prototype.constructor=vo,vo.prototype.isMeshStandardMaterial=!0,vo.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ps.prototype=Object.create(vo.prototype),Ps.prototype.constructor=Ps,Ps.prototype.isMeshPhysicalMaterial=!0,Ps.prototype.copy=function(t){return vo.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},$r.prototype=Object.create(Wt.prototype),$r.prototype.constructor=$r,$r.prototype.isMeshPhongMaterial=!0,$r.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ls.prototype=Object.create($r.prototype),Ls.prototype.constructor=Ls,Ls.prototype.isMeshToonMaterial=!0,Ls.prototype.copy=function(t){return $r.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},Rs.prototype=Object.create(Wt.prototype),Rs.prototype.constructor=Rs,Rs.prototype.isMeshNormalMaterial=!0,Rs.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Dr.prototype=Object.create(Wt.prototype),Dr.prototype.constructor=Dr,Dr.prototype.isMeshLambertMaterial=!0,Dr.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Os.prototype=Object.create(Wt.prototype),Os.prototype.constructor=Os,Os.prototype.isMeshMatcapMaterial=!0,Os.prototype.copy=function(t){return Wt.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Is.prototype=Object.create(Ni.prototype),Is.prototype.constructor=Is,Is.prototype.isLineDashedMaterial=!0,Is.prototype.copy=function(t){return Ni.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var Uu=Object.freeze({ShadowMaterial:is,SpriteMaterial:Hi,RawShaderMaterial:As,ShaderMaterial:$e,PointsMaterial:Un,MeshPhysicalMaterial:Ps,MeshStandardMaterial:vo,MeshPhongMaterial:$r,MeshToonMaterial:Ls,MeshNormalMaterial:Rs,MeshLambertMaterial:Dr,MeshDepthMaterial:se,MeshDistanceMaterial:te,MeshBasicMaterial:Ge,MeshMatcapMaterial:Os,LineDashedMaterial:Is,LineBasicMaterial:Ni,Material:Wt}),Zn={arraySlice:function(t,e,i){return Zn.isTypedArray(t)?new t.constructor(t.subarray(e,i!==void 0?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,i=Array(e),n=0;n!==e;++n)i[n]=n;return i.sort(function(s,l){return t[s]-t[l]}),i},sortedArray:function(t,e,i){for(var n=t.length,s=new t.constructor(n),l=0,d=0;d!==n;++l)for(var p=i[l]*e,_=0;_!==e;++_)s[d++]=t[p+_];return s},flattenJSON:function(t,e,i,n){for(var s=1,l=t[0];l!==void 0&&l[n]===void 0;)l=t[s++];if(l!==void 0){var d=l[n];if(d!==void 0)if(Array.isArray(d))do d=l[n],d!==void 0&&(e.push(l.time),i.push.apply(i,d)),l=t[s++];while(l!==void 0);else if(d.toArray!==void 0)do d=l[n],d!==void 0&&(e.push(l.time),d.toArray(i,i.length)),l=t[s++];while(l!==void 0);else do d=l[n],d!==void 0&&(e.push(l.time),i.push(d)),l=t[s++];while(l!==void 0)}}};Object.assign(Kn.prototype,{evaluate:function(t){var e=this.parameterPositions,i=this._cachedIndex,n=e[i],s=e[i-1];t:{e:{i:{n:if(!(t<n)){for(var l=i+2;;){if(n===void 0){if(t<s)break n;return this._cachedIndex=i=e.length,this.afterEnd_(i-1,t,s)}if(i===l)break;if(s=n,n=e[++i],t<n)break e}n=e.length;break i}if(t>=s)break t;for(l=e[1],t<l&&(i=2,s=l),l=i-2;;){if(s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===l)break;if(n=s,s=e[--i-1],t>=s)break e}n=i,i=0}for(;i<n;)s=i+n>>>1,t<e[s]?n=s:i=s+1;if(n=e[i],s=e[i-1],s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(n===void 0)return this._cachedIndex=i=e.length,this.afterEnd_(i-1,s,t)}this._cachedIndex=i,this.intervalChanged_(i,s,n)}return this.interpolate_(i,s,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,i=this.sampleValues,n=this.valueSize;t*=n;for(var s=0;s!==n;++s)e[s]=i[t+s];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(Kn.prototype,{beforeStart_:Kn.prototype.copySampleValue_,afterEnd_:Kn.prototype.copySampleValue_}),al.prototype=Object.assign(Object.create(Kn.prototype),{constructor:al,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,i){var n=this.parameterPositions,s=t-2,l=t+1,d=n[s],p=n[l];if(d===void 0)switch(this.getSettings_().endingStart){case 2401:s=t,d=2*e-i;break;case 2402:s=n.length-2,d=e+n[s]-n[s+1];break;default:s=t,d=i}if(p===void 0)switch(this.getSettings_().endingEnd){case 2401:l=t,p=2*i-e;break;case 2402:l=1,p=i+n[1]-n[0];break;default:l=t-1,p=e}t=.5*(i-e),n=this.valueSize,this._weightPrev=t/(e-d),this._weightNext=t/(p-i),this._offsetPrev=s*n,this._offsetNext=l*n},interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,d=this.valueSize;t*=d;var p=t-d,_=this._offsetPrev,M=this._offsetNext,A=this._weightPrev,L=this._weightNext,B=(i-e)/(n-e);for(i=B*B,n=i*B,e=-A*n+2*A*i-A*B,A=(1+A)*n+(-1.5-2*A)*i+(-.5+A)*B+1,B=(-1-L)*n+(1.5+L)*i+.5*B,L=L*n-L*i,i=0;i!==d;++i)s[i]=e*l[_+i]+A*l[p+i]+B*l[t+i]+L*l[M+i];return s}}),zr.prototype=Object.assign(Object.create(Kn.prototype),{constructor:zr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,d=this.valueSize;t*=d;var p=t-d;for(e=(i-e)/(n-e),i=1-e,n=0;n!==d;++n)s[n]=l[p+n]*i+l[t+n]*e;return s}}),Ds.prototype=Object.assign(Object.create(Kn.prototype),{constructor:Ds,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Vn,{toJSON:function(t){var e=t.constructor;if(e.toJSON!==void 0)e=e.toJSON(t);else{e={name:t.name,times:Zn.convertArray(t.times,Array),values:Zn.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(Vn.prototype,{constructor:Vn,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new Ds(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new zr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new al(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(e===void 0){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(e);return this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(t!==0)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(t!==1)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,s=0,l=n-1;s!==n&&i[s]<t;)++s;for(;l!==-1&&i[l]>e;)--l;return++l,(s!==0||l!==n)&&(s>=l&&(l=Math.max(l,1),s=l-1),t=this.getValueSize(),this.times=Zn.arraySlice(i,s,l),this.values=Zn.arraySlice(this.values,s*t,l*t)),this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!==0&&(t=!1);var i=this.times;e=this.values;var n=i.length;n===0&&(t=!1);for(var s=null,l=0;l!==n;l++){var d=i[l];if(typeof d=="number"&&isNaN(d)){t=!1;break}if(s!==null&&s>d){t=!1;break}s=d}if(e!==void 0&&Zn.isTypedArray(e)){for(l=0,i=e.length;l!==i;++l)if(n=e[l],isNaN(n)){t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===2302,s=1,l=t.length-1,d=1;d<l;++d){var p=!1,_=t[d];if(_!==t[d+1]&&(d!==1||_!==_[0]))if(n)p=!0;else{var M=d*i,A=M-i,L=M+i;for(_=0;_!==i;++_){var B=e[M+_];if(B!==e[A+_]||B!==e[L+_]){p=!0;break}}}if(p){if(d!==s)for(t[s]=t[d],p=d*i,M=s*i,_=0;_!==i;++_)e[M+_]=e[p+_];++s}}if(0<l){for(t[s]=t[l],p=l*i,M=s*i,_=0;_!==i;++_)e[M+_]=e[p+_];++s}return s!==t.length&&(this.times=Zn.arraySlice(t,0,s),this.values=Zn.arraySlice(e,0,s*i)),this}}),Kl.prototype=Object.assign(Object.create(Vn.prototype),{constructor:Kl,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Ql.prototype=Object.assign(Object.create(Vn.prototype),{constructor:Ql,ValueTypeName:"color"}),Kr.prototype=Object.assign(Object.create(Vn.prototype),{constructor:Kr,ValueTypeName:"number"}),lr.prototype=Object.assign(Object.create(Kn.prototype),{constructor:lr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,d=this.valueSize;for(t*=d,e=(i-e)/(n-e),i=t+d;t!==i;t+=4)f.slerpFlat(s,0,l,t-d,l,t,e);return s}}),xa.prototype=Object.assign(Object.create(Vn.prototype),{constructor:xa,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new lr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),th.prototype=Object.assign(Object.create(Vn.prototype),{constructor:th,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),wa.prototype=Object.assign(Object.create(Vn.prototype),{constructor:wa,ValueTypeName:"vector"}),Object.assign(xr,{parse:function(t){for(var e=[],i=t.tracks,n=1/(t.fps||1),s=0,l=i.length;s!==l;++s)e.push(qc(i[s]).scale(n));return new xr(t.name,t.duration,e)},toJSON:function(t){var e=[],i=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var n=0,s=i.length;n!==s;++n)e.push(Vn.toJSON(i[n]));return t},CreateFromMorphTargetSequence:function(t,e,i,n){for(var s=e.length,l=[],d=0;d<s;d++){var p=[],_=[];p.push((d+s-1)%s,d,(d+1)%s),_.push(0,1,0);var M=Zn.getKeyframeOrder(p);p=Zn.sortedArray(p,1,M),_=Zn.sortedArray(_,1,M),n||p[0]!==0||(p.push(s),_.push(_[0])),l.push(new Kr(".morphTargetInfluences["+e[d].name+"]",p,_).scale(1/i))}return new xr(t,-1,l)},findByName:function(t,e){var i=t;for(Array.isArray(t)||(i=t.geometry&&t.geometry.animations||t.animations),t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){for(var n={},s=/^([\w-]*?)([\d]+)$/,l=0,d=t.length;l<d;l++){var p=t[l],_=p.name.match(s);if(_&&1<_.length){var M=_[1];(_=n[M])||(n[M]=_=[]),_.push(p)}}t=[];for(M in n)t.push(xr.CreateFromMorphTargetSequence(M,n[M],e,i));return t},parseAnimation:function(t,e){if(!t)return null;var i=function($,rt,xt,gt,Ct){if(xt.length!==0){var wt=[],Vt=[];Zn.flattenJSON(xt,wt,Vt,gt),wt.length!==0&&Ct.push(new $(rt,wt,Vt))}},n=[],s=t.name||"default",l=t.length||-1,d=t.fps||30;t=t.hierarchy||[];for(var p=0;p<t.length;p++){var _=t[p].keys;if(_&&_.length!==0)if(_[0].morphTargets){l={};for(var M=0;M<_.length;M++)if(_[M].morphTargets)for(var A=0;A<_[M].morphTargets.length;A++)l[_[M].morphTargets[A]]=-1;for(var L in l){var B=[],H=[];for(A=0;A!==_[M].morphTargets.length;++A){var q=_[M];B.push(q.time),H.push(q.morphTarget===L?1:0)}n.push(new Kr(".morphTargetInfluence["+L+"]",B,H))}l=l.length*(d||1)}else M=".bones["+e[p].name+"]",i(wa,M+".position",_,"pos",n),i(xa,M+".quaternion",_,"rot",n),i(wa,M+".scale",_,"scl",n)}return n.length===0?null:new xr(s,l,n)}}),Object.assign(xr.prototype,{resetDuration:function(){for(var t=0,e=0,i=this.tracks.length;e!==i;++e){var n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}});var So={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},er=new ns,Nr={};Object.assign(Lt.prototype,{load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,l=So.get(t);if(l!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(l),s.manager.itemEnd(t)},0),l;if(Nr[t]!==void 0)Nr[t].push({onLoad:e,onProgress:i,onError:n});else{var d=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(d){i=d[1];var p=!!d[2];d=d[3],d=decodeURIComponent(d),p&&(d=atob(d));try{var _=(this.responseType||"").toLowerCase();switch(_){case"arraybuffer":case"blob":var M=new Uint8Array(d.length);for(p=0;p<d.length;p++)M[p]=d.charCodeAt(p);var A=_==="blob"?new Blob([M.buffer],{type:i}):M.buffer;break;case"document":A=new DOMParser().parseFromString(d,i);break;case"json":A=JSON.parse(d);break;default:A=d}setTimeout(function(){e&&e(A),s.manager.itemEnd(t)},0)}catch(B){setTimeout(function(){n&&n(B),s.manager.itemError(t),s.manager.itemEnd(t)},0)}}else{Nr[t]=[],Nr[t].push({onLoad:e,onProgress:i,onError:n});var L=new XMLHttpRequest;L.open("GET",t,!0),L.addEventListener("load",function(B){var H=this.response;So.add(t,H);var q=Nr[t];if(delete Nr[t],this.status===200||this.status===0){this.status;for(var $=0,rt=q.length;$<rt;$++){var xt=q[$];xt.onLoad&&xt.onLoad(H)}}else{for($=0,rt=q.length;$<rt;$++)xt=q[$],xt.onError&&xt.onError(B);s.manager.itemError(t)}s.manager.itemEnd(t)},!1),L.addEventListener("progress",function(B){for(var H=Nr[t],q=0,$=H.length;q<$;q++){var rt=H[q];rt.onProgress&&rt.onProgress(B)}},!1),L.addEventListener("error",function(B){var H=Nr[t];delete Nr[t];for(var q=0,$=H.length;q<$;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),L.addEventListener("abort",function(B){var H=Nr[t];delete Nr[t];for(var q=0,$=H.length;q<$;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),this.responseType!==void 0&&(L.responseType=this.responseType),this.withCredentials!==void 0&&(L.withCredentials=this.withCredentials),L.overrideMimeType&&L.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain");for(p in this.requestHeader)L.setRequestHeader(p,this.requestHeader[p]);L.send(null)}return s.manager.itemStart(t),L}},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Qt.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(d){e(s.parse(JSON.parse(d)))},i,n)},parse:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=xr.parse(t[n]);i.push(s)}e(i)},setPath:function(t){return this.path=t,this}}),Object.assign(Zt.prototype,{load:function(t,e,i,n){function s(B){_.load(t[B],function(H){H=l._parser(H,!0),d[B]={width:H.width,height:H.height,format:H.format,mipmaps:H.mipmaps},M+=1,M===6&&(H.mipmapCount===1&&(p.minFilter=1006),p.format=H.format,p.needsUpdate=!0,e&&e(p))},i,n)}var l=this,d=[],p=new Jo;p.image=d;var _=new Lt(this.manager);if(_.setPath(this.path),_.setResponseType("arraybuffer"),Array.isArray(t))for(var M=0,A=0,L=t.length;A<L;++A)s(A);else _.load(t,function(B){if(B=l._parser(B,!0),B.isCubemap)for(var H=B.mipmaps.length/B.mipmapCount,q=0;q<H;q++){d[q]={mipmaps:[]};for(var $=0;$<B.mipmapCount;$++)d[q].mipmaps.push(B.mipmaps[q*B.mipmapCount+$]),d[q].format=B.format,d[q].width=B.width,d[q].height=B.height}else p.image.width=B.width,p.image.height=B.height,p.mipmaps=B.mipmaps;B.mipmapCount===1&&(p.minFilter=1006),p.format=B.format,p.needsUpdate=!0,e&&e(p)},i,n);return p},setPath:function(t){return this.path=t,this}}),Object.assign(Ue.prototype,{load:function(t,e,i,n){var s=this,l=new O,d=new Lt(this.manager);return d.setResponseType("arraybuffer"),d.setPath(this.path),d.load(t,function(p){(p=s._parser(p))&&(p.image!==void 0?l.image=p.image:p.data!==void 0&&(l.image.width=p.width,l.image.height=p.height,l.image.data=p.data),l.wrapS=p.wrapS!==void 0?p.wrapS:1001,l.wrapT=p.wrapT!==void 0?p.wrapT:1001,l.magFilter=p.magFilter!==void 0?p.magFilter:1006,l.minFilter=p.minFilter!==void 0?p.minFilter:1008,l.anisotropy=p.anisotropy!==void 0?p.anisotropy:1,p.format!==void 0&&(l.format=p.format),p.type!==void 0&&(l.type=p.type),p.mipmaps!==void 0&&(l.mipmaps=p.mipmaps),p.mipmapCount===1&&(l.minFilter=1006),l.needsUpdate=!0,e&&e(l,p))},i,n),l},setPath:function(t){return this.path=t,this}}),Object.assign(ai.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(){_.removeEventListener("load",s,!1),_.removeEventListener("error",l,!1),So.add(t,this),e&&e(this),d.manager.itemEnd(t)}function l(M){_.removeEventListener("load",s,!1),_.removeEventListener("error",l,!1),n&&n(M),d.manager.itemError(t),d.manager.itemEnd(t)}t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var d=this,p=So.get(t);if(p!==void 0)return d.manager.itemStart(t),setTimeout(function(){e&&e(p),d.manager.itemEnd(t)},0),p;var _=document.createElementNS("http://www.w3.org/1999/xhtml","img");return _.addEventListener("load",s,!1),_.addEventListener("error",l,!1),t.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(_.crossOrigin=this.crossOrigin),d.manager.itemStart(t),_.src=t,_},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Fi.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(_){d.load(t[_],function(M){l.images[_]=M,p++,p===6&&(l.needsUpdate=!0,e&&e(l))},void 0,n)}var l=new z,d=new ai(this.manager);d.setCrossOrigin(this.crossOrigin),d.setPath(this.path);var p=0;for(i=0;i<t.length;++i)s(i);return l},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(dn.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=new g,l=new ai(this.manager);return l.setCrossOrigin(this.crossOrigin),l.setPath(this.path),l.load(t,function(d){s.image=d,d=0<t.search(/\.jpe?g$/i)||t.search(/^data:image\/jpeg/)===0,s.format=d?1022:1023,s.needsUpdate=!0,e!==void 0&&e(s)},i,n),s},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ee.prototype,{getPoint:function(){return null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t===void 0&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e=[],i=this.getPoint(0),n,s=0;for(e.push(0),n=1;n<=t;n++){var l=this.getPoint(n/t);s+=l.distanceTo(i),e.push(s),i=l}return this.cacheArcLengths=e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var i=this.getLengths(),n=i.length;e=e||t*i[n-1];for(var s=0,l=n-1,d;s<=l;)if(t=Math.floor(s+(l-s)/2),d=i[t]-e,0>d)s=t+1;else if(0<d)l=t-1;else{l=t;break}return t=l,i[t]===e?t/(n-1):(s=i[t],(t+(e-s)/(i[t+1]-s))/(n-1))},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var i=new u,n=[],s=[],l=[],d=new u,p=new c,_;for(_=0;_<=t;_++){var M=_/t;n[_]=this.getTangentAt(M),n[_].normalize()}s[0]=new u,l[0]=new u,_=Number.MAX_VALUE,M=Math.abs(n[0].x);var A=Math.abs(n[0].y),L=Math.abs(n[0].z);for(M<=_&&(_=M,i.set(1,0,0)),A<=_&&(_=A,i.set(0,1,0)),L<=_&&i.set(0,0,1),d.crossVectors(n[0],i).normalize(),s[0].crossVectors(n[0],d),l[0].crossVectors(n[0],s[0]),_=1;_<=t;_++)s[_]=s[_-1].clone(),l[_]=l[_-1].clone(),d.crossVectors(n[_-1],n[_]),d.length()>Number.EPSILON&&(d.normalize(),i=Math.acos(di.clamp(n[_-1].dot(n[_]),-1,1)),s[_].applyMatrix4(p.makeRotationAxis(d,i))),l[_].crossVectors(n[_],s[_]);if(e===!0)for(i=Math.acos(di.clamp(s[0].dot(s[t]),-1,1)),i/=t,0<n[0].dot(d.crossVectors(s[0],s[t]))&&(i=-i),_=1;_<=t;_++)s[_].applyMatrix4(p.makeRotationAxis(n[_],i*_)),l[_].crossVectors(n[_],s[_]);return{tangents:n,normals:s,binormals:l}},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Qn.prototype=Object.create(Ee.prototype),Qn.prototype.constructor=Qn,Qn.prototype.isEllipseCurve=!0,Qn.prototype.getPoint=function(t,e){e=e||new o;for(var i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,s=Math.abs(n)<Number.EPSILON;0>n;)n+=i;for(;n>i;)n-=i;n<Number.EPSILON&&(n=s?0:i),this.aClockwise!==!0||s||(n=n===i?-i:n-i),i=this.aStartAngle+t*n,t=this.aX+this.xRadius*Math.cos(i);var l=this.aY+this.yRadius*Math.sin(i);return this.aRotation!==0&&(i=Math.cos(this.aRotation),n=Math.sin(this.aRotation),s=t-this.aX,l-=this.aY,t=s*i-l*n+this.aX,l=s*n+l*i+this.aY),e.set(t,l)},Qn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Qn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Qn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Ma.prototype=Object.create(Qn.prototype),Ma.prototype.constructor=Ma,Ma.prototype.isArcCurve=!0;var Cn=new u,Sl=new hr,lh=new hr,Fr=new hr;In.prototype=Object.create(Ee.prototype),In.prototype.constructor=In,In.prototype.isCatmullRomCurve3=!0,In.prototype.getPoint=function(t,e){e=e||new u;var i=this.points,n=i.length;t*=n-(this.closed?0:1);var s=Math.floor(t);if(t-=s,this.closed?s+=0<s?0:(Math.floor(Math.abs(s)/n)+1)*n:t===0&&s===n-1&&(s=n-2,t=1),this.closed||0<s)var l=i[(s-1)%n];else Cn.subVectors(i[0],i[1]).add(i[0]),l=Cn;var d=i[s%n],p=i[(s+1)%n];if(this.closed||s+2<n?i=i[(s+2)%n]:(Cn.subVectors(i[n-1],i[n-2]).add(i[n-1]),i=Cn),this.curveType==="centripetal"||this.curveType==="chordal"){var _=this.curveType==="chordal"?.5:.25;n=Math.pow(l.distanceToSquared(d),_),s=Math.pow(d.distanceToSquared(p),_),_=Math.pow(p.distanceToSquared(i),_),1e-4>s&&(s=1),1e-4>n&&(n=s),1e-4>_&&(_=s),Sl.initNonuniformCatmullRom(l.x,d.x,p.x,i.x,n,s,_),lh.initNonuniformCatmullRom(l.y,d.y,p.y,i.y,n,s,_),Fr.initNonuniformCatmullRom(l.z,d.z,p.z,i.z,n,s,_)}else this.curveType==="catmullrom"&&(Sl.initCatmullRom(l.x,d.x,p.x,i.x,this.tension),lh.initCatmullRom(l.y,d.y,p.y,i.y,this.tension),Fr.initCatmullRom(l.z,d.z,p.z,i.z,this.tension));return e.set(Sl.calc(t),lh.calc(t),Fr.calc(t)),e},In.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},In.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},In.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new u().fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},ur.prototype=Object.create(Ee.prototype),ur.prototype.constructor=ur,ur.prototype.isCubicBezierCurve=!0,ur.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2,l=this.v3;return e.set(rs(t,i.x,n.x,s.x,l.x),rs(t,i.y,n.y,s.y,l.y)),e},ur.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},ur.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},ur.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Mi.prototype=Object.create(Ee.prototype),Mi.prototype.constructor=Mi,Mi.prototype.isCubicBezierCurve3=!0,Mi.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2,l=this.v3;return e.set(rs(t,i.x,n.x,s.x,l.x),rs(t,i.y,n.y,s.y,l.y),rs(t,i.z,n.z,s.z,l.z)),e},Mi.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Mi.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Mi.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},cr.prototype=Object.create(Ee.prototype),cr.prototype.constructor=cr,cr.prototype.isLineCurve=!0,cr.prototype.getPoint=function(t,e){return e=e||new o,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},cr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},cr.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},cr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},cr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},cr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},kr.prototype=Object.create(Ee.prototype),kr.prototype.constructor=kr,kr.prototype.isLineCurve3=!0,kr.prototype.getPoint=function(t,e){return e=e||new u,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},kr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},kr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},kr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},kr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},fr.prototype=Object.create(Ee.prototype),fr.prototype.constructor=fr,fr.prototype.isQuadraticBezierCurve=!0,fr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2;return e.set(yo(t,i.x,n.x,s.x),yo(t,i.y,n.y,s.y)),e},fr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},fr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},fr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},_o.prototype=Object.create(Ee.prototype),_o.prototype.constructor=_o,_o.prototype.isQuadraticBezierCurve3=!0,_o.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2;return e.set(yo(t,i.x,n.x,s.x),yo(t,i.y,n.y,s.y),yo(t,i.z,n.z,s.z)),e},_o.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},_o.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},_o.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Qr.prototype=Object.create(Ee.prototype),Qr.prototype.constructor=Qr,Qr.prototype.isSplineCurve=!0,Qr.prototype.getPoint=function(t,e){e=e||new o;var i=this.points,n=(i.length-1)*t;t=Math.floor(n),n-=t;var s=i[t===0?t:t-1],l=i[t],d=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(Lu(n,s.x,l.x,d.x,i.x),Lu(n,s.y,l.y,d.y,i.y)),e},Qr.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this},Qr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t},Qr.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new o().fromArray(n))}return this};var hh=Object.freeze({ArcCurve:Ma,CatmullRomCurve3:In,CubicBezierCurve:ur,CubicBezierCurve3:Mi,EllipseCurve:Qn,LineCurve:cr,LineCurve3:kr,QuadraticBezierCurve:fr,QuadraticBezierCurve3:_o,SplineCurve:Qr});Do.prototype=Object.assign(Object.create(Ee.prototype),{constructor:Do,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new cr(e,t))},getPoint:function(t){var e=t*this.getLength(),i=this.getCurveLengths();for(t=0;t<i.length;){if(i[t]>=e)return e=i[t]-e,t=this.curves[t],i=t.getLength(),t.getPointAt(i===0?0:1-e/i);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){t===void 0&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e=[],i,n=0,s=this.curves;n<s.length;n++){var l=s[n];l=l.getPoints(l&&l.isEllipseCurve?2*t:l&&(l.isLineCurve||l.isLineCurve3)?1:l&&l.isSplineCurve?t*l.points.length:t);for(var d=0;d<l.length;d++){var p=l[d];i&&i.equals(p)||(e.push(p),i=p)}}return this.autoClose&&1<e.length&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){Ee.prototype.copy.call(this,t),this.curves=[];for(var e=0,i=t.curves.length;e<i;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Ee.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,i=this.curves.length;e<i;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Ee.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,i=t.curves.length;e<i;e++){var n=t.curves[e];this.curves.push(new hh[n.type]().fromJSON(n))}return this}}),dr.prototype=Object.assign(Object.create(Do.prototype),{constructor:dr,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new cr(this.currentPoint.clone(),new o(t,e));this.curves.push(i),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,i,n){t=new fr(this.currentPoint.clone(),new o(t,e),new o(i,n)),this.curves.push(t),this.currentPoint.set(i,n)},bezierCurveTo:function(t,e,i,n,s,l){t=new ur(this.currentPoint.clone(),new o(t,e),new o(i,n),new o(s,l)),this.curves.push(t),this.currentPoint.set(s,l)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new Qr(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,i,n,s,l){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,l)},absarc:function(t,e,i,n,s,l){this.absellipse(t,e,i,i,n,s,l)},ellipse:function(t,e,i,n,s,l,d,p){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,l,d,p)},absellipse:function(t,e,i,n,s,l,d,p){t=new Qn(t,e,i,n,s,l,d,p),0<this.curves.length&&(e=t.getPoint(0),e.equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return Do.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=Do.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Do.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),tr.prototype=Object.assign(Object.create(dr.prototype),{constructor:tr,getPointsHoles:function(t){for(var e=[],i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){dr.prototype.copy.call(this,t),this.holes=[];for(var e=0,i=t.holes.length;e<i;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=dr.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,i=this.holes.length;e<i;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){dr.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,i=t.holes.length;e<i;e++){var n=t.holes[e];this.holes.push(new dr().fromJSON(n))}return this}}),tn.prototype=Object.assign(Object.create(N.prototype),{constructor:tn,isLight:!0,copy:function(t){return N.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}),ll.prototype=Object.assign(Object.create(tn.prototype),{constructor:ll,isHemisphereLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(xo.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var t={};return this.bias!==0&&(t.bias=this.bias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),hl.prototype=Object.assign(Object.create(xo.prototype),{constructor:hl,isSpotLightShadow:!0,update:function(t){var e=this.camera,i=2*di.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,(i!==e.fov||n!==e.aspect||t!==e.far)&&(e.fov=i,e.aspect=n,e.far=t,e.updateProjectionMatrix())}}),ul.prototype=Object.assign(Object.create(tn.prototype),{constructor:ul,isSpotLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),zs.prototype=Object.assign(Object.create(tn.prototype),{constructor:zs,isPointLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),Ta.prototype=Object.assign(Object.create(Be.prototype),{constructor:Ta,isOrthographicCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,s,l){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=l,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,s=i-t;if(i+=t,t=n+e,e=n-e,this.view!==null&&this.view.enabled){i=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var l=(this.right-this.left)/this.view.width;n=(this.top-this.bottom)/this.view.height,s+=this.view.offsetX/i*l,i=s+this.view.width/i*l,t-=this.view.offsetY/e*n,e=t-this.view.height/e*n}this.projectionMatrix.makeOrthographic(s,i,t,e,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}),os.prototype=Object.assign(Object.create(xo.prototype),{constructor:os}),wo.prototype=Object.assign(Object.create(tn.prototype),{constructor:wo,isDirectionalLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),ks.prototype=Object.assign(Object.create(tn.prototype),{constructor:ks,isAmbientLight:!0}),eh.prototype=Object.assign(Object.create(tn.prototype),{constructor:eh,isRectAreaLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return t=tn.prototype.toJSON.call(this,t),t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(ih.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(d){e(s.parse(JSON.parse(d)))},i,n)},parse:function(t){function e(d){return i[d],i[d]}var i=this.textures,n=new Uu[t.type];if(t.uuid!==void 0&&(n.uuid=t.uuid),t.name!==void 0&&(n.name=t.name),t.color!==void 0&&n.color.setHex(t.color),t.roughness!==void 0&&(n.roughness=t.roughness),t.metalness!==void 0&&(n.metalness=t.metalness),t.emissive!==void 0&&n.emissive.setHex(t.emissive),t.specular!==void 0&&n.specular.setHex(t.specular),t.shininess!==void 0&&(n.shininess=t.shininess),t.clearCoat!==void 0&&(n.clearCoat=t.clearCoat),t.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=t.clearCoatRoughness),t.vertexColors!==void 0&&(n.vertexColors=t.vertexColors),t.fog!==void 0&&(n.fog=t.fog),t.flatShading!==void 0&&(n.flatShading=t.flatShading),t.blending!==void 0&&(n.blending=t.blending),t.combine!==void 0&&(n.combine=t.combine),t.side!==void 0&&(n.side=t.side),t.opacity!==void 0&&(n.opacity=t.opacity),t.transparent!==void 0&&(n.transparent=t.transparent),t.alphaTest!==void 0&&(n.alphaTest=t.alphaTest),t.depthTest!==void 0&&(n.depthTest=t.depthTest),t.depthWrite!==void 0&&(n.depthWrite=t.depthWrite),t.colorWrite!==void 0&&(n.colorWrite=t.colorWrite),t.wireframe!==void 0&&(n.wireframe=t.wireframe),t.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=t.wireframeLinewidth),t.wireframeLinecap!==void 0&&(n.wireframeLinecap=t.wireframeLinecap),t.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=t.wireframeLinejoin),t.rotation!==void 0&&(n.rotation=t.rotation),t.linewidth!==1&&(n.linewidth=t.linewidth),t.dashSize!==void 0&&(n.dashSize=t.dashSize),t.gapSize!==void 0&&(n.gapSize=t.gapSize),t.scale!==void 0&&(n.scale=t.scale),t.polygonOffset!==void 0&&(n.polygonOffset=t.polygonOffset),t.polygonOffsetFactor!==void 0&&(n.polygonOffsetFactor=t.polygonOffsetFactor),t.polygonOffsetUnits!==void 0&&(n.polygonOffsetUnits=t.polygonOffsetUnits),t.skinning!==void 0&&(n.skinning=t.skinning),t.morphTargets!==void 0&&(n.morphTargets=t.morphTargets),t.dithering!==void 0&&(n.dithering=t.dithering),t.visible!==void 0&&(n.visible=t.visible),t.userData!==void 0&&(n.userData=t.userData),t.uniforms!==void 0)for(var s in t.uniforms){var l=t.uniforms[s];switch(n.uniforms[s]={},l.type){case"t":n.uniforms[s].value=e(l.value);break;case"c":n.uniforms[s].value=new P().setHex(l.value);break;case"v2":n.uniforms[s].value=new o().fromArray(l.value);break;case"v3":n.uniforms[s].value=new u().fromArray(l.value);break;case"v4":n.uniforms[s].value=new v().fromArray(l.value);break;case"m4":n.uniforms[s].value=new c().fromArray(l.value);break;default:n.uniforms[s].value=l.value}}return t.defines!==void 0&&(n.defines=t.defines),t.vertexShader!==void 0&&(n.vertexShader=t.vertexShader),t.fragmentShader!==void 0&&(n.fragmentShader=t.fragmentShader),t.shading!==void 0&&(n.flatShading=t.shading===1),t.size!==void 0&&(n.size=t.size),t.sizeAttenuation!==void 0&&(n.sizeAttenuation=t.sizeAttenuation),t.map!==void 0&&(n.map=e(t.map)),t.alphaMap!==void 0&&(n.alphaMap=e(t.alphaMap),n.transparent=!0),t.bumpMap!==void 0&&(n.bumpMap=e(t.bumpMap)),t.bumpScale!==void 0&&(n.bumpScale=t.bumpScale),t.normalMap!==void 0&&(n.normalMap=e(t.normalMap)),t.normalMapType!==void 0&&(n.normalMapType=t.normalMapType),t.normalScale!==void 0&&(s=t.normalScale,Array.isArray(s)===!1&&(s=[s,s]),n.normalScale=new o().fromArray(s)),t.displacementMap!==void 0&&(n.displacementMap=e(t.displacementMap)),t.displacementScale!==void 0&&(n.displacementScale=t.displacementScale),t.displacementBias!==void 0&&(n.displacementBias=t.displacementBias),t.roughnessMap!==void 0&&(n.roughnessMap=e(t.roughnessMap)),t.metalnessMap!==void 0&&(n.metalnessMap=e(t.metalnessMap)),t.emissiveMap!==void 0&&(n.emissiveMap=e(t.emissiveMap)),t.emissiveIntensity!==void 0&&(n.emissiveIntensity=t.emissiveIntensity),t.specularMap!==void 0&&(n.specularMap=e(t.specularMap)),t.envMap!==void 0&&(n.envMap=e(t.envMap)),t.envMapIntensity!==void 0&&(n.envMapIntensity=t.envMapIntensity),t.reflectivity!==void 0&&(n.reflectivity=t.reflectivity),t.lightMap!==void 0&&(n.lightMap=e(t.lightMap)),t.lightMapIntensity!==void 0&&(n.lightMapIntensity=t.lightMapIntensity),t.aoMap!==void 0&&(n.aoMap=e(t.aoMap)),t.aoMapIntensity!==void 0&&(n.aoMapIntensity=t.aoMapIntensity),t.gradientMap!==void 0&&(n.gradientMap=e(t.gradientMap)),n},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var Hs={decodeText:function(t){if(typeof TextDecoder<"u")return new TextDecoder().decode(t);for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return e===-1?"./":t.substr(0,e+1)}};Object.assign(Fh.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(d){e(s.parse(JSON.parse(d)))},i,n)},parse:function(t){var e=new Ft,i=t.data.index;i!==void 0&&(i=new us[i.type](i.array),e.setIndex(new J(i,1)));var n=t.data.attributes;for(l in n){var s=n[l];i=new us[s.type](s.array),e.addAttribute(l,new J(i,s.itemSize,s.normalized))}var l=t.data.groups||t.data.drawcalls||t.data.offsets;if(l!==void 0)for(i=0,n=l.length;i!==n;++i)s=l[i],e.addGroup(s.start,s.count,s.materialIndex);return t=t.data.boundingSphere,t!==void 0&&(l=new u,t.center!==void 0&&l.fromArray(t.center),e.boundingSphere=new R(l,t.radius)),e},setPath:function(t){return this.path=t,this}});var us={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray<"u"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};zo.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,i=0,n=e.length;i<n;i+=2){var s=e[i+1];if(e[i].test(t))return s}return null}},Object.assign(zo.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,i){for(var n=[],s=0;s<t.length;++s)n[s]=this.createMaterial(t[s],e,i);return n},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new P,i=new dn,n=new ih;return function(s,l,d){function p(B,H,q,$,rt){B=l+B;var xt=zo.Handlers.get(B);return xt!==null?B=xt.load(B):(i.setCrossOrigin(d),B=i.load(B)),H!==void 0&&(B.repeat.fromArray(H),H[0]!==1&&(B.wrapS=1e3),H[1]!==1&&(B.wrapT=1e3)),q!==void 0&&B.offset.fromArray(q),$!==void 0&&($[0]==="repeat"&&(B.wrapS=1e3),$[0]==="mirror"&&(B.wrapS=1002),$[1]==="repeat"&&(B.wrapT=1e3),$[1]==="mirror"&&(B.wrapT=1002)),rt!==void 0&&(B.anisotropy=rt),H=di.generateUUID(),_[H]=B,H}var _={},M={uuid:di.generateUUID(),type:"MeshLambertMaterial"},A;for(A in s){var L=s[A];switch(A){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":M.name=L;break;case"blending":M.blending=t[L];break;case"colorAmbient":case"mapAmbient":break;case"colorDiffuse":M.color=e.fromArray(L).getHex();break;case"colorSpecular":M.specular=e.fromArray(L).getHex();break;case"colorEmissive":M.emissive=e.fromArray(L).getHex();break;case"specularCoef":M.shininess=L;break;case"shading":L.toLowerCase()==="basic"&&(M.type="MeshBasicMaterial"),L.toLowerCase()==="phong"&&(M.type="MeshPhongMaterial"),L.toLowerCase()==="standard"&&(M.type="MeshStandardMaterial");break;case"mapDiffuse":M.map=p(L,s.mapDiffuseRepeat,s.mapDiffuseOffset,s.mapDiffuseWrap,s.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":M.emissiveMap=p(L,s.mapEmissiveRepeat,s.mapEmissiveOffset,s.mapEmissiveWrap,s.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":M.lightMap=p(L,s.mapLightRepeat,s.mapLightOffset,s.mapLightWrap,s.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":M.aoMap=p(L,s.mapAORepeat,s.mapAOOffset,s.mapAOWrap,s.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":M.bumpMap=p(L,s.mapBumpRepeat,s.mapBumpOffset,s.mapBumpWrap,s.mapBumpAnisotropy);break;case"mapBumpScale":M.bumpScale=L;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":M.normalMap=p(L,s.mapNormalRepeat,s.mapNormalOffset,s.mapNormalWrap,s.mapNormalAnisotropy);break;case"mapNormalFactor":M.normalScale=L;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":M.specularMap=p(L,s.mapSpecularRepeat,s.mapSpecularOffset,s.mapSpecularWrap,s.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":M.metalnessMap=p(L,s.mapMetalnessRepeat,s.mapMetalnessOffset,s.mapMetalnessWrap,s.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":M.roughnessMap=p(L,s.mapRoughnessRepeat,s.mapRoughnessOffset,s.mapRoughnessWrap,s.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":M.alphaMap=p(L,s.mapAlphaRepeat,s.mapAlphaOffset,s.mapAlphaWrap,s.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":M.side=1;break;case"doubleSided":M.side=2;break;case"transparency":M.opacity=L;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":M[A]=L;break;case"vertexColors":L===!0&&(M.vertexColors=2),L==="face"&&(M.vertexColors=1);break;default:}}return M.type==="MeshBasicMaterial"&&delete M.emissive,M.type!=="MeshPhongMaterial"&&delete M.specular,1>M.opacity&&(M.transparent=!0),n.setTextures(_),n.parse(M)}}()}),Object.assign(Bs.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,l=this.path===void 0?Hs.extractUrlBase(t):this.path,d=new Lt(this.manager);d.setPath(this.path),d.setWithCredentials(this.withCredentials),d.load(t,function(p){p=JSON.parse(p);var _=p.metadata;_!==void 0&&(_=_.type,_!==void 0&&_.toLowerCase()==="object")||(p=s.parse(p,l),e(p.geometry,p.materials))},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(){return function(t,e){t.data!==void 0&&(t=t.data),t.scale=t.scale!==void 0?1/t.scale:1;var i=new X,n=t,s,l,d,p=n.faces,_=n.vertices,M=n.normals,A=n.colors,L=n.scale,B=0;if(n.uvs!==void 0){for(s=0;s<n.uvs.length;s++)n.uvs[s].length&&B++;for(s=0;s<B;s++)i.faceVertexUvs[s]=[]}var H=0;for(d=_.length;H<d;)s=new u,s.x=_[H++]*L,s.y=_[H++]*L,s.z=_[H++]*L,i.vertices.push(s);for(H=0,d=p.length;H<d;){_=p[H++];var q=_&1,$=_&2;s=_&8;var rt=_&16,xt=_&32;if(L=_&64,_&=128,q){q=new I,q.a=p[H],q.b=p[H+1],q.c=p[H+3];var gt=new I;if(gt.a=p[H+1],gt.b=p[H+2],gt.c=p[H+3],H+=4,$&&($=p[H++],q.materialIndex=$,gt.materialIndex=$),$=i.faces.length,s)for(s=0;s<B;s++){var Ct=n.uvs[s];for(i.faceVertexUvs[s][$]=[],i.faceVertexUvs[s][$+1]=[],l=0;4>l;l++){var wt=p[H++],Vt=Ct[2*wt];wt=Ct[2*wt+1],Vt=new o(Vt,wt),l!==2&&i.faceVertexUvs[s][$].push(Vt),l!==0&&i.faceVertexUvs[s][$+1].push(Vt)}}if(rt&&(rt=3*p[H++],q.normal.set(M[rt++],M[rt++],M[rt]),gt.normal.copy(q.normal)),xt)for(s=0;4>s;s++)rt=3*p[H++],xt=new u(M[rt++],M[rt++],M[rt]),s!==2&&q.vertexNormals.push(xt),s!==0&>.vertexNormals.push(xt);if(L&&(L=p[H++],L=A[L],q.color.setHex(L),gt.color.setHex(L)),_)for(s=0;4>s;s++)L=p[H++],L=A[L],s!==2&&q.vertexColors.push(new P(L)),s!==0&>.vertexColors.push(new P(L));i.faces.push(q),i.faces.push(gt)}else{if(q=new I,q.a=p[H++],q.b=p[H++],q.c=p[H++],$&&($=p[H++],q.materialIndex=$),$=i.faces.length,s)for(s=0;s<B;s++)for(Ct=n.uvs[s],i.faceVertexUvs[s][$]=[],l=0;3>l;l++)wt=p[H++],Vt=Ct[2*wt],wt=Ct[2*wt+1],Vt=new o(Vt,wt),i.faceVertexUvs[s][$].push(Vt);if(rt&&(rt=3*p[H++],q.normal.set(M[rt++],M[rt++],M[rt])),xt)for(s=0;3>s;s++)rt=3*p[H++],xt=new u(M[rt++],M[rt++],M[rt]),q.vertexNormals.push(xt);if(L&&(L=p[H++],q.color.setHex(A[L])),_)for(s=0;3>s;s++)L=p[H++],q.vertexColors.push(new P(A[L]));i.faces.push(q)}}if(n=t,H=n.influencesPerVertex!==void 0?n.influencesPerVertex:2,n.skinWeights)for(d=0,p=n.skinWeights.length;d<p;d+=H)i.skinWeights.push(new v(n.skinWeights[d],1<H?n.skinWeights[d+1]:0,2<H?n.skinWeights[d+2]:0,3<H?n.skinWeights[d+3]:0));if(n.skinIndices)for(d=0,p=n.skinIndices.length;d<p;d+=H)i.skinIndices.push(new v(n.skinIndices[d],1<H?n.skinIndices[d+1]:0,2<H?n.skinIndices[d+2]:0,3<H?n.skinIndices[d+3]:0));if(i.bones=n.bones,i.bones&&0<i.bones.length&&(i.skinWeights.length!==i.skinIndices.length||(i.skinIndices.length,i.vertices.length)),d=t,p=d.scale,d.morphTargets!==void 0)for(n=0,H=d.morphTargets.length;n<H;n++)for(i.morphTargets[n]={},i.morphTargets[n].name=d.morphTargets[n].name,i.morphTargets[n].vertices=[],M=i.morphTargets[n].vertices,A=d.morphTargets[n].vertices,B=0,_=A.length;B<_;B+=3)L=new u,L.x=A[B]*p,L.y=A[B+1]*p,L.z=A[B+2]*p,M.push(L);if(d.morphColors!==void 0&&0<d.morphColors.length)for(p=i.faces,d=d.morphColors[0].colors,n=0,H=p.length;n<H;n++)p[n].color.fromArray(d,3*n);for(d=t,n=[],H=[],d.animation!==void 0&&H.push(d.animation),d.animations!==void 0&&(d.animations.length?H=H.concat(d.animations):H.push(d.animations)),d=0;d<H.length;d++)(p=xr.parseAnimation(H[d],i.bones))&&n.push(p);return i.morphTargets&&(H=xr.CreateClipsFromMorphTargetSequences(i.morphTargets,10),n=n.concat(H)),0<n.length&&(i.animations=n),i.computeFaceNormals(),i.computeBoundingSphere(),t.materials===void 0||t.materials.length===0?{geometry:i}:(t=zo.prototype.initMaterials(t.materials,this.resourcePath||e,this.crossOrigin),{geometry:i,materials:t})}}()}),Object.assign(cl.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,l=this.path===void 0?Hs.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||l,l=new Lt(s.manager),l.setPath(this.path),l.load(t,function(d){var p=null;try{p=JSON.parse(d)}catch(_){n!==void 0&&n(_);return}d=p.metadata,d===void 0||d.type===void 0||d.type.toLowerCase()==="geometry"||s.parse(p,e)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var i=this.parseShape(t.shapes);i=this.parseGeometries(t.geometries,i);var n=this.parseImages(t.images,function(){e!==void 0&&e(s)});n=this.parseTextures(t.textures,n),n=this.parseMaterials(t.materials,n);var s=this.parseObject(t.object,i,n);return t.animations&&(s.animations=this.parseAnimations(t.animations)),t.images!==void 0&&t.images.length!==0||e===void 0||e(s),s},parseShape:function(t){var e={};if(t!==void 0)for(var i=0,n=t.length;i<n;i++){var s=new tr().fromJSON(t[i]);e[s.uuid]=s}return e},parseGeometries:function(t,e){var i={};if(t!==void 0)for(var n=new Bs,s=new Fh,l=0,d=t.length;l<d;l++){var p=t[l];switch(p.type){case"PlaneGeometry":case"PlaneBufferGeometry":var _=new _n[p.type](p.width,p.height,p.widthSegments,p.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":_=new _n[p.type](p.width,p.height,p.depth,p.widthSegments,p.heightSegments,p.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":_=new _n[p.type](p.radius,p.segments,p.thetaStart,p.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":_=new _n[p.type](p.radiusTop,p.radiusBottom,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":_=new _n[p.type](p.radius,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":_=new _n[p.type](p.radius,p.widthSegments,p.heightSegments,p.phiStart,p.phiLength,p.thetaStart,p.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":_=new _n[p.type](p.radius,p.detail);break;case"RingGeometry":case"RingBufferGeometry":_=new _n[p.type](p.innerRadius,p.outerRadius,p.thetaSegments,p.phiSegments,p.thetaStart,p.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":_=new _n[p.type](p.radius,p.tube,p.radialSegments,p.tubularSegments,p.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":_=new _n[p.type](p.radius,p.tube,p.tubularSegments,p.radialSegments,p.p,p.q);break;case"LatheGeometry":case"LatheBufferGeometry":_=new _n[p.type](p.points,p.segments,p.phiStart,p.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":_=new _n[p.type](p.vertices,p.indices,p.radius,p.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":_=[];for(var M=0,A=p.shapes.length;M<A;M++){var L=e[p.shapes[M]];_.push(L)}_=new _n[p.type](_,p.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(_=[],M=0,A=p.shapes.length;M<A;M++)L=e[p.shapes[M]],_.push(L);M=p.options.extrudePath,M!==void 0&&(p.options.extrudePath=new hh[M.type]().fromJSON(M)),_=new _n[p.type](_,p.options);break;case"BufferGeometry":_=s.parse(p);break;case"Geometry":_=n.parse(p,this.resourcePath).geometry;break;default:continue}_.uuid=p.uuid,p.name!==void 0&&(_.name=p.name),_.isBufferGeometry===!0&&p.userData!==void 0&&(_.userData=p.userData),i[p.uuid]=_}return i},parseMaterials:function(t,e){var i={},n={};if(t!==void 0){var s=new ih;s.setTextures(e),e=0;for(var l=t.length;e<l;e++){var d=t[e];if(d.type==="MultiMaterial"){for(var p=[],_=0;_<d.materials.length;_++){var M=d.materials[_];i[M.uuid]===void 0&&(i[M.uuid]=s.parse(M)),p.push(i[M.uuid])}n[d.uuid]=p}else n[d.uuid]=s.parse(d),i[d.uuid]=n[d.uuid]}}return n},parseAnimations:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],s=xr.parse(n);n.uuid!==void 0&&(s.uuid=n.uuid),e.push(s)}return e},parseImages:function(t,e){function i(B){return n.manager.itemStart(B),l.load(B,function(){n.manager.itemEnd(B)},void 0,function(){n.manager.itemError(B),n.manager.itemEnd(B)})}var n=this,s={};if(t!==void 0&&0<t.length){e=new ns(e);var l=new ai(e);l.setCrossOrigin(this.crossOrigin),e=0;for(var d=t.length;e<d;e++){var p=t[e],_=p.url;if(Array.isArray(_)){s[p.uuid]=[];for(var M=0,A=_.length;M<A;M++){var L=_[M];L=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(L)?L:n.resourcePath+L,s[p.uuid].push(i(L))}}else L=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p.url)?p.url:n.resourcePath+p.url,s[p.uuid]=i(L)}}return s},parseTextures:function(t,e){function i(_,M){return typeof _=="number"?_:M[_]}var n={};if(t!==void 0)for(var s=0,l=t.length;s<l;s++){var d=t[s];d.image,e[d.image];var p=Array.isArray(e[d.image])?new z(e[d.image]):new g(e[d.image]);p.needsUpdate=!0,p.uuid=d.uuid,d.name!==void 0&&(p.name=d.name),d.mapping!==void 0&&(p.mapping=i(d.mapping,Gu)),d.offset!==void 0&&p.offset.fromArray(d.offset),d.repeat!==void 0&&p.repeat.fromArray(d.repeat),d.center!==void 0&&p.center.fromArray(d.center),d.rotation!==void 0&&(p.rotation=d.rotation),d.wrap!==void 0&&(p.wrapS=i(d.wrap[0],Jn),p.wrapT=i(d.wrap[1],Jn)),d.format!==void 0&&(p.format=d.format),d.minFilter!==void 0&&(p.minFilter=i(d.minFilter,uh)),d.magFilter!==void 0&&(p.magFilter=i(d.magFilter,uh)),d.anisotropy!==void 0&&(p.anisotropy=d.anisotropy),d.flipY!==void 0&&(p.flipY=d.flipY),n[d.uuid]=p}return n},parseObject:function(t,e,i){function n(M){return e[M],e[M]}function s(M){if(M!==void 0){if(Array.isArray(M)){for(var A=[],L=0,B=M.length;L<B;L++){var H=M[L];i[H],A.push(i[H])}return A}return i[M],i[M]}}switch(t.type){case"Scene":var l=new qn;t.background!==void 0&&Number.isInteger(t.background)&&(l.background=new P(t.background)),t.fog!==void 0&&(t.fog.type==="Fog"?l.fog=new En(t.fog.color,t.fog.near,t.fog.far):t.fog.type==="FogExp2"&&(l.fog=new Re(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":l=new _e(t.fov,t.aspect,t.near,t.far),t.focus!==void 0&&(l.focus=t.focus),t.zoom!==void 0&&(l.zoom=t.zoom),t.filmGauge!==void 0&&(l.filmGauge=t.filmGauge),t.filmOffset!==void 0&&(l.filmOffset=t.filmOffset),t.view!==void 0&&(l.view=Object.assign({},t.view));break;case"OrthographicCamera":l=new Ta(t.left,t.right,t.top,t.bottom,t.near,t.far),t.zoom!==void 0&&(l.zoom=t.zoom),t.view!==void 0&&(l.view=Object.assign({},t.view));break;case"AmbientLight":l=new ks(t.color,t.intensity);break;case"DirectionalLight":l=new wo(t.color,t.intensity);break;case"PointLight":l=new zs(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":l=new eh(t.color,t.intensity,t.width,t.height);break;case"SpotLight":l=new ul(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":l=new ll(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":case"Mesh":l=n(t.geometry);var d=s(t.material);l=l.bones&&0<l.bones.length?new Gi(l,d):new pi(l,d);break;case"LOD":l=new rn;break;case"Line":l=new ji(n(t.geometry),s(t.material),t.mode);break;case"LineLoop":l=new fo(n(t.geometry),s(t.material));break;case"LineSegments":l=new gi(n(t.geometry),s(t.material));break;case"PointCloud":case"Points":l=new ha(n(t.geometry),s(t.material));break;case"Sprite":l=new nn(s(t.material));break;case"Group":l=new ci;break;default:l=new N}if(l.uuid=t.uuid,t.name!==void 0&&(l.name=t.name),t.matrix!==void 0?(l.matrix.fromArray(t.matrix),t.matrixAutoUpdate!==void 0&&(l.matrixAutoUpdate=t.matrixAutoUpdate),l.matrixAutoUpdate&&l.matrix.decompose(l.position,l.quaternion,l.scale)):(t.position!==void 0&&l.position.fromArray(t.position),t.rotation!==void 0&&l.rotation.fromArray(t.rotation),t.quaternion!==void 0&&l.quaternion.fromArray(t.quaternion),t.scale!==void 0&&l.scale.fromArray(t.scale)),t.castShadow!==void 0&&(l.castShadow=t.castShadow),t.receiveShadow!==void 0&&(l.receiveShadow=t.receiveShadow),t.shadow&&(t.shadow.bias!==void 0&&(l.shadow.bias=t.shadow.bias),t.shadow.radius!==void 0&&(l.shadow.radius=t.shadow.radius),t.shadow.mapSize!==void 0&&l.shadow.mapSize.fromArray(t.shadow.mapSize),t.shadow.camera!==void 0&&(l.shadow.camera=this.parseObject(t.shadow.camera))),t.visible!==void 0&&(l.visible=t.visible),t.frustumCulled!==void 0&&(l.frustumCulled=t.frustumCulled),t.renderOrder!==void 0&&(l.renderOrder=t.renderOrder),t.userData!==void 0&&(l.userData=t.userData),t.layers!==void 0&&(l.layers.mask=t.layers),t.children!==void 0){d=t.children;for(var p=0;p<d.length;p++)l.add(this.parseObject(d[p],e,i))}if(t.type==="LOD")for(t=t.levels,d=0;d<t.length;d++){p=t[d];var _=l.getObjectByProperty("uuid",p.object);_!==void 0&&l.addLevel(_,p.distance)}return l}});var Gu={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Jn={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},uh={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};Uh.prototype={constructor:Uh,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,l=So.get(t);if(l!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(l),s.manager.itemEnd(t)},0),l;fetch(t).then(function(d){return d.blob()}).then(function(d){return createImageBitmap(d,s.options)}).then(function(d){So.add(t,d),e&&e(d),s.manager.itemEnd(t)}).catch(function(d){n&&n(d),s.manager.itemError(t),s.manager.itemEnd(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(nh.prototype,{moveTo:function(t,e){this.currentPath=new dr,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,i,n){this.currentPath.quadraticCurveTo(t,e,i,n)},bezierCurveTo:function(t,e,i,n,s,l){this.currentPath.bezierCurveTo(t,e,i,n,s,l)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function i(rt){for(var xt=[],gt=0,Ct=rt.length;gt<Ct;gt++){var wt=rt[gt],Vt=new tr;Vt.curves=wt.curves,xt.push(Vt)}return xt}function n(rt,xt){for(var gt=xt.length,Ct=!1,wt=gt-1,Vt=0;Vt<gt;wt=Vt++){var K=xt[wt],ot=xt[Vt],kt=ot.x-K.x,ee=ot.y-K.y;if(Math.abs(ee)>Number.EPSILON){if(0>ee&&(K=xt[Vt],kt=-kt,ot=xt[wt],ee=-ee),!(rt.y<K.y||rt.y>ot.y))if(rt.y===K.y){if(rt.x===K.x)return!0}else{if(wt=ee*(rt.x-K.x)-kt*(rt.y-K.y),wt===0)return!0;0>wt||(Ct=!Ct)}}else if(rt.y===K.y&&(ot.x<=rt.x&&rt.x<=K.x||K.x<=rt.x&&rt.x<=ot.x))return!0}return Ct}var s=To.isClockWise,l=this.subPaths;if(l.length===0)return[];if(e===!0)return i(l);if(e=[],l.length===1){var d=l[0],p=new tr;return p.curves=d.curves,e.push(p),e}var _=!s(l[0].getPoints());_=t?!_:_,p=[];var M=[],A=[],L=0;M[L]=void 0,A[L]=[];for(var B=0,H=l.length;B<H;B++){d=l[B];var q=d.getPoints(),$=s(q);($=t?!$:$)?(!_&&M[L]&&L++,M[L]={s:new tr,p:q},M[L].s.curves=d.curves,_&&L++,A[L]=[]):A[L].push({h:d,p:q[0]})}if(!M[0])return i(l);if(1<M.length){for(B=!1,t=[],s=0,l=M.length;s<l;s++)p[s]=[];for(s=0,l=M.length;s<l;s++)for(d=A[s],$=0;$<d.length;$++){for(_=d[$],L=!0,q=0;q<M.length;q++)n(_.p,M[q].p)&&(s!==q&&t.push({froms:s,tos:q,hole:$}),L?(L=!1,p[q].push(_)):B=!0);L&&p[s].push(_)}0<t.length&&(B||(A=p))}for(B=0,s=M.length;B<s;B++)for(p=M[B].s,e.push(p),t=A[B],l=0,d=t.length;l<d;l++)p.holes.push(t[l].h);return e}}),Object.assign(Gh.prototype,{isFont:!0,generateShapes:function(t,e){e===void 0&&(e=100);var i=[],n=e;e=this.data;var s=Array.from?Array.from(t):String(t).split("");n/=e.resolution;var l=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*n;t=[];for(var d=0,p=0,_=0;_<s.length;_++){var M=s[_];if(M===`
|
|
2571
|
+
`)d=0,p-=l;else{var A=n,L=d,B=p;if(M=e.glyphs[M]||e.glyphs["?"]){var H=new nh;if(M.o)for(var q=M._cachedOutline||(M._cachedOutline=M.o.split(" ")),$=0,rt=q.length;$<rt;)switch(q[$++]){case"m":var xt=q[$++]*A+L,gt=q[$++]*A+B;H.moveTo(xt,gt);break;case"l":xt=q[$++]*A+L,gt=q[$++]*A+B,H.lineTo(xt,gt);break;case"q":var Ct=q[$++]*A+L,wt=q[$++]*A+B,Vt=q[$++]*A+L,K=q[$++]*A+B;H.quadraticCurveTo(Vt,K,Ct,wt);break;case"b":Ct=q[$++]*A+L,wt=q[$++]*A+B,Vt=q[$++]*A+L,K=q[$++]*A+B,xt=q[$++]*A+L,gt=q[$++]*A+B,H.bezierCurveTo(Vt,K,xt,gt,Ct,wt)}A={offsetX:M.ha*A,path:H}}else A=void 0;d+=A.offsetX,t.push(A.path)}}for(e=0,s=t.length;e<s;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}}),Object.assign(Ru.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(this.manager);l.setPath(this.path),l.load(t,function(d){try{var p=JSON.parse(d)}catch{p=JSON.parse(d.substring(65,d.length-2))}d=s.parse(p),e&&e(d)},i,n)},parse:function(t){return new Gh(t)},setPath:function(t){return this.path=t,this}});var ch,Kh={getContext:function(){return ch===void 0&&(ch=new(window.AudioContext||window.webkitAudioContext)),ch},setContext:function(t){ch=t}};Object.assign(yn.prototype,{load:function(t,e,i,n){var s=new Lt(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.load(t,function(l){l=l.slice(0),Kh.getContext().decodeAudioData(l,function(d){e(d)})},i,n)},setPath:function(t){return this.path=t,this}}),Object.assign(Wn.prototype,{update:function(){var t,e,i,n,s,l,d,p,_=new c,M=new c;return function(A){if(t!==this||e!==A.focus||i!==A.fov||n!==A.aspect*this.aspect||s!==A.near||l!==A.far||d!==A.zoom||p!==this.eyeSep){t=this,e=A.focus,i=A.fov,n=A.aspect*this.aspect,s=A.near,l=A.far,d=A.zoom;var L=A.projectionMatrix.clone();p=this.eyeSep/2;var B=p*s/e,H=s*Math.tan(di.DEG2RAD*i*.5)/d;M.elements[12]=-p,_.elements[12]=p;var q=-H*n+B,$=H*n+B;L.elements[0]=2*s/($-q),L.elements[8]=($+q)/($-q),this.cameraL.projectionMatrix.copy(L),q=-H*n-B,$=H*n-B,L.elements[0]=2*s/($-q),L.elements[8]=($+q)/($-q),this.cameraR.projectionMatrix.copy(L)}this.cameraL.matrixWorld.copy(A.matrixWorld).multiply(M),this.cameraR.matrixWorld.copy(A.matrixWorld).multiply(_)}}()}),fl.prototype=Object.create(N.prototype),fl.prototype.constructor=fl,Object.assign(Hh.prototype,{start:function(){this.oldTime=this.startTime=(typeof performance>"u"?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=(typeof performance>"u"?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),rh.prototype=Object.assign(Object.create(N.prototype),{constructor:rh,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new u,e=new f,i=new u,n=new u,s=new Hh;return function(l){N.prototype.updateMatrixWorld.call(this,l),l=this.context.listener;var d=this.up;if(this.timeDelta=s.getDelta(),this.matrixWorld.decompose(t,e,i),n.set(0,0,-1).applyQuaternion(e),l.positionX){var p=this.context.currentTime+this.timeDelta;l.positionX.linearRampToValueAtTime(t.x,p),l.positionY.linearRampToValueAtTime(t.y,p),l.positionZ.linearRampToValueAtTime(t.z,p),l.forwardX.linearRampToValueAtTime(n.x,p),l.forwardY.linearRampToValueAtTime(n.y,p),l.forwardZ.linearRampToValueAtTime(n.z,p),l.upX.linearRampToValueAtTime(d.x,p),l.upY.linearRampToValueAtTime(d.y,p),l.upZ.linearRampToValueAtTime(d.z,p)}else l.setPosition(t.x,t.y,t.z),l.setOrientation(n.x,n.y,n.z,d.x,d.y,d.z)}}()}),Sa.prototype=Object.assign(Object.create(N.prototype),{constructor:Sa,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(this.isPlaying!==!0){if(this.hasPlaybackControl!==!1){var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}}},pause:function(){if(this.hasPlaybackControl!==!1)return this.isPlaying===!0&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this},stop:function(){if(this.hasPlaybackControl!==!1)return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),this.isPlaying===!0?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(this.hasPlaybackControl!==!1)return this.playbackRate=t,this.isPlaying===!0&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?!1:this.loop},setLoop:function(t){if(this.hasPlaybackControl!==!1)return this.loop=t,this.isPlaying===!0&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),dl.prototype=Object.assign(Object.create(Sa.prototype),{constructor:dl,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this},updateMatrixWorld:function(){var t=new u,e=new f,i=new u,n=new u;return function(s){if(N.prototype.updateMatrixWorld.call(this,s),s=this.panner,this.matrixWorld.decompose(t,e,i),n.set(0,0,1).applyQuaternion(e),s.positionX){var l=this.context.currentTime+this.listener.timeDelta;s.positionX.linearRampToValueAtTime(t.x,l),s.positionY.linearRampToValueAtTime(t.y,l),s.positionZ.linearRampToValueAtTime(t.z,l),s.orientationX.linearRampToValueAtTime(n.x,l),s.orientationY.linearRampToValueAtTime(n.y,l),s.orientationZ.linearRampToValueAtTime(n.z,l)}else s.setPosition(t.x,t.y,t.z),s.setOrientation(n.x,n.y,n.z)}}()}),Object.assign(Ns.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),i=0;i<e.length;i++)t+=e[i];return t/e.length}}),Object.assign(pl.prototype,{accumulate:function(t,e){var i=this.buffer,n=this.valueSize;t=t*n+n;var s=this.cumulativeWeight;if(s===0){for(s=0;s!==n;++s)i[t+s]=i[s];s=e}else s+=e,this._mixBufferRegion(i,t,0,e/s,n);this.cumulativeWeight=s},apply:function(t){var e=this.valueSize,i=this.buffer;t=t*e+e;var n=this.cumulativeWeight,s=this.binding;this.cumulativeWeight=0,1>n&&this._mixBufferRegion(i,t,3*e,1-n,e),n=e;for(var l=e+e;n!==l;++n)if(i[n]!==i[n+e]){s.setValue(i,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,i=3*e;this.binding.getValue(t,i);for(var n=e;n!==i;++n)t[n]=t[i+n%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,i,n,s){if(.5<=n)for(n=0;n!==s;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){f.slerpFlat(t,e,t,e,t,i,n)},_lerp:function(t,e,i,n,s){for(var l=1-n,d=0;d!==s;++d){var p=e+d;t[p]=t[p]*l+t[i+d]*n}}}),Object.assign(Fs.prototype,{getValue:function(t,e){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];i!==void 0&&i.getValue(t,e)},setValue:function(t,e){for(var i=this._bindings,n=this._targetGroup.nCachedObjects_,s=i.length;n!==s;++n)i[n].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(bn,{Composite:Fs,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new bn.Composite(t,e,i):new bn(t,e,i)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),n=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),s=new RegExp("^"+e+t+i+n+"$"),l=["material","materials","bones"];return function(d){var p=s.exec(d);if(!p)throw Error("PropertyBinding: Cannot parse trackName: "+d);p={nodeName:p[2],objectName:p[3],objectIndex:p[4],propertyName:p[5],propertyIndex:p[6]};var _=p.nodeName&&p.nodeName.lastIndexOf(".");if(_!==void 0&&_!==-1){var M=p.nodeName.substring(_+1);l.indexOf(M)!==-1&&(p.nodeName=p.nodeName.substring(0,_),p.objectName=M)}if(p.propertyName===null||p.propertyName.length===0)throw Error("PropertyBinding: can not parse propertyName from trackName: "+d);return p}}(),findNode:function(t,e){if(!e||e===""||e==="root"||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){var i=t.skeleton.getBoneByName(e);if(i!==void 0)return i}if(t.children){var n=function(s){for(var l=0;l<s.length;l++){var d=s[l];if(d.name===e||d.uuid===e||(d=n(d.children)))return d}return null};if(t=n(t.children))return t}return null}}),Object.assign(bn.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,i=e.objectName,n=e.propertyName,s=e.propertyIndex;if(t||(this.node=t=bn.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(i){var l=e.objectIndex;switch(i){case"materials":if(!t.material||!t.material.materials)return;t=t.material.materials;break;case"bones":if(!t.skeleton)return;for(t=t.skeleton.bones,i=0;i<t.length;i++)if(t[i].name===l){l=i;break}break;default:if(t[i]===void 0)return;t=t[i]}if(l!==void 0){if(t[l]===void 0)return;t=t[l]}}if(l=t[n],l!==void 0){if(e=this.Versioning.None,this.targetObject=t,t.needsUpdate!==void 0?e=this.Versioning.NeedsUpdate:t.matrixWorldNeedsUpdate!==void 0&&(e=this.Versioning.MatrixWorldNeedsUpdate),i=this.BindingType.Direct,s!==void 0){if(n==="morphTargetInfluences"){if(!t.geometry)return;if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes)return;for(i=0;i<this.node.geometry.morphAttributes.position.length;i++)if(t.geometry.morphAttributes.position[i].name===s){s=i;break}}else{if(!t.geometry.morphTargets)return;for(i=0;i<this.node.geometry.morphTargets.length;i++)if(t.geometry.morphTargets[i].name===s){s=i;break}}}i=this.BindingType.ArrayElement,this.resolvedProperty=l,this.propertyIndex=s}else l.fromArray!==void 0&&l.toArray!==void 0?(i=this.BindingType.HasFromToArray,this.resolvedProperty=l):Array.isArray(l)?(i=this.BindingType.EntireArray,this.resolvedProperty=l):this.propertyName=n;this.getValue=this.GetterByBindingType[i],this.setValue=this.SetterByBindingTypeAndVersioning[i][e]}}},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(bn.prototype,{_getValue_unbound:bn.prototype.getValue,_setValue_unbound:bn.prototype.setValue}),Object.assign(Ea.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._paths,l=this._parsedPaths,d=this._bindings,p=d.length,_=void 0,M=0,A=arguments.length;M!==A;++M){var L=arguments[M],B=L.uuid,H=n[B];if(H===void 0){H=e++,n[B]=H,t.push(L),B=0;for(var q=p;B!==q;++B)d[B].push(new bn(L,s[B],l[B]))}else if(H<i){_=t[H];var $=--i;for(q=t[$],n[q.uuid]=H,t[H]=q,n[B]=$,t[$]=L,B=0,q=p;B!==q;++B){var rt=d[B],xt=rt[H];rt[H]=rt[$],xt===void 0&&(xt=new bn(L,s[B],l[B])),rt[$]=xt}}else t[H]}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,s=n.length,l=0,d=arguments.length;l!==d;++l){var p=arguments[l],_=p.uuid,M=i[_];if(M!==void 0&&M>=e){var A=e++,L=t[A];for(i[L.uuid]=M,t[M]=L,i[_]=A,t[A]=p,p=0,_=s;p!==_;++p){L=n[p];var B=L[M];L[M]=L[A],L[A]=B}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._bindings,l=s.length,d=0,p=arguments.length;d!==p;++d){var _=arguments[d].uuid,M=n[_];if(M!==void 0)if(delete n[_],M<i){_=--i;var A=t[_],L=--e,B=t[L];for(n[A.uuid]=M,t[M]=A,n[B.uuid]=_,t[_]=B,t.pop(),A=0,B=l;A!==B;++A){var H=s[A],q=H[L];H[M]=H[_],H[_]=q,H.pop()}}else for(L=--e,B=t[L],n[B.uuid]=M,t[M]=B,t.pop(),A=0,B=l;A!==B;++A)H=s[A],H[M]=H[L],H.pop()}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],s=this._bindings;if(n!==void 0)return s[n];var l=this._paths,d=this._parsedPaths,p=this._objects,_=this.nCachedObjects_,M=Array(p.length);for(n=s.length,i[t]=n,l.push(t),d.push(e),s.push(M),i=_,n=p.length;i!==n;++i)M[i]=new bn(p[i],t,e);return M},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(i!==void 0){var n=this._paths,s=this._parsedPaths,l=this._bindings,d=l.length-1,p=l[d];e[t[d]]=i,l[i]=p,l.pop(),s[i]=s[d],s.pop(),n[i]=n[d],n.pop()}}}),Object.assign(ml.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){i=this._clip.duration;var n=t._clip.duration,s=i/n;t.warp(1,n/i,e),this.warp(s,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return t!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,i){var n=this._mixer,s=n.time,l=this._timeScaleInterpolant,d=this.timeScale;return l===null&&(this._timeScaleInterpolant=l=n._lendControlInterpolant()),n=l.parameterPositions,l=l.sampleValues,n[0]=s,n[1]=s+i,l[0]=t/d,l[1]=e/d,this},stopWarping:function(){var t=this._timeScaleInterpolant;return t!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,i,n){if(this.enabled){var s=this._startTime;if(s!==null){if(e=(t-s)*i,0>e||i===0)return;this._startTime=null,e*=i}if(e*=this._updateTimeScale(t),i=this._updateTime(e),t=this._updateWeight(t),0<t){e=this._interpolants,s=this._propertyBindings;for(var l=0,d=e.length;l!==d;++l)e[l].evaluate(i),s[l].accumulate(n,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var i=this._weightInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),n===0&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var i=this._timeScaleInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopWarping(),e===0?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,i=this._clip.duration,n=this.loop,s=this._loopCount,l=n===2202;if(t===0)return s===-1?e:l&&(s&1)===1?i-e:e;if(n===2200)t:{if(s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=i)e=i;else if(0>e)e=0;else break t;this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(s===-1&&(0<=t?(s=0,this._setEndings(!0,this.repetitions===0,l)):this._setEndings(this.repetitions===0,!0,l)),e>=i||0>e){n=Math.floor(e/i),e-=i*n,s+=Math.abs(n);var d=this.repetitions-s;0>=d?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?i:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(d===1?(t=0>t,this._setEndings(t,!t,l)):this._setEndings(!1,!1,l),this._loopCount=s,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n}))}if(l&&(s&1)===1)return this.time=e,i-e}return this.time=e},_setEndings:function(t,e,i){var n=this._interpolantSettings;i?(n.endingStart=2401,n.endingEnd=2401):(n.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,n.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,i){var n=this._mixer,s=n.time,l=this._weightInterpolant;return l===null&&(this._weightInterpolant=l=n._lendControlInterpolant()),n=l.parameterPositions,l=l.sampleValues,n[0]=s,l[0]=e,n[1]=s+t,l[1]=i,this}}),ss.prototype=Object.assign(Object.create(a.prototype),{constructor:ss,_bindAction:function(t,e){var i=t._localRoot||this._root,n=t._clip.tracks,s=n.length,l=t._propertyBindings;t=t._interpolants;var d=i.uuid,p=this._bindingsByRootAndName,_=p[d];for(_===void 0&&(_={},p[d]=_),p=0;p!==s;++p){var M=n[p],A=M.name,L=_[A];if(L===void 0){if(L=l[p],L!==void 0){L._cacheIndex===null&&(++L.referenceCount,this._addInactiveBinding(L,d,A));continue}L=new pl(bn.create(i,A,e&&e._propertyBindings[p].binding.parsedPath),M.ValueTypeName,M.getValueSize()),++L.referenceCount,this._addInactiveBinding(L,d,A)}l[p]=L,t[p].resultBuffer=L.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(t._cacheIndex===null){var e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}for(e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return t=t._cacheIndex,t!==null&&t<this._nActiveActions},_addInactiveAction:function(t,e,i){var n=this._actions,s=this._actionsByClip,l=s[e];l===void 0?(l={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,s[e]=l):(e=l.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=n.length,n.push(t),l.actionByRoot[i]=t},_removeInactiveAction:function(t){var e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null,e=t._clip.uuid,i=this._actionsByClip,n=i[e];var s=n.knownActions,l=s[s.length-1],d=t._byClipCacheIndex;l._byClipCacheIndex=d,s[d]=l,s.pop(),t._byClipCacheIndex=null,delete n.actionByRoot[(t._localRoot||this._root).uuid],s.length===0&&delete i[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){t=t._propertyBindings;for(var e=0,i=t.length;e!==i;++e){var n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}},_lendAction:function(t){var e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackAction:function(t){var e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_addInactiveBinding:function(t,e,i){var n=this._bindingsByRootAndName,s=n[e],l=this._bindings;s===void 0&&(s={},n[e]=s),s[i]=t,t._cacheIndex=l.length,l.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,i=t.binding,n=i.rootNode.uuid;i=i.path;var s=this._bindingsByRootAndName,l=s[n],d=e[e.length-1];t=t._cacheIndex,d._cacheIndex=t,e[t]=d,e.pop(),delete l[i];t:{for(var p in l)break t;delete s[n]}},_lendBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,i=t[e];return i===void 0&&(i=new zr(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,s=e[n];t.__cacheIndex=n,e[n]=t,s.__cacheIndex=i,e[i]=s},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var i=e||this._root,n=i.uuid;i=typeof t=="string"?xr.findByName(i,t):t,t=i!==null?i.uuid:t;var s=this._actionsByClip[t],l=null;if(s!==void 0){if(l=s.actionByRoot[n],l!==void 0)return l;l=s.knownActions[0],i===null&&(i=l._clip)}return i===null?null:(e=new ml(this,i,e),this._bindAction(e,l),this._addInactiveAction(e,t,n),e)},existingAction:function(t,e){var i=e||this._root;return e=i.uuid,i=typeof t=="string"?xr.findByName(i,t):t,t=this._actionsByClip[i?i.uuid:t],t!==void 0&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,i=this._bindings,n=this._nActiveBindings,s=this._nActiveBindings=this._nActiveActions=0;s!==e;++s)t[s].reset();for(s=0;s!==n;++s)i[s].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,i=this._nActiveActions,n=this.time+=t,s=Math.sign(t),l=this._accuIndex^=1,d=0;d!==i;++d)e[d]._update(n,t,s,l);for(t=this._bindings,e=this._nActiveBindings,d=0;d!==e;++d)t[d].apply(l);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var i=this._actionsByClip,n=i[t];if(n!==void 0){n=n.knownActions;for(var s=0,l=n.length;s!==l;++s){var d=n[s];this._deactivateAction(d);var p=d._cacheIndex,_=e[e.length-1];d._cacheIndex=null,d._byClipCacheIndex=null,_._cacheIndex=p,e[p]=_,e.pop(),this._removeInactiveBindingsForAction(d)}delete i[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(n in e){var i=e[n].actionByRoot[t];i!==void 0&&(this._deactivateAction(i),this._removeInactiveAction(i))}var n=this._bindingsByRootAndName[t];if(n!==void 0)for(var s in n)t=n[s],t.restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){t=this.existingAction(t,e),t!==null&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),oh.prototype.clone=function(){return new oh(this.value.clone===void 0?this.value:this.value.clone())},Vh.prototype=Object.assign(Object.create(Ft.prototype),{constructor:Vh,isInstancedBufferGeometry:!0,copy:function(t){return Ft.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)}}),Wh.prototype=Object.assign(Object.create(ki.prototype),{constructor:Wh,isInstancedInterleavedBuffer:!0,copy:function(t){return ki.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),jh.prototype=Object.assign(Object.create(J.prototype),{constructor:jh,isInstancedBufferAttribute:!0,copy:function(t){return J.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Ou.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera&&(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld))},intersectObject:function(t,e,i){return i=i||[],Us(t,this,i,e),i.sort(gl),i},intersectObjects:function(t,e,i){if(i=i||[],Array.isArray(t)===!1)return i;for(var n=0,s=t.length;n<s;n++)Us(t[n],this,i,e);return i.sort(gl),i}}),Object.assign(Xh.prototype,{set:function(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?this.phi=this.theta=0:(this.theta=Math.atan2(t,i),this.phi=Math.acos(di.clamp(e/this.radius,-1,1))),this}}),Object.assign(it.prototype,{set:function(t,e,i){return this.radius=t,this.theta=e,this.y=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}}),Object.assign(as.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new o;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return t===void 0&&(t=new o),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(t=new o),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return e===void 0&&(e=new o),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return e===void 0&&(e=new o),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new o;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(ba.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return t===void 0&&(t=new u),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return t===void 0&&(t=new u),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return e===void 0&&(e=new u),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new u,e=new u;return function(i,n){return t.subVectors(i,this.start),e.subVectors(this.end,this.start),i=e.dot(e),i=e.dot(t)/i,n&&(i=di.clamp(i,0,1)),i}}(),closestPointToPoint:function(t,e,i){return t=this.closestPointToPointParameter(t,e),i===void 0&&(i=new u),this.delta(i).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),Yn.prototype=Object.create(N.prototype),Yn.prototype.constructor=Yn,Yn.prototype.isImmediateRenderObject=!0,_i.prototype=Object.create(gi.prototype),_i.prototype.constructor=_i,_i.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){var n=["a","b","c"];this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var s=this.object.matrixWorld,l=this.geometry.attributes.position,d=this.object.geometry;if(d&&d.isGeometry)for(var p=d.vertices,_=d.faces,M=d=0,A=_.length;M<A;M++)for(var L=_[M],B=0,H=L.vertexNormals.length;B<H;B++){var q=L.vertexNormals[B];t.copy(p[L[n[B]]]).applyMatrix4(s),e.copy(q).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),l.setXYZ(d,t.x,t.y,t.z),d+=1,l.setXYZ(d,e.x,e.y,e.z),d+=1}else if(d&&d.isBufferGeometry)for(n=d.attributes.position,p=d.attributes.normal,B=d=0,H=n.count;B<H;B++)t.set(n.getX(B),n.getY(B),n.getZ(B)).applyMatrix4(s),e.set(p.getX(B),p.getY(B),p.getZ(B)),e.applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),l.setXYZ(d,t.x,t.y,t.z),d+=1,l.setXYZ(d,e.x,e.y,e.z),d+=1;l.needsUpdate=!0}}(),Ca.prototype=Object.create(N.prototype),Ca.prototype.constructor=Ca,Ca.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},Ca.prototype.update=function(){var t=new u,e=new u;return function(){this.light.updateMatrixWorld();var i=this.light.distance?this.light.distance:1e3,n=i*Math.tan(this.light.angle);this.cone.scale.set(n,n,i),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Aa.prototype=Object.create(gi.prototype),Aa.prototype.constructor=Aa,Aa.prototype.updateMatrixWorld=function(){var t=new u,e=new c,i=new c;return function(n){var s=this.bones,l=this.geometry,d=l.getAttribute("position");i.getInverse(this.root.matrixWorld);for(var p=0,_=0;p<s.length;p++){var M=s[p];M.parent&&M.parent.isBone&&(e.multiplyMatrices(i,M.matrixWorld),t.setFromMatrixPosition(e),d.setXYZ(_,t.x,t.y,t.z),e.multiplyMatrices(i,M.parent.matrixWorld),t.setFromMatrixPosition(e),d.setXYZ(_+1,t.x,t.y,t.z),_+=2)}l.getAttribute("position").needsUpdate=!0,N.prototype.updateMatrixWorld.call(this,n)}}(),Br.prototype=Object.create(pi.prototype),Br.prototype.constructor=Br,Br.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},Br.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)},Pa.prototype=Object.create(N.prototype),Pa.prototype.constructor=Pa,Pa.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Pa.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,i=this.line.geometry.attributes.position,n=i.array;n[0]=t,n[1]=-e,n[2]=0,n[3]=t,n[4]=e,n[5]=0,n[6]=-t,n[7]=e,n[8]=0,n[9]=-t,n[10]=-e,n[11]=0,n[12]=t,n[13]=-e,n[14]=0,i.needsUpdate=!0,this.color!==void 0?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},La.prototype=Object.create(N.prototype),La.prototype.constructor=La,La.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},La.prototype.update=function(){var t=new u,e=new P,i=new P;return function(){var n=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var s=n.geometry.getAttribute("color");e.copy(this.light.color),i.copy(this.light.groundColor);for(var l=0,d=s.count;l<d;l++){var p=l<d/2?e:i;s.setXYZ(l,p.r,p.g,p.b)}s.needsUpdate=!0}n.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),vl.prototype=Object.create(gi.prototype),vl.prototype.constructor=vl,sh.prototype=Object.create(gi.prototype),sh.prototype.constructor=sh,yl.prototype=Object.create(gi.prototype),yl.prototype.constructor=yl,yl.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var n=this.object.matrixWorld,s=this.geometry.attributes.position,l=this.object.geometry,d=l.vertices;l=l.faces;for(var p=0,_=0,M=l.length;_<M;_++){var A=l[_],L=A.normal;t.copy(d[A.a]).add(d[A.b]).add(d[A.c]).divideScalar(3).applyMatrix4(n),e.copy(L).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(p,t.x,t.y,t.z),p+=1,s.setXYZ(p,e.x,e.y,e.z),p+=1}s.needsUpdate=!0}}(),pr.prototype=Object.create(N.prototype),pr.prototype.constructor=pr,pr.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},pr.prototype.update=function(){var t=new u,e=new u,i=new u;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),i.subVectors(e,t),this.lightPlane.lookAt(i),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(i),this.targetLine.scale.z=i.length()}}(),_l.prototype=Object.create(gi.prototype),_l.prototype.constructor=_l,_l.prototype.update=function(){function t(l,d,p,_){if(n.set(d,p,_).unproject(s),l=i[l],l!==void 0)for(d=e.getAttribute("position"),p=0,_=l.length;p<_;p++)d.setXYZ(l[p],n.x,n.y,n.z)}var e,i,n=new u,s=new Be;return function(){e=this.geometry,i=this.pointMap,s.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),ko.prototype=Object.create(gi.prototype),ko.prototype.constructor=ko,ko.prototype.update=function(){var t=new k;return function(e){if(this.object!==void 0&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var i=t.max,n=this.geometry.attributes.position,s=n.array;s[0]=i.x,s[1]=i.y,s[2]=i.z,s[3]=e.x,s[4]=i.y,s[5]=i.z,s[6]=e.x,s[7]=e.y,s[8]=i.z,s[9]=i.x,s[10]=e.y,s[11]=i.z,s[12]=i.x,s[13]=i.y,s[14]=e.z,s[15]=e.x,s[16]=i.y,s[17]=e.z,s[18]=e.x,s[19]=e.y,s[20]=e.z,s[21]=i.x,s[22]=e.y,s[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),ko.prototype.setFromObject=function(t){return this.object=t,this.update(),this},ko.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.object=t.object,this},ko.prototype.clone=function(){return new this.constructor().copy(this)},xl.prototype=Object.create(gi.prototype),xl.prototype.constructor=xl,xl.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),N.prototype.updateMatrixWorld.call(this,t))},wl.prototype=Object.create(ji.prototype),wl.prototype.constructor=wl,wl.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),N.prototype.updateMatrixWorld.call(this,t)};var fh,El;Bo.prototype=Object.create(N.prototype),Bo.prototype.constructor=Bo,Bo.prototype.setDirection=function(){var t=new u,e;return function(i){.99999<i.y?this.quaternion.set(0,0,0,1):-.99999>i.y?this.quaternion.set(1,0,0,0):(t.set(i.z,0,-i.x).normalize(),e=Math.acos(i.y),this.quaternion.setFromAxisAngle(t,e))}}(),Bo.prototype.setLength=function(t,e,i){e===void 0&&(e=.2*t),i===void 0&&(i=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()},Bo.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},Bo.prototype.copy=function(t){return N.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},Bo.prototype.clone=function(){return new this.constructor().copy(this)},wr.prototype=Object.create(gi.prototype),wr.prototype.constructor=wr,Ee.create=function(t,e){return t.prototype=Object.create(Ee.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Do.prototype,{createPointsGeometry:function(t){return t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){for(var e=new X,i=0,n=t.length;i<n;i++){var s=t[i];e.vertices.push(new u(s.x,s.y,s.z||0))}return e}}),Object.assign(dr.prototype,{fromPoints:function(t){this.setFromPoints(t)}}),Du.prototype=Object.create(In.prototype),zu.prototype=Object.create(In.prototype),qh.prototype=Object.create(In.prototype),Object.assign(qh.prototype,{initFromArray:function(){},getControlPointsArray:function(){},reparametrizeByArcLength:function(){}}),vl.prototype.setColors=function(){},Aa.prototype.update=function(){},Object.assign(zo.prototype,{extractUrlBase:function(t){return Hs.extractUrlBase(t)}}),Object.assign(Bs.prototype,{setTexturePath:function(t){return this.setResourcePath(t)}}),Object.assign(cl.prototype,{setTexturePath:function(t){return this.setResourcePath(t)}}),Object.assign(as.prototype,{center:function(t){return this.getCenter(t)},empty:function(){return this.isEmpty()},isIntersectionBox:function(t){return this.intersectsBox(t)},size:function(t){return this.getSize(t)}}),Object.assign(k.prototype,{center:function(t){return this.getCenter(t)},empty:function(){return this.isEmpty()},isIntersectionBox:function(t){return this.intersectsBox(t)},isIntersectionSphere:function(t){return this.intersectsSphere(t)},size:function(t){return this.getSize(t)}}),ba.prototype.center=function(t){return this.getCenter(t)},Object.assign(di,{random16:function(){return Math.random()},nearestPowerOfTwo:function(t){return di.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return di.ceilPowerOfTwo(t)}}),Object.assign(m.prototype,{flattenToArrayOffset:function(t,e){return this.toArray(t,e)},multiplyVector3:function(t){return t.applyMatrix3(this)},multiplyVector3Array:function(){},applyToBuffer:function(t){return this.applyToBufferAttribute(t)},applyToVector3Array:function(){}}),Object.assign(c.prototype,{extractPosition:function(t){return this.copyPosition(t)},flattenToArrayOffset:function(t,e){return this.toArray(t,e)},getPosition:function(){var t;return function(){return t===void 0&&(t=new u),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return this.makeRotationFromQuaternion(t)},multiplyToArray:function(){},multiplyVector3:function(t){return t.applyMatrix4(this)},multiplyVector4:function(t){return t.applyMatrix4(this)},multiplyVector3Array:function(){},rotateAxis:function(t){t.transformDirection(this)},crossVector:function(t){return t.applyMatrix4(this)},translate:function(){},rotateX:function(){},rotateY:function(){},rotateZ:function(){},rotateByAxis:function(){},applyToBuffer:function(t){return this.applyToBufferAttribute(t)},applyToVector3Array:function(){},makeFrustum:function(t,e,i,n,s,l){return this.makePerspective(t,e,n,i,s,l)}}),F.prototype.isIntersectionLine=function(t){return this.intersectsLine(t)},f.prototype.multiplyVector3=function(t){return t.applyQuaternion(this)},Object.assign(Si.prototype,{isIntersectionBox:function(t){return this.intersectsBox(t)},isIntersectionPlane:function(t){return this.intersectsPlane(t)},isIntersectionSphere:function(t){return this.intersectsSphere(t)}}),Object.assign(Oe.prototype,{area:function(){return this.getArea()},barycoordFromPoint:function(t,e){return this.getBarycoord(t,e)},midpoint:function(t){return this.getMidpoint(t)},normal:function(t){return this.getNormal(t)},plane:function(t){return this.getPlane(t)}}),Object.assign(Oe,{barycoordFromPoint:function(t,e,i,n,s){return Oe.getBarycoord(t,e,i,n,s)},normal:function(t,e,i,n){return Oe.getNormal(t,e,i,n)}}),Object.assign(tr.prototype,{extractAllPoints:function(t){return this.extractPoints(t)},extrude:function(t){return new Lo(this,t)},makeGeometry:function(t){return new Ro(this,t)}}),Object.assign(o.prototype,{fromAttribute:function(t,e,i){return this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return this.manhattanDistanceTo(t)},lengthManhattan:function(){return this.manhattanLength()}}),Object.assign(u.prototype,{setEulerFromRotationMatrix:function(){},setEulerFromQuaternion:function(){},getPositionFromMatrix:function(t){return this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return this.setFromMatrixColumn(e,t)},applyProjection:function(t){return this.applyMatrix4(t)},fromAttribute:function(t,e,i){return this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return this.manhattanDistanceTo(t)},lengthManhattan:function(){return this.manhattanLength()}}),Object.assign(v.prototype,{fromAttribute:function(t,e,i){return this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return this.manhattanLength()}}),Object.assign(X.prototype,{computeTangents:function(){},computeLineDistances:function(){}}),Object.assign(N.prototype,{getChildByName:function(t){return this.getObjectByName(t)},renderDepth:function(){},translate:function(t,e){return this.translateOnAxis(e,t)},getWorldRotation:function(){}}),Object.defineProperties(N.prototype,{eulerOrder:{get:function(){return this.rotation.order},set:function(t){this.rotation.order=t}},useQuaternion:{get:function(){},set:function(){}}}),Object.defineProperties(rn.prototype,{objects:{get:function(){return this.levels}}}),Object.defineProperty(cn.prototype,"useVertexTexture",{get:function(){},set:function(){}}),Object.defineProperty(Ee.prototype,"__arcLengthDivisions",{get:function(){return this.arcLengthDivisions},set:function(t){this.arcLengthDivisions=t}}),_e.prototype.setLens=function(t,e){e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(tn.prototype,{onlyShadow:{set:function(){}},shadowCameraFov:{set:function(t){this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){}},shadowBias:{set:function(t){this.shadow.bias=t}},shadowDarkness:{set:function(){}},shadowMapWidth:{set:function(t){this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){this.shadow.mapSize.height=t}}}),Object.defineProperties(J.prototype,{length:{get:function(){return this.array.length}},copyIndicesArray:function(){}}),Object.assign(Ft.prototype,{addIndex:function(t){this.setIndex(t)},addDrawCall:function(t,e,i){this.addGroup(t,e)},clearDrawCalls:function(){this.clearGroups()},computeTangents:function(){},computeOffsets:function(){}}),Object.defineProperties(Ft.prototype,{drawcalls:{get:function(){return this.groups}},offsets:{get:function(){return this.groups}}}),Object.assign(mo.prototype,{getArrays:function(){},addShapeList:function(){},addShape:function(){}}),Object.defineProperties(oh.prototype,{dynamic:{set:function(){}},onUpdate:{value:function(){return this}}}),Object.defineProperties(Wt.prototype,{wrapAround:{get:function(){},set:function(){}},overdraw:{get:function(){},set:function(){}},wrapRGB:{get:function(){return new P}},shading:{get:function(){},set:function(t){this.flatShading=t===1}}}),Object.defineProperties($r.prototype,{metal:{get:function(){return!1},set:function(){}}}),Object.defineProperties($e.prototype,{derivatives:{get:function(){return this.extensions.derivatives},set:function(t){this.extensions.derivatives=t}}}),Object.assign(xe.prototype,{clearTarget:function(t,e,i,n){this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return this.getRenderTarget()},getMaxAnisotropy:function(){return this.capabilities.getMaxAnisotropy()},getPrecision:function(){return this.capabilities.precision},resetGLState:function(){return this.state.reset()},supportsFloatTextures:function(){return this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return this.capabilities.vertexTextures},supportsInstancedArrays:function(){return this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){this.setScissorTest(t)},initMaterial:function(){},addPrePlugin:function(){},addPostPlugin:function(){},updateShadowMap:function(){},setFaceCulling:function(){}}),Object.defineProperties(xe.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){this.shadowMap.type=t}},shadowMapCullFace:{get:function(){},set:function(){}}}),Object.defineProperties(ye.prototype,{cullFace:{get:function(){},set:function(){}},renderReverseSided:{get:function(){},set:function(){}},renderSingleSided:{get:function(){},set:function(){}}}),Object.defineProperties(S.prototype,{wrapS:{get:function(){return this.texture.wrapS},set:function(t){this.texture.wrapS=t}},wrapT:{get:function(){return this.texture.wrapT},set:function(t){this.texture.wrapT=t}},magFilter:{get:function(){return this.texture.magFilter},set:function(t){this.texture.magFilter=t}},minFilter:{get:function(){return this.texture.minFilter},set:function(t){this.texture.minFilter=t}},anisotropy:{get:function(){return this.texture.anisotropy},set:function(t){this.texture.anisotropy=t}},offset:{get:function(){return this.texture.offset},set:function(t){this.texture.offset=t}},repeat:{get:function(){return this.texture.repeat},set:function(t){this.texture.repeat=t}},format:{get:function(){return this.texture.format},set:function(t){this.texture.format=t}},type:{get:function(){return this.texture.type},set:function(t){this.texture.type=t}},generateMipmaps:{get:function(){return this.texture.generateMipmaps},set:function(t){this.texture.generateMipmaps=t}}}),Object.defineProperties(mi.prototype,{standing:{set:function(){}},userHeight:{set:function(){}}}),Sa.prototype.load=function(t){var e=this;return new yn().load(t,function(i){e.setBuffer(i)}),this},Ns.prototype.getData=function(){return this.getFrequencyData()},fl.prototype.updateCubeMap=function(t,e){return this.update(t,e)},ls.crossOrigin=void 0,ls.loadTexture=function(t,e,i,n){var s=new dn;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},ls.loadTextureCube=function(t,e,i,n){var s=new Fi;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},ls.loadCompressedTexture=function(){},ls.loadCompressedTextureCube=function(){},x.WebGLRenderTargetCube=b,x.WebGLRenderTarget=S,x.WebGLRenderer=xe,x.ShaderLib=Mo,x.UniformsLib=qe,x.UniformsUtils=Nn,x.ShaderChunk=Ci,x.FogExp2=Re,x.Fog=En,x.Scene=qn,x.Sprite=nn,x.LOD=rn,x.SkinnedMesh=Gi,x.Skeleton=cn,x.Bone=fn,x.Mesh=pi,x.LineSegments=gi,x.LineLoop=fo,x.Line=ji,x.Points=ha,x.Group=ci,x.VideoTexture=kh,x.DataTexture=O,x.DataTexture3D=Q,x.CompressedTexture=Jo,x.CubeTexture=z,x.CanvasTexture=Ka,x.DepthTexture=Qa,x.Texture=g,x.AnimationLoader=Qt,x.CompressedTextureLoader=Zt,x.DataTextureLoader=Ue,x.CubeTextureLoader=Fi,x.TextureLoader=dn,x.ObjectLoader=cl,x.MaterialLoader=ih,x.BufferGeometryLoader=Fh,x.DefaultLoadingManager=er,x.LoadingManager=ns,x.JSONLoader=Bs,x.ImageLoader=ai,x.ImageBitmapLoader=Uh,x.FontLoader=Ru,x.FileLoader=Lt,x.Loader=zo,x.LoaderUtils=Hs,x.Cache=So,x.AudioLoader=yn,x.SpotLightShadow=hl,x.SpotLight=ul,x.PointLight=zs,x.RectAreaLight=eh,x.HemisphereLight=ll,x.DirectionalLightShadow=os,x.DirectionalLight=wo,x.AmbientLight=ks,x.LightShadow=xo,x.Light=tn,x.StereoCamera=Wn,x.PerspectiveCamera=_e,x.OrthographicCamera=Ta,x.CubeCamera=fl,x.ArrayCamera=Fe,x.Camera=Be,x.AudioListener=rh,x.PositionalAudio=dl,x.AudioContext=Kh,x.AudioAnalyser=Ns,x.Audio=Sa,x.VectorKeyframeTrack=wa,x.StringKeyframeTrack=th,x.QuaternionKeyframeTrack=xa,x.NumberKeyframeTrack=Kr,x.ColorKeyframeTrack=Ql,x.BooleanKeyframeTrack=Kl,x.PropertyMixer=pl,x.PropertyBinding=bn,x.KeyframeTrack=Vn,x.AnimationUtils=Zn,x.AnimationObjectGroup=Ea,x.AnimationMixer=ss,x.AnimationClip=xr,x.Uniform=oh,x.InstancedBufferGeometry=Vh,x.BufferGeometry=Ft,x.Geometry=X,x.InterleavedBufferAttribute=Bi,x.InstancedInterleavedBuffer=Wh,x.InterleavedBuffer=ki,x.InstancedBufferAttribute=jh,x.Face3=I,x.Object3D=N,x.Raycaster=Ou,x.Layers=U,x.EventDispatcher=a,x.Clock=Hh,x.QuaternionLinearInterpolant=lr,x.LinearInterpolant=zr,x.DiscreteInterpolant=Ds,x.CubicInterpolant=al,x.Interpolant=Kn,x.Triangle=Oe,x.Math=di,x.Spherical=Xh,x.Cylindrical=it,x.Plane=F,x.Frustum=E,x.Sphere=R,x.Ray=Si,x.Matrix4=c,x.Matrix3=m,x.Box3=k,x.Box2=as,x.Line3=ba,x.Euler=C,x.Vector4=v,x.Vector3=u,x.Vector2=o,x.Quaternion=f,x.Color=P,x.ImmediateRenderObject=Yn,x.VertexNormalsHelper=_i,x.SpotLightHelper=Ca,x.SkeletonHelper=Aa,x.PointLightHelper=Br,x.RectAreaLightHelper=Pa,x.HemisphereLightHelper=La,x.GridHelper=vl,x.PolarGridHelper=sh,x.FaceNormalsHelper=yl,x.DirectionalLightHelper=pr,x.CameraHelper=_l,x.BoxHelper=ko,x.Box3Helper=xl,x.PlaneHelper=wl,x.ArrowHelper=Bo,x.AxesHelper=wr,x.Shape=tr,x.Path=dr,x.ShapePath=nh,x.Font=Gh,x.CurvePath=Do,x.Curve=Ee,x.ImageUtils=ls,x.ShapeUtils=To,x.WebGLUtils=He,x.WireframeGeometry=ua,x.ParametricGeometry=tl,x.ParametricBufferGeometry=ca,x.TetrahedronGeometry=el,x.TetrahedronBufferGeometry=fa,x.OctahedronGeometry=il,x.OctahedronBufferGeometry=ws,x.IcosahedronGeometry=nl,x.IcosahedronBufferGeometry=da,x.DodecahedronGeometry=pa,x.DodecahedronBufferGeometry=ma,x.PolyhedronGeometry=Xi,x.PolyhedronBufferGeometry=xi,x.TubeGeometry=vn,x.TubeBufferGeometry=$o,x.TorusKnotGeometry=Jr,x.TorusKnotBufferGeometry=Ms,x.TorusGeometry=Ts,x.TorusBufferGeometry=Gn,x.TextGeometry=ol,x.TextBufferGeometry=Es,x.SphereGeometry=Ko,x.SphereBufferGeometry=Ir,x.RingGeometry=sl,x.RingBufferGeometry=bs,x.PlaneGeometry=Pe,x.PlaneBufferGeometry=pe,x.LatheGeometry=ya,x.LatheBufferGeometry=Qo,x.ShapeGeometry=Ro,x.ShapeBufferGeometry=ts,x.ExtrudeGeometry=Lo,x.ExtrudeBufferGeometry=mo,x.EdgesGeometry=es,x.ConeGeometry=_a,x.ConeBufferGeometry=Hn,x.CylinderGeometry=Oo,x.CylinderBufferGeometry=Io,x.CircleGeometry=Cs,x.CircleBufferGeometry=go,x.BoxGeometry=It,x.BoxBufferGeometry=Bt,x.ShadowMaterial=is,x.SpriteMaterial=Hi,x.RawShaderMaterial=As,x.ShaderMaterial=$e,x.PointsMaterial=Un,x.MeshPhysicalMaterial=Ps,x.MeshStandardMaterial=vo,x.MeshPhongMaterial=$r,x.MeshToonMaterial=Ls,x.MeshNormalMaterial=Rs,x.MeshLambertMaterial=Dr,x.MeshDepthMaterial=se,x.MeshDistanceMaterial=te,x.MeshBasicMaterial=Ge,x.MeshMatcapMaterial=Os,x.LineDashedMaterial=Is,x.LineBasicMaterial=Ni,x.Material=Wt,x.Float64BufferAttribute=At,x.Float32BufferAttribute=Et,x.Uint32BufferAttribute=Pt,x.Int32BufferAttribute=G,x.Uint16BufferAttribute=_t,x.Int16BufferAttribute=tt,x.Uint8ClampedBufferAttribute=Rt,x.Uint8BufferAttribute=ct,x.Int8BufferAttribute=Z,x.BufferAttribute=J,x.ArcCurve=Ma,x.CatmullRomCurve3=In,x.CubicBezierCurve=ur,x.CubicBezierCurve3=Mi,x.EllipseCurve=Qn,x.LineCurve=cr,x.LineCurve3=kr,x.QuadraticBezierCurve=fr,x.QuadraticBezierCurve3=_o,x.SplineCurve=Qr,x.REVISION="98",x.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},x.CullFaceNone=0,x.CullFaceBack=1,x.CullFaceFront=2,x.CullFaceFrontBack=3,x.FrontFaceDirectionCW=0,x.FrontFaceDirectionCCW=1,x.BasicShadowMap=0,x.PCFShadowMap=1,x.PCFSoftShadowMap=2,x.FrontSide=0,x.BackSide=1,x.DoubleSide=2,x.FlatShading=1,x.SmoothShading=2,x.NoColors=0,x.FaceColors=1,x.VertexColors=2,x.NoBlending=0,x.NormalBlending=1,x.AdditiveBlending=2,x.SubtractiveBlending=3,x.MultiplyBlending=4,x.CustomBlending=5,x.AddEquation=100,x.SubtractEquation=101,x.ReverseSubtractEquation=102,x.MinEquation=103,x.MaxEquation=104,x.ZeroFactor=200,x.OneFactor=201,x.SrcColorFactor=202,x.OneMinusSrcColorFactor=203,x.SrcAlphaFactor=204,x.OneMinusSrcAlphaFactor=205,x.DstAlphaFactor=206,x.OneMinusDstAlphaFactor=207,x.DstColorFactor=208,x.OneMinusDstColorFactor=209,x.SrcAlphaSaturateFactor=210,x.NeverDepth=0,x.AlwaysDepth=1,x.LessDepth=2,x.LessEqualDepth=3,x.EqualDepth=4,x.GreaterEqualDepth=5,x.GreaterDepth=6,x.NotEqualDepth=7,x.MultiplyOperation=0,x.MixOperation=1,x.AddOperation=2,x.NoToneMapping=0,x.LinearToneMapping=1,x.ReinhardToneMapping=2,x.Uncharted2ToneMapping=3,x.CineonToneMapping=4,x.UVMapping=300,x.CubeReflectionMapping=301,x.CubeRefractionMapping=302,x.EquirectangularReflectionMapping=303,x.EquirectangularRefractionMapping=304,x.SphericalReflectionMapping=305,x.CubeUVReflectionMapping=306,x.CubeUVRefractionMapping=307,x.RepeatWrapping=1e3,x.ClampToEdgeWrapping=1001,x.MirroredRepeatWrapping=1002,x.NearestFilter=1003,x.NearestMipMapNearestFilter=1004,x.NearestMipMapLinearFilter=1005,x.LinearFilter=1006,x.LinearMipMapNearestFilter=1007,x.LinearMipMapLinearFilter=1008,x.UnsignedByteType=1009,x.ByteType=1010,x.ShortType=1011,x.UnsignedShortType=1012,x.IntType=1013,x.UnsignedIntType=1014,x.FloatType=1015,x.HalfFloatType=1016,x.UnsignedShort4444Type=1017,x.UnsignedShort5551Type=1018,x.UnsignedShort565Type=1019,x.UnsignedInt248Type=1020,x.AlphaFormat=1021,x.RGBFormat=1022,x.RGBAFormat=1023,x.LuminanceFormat=1024,x.LuminanceAlphaFormat=1025,x.RGBEFormat=1023,x.DepthFormat=1026,x.DepthStencilFormat=1027,x.RedFormat=1028,x.RGB_S3TC_DXT1_Format=33776,x.RGBA_S3TC_DXT1_Format=33777,x.RGBA_S3TC_DXT3_Format=33778,x.RGBA_S3TC_DXT5_Format=33779,x.RGB_PVRTC_4BPPV1_Format=35840,x.RGB_PVRTC_2BPPV1_Format=35841,x.RGBA_PVRTC_4BPPV1_Format=35842,x.RGBA_PVRTC_2BPPV1_Format=35843,x.RGB_ETC1_Format=36196,x.RGBA_ASTC_4x4_Format=37808,x.RGBA_ASTC_5x4_Format=37809,x.RGBA_ASTC_5x5_Format=37810,x.RGBA_ASTC_6x5_Format=37811,x.RGBA_ASTC_6x6_Format=37812,x.RGBA_ASTC_8x5_Format=37813,x.RGBA_ASTC_8x6_Format=37814,x.RGBA_ASTC_8x8_Format=37815,x.RGBA_ASTC_10x5_Format=37816,x.RGBA_ASTC_10x6_Format=37817,x.RGBA_ASTC_10x8_Format=37818,x.RGBA_ASTC_10x10_Format=37819,x.RGBA_ASTC_12x10_Format=37820,x.RGBA_ASTC_12x12_Format=37821,x.LoopOnce=2200,x.LoopRepeat=2201,x.LoopPingPong=2202,x.InterpolateDiscrete=2300,x.InterpolateLinear=2301,x.InterpolateSmooth=2302,x.ZeroCurvatureEnding=2400,x.ZeroSlopeEnding=2401,x.WrapAroundEnding=2402,x.TrianglesDrawMode=0,x.TriangleStripDrawMode=1,x.TriangleFanDrawMode=2,x.LinearEncoding=3e3,x.sRGBEncoding=3001,x.GammaEncoding=3007,x.RGBEEncoding=3002,x.LogLuvEncoding=3003,x.RGBM7Encoding=3004,x.RGBM16Encoding=3005,x.RGBDEncoding=3006,x.BasicDepthPacking=3200,x.RGBADepthPacking=3201,x.TangentSpaceNormalMap=0,x.ObjectSpaceNormalMap=1,x.CubeGeometry=It,x.Face4=function(t,e,i,n,s,l,d){return new I(t,e,i,s,l,d)},x.LineStrip=0,x.LinePieces=1,x.MeshFaceMaterial=function(t){return t},x.MultiMaterial=function(t){return t===void 0&&(t=[]),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},x.PointCloud=function(t,e){return new ha(t,e)},x.Particle=function(t){return new nn(t)},x.ParticleSystem=function(t,e){return new ha(t,e)},x.PointCloudMaterial=function(t){return new Un(t)},x.ParticleBasicMaterial=function(t){return new Un(t)},x.ParticleSystemMaterial=function(t){return new Un(t)},x.Vertex=function(t,e,i){return new u(t,e,i)},x.DynamicBufferAttribute=function(t,e){return new J(t,e).setDynamic(!0)},x.Int8Attribute=function(t,e){return new Z(t,e)},x.Uint8Attribute=function(t,e){return new ct(t,e)},x.Uint8ClampedAttribute=function(t,e){return new Rt(t,e)},x.Int16Attribute=function(t,e){return new tt(t,e)},x.Uint16Attribute=function(t,e){return new _t(t,e)},x.Int32Attribute=function(t,e){return new G(t,e)},x.Uint32Attribute=function(t,e){return new Pt(t,e)},x.Float32Attribute=function(t,e){return new Et(t,e)},x.Float64Attribute=function(t,e){return new At(t,e)},x.ClosedSplineCurve3=Du,x.SplineCurve3=zu,x.Spline=qh,x.AxisHelper=function(t){return new wr(t)},x.BoundingBoxHelper=function(t,e){return new ko(t,e)},x.EdgesHelper=function(t,e){return new gi(new es(t.geometry),new Ni({color:e!==void 0?e:16777215}))},x.WireframeHelper=function(t,e){return new gi(new ua(t.geometry),new Ni({color:e!==void 0?e:16777215}))},x.XHRLoader=function(t){return new Lt(t)},x.BinaryTextureLoader=function(t){return new Ue(t)},x.GeometryUtils={merge:function(t,e,i){if(e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var n=e.matrix;e=e.geometry}t.merge(e,n,i)},center:function(t){return t.center()}},x.Projector=function(){this.projectVector=function(t,e){t.project(e)},this.unprojectVector=function(t,e){t.unproject(e)},this.pickingRay=function(){}},x.CanvasRenderer=function(){},x.SceneUtils={createMultiMaterialObject:function(){},detach:function(){},attach:function(){}},x.LensFlare=function(){},Object.defineProperty(x,"__esModule",{value:!0})}),THREE.Sky=function(){var x=THREE.Sky.SkyShader,a=new THREE.ShaderMaterial({fragmentShader:x.fragmentShader,vertexShader:x.vertexShader,uniforms:THREE.UniformsUtils.clone(x.uniforms),side:THREE.BackSide});THREE.Mesh.call(this,new THREE.BoxBufferGeometry(1,1,1),a)},THREE.Sky.prototype=Object.create(THREE.Mesh.prototype),THREE.Sky.SkyShader={uniforms:{luminance:{value:1},turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new THREE.Vector3}},vertexShader:["uniform vec3 sunPosition;","uniform float rayleigh;","uniform float turbidity;","uniform float mieCoefficient;","varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float e = 2.71828182845904523536028747135266249775724709369995957;","const float pi = 3.141592653589793238462643383279502884197169;","const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );","const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );","const float v = 4.0;","const vec3 K = vec3( 0.686, 0.678, 0.666 );","const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );","const float cutoffAngle = 1.6110731556870734;","const float steepness = 1.5;","const float EE = 1000.0;","float sunIntensity( float zenithAngleCos ) {"," zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );"," return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );","}","vec3 totalMie( float T ) {"," float c = ( 0.2 * T ) * 10E-18;"," return 0.434 * c * MieConst;","}","void main() {"," vec4 worldPosition = modelMatrix * vec4( position, 1.0 );"," vWorldPosition = worldPosition.xyz;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," gl_Position.z = gl_Position.w;"," vSunDirection = normalize( sunPosition );"," vSunE = sunIntensity( dot( vSunDirection, up ) );"," vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );"," float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );"," vBetaR = totalRayleigh * rayleighCoefficient;"," vBetaM = totalMie( turbidity ) * mieCoefficient;","}"].join(`
|
|
2572
2572
|
`),fragmentShader:["varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","uniform float luminance;","uniform float mieDirectionalG;","const vec3 cameraPos = vec3( 0.0, 1.0, 0.0 );","const float pi = 3.141592653589793238462643383279502884197169;","const float n = 1.0003;","const float N = 2.545E25;","const float rayleighZenithLength = 8.4E3;","const float mieZenithLength = 1.25E3;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float sunAngularDiameterCos = 0.999956676946448443553574619906976478926848692873900859324;","const float THREE_OVER_SIXTEENPI = 0.05968310365946075;","const float ONE_OVER_FOURPI = 0.07957747154594767;","float rayleighPhase( float cosTheta ) {"," return THREE_OVER_SIXTEENPI * ( 1.0 + pow( cosTheta, 2.0 ) );","}","float hgPhase( float cosTheta, float g ) {"," float g2 = pow( g, 2.0 );"," float inverse = 1.0 / pow( 1.0 - 2.0 * g * cosTheta + g2, 1.5 );"," return ONE_OVER_FOURPI * ( ( 1.0 - g2 ) * inverse );","}","const float A = 0.15;","const float B = 0.50;","const float C = 0.10;","const float D = 0.20;","const float E = 0.02;","const float F = 0.30;","const float whiteScale = 1.0748724675633854;","vec3 Uncharted2Tonemap( vec3 x ) {"," return ( ( x * ( A * x + C * B ) + D * E ) / ( x * ( A * x + B ) + D * F ) ) - E / F;","}","void main() {"," float zenithAngle = acos( max( 0.0, dot( up, normalize( vWorldPosition - cameraPos ) ) ) );"," float inverse = 1.0 / ( cos( zenithAngle ) + 0.15 * pow( 93.885 - ( ( zenithAngle * 180.0 ) / pi ), -1.253 ) );"," float sR = rayleighZenithLength * inverse;"," float sM = mieZenithLength * inverse;"," vec3 Fex = exp( -( vBetaR * sR + vBetaM * sM ) );"," float cosTheta = dot( normalize( vWorldPosition - cameraPos ), vSunDirection );"," float rPhase = rayleighPhase( cosTheta * 0.5 + 0.5 );"," vec3 betaRTheta = vBetaR * rPhase;"," float mPhase = hgPhase( cosTheta, mieDirectionalG );"," vec3 betaMTheta = vBetaM * mPhase;"," vec3 Lin = pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * ( 1.0 - Fex ), vec3( 1.5 ) );"," Lin *= mix( vec3( 1.0 ), pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * Fex, vec3( 1.0 / 2.0 ) ), clamp( pow( 1.0 - dot( up, vSunDirection ), 5.0 ), 0.0, 1.0 ) );"," vec3 direction = normalize( vWorldPosition - cameraPos );"," float theta = acos( direction.y ); // elevation --> y-axis, [-pi/2, pi/2]"," float phi = atan( direction.z, direction.x ); // azimuth --> x-axis [-pi/2, pi/2]"," vec2 uv = vec2( phi, theta ) / vec2( 2.0 * pi, pi ) + vec2( 0.5, 0.0 );"," vec3 L0 = vec3( 0.1 ) * Fex;"," float sundisk = smoothstep( sunAngularDiameterCos, sunAngularDiameterCos + 0.00002, cosTheta );"," L0 += ( vSunE * 19000.0 * Fex ) * sundisk;"," vec3 texColor = ( Lin + L0 ) * 0.04 + vec3( 0.0, 0.0003, 0.00075 );"," vec3 curr = Uncharted2Tonemap( ( log2( 2.0 / pow( luminance, 4.0 ) ) ) * texColor );"," vec3 color = curr * whiteScale;"," vec3 retColor = pow( color, vec3( 1.0 / ( 1.2 + ( 1.2 * vSunfade ) ) ) );"," gl_FragColor = vec4( retColor, 1.0 );","}"].join(`
|
|
2573
2573
|
`)},function(x){typeof module>"u"?window.charming=x:module.exports=x}(function(x,a){a=a||{};var o=a.tagName||"span",c=a.classPrefix!=null?a.classPrefix:"char",f=1,u=function(m){for(var g=m.parentNode,v=m.nodeValue,S=v.length,b=-1;++b<S;){var O=document.createElement(o);c&&(O.className=c+f,f++),O.appendChild(document.createTextNode(v[b])),g.insertBefore(O,m)}g.removeChild(m)};return function m(g){for(var v=[].slice.call(g.childNodes),S=v.length,b=-1;++b<S;)m(v[b]);g.nodeType===Node.TEXT_NODE&&u(g)}(x),x});class lm{constructor(a=[]){Vo(this,"componentonTick",()=>{this.componentColoringArray.forEach(a=>{let{componentMap:o,oldColorRgb:c,modelId:f}=a,u=c||"rgba(255,255,255",m=this.queryModel(f);m&&(m.style=g=>{const v=mars3d.Util.get3DTileFeatureAttr(g).id,S=window.map.viewer.clock.currentTime;let b;if(o.has(v)){let{startTime:O,totalDuration:k,modelInit:R,endTime:F}=o.get(v);if(b=R,k==0){if(b==1)return`${u},0)`;if(b==0)return`${u},1)`}if(k!=0){let E=(S.dayNumber-O.dayNumber)/(F.dayNumber-O.dayNumber);if(b==1?E=1-E:b==0&&(E=0+E),E>1?E=1:E<0&&(E=0),E==1)return`${u},${E})`;if(E<1){if(R==2)return"rgba(255,215,0,1)";if(b==0)if(E>.85&&E<1){const w=Date.now()/1e3;return`rgba(135, 206, 250,${.1+(Math.sin(w*10)+1)*.1})`}else return`rgba(135, 206, 250,${E})`;else if(E<.15&&E>0){const w=Date.now()/1e3;return`rgba(240, 128, 128,${.1+(Math.sin(w*10)+1)*.1})`}else return`rgba(240, 128, 128,${E})`}}}return`${u},0)`})})});Vo(this,"initComponentAnimation",()=>{this.componentItem=null,window.map.viewer.clock.onTick.removeEventListener(this.componentonTick)});Vo(this,"initComponentDyeing",(a=[])=>{if(a.length>0){const o=this.convertComponentListToMap(a);this.componentColoringArray=o,this.componentColoringArray.forEach(c=>{let{componentMap:f,oldColorRgb:u,modelId:m}=c,g=u||"rgba(255,255,255",v=this.queryModel(m);v&&(v.style=S=>{const b=mars3d.Util.get3DTileFeatureAttr(S).id;return f.has(b)?`${g},1)`:`${g},0)`})})}});mars3d&&(this.tilesetLayer,this.modelArr=a,this.bimObliquePhotographyId=[],this.editDate={id:null},this.componentColoringArray=[],this.componentItem,this.disabled=!0)}pushModel(a){this.modelArr.push(a)}add(a,o,c){let f=c==null?void 0:c.isClone;const u=new Map([["click",mars3d.EventType.click],["initialTilesLoaded",mars3d.EventType.initialTilesLoaded]]);return new Promise((m,g)=>{let v,S,b,O,k,R,F,E,P,w={enabled:!0,precise:!1,czm:!1},T={enabled:!0,precise:!1,czm:!1};if(typeof a!="object"){let N=this.query(a);N||g("缺少树结构");let{id:X,bimModelExcavationDetails:J,bimModel:Z}=N;v=X,S=Z?Z.modelType:N.modelType,b=Z?Z.tender:N.tender,O=Z?Z.releasedDistance:N.releasedDistance,k=Z?Z.modelName:N.modelName,R=Z?Z.isDynamicReleased:N.isDynamicReleased,F={bimModelExcavationDetails:J},E=N.url,P=Z?Z.modelColor:N.modelColor,w.maxCanvasSize=Z?Z.gridResolution:N.gridResolution||4080}else v=a.modelId,S=a.modelType,b=a.tender,O=a.releasedDistance,k=a.modelTitle,R=a.permission,F=a.customize,E=a.url,P=a.color,w.maxCanvasSize=a.maxCanvasSize||4080;let I=2147483648,C=16;if(c){if(c.color&&(P=c.color),c.clip&&(w.area=c.clip.handleDataList),c.flat&&(T.area=c.flat.handleDataList),c.maxCanvasSize&&(w.maxCanvasSize=c.maxCanvasSize||4080),c.cacheSpaceMultiplier){let N=N*c.cacheSpaceMultiplier}c.maximumScreenSpaceError&&S==0&&(C=c.maximumScreenSpaceError)}let U;if(f?window.mapClone&&(U=window.mapClone.mapEx.getLayer(a,"modelId")):U=window.map.getLayer(a,"modelId"),U){if(c.color&&this.editColor(a,c.color,c),window.schemeEvnModify&&c.clip){let{modelId:N,handleDataList:X}=c.clip;X.forEach(J=>{let{id:Z,positions:ct}=J;window.schemeEvnModify.modelCutById(N,ct,Z)})}return m(U),!1}else{if(E.indexOf("tileset.json")<0)return m({tite:"【模型】「"+k+"」链接地址有误",type:"error",id:v,url:E}),!1;new Cesium.Resource({url:E}).fetchJson().then(X=>{let J=null;P&&(J={color:{conditions:[["true",P]]}}),this.tilesetLayer=new mars3d.layer.TilesetLayer({modelId:v,modelType:S,tender:b,releasedDistance:O,modelTitle:k,permission:R,customize:F,url:encodeURI(E),skipLevelOfDetail:!1,loadSiblings:!0,cullRequestsWhileMoving:!0,cullRequestsWhileMovingMultiplier:10,preferLeaves:!0,progressiveResolutionHeightFraction:.5,dynamicScreenSpaceError:!0,preloadWhenHidden:!1,style:J,clip:w,flat:T,maximumScreenSpaceError:C,cacheBytes:1073741824,maximumCacheOverflowBytes:I,environmentMapManager:{enabled:!1},highlight:{type:"click",color:"rgba(255,0,0,1)"}}),this.tilesetLayer.bindPopup(Z=>{if(!this.disabled)return!0;if(Z.graphic){const ct=Z.graphic.attr;let Rt=null,tt=null;return JSON.stringify(ct)!=="{}"?(ct.name&&(Rt=ct.name.lastIndexOf("@")),Rt&&Rt>-1&&(tt=ct.name.slice(0,Rt)),ct.name?` <span>${tt||ct.name}</span> `:` <span>${k}</span> `):` <span>${k}</span> `}else return` <span>${k}</span> `}),this.tilesetLayer.readyPromise.then(Z=>{if(Z.layer.environmentMapManager.enabled=!1,(c==null?void 0:c.light)==!1){const ct=new Cesium.CustomShader({lightingModel:Cesium.LightingModel.UNLIT});Z.layer.customShader=ct}m(Z)}).catch(Z=>{m()}),o&&Object.keys(o).forEach(Z=>{this.tilesetLayer.on(u.get(Z),ct=>{o[Z](ct)})}),S==0&&this.bimObliquePhotographyId.push(v),f?window.mapClone&&window.mapClone.mapEx.addLayer(this.tilesetLayer):window.map.addLayer(this.tilesetLayer)}).catch(X=>{m({tite:"【模型】「"+k+"」无法加载",type:"error",id:v,url:E})})}})}remove(a,o){let c=o==null?void 0:o.isClone;window.map.getLayer(a,"modelId")&&(c?(window.mapClone.mapEx.getLayer(a,"modelId").closeHighlight(),window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(a,"modelId"))):(window.map.getLayer(a,"modelId").closeHighlight(),window.map.removeLayer(window.map.getLayer(a,"modelId"))))}selected(a,o,c,f=!0){return new Promise((u,m)=>{let g=window.map.getLayer(a,"modelId");g?(g.style==null&&map.bimMapEdit=="0"&&g.openHighlight({color:"rgba(255,0,0,1)"},!0),f?g.flyTo({complete:()=>{u(g)}}):u(g)):this.add(a,o,c).then(v=>{v&&(v.style==null&&map.bimMapEdit=="0"&&v.openHighlight({color:"rgba(255,0,0,1)"},!0),f?v.flyTo({complete:()=>{u(v)}}):u(v))})})}initial(){this.modelArr=[],this.bimObliquePhotographyId=[],this.tilesetLayer=null}query(a){return this.modelArr.length==0?!1:this.modelArr.find(o=>o.id==a)}queryModel(a,o){if(a&&a!=null)return(o==null?void 0:o.isClone)?window.mapClone.mapEx.getLayer(a,"modelId"):window.map.getLayer(a,"modelId")}postEditDate(a){this.editDate={id:a}}editColor(a,o,c,f="true"){let u,m=c==null?void 0:c.isClone;if(typeof a!="object"&&(m?u=window.mapClone.mapEx.getLayer(a,"modelId"):u=window.map.getLayer(a,"modelId")),u)if(o)u.style={color:{conditions:[[f,o]]}};else{let g=this.query(a).bimModel?this.query(a).bimModel.modelColor:this.query(a).model.modelColor;g?u.style={color:{conditions:[[f,g]]}}:u.style=null}}editOpacity(a,o){window.map.getLayer(a,"modelId").opacity=o}addClip(a){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipModelAdd(a)):c("挖洞工具未初始化")})}removeClip(a){window.bimClip&&window.bimClip.clipModelremoveClip(a)}componentDyeing(a,o=[],c="id"){let f=this.queryModel(a);const u=new Map;o.forEach(m=>{m.id.forEach(g=>{u.set(g,m.color)})}),f&&(f.style=m=>{const g=mars3d.Util.get3DTileFeatureAttr(m)[c];return u.get(g)||"rgba(255,255,255,0)"})}getLastDayOfMonth(a){const o=new Date(a.getFullYear(),a.getMonth()+1,1);return new Date(o-1)}async fadeOutModel(a,o=[],c=[],f=1,u=!1,m){if(c.length>0){let g=new Cesium.JulianDate.fromIso8601(c[0]),v=new Cesium.JulianDate.fromIso8601(c[1]),S;if(u?S=0:S=Cesium.JulianDate.secondsDifference(v,g),g&&v&&o.length>0){let b=this.queryModel(a);!b&&!m&&(b=await this.add(a));let O=this.componentColoringArray.find(R=>R.modelId==a),k=new Map;if(O)o.forEach(R=>{O.componentMap.set(R,{startTime:g,endTime:v,totalDuration:S,modelInit:f})});else{o.forEach(E=>{k.set(E,{startTime:g,endTime:v,totalDuration:S,modelInit:f})});let R=this.query(a).bimModel?this.query(a).bimModel.modelColor:this.query(a).model.modelColor,F;R&&(F=R.substring(0,R.lastIndexOf(","))+","),O={modelId:a,oldColorRgb:F,componentMap:k,modelInit:f},this.componentColoringArray.push(O)}window.map.viewer.clock.onTick.removeEventListener(this.componentonTick),window.map.viewer.clock.onTick.addEventListener(this.componentonTick)}}}convertComponentListToMap(a){return a.map(o=>{let c=this.query(o.modelId),f;const u=new Map;if(c){let{bimModel:m}=c,{modelColor:g}=m||c;g&&g!=""&&(f=(g==null?void 0:g.substring(0,g.lastIndexOf(",")))+",")}return o.componentList.forEach(m=>{u.set(m,{modelInit:0,totalDuration:0})}),{modelId:o.modelId,componentMap:u,oldColorRgb:f}})}fadeOutModel2(a,o=[],c=3e3,f=0){const u=Date.now();let m=this.query(a).bimModel?this.query(a).bimModel.modelColor:this.query(a).model.modelColor;const g=m.substring(0,m.lastIndexOf(","))+",",v=()=>{const O=(Date.now()-u)/c;if(O<1){let k;f==1?k=1-O:f==0&&(k=0+O);const R=bimModel.queryModel(a);R&&(R.style=F=>{if(o.length==0)return`rgba(255,0,0,${k})`;const E=mars3d.Util.get3DTileFeatureAttr(F).id;if(o.length!=0)return o.includes(E)?`rgba(255,0,0,${k})`:m}),requestAnimationFrame(v)}else{const k=bimModel.queryModel(a);k&&(k.style=R=>{const F=mars3d.Util.get3DTileFeatureAttr(R).id;if(o.length==0)return`${g}${1-f})`;if(o.length!=0)return o.includes(F)?`${g}${1-f})`:m})}};v()}}const au=x=>Object.prototype.toString.call(x)==="[object Object]";function lu(){const x=Array.from(arguments);if(x.length<2)return x[0];let a=x[0];return x.shift(),x.forEach(o=>{if(au(o)){au(a)||(a={});for(let c in o)a[c]&&au(o[c])?a[c]=lu(a[c],o[c]):a[c]=o[c]}else o instanceof Array&&(a instanceof Array||(a=[]),o.forEach((c,f)=>{au(c)?a[f]=lu(a[f]):a[f]=c}))}),a}let vh={};const Cf=(x,a,o)=>{vh={};let{vectorStyle:c,difference:f}=x;if(c){let{divType:u}=c,m="";if(u){let{theme_color:g,title:v,font_color:S,content:b,scaleByDistance:O,scaleByDistance_far:k,scaleByDistance_farValue:R,scaleByDistance_near:F,scaleByDistance_nearValue:E,distanceDisplayCondition:P,distanceDisplayCondition_far:w,distanceDisplayCondition_near:T,clampToGround:I,divStyle:C,isMirror:U}=c,{theme_color2:N,theme_color3:X}=C;switch(u){case"1":m=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${g};--theme-font-color1:${S};">
|
|
2574
2574
|
<div class="title">${v}</div>
|
|
@@ -2614,12 +2614,12 @@ void main() {
|
|
|
2614
2614
|
* Released under MIT license <https://lodash.com/license>
|
|
2615
2615
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
2616
2616
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
2617
|
-
*/hu.exports,function(x,a){(function(){var o,c="4.17.21",f=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",S=500,b="__lodash_placeholder__",O=1,k=2,R=4,F=1,E=2,P=1,w=2,T=4,I=8,C=16,U=32,N=64,X=128,J=256,Z=512,ct=30,Rt="...",tt=800,_t=16,G=1,Pt=2,Et=3,At=1/0,ce=9007199254740991,re=17976931348623157e292,Ft=0/0,It=4294967295,Nt=It-1,Pe=It>>>1,pe=[["ary",X],["bind",P],["bindKey",w],["curry",I],["curryRight",C],["flip",Z],["partial",U],["partialRight",N],["rearg",J]],Wt="[object Arguments]",$e="[object Array]",Si="[object AsyncFunction]",Oe="[object Boolean]",Ge="[object Date]",pi="[object DOMException]",Di="[object Error]",gn="[object Function]",Qi="[object GeneratorFunction]",W="[object Map]",Jt="[object Number]",jt="[object Null]",dt="[object Object]",pt="[object Promise]",Dt="[object Proxy]",ie="[object RegExp]",Kt="[object Set]",z="[object String]",Q="[object Symbol]",st="[object Undefined]",nt="[object WeakMap]",vt="[object WeakSet]",Ut="[object ArrayBuffer]",qt="[object DataView]",Xt="[object Float32Array]",Ne="[object Float64Array]",Ie="[object Int8Array]",me="[object Int16Array]",we="[object Int32Array]",yi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",ni="[object Uint16Array]",bi="[object Uint32Array]",Yr=/\b__p \+= '';/g,ar=/\b(__p \+=) '' \+/g,sn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Po=/&(?:amp|lt|gt|quot|#39);/g,zi=/[&<>"']/g,Zo=RegExp(Po.source),lo=RegExp(zi.source),Hl=/<%-([\s\S]+?)%>/g,Sn=/<%([\s\S]+?)%>/g,ra=/<%=([\s\S]+?)%>/g,ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yr=/^\w*$/,oa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ja=/[\\^$.*+?()[\]{}|]/g,Vl=RegExp(Ja.source),ho=/^\s+/,Ih=/\s/,sa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$a=/\{\n\/\* \[wrapped with (.+)\] \*/,uo=/,? & /,Wl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,aa=/[()=,{}\[\]\/\s]/,la=/\\(\\)?/g,co=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jl=/\w*$/,Dh=/^[-+]0x[0-9a-f]+$/i,zh=/^0b[01]+$/i,_s=/^\[object .+?Constructor\]$/,xs=/^0o[0-7]+$/i,Xl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zr=/($^)/,V=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",lt="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",j="\\u20d0-\\u20ff",St=lt+at+j,ht="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",Gt="\\xac\\xb1\\xd7\\xf7",zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tt="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",se="A-Z\\xc0-\\xd6\\xd8-\\xde",te="\\ufe0e\\ufe0f",ye=Gt+zt+Tt+he,ue="['’]",je="["+et+"]",He="["+ye+"]",ci="["+St+"]",Be="\\d+",_e="["+ht+"]",Fe="["+Ot+"]",fe="[^"+et+ye+Be+ht+Ot+se+"]",mi="\\ud83c[\\udffb-\\udfff]",Le="(?:"+ci+"|"+mi+")",xe="[^"+et+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",En="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+se+"]",ki="\\u200d",Bi="(?:"+Fe+"|"+fe+")",Hi="(?:"+qn+"|"+fe+")",nn="(?:"+ue+"(?:d|ll|m|re|s|t|ve))?",rn="(?:"+ue+"(?:D|LL|M|RE|S|T|VE))?",cn=Le+"?",fn="["+te+"]?",Gi="(?:"+ki+"(?:"+[xe,Re,En].join("|")+")"+fn+cn+")*",Ni="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ji="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=fn+cn+Gi,fo="(?:"+[_e,Re,En].join("|")+")"+gi,Un="(?:"+[xe+ci+"?",ci,Re,En,je].join("|")+")",ha=RegExp(ue,"g"),kh=RegExp(ci,"g"),Jo=RegExp(mi+"(?="+mi+")|"+Un+gi,"g"),Ka=RegExp([qn+"?"+Fe+"+"+nn+"(?="+[He,qn,"$"].join("|")+")",Hi+"+"+rn+"(?="+[He,qn+Bi,"$"].join("|")+")",qn+"?"+Bi+"+"+nn,qn+"+"+rn,ji,Ni,Be,fo].join("|"),"g"),Qa=RegExp("["+ki+et+St+te+"]"),ua=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ca=-1,Xi={};Xi[Xt]=Xi[Ne]=Xi[Ie]=Xi[me]=Xi[we]=Xi[yi]=Xi[Ei]=Xi[ni]=Xi[bi]=!0,Xi[Wt]=Xi[$e]=Xi[Ut]=Xi[Oe]=Xi[qt]=Xi[Ge]=Xi[Di]=Xi[gn]=Xi[W]=Xi[Jt]=Xi[dt]=Xi[ie]=Xi[Kt]=Xi[z]=Xi[nt]=!1;var xi={};xi[Wt]=xi[$e]=xi[Ut]=xi[qt]=xi[Oe]=xi[Ge]=xi[Xt]=xi[Ne]=xi[Ie]=xi[me]=xi[we]=xi[W]=xi[Jt]=xi[dt]=xi[ie]=xi[Kt]=xi[z]=xi[Q]=xi[yi]=xi[Ei]=xi[ni]=xi[bi]=!0,xi[Di]=xi[gn]=xi[nt]=!1;var el={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fa={"&":"&","<":"<",">":">",'"':""","'":"'"},il={"&":"&","<":"<",">":">",""":'"',"'":"'"},ws={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nl=parseFloat,da=parseInt,pa=typeof br=="object"&&br&&br.Object===Object&&br,ma=typeof self=="object"&&self&&self.Object===Object&&self,vn=pa||ma||Function("return this")(),$o=a&&!a.nodeType&&a,Jr=$o&&!0&&x&&!x.nodeType&&x,Ms=Jr&&Jr.exports===$o,Ts=Ms&&pa.process,Gn=function(){try{var Lt=Jr&&Jr.require&&Jr.require("util").types;return Lt||Ts&&Ts.binding&&Ts.binding("util")}catch{}}(),Bh=Gn&&Gn.isArrayBuffer,ga=Gn&&Gn.isDate,va=Gn&&Gn.isMap,Eu=Gn&&Gn.isRegExp,bu=Gn&&Gn.isSet,Yl=Gn&&Gn.isTypedArray;function _r(Lt,Qt,Zt){switch(Zt.length){case 0:return Lt.call(Qt);case 1:return Lt.call(Qt,Zt[0]);case 2:return Lt.call(Qt,Zt[0],Zt[1]);case 3:return Lt.call(Qt,Zt[0],Zt[1],Zt[2])}return Lt.apply(Qt,Zt)}function Zl(Lt,Qt,Zt,Ue){for(var ai=-1,Fi=Lt==null?0:Lt.length;++ai<Fi;){var dn=Lt[ai];Qt(Ue,dn,Zt(dn),Lt)}return Ue}function Ji(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function Ss(Lt,Qt){for(var Zt=Lt==null?0:Lt.length;Zt--&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function Nh(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(!Qt(Lt[Zt],Zt,Lt))return!1;return!0}function Or(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=0,Fi=[];++Zt<Ue;){var dn=Lt[Zt];Qt(dn,Zt,Lt)&&(Fi[ai++]=dn)}return Fi}function rl(Lt,Qt){var Zt=Lt==null?0:Lt.length;return!!Zt&&Ir(Lt,Qt,0)>-1}function Jl(Lt,Qt,Zt){for(var Ue=-1,ai=Lt==null?0:Lt.length;++Ue<ai;)if(Zt(Qt,Lt[Ue]))return!0;return!1}function Yi(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=Array(Ue);++Zt<Ue;)ai[Zt]=Qt(Lt[Zt],Zt,Lt);return ai}function po(Lt,Qt){for(var Zt=-1,Ue=Qt.length,ai=Lt.length;++Zt<Ue;)Lt[ai+Zt]=Qt[Zt];return Lt}function $l(Lt,Qt,Zt,Ue){var ai=-1,Fi=Lt==null?0:Lt.length;for(Ue&&Fi&&(Zt=Lt[++ai]);++ai<Fi;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Cu(Lt,Qt,Zt,Ue){var ai=Lt==null?0:Lt.length;for(Ue&&ai&&(Zt=Lt[--ai]);ai--;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Lo(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(Qt(Lt[Zt],Zt,Lt))return!0;return!1}var mo=Qo("length");function Au(Lt){return Lt.split("")}function ol(Lt){return Lt.match(Wl)||[]}function Es(Lt,Qt,Zt){var Ue;return Zt(Lt,function(ai,Fi,dn){if(Qt(ai,Fi,dn))return Ue=Fi,!1}),Ue}function Ko(Lt,Qt,Zt,Ue){for(var ai=Lt.length,Fi=Zt+(Ue?1:-1);Ue?Fi--:++Fi<ai;)if(Qt(Lt[Fi],Fi,Lt))return Fi;return-1}function Ir(Lt,Qt,Zt){return Qt===Qt?Kl(Lt,Qt,Zt):Ko(Lt,bs,Zt)}function sl(Lt,Qt,Zt,Ue){for(var ai=Zt-1,Fi=Lt.length;++ai<Fi;)if(Ue(Lt[ai],Qt))return ai;return-1}function bs(Lt){return Lt!==Lt}function ya(Lt,Qt){var Zt=Lt==null?0:Lt.length;return Zt?es(Lt,Qt)/Zt:Ft}function Qo(Lt){return function(Qt){return Qt==null?o:Qt[Lt]}}function Ro(Lt){return function(Qt){return Lt==null?o:Lt[Qt]}}function ts(Lt,Qt,Zt,Ue,ai){return ai(Lt,function(Fi,dn,Ee){Zt=Ue?(Ue=!1,Fi):Qt(Zt,Fi,dn,Ee)}),Zt}function Pu(Lt,Qt){var Zt=Lt.length;for(Lt.sort(Qt);Zt--;)Lt[Zt]=Lt[Zt].value;return Lt}function es(Lt,Qt){for(var Zt,Ue=-1,ai=Lt.length;++Ue<ai;){var Fi=Qt(Lt[Ue]);Fi!==o&&(Zt=Zt===o?Fi:Zt+Fi)}return Zt}function Oo(Lt,Qt){for(var Zt=-1,Ue=Array(Lt);++Zt<Lt;)Ue[Zt]=Qt(Zt);return Ue}function Io(Lt,Qt){return Yi(Qt,function(Zt){return[Zt,Lt[Zt]]})}function _a(Lt){return Lt&&Lt.slice(0,xa(Lt)+1).replace(ho,"")}function Hn(Lt){return function(Qt){return Lt(Qt)}}function Cs(Lt,Qt){return Yi(Qt,function(Zt){return Lt[Zt]})}function go(Lt,Qt){return Lt.has(Qt)}function is(Lt,Qt){for(var Zt=-1,Ue=Lt.length;++Zt<Ue&&Ir(Qt,Lt[Zt],0)>-1;);return Zt}function As(Lt,Qt){for(var Zt=Lt.length;Zt--&&Ir(Qt,Lt[Zt],0)>-1;);return Zt}function vo(Lt,Qt){for(var Zt=Lt.length,Ue=0;Zt--;)Lt[Zt]===Qt&&++Ue;return Ue}var Ps=Ro(el),$r=Ro(fa);function Ls(Lt){return"\\"+ws[Lt]}function Rs(Lt,Qt){return Lt==null?o:Lt[Qt]}function Dr(Lt){return Qa.test(Lt)}function Os(Lt){return ua.test(Lt)}function Is(Lt){for(var Qt,Zt=[];!(Qt=Lt.next()).done;)Zt.push(Qt.value);return Zt}function Kn(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue,ai){Zt[++Qt]=[ai,Ue]}),Zt}function al(Lt,Qt){return function(Zt){return Lt(Qt(Zt))}}function zr(Lt,Qt){for(var Zt=-1,Ue=Lt.length,ai=0,Fi=[];++Zt<Ue;){var dn=Lt[Zt];(dn===Qt||dn===b)&&(Lt[Zt]=b,Fi[ai++]=Zt)}return Fi}function Ds(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=Ue}),Zt}function Vn(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=[Ue,Ue]}),Zt}function Kl(Lt,Qt,Zt){for(var Ue=Zt-1,ai=Lt.length;++Ue<ai;)if(Lt[Ue]===Qt)return Ue;return-1}function Ql(Lt,Qt,Zt){for(var Ue=Zt+1;Ue--;)if(Lt[Ue]===Qt)return Ue;return Ue}function Kr(Lt){return Dr(Lt)?wa(Lt):mo(Lt)}function lr(Lt){return Dr(Lt)?xr(Lt):Au(Lt)}function xa(Lt){for(var Qt=Lt.length;Qt--&&Ih.test(Lt.charAt(Qt)););return Qt}var th=Ro(il);function wa(Lt){for(var Qt=Jo.lastIndex=0;Jo.test(Lt);)++Qt;return Qt}function xr(Lt){return Lt.match(Jo)||[]}function Xc(Lt){return Lt.match(Ka)||[]}var qc=function Lt(Qt){Qt=Qt==null?vn:ns.defaults(vn.Object(),Qt,ns.pick(vn,tl));var Zt=Qt.Array,Ue=Qt.Date,ai=Qt.Error,Fi=Qt.Function,dn=Qt.Math,Ee=Qt.Object,Qn=Qt.RegExp,Ma=Qt.String,hr=Qt.TypeError,In=Zt.prototype,Lu=Fi.prototype,yo=Ee.prototype,rs=Qt["__core-js_shared__"],ur=Lu.toString,Mi=yo.hasOwnProperty,cr=0,kr=function(){var r=/[^.]+$/.exec(rs&&rs.keys&&rs.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),fr=yo.toString,_o=ur.call(Ee),Qr=vn._,Do=Qn("^"+ur.call(Mi).replace(Ja,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=Ms?Qt.Buffer:o,tr=Qt.Symbol,tn=Qt.Uint8Array,ll=dr?dr.allocUnsafe:o,xo=al(Ee.getPrototypeOf,Ee),hl=Ee.create,ul=yo.propertyIsEnumerable,zs=In.splice,Ta=tr?tr.isConcatSpreadable:o,os=tr?tr.iterator:o,wo=tr?tr.toStringTag:o,ks=function(){try{var r=Cl(Ee,"defineProperty");return r({},"",{}),r}catch{}}(),eh=Qt.clearTimeout!==vn.clearTimeout&&Qt.clearTimeout,ih=Ue&&Ue.now!==vn.Date.now&&Ue.now,Fh=Qt.setTimeout!==vn.setTimeout&&Qt.setTimeout,zo=dn.ceil,Bs=dn.floor,cl=Ee.getOwnPropertySymbols,Uh=dr?dr.isBuffer:o,nh=Qt.isFinite,Gh=In.join,Ru=al(Ee.keys,Ee),yn=dn.max,Wn=dn.min,fl=Ue.now,Hh=Qt.parseInt,rh=dn.random,Sa=In.reverse,dl=Cl(Qt,"DataView"),Ns=Cl(Qt,"Map"),pl=Cl(Qt,"Promise"),Fs=Cl(Qt,"Set"),bn=Cl(Qt,"WeakMap"),Ea=Cl(Ee,"create"),ml=bn&&new bn,ss={},oh=Al(dl),Vh=Al(Ns),Wh=Al(pl),jh=Al(Fs),Ou=Al(bn),gl=tr?tr.prototype:o,Us=gl?gl.valueOf:o,Xh=gl?gl.toString:o;function it(r){if(Rn(r)&&!vi(r)&&!(r instanceof _i)){if(r instanceof Yn)return r;if(Mi.call(r,"__wrapped__"))return lp(r)}return new Yn(r)}var as=function(){function r(){}return function(h){if(!Mn(h))return{};if(hl)return hl(h);r.prototype=h;var y=new r;return r.prototype=o,y}}();function ba(){}function Yn(r,h){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=o}it.templateSettings={escape:Hl,evaluate:Sn,interpolate:ra,variable:"",imports:{_:it}},it.prototype=ba.prototype,it.prototype.constructor=it,Yn.prototype=as(ba.prototype),Yn.prototype.constructor=Yn;function _i(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function Ca(){var r=new _i(this.__wrapped__);return r.__actions__=ir(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=ir(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=ir(this.__views__),r}function Iu(){if(this.__filtered__){var r=new _i(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Aa(){var r=this.__wrapped__.value(),h=this.__dir__,y=vi(r),D=h<0,Y=y?r.length:0,ut=$g(0,Y,this.__views__),yt=ut.start,bt=ut.end,Bt=bt-yt,oe=D?bt:yt-1,le=this.__iteratees__,de=le.length,ke=0,Ze=Wn(Bt,this.__takeCount__);if(!y||!D&&Y==Bt&&Ze==Bt)return ri(r,this.__actions__);var hi=[];t:for(;Bt--&&ke<Ze;){oe+=h;for(var Ti=-1,ui=r[oe];++Ti<de;){var Ri=le[Ti],Ui=Ri.iteratee,io=Ri.type,Er=Ui(ui);if(io==Pt)ui=Er;else if(!Er){if(io==G)continue t;break t}}hi[ke++]=ui}return hi}_i.prototype=as(ba.prototype),_i.prototype.constructor=_i;function Br(r){var h=-1,y=r==null?0:r.length;for(this.clear();++h<y;){var D=r[h];this.set(D[0],D[1])}}function Pa(){this.__data__=Ea?Ea(null):{},this.size=0}function La(r){var h=this.has(r)&&delete this.__data__[r];return this.size-=h?1:0,h}function vl(r){var h=this.__data__;if(Ea){var y=h[r];return y===v?o:y}return Mi.call(h,r)?h[r]:o}function sh(r){var h=this.__data__;return Ea?h[r]!==o:Mi.call(h,r)}function yl(r,h){var y=this.__data__;return this.size+=this.has(r)?0:1,y[r]=Ea&&h===o?v:h,this}Br.prototype.clear=Pa,Br.prototype.delete=La,Br.prototype.get=vl,Br.prototype.has=sh,Br.prototype.set=yl;function pr(r){var h=-1,y=r==null?0:r.length;for(this.clear();++h<y;){var D=r[h];this.set(D[0],D[1])}}function _l(){this.__data__=[],this.size=0}function ko(r){var h=this.__data__,y=Ml(h,r);if(y<0)return!1;var D=h.length-1;return y==D?h.pop():zs.call(h,y,1),--this.size,!0}function xl(r){var h=this.__data__,y=Ml(h,r);return y<0?o:h[y][1]}function wl(r){return Ml(this.__data__,r)>-1}function Bo(r,h){var y=this.__data__,D=Ml(y,r);return D<0?(++this.size,y.push([r,h])):y[D][1]=h,this}pr.prototype.clear=_l,pr.prototype.delete=ko,pr.prototype.get=xl,pr.prototype.has=wl,pr.prototype.set=Bo;function wr(r){var h=-1,y=r==null?0:r.length;for(this.clear();++h<y;){var D=r[h];this.set(D[0],D[1])}}function Du(){this.size=0,this.__data__={hash:new Br,map:new(Ns||pr),string:new Br}}function zu(r){var h=ju(this,r).delete(r);return this.size-=h?1:0,h}function qh(r){return ju(this,r).get(r)}function di(r){return ju(this,r).has(r)}function ls(r,h){var y=ju(this,r),D=y.size;return y.set(r,h),this.size+=y.size==D?0:1,this}wr.prototype.clear=Du,wr.prototype.delete=zu,wr.prototype.get=qh,wr.prototype.has=di,wr.prototype.set=ls;function Gs(r){var h=-1,y=r==null?0:r.length;for(this.__data__=new wr;++h<y;)this.add(r[h])}function Ci(r){return this.__data__.set(r,v),this}function Nn(r){return this.__data__.has(r)}Gs.prototype.add=Gs.prototype.push=Ci,Gs.prototype.has=Nn;function to(r){var h=this.__data__=new pr(r);this.size=h.size}function qe(){this.__data__=new pr,this.size=0}function Mo(r){var h=this.__data__,y=h.delete(r);return this.size=h.size,y}function Yc(r){return this.__data__.get(r)}function Zc(r){return this.__data__.has(r)}function Jc(r,h){var y=this.__data__;if(y instanceof pr){var D=y.__data__;if(!Ns||D.length<f-1)return D.push([r,h]),this.size=++y.size,this;y=this.__data__=new wr(D)}return y.set(r,h),this.size=y.size,this}to.prototype.clear=qe,to.prototype.delete=Mo,to.prototype.get=Yc,to.prototype.has=Zc,to.prototype.set=Jc;function ku(r,h){var y=vi(r),D=!y&&Pl(r),Y=!y&&!D&&Ba(r),ut=!y&&!D&&!Y&&mh(r),yt=y||D||Y||ut,bt=yt?Oo(r.length,Ma):[],Bt=bt.length;for(var oe in r)(h||Mi.call(r,oe))&&!(yt&&(oe=="length"||Y&&(oe=="offset"||oe=="parent")||ut&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||Xs(oe,Bt)))&&bt.push(oe);return bt}function Yh(r){var h=r.length;return h?r[ge(0,h-1)]:o}function $c(r,h){return Xu(ir(r),hs(h,0,r.length))}function Bu(r){return Xu(ir(r))}function ah(r,h,y){(y!==o&&!Go(r[h],y)||y===o&&!(h in r))&&No(r,h,y)}function Ra(r,h,y){var D=r[h];(!(Mi.call(r,h)&&Go(D,y))||y===o&&!(h in r))&&No(r,h,y)}function Ml(r,h){for(var y=r.length;y--;)if(Go(r[y][0],h))return y;return-1}function Nu(r,h,y,D){return _n(r,function(Y,ut,yt){h(D,Y,y(Y),yt)}),D}function Zh(r,h){return r&&Dn(h,$n(h),r)}function Jh(r,h){return r&&Dn(h,Gr(h),r)}function No(r,h,y){h=="__proto__"&&ks?ks(r,h,{configurable:!0,enumerable:!0,value:y,writable:!0}):r[h]=y}function $h(r,h){for(var y=-1,D=h.length,Y=Zt(D),ut=r==null;++y<D;)Y[y]=ut?o:pf(r,h[y]);return Y}function hs(r,h,y){return r===r&&(y!==o&&(r=r<=y?r:y),h!==o&&(r=r>=h?r:h)),r}function Mr(r,h,y,D,Y,ut){var yt,bt=h&O,Bt=h&k,oe=h&R;if(y&&(yt=Y?y(r,D,Y,ut):y(r)),yt!==o)return yt;if(!Mn(r))return r;var le=vi(r);if(le){if(yt=Qg(r),!bt)return ir(r,yt)}else{var de=gr(r),ke=de==gn||de==Qi;if(Ba(r))return Fo(r,bt);if(de==dt||de==Wt||ke&&!Y){if(yt=Bt||ke?{}:Qd(r),!bt)return Bt?Hu(r,Jh(yt,r)):Eo(r,Zh(yt,r))}else{if(!xi[de])return Y?r:{};yt=t0(r,de,bt)}}ut||(ut=new to);var Ze=ut.get(r);if(Ze)return Ze;ut.set(r,yt),Ap(r)?r.forEach(function(ui){yt.add(Mr(ui,h,y,ui,r,ut))}):bp(r)&&r.forEach(function(ui,Ri){yt.set(Ri,Mr(ui,h,y,Ri,r,ut))});var hi=oe?Bt?Qc:Kc:Bt?Gr:$n,Ti=le?o:hi(r);return Ji(Ti||r,function(ui,Ri){Ti&&(Ri=ui,ui=r[Ri]),Ra(yt,Ri,Mr(ui,h,y,Ri,r,ut))}),yt}function Oa(r){var h=$n(r);return function(y){return Fu(y,r,h)}}function Fu(r,h,y){var D=y.length;if(r==null)return!D;for(r=Ee(r);D--;){var Y=y[D],ut=h[Y],yt=r[Y];if(yt===o&&!(Y in r)||!ut(yt))return!1}return!0}function To(r,h,y){if(typeof r!="function")throw new hr(m);return ou(function(){r.apply(o,y)},h)}function Tl(r,h,y,D){var Y=-1,ut=rl,yt=!0,bt=r.length,Bt=[],oe=h.length;if(!bt)return Bt;y&&(h=Yi(h,Hn(y))),D?(ut=Jl,yt=!1):h.length>=f&&(ut=go,yt=!1,h=new Gs(h));t:for(;++Y<bt;){var le=r[Y],de=y==null?le:y(le);if(le=D||le!==0?le:0,yt&&de===de){for(var ke=oe;ke--;)if(h[ke]===de)continue t;Bt.push(le)}else ut(h,de,D)||Bt.push(le)}return Bt}var _n=ft(Fr),Uu=ft(hh,!0);function Zn(r,h){var y=!0;return _n(r,function(D,Y,ut){return y=!!h(D,Y,ut),y}),y}function So(r,h,y){for(var D=-1,Y=r.length;++D<Y;){var ut=r[D],yt=h(ut);if(yt!=null&&(bt===o?yt===yt&&!eo(yt):y(yt,bt)))var bt=yt,Bt=ut}return Bt}function er(r,h,y,D){var Y=r.length;for(y=wi(y),y<0&&(y=-y>Y?0:Y+y),D=D===o||D>Y?Y:wi(D),D<0&&(D+=Y),D=y>D?0:Lp(D);y<D;)r[y++]=h;return r}function Nr(r,h){var y=[];return _n(r,function(D,Y,ut){h(D,Y,ut)&&y.push(D)}),y}function Cn(r,h,y,D,Y){var ut=-1,yt=r.length;for(y||(y=i0),Y||(Y=[]);++ut<yt;){var bt=r[ut];h>0&&y(bt)?h>1?Cn(bt,h-1,y,D,Y):po(Y,bt):D||(Y[Y.length]=bt)}return Y}var Sl=Mt(),lh=Mt(!0);function Fr(r,h){return r&&Sl(r,h,$n)}function hh(r,h){return r&&lh(r,h,$n)}function Hs(r,h){return Or(h,function(y){return qs(r[y])})}function us(r,h){h=Je(h,r);for(var y=0,D=h.length;r!=null&&y<D;)r=r[fs(h[y++])];return y&&y==D?r:o}function Gu(r,h,y){var D=h(r);return vi(r)?D:po(D,y(r))}function Jn(r){return r==null?r===o?st:jt:wo&&wo in Ee(r)?Jg(r):h0(r)}function uh(r,h){return r>h}function ch(r,h){return r!=null&&Mi.call(r,h)}function Kh(r,h){return r!=null&&h in Ee(r)}function fh(r,h,y){return r>=Wn(h,y)&&r<yn(h,y)}function El(r,h,y){for(var D=y?Jl:rl,Y=r[0].length,ut=r.length,yt=ut,bt=Zt(ut),Bt=1/0,oe=[];yt--;){var le=r[yt];yt&&h&&(le=Yi(le,Hn(h))),Bt=Wn(le.length,Bt),bt[yt]=!y&&(h||Y>=120&&le.length>=120)?new Gs(yt&&le):o}le=r[0];var de=-1,ke=bt[0];t:for(;++de<Y&&oe.length<Bt;){var Ze=le[de],hi=h?h(Ze):Ze;if(Ze=y||Ze!==0?Ze:0,!(ke?go(ke,hi):D(oe,hi,y))){for(yt=ut;--yt;){var Ti=bt[yt];if(!(Ti?go(Ti,hi):D(r[yt],hi,y)))continue t}ke&&ke.push(hi),oe.push(Ze)}}return oe}function t(r,h,y,D){return Fr(r,function(Y,ut,yt){h(D,y(Y),ut,yt)}),D}function e(r,h,y){h=Je(h,r),r=np(r,h);var D=r==null?r:r[fs(Co(h))];return D==null?o:_r(D,r,y)}function i(r){return Rn(r)&&Jn(r)==Wt}function n(r){return Rn(r)&&Jn(r)==Ut}function s(r){return Rn(r)&&Jn(r)==Ge}function l(r,h,y,D,Y){return r===h?!0:r==null||h==null||!Rn(r)&&!Rn(h)?r!==r&&h!==h:d(r,h,y,D,l,Y)}function d(r,h,y,D,Y,ut){var yt=vi(r),bt=vi(h),Bt=yt?$e:gr(r),oe=bt?$e:gr(h);Bt=Bt==Wt?dt:Bt,oe=oe==Wt?dt:oe;var le=Bt==dt,de=oe==dt,ke=Bt==oe;if(ke&&Ba(r)){if(!Ba(h))return!1;yt=!0,le=!1}if(ke&&!le)return ut||(ut=new to),yt||mh(r)?Jd(r,h,y,D,Y,ut):Yg(r,h,Bt,y,D,Y,ut);if(!(y&F)){var Ze=le&&Mi.call(r,"__wrapped__"),hi=de&&Mi.call(h,"__wrapped__");if(Ze||hi){var Ti=Ze?r.value():r,ui=hi?h.value():h;return ut||(ut=new to),Y(Ti,ui,y,D,ut)}}return ke?(ut||(ut=new to),Zg(r,h,y,D,Y,ut)):!1}function p(r){return Rn(r)&&gr(r)==W}function _(r,h,y,D){var Y=y.length,ut=Y,yt=!D;if(r==null)return!ut;for(r=Ee(r);Y--;){var bt=y[Y];if(yt&&bt[2]?bt[1]!==r[bt[0]]:!(bt[0]in r))return!1}for(;++Y<ut;){bt=y[Y];var Bt=bt[0],oe=r[Bt],le=bt[1];if(yt&&bt[2]){if(oe===o&&!(Bt in r))return!1}else{var de=new to;if(D)var ke=D(oe,le,Bt,r,h,de);if(!(ke===o?l(le,oe,F|E,D,de):ke))return!1}}return!0}function M(r){if(!Mn(r)||r0(r))return!1;var h=qs(r)?Do:_s;return h.test(Al(r))}function A(r){return Rn(r)&&Jn(r)==ie}function L(r){return Rn(r)&&gr(r)==Kt}function B(r){return Rn(r)&&Ku(r.length)&&!!Xi[Jn(r)]}function H(r){return typeof r=="function"?r:r==null?Hr:typeof r=="object"?vi(r)?Ct(r[0],r[1]):gt(r):Gp(r)}function q(r){if(!ru(r))return Ru(r);var h=[];for(var y in Ee(r))Mi.call(r,y)&&y!="constructor"&&h.push(y);return h}function $(r){if(!Mn(r))return l0(r);var h=ru(r),y=[];for(var D in r)D=="constructor"&&(h||!Mi.call(r,D))||y.push(D);return y}function rt(r,h){return r<h}function xt(r,h){var y=-1,D=Ur(r)?Zt(r.length):[];return _n(r,function(Y,ut,yt){D[++y]=h(Y,ut,yt)}),D}function gt(r){var h=ef(r);return h.length==1&&h[0][2]?ep(h[0][0],h[0][1]):function(y){return y===r||_(y,r,h)}}function Ct(r,h){return rf(r)&&tp(h)?ep(fs(r),h):function(y){var D=pf(y,r);return D===o&&D===h?mf(y,r):l(h,D,F|E)}}function wt(r,h,y,D,Y){r!==h&&Sl(h,function(ut,yt){if(Y||(Y=new to),Mn(ut))Vt(r,h,yt,y,wt,D,Y);else{var bt=D?D(sf(r,yt),ut,yt+"",r,h,Y):o;bt===o&&(bt=ut),ah(r,yt,bt)}},Gr)}function Vt(r,h,y,D,Y,ut,yt){var bt=sf(r,y),Bt=sf(h,y),oe=yt.get(Bt);if(oe){ah(r,y,oe);return}var le=ut?ut(bt,Bt,y+"",r,h,yt):o,de=le===o;if(de){var ke=vi(Bt),Ze=!ke&&Ba(Bt),hi=!ke&&!Ze&&mh(Bt);le=Bt,ke||Ze||hi?vi(bt)?le=bt:zn(bt)?le=ir(bt):Ze?(de=!1,le=Fo(Bt,!0)):hi?(de=!1,le=bl(Bt,!0)):le=[]:su(Bt)||Pl(Bt)?(le=bt,Pl(bt)?le=Rp(bt):(!Mn(bt)||qs(bt))&&(le=Qd(Bt))):de=!1}de&&(yt.set(Bt,le),Y(le,Bt,D,ut,yt),yt.delete(Bt)),ah(r,y,le)}function K(r,h){var y=r.length;if(y)return h+=h<0?y:0,Xs(h,y)?r[h]:o}function ot(r,h,y){h.length?h=Yi(h,function(ut){return vi(ut)?function(yt){return us(yt,ut.length===1?ut[0]:ut)}:ut}):h=[Hr];var D=-1;h=Yi(h,Hn(si()));var Y=xt(r,function(ut,yt,bt){var Bt=Yi(h,function(oe){return oe(ut)});return{criteria:Bt,index:++D,value:ut}});return Pu(Y,function(ut,yt){return cs(ut,yt,y)})}function kt(r,h){return ee(r,h,function(y,D){return mf(r,D)})}function ee(r,h,y){for(var D=-1,Y=h.length,ut={};++D<Y;){var yt=h[D],bt=us(r,yt);y(bt,yt)&&fi(ut,Je(yt,r),bt)}return ut}function $t(r){return function(h){return us(h,r)}}function Yt(r,h,y,D){var Y=D?sl:Ir,ut=-1,yt=h.length,bt=r;for(r===h&&(h=ir(h)),y&&(bt=Yi(r,Hn(y)));++ut<yt;)for(var Bt=0,oe=h[ut],le=y?y(oe):oe;(Bt=Y(bt,le,Bt,D))>-1;)bt!==r&&zs.call(bt,Bt,1),zs.call(r,Bt,1);return r}function Me(r,h){for(var y=r?h.length:0,D=y-1;y--;){var Y=h[y];if(y==D||Y!==ut){var ut=Y;Xs(Y)?zs.call(r,Y,1):Wi(r,Y)}}return r}function ge(r,h){return r+Bs(rh()*(h-r+1))}function De(r,h,y,D){for(var Y=-1,ut=yn(zo((h-r)/(y||1)),0),yt=Zt(ut);ut--;)yt[D?ut:++Y]=r,r+=y;return yt}function be(r,h){var y="";if(!r||h<1||h>ce)return y;do h%2&&(y+=r),h=Bs(h/2),h&&(r+=r);while(h);return y}function ae(r,h){return af(ip(r,h,Hr),r+"")}function We(r){return Yh(gh(r))}function Qe(r,h){var y=gh(r);return Xu(y,hs(h,0,y.length))}function fi(r,h,y,D){if(!Mn(r))return r;h=Je(h,r);for(var Y=-1,ut=h.length,yt=ut-1,bt=r;bt!=null&&++Y<ut;){var Bt=fs(h[Y]),oe=y;if(Bt==="__proto__"||Bt==="constructor"||Bt==="prototype")return r;if(Y!=yt){var le=bt[Bt];oe=D?D(le,Bt,bt):o,oe===o&&(oe=Mn(le)?le:Xs(h[Y+1])?[]:{})}Ra(bt,Bt,oe),bt=bt[Bt]}return r}var An=ml?function(r,h){return ml.set(r,h),r}:Hr,xn=ks?function(r,h){return ks(r,"toString",{configurable:!0,enumerable:!1,value:vf(h),writable:!0})}:Hr;function qi(r){return Xu(gh(r))}function Vi(r,h,y){var D=-1,Y=r.length;h<0&&(h=-h>Y?0:Y+h),y=y>Y?Y:y,y<0&&(y+=Y),Y=h>y?0:y-h>>>0,h>>>=0;for(var ut=Zt(Y);++D<Y;)ut[D]=r[D+h];return ut}function on(r,h){var y;return _n(r,function(D,Y,ut){return y=h(D,Y,ut),!y}),!!y}function Pn(r,h,y){var D=0,Y=r==null?D:r.length;if(typeof h=="number"&&h===h&&Y<=Pe){for(;D<Y;){var ut=D+Y>>>1,yt=r[ut];yt!==null&&!eo(yt)&&(y?yt<=h:yt<h)?D=ut+1:Y=ut}return Y}return Ce(r,h,Hr,y)}function Ce(r,h,y,D){var Y=0,ut=r==null?0:r.length;if(ut===0)return 0;h=y(h);for(var yt=h!==h,bt=h===null,Bt=eo(h),oe=h===o;Y<ut;){var le=Bs((Y+ut)/2),de=y(r[le]),ke=de!==o,Ze=de===null,hi=de===de,Ti=eo(de);if(yt)var ui=D||hi;else oe?ui=hi&&(D||ke):bt?ui=hi&&ke&&(D||!Ze):Bt?ui=hi&&ke&&!Ze&&(D||!Ti):Ze||Ti?ui=!1:ui=D?de<=h:de<h;ui?Y=le+1:ut=le}return Wn(ut,Nt)}function ti(r,h){for(var y=-1,D=r.length,Y=0,ut=[];++y<D;){var yt=r[y],bt=h?h(yt):yt;if(!y||!Go(bt,Bt)){var Bt=bt;ut[Y++]=yt===0?0:yt}}return ut}function Ht(r){return typeof r=="number"?r:eo(r)?Ft:+r}function Ye(r){if(typeof r=="string")return r;if(vi(r))return Yi(r,Ye)+"";if(eo(r))return Xh?Xh.call(r):"";var h=r+"";return h=="0"&&1/r==-At?"-0":h}function ei(r,h,y){var D=-1,Y=rl,ut=r.length,yt=!0,bt=[],Bt=bt;if(y)yt=!1,Y=Jl;else if(ut>=f){var oe=h?null:ka(r);if(oe)return Ds(oe);yt=!1,Y=go,Bt=new Gs}else Bt=h?[]:bt;t:for(;++D<ut;){var le=r[D],de=h?h(le):le;if(le=y||le!==0?le:0,yt&&de===de){for(var ke=Bt.length;ke--;)if(Bt[ke]===de)continue t;h&&Bt.push(de),bt.push(le)}else Y(Bt,de,y)||(Bt!==bt&&Bt.push(de),bt.push(le))}return bt}function Wi(r,h){return h=Je(h,r),r=np(r,h),r==null||delete r[fs(Co(h))]}function Ae(r,h,y,D){return fi(r,h,y(us(r,h)),D)}function Xe(r,h,y,D){for(var Y=r.length,ut=D?Y:-1;(D?ut--:++ut<Y)&&h(r[ut],ut,r););return y?Vi(r,D?0:ut,D?ut+1:Y):Vi(r,D?ut+1:0,D?Y:ut)}function ri(r,h){var y=r;return y instanceof _i&&(y=y.value()),$l(h,function(D,Y){return Y.func.apply(Y.thisArg,po([D],Y.args))},y)}function Li(r,h,y){var D=r.length;if(D<2)return D?ei(r[0]):[];for(var Y=-1,ut=Zt(D);++Y<D;)for(var yt=r[Y],bt=-1;++bt<D;)bt!=Y&&(ut[Y]=Tl(ut[Y]||yt,r[bt],h,y));return ei(Cn(ut,1),h,y)}function Ai(r,h,y){for(var D=-1,Y=r.length,ut=h.length,yt={};++D<Y;){var bt=D<ut?h[D]:o;y(yt,r[D],bt)}return yt}function ne(r){return zn(r)?r:[]}function ii(r){return typeof r=="function"?r:Hr}function Je(r,h){return vi(r)?r:rf(r,h)?[r]:ap(Zi(r))}var li=ae;function wn(r,h,y){var D=r.length;return y=y===o?D:y,!h&&y>=D?r:Vi(r,h,y)}var Ln=eh||function(r){return vn.clearTimeout(r)};function Fo(r,h){if(h)return r.slice();var y=r.length,D=ll?ll(y):new r.constructor(y);return r.copy(D),D}function Ia(r){var h=new r.constructor(r.byteLength);return new tn(h).set(new tn(r)),h}function Qh(r,h){var y=h?Ia(r.buffer):r.buffer;return new r.constructor(y,r.byteOffset,r.byteLength)}function Da(r){var h=new r.constructor(r.source,jl.exec(r));return h.lastIndex=r.lastIndex,h}function Vs(r){return Us?Ee(Us.call(r)):{}}function bl(r,h){var y=h?Ia(r.buffer):r.buffer;return new r.constructor(y,r.byteOffset,r.length)}function Ws(r,h){if(r!==h){var y=r!==o,D=r===null,Y=r===r,ut=eo(r),yt=h!==o,bt=h===null,Bt=h===h,oe=eo(h);if(!bt&&!oe&&!ut&&r>h||ut&&yt&&Bt&&!bt&&!oe||D&&yt&&Bt||!y&&Bt||!Y)return 1;if(!D&&!ut&&!oe&&r<h||oe&&y&&Y&&!D&&!ut||bt&&y&&Y||!yt&&Y||!Bt)return-1}return 0}function cs(r,h,y){for(var D=-1,Y=r.criteria,ut=h.criteria,yt=Y.length,bt=y.length;++D<yt;){var Bt=Ws(Y[D],ut[D]);if(Bt){if(D>=bt)return Bt;var oe=y[D];return Bt*(oe=="desc"?-1:1)}}return r.index-h.index}function tu(r,h,y,D){for(var Y=-1,ut=r.length,yt=y.length,bt=-1,Bt=h.length,oe=yn(ut-yt,0),le=Zt(Bt+oe),de=!D;++bt<Bt;)le[bt]=h[bt];for(;++Y<yt;)(de||Y<ut)&&(le[y[Y]]=r[Y]);for(;oe--;)le[bt++]=r[Y++];return le}function eu(r,h,y,D){for(var Y=-1,ut=r.length,yt=-1,bt=y.length,Bt=-1,oe=h.length,le=yn(ut-bt,0),de=Zt(le+oe),ke=!D;++Y<le;)de[Y]=r[Y];for(var Ze=Y;++Bt<oe;)de[Ze+Bt]=h[Bt];for(;++yt<bt;)(ke||Y<ut)&&(de[Ze+y[yt]]=r[Y++]);return de}function ir(r,h){var y=-1,D=r.length;for(h||(h=Zt(D));++y<D;)h[y]=r[y];return h}function Dn(r,h,y,D){var Y=!y;y||(y={});for(var ut=-1,yt=h.length;++ut<yt;){var bt=h[ut],Bt=D?D(y[bt],r[bt],bt,y,r):o;Bt===o&&(Bt=r[bt]),Y?No(y,bt,Bt):Ra(y,bt,Bt)}return y}function Eo(r,h){return Dn(r,nf(r),h)}function Hu(r,h){return Dn(r,$d(r),h)}function za(r,h){return function(y,D){var Y=vi(y)?Zl:Nu,ut=h?h():{};return Y(y,r,si(D,2),ut)}}function Uo(r){return ae(function(h,y){var D=-1,Y=y.length,ut=Y>1?y[Y-1]:o,yt=Y>2?y[2]:o;for(ut=r.length>3&&typeof ut=="function"?(Y--,ut):o,yt&&Sr(y[0],y[1],yt)&&(ut=Y<3?o:ut,Y=1),h=Ee(h);++D<Y;){var bt=y[D];bt&&r(h,bt,D,ut)}return h})}function ft(r,h){return function(y,D){if(y==null)return y;if(!Ur(y))return r(y,D);for(var Y=y.length,ut=h?Y:-1,yt=Ee(y);(h?ut--:++ut<Y)&&D(yt[ut],ut,yt)!==!1;);return y}}function Mt(r){return function(h,y,D){for(var Y=-1,ut=Ee(h),yt=D(h),bt=yt.length;bt--;){var Bt=yt[r?bt:++Y];if(y(ut[Bt],Bt,ut)===!1)break}return h}}function mt(r,h,y){var D=h&P,Y=Ve(r);function ut(){var yt=this&&this!==vn&&this instanceof ut?Y:r;return yt.apply(D?y:this,arguments)}return ut}function Te(r){return function(h){h=Zi(h);var y=Dr(h)?lr(h):o,D=y?y[0]:h.charAt(0),Y=y?wn(y,1).join(""):h.slice(1);return D[r]()+Y}}function ze(r){return function(h){return $l(Fp(Np(h).replace(ha,"")),r,"")}}function Ve(r){return function(){var h=arguments;switch(h.length){case 0:return new r;case 1:return new r(h[0]);case 2:return new r(h[0],h[1]);case 3:return new r(h[0],h[1],h[2]);case 4:return new r(h[0],h[1],h[2],h[3]);case 5:return new r(h[0],h[1],h[2],h[3],h[4]);case 6:return new r(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new r(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var y=as(r.prototype),D=r.apply(y,h);return Mn(D)?D:y}}function Se(r,h,y){var D=Ve(r);function Y(){for(var ut=arguments.length,yt=Zt(ut),bt=ut,Bt=ph(Y);bt--;)yt[bt]=arguments[bt];var oe=ut<3&&yt[0]!==Bt&&yt[ut-1]!==Bt?[]:zr(yt,Bt);if(ut-=oe.length,ut<y)return nu(r,h,$i,Y.placeholder,o,yt,oe,o,o,y-ut);var le=this&&this!==vn&&this instanceof Y?D:r;return _r(le,this,yt)}return Y}function Ke(r){return function(h,y,D){var Y=Ee(h);if(!Ur(h)){var ut=si(y,3);h=$n(h),y=function(bt){return ut(Y[bt],bt,Y)}}var yt=r(h,y,D);return yt>-1?Y[ut?h[yt]:yt]:o}}function Oi(r){return js(function(h){var y=h.length,D=y,Y=Yn.prototype.thru;for(r&&h.reverse();D--;){var ut=h[D];if(typeof ut!="function")throw new hr(m);if(Y&&!yt&&Wu(ut)=="wrapper")var yt=new Yn([],!0)}for(D=yt?D:y;++D<y;){ut=h[D];var bt=Wu(ut),Bt=bt=="wrapper"?tf(ut):o;Bt&&of(Bt[0])&&Bt[1]==(X|I|U|J)&&!Bt[4].length&&Bt[9]==1?yt=yt[Wu(Bt[0])].apply(yt,Bt[3]):yt=ut.length==1&&of(ut)?yt[bt]():yt.thru(ut)}return function(){var oe=arguments,le=oe[0];if(yt&&oe.length==1&&vi(le))return yt.plant(le).value();for(var de=0,ke=y?h[de].apply(this,oe):le;++de<y;)ke=h[de].call(this,ke);return ke}})}function $i(r,h,y,D,Y,ut,yt,bt,Bt,oe){var le=h&X,de=h&P,ke=h&w,Ze=h&(I|C),hi=h&Z,Ti=ke?o:Ve(r);function ui(){for(var Ri=arguments.length,Ui=Zt(Ri),io=Ri;io--;)Ui[io]=arguments[io];if(Ze)var Er=ph(ui),no=vo(Ui,Er);if(D&&(Ui=tu(Ui,D,Y,Ze)),ut&&(Ui=eu(Ui,ut,yt,Ze)),Ri-=no,Ze&&Ri<oe){var kn=zr(Ui,Er);return nu(r,h,$i,ui.placeholder,y,Ui,kn,bt,Bt,oe-Ri)}var Ho=de?y:this,Zs=ke?Ho[r]:r;return Ri=Ui.length,bt?Ui=u0(Ui,bt):hi&&Ri>1&&Ui.reverse(),le&&Bt<Ri&&(Ui.length=Bt),this&&this!==vn&&this instanceof ui&&(Zs=Ti||Ve(Zs)),Zs.apply(Ho,Ui)}return ui}function ve(r,h){return function(y,D){return t(y,r,h(D),{})}}function Tr(r,h){return function(y,D){var Y;if(y===o&&D===o)return h;if(y!==o&&(Y=y),D!==o){if(Y===o)return D;typeof y=="string"||typeof D=="string"?(y=Ye(y),D=Ye(D)):(y=Ht(y),D=Ht(D)),Y=r(y,D)}return Y}}function Fn(r){return js(function(h){return h=Yi(h,Hn(si())),ae(function(y){var D=this;return r(h,function(Y){return _r(Y,D,y)})})})}function an(r,h){h=h===o?" ":Ye(h);var y=h.length;if(y<2)return y?be(h,r):h;var D=be(h,zo(r/Kr(h)));return Dr(h)?wn(lr(D),0,r).join(""):D.slice(0,r)}function mr(r,h,y,D){var Y=h&P,ut=Ve(r);function yt(){for(var bt=-1,Bt=arguments.length,oe=-1,le=D.length,de=Zt(le+Bt),ke=this&&this!==vn&&this instanceof yt?ut:r;++oe<le;)de[oe]=D[oe];for(;Bt--;)de[oe++]=arguments[++bt];return _r(ke,Y?y:this,de)}return yt}function iu(r){return function(h,y,D){return D&&typeof D!="number"&&Sr(h,y,D)&&(y=D=o),h=Ys(h),y===o?(y=h,h=0):y=Ys(y),D=D===o?h<y?1:-1:Ys(D),De(h,y,D,r)}}function bo(r){return function(h,y){return typeof h=="string"&&typeof y=="string"||(h=Ao(h),y=Ao(y)),r(h,y)}}function nu(r,h,y,D,Y,ut,yt,bt,Bt,oe){var le=h&I,de=le?yt:o,ke=le?o:yt,Ze=le?ut:o,hi=le?o:ut;h|=le?U:N,h&=~(le?N:U),h&T||(h&=~(P|w));var Ti=[r,h,Y,Ze,de,hi,ke,bt,Bt,oe],ui=y.apply(o,Ti);return of(r)&&rp(ui,Ti),ui.placeholder=D,op(ui,r,h)}function dh(r){var h=dn[r];return function(y,D){if(y=Ao(y),D=D==null?0:Wn(wi(D),292),D&&nh(y)){var Y=(Zi(y)+"e").split("e"),ut=h(Y[0]+"e"+(+Y[1]+D));return Y=(Zi(ut)+"e").split("e"),+(Y[0]+"e"+(+Y[1]-D))}return h(y)}}var ka=Fs&&1/Ds(new Fs([,-0]))[1]==At?function(r){return new Fs(r)}:xf;function Vu(r){return function(h){var y=gr(h);return y==W?Kn(h):y==Kt?Vn(h):Io(h,r(h))}}function nr(r,h,y,D,Y,ut,yt,bt){var Bt=h&w;if(!Bt&&typeof r!="function")throw new hr(m);var oe=D?D.length:0;if(oe||(h&=~(U|N),D=Y=o),yt=yt===o?yt:yn(wi(yt),0),bt=bt===o?bt:wi(bt),oe-=Y?Y.length:0,h&N){var le=D,de=Y;D=Y=o}var ke=Bt?o:tf(r),Ze=[r,h,y,D,Y,le,de,ut,yt,bt];if(ke&&a0(Ze,ke),r=Ze[0],h=Ze[1],y=Ze[2],D=Ze[3],Y=Ze[4],bt=Ze[9]=Ze[9]===o?Bt?0:r.length:yn(Ze[9]-oe,0),!bt&&h&(I|C)&&(h&=~(I|C)),!h||h==P)var hi=mt(r,h,y);else h==I||h==C?hi=Se(r,h,bt):(h==U||h==(P|U))&&!Y.length?hi=mr(r,h,y,D):hi=$i.apply(o,Ze);var Ti=ke?An:rp;return op(Ti(hi,Ze),r,h)}function Yd(r,h,y,D){return r===o||Go(r,yo[y])&&!Mi.call(D,y)?h:r}function Zd(r,h,y,D,Y,ut){return Mn(r)&&Mn(h)&&(ut.set(h,r),wt(r,h,o,Zd,ut),ut.delete(h)),r}function qg(r){return su(r)?o:r}function Jd(r,h,y,D,Y,ut){var yt=y&F,bt=r.length,Bt=h.length;if(bt!=Bt&&!(yt&&Bt>bt))return!1;var oe=ut.get(r),le=ut.get(h);if(oe&&le)return oe==h&&le==r;var de=-1,ke=!0,Ze=y&E?new Gs:o;for(ut.set(r,h),ut.set(h,r);++de<bt;){var hi=r[de],Ti=h[de];if(D)var ui=yt?D(Ti,hi,de,h,r,ut):D(hi,Ti,de,r,h,ut);if(ui!==o){if(ui)continue;ke=!1;break}if(Ze){if(!Lo(h,function(Ri,Ui){if(!go(Ze,Ui)&&(hi===Ri||Y(hi,Ri,y,D,ut)))return Ze.push(Ui)})){ke=!1;break}}else if(!(hi===Ti||Y(hi,Ti,y,D,ut))){ke=!1;break}}return ut.delete(r),ut.delete(h),ke}function Yg(r,h,y,D,Y,ut,yt){switch(y){case qt:if(r.byteLength!=h.byteLength||r.byteOffset!=h.byteOffset)return!1;r=r.buffer,h=h.buffer;case Ut:return!(r.byteLength!=h.byteLength||!ut(new tn(r),new tn(h)));case Oe:case Ge:case Jt:return Go(+r,+h);case Di:return r.name==h.name&&r.message==h.message;case ie:case z:return r==h+"";case W:var bt=Kn;case Kt:var Bt=D&F;if(bt||(bt=Ds),r.size!=h.size&&!Bt)return!1;var oe=yt.get(r);if(oe)return oe==h;D|=E,yt.set(r,h);var le=Jd(bt(r),bt(h),D,Y,ut,yt);return yt.delete(r),le;case Q:if(Us)return Us.call(r)==Us.call(h)}return!1}function Zg(r,h,y,D,Y,ut){var yt=y&F,bt=Kc(r),Bt=bt.length,oe=Kc(h),le=oe.length;if(Bt!=le&&!yt)return!1;for(var de=Bt;de--;){var ke=bt[de];if(!(yt?ke in h:Mi.call(h,ke)))return!1}var Ze=ut.get(r),hi=ut.get(h);if(Ze&&hi)return Ze==h&&hi==r;var Ti=!0;ut.set(r,h),ut.set(h,r);for(var ui=yt;++de<Bt;){ke=bt[de];var Ri=r[ke],Ui=h[ke];if(D)var io=yt?D(Ui,Ri,ke,h,r,ut):D(Ri,Ui,ke,r,h,ut);if(!(io===o?Ri===Ui||Y(Ri,Ui,y,D,ut):io)){Ti=!1;break}ui||(ui=ke=="constructor")}if(Ti&&!ui){var Er=r.constructor,no=h.constructor;Er!=no&&"constructor"in r&&"constructor"in h&&!(typeof Er=="function"&&Er instanceof Er&&typeof no=="function"&&no instanceof no)&&(Ti=!1)}return ut.delete(r),ut.delete(h),Ti}function js(r){return af(ip(r,o,cp),r+"")}function Kc(r){return Gu(r,$n,nf)}function Qc(r){return Gu(r,Gr,$d)}var tf=ml?function(r){return ml.get(r)}:xf;function Wu(r){for(var h=r.name+"",y=ss[h],D=Mi.call(ss,h)?y.length:0;D--;){var Y=y[D],ut=Y.func;if(ut==null||ut==r)return Y.name}return h}function ph(r){var h=Mi.call(it,"placeholder")?it:r;return h.placeholder}function si(){var r=it.iteratee||yf;return r=r===yf?H:r,arguments.length?r(arguments[0],arguments[1]):r}function ju(r,h){var y=r.__data__;return n0(h)?y[typeof h=="string"?"string":"hash"]:y.map}function ef(r){for(var h=$n(r),y=h.length;y--;){var D=h[y],Y=r[D];h[y]=[D,Y,tp(Y)]}return h}function Cl(r,h){var y=Rs(r,h);return M(y)?y:o}function Jg(r){var h=Mi.call(r,wo),y=r[wo];try{r[wo]=o;var D=!0}catch{}var Y=fr.call(r);return D&&(h?r[wo]=y:delete r[wo]),Y}var nf=cl?function(r){return r==null?[]:(r=Ee(r),Or(cl(r),function(h){return ul.call(r,h)}))}:wf,$d=cl?function(r){for(var h=[];r;)po(h,nf(r)),r=xo(r);return h}:wf,gr=Jn;(dl&&gr(new dl(new ArrayBuffer(1)))!=qt||Ns&&gr(new Ns)!=W||pl&&gr(pl.resolve())!=pt||Fs&&gr(new Fs)!=Kt||bn&&gr(new bn)!=nt)&&(gr=function(r){var h=Jn(r),y=h==dt?r.constructor:o,D=y?Al(y):"";if(D)switch(D){case oh:return qt;case Vh:return W;case Wh:return pt;case jh:return Kt;case Ou:return nt}return h});function $g(r,h,y){for(var D=-1,Y=y.length;++D<Y;){var ut=y[D],yt=ut.size;switch(ut.type){case"drop":r+=yt;break;case"dropRight":h-=yt;break;case"take":h=Wn(h,r+yt);break;case"takeRight":r=yn(r,h-yt);break}}return{start:r,end:h}}function Kg(r){var h=r.match($a);return h?h[1].split(uo):[]}function Kd(r,h,y){h=Je(h,r);for(var D=-1,Y=h.length,ut=!1;++D<Y;){var yt=fs(h[D]);if(!(ut=r!=null&&y(r,yt)))break;r=r[yt]}return ut||++D!=Y?ut:(Y=r==null?0:r.length,!!Y&&Ku(Y)&&Xs(yt,Y)&&(vi(r)||Pl(r)))}function Qg(r){var h=r.length,y=new r.constructor(h);return h&&typeof r[0]=="string"&&Mi.call(r,"index")&&(y.index=r.index,y.input=r.input),y}function Qd(r){return typeof r.constructor=="function"&&!ru(r)?as(xo(r)):{}}function t0(r,h,y){var D=r.constructor;switch(h){case Ut:return Ia(r);case Oe:case Ge:return new D(+r);case qt:return Qh(r,y);case Xt:case Ne:case Ie:case me:case we:case yi:case Ei:case ni:case bi:return bl(r,y);case W:return new D;case Jt:case z:return new D(r);case ie:return Da(r);case Kt:return new D;case Q:return Vs(r)}}function e0(r,h){var y=h.length;if(!y)return r;var D=y-1;return h[D]=(y>1?"& ":"")+h[D],h=h.join(y>2?", ":" "),r.replace(sa,`{
|
|
2617
|
+
*/hu.exports,function(x,a){(function(){var o,c="4.17.21",f=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",S=500,b="__lodash_placeholder__",O=1,k=2,R=4,F=1,E=2,P=1,w=2,T=4,I=8,C=16,U=32,N=64,X=128,J=256,Z=512,ct=30,Rt="...",tt=800,_t=16,G=1,Pt=2,Et=3,At=1/0,ce=9007199254740991,re=17976931348623157e292,Ft=0/0,It=4294967295,Bt=It-1,Pe=It>>>1,pe=[["ary",X],["bind",P],["bindKey",w],["curry",I],["curryRight",C],["flip",Z],["partial",U],["partialRight",N],["rearg",J]],Wt="[object Arguments]",$e="[object Array]",Si="[object AsyncFunction]",Oe="[object Boolean]",Ge="[object Date]",pi="[object DOMException]",Di="[object Error]",gn="[object Function]",Qi="[object GeneratorFunction]",W="[object Map]",Jt="[object Number]",jt="[object Null]",dt="[object Object]",pt="[object Promise]",Dt="[object Proxy]",ie="[object RegExp]",Kt="[object Set]",z="[object String]",Q="[object Symbol]",st="[object Undefined]",nt="[object WeakMap]",vt="[object WeakSet]",Ut="[object ArrayBuffer]",qt="[object DataView]",Xt="[object Float32Array]",Ne="[object Float64Array]",Ie="[object Int8Array]",me="[object Int16Array]",we="[object Int32Array]",yi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",ni="[object Uint16Array]",bi="[object Uint32Array]",Yr=/\b__p \+= '';/g,ar=/\b(__p \+=) '' \+/g,sn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Po=/&(?:amp|lt|gt|quot|#39);/g,zi=/[&<>"']/g,Zo=RegExp(Po.source),lo=RegExp(zi.source),Hl=/<%-([\s\S]+?)%>/g,Sn=/<%([\s\S]+?)%>/g,ra=/<%=([\s\S]+?)%>/g,ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yr=/^\w*$/,oa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ja=/[\\^$.*+?()[\]{}|]/g,Vl=RegExp(Ja.source),ho=/^\s+/,Ih=/\s/,sa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$a=/\{\n\/\* \[wrapped with (.+)\] \*/,uo=/,? & /,Wl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,aa=/[()=,{}\[\]\/\s]/,la=/\\(\\)?/g,co=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jl=/\w*$/,Dh=/^[-+]0x[0-9a-f]+$/i,zh=/^0b[01]+$/i,_s=/^\[object .+?Constructor\]$/,xs=/^0o[0-7]+$/i,Xl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zr=/($^)/,V=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",lt="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",j="\\u20d0-\\u20ff",St=lt+at+j,ht="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",Gt="\\xac\\xb1\\xd7\\xf7",zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tt="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",se="A-Z\\xc0-\\xd6\\xd8-\\xde",te="\\ufe0e\\ufe0f",ye=Gt+zt+Tt+he,ue="['’]",je="["+et+"]",He="["+ye+"]",ci="["+St+"]",Be="\\d+",_e="["+ht+"]",Fe="["+Ot+"]",fe="[^"+et+ye+Be+ht+Ot+se+"]",mi="\\ud83c[\\udffb-\\udfff]",Le="(?:"+ci+"|"+mi+")",xe="[^"+et+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",En="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+se+"]",ki="\\u200d",Bi="(?:"+Fe+"|"+fe+")",Hi="(?:"+qn+"|"+fe+")",nn="(?:"+ue+"(?:d|ll|m|re|s|t|ve))?",rn="(?:"+ue+"(?:D|LL|M|RE|S|T|VE))?",cn=Le+"?",fn="["+te+"]?",Gi="(?:"+ki+"(?:"+[xe,Re,En].join("|")+")"+fn+cn+")*",Ni="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ji="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=fn+cn+Gi,fo="(?:"+[_e,Re,En].join("|")+")"+gi,Un="(?:"+[xe+ci+"?",ci,Re,En,je].join("|")+")",ha=RegExp(ue,"g"),kh=RegExp(ci,"g"),Jo=RegExp(mi+"(?="+mi+")|"+Un+gi,"g"),Ka=RegExp([qn+"?"+Fe+"+"+nn+"(?="+[He,qn,"$"].join("|")+")",Hi+"+"+rn+"(?="+[He,qn+Bi,"$"].join("|")+")",qn+"?"+Bi+"+"+nn,qn+"+"+rn,ji,Ni,Be,fo].join("|"),"g"),Qa=RegExp("["+ki+et+St+te+"]"),ua=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ca=-1,Xi={};Xi[Xt]=Xi[Ne]=Xi[Ie]=Xi[me]=Xi[we]=Xi[yi]=Xi[Ei]=Xi[ni]=Xi[bi]=!0,Xi[Wt]=Xi[$e]=Xi[Ut]=Xi[Oe]=Xi[qt]=Xi[Ge]=Xi[Di]=Xi[gn]=Xi[W]=Xi[Jt]=Xi[dt]=Xi[ie]=Xi[Kt]=Xi[z]=Xi[nt]=!1;var xi={};xi[Wt]=xi[$e]=xi[Ut]=xi[qt]=xi[Oe]=xi[Ge]=xi[Xt]=xi[Ne]=xi[Ie]=xi[me]=xi[we]=xi[W]=xi[Jt]=xi[dt]=xi[ie]=xi[Kt]=xi[z]=xi[Q]=xi[yi]=xi[Ei]=xi[ni]=xi[bi]=!0,xi[Di]=xi[gn]=xi[nt]=!1;var el={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fa={"&":"&","<":"<",">":">",'"':""","'":"'"},il={"&":"&","<":"<",">":">",""":'"',"'":"'"},ws={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nl=parseFloat,da=parseInt,pa=typeof br=="object"&&br&&br.Object===Object&&br,ma=typeof self=="object"&&self&&self.Object===Object&&self,vn=pa||ma||Function("return this")(),$o=a&&!a.nodeType&&a,Jr=$o&&!0&&x&&!x.nodeType&&x,Ms=Jr&&Jr.exports===$o,Ts=Ms&&pa.process,Gn=function(){try{var Lt=Jr&&Jr.require&&Jr.require("util").types;return Lt||Ts&&Ts.binding&&Ts.binding("util")}catch{}}(),Bh=Gn&&Gn.isArrayBuffer,ga=Gn&&Gn.isDate,va=Gn&&Gn.isMap,Eu=Gn&&Gn.isRegExp,bu=Gn&&Gn.isSet,Yl=Gn&&Gn.isTypedArray;function _r(Lt,Qt,Zt){switch(Zt.length){case 0:return Lt.call(Qt);case 1:return Lt.call(Qt,Zt[0]);case 2:return Lt.call(Qt,Zt[0],Zt[1]);case 3:return Lt.call(Qt,Zt[0],Zt[1],Zt[2])}return Lt.apply(Qt,Zt)}function Zl(Lt,Qt,Zt,Ue){for(var ai=-1,Fi=Lt==null?0:Lt.length;++ai<Fi;){var dn=Lt[ai];Qt(Ue,dn,Zt(dn),Lt)}return Ue}function Ji(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function Ss(Lt,Qt){for(var Zt=Lt==null?0:Lt.length;Zt--&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function Nh(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(!Qt(Lt[Zt],Zt,Lt))return!1;return!0}function Or(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=0,Fi=[];++Zt<Ue;){var dn=Lt[Zt];Qt(dn,Zt,Lt)&&(Fi[ai++]=dn)}return Fi}function rl(Lt,Qt){var Zt=Lt==null?0:Lt.length;return!!Zt&&Ir(Lt,Qt,0)>-1}function Jl(Lt,Qt,Zt){for(var Ue=-1,ai=Lt==null?0:Lt.length;++Ue<ai;)if(Zt(Qt,Lt[Ue]))return!0;return!1}function Yi(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=Array(Ue);++Zt<Ue;)ai[Zt]=Qt(Lt[Zt],Zt,Lt);return ai}function po(Lt,Qt){for(var Zt=-1,Ue=Qt.length,ai=Lt.length;++Zt<Ue;)Lt[ai+Zt]=Qt[Zt];return Lt}function $l(Lt,Qt,Zt,Ue){var ai=-1,Fi=Lt==null?0:Lt.length;for(Ue&&Fi&&(Zt=Lt[++ai]);++ai<Fi;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Cu(Lt,Qt,Zt,Ue){var ai=Lt==null?0:Lt.length;for(Ue&&ai&&(Zt=Lt[--ai]);ai--;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Lo(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(Qt(Lt[Zt],Zt,Lt))return!0;return!1}var mo=Qo("length");function Au(Lt){return Lt.split("")}function ol(Lt){return Lt.match(Wl)||[]}function Es(Lt,Qt,Zt){var Ue;return Zt(Lt,function(ai,Fi,dn){if(Qt(ai,Fi,dn))return Ue=Fi,!1}),Ue}function Ko(Lt,Qt,Zt,Ue){for(var ai=Lt.length,Fi=Zt+(Ue?1:-1);Ue?Fi--:++Fi<ai;)if(Qt(Lt[Fi],Fi,Lt))return Fi;return-1}function Ir(Lt,Qt,Zt){return Qt===Qt?Kl(Lt,Qt,Zt):Ko(Lt,bs,Zt)}function sl(Lt,Qt,Zt,Ue){for(var ai=Zt-1,Fi=Lt.length;++ai<Fi;)if(Ue(Lt[ai],Qt))return ai;return-1}function bs(Lt){return Lt!==Lt}function ya(Lt,Qt){var Zt=Lt==null?0:Lt.length;return Zt?es(Lt,Qt)/Zt:Ft}function Qo(Lt){return function(Qt){return Qt==null?o:Qt[Lt]}}function Ro(Lt){return function(Qt){return Lt==null?o:Lt[Qt]}}function ts(Lt,Qt,Zt,Ue,ai){return ai(Lt,function(Fi,dn,Ee){Zt=Ue?(Ue=!1,Fi):Qt(Zt,Fi,dn,Ee)}),Zt}function Pu(Lt,Qt){var Zt=Lt.length;for(Lt.sort(Qt);Zt--;)Lt[Zt]=Lt[Zt].value;return Lt}function es(Lt,Qt){for(var Zt,Ue=-1,ai=Lt.length;++Ue<ai;){var Fi=Qt(Lt[Ue]);Fi!==o&&(Zt=Zt===o?Fi:Zt+Fi)}return Zt}function Oo(Lt,Qt){for(var Zt=-1,Ue=Array(Lt);++Zt<Lt;)Ue[Zt]=Qt(Zt);return Ue}function Io(Lt,Qt){return Yi(Qt,function(Zt){return[Zt,Lt[Zt]]})}function _a(Lt){return Lt&&Lt.slice(0,xa(Lt)+1).replace(ho,"")}function Hn(Lt){return function(Qt){return Lt(Qt)}}function Cs(Lt,Qt){return Yi(Qt,function(Zt){return Lt[Zt]})}function go(Lt,Qt){return Lt.has(Qt)}function is(Lt,Qt){for(var Zt=-1,Ue=Lt.length;++Zt<Ue&&Ir(Qt,Lt[Zt],0)>-1;);return Zt}function As(Lt,Qt){for(var Zt=Lt.length;Zt--&&Ir(Qt,Lt[Zt],0)>-1;);return Zt}function vo(Lt,Qt){for(var Zt=Lt.length,Ue=0;Zt--;)Lt[Zt]===Qt&&++Ue;return Ue}var Ps=Ro(el),$r=Ro(fa);function Ls(Lt){return"\\"+ws[Lt]}function Rs(Lt,Qt){return Lt==null?o:Lt[Qt]}function Dr(Lt){return Qa.test(Lt)}function Os(Lt){return ua.test(Lt)}function Is(Lt){for(var Qt,Zt=[];!(Qt=Lt.next()).done;)Zt.push(Qt.value);return Zt}function Kn(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue,ai){Zt[++Qt]=[ai,Ue]}),Zt}function al(Lt,Qt){return function(Zt){return Lt(Qt(Zt))}}function zr(Lt,Qt){for(var Zt=-1,Ue=Lt.length,ai=0,Fi=[];++Zt<Ue;){var dn=Lt[Zt];(dn===Qt||dn===b)&&(Lt[Zt]=b,Fi[ai++]=Zt)}return Fi}function Ds(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=Ue}),Zt}function Vn(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=[Ue,Ue]}),Zt}function Kl(Lt,Qt,Zt){for(var Ue=Zt-1,ai=Lt.length;++Ue<ai;)if(Lt[Ue]===Qt)return Ue;return-1}function Ql(Lt,Qt,Zt){for(var Ue=Zt+1;Ue--;)if(Lt[Ue]===Qt)return Ue;return Ue}function Kr(Lt){return Dr(Lt)?wa(Lt):mo(Lt)}function lr(Lt){return Dr(Lt)?xr(Lt):Au(Lt)}function xa(Lt){for(var Qt=Lt.length;Qt--&&Ih.test(Lt.charAt(Qt)););return Qt}var th=Ro(il);function wa(Lt){for(var Qt=Jo.lastIndex=0;Jo.test(Lt);)++Qt;return Qt}function xr(Lt){return Lt.match(Jo)||[]}function Xc(Lt){return Lt.match(Ka)||[]}var qc=function Lt(Qt){Qt=Qt==null?vn:ns.defaults(vn.Object(),Qt,ns.pick(vn,tl));var Zt=Qt.Array,Ue=Qt.Date,ai=Qt.Error,Fi=Qt.Function,dn=Qt.Math,Ee=Qt.Object,Qn=Qt.RegExp,Ma=Qt.String,hr=Qt.TypeError,In=Zt.prototype,Lu=Fi.prototype,yo=Ee.prototype,rs=Qt["__core-js_shared__"],ur=Lu.toString,Mi=yo.hasOwnProperty,cr=0,kr=function(){var r=/[^.]+$/.exec(rs&&rs.keys&&rs.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),fr=yo.toString,_o=ur.call(Ee),Qr=vn._,Do=Qn("^"+ur.call(Mi).replace(Ja,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=Ms?Qt.Buffer:o,tr=Qt.Symbol,tn=Qt.Uint8Array,ll=dr?dr.allocUnsafe:o,xo=al(Ee.getPrototypeOf,Ee),hl=Ee.create,ul=yo.propertyIsEnumerable,zs=In.splice,Ta=tr?tr.isConcatSpreadable:o,os=tr?tr.iterator:o,wo=tr?tr.toStringTag:o,ks=function(){try{var r=Cl(Ee,"defineProperty");return r({},"",{}),r}catch{}}(),eh=Qt.clearTimeout!==vn.clearTimeout&&Qt.clearTimeout,ih=Ue&&Ue.now!==vn.Date.now&&Ue.now,Fh=Qt.setTimeout!==vn.setTimeout&&Qt.setTimeout,zo=dn.ceil,Bs=dn.floor,cl=Ee.getOwnPropertySymbols,Uh=dr?dr.isBuffer:o,nh=Qt.isFinite,Gh=In.join,Ru=al(Ee.keys,Ee),yn=dn.max,Wn=dn.min,fl=Ue.now,Hh=Qt.parseInt,rh=dn.random,Sa=In.reverse,dl=Cl(Qt,"DataView"),Ns=Cl(Qt,"Map"),pl=Cl(Qt,"Promise"),Fs=Cl(Qt,"Set"),bn=Cl(Qt,"WeakMap"),Ea=Cl(Ee,"create"),ml=bn&&new bn,ss={},oh=Al(dl),Vh=Al(Ns),Wh=Al(pl),jh=Al(Fs),Ou=Al(bn),gl=tr?tr.prototype:o,Us=gl?gl.valueOf:o,Xh=gl?gl.toString:o;function it(r){if(Rn(r)&&!vi(r)&&!(r instanceof _i)){if(r instanceof Yn)return r;if(Mi.call(r,"__wrapped__"))return lp(r)}return new Yn(r)}var as=function(){function r(){}return function(h){if(!Mn(h))return{};if(hl)return hl(h);r.prototype=h;var y=new r;return r.prototype=o,y}}();function ba(){}function Yn(r,h){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=o}it.templateSettings={escape:Hl,evaluate:Sn,interpolate:ra,variable:"",imports:{_:it}},it.prototype=ba.prototype,it.prototype.constructor=it,Yn.prototype=as(ba.prototype),Yn.prototype.constructor=Yn;function _i(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function Ca(){var r=new _i(this.__wrapped__);return r.__actions__=ir(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=ir(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=ir(this.__views__),r}function Iu(){if(this.__filtered__){var r=new _i(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Aa(){var r=this.__wrapped__.value(),h=this.__dir__,y=vi(r),D=h<0,Y=y?r.length:0,ut=$g(0,Y,this.__views__),yt=ut.start,bt=ut.end,Nt=bt-yt,oe=D?bt:yt-1,le=this.__iteratees__,de=le.length,ke=0,Ze=Wn(Nt,this.__takeCount__);if(!y||!D&&Y==Nt&&Ze==Nt)return ri(r,this.__actions__);var hi=[];t:for(;Nt--&&ke<Ze;){oe+=h;for(var Ti=-1,ui=r[oe];++Ti<de;){var Ri=le[Ti],Ui=Ri.iteratee,io=Ri.type,Er=Ui(ui);if(io==Pt)ui=Er;else if(!Er){if(io==G)continue t;break t}}hi[ke++]=ui}return hi}_i.prototype=as(ba.prototype),_i.prototype.constructor=_i;function Br(r){var h=-1,y=r==null?0:r.length;for(this.clear();++h<y;){var D=r[h];this.set(D[0],D[1])}}function Pa(){this.__data__=Ea?Ea(null):{},this.size=0}function La(r){var h=this.has(r)&&delete this.__data__[r];return this.size-=h?1:0,h}function vl(r){var h=this.__data__;if(Ea){var y=h[r];return y===v?o:y}return Mi.call(h,r)?h[r]:o}function sh(r){var h=this.__data__;return Ea?h[r]!==o:Mi.call(h,r)}function yl(r,h){var y=this.__data__;return this.size+=this.has(r)?0:1,y[r]=Ea&&h===o?v:h,this}Br.prototype.clear=Pa,Br.prototype.delete=La,Br.prototype.get=vl,Br.prototype.has=sh,Br.prototype.set=yl;function pr(r){var h=-1,y=r==null?0:r.length;for(this.clear();++h<y;){var D=r[h];this.set(D[0],D[1])}}function _l(){this.__data__=[],this.size=0}function ko(r){var h=this.__data__,y=Ml(h,r);if(y<0)return!1;var D=h.length-1;return y==D?h.pop():zs.call(h,y,1),--this.size,!0}function xl(r){var h=this.__data__,y=Ml(h,r);return y<0?o:h[y][1]}function wl(r){return Ml(this.__data__,r)>-1}function Bo(r,h){var y=this.__data__,D=Ml(y,r);return D<0?(++this.size,y.push([r,h])):y[D][1]=h,this}pr.prototype.clear=_l,pr.prototype.delete=ko,pr.prototype.get=xl,pr.prototype.has=wl,pr.prototype.set=Bo;function wr(r){var h=-1,y=r==null?0:r.length;for(this.clear();++h<y;){var D=r[h];this.set(D[0],D[1])}}function Du(){this.size=0,this.__data__={hash:new Br,map:new(Ns||pr),string:new Br}}function zu(r){var h=ju(this,r).delete(r);return this.size-=h?1:0,h}function qh(r){return ju(this,r).get(r)}function di(r){return ju(this,r).has(r)}function ls(r,h){var y=ju(this,r),D=y.size;return y.set(r,h),this.size+=y.size==D?0:1,this}wr.prototype.clear=Du,wr.prototype.delete=zu,wr.prototype.get=qh,wr.prototype.has=di,wr.prototype.set=ls;function Gs(r){var h=-1,y=r==null?0:r.length;for(this.__data__=new wr;++h<y;)this.add(r[h])}function Ci(r){return this.__data__.set(r,v),this}function Nn(r){return this.__data__.has(r)}Gs.prototype.add=Gs.prototype.push=Ci,Gs.prototype.has=Nn;function to(r){var h=this.__data__=new pr(r);this.size=h.size}function qe(){this.__data__=new pr,this.size=0}function Mo(r){var h=this.__data__,y=h.delete(r);return this.size=h.size,y}function Yc(r){return this.__data__.get(r)}function Zc(r){return this.__data__.has(r)}function Jc(r,h){var y=this.__data__;if(y instanceof pr){var D=y.__data__;if(!Ns||D.length<f-1)return D.push([r,h]),this.size=++y.size,this;y=this.__data__=new wr(D)}return y.set(r,h),this.size=y.size,this}to.prototype.clear=qe,to.prototype.delete=Mo,to.prototype.get=Yc,to.prototype.has=Zc,to.prototype.set=Jc;function ku(r,h){var y=vi(r),D=!y&&Pl(r),Y=!y&&!D&&Ba(r),ut=!y&&!D&&!Y&&mh(r),yt=y||D||Y||ut,bt=yt?Oo(r.length,Ma):[],Nt=bt.length;for(var oe in r)(h||Mi.call(r,oe))&&!(yt&&(oe=="length"||Y&&(oe=="offset"||oe=="parent")||ut&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||Xs(oe,Nt)))&&bt.push(oe);return bt}function Yh(r){var h=r.length;return h?r[ge(0,h-1)]:o}function $c(r,h){return Xu(ir(r),hs(h,0,r.length))}function Bu(r){return Xu(ir(r))}function ah(r,h,y){(y!==o&&!Go(r[h],y)||y===o&&!(h in r))&&No(r,h,y)}function Ra(r,h,y){var D=r[h];(!(Mi.call(r,h)&&Go(D,y))||y===o&&!(h in r))&&No(r,h,y)}function Ml(r,h){for(var y=r.length;y--;)if(Go(r[y][0],h))return y;return-1}function Nu(r,h,y,D){return _n(r,function(Y,ut,yt){h(D,Y,y(Y),yt)}),D}function Zh(r,h){return r&&Dn(h,$n(h),r)}function Jh(r,h){return r&&Dn(h,Gr(h),r)}function No(r,h,y){h=="__proto__"&&ks?ks(r,h,{configurable:!0,enumerable:!0,value:y,writable:!0}):r[h]=y}function $h(r,h){for(var y=-1,D=h.length,Y=Zt(D),ut=r==null;++y<D;)Y[y]=ut?o:pf(r,h[y]);return Y}function hs(r,h,y){return r===r&&(y!==o&&(r=r<=y?r:y),h!==o&&(r=r>=h?r:h)),r}function Mr(r,h,y,D,Y,ut){var yt,bt=h&O,Nt=h&k,oe=h&R;if(y&&(yt=Y?y(r,D,Y,ut):y(r)),yt!==o)return yt;if(!Mn(r))return r;var le=vi(r);if(le){if(yt=Qg(r),!bt)return ir(r,yt)}else{var de=gr(r),ke=de==gn||de==Qi;if(Ba(r))return Fo(r,bt);if(de==dt||de==Wt||ke&&!Y){if(yt=Nt||ke?{}:Qd(r),!bt)return Nt?Hu(r,Jh(yt,r)):Eo(r,Zh(yt,r))}else{if(!xi[de])return Y?r:{};yt=t0(r,de,bt)}}ut||(ut=new to);var Ze=ut.get(r);if(Ze)return Ze;ut.set(r,yt),Ap(r)?r.forEach(function(ui){yt.add(Mr(ui,h,y,ui,r,ut))}):bp(r)&&r.forEach(function(ui,Ri){yt.set(Ri,Mr(ui,h,y,Ri,r,ut))});var hi=oe?Nt?Qc:Kc:Nt?Gr:$n,Ti=le?o:hi(r);return Ji(Ti||r,function(ui,Ri){Ti&&(Ri=ui,ui=r[Ri]),Ra(yt,Ri,Mr(ui,h,y,Ri,r,ut))}),yt}function Oa(r){var h=$n(r);return function(y){return Fu(y,r,h)}}function Fu(r,h,y){var D=y.length;if(r==null)return!D;for(r=Ee(r);D--;){var Y=y[D],ut=h[Y],yt=r[Y];if(yt===o&&!(Y in r)||!ut(yt))return!1}return!0}function To(r,h,y){if(typeof r!="function")throw new hr(m);return ou(function(){r.apply(o,y)},h)}function Tl(r,h,y,D){var Y=-1,ut=rl,yt=!0,bt=r.length,Nt=[],oe=h.length;if(!bt)return Nt;y&&(h=Yi(h,Hn(y))),D?(ut=Jl,yt=!1):h.length>=f&&(ut=go,yt=!1,h=new Gs(h));t:for(;++Y<bt;){var le=r[Y],de=y==null?le:y(le);if(le=D||le!==0?le:0,yt&&de===de){for(var ke=oe;ke--;)if(h[ke]===de)continue t;Nt.push(le)}else ut(h,de,D)||Nt.push(le)}return Nt}var _n=ft(Fr),Uu=ft(hh,!0);function Zn(r,h){var y=!0;return _n(r,function(D,Y,ut){return y=!!h(D,Y,ut),y}),y}function So(r,h,y){for(var D=-1,Y=r.length;++D<Y;){var ut=r[D],yt=h(ut);if(yt!=null&&(bt===o?yt===yt&&!eo(yt):y(yt,bt)))var bt=yt,Nt=ut}return Nt}function er(r,h,y,D){var Y=r.length;for(y=wi(y),y<0&&(y=-y>Y?0:Y+y),D=D===o||D>Y?Y:wi(D),D<0&&(D+=Y),D=y>D?0:Lp(D);y<D;)r[y++]=h;return r}function Nr(r,h){var y=[];return _n(r,function(D,Y,ut){h(D,Y,ut)&&y.push(D)}),y}function Cn(r,h,y,D,Y){var ut=-1,yt=r.length;for(y||(y=i0),Y||(Y=[]);++ut<yt;){var bt=r[ut];h>0&&y(bt)?h>1?Cn(bt,h-1,y,D,Y):po(Y,bt):D||(Y[Y.length]=bt)}return Y}var Sl=Mt(),lh=Mt(!0);function Fr(r,h){return r&&Sl(r,h,$n)}function hh(r,h){return r&&lh(r,h,$n)}function Hs(r,h){return Or(h,function(y){return qs(r[y])})}function us(r,h){h=Je(h,r);for(var y=0,D=h.length;r!=null&&y<D;)r=r[fs(h[y++])];return y&&y==D?r:o}function Gu(r,h,y){var D=h(r);return vi(r)?D:po(D,y(r))}function Jn(r){return r==null?r===o?st:jt:wo&&wo in Ee(r)?Jg(r):h0(r)}function uh(r,h){return r>h}function ch(r,h){return r!=null&&Mi.call(r,h)}function Kh(r,h){return r!=null&&h in Ee(r)}function fh(r,h,y){return r>=Wn(h,y)&&r<yn(h,y)}function El(r,h,y){for(var D=y?Jl:rl,Y=r[0].length,ut=r.length,yt=ut,bt=Zt(ut),Nt=1/0,oe=[];yt--;){var le=r[yt];yt&&h&&(le=Yi(le,Hn(h))),Nt=Wn(le.length,Nt),bt[yt]=!y&&(h||Y>=120&&le.length>=120)?new Gs(yt&&le):o}le=r[0];var de=-1,ke=bt[0];t:for(;++de<Y&&oe.length<Nt;){var Ze=le[de],hi=h?h(Ze):Ze;if(Ze=y||Ze!==0?Ze:0,!(ke?go(ke,hi):D(oe,hi,y))){for(yt=ut;--yt;){var Ti=bt[yt];if(!(Ti?go(Ti,hi):D(r[yt],hi,y)))continue t}ke&&ke.push(hi),oe.push(Ze)}}return oe}function t(r,h,y,D){return Fr(r,function(Y,ut,yt){h(D,y(Y),ut,yt)}),D}function e(r,h,y){h=Je(h,r),r=np(r,h);var D=r==null?r:r[fs(Co(h))];return D==null?o:_r(D,r,y)}function i(r){return Rn(r)&&Jn(r)==Wt}function n(r){return Rn(r)&&Jn(r)==Ut}function s(r){return Rn(r)&&Jn(r)==Ge}function l(r,h,y,D,Y){return r===h?!0:r==null||h==null||!Rn(r)&&!Rn(h)?r!==r&&h!==h:d(r,h,y,D,l,Y)}function d(r,h,y,D,Y,ut){var yt=vi(r),bt=vi(h),Nt=yt?$e:gr(r),oe=bt?$e:gr(h);Nt=Nt==Wt?dt:Nt,oe=oe==Wt?dt:oe;var le=Nt==dt,de=oe==dt,ke=Nt==oe;if(ke&&Ba(r)){if(!Ba(h))return!1;yt=!0,le=!1}if(ke&&!le)return ut||(ut=new to),yt||mh(r)?Jd(r,h,y,D,Y,ut):Yg(r,h,Nt,y,D,Y,ut);if(!(y&F)){var Ze=le&&Mi.call(r,"__wrapped__"),hi=de&&Mi.call(h,"__wrapped__");if(Ze||hi){var Ti=Ze?r.value():r,ui=hi?h.value():h;return ut||(ut=new to),Y(Ti,ui,y,D,ut)}}return ke?(ut||(ut=new to),Zg(r,h,y,D,Y,ut)):!1}function p(r){return Rn(r)&&gr(r)==W}function _(r,h,y,D){var Y=y.length,ut=Y,yt=!D;if(r==null)return!ut;for(r=Ee(r);Y--;){var bt=y[Y];if(yt&&bt[2]?bt[1]!==r[bt[0]]:!(bt[0]in r))return!1}for(;++Y<ut;){bt=y[Y];var Nt=bt[0],oe=r[Nt],le=bt[1];if(yt&&bt[2]){if(oe===o&&!(Nt in r))return!1}else{var de=new to;if(D)var ke=D(oe,le,Nt,r,h,de);if(!(ke===o?l(le,oe,F|E,D,de):ke))return!1}}return!0}function M(r){if(!Mn(r)||r0(r))return!1;var h=qs(r)?Do:_s;return h.test(Al(r))}function A(r){return Rn(r)&&Jn(r)==ie}function L(r){return Rn(r)&&gr(r)==Kt}function B(r){return Rn(r)&&Ku(r.length)&&!!Xi[Jn(r)]}function H(r){return typeof r=="function"?r:r==null?Hr:typeof r=="object"?vi(r)?Ct(r[0],r[1]):gt(r):Gp(r)}function q(r){if(!ru(r))return Ru(r);var h=[];for(var y in Ee(r))Mi.call(r,y)&&y!="constructor"&&h.push(y);return h}function $(r){if(!Mn(r))return l0(r);var h=ru(r),y=[];for(var D in r)D=="constructor"&&(h||!Mi.call(r,D))||y.push(D);return y}function rt(r,h){return r<h}function xt(r,h){var y=-1,D=Ur(r)?Zt(r.length):[];return _n(r,function(Y,ut,yt){D[++y]=h(Y,ut,yt)}),D}function gt(r){var h=ef(r);return h.length==1&&h[0][2]?ep(h[0][0],h[0][1]):function(y){return y===r||_(y,r,h)}}function Ct(r,h){return rf(r)&&tp(h)?ep(fs(r),h):function(y){var D=pf(y,r);return D===o&&D===h?mf(y,r):l(h,D,F|E)}}function wt(r,h,y,D,Y){r!==h&&Sl(h,function(ut,yt){if(Y||(Y=new to),Mn(ut))Vt(r,h,yt,y,wt,D,Y);else{var bt=D?D(sf(r,yt),ut,yt+"",r,h,Y):o;bt===o&&(bt=ut),ah(r,yt,bt)}},Gr)}function Vt(r,h,y,D,Y,ut,yt){var bt=sf(r,y),Nt=sf(h,y),oe=yt.get(Nt);if(oe){ah(r,y,oe);return}var le=ut?ut(bt,Nt,y+"",r,h,yt):o,de=le===o;if(de){var ke=vi(Nt),Ze=!ke&&Ba(Nt),hi=!ke&&!Ze&&mh(Nt);le=Nt,ke||Ze||hi?vi(bt)?le=bt:zn(bt)?le=ir(bt):Ze?(de=!1,le=Fo(Nt,!0)):hi?(de=!1,le=bl(Nt,!0)):le=[]:su(Nt)||Pl(Nt)?(le=bt,Pl(bt)?le=Rp(bt):(!Mn(bt)||qs(bt))&&(le=Qd(Nt))):de=!1}de&&(yt.set(Nt,le),Y(le,Nt,D,ut,yt),yt.delete(Nt)),ah(r,y,le)}function K(r,h){var y=r.length;if(y)return h+=h<0?y:0,Xs(h,y)?r[h]:o}function ot(r,h,y){h.length?h=Yi(h,function(ut){return vi(ut)?function(yt){return us(yt,ut.length===1?ut[0]:ut)}:ut}):h=[Hr];var D=-1;h=Yi(h,Hn(si()));var Y=xt(r,function(ut,yt,bt){var Nt=Yi(h,function(oe){return oe(ut)});return{criteria:Nt,index:++D,value:ut}});return Pu(Y,function(ut,yt){return cs(ut,yt,y)})}function kt(r,h){return ee(r,h,function(y,D){return mf(r,D)})}function ee(r,h,y){for(var D=-1,Y=h.length,ut={};++D<Y;){var yt=h[D],bt=us(r,yt);y(bt,yt)&&fi(ut,Je(yt,r),bt)}return ut}function $t(r){return function(h){return us(h,r)}}function Yt(r,h,y,D){var Y=D?sl:Ir,ut=-1,yt=h.length,bt=r;for(r===h&&(h=ir(h)),y&&(bt=Yi(r,Hn(y)));++ut<yt;)for(var Nt=0,oe=h[ut],le=y?y(oe):oe;(Nt=Y(bt,le,Nt,D))>-1;)bt!==r&&zs.call(bt,Nt,1),zs.call(r,Nt,1);return r}function Me(r,h){for(var y=r?h.length:0,D=y-1;y--;){var Y=h[y];if(y==D||Y!==ut){var ut=Y;Xs(Y)?zs.call(r,Y,1):Wi(r,Y)}}return r}function ge(r,h){return r+Bs(rh()*(h-r+1))}function De(r,h,y,D){for(var Y=-1,ut=yn(zo((h-r)/(y||1)),0),yt=Zt(ut);ut--;)yt[D?ut:++Y]=r,r+=y;return yt}function be(r,h){var y="";if(!r||h<1||h>ce)return y;do h%2&&(y+=r),h=Bs(h/2),h&&(r+=r);while(h);return y}function ae(r,h){return af(ip(r,h,Hr),r+"")}function We(r){return Yh(gh(r))}function Qe(r,h){var y=gh(r);return Xu(y,hs(h,0,y.length))}function fi(r,h,y,D){if(!Mn(r))return r;h=Je(h,r);for(var Y=-1,ut=h.length,yt=ut-1,bt=r;bt!=null&&++Y<ut;){var Nt=fs(h[Y]),oe=y;if(Nt==="__proto__"||Nt==="constructor"||Nt==="prototype")return r;if(Y!=yt){var le=bt[Nt];oe=D?D(le,Nt,bt):o,oe===o&&(oe=Mn(le)?le:Xs(h[Y+1])?[]:{})}Ra(bt,Nt,oe),bt=bt[Nt]}return r}var An=ml?function(r,h){return ml.set(r,h),r}:Hr,xn=ks?function(r,h){return ks(r,"toString",{configurable:!0,enumerable:!1,value:vf(h),writable:!0})}:Hr;function qi(r){return Xu(gh(r))}function Vi(r,h,y){var D=-1,Y=r.length;h<0&&(h=-h>Y?0:Y+h),y=y>Y?Y:y,y<0&&(y+=Y),Y=h>y?0:y-h>>>0,h>>>=0;for(var ut=Zt(Y);++D<Y;)ut[D]=r[D+h];return ut}function on(r,h){var y;return _n(r,function(D,Y,ut){return y=h(D,Y,ut),!y}),!!y}function Pn(r,h,y){var D=0,Y=r==null?D:r.length;if(typeof h=="number"&&h===h&&Y<=Pe){for(;D<Y;){var ut=D+Y>>>1,yt=r[ut];yt!==null&&!eo(yt)&&(y?yt<=h:yt<h)?D=ut+1:Y=ut}return Y}return Ce(r,h,Hr,y)}function Ce(r,h,y,D){var Y=0,ut=r==null?0:r.length;if(ut===0)return 0;h=y(h);for(var yt=h!==h,bt=h===null,Nt=eo(h),oe=h===o;Y<ut;){var le=Bs((Y+ut)/2),de=y(r[le]),ke=de!==o,Ze=de===null,hi=de===de,Ti=eo(de);if(yt)var ui=D||hi;else oe?ui=hi&&(D||ke):bt?ui=hi&&ke&&(D||!Ze):Nt?ui=hi&&ke&&!Ze&&(D||!Ti):Ze||Ti?ui=!1:ui=D?de<=h:de<h;ui?Y=le+1:ut=le}return Wn(ut,Bt)}function ti(r,h){for(var y=-1,D=r.length,Y=0,ut=[];++y<D;){var yt=r[y],bt=h?h(yt):yt;if(!y||!Go(bt,Nt)){var Nt=bt;ut[Y++]=yt===0?0:yt}}return ut}function Ht(r){return typeof r=="number"?r:eo(r)?Ft:+r}function Ye(r){if(typeof r=="string")return r;if(vi(r))return Yi(r,Ye)+"";if(eo(r))return Xh?Xh.call(r):"";var h=r+"";return h=="0"&&1/r==-At?"-0":h}function ei(r,h,y){var D=-1,Y=rl,ut=r.length,yt=!0,bt=[],Nt=bt;if(y)yt=!1,Y=Jl;else if(ut>=f){var oe=h?null:ka(r);if(oe)return Ds(oe);yt=!1,Y=go,Nt=new Gs}else Nt=h?[]:bt;t:for(;++D<ut;){var le=r[D],de=h?h(le):le;if(le=y||le!==0?le:0,yt&&de===de){for(var ke=Nt.length;ke--;)if(Nt[ke]===de)continue t;h&&Nt.push(de),bt.push(le)}else Y(Nt,de,y)||(Nt!==bt&&Nt.push(de),bt.push(le))}return bt}function Wi(r,h){return h=Je(h,r),r=np(r,h),r==null||delete r[fs(Co(h))]}function Ae(r,h,y,D){return fi(r,h,y(us(r,h)),D)}function Xe(r,h,y,D){for(var Y=r.length,ut=D?Y:-1;(D?ut--:++ut<Y)&&h(r[ut],ut,r););return y?Vi(r,D?0:ut,D?ut+1:Y):Vi(r,D?ut+1:0,D?Y:ut)}function ri(r,h){var y=r;return y instanceof _i&&(y=y.value()),$l(h,function(D,Y){return Y.func.apply(Y.thisArg,po([D],Y.args))},y)}function Li(r,h,y){var D=r.length;if(D<2)return D?ei(r[0]):[];for(var Y=-1,ut=Zt(D);++Y<D;)for(var yt=r[Y],bt=-1;++bt<D;)bt!=Y&&(ut[Y]=Tl(ut[Y]||yt,r[bt],h,y));return ei(Cn(ut,1),h,y)}function Ai(r,h,y){for(var D=-1,Y=r.length,ut=h.length,yt={};++D<Y;){var bt=D<ut?h[D]:o;y(yt,r[D],bt)}return yt}function ne(r){return zn(r)?r:[]}function ii(r){return typeof r=="function"?r:Hr}function Je(r,h){return vi(r)?r:rf(r,h)?[r]:ap(Zi(r))}var li=ae;function wn(r,h,y){var D=r.length;return y=y===o?D:y,!h&&y>=D?r:Vi(r,h,y)}var Ln=eh||function(r){return vn.clearTimeout(r)};function Fo(r,h){if(h)return r.slice();var y=r.length,D=ll?ll(y):new r.constructor(y);return r.copy(D),D}function Ia(r){var h=new r.constructor(r.byteLength);return new tn(h).set(new tn(r)),h}function Qh(r,h){var y=h?Ia(r.buffer):r.buffer;return new r.constructor(y,r.byteOffset,r.byteLength)}function Da(r){var h=new r.constructor(r.source,jl.exec(r));return h.lastIndex=r.lastIndex,h}function Vs(r){return Us?Ee(Us.call(r)):{}}function bl(r,h){var y=h?Ia(r.buffer):r.buffer;return new r.constructor(y,r.byteOffset,r.length)}function Ws(r,h){if(r!==h){var y=r!==o,D=r===null,Y=r===r,ut=eo(r),yt=h!==o,bt=h===null,Nt=h===h,oe=eo(h);if(!bt&&!oe&&!ut&&r>h||ut&&yt&&Nt&&!bt&&!oe||D&&yt&&Nt||!y&&Nt||!Y)return 1;if(!D&&!ut&&!oe&&r<h||oe&&y&&Y&&!D&&!ut||bt&&y&&Y||!yt&&Y||!Nt)return-1}return 0}function cs(r,h,y){for(var D=-1,Y=r.criteria,ut=h.criteria,yt=Y.length,bt=y.length;++D<yt;){var Nt=Ws(Y[D],ut[D]);if(Nt){if(D>=bt)return Nt;var oe=y[D];return Nt*(oe=="desc"?-1:1)}}return r.index-h.index}function tu(r,h,y,D){for(var Y=-1,ut=r.length,yt=y.length,bt=-1,Nt=h.length,oe=yn(ut-yt,0),le=Zt(Nt+oe),de=!D;++bt<Nt;)le[bt]=h[bt];for(;++Y<yt;)(de||Y<ut)&&(le[y[Y]]=r[Y]);for(;oe--;)le[bt++]=r[Y++];return le}function eu(r,h,y,D){for(var Y=-1,ut=r.length,yt=-1,bt=y.length,Nt=-1,oe=h.length,le=yn(ut-bt,0),de=Zt(le+oe),ke=!D;++Y<le;)de[Y]=r[Y];for(var Ze=Y;++Nt<oe;)de[Ze+Nt]=h[Nt];for(;++yt<bt;)(ke||Y<ut)&&(de[Ze+y[yt]]=r[Y++]);return de}function ir(r,h){var y=-1,D=r.length;for(h||(h=Zt(D));++y<D;)h[y]=r[y];return h}function Dn(r,h,y,D){var Y=!y;y||(y={});for(var ut=-1,yt=h.length;++ut<yt;){var bt=h[ut],Nt=D?D(y[bt],r[bt],bt,y,r):o;Nt===o&&(Nt=r[bt]),Y?No(y,bt,Nt):Ra(y,bt,Nt)}return y}function Eo(r,h){return Dn(r,nf(r),h)}function Hu(r,h){return Dn(r,$d(r),h)}function za(r,h){return function(y,D){var Y=vi(y)?Zl:Nu,ut=h?h():{};return Y(y,r,si(D,2),ut)}}function Uo(r){return ae(function(h,y){var D=-1,Y=y.length,ut=Y>1?y[Y-1]:o,yt=Y>2?y[2]:o;for(ut=r.length>3&&typeof ut=="function"?(Y--,ut):o,yt&&Sr(y[0],y[1],yt)&&(ut=Y<3?o:ut,Y=1),h=Ee(h);++D<Y;){var bt=y[D];bt&&r(h,bt,D,ut)}return h})}function ft(r,h){return function(y,D){if(y==null)return y;if(!Ur(y))return r(y,D);for(var Y=y.length,ut=h?Y:-1,yt=Ee(y);(h?ut--:++ut<Y)&&D(yt[ut],ut,yt)!==!1;);return y}}function Mt(r){return function(h,y,D){for(var Y=-1,ut=Ee(h),yt=D(h),bt=yt.length;bt--;){var Nt=yt[r?bt:++Y];if(y(ut[Nt],Nt,ut)===!1)break}return h}}function mt(r,h,y){var D=h&P,Y=Ve(r);function ut(){var yt=this&&this!==vn&&this instanceof ut?Y:r;return yt.apply(D?y:this,arguments)}return ut}function Te(r){return function(h){h=Zi(h);var y=Dr(h)?lr(h):o,D=y?y[0]:h.charAt(0),Y=y?wn(y,1).join(""):h.slice(1);return D[r]()+Y}}function ze(r){return function(h){return $l(Fp(Np(h).replace(ha,"")),r,"")}}function Ve(r){return function(){var h=arguments;switch(h.length){case 0:return new r;case 1:return new r(h[0]);case 2:return new r(h[0],h[1]);case 3:return new r(h[0],h[1],h[2]);case 4:return new r(h[0],h[1],h[2],h[3]);case 5:return new r(h[0],h[1],h[2],h[3],h[4]);case 6:return new r(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new r(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var y=as(r.prototype),D=r.apply(y,h);return Mn(D)?D:y}}function Se(r,h,y){var D=Ve(r);function Y(){for(var ut=arguments.length,yt=Zt(ut),bt=ut,Nt=ph(Y);bt--;)yt[bt]=arguments[bt];var oe=ut<3&&yt[0]!==Nt&&yt[ut-1]!==Nt?[]:zr(yt,Nt);if(ut-=oe.length,ut<y)return nu(r,h,$i,Y.placeholder,o,yt,oe,o,o,y-ut);var le=this&&this!==vn&&this instanceof Y?D:r;return _r(le,this,yt)}return Y}function Ke(r){return function(h,y,D){var Y=Ee(h);if(!Ur(h)){var ut=si(y,3);h=$n(h),y=function(bt){return ut(Y[bt],bt,Y)}}var yt=r(h,y,D);return yt>-1?Y[ut?h[yt]:yt]:o}}function Oi(r){return js(function(h){var y=h.length,D=y,Y=Yn.prototype.thru;for(r&&h.reverse();D--;){var ut=h[D];if(typeof ut!="function")throw new hr(m);if(Y&&!yt&&Wu(ut)=="wrapper")var yt=new Yn([],!0)}for(D=yt?D:y;++D<y;){ut=h[D];var bt=Wu(ut),Nt=bt=="wrapper"?tf(ut):o;Nt&&of(Nt[0])&&Nt[1]==(X|I|U|J)&&!Nt[4].length&&Nt[9]==1?yt=yt[Wu(Nt[0])].apply(yt,Nt[3]):yt=ut.length==1&&of(ut)?yt[bt]():yt.thru(ut)}return function(){var oe=arguments,le=oe[0];if(yt&&oe.length==1&&vi(le))return yt.plant(le).value();for(var de=0,ke=y?h[de].apply(this,oe):le;++de<y;)ke=h[de].call(this,ke);return ke}})}function $i(r,h,y,D,Y,ut,yt,bt,Nt,oe){var le=h&X,de=h&P,ke=h&w,Ze=h&(I|C),hi=h&Z,Ti=ke?o:Ve(r);function ui(){for(var Ri=arguments.length,Ui=Zt(Ri),io=Ri;io--;)Ui[io]=arguments[io];if(Ze)var Er=ph(ui),no=vo(Ui,Er);if(D&&(Ui=tu(Ui,D,Y,Ze)),ut&&(Ui=eu(Ui,ut,yt,Ze)),Ri-=no,Ze&&Ri<oe){var kn=zr(Ui,Er);return nu(r,h,$i,ui.placeholder,y,Ui,kn,bt,Nt,oe-Ri)}var Ho=de?y:this,Zs=ke?Ho[r]:r;return Ri=Ui.length,bt?Ui=u0(Ui,bt):hi&&Ri>1&&Ui.reverse(),le&&Nt<Ri&&(Ui.length=Nt),this&&this!==vn&&this instanceof ui&&(Zs=Ti||Ve(Zs)),Zs.apply(Ho,Ui)}return ui}function ve(r,h){return function(y,D){return t(y,r,h(D),{})}}function Tr(r,h){return function(y,D){var Y;if(y===o&&D===o)return h;if(y!==o&&(Y=y),D!==o){if(Y===o)return D;typeof y=="string"||typeof D=="string"?(y=Ye(y),D=Ye(D)):(y=Ht(y),D=Ht(D)),Y=r(y,D)}return Y}}function Fn(r){return js(function(h){return h=Yi(h,Hn(si())),ae(function(y){var D=this;return r(h,function(Y){return _r(Y,D,y)})})})}function an(r,h){h=h===o?" ":Ye(h);var y=h.length;if(y<2)return y?be(h,r):h;var D=be(h,zo(r/Kr(h)));return Dr(h)?wn(lr(D),0,r).join(""):D.slice(0,r)}function mr(r,h,y,D){var Y=h&P,ut=Ve(r);function yt(){for(var bt=-1,Nt=arguments.length,oe=-1,le=D.length,de=Zt(le+Nt),ke=this&&this!==vn&&this instanceof yt?ut:r;++oe<le;)de[oe]=D[oe];for(;Nt--;)de[oe++]=arguments[++bt];return _r(ke,Y?y:this,de)}return yt}function iu(r){return function(h,y,D){return D&&typeof D!="number"&&Sr(h,y,D)&&(y=D=o),h=Ys(h),y===o?(y=h,h=0):y=Ys(y),D=D===o?h<y?1:-1:Ys(D),De(h,y,D,r)}}function bo(r){return function(h,y){return typeof h=="string"&&typeof y=="string"||(h=Ao(h),y=Ao(y)),r(h,y)}}function nu(r,h,y,D,Y,ut,yt,bt,Nt,oe){var le=h&I,de=le?yt:o,ke=le?o:yt,Ze=le?ut:o,hi=le?o:ut;h|=le?U:N,h&=~(le?N:U),h&T||(h&=~(P|w));var Ti=[r,h,Y,Ze,de,hi,ke,bt,Nt,oe],ui=y.apply(o,Ti);return of(r)&&rp(ui,Ti),ui.placeholder=D,op(ui,r,h)}function dh(r){var h=dn[r];return function(y,D){if(y=Ao(y),D=D==null?0:Wn(wi(D),292),D&&nh(y)){var Y=(Zi(y)+"e").split("e"),ut=h(Y[0]+"e"+(+Y[1]+D));return Y=(Zi(ut)+"e").split("e"),+(Y[0]+"e"+(+Y[1]-D))}return h(y)}}var ka=Fs&&1/Ds(new Fs([,-0]))[1]==At?function(r){return new Fs(r)}:xf;function Vu(r){return function(h){var y=gr(h);return y==W?Kn(h):y==Kt?Vn(h):Io(h,r(h))}}function nr(r,h,y,D,Y,ut,yt,bt){var Nt=h&w;if(!Nt&&typeof r!="function")throw new hr(m);var oe=D?D.length:0;if(oe||(h&=~(U|N),D=Y=o),yt=yt===o?yt:yn(wi(yt),0),bt=bt===o?bt:wi(bt),oe-=Y?Y.length:0,h&N){var le=D,de=Y;D=Y=o}var ke=Nt?o:tf(r),Ze=[r,h,y,D,Y,le,de,ut,yt,bt];if(ke&&a0(Ze,ke),r=Ze[0],h=Ze[1],y=Ze[2],D=Ze[3],Y=Ze[4],bt=Ze[9]=Ze[9]===o?Nt?0:r.length:yn(Ze[9]-oe,0),!bt&&h&(I|C)&&(h&=~(I|C)),!h||h==P)var hi=mt(r,h,y);else h==I||h==C?hi=Se(r,h,bt):(h==U||h==(P|U))&&!Y.length?hi=mr(r,h,y,D):hi=$i.apply(o,Ze);var Ti=ke?An:rp;return op(Ti(hi,Ze),r,h)}function Yd(r,h,y,D){return r===o||Go(r,yo[y])&&!Mi.call(D,y)?h:r}function Zd(r,h,y,D,Y,ut){return Mn(r)&&Mn(h)&&(ut.set(h,r),wt(r,h,o,Zd,ut),ut.delete(h)),r}function qg(r){return su(r)?o:r}function Jd(r,h,y,D,Y,ut){var yt=y&F,bt=r.length,Nt=h.length;if(bt!=Nt&&!(yt&&Nt>bt))return!1;var oe=ut.get(r),le=ut.get(h);if(oe&&le)return oe==h&&le==r;var de=-1,ke=!0,Ze=y&E?new Gs:o;for(ut.set(r,h),ut.set(h,r);++de<bt;){var hi=r[de],Ti=h[de];if(D)var ui=yt?D(Ti,hi,de,h,r,ut):D(hi,Ti,de,r,h,ut);if(ui!==o){if(ui)continue;ke=!1;break}if(Ze){if(!Lo(h,function(Ri,Ui){if(!go(Ze,Ui)&&(hi===Ri||Y(hi,Ri,y,D,ut)))return Ze.push(Ui)})){ke=!1;break}}else if(!(hi===Ti||Y(hi,Ti,y,D,ut))){ke=!1;break}}return ut.delete(r),ut.delete(h),ke}function Yg(r,h,y,D,Y,ut,yt){switch(y){case qt:if(r.byteLength!=h.byteLength||r.byteOffset!=h.byteOffset)return!1;r=r.buffer,h=h.buffer;case Ut:return!(r.byteLength!=h.byteLength||!ut(new tn(r),new tn(h)));case Oe:case Ge:case Jt:return Go(+r,+h);case Di:return r.name==h.name&&r.message==h.message;case ie:case z:return r==h+"";case W:var bt=Kn;case Kt:var Nt=D&F;if(bt||(bt=Ds),r.size!=h.size&&!Nt)return!1;var oe=yt.get(r);if(oe)return oe==h;D|=E,yt.set(r,h);var le=Jd(bt(r),bt(h),D,Y,ut,yt);return yt.delete(r),le;case Q:if(Us)return Us.call(r)==Us.call(h)}return!1}function Zg(r,h,y,D,Y,ut){var yt=y&F,bt=Kc(r),Nt=bt.length,oe=Kc(h),le=oe.length;if(Nt!=le&&!yt)return!1;for(var de=Nt;de--;){var ke=bt[de];if(!(yt?ke in h:Mi.call(h,ke)))return!1}var Ze=ut.get(r),hi=ut.get(h);if(Ze&&hi)return Ze==h&&hi==r;var Ti=!0;ut.set(r,h),ut.set(h,r);for(var ui=yt;++de<Nt;){ke=bt[de];var Ri=r[ke],Ui=h[ke];if(D)var io=yt?D(Ui,Ri,ke,h,r,ut):D(Ri,Ui,ke,r,h,ut);if(!(io===o?Ri===Ui||Y(Ri,Ui,y,D,ut):io)){Ti=!1;break}ui||(ui=ke=="constructor")}if(Ti&&!ui){var Er=r.constructor,no=h.constructor;Er!=no&&"constructor"in r&&"constructor"in h&&!(typeof Er=="function"&&Er instanceof Er&&typeof no=="function"&&no instanceof no)&&(Ti=!1)}return ut.delete(r),ut.delete(h),Ti}function js(r){return af(ip(r,o,cp),r+"")}function Kc(r){return Gu(r,$n,nf)}function Qc(r){return Gu(r,Gr,$d)}var tf=ml?function(r){return ml.get(r)}:xf;function Wu(r){for(var h=r.name+"",y=ss[h],D=Mi.call(ss,h)?y.length:0;D--;){var Y=y[D],ut=Y.func;if(ut==null||ut==r)return Y.name}return h}function ph(r){var h=Mi.call(it,"placeholder")?it:r;return h.placeholder}function si(){var r=it.iteratee||yf;return r=r===yf?H:r,arguments.length?r(arguments[0],arguments[1]):r}function ju(r,h){var y=r.__data__;return n0(h)?y[typeof h=="string"?"string":"hash"]:y.map}function ef(r){for(var h=$n(r),y=h.length;y--;){var D=h[y],Y=r[D];h[y]=[D,Y,tp(Y)]}return h}function Cl(r,h){var y=Rs(r,h);return M(y)?y:o}function Jg(r){var h=Mi.call(r,wo),y=r[wo];try{r[wo]=o;var D=!0}catch{}var Y=fr.call(r);return D&&(h?r[wo]=y:delete r[wo]),Y}var nf=cl?function(r){return r==null?[]:(r=Ee(r),Or(cl(r),function(h){return ul.call(r,h)}))}:wf,$d=cl?function(r){for(var h=[];r;)po(h,nf(r)),r=xo(r);return h}:wf,gr=Jn;(dl&&gr(new dl(new ArrayBuffer(1)))!=qt||Ns&&gr(new Ns)!=W||pl&&gr(pl.resolve())!=pt||Fs&&gr(new Fs)!=Kt||bn&&gr(new bn)!=nt)&&(gr=function(r){var h=Jn(r),y=h==dt?r.constructor:o,D=y?Al(y):"";if(D)switch(D){case oh:return qt;case Vh:return W;case Wh:return pt;case jh:return Kt;case Ou:return nt}return h});function $g(r,h,y){for(var D=-1,Y=y.length;++D<Y;){var ut=y[D],yt=ut.size;switch(ut.type){case"drop":r+=yt;break;case"dropRight":h-=yt;break;case"take":h=Wn(h,r+yt);break;case"takeRight":r=yn(r,h-yt);break}}return{start:r,end:h}}function Kg(r){var h=r.match($a);return h?h[1].split(uo):[]}function Kd(r,h,y){h=Je(h,r);for(var D=-1,Y=h.length,ut=!1;++D<Y;){var yt=fs(h[D]);if(!(ut=r!=null&&y(r,yt)))break;r=r[yt]}return ut||++D!=Y?ut:(Y=r==null?0:r.length,!!Y&&Ku(Y)&&Xs(yt,Y)&&(vi(r)||Pl(r)))}function Qg(r){var h=r.length,y=new r.constructor(h);return h&&typeof r[0]=="string"&&Mi.call(r,"index")&&(y.index=r.index,y.input=r.input),y}function Qd(r){return typeof r.constructor=="function"&&!ru(r)?as(xo(r)):{}}function t0(r,h,y){var D=r.constructor;switch(h){case Ut:return Ia(r);case Oe:case Ge:return new D(+r);case qt:return Qh(r,y);case Xt:case Ne:case Ie:case me:case we:case yi:case Ei:case ni:case bi:return bl(r,y);case W:return new D;case Jt:case z:return new D(r);case ie:return Da(r);case Kt:return new D;case Q:return Vs(r)}}function e0(r,h){var y=h.length;if(!y)return r;var D=y-1;return h[D]=(y>1?"& ":"")+h[D],h=h.join(y>2?", ":" "),r.replace(sa,`{
|
|
2618
2618
|
/* [wrapped with `+h+`] */
|
|
2619
|
-
`)}function i0(r){return vi(r)||Pl(r)||!!(Ta&&r&&r[Ta])}function Xs(r,h){var y=typeof r;return h=h??ce,!!h&&(y=="number"||y!="symbol"&&Xl.test(r))&&r>-1&&r%1==0&&r<h}function Sr(r,h,y){if(!Mn(y))return!1;var D=typeof h;return(D=="number"?Ur(y)&&Xs(h,y.length):D=="string"&&h in y)?Go(y[h],r):!1}function rf(r,h){if(vi(r))return!1;var y=typeof r;return y=="number"||y=="symbol"||y=="boolean"||r==null||eo(r)?!0:yr.test(r)||!ys.test(r)||h!=null&&r in Ee(h)}function n0(r){var h=typeof r;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?r!=="__proto__":r===null}function of(r){var h=Wu(r),y=it[h];if(typeof y!="function"||!(h in _i.prototype))return!1;if(r===y)return!0;var D=tf(y);return!!D&&r===D[0]}function r0(r){return!!kr&&kr in r}var o0=rs?qs:Mf;function ru(r){var h=r&&r.constructor,y=typeof h=="function"&&h.prototype||yo;return r===y}function tp(r){return r===r&&!Mn(r)}function ep(r,h){return function(y){return y==null?!1:y[r]===h&&(h!==o||r in Ee(y))}}function s0(r){var h=Ju(r,function(D){return y.size===S&&y.clear(),D}),y=h.cache;return h}function a0(r,h){var y=r[1],D=h[1],Y=y|D,ut=Y<(P|w|X),yt=D==X&&y==I||D==X&&y==J&&r[7].length<=h[8]||D==(X|J)&&h[7].length<=h[8]&&y==I;if(!(ut||yt))return r;D&P&&(r[2]=h[2],Y|=y&P?0:T);var bt=h[3];if(bt){var Bt=r[3];r[3]=Bt?tu(Bt,bt,h[4]):bt,r[4]=Bt?zr(r[3],b):h[4]}return bt=h[5],bt&&(Bt=r[5],r[5]=Bt?eu(Bt,bt,h[6]):bt,r[6]=Bt?zr(r[5],b):h[6]),bt=h[7],bt&&(r[7]=bt),D&X&&(r[8]=r[8]==null?h[8]:Wn(r[8],h[8])),r[9]==null&&(r[9]=h[9]),r[0]=h[0],r[1]=Y,r}function l0(r){var h=[];if(r!=null)for(var y in Ee(r))h.push(y);return h}function h0(r){return fr.call(r)}function ip(r,h,y){return h=yn(h===o?r.length-1:h,0),function(){for(var D=arguments,Y=-1,ut=yn(D.length-h,0),yt=Zt(ut);++Y<ut;)yt[Y]=D[h+Y];Y=-1;for(var bt=Zt(h+1);++Y<h;)bt[Y]=D[Y];return bt[h]=y(yt),_r(r,this,bt)}}function np(r,h){return h.length<2?r:us(r,Vi(h,0,-1))}function u0(r,h){for(var y=r.length,D=Wn(h.length,y),Y=ir(r);D--;){var ut=h[D];r[D]=Xs(ut,y)?Y[ut]:o}return r}function sf(r,h){if(!(h==="constructor"&&typeof r[h]=="function")&&h!="__proto__")return r[h]}var rp=sp(An),ou=Fh||function(r,h){return vn.setTimeout(r,h)},af=sp(xn);function op(r,h,y){var D=h+"";return af(r,e0(D,c0(Kg(D),y)))}function sp(r){var h=0,y=0;return function(){var D=fl(),Y=_t-(D-y);if(y=D,Y>0){if(++h>=tt)return arguments[0]}else h=0;return r.apply(o,arguments)}}function Xu(r,h){var y=-1,D=r.length,Y=D-1;for(h=h===o?D:h;++y<h;){var ut=ge(y,Y),yt=r[ut];r[ut]=r[y],r[y]=yt}return r.length=h,r}var ap=s0(function(r){var h=[];return r.charCodeAt(0)===46&&h.push(""),r.replace(oa,function(y,D,Y,ut){h.push(Y?ut.replace(la,"$1"):D||y)}),h});function fs(r){if(typeof r=="string"||eo(r))return r;var h=r+"";return h=="0"&&1/r==-At?"-0":h}function Al(r){if(r!=null){try{return ur.call(r)}catch{}try{return r+""}catch{}}return""}function c0(r,h){return Ji(pe,function(y){var D="_."+y[0];h&y[1]&&!rl(r,D)&&r.push(D)}),r.sort()}function lp(r){if(r instanceof _i)return r.clone();var h=new Yn(r.__wrapped__,r.__chain__);return h.__actions__=ir(r.__actions__),h.__index__=r.__index__,h.__values__=r.__values__,h}function f0(r,h,y){(y?Sr(r,h,y):h===o)?h=1:h=yn(wi(h),0);var D=r==null?0:r.length;if(!D||h<1)return[];for(var Y=0,ut=0,yt=Zt(zo(D/h));Y<D;)yt[ut++]=Vi(r,Y,Y+=h);return yt}function d0(r){for(var h=-1,y=r==null?0:r.length,D=0,Y=[];++h<y;){var ut=r[h];ut&&(Y[D++]=ut)}return Y}function p0(){var r=arguments.length;if(!r)return[];for(var h=Zt(r-1),y=arguments[0],D=r;D--;)h[D-1]=arguments[D];return po(vi(y)?ir(y):[y],Cn(h,1))}var m0=ae(function(r,h){return zn(r)?Tl(r,Cn(h,1,zn,!0)):[]}),g0=ae(function(r,h){var y=Co(h);return zn(y)&&(y=o),zn(r)?Tl(r,Cn(h,1,zn,!0),si(y,2)):[]}),v0=ae(function(r,h){var y=Co(h);return zn(y)&&(y=o),zn(r)?Tl(r,Cn(h,1,zn,!0),o,y):[]});function y0(r,h,y){var D=r==null?0:r.length;return D?(h=y||h===o?1:wi(h),Vi(r,h<0?0:h,D)):[]}function _0(r,h,y){var D=r==null?0:r.length;return D?(h=y||h===o?1:wi(h),h=D-h,Vi(r,0,h<0?0:h)):[]}function x0(r,h){return r&&r.length?Xe(r,si(h,3),!0,!0):[]}function w0(r,h){return r&&r.length?Xe(r,si(h,3),!0):[]}function M0(r,h,y,D){var Y=r==null?0:r.length;return Y?(y&&typeof y!="number"&&Sr(r,h,y)&&(y=0,D=Y),er(r,h,y,D)):[]}function hp(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=y==null?0:wi(y);return Y<0&&(Y=yn(D+Y,0)),Ko(r,si(h,3),Y)}function up(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=D-1;return y!==o&&(Y=wi(y),Y=y<0?yn(D+Y,0):Wn(Y,D-1)),Ko(r,si(h,3),Y,!0)}function cp(r){var h=r==null?0:r.length;return h?Cn(r,1):[]}function T0(r){var h=r==null?0:r.length;return h?Cn(r,At):[]}function S0(r,h){var y=r==null?0:r.length;return y?(h=h===o?1:wi(h),Cn(r,h)):[]}function E0(r){for(var h=-1,y=r==null?0:r.length,D={};++h<y;){var Y=r[h];D[Y[0]]=Y[1]}return D}function fp(r){return r&&r.length?r[0]:o}function b0(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=y==null?0:wi(y);return Y<0&&(Y=yn(D+Y,0)),Ir(r,h,Y)}function C0(r){var h=r==null?0:r.length;return h?Vi(r,0,-1):[]}var A0=ae(function(r){var h=Yi(r,ne);return h.length&&h[0]===r[0]?El(h):[]}),P0=ae(function(r){var h=Co(r),y=Yi(r,ne);return h===Co(y)?h=o:y.pop(),y.length&&y[0]===r[0]?El(y,si(h,2)):[]}),L0=ae(function(r){var h=Co(r),y=Yi(r,ne);return h=typeof h=="function"?h:o,h&&y.pop(),y.length&&y[0]===r[0]?El(y,o,h):[]});function R0(r,h){return r==null?"":Gh.call(r,h)}function Co(r){var h=r==null?0:r.length;return h?r[h-1]:o}function O0(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=D;return y!==o&&(Y=wi(y),Y=Y<0?yn(D+Y,0):Wn(Y,D-1)),h===h?Ql(r,h,Y):Ko(r,bs,Y,!0)}function I0(r,h){return r&&r.length?K(r,wi(h)):o}var D0=ae(dp);function dp(r,h){return r&&r.length&&h&&h.length?Yt(r,h):r}function z0(r,h,y){return r&&r.length&&h&&h.length?Yt(r,h,si(y,2)):r}function k0(r,h,y){return r&&r.length&&h&&h.length?Yt(r,h,o,y):r}var B0=js(function(r,h){var y=r==null?0:r.length,D=$h(r,h);return Me(r,Yi(h,function(Y){return Xs(Y,y)?+Y:Y}).sort(Ws)),D});function N0(r,h){var y=[];if(!(r&&r.length))return y;var D=-1,Y=[],ut=r.length;for(h=si(h,3);++D<ut;){var yt=r[D];h(yt,D,r)&&(y.push(yt),Y.push(D))}return Me(r,Y),y}function lf(r){return r==null?r:Sa.call(r)}function F0(r,h,y){var D=r==null?0:r.length;return D?(y&&typeof y!="number"&&Sr(r,h,y)?(h=0,y=D):(h=h==null?0:wi(h),y=y===o?D:wi(y)),Vi(r,h,y)):[]}function U0(r,h){return Pn(r,h)}function G0(r,h,y){return Ce(r,h,si(y,2))}function H0(r,h){var y=r==null?0:r.length;if(y){var D=Pn(r,h);if(D<y&&Go(r[D],h))return D}return-1}function V0(r,h){return Pn(r,h,!0)}function W0(r,h,y){return Ce(r,h,si(y,2),!0)}function j0(r,h){var y=r==null?0:r.length;if(y){var D=Pn(r,h,!0)-1;if(Go(r[D],h))return D}return-1}function X0(r){return r&&r.length?ti(r):[]}function q0(r,h){return r&&r.length?ti(r,si(h,2)):[]}function Y0(r){var h=r==null?0:r.length;return h?Vi(r,1,h):[]}function Z0(r,h,y){return r&&r.length?(h=y||h===o?1:wi(h),Vi(r,0,h<0?0:h)):[]}function J0(r,h,y){var D=r==null?0:r.length;return D?(h=y||h===o?1:wi(h),h=D-h,Vi(r,h<0?0:h,D)):[]}function $0(r,h){return r&&r.length?Xe(r,si(h,3),!1,!0):[]}function K0(r,h){return r&&r.length?Xe(r,si(h,3)):[]}var Q0=ae(function(r){return ei(Cn(r,1,zn,!0))}),tv=ae(function(r){var h=Co(r);return zn(h)&&(h=o),ei(Cn(r,1,zn,!0),si(h,2))}),ev=ae(function(r){var h=Co(r);return h=typeof h=="function"?h:o,ei(Cn(r,1,zn,!0),o,h)});function iv(r){return r&&r.length?ei(r):[]}function nv(r,h){return r&&r.length?ei(r,si(h,2)):[]}function rv(r,h){return h=typeof h=="function"?h:o,r&&r.length?ei(r,o,h):[]}function hf(r){if(!(r&&r.length))return[];var h=0;return r=Or(r,function(y){if(zn(y))return h=yn(y.length,h),!0}),Oo(h,function(y){return Yi(r,Qo(y))})}function pp(r,h){if(!(r&&r.length))return[];var y=hf(r);return h==null?y:Yi(y,function(D){return _r(h,o,D)})}var ov=ae(function(r,h){return zn(r)?Tl(r,h):[]}),sv=ae(function(r){return Li(Or(r,zn))}),av=ae(function(r){var h=Co(r);return zn(h)&&(h=o),Li(Or(r,zn),si(h,2))}),lv=ae(function(r){var h=Co(r);return h=typeof h=="function"?h:o,Li(Or(r,zn),o,h)}),hv=ae(hf);function uv(r,h){return Ai(r||[],h||[],Ra)}function cv(r,h){return Ai(r||[],h||[],fi)}var fv=ae(function(r){var h=r.length,y=h>1?r[h-1]:o;return y=typeof y=="function"?(r.pop(),y):o,pp(r,y)});function mp(r){var h=it(r);return h.__chain__=!0,h}function dv(r,h){return h(r),r}function qu(r,h){return h(r)}var pv=js(function(r){var h=r.length,y=h?r[0]:0,D=this.__wrapped__,Y=function(ut){return $h(ut,r)};return h>1||this.__actions__.length||!(D instanceof _i)||!Xs(y)?this.thru(Y):(D=D.slice(y,+y+(h?1:0)),D.__actions__.push({func:qu,args:[Y],thisArg:o}),new Yn(D,this.__chain__).thru(function(ut){return h&&!ut.length&&ut.push(o),ut}))});function mv(){return mp(this)}function gv(){return new Yn(this.value(),this.__chain__)}function vv(){this.__values__===o&&(this.__values__=Pp(this.value()));var r=this.__index__>=this.__values__.length,h=r?o:this.__values__[this.__index__++];return{done:r,value:h}}function yv(){return this}function _v(r){for(var h,y=this;y instanceof ba;){var D=lp(y);D.__index__=0,D.__values__=o,h?Y.__wrapped__=D:h=D;var Y=D;y=y.__wrapped__}return Y.__wrapped__=r,h}function xv(){var r=this.__wrapped__;if(r instanceof _i){var h=r;return this.__actions__.length&&(h=new _i(this)),h=h.reverse(),h.__actions__.push({func:qu,args:[lf],thisArg:o}),new Yn(h,this.__chain__)}return this.thru(lf)}function wv(){return ri(this.__wrapped__,this.__actions__)}var Mv=za(function(r,h,y){Mi.call(r,y)?++r[y]:No(r,y,1)});function Tv(r,h,y){var D=vi(r)?Nh:Zn;return y&&Sr(r,h,y)&&(h=o),D(r,si(h,3))}function Sv(r,h){var y=vi(r)?Or:Nr;return y(r,si(h,3))}var Ev=Ke(hp),bv=Ke(up);function Cv(r,h){return Cn(Yu(r,h),1)}function Av(r,h){return Cn(Yu(r,h),At)}function Pv(r,h,y){return y=y===o?1:wi(y),Cn(Yu(r,h),y)}function gp(r,h){var y=vi(r)?Ji:_n;return y(r,si(h,3))}function vp(r,h){var y=vi(r)?Ss:Uu;return y(r,si(h,3))}var Lv=za(function(r,h,y){Mi.call(r,y)?r[y].push(h):No(r,y,[h])});function Rv(r,h,y,D){r=Ur(r)?r:gh(r),y=y&&!D?wi(y):0;var Y=r.length;return y<0&&(y=yn(Y+y,0)),Qu(r)?y<=Y&&r.indexOf(h,y)>-1:!!Y&&Ir(r,h,y)>-1}var Ov=ae(function(r,h,y){var D=-1,Y=typeof h=="function",ut=Ur(r)?Zt(r.length):[];return _n(r,function(yt){ut[++D]=Y?_r(h,yt,y):e(yt,h,y)}),ut}),Iv=za(function(r,h,y){No(r,y,h)});function Yu(r,h){var y=vi(r)?Yi:xt;return y(r,si(h,3))}function Dv(r,h,y,D){return r==null?[]:(vi(h)||(h=h==null?[]:[h]),y=D?o:y,vi(y)||(y=y==null?[]:[y]),ot(r,h,y))}var zv=za(function(r,h,y){r[y?0:1].push(h)},function(){return[[],[]]});function kv(r,h,y){var D=vi(r)?$l:ts,Y=arguments.length<3;return D(r,si(h,4),y,Y,_n)}function Bv(r,h,y){var D=vi(r)?Cu:ts,Y=arguments.length<3;return D(r,si(h,4),y,Y,Uu)}function Nv(r,h){var y=vi(r)?Or:Nr;return y(r,$u(si(h,3)))}function Fv(r){var h=vi(r)?Yh:We;return h(r)}function Uv(r,h,y){(y?Sr(r,h,y):h===o)?h=1:h=wi(h);var D=vi(r)?$c:Qe;return D(r,h)}function Gv(r){var h=vi(r)?Bu:qi;return h(r)}function Hv(r){if(r==null)return 0;if(Ur(r))return Qu(r)?Kr(r):r.length;var h=gr(r);return h==W||h==Kt?r.size:q(r).length}function Vv(r,h,y){var D=vi(r)?Lo:on;return y&&Sr(r,h,y)&&(h=o),D(r,si(h,3))}var Wv=ae(function(r,h){if(r==null)return[];var y=h.length;return y>1&&Sr(r,h[0],h[1])?h=[]:y>2&&Sr(h[0],h[1],h[2])&&(h=[h[0]]),ot(r,Cn(h,1),[])}),Zu=ih||function(){return vn.Date.now()};function jv(r,h){if(typeof h!="function")throw new hr(m);return r=wi(r),function(){if(--r<1)return h.apply(this,arguments)}}function yp(r,h,y){return h=y?o:h,h=r&&h==null?r.length:h,nr(r,X,o,o,o,o,h)}function _p(r,h){var y;if(typeof h!="function")throw new hr(m);return r=wi(r),function(){return--r>0&&(y=h.apply(this,arguments)),r<=1&&(h=o),y}}var uf=ae(function(r,h,y){var D=P;if(y.length){var Y=zr(y,ph(uf));D|=U}return nr(r,D,h,y,Y)}),xp=ae(function(r,h,y){var D=P|w;if(y.length){var Y=zr(y,ph(xp));D|=U}return nr(h,D,r,y,Y)});function wp(r,h,y){h=y?o:h;var D=nr(r,I,o,o,o,o,o,h);return D.placeholder=wp.placeholder,D}function Mp(r,h,y){h=y?o:h;var D=nr(r,C,o,o,o,o,o,h);return D.placeholder=Mp.placeholder,D}function Tp(r,h,y){var D,Y,ut,yt,bt,Bt,oe=0,le=!1,de=!1,ke=!0;if(typeof r!="function")throw new hr(m);h=Ao(h)||0,Mn(y)&&(le=!!y.leading,de="maxWait"in y,ut=de?yn(Ao(y.maxWait)||0,h):ut,ke="trailing"in y?!!y.trailing:ke);function Ze(kn){var Ho=D,Zs=Y;return D=Y=o,oe=kn,yt=r.apply(Zs,Ho),yt}function hi(kn){return oe=kn,bt=ou(Ri,h),le?Ze(kn):yt}function Ti(kn){var Ho=kn-Bt,Zs=kn-oe,Hp=h-Ho;return de?Wn(Hp,ut-Zs):Hp}function ui(kn){var Ho=kn-Bt,Zs=kn-oe;return Bt===o||Ho>=h||Ho<0||de&&Zs>=ut}function Ri(){var kn=Zu();if(ui(kn))return Ui(kn);bt=ou(Ri,Ti(kn))}function Ui(kn){return bt=o,ke&&D?Ze(kn):(D=Y=o,yt)}function io(){bt!==o&&Ln(bt),oe=0,D=Bt=Y=bt=o}function Er(){return bt===o?yt:Ui(Zu())}function no(){var kn=Zu(),Ho=ui(kn);if(D=arguments,Y=this,Bt=kn,Ho){if(bt===o)return hi(Bt);if(de)return Ln(bt),bt=ou(Ri,h),Ze(Bt)}return bt===o&&(bt=ou(Ri,h)),yt}return no.cancel=io,no.flush=Er,no}var Xv=ae(function(r,h){return To(r,1,h)}),qv=ae(function(r,h,y){return To(r,Ao(h)||0,y)});function Yv(r){return nr(r,Z)}function Ju(r,h){if(typeof r!="function"||h!=null&&typeof h!="function")throw new hr(m);var y=function(){var D=arguments,Y=h?h.apply(this,D):D[0],ut=y.cache;if(ut.has(Y))return ut.get(Y);var yt=r.apply(this,D);return y.cache=ut.set(Y,yt)||ut,yt};return y.cache=new(Ju.Cache||wr),y}Ju.Cache=wr;function $u(r){if(typeof r!="function")throw new hr(m);return function(){var h=arguments;switch(h.length){case 0:return!r.call(this);case 1:return!r.call(this,h[0]);case 2:return!r.call(this,h[0],h[1]);case 3:return!r.call(this,h[0],h[1],h[2])}return!r.apply(this,h)}}function Zv(r){return _p(2,r)}var Jv=li(function(r,h){h=h.length==1&&vi(h[0])?Yi(h[0],Hn(si())):Yi(Cn(h,1),Hn(si()));var y=h.length;return ae(function(D){for(var Y=-1,ut=Wn(D.length,y);++Y<ut;)D[Y]=h[Y].call(this,D[Y]);return _r(r,this,D)})}),cf=ae(function(r,h){var y=zr(h,ph(cf));return nr(r,U,o,h,y)}),Sp=ae(function(r,h){var y=zr(h,ph(Sp));return nr(r,N,o,h,y)}),$v=js(function(r,h){return nr(r,J,o,o,o,h)});function Kv(r,h){if(typeof r!="function")throw new hr(m);return h=h===o?h:wi(h),ae(r,h)}function Qv(r,h){if(typeof r!="function")throw new hr(m);return h=h==null?0:yn(wi(h),0),ae(function(y){var D=y[h],Y=wn(y,0,h);return D&&po(Y,D),_r(r,this,Y)})}function ty(r,h,y){var D=!0,Y=!0;if(typeof r!="function")throw new hr(m);return Mn(y)&&(D="leading"in y?!!y.leading:D,Y="trailing"in y?!!y.trailing:Y),Tp(r,h,{leading:D,maxWait:h,trailing:Y})}function ey(r){return yp(r,1)}function iy(r,h){return cf(ii(h),r)}function ny(){if(!arguments.length)return[];var r=arguments[0];return vi(r)?r:[r]}function ry(r){return Mr(r,R)}function oy(r,h){return h=typeof h=="function"?h:o,Mr(r,R,h)}function sy(r){return Mr(r,O|R)}function ay(r,h){return h=typeof h=="function"?h:o,Mr(r,O|R,h)}function ly(r,h){return h==null||Fu(r,h,$n(h))}function Go(r,h){return r===h||r!==r&&h!==h}var hy=bo(uh),uy=bo(function(r,h){return r>=h}),Pl=i(function(){return arguments}())?i:function(r){return Rn(r)&&Mi.call(r,"callee")&&!ul.call(r,"callee")},vi=Zt.isArray,cy=Bh?Hn(Bh):n;function Ur(r){return r!=null&&Ku(r.length)&&!qs(r)}function zn(r){return Rn(r)&&Ur(r)}function fy(r){return r===!0||r===!1||Rn(r)&&Jn(r)==Oe}var Ba=Uh||Mf,dy=ga?Hn(ga):s;function py(r){return Rn(r)&&r.nodeType===1&&!su(r)}function my(r){if(r==null)return!0;if(Ur(r)&&(vi(r)||typeof r=="string"||typeof r.splice=="function"||Ba(r)||mh(r)||Pl(r)))return!r.length;var h=gr(r);if(h==W||h==Kt)return!r.size;if(ru(r))return!q(r).length;for(var y in r)if(Mi.call(r,y))return!1;return!0}function gy(r,h){return l(r,h)}function vy(r,h,y){y=typeof y=="function"?y:o;var D=y?y(r,h):o;return D===o?l(r,h,o,y):!!D}function ff(r){if(!Rn(r))return!1;var h=Jn(r);return h==Di||h==pi||typeof r.message=="string"&&typeof r.name=="string"&&!su(r)}function yy(r){return typeof r=="number"&&nh(r)}function qs(r){if(!Mn(r))return!1;var h=Jn(r);return h==gn||h==Qi||h==Si||h==Dt}function Ep(r){return typeof r=="number"&&r==wi(r)}function Ku(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ce}function Mn(r){var h=typeof r;return r!=null&&(h=="object"||h=="function")}function Rn(r){return r!=null&&typeof r=="object"}var bp=va?Hn(va):p;function _y(r,h){return r===h||_(r,h,ef(h))}function xy(r,h,y){return y=typeof y=="function"?y:o,_(r,h,ef(h),y)}function wy(r){return Cp(r)&&r!=+r}function My(r){if(o0(r))throw new ai(u);return M(r)}function Ty(r){return r===null}function Sy(r){return r==null}function Cp(r){return typeof r=="number"||Rn(r)&&Jn(r)==Jt}function su(r){if(!Rn(r)||Jn(r)!=dt)return!1;var h=xo(r);if(h===null)return!0;var y=Mi.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&ur.call(y)==_o}var df=Eu?Hn(Eu):A;function Ey(r){return Ep(r)&&r>=-ce&&r<=ce}var Ap=bu?Hn(bu):L;function Qu(r){return typeof r=="string"||!vi(r)&&Rn(r)&&Jn(r)==z}function eo(r){return typeof r=="symbol"||Rn(r)&&Jn(r)==Q}var mh=Yl?Hn(Yl):B;function by(r){return r===o}function Cy(r){return Rn(r)&&gr(r)==nt}function Ay(r){return Rn(r)&&Jn(r)==vt}var Py=bo(rt),Ly=bo(function(r,h){return r<=h});function Pp(r){if(!r)return[];if(Ur(r))return Qu(r)?lr(r):ir(r);if(os&&r[os])return Is(r[os]());var h=gr(r),y=h==W?Kn:h==Kt?Ds:gh;return y(r)}function Ys(r){if(!r)return r===0?r:0;if(r=Ao(r),r===At||r===-At){var h=r<0?-1:1;return h*re}return r===r?r:0}function wi(r){var h=Ys(r),y=h%1;return h===h?y?h-y:h:0}function Lp(r){return r?hs(wi(r),0,It):0}function Ao(r){if(typeof r=="number")return r;if(eo(r))return Ft;if(Mn(r)){var h=typeof r.valueOf=="function"?r.valueOf():r;r=Mn(h)?h+"":h}if(typeof r!="string")return r===0?r:+r;r=_a(r);var y=zh.test(r);return y||xs.test(r)?da(r.slice(2),y?2:8):Dh.test(r)?Ft:+r}function Rp(r){return Dn(r,Gr(r))}function Ry(r){return r?hs(wi(r),-ce,ce):r===0?r:0}function Zi(r){return r==null?"":Ye(r)}var Oy=Uo(function(r,h){if(ru(h)||Ur(h)){Dn(h,$n(h),r);return}for(var y in h)Mi.call(h,y)&&Ra(r,y,h[y])}),Op=Uo(function(r,h){Dn(h,Gr(h),r)}),tc=Uo(function(r,h,y,D){Dn(h,Gr(h),r,D)}),Iy=Uo(function(r,h,y,D){Dn(h,$n(h),r,D)}),Dy=js($h);function zy(r,h){var y=as(r);return h==null?y:Zh(y,h)}var ky=ae(function(r,h){r=Ee(r);var y=-1,D=h.length,Y=D>2?h[2]:o;for(Y&&Sr(h[0],h[1],Y)&&(D=1);++y<D;)for(var ut=h[y],yt=Gr(ut),bt=-1,Bt=yt.length;++bt<Bt;){var oe=yt[bt],le=r[oe];(le===o||Go(le,yo[oe])&&!Mi.call(r,oe))&&(r[oe]=ut[oe])}return r}),By=ae(function(r){return r.push(o,Zd),_r(Ip,o,r)});function Ny(r,h){return Es(r,si(h,3),Fr)}function Fy(r,h){return Es(r,si(h,3),hh)}function Uy(r,h){return r==null?r:Sl(r,si(h,3),Gr)}function Gy(r,h){return r==null?r:lh(r,si(h,3),Gr)}function Hy(r,h){return r&&Fr(r,si(h,3))}function Vy(r,h){return r&&hh(r,si(h,3))}function Wy(r){return r==null?[]:Hs(r,$n(r))}function jy(r){return r==null?[]:Hs(r,Gr(r))}function pf(r,h,y){var D=r==null?o:us(r,h);return D===o?y:D}function Xy(r,h){return r!=null&&Kd(r,h,ch)}function mf(r,h){return r!=null&&Kd(r,h,Kh)}var qy=ve(function(r,h,y){h!=null&&typeof h.toString!="function"&&(h=fr.call(h)),r[h]=y},vf(Hr)),Yy=ve(function(r,h,y){h!=null&&typeof h.toString!="function"&&(h=fr.call(h)),Mi.call(r,h)?r[h].push(y):r[h]=[y]},si),Zy=ae(e);function $n(r){return Ur(r)?ku(r):q(r)}function Gr(r){return Ur(r)?ku(r,!0):$(r)}function Jy(r,h){var y={};return h=si(h,3),Fr(r,function(D,Y,ut){No(y,h(D,Y,ut),D)}),y}function $y(r,h){var y={};return h=si(h,3),Fr(r,function(D,Y,ut){No(y,Y,h(D,Y,ut))}),y}var Ky=Uo(function(r,h,y){wt(r,h,y)}),Ip=Uo(function(r,h,y,D){wt(r,h,y,D)}),Qy=js(function(r,h){var y={};if(r==null)return y;var D=!1;h=Yi(h,function(ut){return ut=Je(ut,r),D||(D=ut.length>1),ut}),Dn(r,Qc(r),y),D&&(y=Mr(y,O|k|R,qg));for(var Y=h.length;Y--;)Wi(y,h[Y]);return y});function t_(r,h){return Dp(r,$u(si(h)))}var e_=js(function(r,h){return r==null?{}:kt(r,h)});function Dp(r,h){if(r==null)return{};var y=Yi(Qc(r),function(D){return[D]});return h=si(h),ee(r,y,function(D,Y){return h(D,Y[0])})}function i_(r,h,y){h=Je(h,r);var D=-1,Y=h.length;for(Y||(Y=1,r=o);++D<Y;){var ut=r==null?o:r[fs(h[D])];ut===o&&(D=Y,ut=y),r=qs(ut)?ut.call(r):ut}return r}function n_(r,h,y){return r==null?r:fi(r,h,y)}function r_(r,h,y,D){return D=typeof D=="function"?D:o,r==null?r:fi(r,h,y,D)}var zp=Vu($n),kp=Vu(Gr);function o_(r,h,y){var D=vi(r),Y=D||Ba(r)||mh(r);if(h=si(h,4),y==null){var ut=r&&r.constructor;Y?y=D?new ut:[]:Mn(r)?y=qs(ut)?as(xo(r)):{}:y={}}return(Y?Ji:Fr)(r,function(yt,bt,Bt){return h(y,yt,bt,Bt)}),y}function s_(r,h){return r==null?!0:Wi(r,h)}function a_(r,h,y){return r==null?r:Ae(r,h,ii(y))}function l_(r,h,y,D){return D=typeof D=="function"?D:o,r==null?r:Ae(r,h,ii(y),D)}function gh(r){return r==null?[]:Cs(r,$n(r))}function h_(r){return r==null?[]:Cs(r,Gr(r))}function u_(r,h,y){return y===o&&(y=h,h=o),y!==o&&(y=Ao(y),y=y===y?y:0),h!==o&&(h=Ao(h),h=h===h?h:0),hs(Ao(r),h,y)}function c_(r,h,y){return h=Ys(h),y===o?(y=h,h=0):y=Ys(y),r=Ao(r),fh(r,h,y)}function f_(r,h,y){if(y&&typeof y!="boolean"&&Sr(r,h,y)&&(h=y=o),y===o&&(typeof h=="boolean"?(y=h,h=o):typeof r=="boolean"&&(y=r,r=o)),r===o&&h===o?(r=0,h=1):(r=Ys(r),h===o?(h=r,r=0):h=Ys(h)),r>h){var D=r;r=h,h=D}if(y||r%1||h%1){var Y=rh();return Wn(r+Y*(h-r+nl("1e-"+((Y+"").length-1))),h)}return ge(r,h)}var d_=ze(function(r,h,y){return h=h.toLowerCase(),r+(y?Bp(h):h)});function Bp(r){return gf(Zi(r).toLowerCase())}function Np(r){return r=Zi(r),r&&r.replace(ql,Ps).replace(kh,"")}function p_(r,h,y){r=Zi(r),h=Ye(h);var D=r.length;y=y===o?D:hs(wi(y),0,D);var Y=y;return y-=h.length,y>=0&&r.slice(y,Y)==h}function m_(r){return r=Zi(r),r&&lo.test(r)?r.replace(zi,$r):r}function g_(r){return r=Zi(r),r&&Vl.test(r)?r.replace(Ja,"\\$&"):r}var v_=ze(function(r,h,y){return r+(y?"-":"")+h.toLowerCase()}),y_=ze(function(r,h,y){return r+(y?" ":"")+h.toLowerCase()}),__=Te("toLowerCase");function x_(r,h,y){r=Zi(r),h=wi(h);var D=h?Kr(r):0;if(!h||D>=h)return r;var Y=(h-D)/2;return an(Bs(Y),y)+r+an(zo(Y),y)}function w_(r,h,y){r=Zi(r),h=wi(h);var D=h?Kr(r):0;return h&&D<h?r+an(h-D,y):r}function M_(r,h,y){r=Zi(r),h=wi(h);var D=h?Kr(r):0;return h&&D<h?an(h-D,y)+r:r}function T_(r,h,y){return y||h==null?h=0:h&&(h=+h),Hh(Zi(r).replace(ho,""),h||0)}function S_(r,h,y){return(y?Sr(r,h,y):h===o)?h=1:h=wi(h),be(Zi(r),h)}function E_(){var r=arguments,h=Zi(r[0]);return r.length<3?h:h.replace(r[1],r[2])}var b_=ze(function(r,h,y){return r+(y?"_":"")+h.toLowerCase()});function C_(r,h,y){return y&&typeof y!="number"&&Sr(r,h,y)&&(h=y=o),y=y===o?It:y>>>0,y?(r=Zi(r),r&&(typeof h=="string"||h!=null&&!df(h))&&(h=Ye(h),!h&&Dr(r))?wn(lr(r),0,y):r.split(h,y)):[]}var A_=ze(function(r,h,y){return r+(y?" ":"")+gf(h)});function P_(r,h,y){return r=Zi(r),y=y==null?0:hs(wi(y),0,r.length),h=Ye(h),r.slice(y,y+h.length)==h}function L_(r,h,y){var D=it.templateSettings;y&&Sr(r,h,y)&&(h=o),r=Zi(r),h=tc({},h,D,Yd);var Y=tc({},h.imports,D.imports,Yd),ut=$n(Y),yt=Cs(Y,ut),bt,Bt,oe=0,le=h.interpolate||Zr,de="__p += '",ke=Qn((h.escape||Zr).source+"|"+le.source+"|"+(le===ra?co:Zr).source+"|"+(h.evaluate||Zr).source+"|$","g"),Ze="//# sourceURL="+(Mi.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ca+"]")+`
|
|
2619
|
+
`)}function i0(r){return vi(r)||Pl(r)||!!(Ta&&r&&r[Ta])}function Xs(r,h){var y=typeof r;return h=h??ce,!!h&&(y=="number"||y!="symbol"&&Xl.test(r))&&r>-1&&r%1==0&&r<h}function Sr(r,h,y){if(!Mn(y))return!1;var D=typeof h;return(D=="number"?Ur(y)&&Xs(h,y.length):D=="string"&&h in y)?Go(y[h],r):!1}function rf(r,h){if(vi(r))return!1;var y=typeof r;return y=="number"||y=="symbol"||y=="boolean"||r==null||eo(r)?!0:yr.test(r)||!ys.test(r)||h!=null&&r in Ee(h)}function n0(r){var h=typeof r;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?r!=="__proto__":r===null}function of(r){var h=Wu(r),y=it[h];if(typeof y!="function"||!(h in _i.prototype))return!1;if(r===y)return!0;var D=tf(y);return!!D&&r===D[0]}function r0(r){return!!kr&&kr in r}var o0=rs?qs:Mf;function ru(r){var h=r&&r.constructor,y=typeof h=="function"&&h.prototype||yo;return r===y}function tp(r){return r===r&&!Mn(r)}function ep(r,h){return function(y){return y==null?!1:y[r]===h&&(h!==o||r in Ee(y))}}function s0(r){var h=Ju(r,function(D){return y.size===S&&y.clear(),D}),y=h.cache;return h}function a0(r,h){var y=r[1],D=h[1],Y=y|D,ut=Y<(P|w|X),yt=D==X&&y==I||D==X&&y==J&&r[7].length<=h[8]||D==(X|J)&&h[7].length<=h[8]&&y==I;if(!(ut||yt))return r;D&P&&(r[2]=h[2],Y|=y&P?0:T);var bt=h[3];if(bt){var Nt=r[3];r[3]=Nt?tu(Nt,bt,h[4]):bt,r[4]=Nt?zr(r[3],b):h[4]}return bt=h[5],bt&&(Nt=r[5],r[5]=Nt?eu(Nt,bt,h[6]):bt,r[6]=Nt?zr(r[5],b):h[6]),bt=h[7],bt&&(r[7]=bt),D&X&&(r[8]=r[8]==null?h[8]:Wn(r[8],h[8])),r[9]==null&&(r[9]=h[9]),r[0]=h[0],r[1]=Y,r}function l0(r){var h=[];if(r!=null)for(var y in Ee(r))h.push(y);return h}function h0(r){return fr.call(r)}function ip(r,h,y){return h=yn(h===o?r.length-1:h,0),function(){for(var D=arguments,Y=-1,ut=yn(D.length-h,0),yt=Zt(ut);++Y<ut;)yt[Y]=D[h+Y];Y=-1;for(var bt=Zt(h+1);++Y<h;)bt[Y]=D[Y];return bt[h]=y(yt),_r(r,this,bt)}}function np(r,h){return h.length<2?r:us(r,Vi(h,0,-1))}function u0(r,h){for(var y=r.length,D=Wn(h.length,y),Y=ir(r);D--;){var ut=h[D];r[D]=Xs(ut,y)?Y[ut]:o}return r}function sf(r,h){if(!(h==="constructor"&&typeof r[h]=="function")&&h!="__proto__")return r[h]}var rp=sp(An),ou=Fh||function(r,h){return vn.setTimeout(r,h)},af=sp(xn);function op(r,h,y){var D=h+"";return af(r,e0(D,c0(Kg(D),y)))}function sp(r){var h=0,y=0;return function(){var D=fl(),Y=_t-(D-y);if(y=D,Y>0){if(++h>=tt)return arguments[0]}else h=0;return r.apply(o,arguments)}}function Xu(r,h){var y=-1,D=r.length,Y=D-1;for(h=h===o?D:h;++y<h;){var ut=ge(y,Y),yt=r[ut];r[ut]=r[y],r[y]=yt}return r.length=h,r}var ap=s0(function(r){var h=[];return r.charCodeAt(0)===46&&h.push(""),r.replace(oa,function(y,D,Y,ut){h.push(Y?ut.replace(la,"$1"):D||y)}),h});function fs(r){if(typeof r=="string"||eo(r))return r;var h=r+"";return h=="0"&&1/r==-At?"-0":h}function Al(r){if(r!=null){try{return ur.call(r)}catch{}try{return r+""}catch{}}return""}function c0(r,h){return Ji(pe,function(y){var D="_."+y[0];h&y[1]&&!rl(r,D)&&r.push(D)}),r.sort()}function lp(r){if(r instanceof _i)return r.clone();var h=new Yn(r.__wrapped__,r.__chain__);return h.__actions__=ir(r.__actions__),h.__index__=r.__index__,h.__values__=r.__values__,h}function f0(r,h,y){(y?Sr(r,h,y):h===o)?h=1:h=yn(wi(h),0);var D=r==null?0:r.length;if(!D||h<1)return[];for(var Y=0,ut=0,yt=Zt(zo(D/h));Y<D;)yt[ut++]=Vi(r,Y,Y+=h);return yt}function d0(r){for(var h=-1,y=r==null?0:r.length,D=0,Y=[];++h<y;){var ut=r[h];ut&&(Y[D++]=ut)}return Y}function p0(){var r=arguments.length;if(!r)return[];for(var h=Zt(r-1),y=arguments[0],D=r;D--;)h[D-1]=arguments[D];return po(vi(y)?ir(y):[y],Cn(h,1))}var m0=ae(function(r,h){return zn(r)?Tl(r,Cn(h,1,zn,!0)):[]}),g0=ae(function(r,h){var y=Co(h);return zn(y)&&(y=o),zn(r)?Tl(r,Cn(h,1,zn,!0),si(y,2)):[]}),v0=ae(function(r,h){var y=Co(h);return zn(y)&&(y=o),zn(r)?Tl(r,Cn(h,1,zn,!0),o,y):[]});function y0(r,h,y){var D=r==null?0:r.length;return D?(h=y||h===o?1:wi(h),Vi(r,h<0?0:h,D)):[]}function _0(r,h,y){var D=r==null?0:r.length;return D?(h=y||h===o?1:wi(h),h=D-h,Vi(r,0,h<0?0:h)):[]}function x0(r,h){return r&&r.length?Xe(r,si(h,3),!0,!0):[]}function w0(r,h){return r&&r.length?Xe(r,si(h,3),!0):[]}function M0(r,h,y,D){var Y=r==null?0:r.length;return Y?(y&&typeof y!="number"&&Sr(r,h,y)&&(y=0,D=Y),er(r,h,y,D)):[]}function hp(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=y==null?0:wi(y);return Y<0&&(Y=yn(D+Y,0)),Ko(r,si(h,3),Y)}function up(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=D-1;return y!==o&&(Y=wi(y),Y=y<0?yn(D+Y,0):Wn(Y,D-1)),Ko(r,si(h,3),Y,!0)}function cp(r){var h=r==null?0:r.length;return h?Cn(r,1):[]}function T0(r){var h=r==null?0:r.length;return h?Cn(r,At):[]}function S0(r,h){var y=r==null?0:r.length;return y?(h=h===o?1:wi(h),Cn(r,h)):[]}function E0(r){for(var h=-1,y=r==null?0:r.length,D={};++h<y;){var Y=r[h];D[Y[0]]=Y[1]}return D}function fp(r){return r&&r.length?r[0]:o}function b0(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=y==null?0:wi(y);return Y<0&&(Y=yn(D+Y,0)),Ir(r,h,Y)}function C0(r){var h=r==null?0:r.length;return h?Vi(r,0,-1):[]}var A0=ae(function(r){var h=Yi(r,ne);return h.length&&h[0]===r[0]?El(h):[]}),P0=ae(function(r){var h=Co(r),y=Yi(r,ne);return h===Co(y)?h=o:y.pop(),y.length&&y[0]===r[0]?El(y,si(h,2)):[]}),L0=ae(function(r){var h=Co(r),y=Yi(r,ne);return h=typeof h=="function"?h:o,h&&y.pop(),y.length&&y[0]===r[0]?El(y,o,h):[]});function R0(r,h){return r==null?"":Gh.call(r,h)}function Co(r){var h=r==null?0:r.length;return h?r[h-1]:o}function O0(r,h,y){var D=r==null?0:r.length;if(!D)return-1;var Y=D;return y!==o&&(Y=wi(y),Y=Y<0?yn(D+Y,0):Wn(Y,D-1)),h===h?Ql(r,h,Y):Ko(r,bs,Y,!0)}function I0(r,h){return r&&r.length?K(r,wi(h)):o}var D0=ae(dp);function dp(r,h){return r&&r.length&&h&&h.length?Yt(r,h):r}function z0(r,h,y){return r&&r.length&&h&&h.length?Yt(r,h,si(y,2)):r}function k0(r,h,y){return r&&r.length&&h&&h.length?Yt(r,h,o,y):r}var B0=js(function(r,h){var y=r==null?0:r.length,D=$h(r,h);return Me(r,Yi(h,function(Y){return Xs(Y,y)?+Y:Y}).sort(Ws)),D});function N0(r,h){var y=[];if(!(r&&r.length))return y;var D=-1,Y=[],ut=r.length;for(h=si(h,3);++D<ut;){var yt=r[D];h(yt,D,r)&&(y.push(yt),Y.push(D))}return Me(r,Y),y}function lf(r){return r==null?r:Sa.call(r)}function F0(r,h,y){var D=r==null?0:r.length;return D?(y&&typeof y!="number"&&Sr(r,h,y)?(h=0,y=D):(h=h==null?0:wi(h),y=y===o?D:wi(y)),Vi(r,h,y)):[]}function U0(r,h){return Pn(r,h)}function G0(r,h,y){return Ce(r,h,si(y,2))}function H0(r,h){var y=r==null?0:r.length;if(y){var D=Pn(r,h);if(D<y&&Go(r[D],h))return D}return-1}function V0(r,h){return Pn(r,h,!0)}function W0(r,h,y){return Ce(r,h,si(y,2),!0)}function j0(r,h){var y=r==null?0:r.length;if(y){var D=Pn(r,h,!0)-1;if(Go(r[D],h))return D}return-1}function X0(r){return r&&r.length?ti(r):[]}function q0(r,h){return r&&r.length?ti(r,si(h,2)):[]}function Y0(r){var h=r==null?0:r.length;return h?Vi(r,1,h):[]}function Z0(r,h,y){return r&&r.length?(h=y||h===o?1:wi(h),Vi(r,0,h<0?0:h)):[]}function J0(r,h,y){var D=r==null?0:r.length;return D?(h=y||h===o?1:wi(h),h=D-h,Vi(r,h<0?0:h,D)):[]}function $0(r,h){return r&&r.length?Xe(r,si(h,3),!1,!0):[]}function K0(r,h){return r&&r.length?Xe(r,si(h,3)):[]}var Q0=ae(function(r){return ei(Cn(r,1,zn,!0))}),tv=ae(function(r){var h=Co(r);return zn(h)&&(h=o),ei(Cn(r,1,zn,!0),si(h,2))}),ev=ae(function(r){var h=Co(r);return h=typeof h=="function"?h:o,ei(Cn(r,1,zn,!0),o,h)});function iv(r){return r&&r.length?ei(r):[]}function nv(r,h){return r&&r.length?ei(r,si(h,2)):[]}function rv(r,h){return h=typeof h=="function"?h:o,r&&r.length?ei(r,o,h):[]}function hf(r){if(!(r&&r.length))return[];var h=0;return r=Or(r,function(y){if(zn(y))return h=yn(y.length,h),!0}),Oo(h,function(y){return Yi(r,Qo(y))})}function pp(r,h){if(!(r&&r.length))return[];var y=hf(r);return h==null?y:Yi(y,function(D){return _r(h,o,D)})}var ov=ae(function(r,h){return zn(r)?Tl(r,h):[]}),sv=ae(function(r){return Li(Or(r,zn))}),av=ae(function(r){var h=Co(r);return zn(h)&&(h=o),Li(Or(r,zn),si(h,2))}),lv=ae(function(r){var h=Co(r);return h=typeof h=="function"?h:o,Li(Or(r,zn),o,h)}),hv=ae(hf);function uv(r,h){return Ai(r||[],h||[],Ra)}function cv(r,h){return Ai(r||[],h||[],fi)}var fv=ae(function(r){var h=r.length,y=h>1?r[h-1]:o;return y=typeof y=="function"?(r.pop(),y):o,pp(r,y)});function mp(r){var h=it(r);return h.__chain__=!0,h}function dv(r,h){return h(r),r}function qu(r,h){return h(r)}var pv=js(function(r){var h=r.length,y=h?r[0]:0,D=this.__wrapped__,Y=function(ut){return $h(ut,r)};return h>1||this.__actions__.length||!(D instanceof _i)||!Xs(y)?this.thru(Y):(D=D.slice(y,+y+(h?1:0)),D.__actions__.push({func:qu,args:[Y],thisArg:o}),new Yn(D,this.__chain__).thru(function(ut){return h&&!ut.length&&ut.push(o),ut}))});function mv(){return mp(this)}function gv(){return new Yn(this.value(),this.__chain__)}function vv(){this.__values__===o&&(this.__values__=Pp(this.value()));var r=this.__index__>=this.__values__.length,h=r?o:this.__values__[this.__index__++];return{done:r,value:h}}function yv(){return this}function _v(r){for(var h,y=this;y instanceof ba;){var D=lp(y);D.__index__=0,D.__values__=o,h?Y.__wrapped__=D:h=D;var Y=D;y=y.__wrapped__}return Y.__wrapped__=r,h}function xv(){var r=this.__wrapped__;if(r instanceof _i){var h=r;return this.__actions__.length&&(h=new _i(this)),h=h.reverse(),h.__actions__.push({func:qu,args:[lf],thisArg:o}),new Yn(h,this.__chain__)}return this.thru(lf)}function wv(){return ri(this.__wrapped__,this.__actions__)}var Mv=za(function(r,h,y){Mi.call(r,y)?++r[y]:No(r,y,1)});function Tv(r,h,y){var D=vi(r)?Nh:Zn;return y&&Sr(r,h,y)&&(h=o),D(r,si(h,3))}function Sv(r,h){var y=vi(r)?Or:Nr;return y(r,si(h,3))}var Ev=Ke(hp),bv=Ke(up);function Cv(r,h){return Cn(Yu(r,h),1)}function Av(r,h){return Cn(Yu(r,h),At)}function Pv(r,h,y){return y=y===o?1:wi(y),Cn(Yu(r,h),y)}function gp(r,h){var y=vi(r)?Ji:_n;return y(r,si(h,3))}function vp(r,h){var y=vi(r)?Ss:Uu;return y(r,si(h,3))}var Lv=za(function(r,h,y){Mi.call(r,y)?r[y].push(h):No(r,y,[h])});function Rv(r,h,y,D){r=Ur(r)?r:gh(r),y=y&&!D?wi(y):0;var Y=r.length;return y<0&&(y=yn(Y+y,0)),Qu(r)?y<=Y&&r.indexOf(h,y)>-1:!!Y&&Ir(r,h,y)>-1}var Ov=ae(function(r,h,y){var D=-1,Y=typeof h=="function",ut=Ur(r)?Zt(r.length):[];return _n(r,function(yt){ut[++D]=Y?_r(h,yt,y):e(yt,h,y)}),ut}),Iv=za(function(r,h,y){No(r,y,h)});function Yu(r,h){var y=vi(r)?Yi:xt;return y(r,si(h,3))}function Dv(r,h,y,D){return r==null?[]:(vi(h)||(h=h==null?[]:[h]),y=D?o:y,vi(y)||(y=y==null?[]:[y]),ot(r,h,y))}var zv=za(function(r,h,y){r[y?0:1].push(h)},function(){return[[],[]]});function kv(r,h,y){var D=vi(r)?$l:ts,Y=arguments.length<3;return D(r,si(h,4),y,Y,_n)}function Bv(r,h,y){var D=vi(r)?Cu:ts,Y=arguments.length<3;return D(r,si(h,4),y,Y,Uu)}function Nv(r,h){var y=vi(r)?Or:Nr;return y(r,$u(si(h,3)))}function Fv(r){var h=vi(r)?Yh:We;return h(r)}function Uv(r,h,y){(y?Sr(r,h,y):h===o)?h=1:h=wi(h);var D=vi(r)?$c:Qe;return D(r,h)}function Gv(r){var h=vi(r)?Bu:qi;return h(r)}function Hv(r){if(r==null)return 0;if(Ur(r))return Qu(r)?Kr(r):r.length;var h=gr(r);return h==W||h==Kt?r.size:q(r).length}function Vv(r,h,y){var D=vi(r)?Lo:on;return y&&Sr(r,h,y)&&(h=o),D(r,si(h,3))}var Wv=ae(function(r,h){if(r==null)return[];var y=h.length;return y>1&&Sr(r,h[0],h[1])?h=[]:y>2&&Sr(h[0],h[1],h[2])&&(h=[h[0]]),ot(r,Cn(h,1),[])}),Zu=ih||function(){return vn.Date.now()};function jv(r,h){if(typeof h!="function")throw new hr(m);return r=wi(r),function(){if(--r<1)return h.apply(this,arguments)}}function yp(r,h,y){return h=y?o:h,h=r&&h==null?r.length:h,nr(r,X,o,o,o,o,h)}function _p(r,h){var y;if(typeof h!="function")throw new hr(m);return r=wi(r),function(){return--r>0&&(y=h.apply(this,arguments)),r<=1&&(h=o),y}}var uf=ae(function(r,h,y){var D=P;if(y.length){var Y=zr(y,ph(uf));D|=U}return nr(r,D,h,y,Y)}),xp=ae(function(r,h,y){var D=P|w;if(y.length){var Y=zr(y,ph(xp));D|=U}return nr(h,D,r,y,Y)});function wp(r,h,y){h=y?o:h;var D=nr(r,I,o,o,o,o,o,h);return D.placeholder=wp.placeholder,D}function Mp(r,h,y){h=y?o:h;var D=nr(r,C,o,o,o,o,o,h);return D.placeholder=Mp.placeholder,D}function Tp(r,h,y){var D,Y,ut,yt,bt,Nt,oe=0,le=!1,de=!1,ke=!0;if(typeof r!="function")throw new hr(m);h=Ao(h)||0,Mn(y)&&(le=!!y.leading,de="maxWait"in y,ut=de?yn(Ao(y.maxWait)||0,h):ut,ke="trailing"in y?!!y.trailing:ke);function Ze(kn){var Ho=D,Zs=Y;return D=Y=o,oe=kn,yt=r.apply(Zs,Ho),yt}function hi(kn){return oe=kn,bt=ou(Ri,h),le?Ze(kn):yt}function Ti(kn){var Ho=kn-Nt,Zs=kn-oe,Hp=h-Ho;return de?Wn(Hp,ut-Zs):Hp}function ui(kn){var Ho=kn-Nt,Zs=kn-oe;return Nt===o||Ho>=h||Ho<0||de&&Zs>=ut}function Ri(){var kn=Zu();if(ui(kn))return Ui(kn);bt=ou(Ri,Ti(kn))}function Ui(kn){return bt=o,ke&&D?Ze(kn):(D=Y=o,yt)}function io(){bt!==o&&Ln(bt),oe=0,D=Nt=Y=bt=o}function Er(){return bt===o?yt:Ui(Zu())}function no(){var kn=Zu(),Ho=ui(kn);if(D=arguments,Y=this,Nt=kn,Ho){if(bt===o)return hi(Nt);if(de)return Ln(bt),bt=ou(Ri,h),Ze(Nt)}return bt===o&&(bt=ou(Ri,h)),yt}return no.cancel=io,no.flush=Er,no}var Xv=ae(function(r,h){return To(r,1,h)}),qv=ae(function(r,h,y){return To(r,Ao(h)||0,y)});function Yv(r){return nr(r,Z)}function Ju(r,h){if(typeof r!="function"||h!=null&&typeof h!="function")throw new hr(m);var y=function(){var D=arguments,Y=h?h.apply(this,D):D[0],ut=y.cache;if(ut.has(Y))return ut.get(Y);var yt=r.apply(this,D);return y.cache=ut.set(Y,yt)||ut,yt};return y.cache=new(Ju.Cache||wr),y}Ju.Cache=wr;function $u(r){if(typeof r!="function")throw new hr(m);return function(){var h=arguments;switch(h.length){case 0:return!r.call(this);case 1:return!r.call(this,h[0]);case 2:return!r.call(this,h[0],h[1]);case 3:return!r.call(this,h[0],h[1],h[2])}return!r.apply(this,h)}}function Zv(r){return _p(2,r)}var Jv=li(function(r,h){h=h.length==1&&vi(h[0])?Yi(h[0],Hn(si())):Yi(Cn(h,1),Hn(si()));var y=h.length;return ae(function(D){for(var Y=-1,ut=Wn(D.length,y);++Y<ut;)D[Y]=h[Y].call(this,D[Y]);return _r(r,this,D)})}),cf=ae(function(r,h){var y=zr(h,ph(cf));return nr(r,U,o,h,y)}),Sp=ae(function(r,h){var y=zr(h,ph(Sp));return nr(r,N,o,h,y)}),$v=js(function(r,h){return nr(r,J,o,o,o,h)});function Kv(r,h){if(typeof r!="function")throw new hr(m);return h=h===o?h:wi(h),ae(r,h)}function Qv(r,h){if(typeof r!="function")throw new hr(m);return h=h==null?0:yn(wi(h),0),ae(function(y){var D=y[h],Y=wn(y,0,h);return D&&po(Y,D),_r(r,this,Y)})}function ty(r,h,y){var D=!0,Y=!0;if(typeof r!="function")throw new hr(m);return Mn(y)&&(D="leading"in y?!!y.leading:D,Y="trailing"in y?!!y.trailing:Y),Tp(r,h,{leading:D,maxWait:h,trailing:Y})}function ey(r){return yp(r,1)}function iy(r,h){return cf(ii(h),r)}function ny(){if(!arguments.length)return[];var r=arguments[0];return vi(r)?r:[r]}function ry(r){return Mr(r,R)}function oy(r,h){return h=typeof h=="function"?h:o,Mr(r,R,h)}function sy(r){return Mr(r,O|R)}function ay(r,h){return h=typeof h=="function"?h:o,Mr(r,O|R,h)}function ly(r,h){return h==null||Fu(r,h,$n(h))}function Go(r,h){return r===h||r!==r&&h!==h}var hy=bo(uh),uy=bo(function(r,h){return r>=h}),Pl=i(function(){return arguments}())?i:function(r){return Rn(r)&&Mi.call(r,"callee")&&!ul.call(r,"callee")},vi=Zt.isArray,cy=Bh?Hn(Bh):n;function Ur(r){return r!=null&&Ku(r.length)&&!qs(r)}function zn(r){return Rn(r)&&Ur(r)}function fy(r){return r===!0||r===!1||Rn(r)&&Jn(r)==Oe}var Ba=Uh||Mf,dy=ga?Hn(ga):s;function py(r){return Rn(r)&&r.nodeType===1&&!su(r)}function my(r){if(r==null)return!0;if(Ur(r)&&(vi(r)||typeof r=="string"||typeof r.splice=="function"||Ba(r)||mh(r)||Pl(r)))return!r.length;var h=gr(r);if(h==W||h==Kt)return!r.size;if(ru(r))return!q(r).length;for(var y in r)if(Mi.call(r,y))return!1;return!0}function gy(r,h){return l(r,h)}function vy(r,h,y){y=typeof y=="function"?y:o;var D=y?y(r,h):o;return D===o?l(r,h,o,y):!!D}function ff(r){if(!Rn(r))return!1;var h=Jn(r);return h==Di||h==pi||typeof r.message=="string"&&typeof r.name=="string"&&!su(r)}function yy(r){return typeof r=="number"&&nh(r)}function qs(r){if(!Mn(r))return!1;var h=Jn(r);return h==gn||h==Qi||h==Si||h==Dt}function Ep(r){return typeof r=="number"&&r==wi(r)}function Ku(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ce}function Mn(r){var h=typeof r;return r!=null&&(h=="object"||h=="function")}function Rn(r){return r!=null&&typeof r=="object"}var bp=va?Hn(va):p;function _y(r,h){return r===h||_(r,h,ef(h))}function xy(r,h,y){return y=typeof y=="function"?y:o,_(r,h,ef(h),y)}function wy(r){return Cp(r)&&r!=+r}function My(r){if(o0(r))throw new ai(u);return M(r)}function Ty(r){return r===null}function Sy(r){return r==null}function Cp(r){return typeof r=="number"||Rn(r)&&Jn(r)==Jt}function su(r){if(!Rn(r)||Jn(r)!=dt)return!1;var h=xo(r);if(h===null)return!0;var y=Mi.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&ur.call(y)==_o}var df=Eu?Hn(Eu):A;function Ey(r){return Ep(r)&&r>=-ce&&r<=ce}var Ap=bu?Hn(bu):L;function Qu(r){return typeof r=="string"||!vi(r)&&Rn(r)&&Jn(r)==z}function eo(r){return typeof r=="symbol"||Rn(r)&&Jn(r)==Q}var mh=Yl?Hn(Yl):B;function by(r){return r===o}function Cy(r){return Rn(r)&&gr(r)==nt}function Ay(r){return Rn(r)&&Jn(r)==vt}var Py=bo(rt),Ly=bo(function(r,h){return r<=h});function Pp(r){if(!r)return[];if(Ur(r))return Qu(r)?lr(r):ir(r);if(os&&r[os])return Is(r[os]());var h=gr(r),y=h==W?Kn:h==Kt?Ds:gh;return y(r)}function Ys(r){if(!r)return r===0?r:0;if(r=Ao(r),r===At||r===-At){var h=r<0?-1:1;return h*re}return r===r?r:0}function wi(r){var h=Ys(r),y=h%1;return h===h?y?h-y:h:0}function Lp(r){return r?hs(wi(r),0,It):0}function Ao(r){if(typeof r=="number")return r;if(eo(r))return Ft;if(Mn(r)){var h=typeof r.valueOf=="function"?r.valueOf():r;r=Mn(h)?h+"":h}if(typeof r!="string")return r===0?r:+r;r=_a(r);var y=zh.test(r);return y||xs.test(r)?da(r.slice(2),y?2:8):Dh.test(r)?Ft:+r}function Rp(r){return Dn(r,Gr(r))}function Ry(r){return r?hs(wi(r),-ce,ce):r===0?r:0}function Zi(r){return r==null?"":Ye(r)}var Oy=Uo(function(r,h){if(ru(h)||Ur(h)){Dn(h,$n(h),r);return}for(var y in h)Mi.call(h,y)&&Ra(r,y,h[y])}),Op=Uo(function(r,h){Dn(h,Gr(h),r)}),tc=Uo(function(r,h,y,D){Dn(h,Gr(h),r,D)}),Iy=Uo(function(r,h,y,D){Dn(h,$n(h),r,D)}),Dy=js($h);function zy(r,h){var y=as(r);return h==null?y:Zh(y,h)}var ky=ae(function(r,h){r=Ee(r);var y=-1,D=h.length,Y=D>2?h[2]:o;for(Y&&Sr(h[0],h[1],Y)&&(D=1);++y<D;)for(var ut=h[y],yt=Gr(ut),bt=-1,Nt=yt.length;++bt<Nt;){var oe=yt[bt],le=r[oe];(le===o||Go(le,yo[oe])&&!Mi.call(r,oe))&&(r[oe]=ut[oe])}return r}),By=ae(function(r){return r.push(o,Zd),_r(Ip,o,r)});function Ny(r,h){return Es(r,si(h,3),Fr)}function Fy(r,h){return Es(r,si(h,3),hh)}function Uy(r,h){return r==null?r:Sl(r,si(h,3),Gr)}function Gy(r,h){return r==null?r:lh(r,si(h,3),Gr)}function Hy(r,h){return r&&Fr(r,si(h,3))}function Vy(r,h){return r&&hh(r,si(h,3))}function Wy(r){return r==null?[]:Hs(r,$n(r))}function jy(r){return r==null?[]:Hs(r,Gr(r))}function pf(r,h,y){var D=r==null?o:us(r,h);return D===o?y:D}function Xy(r,h){return r!=null&&Kd(r,h,ch)}function mf(r,h){return r!=null&&Kd(r,h,Kh)}var qy=ve(function(r,h,y){h!=null&&typeof h.toString!="function"&&(h=fr.call(h)),r[h]=y},vf(Hr)),Yy=ve(function(r,h,y){h!=null&&typeof h.toString!="function"&&(h=fr.call(h)),Mi.call(r,h)?r[h].push(y):r[h]=[y]},si),Zy=ae(e);function $n(r){return Ur(r)?ku(r):q(r)}function Gr(r){return Ur(r)?ku(r,!0):$(r)}function Jy(r,h){var y={};return h=si(h,3),Fr(r,function(D,Y,ut){No(y,h(D,Y,ut),D)}),y}function $y(r,h){var y={};return h=si(h,3),Fr(r,function(D,Y,ut){No(y,Y,h(D,Y,ut))}),y}var Ky=Uo(function(r,h,y){wt(r,h,y)}),Ip=Uo(function(r,h,y,D){wt(r,h,y,D)}),Qy=js(function(r,h){var y={};if(r==null)return y;var D=!1;h=Yi(h,function(ut){return ut=Je(ut,r),D||(D=ut.length>1),ut}),Dn(r,Qc(r),y),D&&(y=Mr(y,O|k|R,qg));for(var Y=h.length;Y--;)Wi(y,h[Y]);return y});function t_(r,h){return Dp(r,$u(si(h)))}var e_=js(function(r,h){return r==null?{}:kt(r,h)});function Dp(r,h){if(r==null)return{};var y=Yi(Qc(r),function(D){return[D]});return h=si(h),ee(r,y,function(D,Y){return h(D,Y[0])})}function i_(r,h,y){h=Je(h,r);var D=-1,Y=h.length;for(Y||(Y=1,r=o);++D<Y;){var ut=r==null?o:r[fs(h[D])];ut===o&&(D=Y,ut=y),r=qs(ut)?ut.call(r):ut}return r}function n_(r,h,y){return r==null?r:fi(r,h,y)}function r_(r,h,y,D){return D=typeof D=="function"?D:o,r==null?r:fi(r,h,y,D)}var zp=Vu($n),kp=Vu(Gr);function o_(r,h,y){var D=vi(r),Y=D||Ba(r)||mh(r);if(h=si(h,4),y==null){var ut=r&&r.constructor;Y?y=D?new ut:[]:Mn(r)?y=qs(ut)?as(xo(r)):{}:y={}}return(Y?Ji:Fr)(r,function(yt,bt,Nt){return h(y,yt,bt,Nt)}),y}function s_(r,h){return r==null?!0:Wi(r,h)}function a_(r,h,y){return r==null?r:Ae(r,h,ii(y))}function l_(r,h,y,D){return D=typeof D=="function"?D:o,r==null?r:Ae(r,h,ii(y),D)}function gh(r){return r==null?[]:Cs(r,$n(r))}function h_(r){return r==null?[]:Cs(r,Gr(r))}function u_(r,h,y){return y===o&&(y=h,h=o),y!==o&&(y=Ao(y),y=y===y?y:0),h!==o&&(h=Ao(h),h=h===h?h:0),hs(Ao(r),h,y)}function c_(r,h,y){return h=Ys(h),y===o?(y=h,h=0):y=Ys(y),r=Ao(r),fh(r,h,y)}function f_(r,h,y){if(y&&typeof y!="boolean"&&Sr(r,h,y)&&(h=y=o),y===o&&(typeof h=="boolean"?(y=h,h=o):typeof r=="boolean"&&(y=r,r=o)),r===o&&h===o?(r=0,h=1):(r=Ys(r),h===o?(h=r,r=0):h=Ys(h)),r>h){var D=r;r=h,h=D}if(y||r%1||h%1){var Y=rh();return Wn(r+Y*(h-r+nl("1e-"+((Y+"").length-1))),h)}return ge(r,h)}var d_=ze(function(r,h,y){return h=h.toLowerCase(),r+(y?Bp(h):h)});function Bp(r){return gf(Zi(r).toLowerCase())}function Np(r){return r=Zi(r),r&&r.replace(ql,Ps).replace(kh,"")}function p_(r,h,y){r=Zi(r),h=Ye(h);var D=r.length;y=y===o?D:hs(wi(y),0,D);var Y=y;return y-=h.length,y>=0&&r.slice(y,Y)==h}function m_(r){return r=Zi(r),r&&lo.test(r)?r.replace(zi,$r):r}function g_(r){return r=Zi(r),r&&Vl.test(r)?r.replace(Ja,"\\$&"):r}var v_=ze(function(r,h,y){return r+(y?"-":"")+h.toLowerCase()}),y_=ze(function(r,h,y){return r+(y?" ":"")+h.toLowerCase()}),__=Te("toLowerCase");function x_(r,h,y){r=Zi(r),h=wi(h);var D=h?Kr(r):0;if(!h||D>=h)return r;var Y=(h-D)/2;return an(Bs(Y),y)+r+an(zo(Y),y)}function w_(r,h,y){r=Zi(r),h=wi(h);var D=h?Kr(r):0;return h&&D<h?r+an(h-D,y):r}function M_(r,h,y){r=Zi(r),h=wi(h);var D=h?Kr(r):0;return h&&D<h?an(h-D,y)+r:r}function T_(r,h,y){return y||h==null?h=0:h&&(h=+h),Hh(Zi(r).replace(ho,""),h||0)}function S_(r,h,y){return(y?Sr(r,h,y):h===o)?h=1:h=wi(h),be(Zi(r),h)}function E_(){var r=arguments,h=Zi(r[0]);return r.length<3?h:h.replace(r[1],r[2])}var b_=ze(function(r,h,y){return r+(y?"_":"")+h.toLowerCase()});function C_(r,h,y){return y&&typeof y!="number"&&Sr(r,h,y)&&(h=y=o),y=y===o?It:y>>>0,y?(r=Zi(r),r&&(typeof h=="string"||h!=null&&!df(h))&&(h=Ye(h),!h&&Dr(r))?wn(lr(r),0,y):r.split(h,y)):[]}var A_=ze(function(r,h,y){return r+(y?" ":"")+gf(h)});function P_(r,h,y){return r=Zi(r),y=y==null?0:hs(wi(y),0,r.length),h=Ye(h),r.slice(y,y+h.length)==h}function L_(r,h,y){var D=it.templateSettings;y&&Sr(r,h,y)&&(h=o),r=Zi(r),h=tc({},h,D,Yd);var Y=tc({},h.imports,D.imports,Yd),ut=$n(Y),yt=Cs(Y,ut),bt,Nt,oe=0,le=h.interpolate||Zr,de="__p += '",ke=Qn((h.escape||Zr).source+"|"+le.source+"|"+(le===ra?co:Zr).source+"|"+(h.evaluate||Zr).source+"|$","g"),Ze="//# sourceURL="+(Mi.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ca+"]")+`
|
|
2620
2620
|
`;r.replace(ke,function(ui,Ri,Ui,io,Er,no){return Ui||(Ui=io),de+=r.slice(oe,no).replace(V,Ls),Ri&&(bt=!0,de+=`' +
|
|
2621
2621
|
__e(`+Ri+`) +
|
|
2622
|
-
'`),Er&&(
|
|
2622
|
+
'`),Er&&(Nt=!0,de+=`';
|
|
2623
2623
|
`+Er+`;
|
|
2624
2624
|
__p += '`),Ui&&(de+=`' +
|
|
2625
2625
|
((__t = (`+Ui+`)) == null ? '' : __t) +
|
|
@@ -2627,13 +2627,13 @@ __p += '`),Ui&&(de+=`' +
|
|
|
2627
2627
|
`;var hi=Mi.call(h,"variable")&&h.variable;if(!hi)de=`with (obj) {
|
|
2628
2628
|
`+de+`
|
|
2629
2629
|
}
|
|
2630
|
-
`;else if(aa.test(hi))throw new ai(g);de=(
|
|
2630
|
+
`;else if(aa.test(hi))throw new ai(g);de=(Nt?de.replace(Yr,""):de).replace(ar,"$1").replace(sn,"$1;"),de="function("+(hi||"obj")+`) {
|
|
2631
2631
|
`+(hi?"":`obj || (obj = {});
|
|
2632
|
-
`)+"var __t, __p = ''"+(bt?", __e = _.escape":"")+(
|
|
2632
|
+
`)+"var __t, __p = ''"+(bt?", __e = _.escape":"")+(Nt?`, __j = Array.prototype.join;
|
|
2633
2633
|
function print() { __p += __j.call(arguments, '') }
|
|
2634
2634
|
`:`;
|
|
2635
2635
|
`)+de+`return __p
|
|
2636
|
-
}`;var Ti=Up(function(){return Fi(ut,Ze+"return "+de).apply(o,yt)});if(Ti.source=de,ff(Ti))throw Ti;return Ti}function R_(r){return Zi(r).toLowerCase()}function O_(r){return Zi(r).toUpperCase()}function I_(r,h,y){if(r=Zi(r),r&&(y||h===o))return _a(r);if(!r||!(h=Ye(h)))return r;var D=lr(r),Y=lr(h),ut=is(D,Y),yt=As(D,Y)+1;return wn(D,ut,yt).join("")}function D_(r,h,y){if(r=Zi(r),r&&(y||h===o))return r.slice(0,xa(r)+1);if(!r||!(h=Ye(h)))return r;var D=lr(r),Y=As(D,lr(h))+1;return wn(D,0,Y).join("")}function z_(r,h,y){if(r=Zi(r),r&&(y||h===o))return r.replace(ho,"");if(!r||!(h=Ye(h)))return r;var D=lr(r),Y=is(D,lr(h));return wn(D,Y).join("")}function k_(r,h){var y=ct,D=Rt;if(Mn(h)){var Y="separator"in h?h.separator:Y;y="length"in h?wi(h.length):y,D="omission"in h?Ye(h.omission):D}r=Zi(r);var ut=r.length;if(Dr(r)){var yt=lr(r);ut=yt.length}if(y>=ut)return r;var bt=y-Kr(D);if(bt<1)return D;var Bt=yt?wn(yt,0,bt).join(""):r.slice(0,bt);if(Y===o)return Bt+D;if(yt&&(bt+=Bt.length-bt),df(Y)){if(r.slice(bt).search(Y)){var oe,le=Bt;for(Y.global||(Y=Qn(Y.source,Zi(jl.exec(Y))+"g")),Y.lastIndex=0;oe=Y.exec(le);)var de=oe.index;Bt=Bt.slice(0,de===o?bt:de)}}else if(r.indexOf(Ye(Y),bt)!=bt){var ke=Bt.lastIndexOf(Y);ke>-1&&(Bt=Bt.slice(0,ke))}return Bt+D}function B_(r){return r=Zi(r),r&&Zo.test(r)?r.replace(Po,th):r}var N_=ze(function(r,h,y){return r+(y?" ":"")+h.toUpperCase()}),gf=Te("toUpperCase");function Fp(r,h,y){return r=Zi(r),h=y?o:h,h===o?Os(r)?Xc(r):ol(r):r.match(h)||[]}var Up=ae(function(r,h){try{return _r(r,o,h)}catch(y){return ff(y)?y:new ai(y)}}),F_=js(function(r,h){return Ji(h,function(y){y=fs(y),No(r,y,uf(r[y],r))}),r});function U_(r){var h=r==null?0:r.length,y=si();return r=h?Yi(r,function(D){if(typeof D[1]!="function")throw new hr(m);return[y(D[0]),D[1]]}):[],ae(function(D){for(var Y=-1;++Y<h;){var ut=r[Y];if(_r(ut[0],this,D))return _r(ut[1],this,D)}})}function G_(r){return Oa(Mr(r,O))}function vf(r){return function(){return r}}function H_(r,h){return r==null||r!==r?h:r}var V_=Oi(),W_=Oi(!0);function Hr(r){return r}function yf(r){return H(typeof r=="function"?r:Mr(r,O))}function j_(r){return gt(Mr(r,O))}function X_(r,h){return Ct(r,Mr(h,O))}var q_=ae(function(r,h){return function(y){return e(y,r,h)}}),Y_=ae(function(r,h){return function(y){return e(r,y,h)}});function _f(r,h,y){var D=$n(h),Y=Hs(h,D);y==null&&!(Mn(h)&&(Y.length||!D.length))&&(y=h,h=r,r=this,Y=Hs(h,$n(h)));var ut=!(Mn(y)&&"chain"in y)||!!y.chain,yt=qs(r);return Ji(Y,function(bt){var Bt=h[bt];r[bt]=Bt,yt&&(r.prototype[bt]=function(){var oe=this.__chain__;if(ut||oe){var le=r(this.__wrapped__),de=le.__actions__=ir(this.__actions__);return de.push({func:Bt,args:arguments,thisArg:r}),le.__chain__=oe,le}return Bt.apply(r,po([this.value()],arguments))})}),r}function Z_(){return vn._===this&&(vn._=Qr),this}function xf(){}function J_(r){return r=wi(r),ae(function(h){return K(h,r)})}var $_=Fn(Yi),K_=Fn(Nh),Q_=Fn(Lo);function Gp(r){return rf(r)?Qo(fs(r)):$t(r)}function t1(r){return function(h){return r==null?o:us(r,h)}}var e1=iu(),i1=iu(!0);function wf(){return[]}function Mf(){return!1}function n1(){return{}}function r1(){return""}function o1(){return!0}function s1(r,h){if(r=wi(r),r<1||r>ce)return[];var y=It,D=Wn(r,It);h=si(h),r-=It;for(var Y=Oo(D,h);++y<r;)h(y);return Y}function a1(r){return vi(r)?Yi(r,fs):eo(r)?[r]:ir(ap(Zi(r)))}function l1(r){var h=++cr;return Zi(r)+h}var h1=Tr(function(r,h){return r+h},0),u1=dh("ceil"),c1=Tr(function(r,h){return r/h},1),f1=dh("floor");function d1(r){return r&&r.length?So(r,Hr,uh):o}function p1(r,h){return r&&r.length?So(r,si(h,2),uh):o}function m1(r){return ya(r,Hr)}function g1(r,h){return ya(r,si(h,2))}function v1(r){return r&&r.length?So(r,Hr,rt):o}function y1(r,h){return r&&r.length?So(r,si(h,2),rt):o}var _1=Tr(function(r,h){return r*h},1),x1=dh("round"),w1=Tr(function(r,h){return r-h},0);function M1(r){return r&&r.length?es(r,Hr):0}function T1(r,h){return r&&r.length?es(r,si(h,2)):0}return it.after=jv,it.ary=yp,it.assign=Oy,it.assignIn=Op,it.assignInWith=tc,it.assignWith=Iy,it.at=Dy,it.before=_p,it.bind=uf,it.bindAll=F_,it.bindKey=xp,it.castArray=ny,it.chain=mp,it.chunk=f0,it.compact=d0,it.concat=p0,it.cond=U_,it.conforms=G_,it.constant=vf,it.countBy=Mv,it.create=zy,it.curry=wp,it.curryRight=Mp,it.debounce=Tp,it.defaults=ky,it.defaultsDeep=By,it.defer=Xv,it.delay=qv,it.difference=m0,it.differenceBy=g0,it.differenceWith=v0,it.drop=y0,it.dropRight=_0,it.dropRightWhile=x0,it.dropWhile=w0,it.fill=M0,it.filter=Sv,it.flatMap=Cv,it.flatMapDeep=Av,it.flatMapDepth=Pv,it.flatten=cp,it.flattenDeep=T0,it.flattenDepth=S0,it.flip=Yv,it.flow=V_,it.flowRight=W_,it.fromPairs=E0,it.functions=Wy,it.functionsIn=jy,it.groupBy=Lv,it.initial=C0,it.intersection=A0,it.intersectionBy=P0,it.intersectionWith=L0,it.invert=qy,it.invertBy=Yy,it.invokeMap=Ov,it.iteratee=yf,it.keyBy=Iv,it.keys=$n,it.keysIn=Gr,it.map=Yu,it.mapKeys=Jy,it.mapValues=$y,it.matches=j_,it.matchesProperty=X_,it.memoize=Ju,it.merge=Ky,it.mergeWith=Ip,it.method=q_,it.methodOf=Y_,it.mixin=_f,it.negate=$u,it.nthArg=J_,it.omit=Qy,it.omitBy=t_,it.once=Zv,it.orderBy=Dv,it.over=$_,it.overArgs=Jv,it.overEvery=K_,it.overSome=Q_,it.partial=cf,it.partialRight=Sp,it.partition=zv,it.pick=e_,it.pickBy=Dp,it.property=Gp,it.propertyOf=t1,it.pull=D0,it.pullAll=dp,it.pullAllBy=z0,it.pullAllWith=k0,it.pullAt=B0,it.range=e1,it.rangeRight=i1,it.rearg=$v,it.reject=Nv,it.remove=N0,it.rest=Kv,it.reverse=lf,it.sampleSize=Uv,it.set=n_,it.setWith=r_,it.shuffle=Gv,it.slice=F0,it.sortBy=Wv,it.sortedUniq=X0,it.sortedUniqBy=q0,it.split=C_,it.spread=Qv,it.tail=Y0,it.take=Z0,it.takeRight=J0,it.takeRightWhile=$0,it.takeWhile=K0,it.tap=dv,it.throttle=ty,it.thru=qu,it.toArray=Pp,it.toPairs=zp,it.toPairsIn=kp,it.toPath=a1,it.toPlainObject=Rp,it.transform=o_,it.unary=ey,it.union=Q0,it.unionBy=tv,it.unionWith=ev,it.uniq=iv,it.uniqBy=nv,it.uniqWith=rv,it.unset=s_,it.unzip=hf,it.unzipWith=pp,it.update=a_,it.updateWith=l_,it.values=gh,it.valuesIn=h_,it.without=ov,it.words=Fp,it.wrap=iy,it.xor=sv,it.xorBy=av,it.xorWith=lv,it.zip=hv,it.zipObject=uv,it.zipObjectDeep=cv,it.zipWith=fv,it.entries=zp,it.entriesIn=kp,it.extend=Op,it.extendWith=tc,_f(it,it),it.add=h1,it.attempt=Up,it.camelCase=d_,it.capitalize=Bp,it.ceil=u1,it.clamp=u_,it.clone=ry,it.cloneDeep=sy,it.cloneDeepWith=ay,it.cloneWith=oy,it.conformsTo=ly,it.deburr=Np,it.defaultTo=H_,it.divide=c1,it.endsWith=p_,it.eq=Go,it.escape=m_,it.escapeRegExp=g_,it.every=Tv,it.find=Ev,it.findIndex=hp,it.findKey=Ny,it.findLast=bv,it.findLastIndex=up,it.findLastKey=Fy,it.floor=f1,it.forEach=gp,it.forEachRight=vp,it.forIn=Uy,it.forInRight=Gy,it.forOwn=Hy,it.forOwnRight=Vy,it.get=pf,it.gt=hy,it.gte=uy,it.has=Xy,it.hasIn=mf,it.head=fp,it.identity=Hr,it.includes=Rv,it.indexOf=b0,it.inRange=c_,it.invoke=Zy,it.isArguments=Pl,it.isArray=vi,it.isArrayBuffer=cy,it.isArrayLike=Ur,it.isArrayLikeObject=zn,it.isBoolean=fy,it.isBuffer=Ba,it.isDate=dy,it.isElement=py,it.isEmpty=my,it.isEqual=gy,it.isEqualWith=vy,it.isError=ff,it.isFinite=yy,it.isFunction=qs,it.isInteger=Ep,it.isLength=Ku,it.isMap=bp,it.isMatch=_y,it.isMatchWith=xy,it.isNaN=wy,it.isNative=My,it.isNil=Sy,it.isNull=Ty,it.isNumber=Cp,it.isObject=Mn,it.isObjectLike=Rn,it.isPlainObject=su,it.isRegExp=df,it.isSafeInteger=Ey,it.isSet=Ap,it.isString=Qu,it.isSymbol=eo,it.isTypedArray=mh,it.isUndefined=by,it.isWeakMap=Cy,it.isWeakSet=Ay,it.join=R0,it.kebabCase=v_,it.last=Co,it.lastIndexOf=O0,it.lowerCase=y_,it.lowerFirst=__,it.lt=Py,it.lte=Ly,it.max=d1,it.maxBy=p1,it.mean=m1,it.meanBy=g1,it.min=v1,it.minBy=y1,it.stubArray=wf,it.stubFalse=Mf,it.stubObject=n1,it.stubString=r1,it.stubTrue=o1,it.multiply=_1,it.nth=I0,it.noConflict=Z_,it.noop=xf,it.now=Zu,it.pad=x_,it.padEnd=w_,it.padStart=M_,it.parseInt=T_,it.random=f_,it.reduce=kv,it.reduceRight=Bv,it.repeat=S_,it.replace=E_,it.result=i_,it.round=x1,it.runInContext=Lt,it.sample=Fv,it.size=Hv,it.snakeCase=b_,it.some=Vv,it.sortedIndex=U0,it.sortedIndexBy=G0,it.sortedIndexOf=H0,it.sortedLastIndex=V0,it.sortedLastIndexBy=W0,it.sortedLastIndexOf=j0,it.startCase=A_,it.startsWith=P_,it.subtract=w1,it.sum=M1,it.sumBy=T1,it.template=L_,it.times=s1,it.toFinite=Ys,it.toInteger=wi,it.toLength=Lp,it.toLower=R_,it.toNumber=Ao,it.toSafeInteger=Ry,it.toString=Zi,it.toUpper=O_,it.trim=I_,it.trimEnd=D_,it.trimStart=z_,it.truncate=k_,it.unescape=B_,it.uniqueId=l1,it.upperCase=N_,it.upperFirst=gf,it.each=gp,it.eachRight=vp,it.first=fp,_f(it,function(){var r={};return Fr(it,function(h,y){Mi.call(it.prototype,y)||(r[y]=h)}),r}(),{chain:!1}),it.VERSION=c,Ji(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){it[r].placeholder=it}),Ji(["drop","take"],function(r,h){_i.prototype[r]=function(y){y=y===o?1:yn(wi(y),0);var D=this.__filtered__&&!h?new _i(this):this.clone();return D.__filtered__?D.__takeCount__=Wn(y,D.__takeCount__):D.__views__.push({size:Wn(y,It),type:r+(D.__dir__<0?"Right":"")}),D},_i.prototype[r+"Right"]=function(y){return this.reverse()[r](y).reverse()}}),Ji(["filter","map","takeWhile"],function(r,h){var y=h+1,D=y==G||y==Et;_i.prototype[r]=function(Y){var ut=this.clone();return ut.__iteratees__.push({iteratee:si(Y,3),type:y}),ut.__filtered__=ut.__filtered__||D,ut}}),Ji(["head","last"],function(r,h){var y="take"+(h?"Right":"");_i.prototype[r]=function(){return this[y](1).value()[0]}}),Ji(["initial","tail"],function(r,h){var y="drop"+(h?"":"Right");_i.prototype[r]=function(){return this.__filtered__?new _i(this):this[y](1)}}),_i.prototype.compact=function(){return this.filter(Hr)},_i.prototype.find=function(r){return this.filter(r).head()},_i.prototype.findLast=function(r){return this.reverse().find(r)},_i.prototype.invokeMap=ae(function(r,h){return typeof r=="function"?new _i(this):this.map(function(y){return e(y,r,h)})}),_i.prototype.reject=function(r){return this.filter($u(si(r)))},_i.prototype.slice=function(r,h){r=wi(r);var y=this;return y.__filtered__&&(r>0||h<0)?new _i(y):(r<0?y=y.takeRight(-r):r&&(y=y.drop(r)),h!==o&&(h=wi(h),y=h<0?y.dropRight(-h):y.take(h-r)),y)},_i.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},_i.prototype.toArray=function(){return this.take(It)},Fr(_i.prototype,function(r,h){var y=/^(?:filter|find|map|reject)|While$/.test(h),D=/^(?:head|last)$/.test(h),Y=it[D?"take"+(h=="last"?"Right":""):h],ut=D||/^find/.test(h);Y&&(it.prototype[h]=function(){var yt=this.__wrapped__,bt=D?[1]:arguments,Bt=yt instanceof _i,oe=bt[0],le=Bt||vi(yt),de=function(Ri){var Ui=Y.apply(it,po([Ri],bt));return D&&ke?Ui[0]:Ui};le&&y&&typeof oe=="function"&&oe.length!=1&&(Bt=le=!1);var ke=this.__chain__,Ze=!!this.__actions__.length,hi=ut&&!ke,Ti=Bt&&!Ze;if(!ut&&le){yt=Ti?yt:new _i(this);var ui=r.apply(yt,bt);return ui.__actions__.push({func:qu,args:[de],thisArg:o}),new Yn(ui,ke)}return hi&&Ti?r.apply(this,bt):(ui=this.thru(de),hi?D?ui.value()[0]:ui.value():ui)})}),Ji(["pop","push","shift","sort","splice","unshift"],function(r){var h=In[r],y=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",D=/^(?:pop|shift)$/.test(r);it.prototype[r]=function(){var Y=arguments;if(D&&!this.__chain__){var ut=this.value();return h.apply(vi(ut)?ut:[],Y)}return this[y](function(yt){return h.apply(vi(yt)?yt:[],Y)})}}),Fr(_i.prototype,function(r,h){var y=it[h];if(y){var D=y.name+"";Mi.call(ss,D)||(ss[D]=[]),ss[D].push({name:h,func:y})}}),ss[$i(o,w).name]=[{name:"wrapper",func:o}],_i.prototype.clone=Ca,_i.prototype.reverse=Iu,_i.prototype.value=Aa,it.prototype.at=pv,it.prototype.chain=mv,it.prototype.commit=gv,it.prototype.next=vv,it.prototype.plant=_v,it.prototype.reverse=xv,it.prototype.toJSON=it.prototype.valueOf=it.prototype.value=wv,it.prototype.first=it.prototype.head,os&&(it.prototype[os]=yv),it},ns=qc();Jr?((Jr.exports=ns)._=ns,$o._=ns):vn._=ns}).call(br)}(hu,hu.exports);var hm=hu.exports;const ic=ec(hm);class um{constructor(a=[],o=!1){Vo(this,"simplifyFunc",a=>{try{a=turf.simplify(a,{tolerance:5e-4,highQuality:!1,mutate:!0})}catch{}return a});mars3d&&(this.vectorArr=a,this.geoJsonType=new Map([["Point"],["LineString"],["Polygon"],["MultiPoint"],["MultiLineString"],["MultiPolygon"]]),this.avoidanceArr=[],this.editDate={id:""},this.isDynamicMasking=o,this.disabled=!1)}remove(a,o=null){o&&o.isClone=="true"?window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(a,"vectorId")):(window.map.removeLayer(window.map.getLayer(a,"vectorId")),window.dynamicMasking&&window.dynamicMasking.remove(a))}add(a,o){return new Promise((c,f)=>{let u,m=o==null?void 0:o.isClone;if(typeof a!="object"){let g=window.map.getLayer(a,"vectorId");if(g)return c(g);u=this.query(a)}else{let g=window.map.getLayer(a.id,"vectorId");if(g)return c(g);u=a}if(u){let{value:g,url:v,id:S,title:b}=u;new Cesium.Resource({url:v}).fetchJson().then(k=>{let{id:R,title:F,shpInfo:E}=u,{attributes:P,geometryType:w,geometryCount:T,pointCount:I}=E;if(P){let{width:C,materialType:U,materialOptions:N,clampToGround:X,distanceDisplayCondition:J,distanceDisplayCondition_near:Z,distanceDisplayCondition_far:ct,zIndex:Rt,label:tt,fill:_t,diffHeight:G,outline:Pt,outlineStyle:Et,color:At,pixelSize:ce,outlineColor:re,outlineWidth:Ft,classificationType:It,setHeight:Nt}=JSON.parse(P),Pe;switch(tt.height==""&&(tt.height=null),this.isDynamicMasking?(tt.color=Cesium.Color.fromCssColorString(tt.color).withAlpha(0),tt.outlineColor=Cesium.Color.fromCssColorString(tt.outlineColor).withAlpha(.001),tt.backgroundColor=Cesium.Color.fromCssColorString(tt.backgroundColor).withAlpha(.001),tt.background=!1,tt.outline=!1,tt.show=!1):(tt.color=Cesium.Color.fromCssColorString(tt.color),tt.outlineColor=Cesium.Color.fromCssColorString(tt.outlineColor),tt.backgroundColor=Cesium.Color.fromCssColorString(tt.backgroundColor)),w){case"LineString":case"MultiLineString":tt.backgroundPadding=5,Pe=new mars3d.layer.GeoJsonLayer({data:k,vectorId:R,symbol:{type:"polylineC",styleOptions:{width:C,clampToGround:X,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:Z,materialType:U,materialOptions:N,classificationType:It,setHeight:Nt,label:tt}},hasZIndex:!0,zIndex:Rt});break;case"Polygon":case"MultiPolygon":U=="PolyGrass"&&(N={evenColor:new Cesium.Color(.25,.4,.1,1),oddColor:new Cesium.Color(.1,.1,.1,1),frequency:1.5}),Pe=new mars3d.layer.GeoJsonLayer({data:k,vectorId:R,symbol:{type:"polygon",styleOptions:{fill:_t,diffHeight:G,clampToGround:X,materialType:U,materialOptions:N,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:Z,outlineStyle:Et,outline:Pt,classificationType:It,setHeight:Nt,label:tt}}});break;case"Point":case"MultiPoint":Pe=new mars3d.layer.GeoJsonLayer({data:k,vectorId:R,symbol:{type:"pointC",styleOptions:{color:At,pixelSize:ce,outline:Pt,outlineColor:re,outlineWidth:Ft,visibleDepth:!1,label:tt}}});break}m?window.mapClone.mapEx.addLayer(Pe):window.map.addLayer(Pe),Pe.bindPopup(Wt=>{if(this.disabled==!0)return!1;let $e='<div class="bim-map-popup">';return Object.keys(Wt.graphic.attr).forEach((Si,Oe)=>{Wt.graphic.attr[Si]&&($e+=`<p><b>${Si}</b> : ${Wt.graphic.attr[Si]}</p>`)}),$e+="</div>",$e});let pe=ic.debounce(Wt=>{window.dynamicMasking.add(Wt,JSON.parse(P))},500);Pe.readyPromise.then(Wt=>{window.dynamicMasking&&pe(Wt),c(Wt)}).catch(Wt=>{c({tite:"【矢量】「"+F+"」无法加载",type:"error",id:R,url:v})})}else c({tite:"【矢量】「"+F+"」无法加载",type:"error",id:R,url:v})}).catch(k=>{c({tite:"【矢量】「"+b+"」链接地址有误",type:"error",id:S,url:v})})}else c({tite:"【矢量】ID:「"+a+"」已删除",type:"error",id:a})})}updateData(a){this.vectorArr=a}processingKML(a){let o,c=2e3,f=!0,{kmlInfo:u}=a,{fill:m,areaColor:g,areaSideColor:v,transparency:S,isAreaSideColor:b,minDistinct:O,textDistinct:k,textSize:R,textColor:F,fontStyle:E,outLine:P,sideColor:w,backGround:T,backGroundColor:I,clampToGround:C}=u,U={fill:m,color:g,opacity:S||.5,outline:b,outlineColor:v,outlineWidth:2,clampToGround:C,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:O||0,classificationType:o,opacity:String(S)},N={text:"{name}",horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffsetY:-10,font_size:26,color:F||"#ffffff",font_family:E||"黑体",outline:P||!0,outlineColor:w||"#000000",outlineWidth:4,scaleByDistance:!0,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:O||0,background:T||!1,backgroundColor:I||"",visibleDepth:f,clampToGround:C||!1,disableDepthTestDistance:c};return{...U,label:N}}selected(a){window.map.getLayer(a,"vectorId")&&window.map.getLayer(a,"vectorId").flyTo()}query(a){return this.vectorArr.length==0?!1:this.vectorArr.find(o=>o.id==a)}queryVector(a){return window.map.getLayer(a,"vectorId")}editVector(a,o,c){let f=window.map.getLayer(a,"vectorId"),u=Cf(o,c);f&&(f.eachGraphic(m=>{m.label&&m.label.show===!1&&(delete m.label.outline,delete m.label.background,delete m.label.outlineColor,delete m.label.backgroundColor),u.label&&u.label.height==""&&(u.label.height=null),m.setStyle({...u})}),window.dynamicMasking&&dynamicMasking.modify(a,u))}nationalBoundaries(a="/gis/nationalBoundaries.json"){let o=new mars3d.layer.GeoJsonLayer({name:"国界",url:a,vectorId:"border",format:c=>{try{c=turf.simplify(c,{tolerance:1e-5,highQuality:!1,mutate:!0})}catch{}return c},symbol:{type:"polylineC",styleOptions:{width:2,materialType:"Color",materialOptions:{color:"#CD9B1D"},distanceDisplayCondition:!0,distanceDisplayCondition_near:1e3,distanceDisplayCondition_far:2e7,clampToGround:!0,classificationType:Cesium.ClassificationType.TERRAIN}}});map.addLayer(o)}switchDynamicMasking(a){this.isDynamicMasking=a}}class cm{constructor(a=[]){mars3d&&(this.terrainProviderArr=a,this.terrainProviderId="",this.events={},window.map.on(mars3d.EventType.terrainLoadError,o=>{this.hide()}),window.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(o=>{window.map.viewer.scene.globe.tilesLoaded&&this.emit("load",o)}))}add(a,o){if(o==null?void 0:o.isClone)mapClone&&(window.mapClone.mapEx.terrainProvider=window.map.terrainProvider);else{let f,u;if(typeof a=="string"?(f=a,u=this.terrainProviderArr.find(m=>m.id==f).url):(f=a.id,u=a.url),this.terrainProviderId==f&&window.map.terrainProvider._layers)return!1;window.map.terrainProvider=mars3d.LayerUtil.createTerrainProvider({imageXyzId:f,type:"xyz",url:u,requestVertexNormals:!0,requestMetadata:!0,clip:!0,flat:!0,uplift:!0,flood:!0}),this.terrainProviderId=f}}show(a){(a==null?void 0:a.isClone)?window.mapClone.mapEx.hasTerrain=!0:window.map.hasTerrain=!0}hide(a){(a==null?void 0:a.isClone)?window.mapClone.mapEx.hasTerrain=!1:window.map.hasTerrain=!1}on(a,o){a=="load"&&(this.events[a]?this.events[a].push(o):this.events[a]=[o])}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}addClip(a){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipGisAdd(a)):c("挖洞工具未初始化")})}}class fm{constructor(a=[],o){mars3d&&(this.elevationImageArr=a,this.elevationImageLayer,o?this.gisTkone={Authorization:`Bearer ${o}`}:this.gisTkone={},this.form={brightnessVal:1.3,msaaSamples:4,surfaceOpacity:1,layerOpacity:1,layerBrightness:2,layerContrast:1,layerHue:0,layerSaturation:1,layerGamma:1},this.tdtLayer=null)}pushVector(a){this.elevationImageArr.push(a)}add(a,o=!0,c){let f;if(typeof a!="object"?f=a:f=a.imageXyzId,window.map.getLayer(f,"imageXyzId"))return!1;const{layerOpacity:u,layerBrightness:m,layerContrast:g,layerHue:v,layerSaturation:S,layerGamma:b,surfaceOpacity:O}=this.exposureEnvironmentSettings();return new Promise((k,R)=>{let F,E,P,w,T,I;if(typeof a!="object"){let C=this.query(a);C||R("缺少树结构");let{gisInfo:U}=C,{id:N,order:X,minLevel:J,maxLevel:Z,domType:ct}=U||C;F=N,E=C.url,P=J,w=Z}else F=a.imageXyzId,E=a.url,a.zIndex,P=a.minimumLevel,w=a.maximumLevel,T=a.chinaCRS,I=a.domType;if(I&&I==1){this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:F,url:"http://t0.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles&tk=05f82820fb03b98230c625a0a15aff78",hasZIndex:!0,zIndex:0,minimumLevel:0,maximumLevel:15,chinaCRS:"GCJ02"}),window.map.addLayer(this.elevationImageLayer),k(this.elevationImageLayer);return}this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:F,type:"xyz",url:E,hasZIndex:!0,zIndex:9,brightness:m,opacity:u,saturation:S,contrast:g,hue:v,gamma:b,alpha:O,show:!0,minimumLevel:P||0,maximumLevel:w||15,chinaCRS:T,headers:o?this.gisTkone:null}),this.elevationImageLayer.on(mars3d.EventType.load,C=>{k(C)}),window.map.addLayer(this.elevationImageLayer),c&&Object.keys(c).forEach(C=>{this.elevationImageLayer.on(fnType.get(C),U=>{c[C](U)})})})}remove(a){window.map.removeLayer(window.map.getLayer(a,"imageXyzId"))}query(a){return this.elevationImageArr.length==0?!1:this.elevationImageArr.find(o=>o.id==a)}initial(){this.elevationImageArr=[],this.elevationImageLayer=null}exposureEnvironmentSettings(){return localStorage.getItem("environmentSettings")?JSON.parse(localStorage.getItem("environmentSettings")):(localStorage.setItem("environmentSettings",JSON.stringify(this.form)),JSON.parse(JSON.stringify(this.form)))}}class dm{constructor(a,...o){Vo(this,"manualFreed",ic.debounce(()=>{let{lng:a,lat:o,alt:c,pitch:f}=window.map.getCameraView(),u;this.modelArray.forEach(m=>{var g;u=(g=m.bimModel)!=null&&g.releasedDistance?m.bimModel.releasedDistance:m.releasedDistance?m.releasedDistance:1e4,this.disTance([a,o,c],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(f,u))?window.map.getLayer(m.id,"modelId")&&this.emit("leave",m):window.map.getLayer(m.id,"modelId")||this.emit("enter",m)})},200));mars3d&&(a&&a!=null&&(this.modelArray=a),this.showModelArray=[],this.Cesium=mars3d.Cesium,this.events={})}on(a,o){(a=="enter"||a=="leave")&&(this.events[a]?this.events[a].push(o):this.events[a]=[o])}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}say(a){return this[a]}add(a,o){this[a].push(o)}remove(a,o){this[a]=this[a].filter(function(c){return c!==o})}initial(){this.modelArray=[],this.events={}}updateCustomExcavationDetails(a,o,c,f=[],u={}){let m,g,v;switch(m=this.modelArray.find(S=>S.modelId==a).customize.bimModelExcavationDetails,v=m.find((S,b)=>{if(S.id==o)return g=b,S}),c){case"delete":m.splice(g,1);break;case"update":v.excavationDetails=f;break;case"add":m.push(u);break;case"edit":v.excavationDetails=u.excavationDetails,v.kId=u.kId;break}return m}resourceRelease(){window.map.viewer.camera.moveEnd.addEventListener(()=>{this.freed()})}freed(){let{alt:a}=window.map.getCameraView();a<2e4&&(this.freed=ic.throttle(()=>{let{lng:o,lat:c,alt:f,pitch:u}=window.map.getCameraView();this.modelArray&&this.modelArray.forEach(m=>{var v;let g=(v=m.bimModel)!=null&&v.releasedDistance?m.bimModel.releasedDistance:m.releasedDistance?m.releasedDistance:1e4;m&&this.disTance([o,c,f],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(u,g))?window.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.showModelArray.indexOf(m.id)>=0&&!window.map.getLayer(m.id,"modelId")&&this.emit("enter",m)})},2e3),this.freed())}findPnodeId(a,o,c="id"){let f;if(a){for(var u=0;u<a.length;u++){let m=a[u];if(m[c]==o)return f=m,f;if(m.children&&m.children.length>0&&(f=this.findPnodeId(m.children,o,c),f))return f}return f}}disTance(a,o,c){let f,u,m;return f=Cesium.Cartesian3.fromDegrees(...a),u=Cesium.Cartesian3.fromDegrees(...o),m=Cesium.Cartesian3.distance(f,u),m>c}calculateDistance(a,o){let c=(a+180)%360-180;c=Math.max(-90,Math.min(c,90));let f=(o-o/5)*(Math.abs(c)/90)+o/5;return Math.round(f)}}class pm{constructor(a=[],o){mars3d&&(this.entityArr=a,this.entityLayer=new mars3d.layer.GraphicLayer({entityId:"bimEntity"}),window.map.addLayer(this.entityLayer),this.entityItem=null,this.events={},this.entityCloneLayer)}on(a,o){(a=="change"||a=="collection")&&(this.events[a]?this.events[a].push(o):this.events[a]=[o])}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}offAll(){this.events={}}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}add(a,o=null,c){return new Promise((f,u)=>{var m;if(this.entityLayer){let g,v,S;if(c==null?void 0:c.isClone)this.entityCloneLayer&&(v=this.query(a),v?(S=v.bimPlanPainting?JSON.parse(v.bimPlanPainting.graphic):JSON.parse(v.graphic),S.attr=S.attr||{},S.attr.entityId=a,this.entityCloneLayer.addGraphic(S)):f({tite:"【标绘】 ID:「"+a+"」已删除",type:"error",id:a}));else{if(typeof a!="object"?(g=this.entityLayer.getGraphicByAttr(a,"entityId"),v=this.query(a),v?(S=v.bimPlanPainting?JSON.parse(v.bimPlanPainting.graphic):JSON.parse(v.graphic),S.attr=S.attr||{},S.attr.entityId=a):f({tite:"【标绘】ID:「"+a+"」已删除",type:"error",id:a})):(g=this.entityLayer.getGraphicByAttr(a.id,"entityId"),S=JSON.parse(JSON.stringify(a)),S.attr=S.attr||{},S.attr.entityId=S.attr.entityId||o,S.attr==null?S.attr={entityId:a.id}:((m=S.attr)==null?void 0:m.entityId)==null&&o&&(S.attr.entityId=o)),g)return f();this.entityLayer.addGraphic(S),f(S)}}else f()})}query(a){return this.entityArr.length==0?!1:this.entityArr.find(o=>o.id==a)}queryEntity(a){if(bimEntity.entityLayer)return bimEntity.entityLayer.getGraphicByAttr(a,"entityId")}selected(a,o=null){let c=this.entityLayer.getGraphicByAttr(a,"entityId");o==null||o.isClone,(c.options.type=="div"||c.options.type=="point")&&c._point?c.flyTo({radius:c._point._alt+500<500?5e3:c._point._alt+500}):c.flyTo()}remove(a,o=null){var f,u;(o==null?void 0:o.isClone)?this.entityCloneLayer&&((f=this.entityCloneLayer.getGraphicByAttr(a,"entityId"))==null||f.remove()):this.entityLayer.getGraphicByAttr(a,"entityId")&&((u=this.entityLayer.getGraphicByAttr(a,"entityId"))==null||u.remove(),this.entityItem&&(this.entityItem._state=="destroy"||this.entityItem.options.attr.entityId==a)&&(this.entityItem=null))}entityCloneLayerInit(){(this.entityCloneLayer==null||this.entityCloneLayer.state=="destroy")&&(this.entityCloneLayer=window.mapClone._mapEx.getLayer("bimEntity","entityId"))}entityCloneLayerRemove(){this.entityCloneLayer.remove(),this.entityCloneLayer=null}removeEntityItem(){this.entityItem=null}updateData(a){this.entityArr=a}startDrawGraphic(a){return new Promise((o,c)=>{let{type:f,style:u}=a;if(a.drawShow=!1,f=="div")if(u.html)this.entityLayer.startDraw(a).then(m=>{setTimeout(()=>{this.entityItem=m,this.entityLayer.startEditing(m)},500)});else{let{title:m,divType:g,theme_color:v,font_color:S,scaleByDistance:b,scaleByDistance_far:O,scaleByDistance_farValue:k,scaleByDistance_near:R,scaleByDistance_nearValue:F,distanceDisplayCondition:E,distanceDisplayCondition_far:P,distanceDisplayCondition_near:w,clampToGround:T}=u,I={type:"div",style:{pointerEvents:!0,scaleByDistance:b,scaleByDistance_far:O,scaleByDistance_farValue:k,scaleByDistance_near:R,scaleByDistance_nearValue:F,distanceDisplayCondition:E,distanceDisplayCondition_far:P,distanceDisplayCondition_near:w,clampToGround:T,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM}};switch(g){case"1":I.style.html=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${v};--theme-font-color1:${S};">
|
|
2636
|
+
}`;var Ti=Up(function(){return Fi(ut,Ze+"return "+de).apply(o,yt)});if(Ti.source=de,ff(Ti))throw Ti;return Ti}function R_(r){return Zi(r).toLowerCase()}function O_(r){return Zi(r).toUpperCase()}function I_(r,h,y){if(r=Zi(r),r&&(y||h===o))return _a(r);if(!r||!(h=Ye(h)))return r;var D=lr(r),Y=lr(h),ut=is(D,Y),yt=As(D,Y)+1;return wn(D,ut,yt).join("")}function D_(r,h,y){if(r=Zi(r),r&&(y||h===o))return r.slice(0,xa(r)+1);if(!r||!(h=Ye(h)))return r;var D=lr(r),Y=As(D,lr(h))+1;return wn(D,0,Y).join("")}function z_(r,h,y){if(r=Zi(r),r&&(y||h===o))return r.replace(ho,"");if(!r||!(h=Ye(h)))return r;var D=lr(r),Y=is(D,lr(h));return wn(D,Y).join("")}function k_(r,h){var y=ct,D=Rt;if(Mn(h)){var Y="separator"in h?h.separator:Y;y="length"in h?wi(h.length):y,D="omission"in h?Ye(h.omission):D}r=Zi(r);var ut=r.length;if(Dr(r)){var yt=lr(r);ut=yt.length}if(y>=ut)return r;var bt=y-Kr(D);if(bt<1)return D;var Nt=yt?wn(yt,0,bt).join(""):r.slice(0,bt);if(Y===o)return Nt+D;if(yt&&(bt+=Nt.length-bt),df(Y)){if(r.slice(bt).search(Y)){var oe,le=Nt;for(Y.global||(Y=Qn(Y.source,Zi(jl.exec(Y))+"g")),Y.lastIndex=0;oe=Y.exec(le);)var de=oe.index;Nt=Nt.slice(0,de===o?bt:de)}}else if(r.indexOf(Ye(Y),bt)!=bt){var ke=Nt.lastIndexOf(Y);ke>-1&&(Nt=Nt.slice(0,ke))}return Nt+D}function B_(r){return r=Zi(r),r&&Zo.test(r)?r.replace(Po,th):r}var N_=ze(function(r,h,y){return r+(y?" ":"")+h.toUpperCase()}),gf=Te("toUpperCase");function Fp(r,h,y){return r=Zi(r),h=y?o:h,h===o?Os(r)?Xc(r):ol(r):r.match(h)||[]}var Up=ae(function(r,h){try{return _r(r,o,h)}catch(y){return ff(y)?y:new ai(y)}}),F_=js(function(r,h){return Ji(h,function(y){y=fs(y),No(r,y,uf(r[y],r))}),r});function U_(r){var h=r==null?0:r.length,y=si();return r=h?Yi(r,function(D){if(typeof D[1]!="function")throw new hr(m);return[y(D[0]),D[1]]}):[],ae(function(D){for(var Y=-1;++Y<h;){var ut=r[Y];if(_r(ut[0],this,D))return _r(ut[1],this,D)}})}function G_(r){return Oa(Mr(r,O))}function vf(r){return function(){return r}}function H_(r,h){return r==null||r!==r?h:r}var V_=Oi(),W_=Oi(!0);function Hr(r){return r}function yf(r){return H(typeof r=="function"?r:Mr(r,O))}function j_(r){return gt(Mr(r,O))}function X_(r,h){return Ct(r,Mr(h,O))}var q_=ae(function(r,h){return function(y){return e(y,r,h)}}),Y_=ae(function(r,h){return function(y){return e(r,y,h)}});function _f(r,h,y){var D=$n(h),Y=Hs(h,D);y==null&&!(Mn(h)&&(Y.length||!D.length))&&(y=h,h=r,r=this,Y=Hs(h,$n(h)));var ut=!(Mn(y)&&"chain"in y)||!!y.chain,yt=qs(r);return Ji(Y,function(bt){var Nt=h[bt];r[bt]=Nt,yt&&(r.prototype[bt]=function(){var oe=this.__chain__;if(ut||oe){var le=r(this.__wrapped__),de=le.__actions__=ir(this.__actions__);return de.push({func:Nt,args:arguments,thisArg:r}),le.__chain__=oe,le}return Nt.apply(r,po([this.value()],arguments))})}),r}function Z_(){return vn._===this&&(vn._=Qr),this}function xf(){}function J_(r){return r=wi(r),ae(function(h){return K(h,r)})}var $_=Fn(Yi),K_=Fn(Nh),Q_=Fn(Lo);function Gp(r){return rf(r)?Qo(fs(r)):$t(r)}function t1(r){return function(h){return r==null?o:us(r,h)}}var e1=iu(),i1=iu(!0);function wf(){return[]}function Mf(){return!1}function n1(){return{}}function r1(){return""}function o1(){return!0}function s1(r,h){if(r=wi(r),r<1||r>ce)return[];var y=It,D=Wn(r,It);h=si(h),r-=It;for(var Y=Oo(D,h);++y<r;)h(y);return Y}function a1(r){return vi(r)?Yi(r,fs):eo(r)?[r]:ir(ap(Zi(r)))}function l1(r){var h=++cr;return Zi(r)+h}var h1=Tr(function(r,h){return r+h},0),u1=dh("ceil"),c1=Tr(function(r,h){return r/h},1),f1=dh("floor");function d1(r){return r&&r.length?So(r,Hr,uh):o}function p1(r,h){return r&&r.length?So(r,si(h,2),uh):o}function m1(r){return ya(r,Hr)}function g1(r,h){return ya(r,si(h,2))}function v1(r){return r&&r.length?So(r,Hr,rt):o}function y1(r,h){return r&&r.length?So(r,si(h,2),rt):o}var _1=Tr(function(r,h){return r*h},1),x1=dh("round"),w1=Tr(function(r,h){return r-h},0);function M1(r){return r&&r.length?es(r,Hr):0}function T1(r,h){return r&&r.length?es(r,si(h,2)):0}return it.after=jv,it.ary=yp,it.assign=Oy,it.assignIn=Op,it.assignInWith=tc,it.assignWith=Iy,it.at=Dy,it.before=_p,it.bind=uf,it.bindAll=F_,it.bindKey=xp,it.castArray=ny,it.chain=mp,it.chunk=f0,it.compact=d0,it.concat=p0,it.cond=U_,it.conforms=G_,it.constant=vf,it.countBy=Mv,it.create=zy,it.curry=wp,it.curryRight=Mp,it.debounce=Tp,it.defaults=ky,it.defaultsDeep=By,it.defer=Xv,it.delay=qv,it.difference=m0,it.differenceBy=g0,it.differenceWith=v0,it.drop=y0,it.dropRight=_0,it.dropRightWhile=x0,it.dropWhile=w0,it.fill=M0,it.filter=Sv,it.flatMap=Cv,it.flatMapDeep=Av,it.flatMapDepth=Pv,it.flatten=cp,it.flattenDeep=T0,it.flattenDepth=S0,it.flip=Yv,it.flow=V_,it.flowRight=W_,it.fromPairs=E0,it.functions=Wy,it.functionsIn=jy,it.groupBy=Lv,it.initial=C0,it.intersection=A0,it.intersectionBy=P0,it.intersectionWith=L0,it.invert=qy,it.invertBy=Yy,it.invokeMap=Ov,it.iteratee=yf,it.keyBy=Iv,it.keys=$n,it.keysIn=Gr,it.map=Yu,it.mapKeys=Jy,it.mapValues=$y,it.matches=j_,it.matchesProperty=X_,it.memoize=Ju,it.merge=Ky,it.mergeWith=Ip,it.method=q_,it.methodOf=Y_,it.mixin=_f,it.negate=$u,it.nthArg=J_,it.omit=Qy,it.omitBy=t_,it.once=Zv,it.orderBy=Dv,it.over=$_,it.overArgs=Jv,it.overEvery=K_,it.overSome=Q_,it.partial=cf,it.partialRight=Sp,it.partition=zv,it.pick=e_,it.pickBy=Dp,it.property=Gp,it.propertyOf=t1,it.pull=D0,it.pullAll=dp,it.pullAllBy=z0,it.pullAllWith=k0,it.pullAt=B0,it.range=e1,it.rangeRight=i1,it.rearg=$v,it.reject=Nv,it.remove=N0,it.rest=Kv,it.reverse=lf,it.sampleSize=Uv,it.set=n_,it.setWith=r_,it.shuffle=Gv,it.slice=F0,it.sortBy=Wv,it.sortedUniq=X0,it.sortedUniqBy=q0,it.split=C_,it.spread=Qv,it.tail=Y0,it.take=Z0,it.takeRight=J0,it.takeRightWhile=$0,it.takeWhile=K0,it.tap=dv,it.throttle=ty,it.thru=qu,it.toArray=Pp,it.toPairs=zp,it.toPairsIn=kp,it.toPath=a1,it.toPlainObject=Rp,it.transform=o_,it.unary=ey,it.union=Q0,it.unionBy=tv,it.unionWith=ev,it.uniq=iv,it.uniqBy=nv,it.uniqWith=rv,it.unset=s_,it.unzip=hf,it.unzipWith=pp,it.update=a_,it.updateWith=l_,it.values=gh,it.valuesIn=h_,it.without=ov,it.words=Fp,it.wrap=iy,it.xor=sv,it.xorBy=av,it.xorWith=lv,it.zip=hv,it.zipObject=uv,it.zipObjectDeep=cv,it.zipWith=fv,it.entries=zp,it.entriesIn=kp,it.extend=Op,it.extendWith=tc,_f(it,it),it.add=h1,it.attempt=Up,it.camelCase=d_,it.capitalize=Bp,it.ceil=u1,it.clamp=u_,it.clone=ry,it.cloneDeep=sy,it.cloneDeepWith=ay,it.cloneWith=oy,it.conformsTo=ly,it.deburr=Np,it.defaultTo=H_,it.divide=c1,it.endsWith=p_,it.eq=Go,it.escape=m_,it.escapeRegExp=g_,it.every=Tv,it.find=Ev,it.findIndex=hp,it.findKey=Ny,it.findLast=bv,it.findLastIndex=up,it.findLastKey=Fy,it.floor=f1,it.forEach=gp,it.forEachRight=vp,it.forIn=Uy,it.forInRight=Gy,it.forOwn=Hy,it.forOwnRight=Vy,it.get=pf,it.gt=hy,it.gte=uy,it.has=Xy,it.hasIn=mf,it.head=fp,it.identity=Hr,it.includes=Rv,it.indexOf=b0,it.inRange=c_,it.invoke=Zy,it.isArguments=Pl,it.isArray=vi,it.isArrayBuffer=cy,it.isArrayLike=Ur,it.isArrayLikeObject=zn,it.isBoolean=fy,it.isBuffer=Ba,it.isDate=dy,it.isElement=py,it.isEmpty=my,it.isEqual=gy,it.isEqualWith=vy,it.isError=ff,it.isFinite=yy,it.isFunction=qs,it.isInteger=Ep,it.isLength=Ku,it.isMap=bp,it.isMatch=_y,it.isMatchWith=xy,it.isNaN=wy,it.isNative=My,it.isNil=Sy,it.isNull=Ty,it.isNumber=Cp,it.isObject=Mn,it.isObjectLike=Rn,it.isPlainObject=su,it.isRegExp=df,it.isSafeInteger=Ey,it.isSet=Ap,it.isString=Qu,it.isSymbol=eo,it.isTypedArray=mh,it.isUndefined=by,it.isWeakMap=Cy,it.isWeakSet=Ay,it.join=R0,it.kebabCase=v_,it.last=Co,it.lastIndexOf=O0,it.lowerCase=y_,it.lowerFirst=__,it.lt=Py,it.lte=Ly,it.max=d1,it.maxBy=p1,it.mean=m1,it.meanBy=g1,it.min=v1,it.minBy=y1,it.stubArray=wf,it.stubFalse=Mf,it.stubObject=n1,it.stubString=r1,it.stubTrue=o1,it.multiply=_1,it.nth=I0,it.noConflict=Z_,it.noop=xf,it.now=Zu,it.pad=x_,it.padEnd=w_,it.padStart=M_,it.parseInt=T_,it.random=f_,it.reduce=kv,it.reduceRight=Bv,it.repeat=S_,it.replace=E_,it.result=i_,it.round=x1,it.runInContext=Lt,it.sample=Fv,it.size=Hv,it.snakeCase=b_,it.some=Vv,it.sortedIndex=U0,it.sortedIndexBy=G0,it.sortedIndexOf=H0,it.sortedLastIndex=V0,it.sortedLastIndexBy=W0,it.sortedLastIndexOf=j0,it.startCase=A_,it.startsWith=P_,it.subtract=w1,it.sum=M1,it.sumBy=T1,it.template=L_,it.times=s1,it.toFinite=Ys,it.toInteger=wi,it.toLength=Lp,it.toLower=R_,it.toNumber=Ao,it.toSafeInteger=Ry,it.toString=Zi,it.toUpper=O_,it.trim=I_,it.trimEnd=D_,it.trimStart=z_,it.truncate=k_,it.unescape=B_,it.uniqueId=l1,it.upperCase=N_,it.upperFirst=gf,it.each=gp,it.eachRight=vp,it.first=fp,_f(it,function(){var r={};return Fr(it,function(h,y){Mi.call(it.prototype,y)||(r[y]=h)}),r}(),{chain:!1}),it.VERSION=c,Ji(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){it[r].placeholder=it}),Ji(["drop","take"],function(r,h){_i.prototype[r]=function(y){y=y===o?1:yn(wi(y),0);var D=this.__filtered__&&!h?new _i(this):this.clone();return D.__filtered__?D.__takeCount__=Wn(y,D.__takeCount__):D.__views__.push({size:Wn(y,It),type:r+(D.__dir__<0?"Right":"")}),D},_i.prototype[r+"Right"]=function(y){return this.reverse()[r](y).reverse()}}),Ji(["filter","map","takeWhile"],function(r,h){var y=h+1,D=y==G||y==Et;_i.prototype[r]=function(Y){var ut=this.clone();return ut.__iteratees__.push({iteratee:si(Y,3),type:y}),ut.__filtered__=ut.__filtered__||D,ut}}),Ji(["head","last"],function(r,h){var y="take"+(h?"Right":"");_i.prototype[r]=function(){return this[y](1).value()[0]}}),Ji(["initial","tail"],function(r,h){var y="drop"+(h?"":"Right");_i.prototype[r]=function(){return this.__filtered__?new _i(this):this[y](1)}}),_i.prototype.compact=function(){return this.filter(Hr)},_i.prototype.find=function(r){return this.filter(r).head()},_i.prototype.findLast=function(r){return this.reverse().find(r)},_i.prototype.invokeMap=ae(function(r,h){return typeof r=="function"?new _i(this):this.map(function(y){return e(y,r,h)})}),_i.prototype.reject=function(r){return this.filter($u(si(r)))},_i.prototype.slice=function(r,h){r=wi(r);var y=this;return y.__filtered__&&(r>0||h<0)?new _i(y):(r<0?y=y.takeRight(-r):r&&(y=y.drop(r)),h!==o&&(h=wi(h),y=h<0?y.dropRight(-h):y.take(h-r)),y)},_i.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},_i.prototype.toArray=function(){return this.take(It)},Fr(_i.prototype,function(r,h){var y=/^(?:filter|find|map|reject)|While$/.test(h),D=/^(?:head|last)$/.test(h),Y=it[D?"take"+(h=="last"?"Right":""):h],ut=D||/^find/.test(h);Y&&(it.prototype[h]=function(){var yt=this.__wrapped__,bt=D?[1]:arguments,Nt=yt instanceof _i,oe=bt[0],le=Nt||vi(yt),de=function(Ri){var Ui=Y.apply(it,po([Ri],bt));return D&&ke?Ui[0]:Ui};le&&y&&typeof oe=="function"&&oe.length!=1&&(Nt=le=!1);var ke=this.__chain__,Ze=!!this.__actions__.length,hi=ut&&!ke,Ti=Nt&&!Ze;if(!ut&&le){yt=Ti?yt:new _i(this);var ui=r.apply(yt,bt);return ui.__actions__.push({func:qu,args:[de],thisArg:o}),new Yn(ui,ke)}return hi&&Ti?r.apply(this,bt):(ui=this.thru(de),hi?D?ui.value()[0]:ui.value():ui)})}),Ji(["pop","push","shift","sort","splice","unshift"],function(r){var h=In[r],y=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",D=/^(?:pop|shift)$/.test(r);it.prototype[r]=function(){var Y=arguments;if(D&&!this.__chain__){var ut=this.value();return h.apply(vi(ut)?ut:[],Y)}return this[y](function(yt){return h.apply(vi(yt)?yt:[],Y)})}}),Fr(_i.prototype,function(r,h){var y=it[h];if(y){var D=y.name+"";Mi.call(ss,D)||(ss[D]=[]),ss[D].push({name:h,func:y})}}),ss[$i(o,w).name]=[{name:"wrapper",func:o}],_i.prototype.clone=Ca,_i.prototype.reverse=Iu,_i.prototype.value=Aa,it.prototype.at=pv,it.prototype.chain=mv,it.prototype.commit=gv,it.prototype.next=vv,it.prototype.plant=_v,it.prototype.reverse=xv,it.prototype.toJSON=it.prototype.valueOf=it.prototype.value=wv,it.prototype.first=it.prototype.head,os&&(it.prototype[os]=yv),it},ns=qc();Jr?((Jr.exports=ns)._=ns,$o._=ns):vn._=ns}).call(br)}(hu,hu.exports);var hm=hu.exports;const ic=ec(hm);class um{constructor(a=[],o=!1){Vo(this,"simplifyFunc",a=>{try{a=turf.simplify(a,{tolerance:5e-4,highQuality:!1,mutate:!0})}catch{}return a});mars3d&&(this.vectorArr=a,this.geoJsonType=new Map([["Point"],["LineString"],["Polygon"],["MultiPoint"],["MultiLineString"],["MultiPolygon"]]),this.avoidanceArr=[],this.editDate={id:""},this.isDynamicMasking=o,this.disabled=!1)}remove(a,o=null){o&&o.isClone=="true"?window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(a,"vectorId")):(window.map.removeLayer(window.map.getLayer(a,"vectorId")),window.dynamicMasking&&window.dynamicMasking.remove(a))}add(a,o){return new Promise((c,f)=>{let u,m=o==null?void 0:o.isClone;if(typeof a!="object"){let g=window.map.getLayer(a,"vectorId");if(g)return c(g);u=this.query(a)}else{let g=window.map.getLayer(a.id,"vectorId");if(g)return c(g);u=a}if(u){let{value:g,url:v,id:S,title:b}=u;new Cesium.Resource({url:v}).fetchJson().then(k=>{let{id:R,title:F,shpInfo:E}=u,{attributes:P,geometryType:w,geometryCount:T,pointCount:I}=E;if(P){let{width:C,materialType:U,materialOptions:N,clampToGround:X,distanceDisplayCondition:J,distanceDisplayCondition_near:Z,distanceDisplayCondition_far:ct,zIndex:Rt,label:tt,fill:_t,diffHeight:G,outline:Pt,outlineStyle:Et,color:At,pixelSize:ce,outlineColor:re,outlineWidth:Ft,classificationType:It,setHeight:Bt}=JSON.parse(P),Pe;switch(tt.height==""&&(tt.height=null),this.isDynamicMasking?(tt.color=Cesium.Color.fromCssColorString(tt.color).withAlpha(0),tt.outlineColor=Cesium.Color.fromCssColorString(tt.outlineColor).withAlpha(.001),tt.backgroundColor=Cesium.Color.fromCssColorString(tt.backgroundColor).withAlpha(.001),tt.background=!1,tt.outline=!1,tt.show=!1):(tt.color=Cesium.Color.fromCssColorString(tt.color),tt.outlineColor=Cesium.Color.fromCssColorString(tt.outlineColor),tt.backgroundColor=Cesium.Color.fromCssColorString(tt.backgroundColor)),w){case"LineString":case"MultiLineString":tt.backgroundPadding=5,Pe=new mars3d.layer.GeoJsonLayer({data:k,vectorId:R,symbol:{type:"polylineC",styleOptions:{width:C,clampToGround:X,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:Z,materialType:U,materialOptions:N,classificationType:It,...Bt!==0&&Bt!=null?{setHeight:Bt}:{},label:tt}},hasZIndex:!0,zIndex:Rt});break;case"Polygon":case"MultiPolygon":U=="PolyGrass"&&(N={evenColor:new Cesium.Color(.25,.4,.1,1),oddColor:new Cesium.Color(.1,.1,.1,1),frequency:1.5}),Pe=new mars3d.layer.GeoJsonLayer({data:k,vectorId:R,symbol:{type:"polygon",styleOptions:{fill:_t,diffHeight:G,clampToGround:X,materialType:U,materialOptions:N,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:Z,outlineStyle:Et,outline:Pt,classificationType:It,...Bt!==0&&Bt!=null?{setHeight:Bt}:{},label:tt}}});break;case"Point":case"MultiPoint":Pe=new mars3d.layer.GeoJsonLayer({data:k,vectorId:R,symbol:{type:"pointC",styleOptions:{color:At,pixelSize:ce,outline:Pt,outlineColor:re,outlineWidth:Ft,visibleDepth:!1,label:tt}}});break}m?window.mapClone.mapEx.addLayer(Pe):window.map.addLayer(Pe),Pe.bindPopup(Wt=>{if(this.disabled==!0)return!1;let $e='<div class="bim-map-popup">';return Object.keys(Wt.graphic.attr).forEach((Si,Oe)=>{Wt.graphic.attr[Si]&&($e+=`<p><b>${Si}</b> : ${Wt.graphic.attr[Si]}</p>`)}),$e+="</div>",$e});let pe=ic.debounce(Wt=>{window.dynamicMasking.add(Wt,JSON.parse(P))},500);Pe.readyPromise.then(Wt=>{window.dynamicMasking&&pe(Wt),c(Wt)}).catch(Wt=>{c({tite:"【矢量】「"+F+"」无法加载",type:"error",id:R,url:v})})}else c({tite:"【矢量】「"+F+"」无法加载",type:"error",id:R,url:v})}).catch(k=>{c({tite:"【矢量】「"+b+"」链接地址有误",type:"error",id:S,url:v})})}else c({tite:"【矢量】ID:「"+a+"」已删除",type:"error",id:a})})}updateData(a){this.vectorArr=a}processingKML(a){let o,c=2e3,f=!0,{kmlInfo:u}=a,{fill:m,areaColor:g,areaSideColor:v,transparency:S,isAreaSideColor:b,minDistinct:O,textDistinct:k,textSize:R,textColor:F,fontStyle:E,outLine:P,sideColor:w,backGround:T,backGroundColor:I,clampToGround:C}=u,U={fill:m,color:g,opacity:S||.5,outline:b,outlineColor:v,outlineWidth:2,clampToGround:C,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:O||0,classificationType:o,opacity:String(S)},N={text:"{name}",horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffsetY:-10,font_size:26,color:F||"#ffffff",font_family:E||"黑体",outline:P||!0,outlineColor:w||"#000000",outlineWidth:4,scaleByDistance:!0,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:O||0,background:T||!1,backgroundColor:I||"",visibleDepth:f,clampToGround:C||!1,disableDepthTestDistance:c};return{...U,label:N}}selected(a){window.map.getLayer(a,"vectorId")&&window.map.getLayer(a,"vectorId").flyTo()}query(a){return this.vectorArr.length==0?!1:this.vectorArr.find(o=>o.id==a)}queryVector(a){return window.map.getLayer(a,"vectorId")}editVector(a,o,c){let f=window.map.getLayer(a,"vectorId"),u=Cf(o,c);f&&(f.eachGraphic(m=>{m.label&&m.label.show===!1&&(delete m.label.outline,delete m.label.background,delete m.label.outlineColor,delete m.label.backgroundColor),u.label&&u.label.height==""&&(u.label.height=null),m.setStyle({...u})}),window.dynamicMasking&&dynamicMasking.modify(a,u))}nationalBoundaries(a="/gis/nationalBoundaries.json"){let o=new mars3d.layer.GeoJsonLayer({name:"国界",url:a,vectorId:"border",format:c=>{try{c=turf.simplify(c,{tolerance:1e-5,highQuality:!1,mutate:!0})}catch{}return c},symbol:{type:"polylineC",styleOptions:{width:2,materialType:"Color",materialOptions:{color:"#CD9B1D"},distanceDisplayCondition:!0,distanceDisplayCondition_near:1e3,distanceDisplayCondition_far:2e7,clampToGround:!0,classificationType:Cesium.ClassificationType.TERRAIN}}});map.addLayer(o)}switchDynamicMasking(a){this.isDynamicMasking=a}}class cm{constructor(a=[]){mars3d&&(this.terrainProviderArr=a,this.terrainProviderId="",this.events={},window.map.on(mars3d.EventType.terrainLoadError,o=>{this.hide()}),window.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(o=>{window.map.viewer.scene.globe.tilesLoaded&&this.emit("load",o)}))}add(a,o){if(o==null?void 0:o.isClone)mapClone&&(window.mapClone.mapEx.terrainProvider=window.map.terrainProvider);else{let f,u;if(typeof a=="string"?(f=a,u=this.terrainProviderArr.find(m=>m.id==f).url):(f=a.id,u=a.url),this.terrainProviderId==f&&window.map.terrainProvider._layers)return!1;window.map.terrainProvider=mars3d.LayerUtil.createTerrainProvider({imageXyzId:f,type:"xyz",url:u,requestVertexNormals:!0,requestMetadata:!0,clip:!0,flat:!0,uplift:!0,flood:!0}),this.terrainProviderId=f}}show(a){(a==null?void 0:a.isClone)?window.mapClone.mapEx.hasTerrain=!0:window.map.hasTerrain=!0}hide(a){(a==null?void 0:a.isClone)?window.mapClone.mapEx.hasTerrain=!1:window.map.hasTerrain=!1}on(a,o){a=="load"&&(this.events[a]?this.events[a].push(o):this.events[a]=[o])}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}addClip(a){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipGisAdd(a)):c("挖洞工具未初始化")})}}class fm{constructor(a=[],o){mars3d&&(this.elevationImageArr=a,this.elevationImageLayer,o?this.gisTkone={Authorization:`Bearer ${o}`}:this.gisTkone={},this.form={brightnessVal:1.3,msaaSamples:4,surfaceOpacity:1,layerOpacity:1,layerBrightness:2,layerContrast:1,layerHue:0,layerSaturation:1,layerGamma:1},this.tdtLayer=null)}pushVector(a){this.elevationImageArr.push(a)}add(a,o=!0,c){let f;if(typeof a!="object"?f=a:f=a.imageXyzId,window.map.getLayer(f,"imageXyzId"))return!1;const{layerOpacity:u,layerBrightness:m,layerContrast:g,layerHue:v,layerSaturation:S,layerGamma:b,surfaceOpacity:O}=this.exposureEnvironmentSettings();return new Promise((k,R)=>{let F,E,P,w,T,I;if(typeof a!="object"){let C=this.query(a);C||R("缺少树结构");let{gisInfo:U}=C,{id:N,order:X,minLevel:J,maxLevel:Z,domType:ct}=U||C;F=N,E=C.url,P=J,w=Z}else F=a.imageXyzId,E=a.url,a.zIndex,P=a.minimumLevel,w=a.maximumLevel,T=a.chinaCRS,I=a.domType;if(I&&I==1){this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:F,url:"http://t0.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles&tk=05f82820fb03b98230c625a0a15aff78",hasZIndex:!0,zIndex:0,minimumLevel:0,maximumLevel:15,chinaCRS:"GCJ02"}),window.map.addLayer(this.elevationImageLayer),k(this.elevationImageLayer);return}this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:F,type:"xyz",url:E,hasZIndex:!0,zIndex:9,brightness:m,opacity:u,saturation:S,contrast:g,hue:v,gamma:b,alpha:O,show:!0,minimumLevel:P||0,maximumLevel:w||15,chinaCRS:T,headers:o?this.gisTkone:null}),this.elevationImageLayer.on(mars3d.EventType.load,C=>{k(C)}),window.map.addLayer(this.elevationImageLayer),c&&Object.keys(c).forEach(C=>{this.elevationImageLayer.on(fnType.get(C),U=>{c[C](U)})})})}remove(a){window.map.removeLayer(window.map.getLayer(a,"imageXyzId"))}query(a){return this.elevationImageArr.length==0?!1:this.elevationImageArr.find(o=>o.id==a)}initial(){this.elevationImageArr=[],this.elevationImageLayer=null}exposureEnvironmentSettings(){return localStorage.getItem("environmentSettings")?JSON.parse(localStorage.getItem("environmentSettings")):(localStorage.setItem("environmentSettings",JSON.stringify(this.form)),JSON.parse(JSON.stringify(this.form)))}}class dm{constructor(a,...o){Vo(this,"manualFreed",ic.debounce(()=>{let{lng:a,lat:o,alt:c,pitch:f}=window.map.getCameraView(),u;this.modelArray.forEach(m=>{var g;u=(g=m.bimModel)!=null&&g.releasedDistance?m.bimModel.releasedDistance:m.releasedDistance?m.releasedDistance:1e4,this.disTance([a,o,c],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(f,u))?window.map.getLayer(m.id,"modelId")&&this.emit("leave",m):window.map.getLayer(m.id,"modelId")||this.emit("enter",m)})},200));mars3d&&(a&&a!=null&&(this.modelArray=a),this.showModelArray=[],this.Cesium=mars3d.Cesium,this.events={})}on(a,o){(a=="enter"||a=="leave")&&(this.events[a]?this.events[a].push(o):this.events[a]=[o])}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}say(a){return this[a]}add(a,o){this[a].push(o)}remove(a,o){this[a]=this[a].filter(function(c){return c!==o})}initial(){this.modelArray=[],this.events={}}updateCustomExcavationDetails(a,o,c,f=[],u={}){let m,g,v;switch(m=this.modelArray.find(S=>S.modelId==a).customize.bimModelExcavationDetails,v=m.find((S,b)=>{if(S.id==o)return g=b,S}),c){case"delete":m.splice(g,1);break;case"update":v.excavationDetails=f;break;case"add":m.push(u);break;case"edit":v.excavationDetails=u.excavationDetails,v.kId=u.kId;break}return m}resourceRelease(){window.map.viewer.camera.moveEnd.addEventListener(()=>{this.freed()})}freed(){let{alt:a}=window.map.getCameraView();a<2e4&&(this.freed=ic.throttle(()=>{let{lng:o,lat:c,alt:f,pitch:u}=window.map.getCameraView();this.modelArray&&this.modelArray.forEach(m=>{var v;let g=(v=m.bimModel)!=null&&v.releasedDistance?m.bimModel.releasedDistance:m.releasedDistance?m.releasedDistance:1e4;m&&this.disTance([o,c,f],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(u,g))?window.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.showModelArray.indexOf(m.id)>=0&&!window.map.getLayer(m.id,"modelId")&&this.emit("enter",m)})},2e3),this.freed())}findPnodeId(a,o,c="id"){let f;if(a){for(var u=0;u<a.length;u++){let m=a[u];if(m[c]==o)return f=m,f;if(m.children&&m.children.length>0&&(f=this.findPnodeId(m.children,o,c),f))return f}return f}}disTance(a,o,c){let f,u,m;return f=Cesium.Cartesian3.fromDegrees(...a),u=Cesium.Cartesian3.fromDegrees(...o),m=Cesium.Cartesian3.distance(f,u),m>c}calculateDistance(a,o){let c=(a+180)%360-180;c=Math.max(-90,Math.min(c,90));let f=(o-o/5)*(Math.abs(c)/90)+o/5;return Math.round(f)}}class pm{constructor(a=[],o){mars3d&&(this.entityArr=a,this.entityLayer=new mars3d.layer.GraphicLayer({entityId:"bimEntity"}),window.map.addLayer(this.entityLayer),this.entityItem=null,this.events={},this.entityCloneLayer)}on(a,o){(a=="change"||a=="collection")&&(this.events[a]?this.events[a].push(o):this.events[a]=[o])}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}offAll(){this.events={}}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}add(a,o=null,c){return new Promise((f,u)=>{var m;if(this.entityLayer){let g,v,S;if(c==null?void 0:c.isClone)this.entityCloneLayer&&(v=this.query(a),v?(S=v.bimPlanPainting?JSON.parse(v.bimPlanPainting.graphic):JSON.parse(v.graphic),S.attr=S.attr||{},S.attr.entityId=a,this.entityCloneLayer.addGraphic(S)):f({tite:"【标绘】 ID:「"+a+"」已删除",type:"error",id:a}));else{if(typeof a!="object"?(g=this.entityLayer.getGraphicByAttr(a,"entityId"),v=this.query(a),v?(S=v.bimPlanPainting?JSON.parse(v.bimPlanPainting.graphic):JSON.parse(v.graphic),S.attr=S.attr||{},S.attr.entityId=a):f({tite:"【标绘】ID:「"+a+"」已删除",type:"error",id:a})):(g=this.entityLayer.getGraphicByAttr(a.id,"entityId"),S=JSON.parse(JSON.stringify(a)),S.attr=S.attr||{},S.attr.entityId=S.attr.entityId||o,S.attr==null?S.attr={entityId:a.id}:((m=S.attr)==null?void 0:m.entityId)==null&&o&&(S.attr.entityId=o)),g)return f();this.entityLayer.addGraphic(S),f(S)}}else f()})}query(a){return this.entityArr.length==0?!1:this.entityArr.find(o=>o.id==a)}queryEntity(a){if(bimEntity.entityLayer)return bimEntity.entityLayer.getGraphicByAttr(a,"entityId")}selected(a,o=null){let c=this.entityLayer.getGraphicByAttr(a,"entityId");o==null||o.isClone,(c.options.type=="div"||c.options.type=="point")&&c._point?c.flyTo({radius:c._point._alt+500<500?5e3:c._point._alt+500}):c.flyTo()}remove(a,o=null){var f,u;(o==null?void 0:o.isClone)?this.entityCloneLayer&&((f=this.entityCloneLayer.getGraphicByAttr(a,"entityId"))==null||f.remove()):this.entityLayer.getGraphicByAttr(a,"entityId")&&((u=this.entityLayer.getGraphicByAttr(a,"entityId"))==null||u.remove(),this.entityItem&&(this.entityItem._state=="destroy"||this.entityItem.options.attr.entityId==a)&&(this.entityItem=null))}entityCloneLayerInit(){(this.entityCloneLayer==null||this.entityCloneLayer.state=="destroy")&&(this.entityCloneLayer=window.mapClone._mapEx.getLayer("bimEntity","entityId"))}entityCloneLayerRemove(){this.entityCloneLayer.remove(),this.entityCloneLayer=null}removeEntityItem(){this.entityItem=null}updateData(a){this.entityArr=a}startDrawGraphic(a){return new Promise((o,c)=>{let{type:f,style:u}=a;if(a.drawShow=!1,f=="div")if(u.html)this.entityLayer.startDraw(a).then(m=>{setTimeout(()=>{this.entityItem=m,this.entityLayer.startEditing(m)},500)});else{let{title:m,divType:g,theme_color:v,font_color:S,scaleByDistance:b,scaleByDistance_far:O,scaleByDistance_farValue:k,scaleByDistance_near:R,scaleByDistance_nearValue:F,distanceDisplayCondition:E,distanceDisplayCondition_far:P,distanceDisplayCondition_near:w,clampToGround:T}=u,I={type:"div",style:{pointerEvents:!0,scaleByDistance:b,scaleByDistance_far:O,scaleByDistance_farValue:k,scaleByDistance_near:R,scaleByDistance_nearValue:F,distanceDisplayCondition:E,distanceDisplayCondition_far:P,distanceDisplayCondition_near:w,clampToGround:T,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM}};switch(g){case"1":I.style.html=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${v};--theme-font-color1:${S};">
|
|
2637
2637
|
<div class="title">${m}</div>
|
|
2638
2638
|
</div>`,I.style.horizontalOrigin=Cesium.HorizontalOrigin.CENTER;break}this.entityLayer.startDraw(I).then(C=>{setTimeout(()=>{this.entityItem=C,this.entityLayer.startEditing(C),o(C)},500)})}else a.type.type=="polylineP"&&a.style.materialType=="Color"&&a.style.depthFail==!0&&(a.style.depthFailColor=a.style.materialOptions.color),this.entityLayer.startDraw(a).then(m=>{setTimeout(()=>{this.entityItem=m,this.entityLayer.startEditing(m),o(m)},500)})})}stopDraw(a=!0){this.entityLayer&&this.entityLayer.clearDrawing(),a&&this.entityItem&&(this.entityItem.stopEditing(),this.entityItem.remove(),this.entityItem=null)}updateEntityItem(a){let o=this.entityLayer.getGraphicByAttr(a,"entityId");o?this.entityItem=o:this.removeEntityItem()}edit(a,o,c,f){let u=Cf(o,c);if(o.vectorStyle&&this.entityItem)if(o.vectorStyle.divType==5)this.entityItem.setStyle({...u,horizontalOrigin:Cesium.HorizontalOrigin.LEFT});else{if(this.entityItem.type=="circleP"&&Object.keys(u).length==1&&Object.keys(u)[0]=="radius"&&u.radius==this.entityItem.options.style.radius)return!1;this.entityItem.setStyle({...u,horizontalOrigin:Cesium.HorizontalOrigin.CENTER})}}enableDragging(a=!0){a?this.entityLayer.startEditing(this.entityItem):(this.entityLayer.stopDraw(),this.entityItem&&this.entityItem.stopEditing())}addRightMenu(){this.entityLayer.bindContextMenu([{text:"编辑对象",callback:a=>{this.emit("change",a)}},{text:"收藏对象",callback:a=>{this.emit("collection",a)}}])}removeRightMenu(){this.entityLayer.hasContextMenu()&&this.entityLayer.unbindContextMenu()}processDivData(a){let o={"--theme-color1":"theme_color","--theme-font-color1":"font_color","--theme-color2":"theme_color2","--theme-color3":"theme_color3"},c={title:"",theme_color:"",font_color:"",content:"",divType:"",divStyle:{},isMirror:!1};const f=document.createElement("div");f.innerHTML=a;const u=f.querySelector(".entity-div-style");return Object.keys(o).forEach(m=>{m=="--theme-color2"||m=="--theme-color3"?c.divStyle[o[m]]=u.style.getPropertyValue(m)||"#fff":c[o[m]]=u.style.getPropertyValue(m)}),c.title=u.querySelector(".title")?u.querySelector(".title").innerText:"标题",c.content=u.querySelector(".content")?u.querySelector(".content").innerText:"内容",c.divType=u.classList[1]?u.classList[1].replace("entity-div-style",""):"",c.isMirror=u.classList.contains("isMirror"),c}updateHtml(a,o){let{theme_color:c,font_color:f,title:u,content:m,divStyle:g}=o,{theme_color2:v,theme_color3:S}=g,b="";switch(a){case"1":b=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${c};--theme-font-color1:${f};">
|
|
2639
2639
|
<div class="title">${u}</div>
|
|
@@ -2682,8 +2682,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2682
2682
|
|
|
2683
2683
|
JSZip uses the library pako released under the MIT license :
|
|
2684
2684
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
2685
|
-
*/(function(x,a){(function(o){x.exports=o()})(function(){return function o(c,f,u){function m(S,b){if(!f[S]){if(!c[S]){var O=typeof uu=="function"&&uu;if(!b&&O)return O(S,!0);if(g)return g(S,!0);var k=new Error("Cannot find module '"+S+"'");throw k.code="MODULE_NOT_FOUND",k}var R=f[S]={exports:{}};c[S][0].call(R.exports,function(F){var E=c[S][1][F];return m(E||F)},R,R.exports,o,c,f,u)}return f[S].exports}for(var g=typeof uu=="function"&&uu,v=0;v<u.length;v++)m(u[v]);return m}({1:[function(o,c,f){var u=o("./utils"),m=o("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(v){for(var S,b,O,k,R,F,E,P=[],w=0,T=v.length,I=T,C=u.getTypeOf(v)!=="string";w<v.length;)I=T-w,O=C?(S=v[w++],b=w<T?v[w++]:0,w<T?v[w++]:0):(S=v.charCodeAt(w++),b=w<T?v.charCodeAt(w++):0,w<T?v.charCodeAt(w++):0),k=S>>2,R=(3&S)<<4|b>>4,F=1<I?(15&b)<<2|O>>6:64,E=2<I?63&O:64,P.push(g.charAt(k)+g.charAt(R)+g.charAt(F)+g.charAt(E));return P.join("")},f.decode=function(v){var S,b,O,k,R,F,E=0,P=0,w="data:";if(v.substr(0,w.length)===w)throw new Error("Invalid base64 input, it looks like a data url.");var T,I=3*(v=v.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(v.charAt(v.length-1)===g.charAt(64)&&I--,v.charAt(v.length-2)===g.charAt(64)&&I--,I%1!=0)throw new Error("Invalid base64 input, bad content length.");for(T=m.uint8array?new Uint8Array(0|I):new Array(0|I);E<v.length;)S=g.indexOf(v.charAt(E++))<<2|(k=g.indexOf(v.charAt(E++)))>>4,b=(15&k)<<4|(R=g.indexOf(v.charAt(E++)))>>2,O=(3&R)<<6|(F=g.indexOf(v.charAt(E++))),T[P++]=S,R!==64&&(T[P++]=b),F!==64&&(T[P++]=O);return T}},{"./support":30,"./utils":32}],2:[function(o,c,f){var u=o("./external"),m=o("./stream/DataWorker"),g=o("./stream/Crc32Probe"),v=o("./stream/DataLengthProbe");function S(b,O,k,R,F){this.compressedSize=b,this.uncompressedSize=O,this.crc32=k,this.compression=R,this.compressedContent=F}S.prototype={getContentWorker:function(){var b=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new v("data_length")),O=this;return b.on("end",function(){if(this.streamInfo.data_length!==O.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(b,O,k){return b.pipe(new g).pipe(new v("uncompressedSize")).pipe(O.compressWorker(k)).pipe(new v("compressedSize")).withStreamInfo("compression",O)},c.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,c,f){var u=o("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},f.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,c,f){var u=o("./utils"),m=function(){for(var g,v=[],S=0;S<256;S++){g=S;for(var b=0;b<8;b++)g=1&g?3988292384^g>>>1:g>>>1;v[S]=g}return v}();c.exports=function(g,v){return g!==void 0&&g.length?u.getTypeOf(g)!=="string"?function(S,b,O,k){var R=m,F=k+O;S^=-1;for(var E=k;E<F;E++)S=S>>>8^R[255&(S^b[E])];return-1^S}(0|v,g,g.length,0):function(S,b,O,k){var R=m,F=k+O;S^=-1;for(var E=k;E<F;E++)S=S>>>8^R[255&(S^b.charCodeAt(E))];return-1^S}(0|v,g,g.length,0):0}},{"./utils":32}],5:[function(o,c,f){f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(o,c,f){var u=null;u=typeof Promise<"u"?Promise:o("lie"),c.exports={Promise:u}},{lie:37}],7:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),g=o("./utils"),v=o("./stream/GenericWorker"),S=u?"uint8array":"array";function b(O,k){v.call(this,"FlateWorker/"+O),this._pako=null,this._pakoAction=O,this._pakoOptions=k,this.meta={}}f.magic="\b\0",g.inherits(b,v),b.prototype.processChunk=function(O){this.meta=O.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(S,O.data),!1)},b.prototype.flush=function(){v.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var O=this;this._pako.onData=function(k){O.push({data:k,meta:O.meta})}},f.compressWorker=function(O){return new b("Deflate",O)},f.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,c,f){function u(R,F){var E,P="";for(E=0;E<F;E++)P+=String.fromCharCode(255&R),R>>>=8;return P}function m(R,F,E,P,w,T){var I,C,U=R.file,N=R.compression,X=T!==S.utf8encode,J=g.transformTo("string",T(U.name)),Z=g.transformTo("string",S.utf8encode(U.name)),ct=U.comment,Rt=g.transformTo("string",T(ct)),tt=g.transformTo("string",S.utf8encode(ct)),_t=Z.length!==U.name.length,G=tt.length!==ct.length,Pt="",Et="",At="",ce=U.dir,re=U.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};F&&!E||(Ft.crc32=R.crc32,Ft.compressedSize=R.compressedSize,Ft.uncompressedSize=R.uncompressedSize);var It=0;F&&(It|=8),X||!_t&&!G||(It|=2048);var
|
|
2686
|
-
\0`,pe+=u(It,2),pe+=N.magic,pe+=u(I,2),pe+=u(C,2),pe+=u(Ft.crc32,4),pe+=u(Ft.compressedSize,4),pe+=u(Ft.uncompressedSize,4),pe+=u(J.length,2),pe+=u(Pt.length,2),{fileRecord:O.LOCAL_FILE_HEADER+pe+J+Pt,dirRecord:O.CENTRAL_FILE_HEADER+u(Pe,2)+pe+u(Rt.length,2)+"\0\0\0\0"+u(Nt,4)+u(P,4)+J+Pt+Rt}}var g=o("../utils"),v=o("../stream/GenericWorker"),S=o("../utf8"),b=o("../crc32"),O=o("../signature");function k(R,F,E,P){v.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=F,this.zipPlatform=E,this.encodeFileName=P,this.streamFiles=R,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(k,v),k.prototype.push=function(R){var F=R.meta.percent||0,E=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(R):(this.bytesWritten+=R.data.length,v.prototype.push.call(this,{data:R.data,meta:{currentFile:this.currentFile,percent:E?(F+100*(E-P-1))/E:100}}))},k.prototype.openedSource=function(R){this.currentSourceOffset=this.bytesWritten,this.currentFile=R.file.name;var F=this.streamFiles&&!R.file.dir;if(F){var E=m(R,F,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(R){this.accumulate=!1;var F=this.streamFiles&&!R.file.dir,E=m(R,F,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),F)this.push({data:function(P){return O.DATA_DESCRIPTOR+u(P.crc32,4)+u(P.compressedSize,4)+u(P.uncompressedSize,4)}(R),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var R=this.bytesWritten,F=0;F<this.dirRecords.length;F++)this.push({data:this.dirRecords[F],meta:{percent:100}});var E=this.bytesWritten-R,P=function(w,T,I,C,U){var N=g.transformTo("string",U(C));return O.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(w,2)+u(w,2)+u(T,4)+u(I,4)+u(N.length,2)+N}(this.dirRecords.length,E,R,this.zipComment,this.encodeFileName);this.push({data:P,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(R){this._sources.push(R);var F=this;return R.on("data",function(E){F.processChunk(E)}),R.on("end",function(){F.closedSource(F.previous.streamInfo),F._sources.length?F.prepareNextSource():F.end()}),R.on("error",function(E){F.error(E)}),this},k.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(R){var F=this._sources;if(!v.prototype.error.call(this,R))return!1;for(var E=0;E<F.length;E++)try{F[E].error(R)}catch{}return!0},k.prototype.lock=function(){v.prototype.lock.call(this);for(var R=this._sources,F=0;F<R.length;F++)R[F].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,f){var u=o("../compressions"),m=o("./ZipFileWorker");f.generateWorker=function(g,v,S){var b=new m(v.streamFiles,S,v.platform,v.encodeFileName),O=0;try{g.forEach(function(k,R){O++;var F=function(T,I){var C=T||I,U=u[C];if(!U)throw new Error(C+" is not a valid compression method !");return U}(R.options.compression,v.compression),E=R.options.compressionOptions||v.compressionOptions||{},P=R.dir,w=R.date;R._compressWorker(F,E).withStreamInfo("file",{name:k,dir:P,date:w,comment:R.comment||"",unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions}).pipe(b)}),b.entriesCount=O}catch(k){b.error(k)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,f){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var g in this)typeof this[g]!="function"&&(m[g]=this[g]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,g){return new u().loadAsync(m,g)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,f){var u=o("./utils"),m=o("./external"),g=o("./utf8"),v=o("./zipEntries"),S=o("./stream/Crc32Probe"),b=o("./nodejsUtils");function O(k){return new m.Promise(function(R,F){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(P){F(P)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?F(new Error("Corrupted zip : CRC32 mismatch")):R()}).resume()})}c.exports=function(k,R){var F=this;return R=u.extend(R||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),b.isNode&&b.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,R.optimizedBinaryString,R.base64).then(function(E){var P=new v(R);return P.load(E),P}).then(function(E){var P=[m.Promise.resolve(E)],w=E.files;if(R.checkCRC32)for(var T=0;T<w.length;T++)P.push(O(w[T]));return m.Promise.all(P)}).then(function(E){for(var P=E.shift(),w=P.files,T=0;T<w.length;T++){var I=w[T],C=I.fileNameStr,U=u.resolve(I.fileNameStr);F.file(U,I.decompressed,{binary:!0,optimizedBinaryString:!0,date:I.date,dir:I.dir,comment:I.fileCommentStr.length?I.fileCommentStr:null,unixPermissions:I.unixPermissions,dosPermissions:I.dosPermissions,createFolders:R.createFolders}),I.dir||(F.file(U).unsafeOriginalName=C)}return P.zipComment.length&&(F.comment=P.zipComment),F})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,f){var u=o("../utils"),m=o("../stream/GenericWorker");function g(v,S){m.call(this,"Nodejs stream input adapter for "+v),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(g,m),g.prototype._bindStream=function(v){var S=this;(this._stream=v).pause(),v.on("data",function(b){S.push({data:b,meta:{percent:0}})}).on("error",function(b){S.isPaused?this.generatedError=b:S.error(b)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},g.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,f){var u=o("readable-stream").Readable;function m(g,v,S){u.call(this,v),this._helper=g;var b=this;g.on("data",function(O,k){b.push(O)||b._helper.pause(),S&&S(k)}).on("error",function(O){b.emit("error",O)}).on("end",function(){b.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,f){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,f){function u(U,N,X){var J,Z=g.getTypeOf(N),ct=g.extend(X||{},b);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=w(U)),ct.createFolders&&(J=P(U))&&T.call(this,J,!0);var Rt=Z==="string"&&ct.binary===!1&&ct.base64===!1;X&&X.binary!==void 0||(ct.binary=!Rt),(N instanceof O&&N.uncompressedSize===0||ct.dir||!N||N.length===0)&&(ct.base64=!1,ct.binary=!0,N="",ct.compression="STORE",Z="string");var tt=null;tt=N instanceof O||N instanceof v?N:F.isNode&&F.isStream(N)?new E(U,N):g.prepareContent(U,N,ct.binary,ct.optimizedBinaryString,ct.base64);var _t=new k(U,tt,ct);this.files[U]=_t}var m=o("./utf8"),g=o("./utils"),v=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),b=o("./defaults"),O=o("./compressedObject"),k=o("./zipObject"),R=o("./generate"),F=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),P=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var N=U.lastIndexOf("/");return 0<N?U.substring(0,N):""},w=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},T=function(U,N){return N=N!==void 0?N:b.createFolders,U=w(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:N}),this.files[U]};function I(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var N,X,J;for(N in this.files)J=this.files[N],(X=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&U(X,J)},filter:function(U){var N=[];return this.forEach(function(X,J){U(X,J)&&N.push(J)}),N},file:function(U,N,X){if(arguments.length!==1)return U=this.root+U,u.call(this,U,N,X),this;if(I(U)){var J=U;return this.filter(function(ct,Rt){return!Rt.dir&&J.test(ct)})}var Z=this.files[this.root+U];return Z&&!Z.dir?Z:null},folder:function(U){if(!U)return this;if(I(U))return this.filter(function(Z,ct){return ct.dir&&U.test(Z)});var N=this.root+U,X=T.call(this,N),J=this.clone();return J.root=X.name,J},remove:function(U){U=this.root+U;var N=this.files[U];if(N||(U.slice(-1)!=="/"&&(U+="/"),N=this.files[U]),N&&!N.dir)delete this.files[U];else for(var X=this.filter(function(Z,ct){return ct.name.slice(0,U.length)===U}),J=0;J<X.length;J++)delete this.files[X[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var N,X={};try{if((X=g.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");g.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var J=X.comment||this.comment||"";N=R.generateWorker(this,X,J)}catch(Z){(N=new v("error")).error(Z)}return new S(N,X.type||"string",X.mimeType)},generateAsync:function(U,N){return this.generateInternalStream(U).accumulate(N)},generateNodeStream:function(U,N){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(N)}};c.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,c,f){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g);for(var v=0;v<this.data.length;v++)g[v]=255&g[v]}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data[this.zero+g]},m.prototype.lastIndexOfSignature=function(g){for(var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===v&&this.data[k+1]===S&&this.data[k+2]===b&&this.data[k+3]===O)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(g){var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.readData(4);return v===k[0]&&S===k[1]&&b===k[2]&&O===k[3]},m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,f){var u=o("../utils");function m(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var v,S=0;for(this.checkOffset(g),v=this.index+g-1;v>=this.index;v--)S=(S<<8)+this.byteAt(v);return this.index+=g,S},readString:function(g){return u.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,f){var u=o("./Uint8ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},m.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},m.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,f){var u=o("./ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var v=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,f){var u=o("../utils"),m=o("../support"),g=o("./ArrayReader"),v=o("./StringReader"),S=o("./NodeBufferReader"),b=o("./Uint8ArrayReader");c.exports=function(O){var k=u.getTypeOf(O);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(O):m.uint8array?new b(u.transformTo("uint8array",O)):new g(u.transformTo("array",O)):new v(O)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,f){var u=o("./GenericWorker"),m=o("../utils");function g(v){u.call(this,"ConvertWorker to "+v),this.destType=v}m.inherits(g,u),g.prototype.processChunk=function(v){this.push({data:m.transformTo(this.destType,v.data),meta:v.meta})},c.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,f){var u=o("./GenericWorker"),m=o("../crc32");function g(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(g,u),g.prototype.processChunk=function(v){this.streamInfo.crc32=m(v.data,this.streamInfo.crc32||0),this.push(v)},c.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataLengthProbe for "+v),this.propName=v,this.withStreamInfo(v,0)}u.inherits(g,m),g.prototype.processChunk=function(v){if(v){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+v.data.length}m.prototype.processChunk.call(this,v)},c.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,v.then(function(b){S.dataIsReady=!0,S.data=b,S.max=b&&b.length||0,S.type=u.getTypeOf(b),S.isPaused||S._tickAndRepeat()},function(b){S.error(b)})}u.inherits(g,m),g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var v=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":v=this.data.substring(this.index,S);break;case"uint8array":v=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":v=this.data.slice(this.index,S)}return this.index=S,this.push({data:v,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,f){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,g){return this._listeners[m].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,g){if(this._listeners[m])for(var v=0;v<this._listeners[m].length;v++)this._listeners[m][v].call(this,g)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var g=this;return m.on("data",function(v){g.processChunk(v)}),m.on("end",function(){g.end()}),m.on("error",function(v){g.error(v)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,g){return this.extraStreamInfo[m]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,f){var u=o("../utils"),m=o("./ConvertWorker"),g=o("./GenericWorker"),v=o("../base64"),S=o("../support"),b=o("../external"),O=null;if(S.nodestream)try{O=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(F,E){return new b.Promise(function(P,w){var T=[],I=F._internalType,C=F._outputType,U=F._mimeType;F.on("data",function(N,X){T.push(N),E&&E(X)}).on("error",function(N){T=[],w(N)}).on("end",function(){try{var N=function(X,J,Z){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),Z);case"base64":return v.encode(J);default:return u.transformTo(X,J)}}(C,function(X,J){var Z,ct=0,Rt=null,tt=0;for(Z=0;Z<J.length;Z++)tt+=J[Z].length;switch(X){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(Rt=new Uint8Array(tt),Z=0;Z<J.length;Z++)Rt.set(J[Z],ct),ct+=J[Z].length;return Rt;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+X+"'")}}(I,T),U);P(N)}catch(X){w(X)}T=[]}).resume()})}function R(F,E,P){var w=E;switch(E){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=E,this._mimeType=P,u.checkSupport(w),this._worker=F.pipe(new m(w)),F.lock()}catch(T){this._worker=new g("error"),this._worker.error(T)}}R.prototype={accumulate:function(F){return k(this,F)},on:function(F,E){var P=this;return F==="data"?this._worker.on(F,function(w){E.call(P,w.data,w.meta)}):this._worker.on(F,function(){u.delay(E,arguments,P)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(F){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new O(this,{objectMode:this._outputType!=="nodebuffer"},F)}},c.exports=R},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=typeof Buffer<"u",f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),f.blob=m.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!o("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,f){for(var u=o("./utils"),m=o("./support"),g=o("./nodejsUtils"),v=o("./stream/GenericWorker"),S=new Array(256),b=0;b<256;b++)S[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;S[254]=S[254]=1;function O(){v.call(this,"utf-8 decode"),this.leftOver=null}function k(){v.call(this,"utf-8 encode")}f.utf8encode=function(R){return m.nodebuffer?g.newBufferFrom(R,"utf-8"):function(F){var E,P,w,T,I,C=F.length,U=0;for(T=0;T<C;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),U+=P<128?1:P<2048?2:P<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),T=I=0;I<U;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),P<128?E[I++]=P:(P<2048?E[I++]=192|P>>>6:(P<65536?E[I++]=224|P>>>12:(E[I++]=240|P>>>18,E[I++]=128|P>>>12&63),E[I++]=128|P>>>6&63),E[I++]=128|63&P);return E}(R)},f.utf8decode=function(R){return m.nodebuffer?u.transformTo("nodebuffer",R).toString("utf-8"):function(F){var E,P,w,T,I=F.length,C=new Array(2*I);for(E=P=0;E<I;)if((w=F[E++])<128)C[P++]=w;else if(4<(T=S[w]))C[P++]=65533,E+=T-1;else{for(w&=T===2?31:T===3?15:7;1<T&&E<I;)w=w<<6|63&F[E++],T--;1<T?C[P++]=65533:w<65536?C[P++]=w:(w-=65536,C[P++]=55296|w>>10&1023,C[P++]=56320|1023&w)}return C.length!==P&&(C.subarray?C=C.subarray(0,P):C.length=P),u.applyFromCharCode(C)}(R=u.transformTo(m.uint8array?"uint8array":"array",R))},u.inherits(O,v),O.prototype.processChunk=function(R){var F=u.transformTo(m.uint8array?"uint8array":"array",R.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=F;(F=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),F.set(E,this.leftOver.length)}else F=this.leftOver.concat(F);this.leftOver=null}var P=function(T,I){var C;for((I=I||T.length)>T.length&&(I=T.length),C=I-1;0<=C&&(192&T[C])==128;)C--;return C<0||C===0?I:C+S[T[C]]>I?C:I}(F),w=F;P!==F.length&&(m.uint8array?(w=F.subarray(0,P),this.leftOver=F.subarray(P,F.length)):(w=F.slice(0,P),this.leftOver=F.slice(P,F.length))),this.push({data:f.utf8decode(w),meta:R.meta})},O.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=O,u.inherits(k,v),k.prototype.processChunk=function(R){this.push({data:f.utf8encode(R.data),meta:R.meta})},f.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,f){var u=o("./support"),m=o("./base64"),g=o("./nodejsUtils"),v=o("./external");function S(E){return E}function b(E,P){for(var w=0;w<E.length;++w)P[w]=255&E.charCodeAt(w);return P}o("setimmediate"),f.newBlob=function(E,P){f.checkSupport("blob");try{return new Blob([E],{type:P})}catch{try{var w=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return w.append(E),w.getBlob(P)}catch{throw new Error("Bug : can't construct the Blob.")}}};var O={stringifyByChunk:function(E,P,w){var T=[],I=0,C=E.length;if(C<=w)return String.fromCharCode.apply(null,E);for(;I<C;)P==="array"||P==="nodebuffer"?T.push(String.fromCharCode.apply(null,E.slice(I,Math.min(I+w,C)))):T.push(String.fromCharCode.apply(null,E.subarray(I,Math.min(I+w,C)))),I+=w;return T.join("")},stringifyByChar:function(E){for(var P="",w=0;w<E.length;w++)P+=String.fromCharCode(E[w]);return P},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var P=65536,w=f.getTypeOf(E),T=!0;if(w==="uint8array"?T=O.applyCanBeUsed.uint8array:w==="nodebuffer"&&(T=O.applyCanBeUsed.nodebuffer),T)for(;1<P;)try{return O.stringifyByChunk(E,w,P)}catch{P=Math.floor(P/2)}return O.stringifyByChar(E)}function R(E,P){for(var w=0;w<E.length;w++)P[w]=E[w];return P}f.applyFromCharCode=k;var F={};F.string={string:S,array:function(E){return b(E,new Array(E.length))},arraybuffer:function(E){return F.string.uint8array(E).buffer},uint8array:function(E){return b(E,new Uint8Array(E.length))},nodebuffer:function(E){return b(E,g.allocBuffer(E.length))}},F.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(E)}},F.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return R(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(new Uint8Array(E))}},F.uint8array={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return g.newBufferFrom(E)}},F.nodebuffer={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return F.nodebuffer.uint8array(E).buffer},uint8array:function(E){return R(E,new Uint8Array(E.length))},nodebuffer:S},f.transformTo=function(E,P){if(P=P||"",!E)return P;f.checkSupport(E);var w=f.getTypeOf(P);return F[w][E](P)},f.resolve=function(E){for(var P=E.split("/"),w=[],T=0;T<P.length;T++){var I=P[T];I==="."||I===""&&T!==0&&T!==P.length-1||(I===".."?w.pop():w.push(I))}return w.join("/")},f.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&g.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(E){var P,w,T="";for(w=0;w<(E||"").length;w++)T+="\\x"+((P=E.charCodeAt(w))<16?"0":"")+P.toString(16).toUpperCase();return T},f.delay=function(E,P,w){setImmediate(function(){E.apply(w||null,P||[])})},f.inherits=function(E,P){function w(){}w.prototype=P.prototype,E.prototype=new w},f.extend=function(){var E,P,w={};for(E=0;E<arguments.length;E++)for(P in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],P)&&w[P]===void 0&&(w[P]=arguments[E][P]);return w},f.prepareContent=function(E,P,w,T,I){return v.Promise.resolve(P).then(function(C){return u.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new v.Promise(function(U,N){var X=new FileReader;X.onload=function(J){U(J.target.result)},X.onerror=function(J){N(J.target.error)},X.readAsArrayBuffer(C)}):C}).then(function(C){var U=f.getTypeOf(C);return U?(U==="arraybuffer"?C=f.transformTo("uint8array",C):U==="string"&&(I?C=m.decode(C):w&&T!==!0&&(C=function(N){return b(N,u.uint8array?new Uint8Array(N.length):new Array(N.length))}(C))),C):v.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./signature"),v=o("./zipEntry"),S=o("./support");function b(O){this.files=[],this.loadOptions=O}b.prototype={checkSignature:function(O){if(!this.reader.readAndCheckSignature(O)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(O)+")")}},isSignature:function(O,k){var R=this.reader.index;this.reader.setIndex(O);var F=this.reader.readString(4)===k;return this.reader.setIndex(R),F},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var O=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",R=m.transformTo(k,O);this.zipComment=this.loadOptions.decodeFileName(R)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var O,k,R,F=this.zip64EndOfCentralSize-44;0<F;)O=this.reader.readInt(2),k=this.reader.readInt(4),R=this.reader.readData(k),this.zip64ExtensibleData[O]={id:O,length:k,value:R}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var O,k;for(O=0;O<this.files.length;O++)k=this.files[O],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var O;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(O=new v({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(O);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var O=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(O<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(O);var k=O;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(O=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(O),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var R=this.centralDirOffset+this.centralDirSize;this.zip64&&(R+=20,R+=12+this.zip64EndOfCentralSize);var F=k-R;if(0<F)this.isSignature(k,g.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(O){this.reader=u(O)},load:function(O){this.prepareReader(O),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./compressedObject"),v=o("./crc32"),S=o("./utf8"),b=o("./compressions"),O=o("./support");function k(R,F){this.options=R,this.loadOptions=F}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(R){var F,E;if(R.skip(22),this.fileNameLength=R.readInt(2),E=R.readInt(2),this.fileName=R.readData(this.fileNameLength),R.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((F=function(P){for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w)&&b[w].magic===P)return b[w];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,F,R.readData(this.compressedSize))},readCentralPart:function(R){this.versionMadeBy=R.readInt(2),R.skip(2),this.bitFlag=R.readInt(2),this.compressionMethod=R.readString(2),this.date=R.readDate(),this.crc32=R.readInt(4),this.compressedSize=R.readInt(4),this.uncompressedSize=R.readInt(4);var F=R.readInt(2);if(this.extraFieldsLength=R.readInt(2),this.fileCommentLength=R.readInt(2),this.diskNumberStart=R.readInt(2),this.internalFileAttributes=R.readInt(2),this.externalFileAttributes=R.readInt(4),this.localHeaderOffset=R.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");R.skip(F),this.readExtraFields(R),this.parseZIP64ExtraField(R),this.fileComment=R.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var R=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),R==0&&(this.dosPermissions=63&this.externalFileAttributes),R==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var R=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=R.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=R.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=R.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=R.readInt(4))}},readExtraFields:function(R){var F,E,P,w=R.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});R.index+4<w;)F=R.readInt(2),E=R.readInt(2),P=R.readData(E),this.extraFields[F]={id:F,length:E,value:P};R.setIndex(w)},handleUTF8:function(){var R=O.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var F=this.findExtraFieldUnicodePath();if(F!==null)this.fileNameStr=F;else{var E=m.transformTo(R,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var P=this.findExtraFieldUnicodeComment();if(P!==null)this.fileCommentStr=P;else{var w=m.transformTo(R,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var R=this.extraFields[28789];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileName)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null},findExtraFieldUnicodeComment:function(){var R=this.extraFields[25461];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileComment)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,f){function u(F,E,P){this.name=F,this.dir=P.dir,this.date=P.date,this.comment=P.comment,this.unixPermissions=P.unixPermissions,this.dosPermissions=P.dosPermissions,this._data=E,this._dataBinary=P.binary,this.options={compression:P.compression,compressionOptions:P.compressionOptions}}var m=o("./stream/StreamHelper"),g=o("./stream/DataWorker"),v=o("./utf8"),S=o("./compressedObject"),b=o("./stream/GenericWorker");u.prototype={internalStream:function(F){var E=null,P="string";try{if(!F)throw new Error("No output type specified.");var w=(P=F.toLowerCase())==="string"||P==="text";P!=="binarystring"&&P!=="text"||(P="string"),E=this._decompressWorker();var T=!this._dataBinary;T&&!w&&(E=E.pipe(new v.Utf8EncodeWorker)),!T&&w&&(E=E.pipe(new v.Utf8DecodeWorker))}catch(I){(E=new b("error")).error(I)}return new m(E,P,"")},async:function(F,E){return this.internalStream(F).accumulate(E)},nodeStream:function(F,E){return this.internalStream(F||"nodebuffer").toNodejsStream(E)},_compressWorker:function(F,E){if(this._data instanceof S&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var P=this._decompressWorker();return this._dataBinary||(P=P.pipe(new v.Utf8EncodeWorker)),S.createWorkerFrom(P,F,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof b?this._data:new g(this._data)}};for(var O=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},R=0;R<O.length;R++)u.prototype[O[R]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,f){(function(u){var m,g,v=u.MutationObserver||u.WebKitMutationObserver;if(v){var S=0,b=new v(F),O=u.document.createTextNode("");b.observe(O,{characterData:!0}),m=function(){O.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){F(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(F,0)};else{var k=new u.MessageChannel;k.port1.onmessage=F,m=function(){k.port2.postMessage(0)}}var R=[];function F(){var E,P;g=!0;for(var w=R.length;w;){for(P=R,R=[],E=-1;++E<w;)P[E]();w=R.length}g=!1}c.exports=function(E){R.push(E)!==1||g||m()}}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,f){var u=o("immediate");function m(){}var g={},v=["REJECTED"],S=["FULFILLED"],b=["PENDING"];function O(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,w!==m&&E(this,w)}function k(w,T,I){this.promise=w,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof I=="function"&&(this.onRejected=I,this.callRejected=this.otherCallRejected)}function R(w,T,I){u(function(){var C;try{C=T(I)}catch(U){return g.reject(w,U)}C===w?g.reject(w,new TypeError("Cannot resolve promise with itself")):g.resolve(w,C)})}function F(w){var T=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof T=="function")return function(){T.apply(w,arguments)}}function E(w,T){var I=!1;function C(X){I||(I=!0,g.reject(w,X))}function U(X){I||(I=!0,g.resolve(w,X))}var N=P(function(){T(U,C)});N.status==="error"&&C(N.value)}function P(w,T){var I={};try{I.value=w(T),I.status="success"}catch(C){I.status="error",I.value=C}return I}(c.exports=O).prototype.finally=function(w){if(typeof w!="function")return this;var T=this.constructor;return this.then(function(I){return T.resolve(w()).then(function(){return I})},function(I){return T.resolve(w()).then(function(){throw I})})},O.prototype.catch=function(w){return this.then(null,w)},O.prototype.then=function(w,T){if(typeof w!="function"&&this.state===S||typeof T!="function"&&this.state===v)return this;var I=new this.constructor(m);return this.state!==b?R(I,this.state===S?w:T,this.outcome):this.queue.push(new k(I,w,T)),I},k.prototype.callFulfilled=function(w){g.resolve(this.promise,w)},k.prototype.otherCallFulfilled=function(w){R(this.promise,this.onFulfilled,w)},k.prototype.callRejected=function(w){g.reject(this.promise,w)},k.prototype.otherCallRejected=function(w){R(this.promise,this.onRejected,w)},g.resolve=function(w,T){var I=P(F,T);if(I.status==="error")return g.reject(w,I.value);var C=I.value;if(C)E(w,C);else{w.state=S,w.outcome=T;for(var U=-1,N=w.queue.length;++U<N;)w.queue[U].callFulfilled(T)}return w},g.reject=function(w,T){w.state=v,w.outcome=T;for(var I=-1,C=w.queue.length;++I<C;)w.queue[I].callRejected(T);return w},O.resolve=function(w){return w instanceof this?w:g.resolve(new this(m),w)},O.reject=function(w){var T=new this(m);return g.reject(T,w)},O.all=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=new Array(I),N=0,X=-1,J=new this(m);++X<I;)Z(w[X],X);return J;function Z(ct,Rt){T.resolve(ct).then(function(tt){U[Rt]=tt,++N!==I||C||(C=!0,g.resolve(J,U))},function(tt){C||(C=!0,g.reject(J,tt))})}},O.race=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=-1,N=new this(m);++U<I;)X=w[U],T.resolve(X).then(function(J){C||(C=!0,g.resolve(N,J))},function(J){C||(C=!0,g.reject(N,J))});var X;return N}},{immediate:36}],38:[function(o,c,f){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,f){var u=o("./zlib/deflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/messages"),S=o("./zlib/zstream"),b=Object.prototype.toString,O=0,k=-1,R=0,F=8;function E(w){if(!(this instanceof E))return new E(w);this.options=m.assign({level:k,method:F,chunkSize:16384,windowBits:15,memLevel:8,strategy:R,to:""},w||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var I=u.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(I!==O)throw new Error(v[I]);if(T.header&&u.deflateSetHeader(this.strm,T.header),T.dictionary){var C;if(C=typeof T.dictionary=="string"?g.string2buf(T.dictionary):b.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(I=u.deflateSetDictionary(this.strm,C))!==O)throw new Error(v[I]);this._dict_set=!0}}function P(w,T){var I=new E(T);if(I.push(w,!0),I.err)throw I.msg||v[I.err];return I.result}E.prototype.push=function(w,T){var I,C,U=this.strm,N=this.options.chunkSize;if(this.ended)return!1;C=T===~~T?T:T===!0?4:0,typeof w=="string"?U.input=g.string2buf(w):b.call(w)==="[object ArrayBuffer]"?U.input=new Uint8Array(w):U.input=w,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(N),U.next_out=0,U.avail_out=N),(I=u.deflate(U,C))!==1&&I!==O)return this.onEnd(I),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&I!==1);return C===4?(I=u.deflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===O):C!==2||(this.onEnd(O),!(U.avail_out=0))},E.prototype.onData=function(w){this.chunks.push(w)},E.prototype.onEnd=function(w){w===O&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},f.Deflate=E,f.deflate=P,f.deflateRaw=function(w,T){return(T=T||{}).raw=!0,P(w,T)},f.gzip=function(w,T){return(T=T||{}).gzip=!0,P(w,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,f){var u=o("./zlib/inflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/constants"),S=o("./zlib/messages"),b=o("./zlib/zstream"),O=o("./zlib/gzheader"),k=Object.prototype.toString;function R(E){if(!(this instanceof R))return new R(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var P=this.options;P.raw&&0<=P.windowBits&&P.windowBits<16&&(P.windowBits=-P.windowBits,P.windowBits===0&&(P.windowBits=-15)),!(0<=P.windowBits&&P.windowBits<16)||E&&E.windowBits||(P.windowBits+=32),15<P.windowBits&&P.windowBits<48&&!(15&P.windowBits)&&(P.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var w=u.inflateInit2(this.strm,P.windowBits);if(w!==v.Z_OK)throw new Error(S[w]);this.header=new O,u.inflateGetHeader(this.strm,this.header)}function F(E,P){var w=new R(P);if(w.push(E,!0),w.err)throw w.msg||S[w.err];return w.result}R.prototype.push=function(E,P){var w,T,I,C,U,N,X=this.strm,J=this.options.chunkSize,Z=this.options.dictionary,ct=!1;if(this.ended)return!1;T=P===~~P?P:P===!0?v.Z_FINISH:v.Z_NO_FLUSH,typeof E=="string"?X.input=g.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8(J),X.next_out=0,X.avail_out=J),(w=u.inflate(X,v.Z_NO_FLUSH))===v.Z_NEED_DICT&&Z&&(N=typeof Z=="string"?g.string2buf(Z):k.call(Z)==="[object ArrayBuffer]"?new Uint8Array(Z):Z,w=u.inflateSetDictionary(this.strm,N)),w===v.Z_BUF_ERROR&&ct===!0&&(w=v.Z_OK,ct=!1),w!==v.Z_STREAM_END&&w!==v.Z_OK)return this.onEnd(w),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&w!==v.Z_STREAM_END&&(X.avail_in!==0||T!==v.Z_FINISH&&T!==v.Z_SYNC_FLUSH)||(this.options.to==="string"?(I=g.utf8border(X.output,X.next_out),C=X.next_out-I,U=g.buf2string(X.output,I),X.next_out=C,X.avail_out=J-C,C&&m.arraySet(X.output,X.output,I,C,0),this.onData(U)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ct=!0)}while((0<X.avail_in||X.avail_out===0)&&w!==v.Z_STREAM_END);return w===v.Z_STREAM_END&&(T=v.Z_FINISH),T===v.Z_FINISH?(w=u.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===v.Z_OK):T!==v.Z_SYNC_FLUSH||(this.onEnd(v.Z_OK),!(X.avail_out=0))},R.prototype.onData=function(E){this.chunks.push(E)},R.prototype.onEnd=function(E){E===v.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},f.Inflate=R,f.inflate=F,f.inflateRaw=function(E,P){return(P=P||{}).raw=!0,F(E,P)},f.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(v){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var b=S.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var O in b)b.hasOwnProperty(O)&&(v[O]=b[O])}}return v},f.shrinkBuf=function(v,S){return v.length===S?v:v.subarray?v.subarray(0,S):(v.length=S,v)};var m={arraySet:function(v,S,b,O,k){if(S.subarray&&v.subarray)v.set(S.subarray(b,b+O),k);else for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){var S,b,O,k,R,F;for(S=O=0,b=v.length;S<b;S++)O+=v[S].length;for(F=new Uint8Array(O),S=k=0,b=v.length;S<b;S++)R=v[S],F.set(R,k),k+=R.length;return F}},g={arraySet:function(v,S,b,O,k){for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){return[].concat.apply([],v)}};f.setTyped=function(v){v?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,m)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,g))},f.setTyped(u)},{}],42:[function(o,c,f){var u=o("./common"),m=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var v=new u.Buf8(256),S=0;S<256;S++)v[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function b(O,k){if(k<65537&&(O.subarray&&g||!O.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(O,k));for(var R="",F=0;F<k;F++)R+=String.fromCharCode(O[F]);return R}v[254]=v[254]=1,f.string2buf=function(O){var k,R,F,E,P,w=O.length,T=0;for(E=0;E<w;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),T+=R<128?1:R<2048?2:R<65536?3:4;for(k=new u.Buf8(T),E=P=0;P<T;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),R<128?k[P++]=R:(R<2048?k[P++]=192|R>>>6:(R<65536?k[P++]=224|R>>>12:(k[P++]=240|R>>>18,k[P++]=128|R>>>12&63),k[P++]=128|R>>>6&63),k[P++]=128|63&R);return k},f.buf2binstring=function(O){return b(O,O.length)},f.binstring2buf=function(O){for(var k=new u.Buf8(O.length),R=0,F=k.length;R<F;R++)k[R]=O.charCodeAt(R);return k},f.buf2string=function(O,k){var R,F,E,P,w=k||O.length,T=new Array(2*w);for(R=F=0;R<w;)if((E=O[R++])<128)T[F++]=E;else if(4<(P=v[E]))T[F++]=65533,R+=P-1;else{for(E&=P===2?31:P===3?15:7;1<P&&R<w;)E=E<<6|63&O[R++],P--;1<P?T[F++]=65533:E<65536?T[F++]=E:(E-=65536,T[F++]=55296|E>>10&1023,T[F++]=56320|1023&E)}return b(T,F)},f.utf8border=function(O,k){var R;for((k=k||O.length)>O.length&&(k=O.length),R=k-1;0<=R&&(192&O[R])==128;)R--;return R<0||R===0?k:R+v[O[R]]>k?R:k}},{"./common":41}],43:[function(o,c,f){c.exports=function(u,m,g,v){for(var S=65535&u|0,b=u>>>16&65535|0,O=0;g!==0;){for(g-=O=2e3<g?2e3:g;b=b+(S=S+m[v++]|0)|0,--O;);S%=65521,b%=65521}return S|b<<16|0}},{}],44:[function(o,c,f){c.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,c,f){var u=function(){for(var m,g=[],v=0;v<256;v++){m=v;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;g[v]=m}return g}();c.exports=function(m,g,v,S){var b=u,O=S+v;m^=-1;for(var k=S;k<O;k++)m=m>>>8^b[255&(m^g[k])];return-1^m}},{}],46:[function(o,c,f){var u,m=o("../utils/common"),g=o("./trees"),v=o("./adler32"),S=o("./crc32"),b=o("./messages"),O=0,k=4,R=0,F=-2,E=-1,P=4,w=2,T=8,I=9,C=286,U=30,N=19,X=2*C+1,J=15,Z=3,ct=258,Rt=ct+Z+1,tt=42,_t=113,G=1,Pt=2,Et=3,At=4;function ce(W,Jt){return W.msg=b[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,jt=Jt.pending;jt>W.avail_out&&(jt=W.avail_out),jt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,jt,W.next_out),W.next_out+=jt,Jt.pending_out+=jt,W.total_out+=jt,W.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function Nt(W,Jt){g._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Pe(W,Jt){W.pending_buf[W.pending++]=Jt}function pe(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Wt(W,Jt){var jt,dt,pt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-Rt?W.strstart-(W.w_size-Rt):0,Q=W.window,st=W.w_mask,nt=W.prev,vt=W.strstart+ct,Ut=Q[Dt+ie-1],qt=Q[Dt+ie];W.prev_length>=W.good_match&&(pt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(jt=Jt)+ie]===qt&&Q[jt+ie-1]===Ut&&Q[jt]===Q[Dt]&&Q[++jt]===Q[Dt+1]){Dt+=2,jt++;do;while(Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Dt<vt);if(dt=ct-(vt-Dt),Dt=vt-ct,ie<dt){if(W.match_start=Jt,Kt<=(ie=dt))break;Ut=Q[Dt+ie-1],qt=Q[Dt+ie]}}while((Jt=nt[Jt&st])>z&&--pt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,jt,dt,pt,Dt,ie,Kt,z,Q,st,nt=W.w_size;do{if(pt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Rt)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=jt=W.hash_size;dt=W.head[--Jt],W.head[Jt]=nt<=dt?dt-nt:0,--jt;);for(Jt=jt=nt;dt=W.prev[--Jt],W.prev[Jt]=nt<=dt?dt-nt:0,--jt;);pt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=pt,st=void 0,st=ie.avail_in,Q<st&&(st=Q),jt=st===0?0:(ie.avail_in-=st,m.arraySet(Kt,ie.input,ie.next_in,st,z),ie.state.wrap===1?ie.adler=v(ie.adler,Kt,st,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,st,z)),ie.next_in+=st,ie.total_in+=st,st),W.lookahead+=jt,W.lookahead+W.insert>=Z)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Z-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Z)););}while(W.lookahead<Rt&&W.strm.avail_in!==0)}function Si(W,Jt){for(var jt,dt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),jt!==0&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt)),W.match_length>=Z)if(dt=g._tr_tally(W,W.strstart-W.match_start,W.match_length-Z),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Z){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else dt=g._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(dt&&(Nt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Nt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var jt,dt,pt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Z-1,jt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt),W.match_length<=5&&(W.strategy===1||W.match_length===Z&&4096<W.strstart-W.match_start)&&(W.match_length=Z-1)),W.prev_length>=Z&&W.match_length<=W.prev_length){for(pt=W.strstart+W.lookahead-Z,dt=g._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Z),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=pt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Z-1,W.strstart++,dt&&(Nt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((dt=g._tr_tally(W,0,W.window[W.strstart-1]))&&Nt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(dt=g._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Nt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,jt,dt,pt){this.good_length=W,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=dt,this.func=pt}function pi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*N+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(J+1),this.heap=new m.Buf16(2*C+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*C+1),Ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Di(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=w,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?tt:_t,W.adler=Jt.wrap===2?0:1,Jt.last_flush=O,g._tr_init(Jt),R):ce(W,F)}function gn(W){var Jt=Di(W);return Jt===R&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=u[jt.level].max_lazy,jt.good_match=u[jt.level].good_length,jt.nice_match=u[jt.level].nice_length,jt.max_chain_length=u[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,jt.ins_h=0}(W.state),Jt}function Qi(W,Jt,jt,dt,pt,Dt){if(!W)return F;var ie=1;if(Jt===E&&(Jt=6),dt<0?(ie=0,dt=-dt):15<dt&&(ie=2,dt-=16),pt<1||I<pt||jt!==T||dt<8||15<dt||Jt<0||9<Jt||Dt<0||P<Dt)return ce(W,F);dt===8&&(dt=9);var Kt=new pi;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=dt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Z-1)/Z),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=jt,gn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var jt=65535;for(jt>W.pending_buf_size-5&&(jt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===O)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var dt=W.block_start+jt;if((W.strstart===0||W.strstart>=dt)&&(W.lookahead=W.strstart-dt,W.strstart=dt,Nt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Rt&&(Nt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):(W.strstart>W.block_start&&(Nt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Si),new Ge(4,5,16,8,Si),new Ge(4,6,32,32,Si),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],f.deflateInit=function(W,Jt){return Qi(W,Jt,T,15,8,0)},f.deflateInit2=Qi,f.deflateReset=gn,f.deflateResetKeep=Di,f.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?F:(W.state.gzhead=Jt,R):F},f.deflate=function(W,Jt){var jt,dt,pt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,F):F;if(dt=W.state,!W.output||!W.input&&W.avail_in!==0||dt.status===666&&Jt!==k)return ce(W,W.avail_out===0?-5:F);if(dt.strm=W,jt=dt.last_flush,dt.last_flush=Jt,dt.status===tt)if(dt.wrap===2)W.adler=0,Pe(dt,31),Pe(dt,139),Pe(dt,8),dt.gzhead?(Pe(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Pe(dt,255&dt.gzhead.time),Pe(dt,dt.gzhead.time>>8&255),Pe(dt,dt.gzhead.time>>16&255),Pe(dt,dt.gzhead.time>>24&255),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Pe(dt,255&dt.gzhead.extra.length),Pe(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(W.adler=S(W.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=69):(Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,3),dt.status=_t);else{var ie=T+(dt.w_bits-8<<4)<<8;ie|=(2<=dt.strategy||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(ie|=32),ie+=31-ie%31,dt.status=_t,pe(dt,ie),dt.strstart!==0&&(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),W.adler=1}if(dt.status===69)if(dt.gzhead.extra){for(pt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending!==dt.pending_buf_size));)Pe(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=73)}else dt.status=73;if(dt.status===73)if(dt.gzhead.name){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.gzindex=0,dt.status=91)}else dt.status=91;if(dt.status===91)if(dt.gzhead.comment){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.status=103)}else dt.status=103;if(dt.status===103&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&It(W),dt.pending+2<=dt.pending_buf_size&&(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),W.adler=0,dt.status=_t)):dt.status=_t),dt.pending!==0){if(It(W),W.avail_out===0)return dt.last_flush=-1,R}else if(W.avail_in===0&&re(Jt)<=re(jt)&&Jt!==k)return ce(W,-5);if(dt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||dt.lookahead!==0||Jt!==O&&dt.status!==666){var Kt=dt.strategy===2?function(z,Q){for(var st;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===O)return G;break}if(z.match_length=0,st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,st&&(Nt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Nt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Nt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):dt.strategy===3?function(z,Q){for(var st,nt,vt,Ut,qt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===O)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Z&&0<z.strstart&&(nt=qt[vt=z.strstart-1])===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]){Ut=z.strstart+ct;do;while(nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&vt<Ut);z.match_length=ct-(Ut-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Z?(st=g._tr_tally(z,1,z.match_length-Z),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),st&&(Nt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Nt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Nt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):u[dt.level].func(dt,Jt);if(Kt!==Et&&Kt!==At||(dt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(dt.last_flush=-1),R;if(Kt===Pt&&(Jt===1?g._tr_align(dt):Jt!==5&&(g._tr_stored_block(dt,0,0,!1),Jt===3&&(Ft(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),It(W),W.avail_out===0))return dt.last_flush=-1,R}return Jt!==k?R:dt.wrap<=0?1:(dt.wrap===2?(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),Pe(dt,W.adler>>16&255),Pe(dt,W.adler>>24&255),Pe(dt,255&W.total_in),Pe(dt,W.total_in>>8&255),Pe(dt,W.total_in>>16&255),Pe(dt,W.total_in>>24&255)):(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),It(W),0<dt.wrap&&(dt.wrap=-dt.wrap),dt.pending!==0?R:1)},f.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==tt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==_t&&Jt!==666?ce(W,F):(W.state=null,Jt===_t?ce(W,-3):R):F},f.deflateSetDictionary=function(W,Jt){var jt,dt,pt,Dt,ie,Kt,z,Q,st=Jt.length;if(!W||!W.state||(Dt=(jt=W.state).wrap)===2||Dt===1&&jt.status!==tt||jt.lookahead)return F;for(Dt===1&&(W.adler=v(W.adler,Jt,st,0)),jt.wrap=0,st>=jt.w_size&&(Dt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),Q=new m.Buf8(jt.w_size),m.arraySet(Q,Jt,st-jt.w_size,jt.w_size,0),Jt=Q,st=jt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=st,W.next_in=0,W.input=Jt,$e(jt);jt.lookahead>=Z;){for(dt=jt.strstart,pt=jt.lookahead-(Z-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[dt+Z-1])&jt.hash_mask,jt.prev[dt&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=dt,dt++,--pt;);jt.strstart=dt,jt.lookahead=Z-1,$e(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,jt.wrap=Dt,R},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,f){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,c,f){c.exports=function(u,m){var g,v,S,b,O,k,R,F,E,P,w,T,I,C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt;g=u.state,v=u.next_in,G=u.input,S=v+(u.avail_in-5),b=u.next_out,Pt=u.output,O=b-(m-u.avail_out),k=b+(u.avail_out-257),R=g.dmax,F=g.wsize,E=g.whave,P=g.wnext,w=g.window,T=g.hold,I=g.bits,C=g.lencode,U=g.distcode,N=(1<<g.lenbits)-1,X=(1<<g.distbits)-1;t:do{I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=C[T&N];e:for(;;){if(T>>>=Z=J>>>24,I-=Z,(Z=J>>>16&255)===0)Pt[b++]=65535&J;else{if(!(16&Z)){if(!(64&Z)){J=C[(65535&J)+(T&(1<<Z)-1)];continue e}if(32&Z){g.mode=12;break t}u.msg="invalid literal/length code",g.mode=30;break t}ct=65535&J,(Z&=15)&&(I<Z&&(T+=G[v++]<<I,I+=8),ct+=T&(1<<Z)-1,T>>>=Z,I-=Z),I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=U[T&X];i:for(;;){if(T>>>=Z=J>>>24,I-=Z,!(16&(Z=J>>>16&255))){if(!(64&Z)){J=U[(65535&J)+(T&(1<<Z)-1)];continue i}u.msg="invalid distance code",g.mode=30;break t}if(Rt=65535&J,I<(Z&=15)&&(T+=G[v++]<<I,(I+=8)<Z&&(T+=G[v++]<<I,I+=8)),R<(Rt+=T&(1<<Z)-1)){u.msg="invalid distance too far back",g.mode=30;break t}if(T>>>=Z,I-=Z,(Z=b-O)<Rt){if(E<(Z=Rt-Z)&&g.sane){u.msg="invalid distance too far back",g.mode=30;break t}if(_t=w,(tt=0)===P){if(tt+=F-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}else if(P<Z){if(tt+=F+P-Z,(Z-=P)<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);if(tt=0,P<ct){for(ct-=Z=P;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}}else if(tt+=P-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}for(;2<ct;)Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],ct-=3;ct&&(Pt[b++]=_t[tt++],1<ct&&(Pt[b++]=_t[tt++]))}else{for(tt=b-Rt;Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],2<(ct-=3););ct&&(Pt[b++]=Pt[tt++],1<ct&&(Pt[b++]=Pt[tt++]))}break}}break}}while(v<S&&b<k);v-=ct=I>>3,T&=(1<<(I-=ct<<3))-1,u.next_in=v,u.next_out=b,u.avail_in=v<S?S-v+5:5-(v-S),u.avail_out=b<k?k-b+257:257-(b-k),g.hold=T,g.bits=I}},{}],49:[function(o,c,f){var u=o("../utils/common"),m=o("./adler32"),g=o("./crc32"),v=o("./inffast"),S=o("./inftrees"),b=1,O=2,k=0,R=-2,F=1,E=852,P=592;function w(tt){return(tt>>>24&255)+(tt>>>8&65280)+((65280&tt)<<8)+((255&tt)<<24)}function T(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function I(tt){var _t;return tt&&tt.state?(_t=tt.state,tt.total_in=tt.total_out=_t.total=0,tt.msg="",_t.wrap&&(tt.adler=1&_t.wrap),_t.mode=F,_t.last=0,_t.havedict=0,_t.dmax=32768,_t.head=null,_t.hold=0,_t.bits=0,_t.lencode=_t.lendyn=new u.Buf32(E),_t.distcode=_t.distdyn=new u.Buf32(P),_t.sane=1,_t.back=-1,k):R}function C(tt){var _t;return tt&&tt.state?((_t=tt.state).wsize=0,_t.whave=0,_t.wnext=0,I(tt)):R}function U(tt,_t){var G,Pt;return tt&&tt.state?(Pt=tt.state,_t<0?(G=0,_t=-_t):(G=1+(_t>>4),_t<48&&(_t&=15)),_t&&(_t<8||15<_t)?R:(Pt.window!==null&&Pt.wbits!==_t&&(Pt.window=null),Pt.wrap=G,Pt.wbits=_t,C(tt))):R}function N(tt,_t){var G,Pt;return tt?(Pt=new T,(tt.state=Pt).window=null,(G=U(tt,_t))!==k&&(tt.state=null),G):R}var X,J,Z=!0;function ct(tt){if(Z){var _t;for(X=new u.Buf32(512),J=new u.Buf32(32),_t=0;_t<144;)tt.lens[_t++]=8;for(;_t<256;)tt.lens[_t++]=9;for(;_t<280;)tt.lens[_t++]=7;for(;_t<288;)tt.lens[_t++]=8;for(S(b,tt.lens,0,288,X,0,tt.work,{bits:9}),_t=0;_t<32;)tt.lens[_t++]=5;S(O,tt.lens,0,32,J,0,tt.work,{bits:5}),Z=!1}tt.lencode=X,tt.lenbits=9,tt.distcode=J,tt.distbits=5}function Rt(tt,_t,G,Pt){var Et,At=tt.state;return At.window===null&&(At.wsize=1<<At.wbits,At.wnext=0,At.whave=0,At.window=new u.Buf8(At.wsize)),Pt>=At.wsize?(u.arraySet(At.window,_t,G-At.wsize,At.wsize,0),At.wnext=0,At.whave=At.wsize):(Pt<(Et=At.wsize-At.wnext)&&(Et=Pt),u.arraySet(At.window,_t,G-Pt,Et,At.wnext),(Pt-=Et)?(u.arraySet(At.window,_t,G-Pt,Pt,0),At.wnext=Pt,At.whave=At.wsize):(At.wnext+=Et,At.wnext===At.wsize&&(At.wnext=0),At.whave<At.wsize&&(At.whave+=Et))),0}f.inflateReset=C,f.inflateReset2=U,f.inflateResetKeep=I,f.inflateInit=function(tt){return N(tt,15)},f.inflateInit2=N,f.inflate=function(tt,_t){var G,Pt,Et,At,ce,re,Ft,It,Nt,Pe,pe,Wt,$e,Si,Oe,Ge,pi,Di,gn,Qi,W,Jt,jt,dt,pt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!tt||!tt.state||!tt.output||!tt.input&&tt.avail_in!==0)return R;(G=tt.state).mode===12&&(G.mode=13),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Nt=G.bits,Pe=re,pe=Ft,Jt=k;t:for(;;)switch(G.mode){case F:if(G.wrap===0){G.mode=13;break}for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0),Nt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){tt.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){tt.msg="unknown compression method",G.mode=30;break}if(Nt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){tt.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,tt.adler=G.check=1,G.mode=512&It?10:12,Nt=It=0;break;case 2:for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(G.flags=It,(255&G.flags)!=8){tt.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){tt.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0,G.mode=3;case 3:for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=g(G.check,Dt,4,0)),Nt=It=0,G.mode=4;case 4:for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Wt=G.length)&&(Wt=re),Wt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,At,Wt,W)),512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,G.length-=Wt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It!==(65535&G.check)){tt.msg="header crc mismatch",G.mode=30;break}Nt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),tt.adler=G.check=0,G.mode=12;break;case 10:for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}tt.adler=G.check=w(It),Nt=It=0,G.mode=11;case 11:if(G.havedict===0)return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,2;tt.adler=G.check=1,G.mode=12;case 12:if(_t===5||_t===6)break t;case 13:if(G.last){It>>>=7&Nt,Nt-=7&Nt,G.mode=27;break}for(;Nt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}switch(G.last=1&It,Nt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,_t!==6)break;It>>>=2,Nt-=2;break t;case 2:G.mode=17;break;case 3:tt.msg="invalid block type",G.mode=30}It>>>=2,Nt-=2;break;case 14:for(It>>>=7&Nt,Nt-=7&Nt;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if((65535&It)!=(It>>>16^65535)){tt.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Nt=It=0,G.mode=15,_t===6)break t;case 15:G.mode=16;case 16:if(Wt=G.length){if(re<Wt&&(Wt=re),Ft<Wt&&(Wt=Ft),Wt===0)break t;u.arraySet(Et,Pt,At,Wt,ce),re-=Wt,At+=Wt,Ft-=Wt,ce+=Wt,G.length-=Wt;break}G.mode=12;break;case 17:for(;Nt<14;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(G.nlen=257+(31&It),It>>>=5,Nt-=5,G.ndist=1+(31&It),It>>>=5,Nt-=5,G.ncode=4+(15&It),It>>>=4,Nt-=4,286<G.nlen||30<G.ndist){tt.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Nt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Nt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,jt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(pi<16)It>>>=Oe,Nt-=Oe,G.lens[G.have++]=pi;else{if(pi===16){for(dt=Oe+2;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It>>>=Oe,Nt-=Oe,G.have===0){tt.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Wt=3+(3&It),It>>>=2,Nt-=2}else if(pi===17){for(dt=Oe+3;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}Nt-=Oe,W=0,Wt=3+(7&(It>>>=Oe)),It>>>=3,Nt-=3}else{for(dt=Oe+7;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}Nt-=Oe,W=0,Wt=11+(127&(It>>>=Oe)),It>>>=7,Nt-=7}if(G.have+Wt>G.nlen+G.ndist){tt.msg="invalid bit length repeat",G.mode=30;break}for(;Wt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){tt.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,jt={bits:G.lenbits},Jt=S(b,G.lens,0,G.nlen,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,jt={bits:G.distbits},Jt=S(O,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,jt),G.distbits=jt.bits,Jt){tt.msg="invalid distances set",G.mode=30;break}if(G.mode=20,_t===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,v(tt,pe),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Nt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(Ge&&!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.lencode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}It>>>=Di,Nt-=Di,G.back+=Di}if(It>>>=Oe,Nt-=Oe,G.back+=Oe,G.length=pi,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){tt.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(dt=G.extra;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Nt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(pt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.distcode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}It>>>=Di,Nt-=Di,G.back+=Di}if(It>>>=Oe,Nt-=Oe,G.back+=Oe,64&Ge){tt.msg="invalid distance code",G.mode=30;break}G.offset=pi,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(dt=G.extra;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Nt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){tt.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Wt=pe-Ft,G.offset>Wt){if((Wt=G.offset-Wt)>G.whave&&G.sane){tt.msg="invalid distance too far back",G.mode=30;break}$e=Wt>G.wnext?(Wt-=G.wnext,G.wsize-Wt):G.wnext-Wt,Wt>G.length&&(Wt=G.length),Si=G.window}else Si=Et,$e=ce-G.offset,Wt=G.length;for(Ft<Wt&&(Wt=Ft),Ft-=Wt,G.length-=Wt;Et[ce++]=Si[$e++],--Wt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Nt<32;){if(re===0)break t;re--,It|=Pt[At++]<<Nt,Nt+=8}if(pe-=Ft,tt.total_out+=pe,G.total+=pe,pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,ce-pe):m(G.check,Et,pe,ce-pe)),pe=Ft,(G.flags?It:w(It))!==G.check){tt.msg="incorrect data check",G.mode=30;break}Nt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It!==(4294967295&G.total)){tt.msg="incorrect length check",G.mode=30;break}Nt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return R}return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,(G.wsize||pe!==tt.avail_out&&G.mode<30&&(G.mode<27||_t!==4))&&Rt(tt,tt.output,tt.next_out,pe-tt.avail_out)?(G.mode=31,-4):(Pe-=tt.avail_in,pe-=tt.avail_out,tt.total_in+=Pe,tt.total_out+=pe,G.total+=pe,G.wrap&&pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,tt.next_out-pe):m(G.check,Et,pe,tt.next_out-pe)),tt.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Pe==0&&pe===0||_t===4)&&Jt===k&&(Jt=-5),Jt)},f.inflateEnd=function(tt){if(!tt||!tt.state)return R;var _t=tt.state;return _t.window&&(_t.window=null),tt.state=null,k},f.inflateGetHeader=function(tt,_t){var G;return tt&&tt.state&&2&(G=tt.state).wrap?((G.head=_t).done=!1,k):R},f.inflateSetDictionary=function(tt,_t){var G,Pt=_t.length;return tt&&tt.state?(G=tt.state).wrap!==0&&G.mode!==11?R:G.mode===11&&m(1,_t,Pt,0)!==G.check?-3:Rt(tt,_t,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):R},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,f){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],v=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(b,O,k,R,F,E,P,w){var T,I,C,U,N,X,J,Z,ct,Rt=w.bits,tt=0,_t=0,G=0,Pt=0,Et=0,At=0,ce=0,re=0,Ft=0,It=0,Nt=null,Pe=0,pe=new u.Buf16(16),Wt=new u.Buf16(16),$e=null,Si=0;for(tt=0;tt<=15;tt++)pe[tt]=0;for(_t=0;_t<R;_t++)pe[O[k+_t]]++;for(Et=Rt,Pt=15;1<=Pt&&pe[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return F[E++]=20971520,F[E++]=20971520,w.bits=1,0;for(G=1;G<Pt&&pe[G]===0;G++);for(Et<G&&(Et=G),tt=re=1;tt<=15;tt++)if(re<<=1,(re-=pe[tt])<0)return-1;if(0<re&&(b===0||Pt!==1))return-1;for(Wt[1]=0,tt=1;tt<15;tt++)Wt[tt+1]=Wt[tt]+pe[tt];for(_t=0;_t<R;_t++)O[k+_t]!==0&&(P[Wt[O[k+_t]]++]=_t);if(X=b===0?(Nt=$e=P,19):b===1?(Nt=m,Pe-=257,$e=g,Si-=257,256):(Nt=v,$e=S,-1),tt=G,N=E,ce=_t=It=0,C=-1,U=(Ft=1<<(At=Et))-1,b===1&&852<Ft||b===2&&592<Ft)return 1;for(;;){for(J=tt-ce,ct=P[_t]<X?(Z=0,P[_t]):P[_t]>X?(Z=$e[Si+P[_t]],Nt[Pe+P[_t]]):(Z=96,0),T=1<<tt-ce,G=I=1<<At;F[N+(It>>ce)+(I-=T)]=J<<24|Z<<16|ct|0,I!==0;);for(T=1<<tt-1;It&T;)T>>=1;if(T!==0?(It&=T-1,It+=T):It=0,_t++,--pe[tt]==0){if(tt===Pt)break;tt=O[k+P[_t]]}if(Et<tt&&(It&U)!==C){for(ce===0&&(ce=Et),N+=G,re=1<<(At=tt-ce);At+ce<Pt&&!((re-=pe[At+ce])<=0);)At++,re<<=1;if(Ft+=1<<At,b===1&&852<Ft||b===2&&592<Ft)return 1;F[C=It&U]=Et<<24|At<<16|N-E|0}}return It!==0&&(F[N+It]=tt-ce<<24|64<<16|0),w.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,f){c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,c,f){var u=o("../utils/common"),m=0,g=1;function v(pt){for(var Dt=pt.length;0<=--Dt;)pt[Dt]=0}var S=0,b=29,O=256,k=O+1+b,R=30,F=19,E=2*k+1,P=15,w=16,T=7,I=256,C=16,U=17,N=18,X=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Rt=new Array(2*(k+2));v(Rt);var tt=new Array(2*R);v(tt);var _t=new Array(512);v(_t);var G=new Array(256);v(G);var Pt=new Array(b);v(Pt);var Et,At,ce,re=new Array(R);function Ft(pt,Dt,ie,Kt,z){this.static_tree=pt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=pt&&pt.length}function It(pt,Dt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Dt}function Nt(pt){return pt<256?_t[pt]:_t[256+(pt>>>7)]}function Pe(pt,Dt){pt.pending_buf[pt.pending++]=255&Dt,pt.pending_buf[pt.pending++]=Dt>>>8&255}function pe(pt,Dt,ie){pt.bi_valid>w-ie?(pt.bi_buf|=Dt<<pt.bi_valid&65535,Pe(pt,pt.bi_buf),pt.bi_buf=Dt>>w-pt.bi_valid,pt.bi_valid+=ie-w):(pt.bi_buf|=Dt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Wt(pt,Dt,ie){pe(pt,ie[2*Dt],ie[2*Dt+1])}function $e(pt,Dt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Si(pt,Dt,ie){var Kt,z,Q=new Array(P+1),st=0;for(Kt=1;Kt<=P;Kt++)Q[Kt]=st=st+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=pt[2*z+1];nt!==0&&(pt[2*z]=$e(Q[nt]++,nt))}}function Oe(pt){var Dt;for(Dt=0;Dt<k;Dt++)pt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<R;Dt++)pt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<F;Dt++)pt.bl_tree[2*Dt]=0;pt.dyn_ltree[2*I]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Pe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function pi(pt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return pt[z]<pt[Q]||pt[z]===pt[Q]&&Kt[Dt]<=Kt[ie]}function Di(pt,Dt,ie){for(var Kt=pt.heap[ie],z=ie<<1;z<=pt.heap_len&&(z<pt.heap_len&&pi(Dt,pt.heap[z+1],pt.heap[z],pt.depth)&&z++,!pi(Dt,Kt,pt.heap[z],pt.depth));)pt.heap[ie]=pt.heap[z],ie=z,z<<=1;pt.heap[ie]=Kt}function gn(pt,Dt,ie){var Kt,z,Q,st,nt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*nt]<<8|pt.pending_buf[pt.d_buf+2*nt+1],z=pt.pending_buf[pt.l_buf+nt],nt++,Kt===0?Wt(pt,z,Dt):(Wt(pt,(Q=G[z])+O+1,Dt),(st=X[Q])!==0&&pe(pt,z-=Pt[Q],st),Wt(pt,Q=Nt(--Kt),ie),(st=J[Q])!==0&&pe(pt,Kt-=re[Q],st)),nt<pt.last_lit;);Wt(pt,I,Dt)}function Qi(pt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,st=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Ut=-1;for(pt.heap_len=0,pt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(pt.heap[++pt.heap_len]=Ut=ie,pt.depth[ie]=0):Q[2*ie+1]=0;for(;pt.heap_len<2;)Q[2*(z=pt.heap[++pt.heap_len]=Ut<2?++Ut:0)]=1,pt.depth[z]=0,pt.opt_len--,nt&&(pt.static_len-=st[2*z+1]);for(Dt.max_code=Ut,ie=pt.heap_len>>1;1<=ie;ie--)Di(pt,Q,ie);for(z=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Di(pt,Q,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],pt.depth[z]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,pt.heap[1]=z++,Di(pt,Q,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(qt,Xt){var Ne,Ie,me,we,yi,Ei,ni=Xt.dyn_tree,bi=Xt.max_code,Yr=Xt.stat_desc.static_tree,ar=Xt.stat_desc.has_stree,sn=Xt.stat_desc.extra_bits,Po=Xt.stat_desc.extra_base,zi=Xt.stat_desc.max_length,Zo=0;for(we=0;we<=P;we++)qt.bl_count[we]=0;for(ni[2*qt.heap[qt.heap_max]+1]=0,Ne=qt.heap_max+1;Ne<E;Ne++)zi<(we=ni[2*ni[2*(Ie=qt.heap[Ne])+1]+1]+1)&&(we=zi,Zo++),ni[2*Ie+1]=we,bi<Ie||(qt.bl_count[we]++,yi=0,Po<=Ie&&(yi=sn[Ie-Po]),Ei=ni[2*Ie],qt.opt_len+=Ei*(we+yi),ar&&(qt.static_len+=Ei*(Yr[2*Ie+1]+yi)));if(Zo!==0){do{for(we=zi-1;qt.bl_count[we]===0;)we--;qt.bl_count[we]--,qt.bl_count[we+1]+=2,qt.bl_count[zi]--,Zo-=2}while(0<Zo);for(we=zi;we!==0;we--)for(Ie=qt.bl_count[we];Ie!==0;)bi<(me=qt.heap[--Ne])||(ni[2*me+1]!==we&&(qt.opt_len+=(we-ni[2*me+1])*ni[2*me],ni[2*me+1]=we),Ie--)}}(pt,Dt),Si(Q,Ut,pt.bl_count)}function W(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=st,st=Dt[2*(Kt+1)+1],++nt<vt&&z===st||(nt<Ut?pt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&pt.bl_tree[2*z]++,pt.bl_tree[2*C]++):nt<=10?pt.bl_tree[2*U]++:pt.bl_tree[2*N]++,Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4))}function Jt(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Kt=0;Kt<=ie;Kt++)if(z=st,st=Dt[2*(Kt+1)+1],!(++nt<vt&&z===st)){if(nt<Ut)for(;Wt(pt,z,pt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Wt(pt,z,pt.bl_tree),nt--),Wt(pt,C,pt.bl_tree),pe(pt,nt-3,2)):nt<=10?(Wt(pt,U,pt.bl_tree),pe(pt,nt-3,3)):(Wt(pt,N,pt.bl_tree),pe(pt,nt-11,7));Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4)}}v(re);var jt=!1;function dt(pt,Dt,ie,Kt){pe(pt,(S<<1)+(Kt?1:0),3),function(z,Q,st,nt){Ge(z),nt&&(Pe(z,st),Pe(z,~st)),u.arraySet(z.pending_buf,z.window,Q,st,z.pending),z.pending+=st}(pt,Dt,ie,!0)}f._tr_init=function(pt){jt||(function(){var Dt,ie,Kt,z,Q,st=new Array(P+1);for(z=Kt=0;z<b-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<X[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<J[z];Dt++)_t[Q++]=z;for(Q>>=7;z<R;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<J[z]-7;Dt++)_t[256+Q++]=z;for(ie=0;ie<=P;ie++)st[ie]=0;for(Dt=0;Dt<=143;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(;Dt<=255;)Rt[2*Dt+1]=9,Dt++,st[9]++;for(;Dt<=279;)Rt[2*Dt+1]=7,Dt++,st[7]++;for(;Dt<=287;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(Si(Rt,k+1,st),Dt=0;Dt<R;Dt++)tt[2*Dt+1]=5,tt[2*Dt]=$e(Dt,5);Et=new Ft(Rt,X,O+1,k,P),At=new Ft(tt,J,0,R,P),ce=new Ft(new Array(0),Z,0,F,T)}(),jt=!0),pt.l_desc=new It(pt.dyn_ltree,Et),pt.d_desc=new It(pt.dyn_dtree,At),pt.bl_desc=new It(pt.bl_tree,ce),pt.bi_buf=0,pt.bi_valid=0,Oe(pt)},f._tr_stored_block=dt,f._tr_flush_block=function(pt,Dt,ie,Kt){var z,Q,st=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(nt){var vt,Ut=4093624447;for(vt=0;vt<=31;vt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return g;for(vt=32;vt<O;vt++)if(nt.dyn_ltree[2*vt]!==0)return g;return m}(pt)),Qi(pt,pt.l_desc),Qi(pt,pt.d_desc),st=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=F-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),z=pt.opt_len+3+7>>>3,(Q=pt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?dt(pt,Dt,ie,Kt):pt.strategy===4||Q===z?(pe(pt,2+(Kt?1:0),3),gn(pt,Rt,tt)):(pe(pt,4+(Kt?1:0),3),function(nt,vt,Ut,qt){var Xt;for(pe(nt,vt-257,5),pe(nt,Ut-1,5),pe(nt,qt-4,4),Xt=0;Xt<qt;Xt++)pe(nt,nt.bl_tree[2*ct[Xt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Ut-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,st+1),gn(pt,pt.dyn_ltree,pt.dyn_dtree)),Oe(pt),Kt&&Ge(pt)},f._tr_tally=function(pt,Dt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Dt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Dt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Dt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Dt--,pt.dyn_ltree[2*(G[ie]+O+1)]++,pt.dyn_dtree[2*Nt(Dt)]++),pt.last_lit===pt.lit_bufsize-1},f._tr_align=function(pt){pe(pt,2,3),Wt(pt,I,Rt),function(Dt){Dt.bi_valid===16?(Pe(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(o,c,f){c.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,c,f){(function(u){(function(m,g){if(!m.setImmediate){var v,S,b,O,k=1,R={},F=!1,E=m.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(m);P=P&&P.setTimeout?P:m,v={}.toString.call(m.process)==="[object process]"?function(C){process.nextTick(function(){T(C)})}:function(){if(m.postMessage&&!m.importScripts){var C=!0,U=m.onmessage;return m.onmessage=function(){C=!1},m.postMessage("","*"),m.onmessage=U,C}}()?(O="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",I,!1):m.attachEvent("onmessage",I),function(C){m.postMessage(O+C,"*")}):m.MessageChannel?((b=new MessageChannel).port1.onmessage=function(C){T(C.data)},function(C){b.port2.postMessage(C)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(C){var U=E.createElement("script");U.onreadystatechange=function(){T(C),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(C){setTimeout(T,0,C)},P.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var U=new Array(arguments.length-1),N=0;N<U.length;N++)U[N]=arguments[N+1];var X={callback:C,args:U};return R[k]=X,v(k),k++},P.clearImmediate=w}function w(C){delete R[C]}function T(C){if(F)setTimeout(T,0,C);else{var U=R[C];if(U){F=!0;try{(function(N){var X=N.callback,J=N.args;switch(J.length){case 0:X();break;case 1:X(J[0]);break;case 2:X(J[0],J[1]);break;case 3:X(J[0],J[1],J[2]);break;default:X.apply(g,J)}})(U)}finally{w(C),F=!1}}}}function I(C){C.source===m&&typeof C.data=="string"&&C.data.indexOf(O)===0&&T(+C.data.slice(O.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Af);var mm=Af.exports;const gm=ec(mm);var Pf={exports:{}};(function(x,a){(function(o,c){c()})(br,function(){function o(S,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,b,O){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){v(k.response,b,O)},k.onerror=function(){},k.send()}function f(S){var b=new XMLHttpRequest;b.open("HEAD",S,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(b)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof br=="object"&&br.global===br?br:void 0,g=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(S,b,O){var k=m.URL||m.webkitURL,R=document.createElement("a");b=b||S.name||"download",R.download=b,R.rel="noopener",typeof S=="string"?(R.href=S,R.origin===location.origin?u(R):f(R.href)?c(S,b,O):u(R,R.target="_blank")):(R.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(R.href)},4e4),setTimeout(function(){u(R)},0))}:"msSaveOrOpenBlob"in navigator?function(S,b,O){if(b=b||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,O),b);else if(f(S))c(S,b,O);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,b,O,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,b,O);var R=S.type==="application/octet-stream",F=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||R&&F||g)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var I=P.result;I=E?I:I.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=I:location=I,k=null},P.readAsDataURL(S)}else{var w=m.URL||m.webkitURL,T=w.createObjectURL(S);k?k.location=T:location.href=T,k=null,setTimeout(function(){w.revokeObjectURL(T)},4e4)}});m.saveAs=v.saveAs=v,x.exports=v})})(Pf);var vm=Pf.exports;const ym=ec(vm);class _m{constructor(a,o){window.mars3d&&(this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt)}start(a=!0){var o,c;if(a){window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="none"),this.timestamp=new Date().getTime();const f=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),f!==null&&f.classList.add(this.panoramicViewClass);let{lat:g,lng:v,alt:S}=window.map.getCameraView();this.lat=g,this.lng=v,this.alt=S,window.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?window.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var f;this.screenshot((f=this.screenshotArray)==null?void 0:f.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):this.emit("state",{type:"error"})}async screenshot(a){const o=await window.map.expImage({download:!1}),c=window.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),f=await window.domtoimage.toPng(window.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,f,o.width,o.height).then(u=>{var v;let m=Number(a)+1,g={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",g),(v=this.screenshotArray)==null||v.push(g),this.start(!1)})}mergeImage(a,o,c,f){return new Promise((u,m)=>{const g=document.createElement("canvas");g.width=c,g.height=f;const v=g.getContext("2d");if(g&&v){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{v.drawImage(S,0,0,c,f);const b=new Image;b.crossOrigin="Anonymous",b.onload=()=>{v.drawImage(b,0,0,c,f);const O=g.toDataURL("image/png");u(O)},b.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new gm;this.screenshotArray.forEach(c=>{const f=c.src.split(",")[1],u=atob(f),m=[];for(let S=0;S<u.length;S+=1024){const b=u.slice(S,S+1024),O=new Array(b.length);for(let R=0;R<b.length;R++)O[R]=b.charCodeAt(R);const k=new Uint8Array(O);m.push(k)}const g=new Blob(m,{type:"image/jpeg"}),v=`${c.name}`;a.file(v,g,{binary:!0})});const o=await a.generateAsync({type:"blob"});ym(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height=""),window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function ds(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function Lf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
|
|
2685
|
+
*/(function(x,a){(function(o){x.exports=o()})(function(){return function o(c,f,u){function m(S,b){if(!f[S]){if(!c[S]){var O=typeof uu=="function"&&uu;if(!b&&O)return O(S,!0);if(g)return g(S,!0);var k=new Error("Cannot find module '"+S+"'");throw k.code="MODULE_NOT_FOUND",k}var R=f[S]={exports:{}};c[S][0].call(R.exports,function(F){var E=c[S][1][F];return m(E||F)},R,R.exports,o,c,f,u)}return f[S].exports}for(var g=typeof uu=="function"&&uu,v=0;v<u.length;v++)m(u[v]);return m}({1:[function(o,c,f){var u=o("./utils"),m=o("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(v){for(var S,b,O,k,R,F,E,P=[],w=0,T=v.length,I=T,C=u.getTypeOf(v)!=="string";w<v.length;)I=T-w,O=C?(S=v[w++],b=w<T?v[w++]:0,w<T?v[w++]:0):(S=v.charCodeAt(w++),b=w<T?v.charCodeAt(w++):0,w<T?v.charCodeAt(w++):0),k=S>>2,R=(3&S)<<4|b>>4,F=1<I?(15&b)<<2|O>>6:64,E=2<I?63&O:64,P.push(g.charAt(k)+g.charAt(R)+g.charAt(F)+g.charAt(E));return P.join("")},f.decode=function(v){var S,b,O,k,R,F,E=0,P=0,w="data:";if(v.substr(0,w.length)===w)throw new Error("Invalid base64 input, it looks like a data url.");var T,I=3*(v=v.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(v.charAt(v.length-1)===g.charAt(64)&&I--,v.charAt(v.length-2)===g.charAt(64)&&I--,I%1!=0)throw new Error("Invalid base64 input, bad content length.");for(T=m.uint8array?new Uint8Array(0|I):new Array(0|I);E<v.length;)S=g.indexOf(v.charAt(E++))<<2|(k=g.indexOf(v.charAt(E++)))>>4,b=(15&k)<<4|(R=g.indexOf(v.charAt(E++)))>>2,O=(3&R)<<6|(F=g.indexOf(v.charAt(E++))),T[P++]=S,R!==64&&(T[P++]=b),F!==64&&(T[P++]=O);return T}},{"./support":30,"./utils":32}],2:[function(o,c,f){var u=o("./external"),m=o("./stream/DataWorker"),g=o("./stream/Crc32Probe"),v=o("./stream/DataLengthProbe");function S(b,O,k,R,F){this.compressedSize=b,this.uncompressedSize=O,this.crc32=k,this.compression=R,this.compressedContent=F}S.prototype={getContentWorker:function(){var b=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new v("data_length")),O=this;return b.on("end",function(){if(this.streamInfo.data_length!==O.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(b,O,k){return b.pipe(new g).pipe(new v("uncompressedSize")).pipe(O.compressWorker(k)).pipe(new v("compressedSize")).withStreamInfo("compression",O)},c.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,c,f){var u=o("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},f.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,c,f){var u=o("./utils"),m=function(){for(var g,v=[],S=0;S<256;S++){g=S;for(var b=0;b<8;b++)g=1&g?3988292384^g>>>1:g>>>1;v[S]=g}return v}();c.exports=function(g,v){return g!==void 0&&g.length?u.getTypeOf(g)!=="string"?function(S,b,O,k){var R=m,F=k+O;S^=-1;for(var E=k;E<F;E++)S=S>>>8^R[255&(S^b[E])];return-1^S}(0|v,g,g.length,0):function(S,b,O,k){var R=m,F=k+O;S^=-1;for(var E=k;E<F;E++)S=S>>>8^R[255&(S^b.charCodeAt(E))];return-1^S}(0|v,g,g.length,0):0}},{"./utils":32}],5:[function(o,c,f){f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(o,c,f){var u=null;u=typeof Promise<"u"?Promise:o("lie"),c.exports={Promise:u}},{lie:37}],7:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),g=o("./utils"),v=o("./stream/GenericWorker"),S=u?"uint8array":"array";function b(O,k){v.call(this,"FlateWorker/"+O),this._pako=null,this._pakoAction=O,this._pakoOptions=k,this.meta={}}f.magic="\b\0",g.inherits(b,v),b.prototype.processChunk=function(O){this.meta=O.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(S,O.data),!1)},b.prototype.flush=function(){v.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var O=this;this._pako.onData=function(k){O.push({data:k,meta:O.meta})}},f.compressWorker=function(O){return new b("Deflate",O)},f.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,c,f){function u(R,F){var E,P="";for(E=0;E<F;E++)P+=String.fromCharCode(255&R),R>>>=8;return P}function m(R,F,E,P,w,T){var I,C,U=R.file,N=R.compression,X=T!==S.utf8encode,J=g.transformTo("string",T(U.name)),Z=g.transformTo("string",S.utf8encode(U.name)),ct=U.comment,Rt=g.transformTo("string",T(ct)),tt=g.transformTo("string",S.utf8encode(ct)),_t=Z.length!==U.name.length,G=tt.length!==ct.length,Pt="",Et="",At="",ce=U.dir,re=U.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};F&&!E||(Ft.crc32=R.crc32,Ft.compressedSize=R.compressedSize,Ft.uncompressedSize=R.uncompressedSize);var It=0;F&&(It|=8),X||!_t&&!G||(It|=2048);var Bt=0,Pe=0;ce&&(Bt|=16),w==="UNIX"?(Pe=798,Bt|=function(Wt,$e){var Si=Wt;return Wt||(Si=$e?16893:33204),(65535&Si)<<16}(U.unixPermissions,ce)):(Pe=20,Bt|=function(Wt){return 63&(Wt||0)}(U.dosPermissions)),I=re.getUTCHours(),I<<=6,I|=re.getUTCMinutes(),I<<=5,I|=re.getUTCSeconds()/2,C=re.getUTCFullYear()-1980,C<<=4,C|=re.getUTCMonth()+1,C<<=5,C|=re.getUTCDate(),_t&&(Et=u(1,1)+u(b(J),4)+Z,Pt+="up"+u(Et.length,2)+Et),G&&(At=u(1,1)+u(b(Rt),4)+tt,Pt+="uc"+u(At.length,2)+At);var pe="";return pe+=`
|
|
2686
|
+
\0`,pe+=u(It,2),pe+=N.magic,pe+=u(I,2),pe+=u(C,2),pe+=u(Ft.crc32,4),pe+=u(Ft.compressedSize,4),pe+=u(Ft.uncompressedSize,4),pe+=u(J.length,2),pe+=u(Pt.length,2),{fileRecord:O.LOCAL_FILE_HEADER+pe+J+Pt,dirRecord:O.CENTRAL_FILE_HEADER+u(Pe,2)+pe+u(Rt.length,2)+"\0\0\0\0"+u(Bt,4)+u(P,4)+J+Pt+Rt}}var g=o("../utils"),v=o("../stream/GenericWorker"),S=o("../utf8"),b=o("../crc32"),O=o("../signature");function k(R,F,E,P){v.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=F,this.zipPlatform=E,this.encodeFileName=P,this.streamFiles=R,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(k,v),k.prototype.push=function(R){var F=R.meta.percent||0,E=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(R):(this.bytesWritten+=R.data.length,v.prototype.push.call(this,{data:R.data,meta:{currentFile:this.currentFile,percent:E?(F+100*(E-P-1))/E:100}}))},k.prototype.openedSource=function(R){this.currentSourceOffset=this.bytesWritten,this.currentFile=R.file.name;var F=this.streamFiles&&!R.file.dir;if(F){var E=m(R,F,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(R){this.accumulate=!1;var F=this.streamFiles&&!R.file.dir,E=m(R,F,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),F)this.push({data:function(P){return O.DATA_DESCRIPTOR+u(P.crc32,4)+u(P.compressedSize,4)+u(P.uncompressedSize,4)}(R),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var R=this.bytesWritten,F=0;F<this.dirRecords.length;F++)this.push({data:this.dirRecords[F],meta:{percent:100}});var E=this.bytesWritten-R,P=function(w,T,I,C,U){var N=g.transformTo("string",U(C));return O.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(w,2)+u(w,2)+u(T,4)+u(I,4)+u(N.length,2)+N}(this.dirRecords.length,E,R,this.zipComment,this.encodeFileName);this.push({data:P,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(R){this._sources.push(R);var F=this;return R.on("data",function(E){F.processChunk(E)}),R.on("end",function(){F.closedSource(F.previous.streamInfo),F._sources.length?F.prepareNextSource():F.end()}),R.on("error",function(E){F.error(E)}),this},k.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(R){var F=this._sources;if(!v.prototype.error.call(this,R))return!1;for(var E=0;E<F.length;E++)try{F[E].error(R)}catch{}return!0},k.prototype.lock=function(){v.prototype.lock.call(this);for(var R=this._sources,F=0;F<R.length;F++)R[F].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,f){var u=o("../compressions"),m=o("./ZipFileWorker");f.generateWorker=function(g,v,S){var b=new m(v.streamFiles,S,v.platform,v.encodeFileName),O=0;try{g.forEach(function(k,R){O++;var F=function(T,I){var C=T||I,U=u[C];if(!U)throw new Error(C+" is not a valid compression method !");return U}(R.options.compression,v.compression),E=R.options.compressionOptions||v.compressionOptions||{},P=R.dir,w=R.date;R._compressWorker(F,E).withStreamInfo("file",{name:k,dir:P,date:w,comment:R.comment||"",unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions}).pipe(b)}),b.entriesCount=O}catch(k){b.error(k)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,f){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var g in this)typeof this[g]!="function"&&(m[g]=this[g]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,g){return new u().loadAsync(m,g)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,f){var u=o("./utils"),m=o("./external"),g=o("./utf8"),v=o("./zipEntries"),S=o("./stream/Crc32Probe"),b=o("./nodejsUtils");function O(k){return new m.Promise(function(R,F){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(P){F(P)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?F(new Error("Corrupted zip : CRC32 mismatch")):R()}).resume()})}c.exports=function(k,R){var F=this;return R=u.extend(R||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),b.isNode&&b.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,R.optimizedBinaryString,R.base64).then(function(E){var P=new v(R);return P.load(E),P}).then(function(E){var P=[m.Promise.resolve(E)],w=E.files;if(R.checkCRC32)for(var T=0;T<w.length;T++)P.push(O(w[T]));return m.Promise.all(P)}).then(function(E){for(var P=E.shift(),w=P.files,T=0;T<w.length;T++){var I=w[T],C=I.fileNameStr,U=u.resolve(I.fileNameStr);F.file(U,I.decompressed,{binary:!0,optimizedBinaryString:!0,date:I.date,dir:I.dir,comment:I.fileCommentStr.length?I.fileCommentStr:null,unixPermissions:I.unixPermissions,dosPermissions:I.dosPermissions,createFolders:R.createFolders}),I.dir||(F.file(U).unsafeOriginalName=C)}return P.zipComment.length&&(F.comment=P.zipComment),F})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,f){var u=o("../utils"),m=o("../stream/GenericWorker");function g(v,S){m.call(this,"Nodejs stream input adapter for "+v),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(g,m),g.prototype._bindStream=function(v){var S=this;(this._stream=v).pause(),v.on("data",function(b){S.push({data:b,meta:{percent:0}})}).on("error",function(b){S.isPaused?this.generatedError=b:S.error(b)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},g.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,f){var u=o("readable-stream").Readable;function m(g,v,S){u.call(this,v),this._helper=g;var b=this;g.on("data",function(O,k){b.push(O)||b._helper.pause(),S&&S(k)}).on("error",function(O){b.emit("error",O)}).on("end",function(){b.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,f){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,f){function u(U,N,X){var J,Z=g.getTypeOf(N),ct=g.extend(X||{},b);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=w(U)),ct.createFolders&&(J=P(U))&&T.call(this,J,!0);var Rt=Z==="string"&&ct.binary===!1&&ct.base64===!1;X&&X.binary!==void 0||(ct.binary=!Rt),(N instanceof O&&N.uncompressedSize===0||ct.dir||!N||N.length===0)&&(ct.base64=!1,ct.binary=!0,N="",ct.compression="STORE",Z="string");var tt=null;tt=N instanceof O||N instanceof v?N:F.isNode&&F.isStream(N)?new E(U,N):g.prepareContent(U,N,ct.binary,ct.optimizedBinaryString,ct.base64);var _t=new k(U,tt,ct);this.files[U]=_t}var m=o("./utf8"),g=o("./utils"),v=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),b=o("./defaults"),O=o("./compressedObject"),k=o("./zipObject"),R=o("./generate"),F=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),P=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var N=U.lastIndexOf("/");return 0<N?U.substring(0,N):""},w=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},T=function(U,N){return N=N!==void 0?N:b.createFolders,U=w(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:N}),this.files[U]};function I(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var N,X,J;for(N in this.files)J=this.files[N],(X=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&U(X,J)},filter:function(U){var N=[];return this.forEach(function(X,J){U(X,J)&&N.push(J)}),N},file:function(U,N,X){if(arguments.length!==1)return U=this.root+U,u.call(this,U,N,X),this;if(I(U)){var J=U;return this.filter(function(ct,Rt){return!Rt.dir&&J.test(ct)})}var Z=this.files[this.root+U];return Z&&!Z.dir?Z:null},folder:function(U){if(!U)return this;if(I(U))return this.filter(function(Z,ct){return ct.dir&&U.test(Z)});var N=this.root+U,X=T.call(this,N),J=this.clone();return J.root=X.name,J},remove:function(U){U=this.root+U;var N=this.files[U];if(N||(U.slice(-1)!=="/"&&(U+="/"),N=this.files[U]),N&&!N.dir)delete this.files[U];else for(var X=this.filter(function(Z,ct){return ct.name.slice(0,U.length)===U}),J=0;J<X.length;J++)delete this.files[X[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var N,X={};try{if((X=g.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");g.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var J=X.comment||this.comment||"";N=R.generateWorker(this,X,J)}catch(Z){(N=new v("error")).error(Z)}return new S(N,X.type||"string",X.mimeType)},generateAsync:function(U,N){return this.generateInternalStream(U).accumulate(N)},generateNodeStream:function(U,N){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(N)}};c.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,c,f){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g);for(var v=0;v<this.data.length;v++)g[v]=255&g[v]}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data[this.zero+g]},m.prototype.lastIndexOfSignature=function(g){for(var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===v&&this.data[k+1]===S&&this.data[k+2]===b&&this.data[k+3]===O)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(g){var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.readData(4);return v===k[0]&&S===k[1]&&b===k[2]&&O===k[3]},m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,f){var u=o("../utils");function m(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var v,S=0;for(this.checkOffset(g),v=this.index+g-1;v>=this.index;v--)S=(S<<8)+this.byteAt(v);return this.index+=g,S},readString:function(g){return u.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,f){var u=o("./Uint8ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},m.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},m.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,f){var u=o("./ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var v=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,f){var u=o("../utils"),m=o("../support"),g=o("./ArrayReader"),v=o("./StringReader"),S=o("./NodeBufferReader"),b=o("./Uint8ArrayReader");c.exports=function(O){var k=u.getTypeOf(O);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(O):m.uint8array?new b(u.transformTo("uint8array",O)):new g(u.transformTo("array",O)):new v(O)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,f){var u=o("./GenericWorker"),m=o("../utils");function g(v){u.call(this,"ConvertWorker to "+v),this.destType=v}m.inherits(g,u),g.prototype.processChunk=function(v){this.push({data:m.transformTo(this.destType,v.data),meta:v.meta})},c.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,f){var u=o("./GenericWorker"),m=o("../crc32");function g(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(g,u),g.prototype.processChunk=function(v){this.streamInfo.crc32=m(v.data,this.streamInfo.crc32||0),this.push(v)},c.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataLengthProbe for "+v),this.propName=v,this.withStreamInfo(v,0)}u.inherits(g,m),g.prototype.processChunk=function(v){if(v){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+v.data.length}m.prototype.processChunk.call(this,v)},c.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,v.then(function(b){S.dataIsReady=!0,S.data=b,S.max=b&&b.length||0,S.type=u.getTypeOf(b),S.isPaused||S._tickAndRepeat()},function(b){S.error(b)})}u.inherits(g,m),g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var v=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":v=this.data.substring(this.index,S);break;case"uint8array":v=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":v=this.data.slice(this.index,S)}return this.index=S,this.push({data:v,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,f){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,g){return this._listeners[m].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,g){if(this._listeners[m])for(var v=0;v<this._listeners[m].length;v++)this._listeners[m][v].call(this,g)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var g=this;return m.on("data",function(v){g.processChunk(v)}),m.on("end",function(){g.end()}),m.on("error",function(v){g.error(v)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,g){return this.extraStreamInfo[m]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,f){var u=o("../utils"),m=o("./ConvertWorker"),g=o("./GenericWorker"),v=o("../base64"),S=o("../support"),b=o("../external"),O=null;if(S.nodestream)try{O=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(F,E){return new b.Promise(function(P,w){var T=[],I=F._internalType,C=F._outputType,U=F._mimeType;F.on("data",function(N,X){T.push(N),E&&E(X)}).on("error",function(N){T=[],w(N)}).on("end",function(){try{var N=function(X,J,Z){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),Z);case"base64":return v.encode(J);default:return u.transformTo(X,J)}}(C,function(X,J){var Z,ct=0,Rt=null,tt=0;for(Z=0;Z<J.length;Z++)tt+=J[Z].length;switch(X){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(Rt=new Uint8Array(tt),Z=0;Z<J.length;Z++)Rt.set(J[Z],ct),ct+=J[Z].length;return Rt;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+X+"'")}}(I,T),U);P(N)}catch(X){w(X)}T=[]}).resume()})}function R(F,E,P){var w=E;switch(E){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=E,this._mimeType=P,u.checkSupport(w),this._worker=F.pipe(new m(w)),F.lock()}catch(T){this._worker=new g("error"),this._worker.error(T)}}R.prototype={accumulate:function(F){return k(this,F)},on:function(F,E){var P=this;return F==="data"?this._worker.on(F,function(w){E.call(P,w.data,w.meta)}):this._worker.on(F,function(){u.delay(E,arguments,P)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(F){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new O(this,{objectMode:this._outputType!=="nodebuffer"},F)}},c.exports=R},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=typeof Buffer<"u",f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),f.blob=m.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!o("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,f){for(var u=o("./utils"),m=o("./support"),g=o("./nodejsUtils"),v=o("./stream/GenericWorker"),S=new Array(256),b=0;b<256;b++)S[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;S[254]=S[254]=1;function O(){v.call(this,"utf-8 decode"),this.leftOver=null}function k(){v.call(this,"utf-8 encode")}f.utf8encode=function(R){return m.nodebuffer?g.newBufferFrom(R,"utf-8"):function(F){var E,P,w,T,I,C=F.length,U=0;for(T=0;T<C;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),U+=P<128?1:P<2048?2:P<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),T=I=0;I<U;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),P<128?E[I++]=P:(P<2048?E[I++]=192|P>>>6:(P<65536?E[I++]=224|P>>>12:(E[I++]=240|P>>>18,E[I++]=128|P>>>12&63),E[I++]=128|P>>>6&63),E[I++]=128|63&P);return E}(R)},f.utf8decode=function(R){return m.nodebuffer?u.transformTo("nodebuffer",R).toString("utf-8"):function(F){var E,P,w,T,I=F.length,C=new Array(2*I);for(E=P=0;E<I;)if((w=F[E++])<128)C[P++]=w;else if(4<(T=S[w]))C[P++]=65533,E+=T-1;else{for(w&=T===2?31:T===3?15:7;1<T&&E<I;)w=w<<6|63&F[E++],T--;1<T?C[P++]=65533:w<65536?C[P++]=w:(w-=65536,C[P++]=55296|w>>10&1023,C[P++]=56320|1023&w)}return C.length!==P&&(C.subarray?C=C.subarray(0,P):C.length=P),u.applyFromCharCode(C)}(R=u.transformTo(m.uint8array?"uint8array":"array",R))},u.inherits(O,v),O.prototype.processChunk=function(R){var F=u.transformTo(m.uint8array?"uint8array":"array",R.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=F;(F=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),F.set(E,this.leftOver.length)}else F=this.leftOver.concat(F);this.leftOver=null}var P=function(T,I){var C;for((I=I||T.length)>T.length&&(I=T.length),C=I-1;0<=C&&(192&T[C])==128;)C--;return C<0||C===0?I:C+S[T[C]]>I?C:I}(F),w=F;P!==F.length&&(m.uint8array?(w=F.subarray(0,P),this.leftOver=F.subarray(P,F.length)):(w=F.slice(0,P),this.leftOver=F.slice(P,F.length))),this.push({data:f.utf8decode(w),meta:R.meta})},O.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=O,u.inherits(k,v),k.prototype.processChunk=function(R){this.push({data:f.utf8encode(R.data),meta:R.meta})},f.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,f){var u=o("./support"),m=o("./base64"),g=o("./nodejsUtils"),v=o("./external");function S(E){return E}function b(E,P){for(var w=0;w<E.length;++w)P[w]=255&E.charCodeAt(w);return P}o("setimmediate"),f.newBlob=function(E,P){f.checkSupport("blob");try{return new Blob([E],{type:P})}catch{try{var w=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return w.append(E),w.getBlob(P)}catch{throw new Error("Bug : can't construct the Blob.")}}};var O={stringifyByChunk:function(E,P,w){var T=[],I=0,C=E.length;if(C<=w)return String.fromCharCode.apply(null,E);for(;I<C;)P==="array"||P==="nodebuffer"?T.push(String.fromCharCode.apply(null,E.slice(I,Math.min(I+w,C)))):T.push(String.fromCharCode.apply(null,E.subarray(I,Math.min(I+w,C)))),I+=w;return T.join("")},stringifyByChar:function(E){for(var P="",w=0;w<E.length;w++)P+=String.fromCharCode(E[w]);return P},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var P=65536,w=f.getTypeOf(E),T=!0;if(w==="uint8array"?T=O.applyCanBeUsed.uint8array:w==="nodebuffer"&&(T=O.applyCanBeUsed.nodebuffer),T)for(;1<P;)try{return O.stringifyByChunk(E,w,P)}catch{P=Math.floor(P/2)}return O.stringifyByChar(E)}function R(E,P){for(var w=0;w<E.length;w++)P[w]=E[w];return P}f.applyFromCharCode=k;var F={};F.string={string:S,array:function(E){return b(E,new Array(E.length))},arraybuffer:function(E){return F.string.uint8array(E).buffer},uint8array:function(E){return b(E,new Uint8Array(E.length))},nodebuffer:function(E){return b(E,g.allocBuffer(E.length))}},F.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(E)}},F.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return R(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(new Uint8Array(E))}},F.uint8array={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return g.newBufferFrom(E)}},F.nodebuffer={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return F.nodebuffer.uint8array(E).buffer},uint8array:function(E){return R(E,new Uint8Array(E.length))},nodebuffer:S},f.transformTo=function(E,P){if(P=P||"",!E)return P;f.checkSupport(E);var w=f.getTypeOf(P);return F[w][E](P)},f.resolve=function(E){for(var P=E.split("/"),w=[],T=0;T<P.length;T++){var I=P[T];I==="."||I===""&&T!==0&&T!==P.length-1||(I===".."?w.pop():w.push(I))}return w.join("/")},f.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&g.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(E){var P,w,T="";for(w=0;w<(E||"").length;w++)T+="\\x"+((P=E.charCodeAt(w))<16?"0":"")+P.toString(16).toUpperCase();return T},f.delay=function(E,P,w){setImmediate(function(){E.apply(w||null,P||[])})},f.inherits=function(E,P){function w(){}w.prototype=P.prototype,E.prototype=new w},f.extend=function(){var E,P,w={};for(E=0;E<arguments.length;E++)for(P in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],P)&&w[P]===void 0&&(w[P]=arguments[E][P]);return w},f.prepareContent=function(E,P,w,T,I){return v.Promise.resolve(P).then(function(C){return u.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new v.Promise(function(U,N){var X=new FileReader;X.onload=function(J){U(J.target.result)},X.onerror=function(J){N(J.target.error)},X.readAsArrayBuffer(C)}):C}).then(function(C){var U=f.getTypeOf(C);return U?(U==="arraybuffer"?C=f.transformTo("uint8array",C):U==="string"&&(I?C=m.decode(C):w&&T!==!0&&(C=function(N){return b(N,u.uint8array?new Uint8Array(N.length):new Array(N.length))}(C))),C):v.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./signature"),v=o("./zipEntry"),S=o("./support");function b(O){this.files=[],this.loadOptions=O}b.prototype={checkSignature:function(O){if(!this.reader.readAndCheckSignature(O)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(O)+")")}},isSignature:function(O,k){var R=this.reader.index;this.reader.setIndex(O);var F=this.reader.readString(4)===k;return this.reader.setIndex(R),F},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var O=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",R=m.transformTo(k,O);this.zipComment=this.loadOptions.decodeFileName(R)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var O,k,R,F=this.zip64EndOfCentralSize-44;0<F;)O=this.reader.readInt(2),k=this.reader.readInt(4),R=this.reader.readData(k),this.zip64ExtensibleData[O]={id:O,length:k,value:R}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var O,k;for(O=0;O<this.files.length;O++)k=this.files[O],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var O;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(O=new v({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(O);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var O=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(O<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(O);var k=O;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(O=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(O),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var R=this.centralDirOffset+this.centralDirSize;this.zip64&&(R+=20,R+=12+this.zip64EndOfCentralSize);var F=k-R;if(0<F)this.isSignature(k,g.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(O){this.reader=u(O)},load:function(O){this.prepareReader(O),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./compressedObject"),v=o("./crc32"),S=o("./utf8"),b=o("./compressions"),O=o("./support");function k(R,F){this.options=R,this.loadOptions=F}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(R){var F,E;if(R.skip(22),this.fileNameLength=R.readInt(2),E=R.readInt(2),this.fileName=R.readData(this.fileNameLength),R.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((F=function(P){for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w)&&b[w].magic===P)return b[w];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,F,R.readData(this.compressedSize))},readCentralPart:function(R){this.versionMadeBy=R.readInt(2),R.skip(2),this.bitFlag=R.readInt(2),this.compressionMethod=R.readString(2),this.date=R.readDate(),this.crc32=R.readInt(4),this.compressedSize=R.readInt(4),this.uncompressedSize=R.readInt(4);var F=R.readInt(2);if(this.extraFieldsLength=R.readInt(2),this.fileCommentLength=R.readInt(2),this.diskNumberStart=R.readInt(2),this.internalFileAttributes=R.readInt(2),this.externalFileAttributes=R.readInt(4),this.localHeaderOffset=R.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");R.skip(F),this.readExtraFields(R),this.parseZIP64ExtraField(R),this.fileComment=R.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var R=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),R==0&&(this.dosPermissions=63&this.externalFileAttributes),R==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var R=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=R.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=R.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=R.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=R.readInt(4))}},readExtraFields:function(R){var F,E,P,w=R.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});R.index+4<w;)F=R.readInt(2),E=R.readInt(2),P=R.readData(E),this.extraFields[F]={id:F,length:E,value:P};R.setIndex(w)},handleUTF8:function(){var R=O.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var F=this.findExtraFieldUnicodePath();if(F!==null)this.fileNameStr=F;else{var E=m.transformTo(R,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var P=this.findExtraFieldUnicodeComment();if(P!==null)this.fileCommentStr=P;else{var w=m.transformTo(R,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var R=this.extraFields[28789];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileName)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null},findExtraFieldUnicodeComment:function(){var R=this.extraFields[25461];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileComment)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,f){function u(F,E,P){this.name=F,this.dir=P.dir,this.date=P.date,this.comment=P.comment,this.unixPermissions=P.unixPermissions,this.dosPermissions=P.dosPermissions,this._data=E,this._dataBinary=P.binary,this.options={compression:P.compression,compressionOptions:P.compressionOptions}}var m=o("./stream/StreamHelper"),g=o("./stream/DataWorker"),v=o("./utf8"),S=o("./compressedObject"),b=o("./stream/GenericWorker");u.prototype={internalStream:function(F){var E=null,P="string";try{if(!F)throw new Error("No output type specified.");var w=(P=F.toLowerCase())==="string"||P==="text";P!=="binarystring"&&P!=="text"||(P="string"),E=this._decompressWorker();var T=!this._dataBinary;T&&!w&&(E=E.pipe(new v.Utf8EncodeWorker)),!T&&w&&(E=E.pipe(new v.Utf8DecodeWorker))}catch(I){(E=new b("error")).error(I)}return new m(E,P,"")},async:function(F,E){return this.internalStream(F).accumulate(E)},nodeStream:function(F,E){return this.internalStream(F||"nodebuffer").toNodejsStream(E)},_compressWorker:function(F,E){if(this._data instanceof S&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var P=this._decompressWorker();return this._dataBinary||(P=P.pipe(new v.Utf8EncodeWorker)),S.createWorkerFrom(P,F,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof b?this._data:new g(this._data)}};for(var O=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},R=0;R<O.length;R++)u.prototype[O[R]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,f){(function(u){var m,g,v=u.MutationObserver||u.WebKitMutationObserver;if(v){var S=0,b=new v(F),O=u.document.createTextNode("");b.observe(O,{characterData:!0}),m=function(){O.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){F(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(F,0)};else{var k=new u.MessageChannel;k.port1.onmessage=F,m=function(){k.port2.postMessage(0)}}var R=[];function F(){var E,P;g=!0;for(var w=R.length;w;){for(P=R,R=[],E=-1;++E<w;)P[E]();w=R.length}g=!1}c.exports=function(E){R.push(E)!==1||g||m()}}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,f){var u=o("immediate");function m(){}var g={},v=["REJECTED"],S=["FULFILLED"],b=["PENDING"];function O(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,w!==m&&E(this,w)}function k(w,T,I){this.promise=w,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof I=="function"&&(this.onRejected=I,this.callRejected=this.otherCallRejected)}function R(w,T,I){u(function(){var C;try{C=T(I)}catch(U){return g.reject(w,U)}C===w?g.reject(w,new TypeError("Cannot resolve promise with itself")):g.resolve(w,C)})}function F(w){var T=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof T=="function")return function(){T.apply(w,arguments)}}function E(w,T){var I=!1;function C(X){I||(I=!0,g.reject(w,X))}function U(X){I||(I=!0,g.resolve(w,X))}var N=P(function(){T(U,C)});N.status==="error"&&C(N.value)}function P(w,T){var I={};try{I.value=w(T),I.status="success"}catch(C){I.status="error",I.value=C}return I}(c.exports=O).prototype.finally=function(w){if(typeof w!="function")return this;var T=this.constructor;return this.then(function(I){return T.resolve(w()).then(function(){return I})},function(I){return T.resolve(w()).then(function(){throw I})})},O.prototype.catch=function(w){return this.then(null,w)},O.prototype.then=function(w,T){if(typeof w!="function"&&this.state===S||typeof T!="function"&&this.state===v)return this;var I=new this.constructor(m);return this.state!==b?R(I,this.state===S?w:T,this.outcome):this.queue.push(new k(I,w,T)),I},k.prototype.callFulfilled=function(w){g.resolve(this.promise,w)},k.prototype.otherCallFulfilled=function(w){R(this.promise,this.onFulfilled,w)},k.prototype.callRejected=function(w){g.reject(this.promise,w)},k.prototype.otherCallRejected=function(w){R(this.promise,this.onRejected,w)},g.resolve=function(w,T){var I=P(F,T);if(I.status==="error")return g.reject(w,I.value);var C=I.value;if(C)E(w,C);else{w.state=S,w.outcome=T;for(var U=-1,N=w.queue.length;++U<N;)w.queue[U].callFulfilled(T)}return w},g.reject=function(w,T){w.state=v,w.outcome=T;for(var I=-1,C=w.queue.length;++I<C;)w.queue[I].callRejected(T);return w},O.resolve=function(w){return w instanceof this?w:g.resolve(new this(m),w)},O.reject=function(w){var T=new this(m);return g.reject(T,w)},O.all=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=new Array(I),N=0,X=-1,J=new this(m);++X<I;)Z(w[X],X);return J;function Z(ct,Rt){T.resolve(ct).then(function(tt){U[Rt]=tt,++N!==I||C||(C=!0,g.resolve(J,U))},function(tt){C||(C=!0,g.reject(J,tt))})}},O.race=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=-1,N=new this(m);++U<I;)X=w[U],T.resolve(X).then(function(J){C||(C=!0,g.resolve(N,J))},function(J){C||(C=!0,g.reject(N,J))});var X;return N}},{immediate:36}],38:[function(o,c,f){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,f){var u=o("./zlib/deflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/messages"),S=o("./zlib/zstream"),b=Object.prototype.toString,O=0,k=-1,R=0,F=8;function E(w){if(!(this instanceof E))return new E(w);this.options=m.assign({level:k,method:F,chunkSize:16384,windowBits:15,memLevel:8,strategy:R,to:""},w||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var I=u.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(I!==O)throw new Error(v[I]);if(T.header&&u.deflateSetHeader(this.strm,T.header),T.dictionary){var C;if(C=typeof T.dictionary=="string"?g.string2buf(T.dictionary):b.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(I=u.deflateSetDictionary(this.strm,C))!==O)throw new Error(v[I]);this._dict_set=!0}}function P(w,T){var I=new E(T);if(I.push(w,!0),I.err)throw I.msg||v[I.err];return I.result}E.prototype.push=function(w,T){var I,C,U=this.strm,N=this.options.chunkSize;if(this.ended)return!1;C=T===~~T?T:T===!0?4:0,typeof w=="string"?U.input=g.string2buf(w):b.call(w)==="[object ArrayBuffer]"?U.input=new Uint8Array(w):U.input=w,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(N),U.next_out=0,U.avail_out=N),(I=u.deflate(U,C))!==1&&I!==O)return this.onEnd(I),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&I!==1);return C===4?(I=u.deflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===O):C!==2||(this.onEnd(O),!(U.avail_out=0))},E.prototype.onData=function(w){this.chunks.push(w)},E.prototype.onEnd=function(w){w===O&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},f.Deflate=E,f.deflate=P,f.deflateRaw=function(w,T){return(T=T||{}).raw=!0,P(w,T)},f.gzip=function(w,T){return(T=T||{}).gzip=!0,P(w,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,f){var u=o("./zlib/inflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/constants"),S=o("./zlib/messages"),b=o("./zlib/zstream"),O=o("./zlib/gzheader"),k=Object.prototype.toString;function R(E){if(!(this instanceof R))return new R(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var P=this.options;P.raw&&0<=P.windowBits&&P.windowBits<16&&(P.windowBits=-P.windowBits,P.windowBits===0&&(P.windowBits=-15)),!(0<=P.windowBits&&P.windowBits<16)||E&&E.windowBits||(P.windowBits+=32),15<P.windowBits&&P.windowBits<48&&!(15&P.windowBits)&&(P.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var w=u.inflateInit2(this.strm,P.windowBits);if(w!==v.Z_OK)throw new Error(S[w]);this.header=new O,u.inflateGetHeader(this.strm,this.header)}function F(E,P){var w=new R(P);if(w.push(E,!0),w.err)throw w.msg||S[w.err];return w.result}R.prototype.push=function(E,P){var w,T,I,C,U,N,X=this.strm,J=this.options.chunkSize,Z=this.options.dictionary,ct=!1;if(this.ended)return!1;T=P===~~P?P:P===!0?v.Z_FINISH:v.Z_NO_FLUSH,typeof E=="string"?X.input=g.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8(J),X.next_out=0,X.avail_out=J),(w=u.inflate(X,v.Z_NO_FLUSH))===v.Z_NEED_DICT&&Z&&(N=typeof Z=="string"?g.string2buf(Z):k.call(Z)==="[object ArrayBuffer]"?new Uint8Array(Z):Z,w=u.inflateSetDictionary(this.strm,N)),w===v.Z_BUF_ERROR&&ct===!0&&(w=v.Z_OK,ct=!1),w!==v.Z_STREAM_END&&w!==v.Z_OK)return this.onEnd(w),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&w!==v.Z_STREAM_END&&(X.avail_in!==0||T!==v.Z_FINISH&&T!==v.Z_SYNC_FLUSH)||(this.options.to==="string"?(I=g.utf8border(X.output,X.next_out),C=X.next_out-I,U=g.buf2string(X.output,I),X.next_out=C,X.avail_out=J-C,C&&m.arraySet(X.output,X.output,I,C,0),this.onData(U)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ct=!0)}while((0<X.avail_in||X.avail_out===0)&&w!==v.Z_STREAM_END);return w===v.Z_STREAM_END&&(T=v.Z_FINISH),T===v.Z_FINISH?(w=u.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===v.Z_OK):T!==v.Z_SYNC_FLUSH||(this.onEnd(v.Z_OK),!(X.avail_out=0))},R.prototype.onData=function(E){this.chunks.push(E)},R.prototype.onEnd=function(E){E===v.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},f.Inflate=R,f.inflate=F,f.inflateRaw=function(E,P){return(P=P||{}).raw=!0,F(E,P)},f.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(v){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var b=S.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var O in b)b.hasOwnProperty(O)&&(v[O]=b[O])}}return v},f.shrinkBuf=function(v,S){return v.length===S?v:v.subarray?v.subarray(0,S):(v.length=S,v)};var m={arraySet:function(v,S,b,O,k){if(S.subarray&&v.subarray)v.set(S.subarray(b,b+O),k);else for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){var S,b,O,k,R,F;for(S=O=0,b=v.length;S<b;S++)O+=v[S].length;for(F=new Uint8Array(O),S=k=0,b=v.length;S<b;S++)R=v[S],F.set(R,k),k+=R.length;return F}},g={arraySet:function(v,S,b,O,k){for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){return[].concat.apply([],v)}};f.setTyped=function(v){v?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,m)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,g))},f.setTyped(u)},{}],42:[function(o,c,f){var u=o("./common"),m=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var v=new u.Buf8(256),S=0;S<256;S++)v[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function b(O,k){if(k<65537&&(O.subarray&&g||!O.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(O,k));for(var R="",F=0;F<k;F++)R+=String.fromCharCode(O[F]);return R}v[254]=v[254]=1,f.string2buf=function(O){var k,R,F,E,P,w=O.length,T=0;for(E=0;E<w;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),T+=R<128?1:R<2048?2:R<65536?3:4;for(k=new u.Buf8(T),E=P=0;P<T;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),R<128?k[P++]=R:(R<2048?k[P++]=192|R>>>6:(R<65536?k[P++]=224|R>>>12:(k[P++]=240|R>>>18,k[P++]=128|R>>>12&63),k[P++]=128|R>>>6&63),k[P++]=128|63&R);return k},f.buf2binstring=function(O){return b(O,O.length)},f.binstring2buf=function(O){for(var k=new u.Buf8(O.length),R=0,F=k.length;R<F;R++)k[R]=O.charCodeAt(R);return k},f.buf2string=function(O,k){var R,F,E,P,w=k||O.length,T=new Array(2*w);for(R=F=0;R<w;)if((E=O[R++])<128)T[F++]=E;else if(4<(P=v[E]))T[F++]=65533,R+=P-1;else{for(E&=P===2?31:P===3?15:7;1<P&&R<w;)E=E<<6|63&O[R++],P--;1<P?T[F++]=65533:E<65536?T[F++]=E:(E-=65536,T[F++]=55296|E>>10&1023,T[F++]=56320|1023&E)}return b(T,F)},f.utf8border=function(O,k){var R;for((k=k||O.length)>O.length&&(k=O.length),R=k-1;0<=R&&(192&O[R])==128;)R--;return R<0||R===0?k:R+v[O[R]]>k?R:k}},{"./common":41}],43:[function(o,c,f){c.exports=function(u,m,g,v){for(var S=65535&u|0,b=u>>>16&65535|0,O=0;g!==0;){for(g-=O=2e3<g?2e3:g;b=b+(S=S+m[v++]|0)|0,--O;);S%=65521,b%=65521}return S|b<<16|0}},{}],44:[function(o,c,f){c.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,c,f){var u=function(){for(var m,g=[],v=0;v<256;v++){m=v;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;g[v]=m}return g}();c.exports=function(m,g,v,S){var b=u,O=S+v;m^=-1;for(var k=S;k<O;k++)m=m>>>8^b[255&(m^g[k])];return-1^m}},{}],46:[function(o,c,f){var u,m=o("../utils/common"),g=o("./trees"),v=o("./adler32"),S=o("./crc32"),b=o("./messages"),O=0,k=4,R=0,F=-2,E=-1,P=4,w=2,T=8,I=9,C=286,U=30,N=19,X=2*C+1,J=15,Z=3,ct=258,Rt=ct+Z+1,tt=42,_t=113,G=1,Pt=2,Et=3,At=4;function ce(W,Jt){return W.msg=b[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,jt=Jt.pending;jt>W.avail_out&&(jt=W.avail_out),jt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,jt,W.next_out),W.next_out+=jt,Jt.pending_out+=jt,W.total_out+=jt,W.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function Bt(W,Jt){g._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Pe(W,Jt){W.pending_buf[W.pending++]=Jt}function pe(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Wt(W,Jt){var jt,dt,pt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-Rt?W.strstart-(W.w_size-Rt):0,Q=W.window,st=W.w_mask,nt=W.prev,vt=W.strstart+ct,Ut=Q[Dt+ie-1],qt=Q[Dt+ie];W.prev_length>=W.good_match&&(pt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(jt=Jt)+ie]===qt&&Q[jt+ie-1]===Ut&&Q[jt]===Q[Dt]&&Q[++jt]===Q[Dt+1]){Dt+=2,jt++;do;while(Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Dt<vt);if(dt=ct-(vt-Dt),Dt=vt-ct,ie<dt){if(W.match_start=Jt,Kt<=(ie=dt))break;Ut=Q[Dt+ie-1],qt=Q[Dt+ie]}}while((Jt=nt[Jt&st])>z&&--pt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,jt,dt,pt,Dt,ie,Kt,z,Q,st,nt=W.w_size;do{if(pt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Rt)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=jt=W.hash_size;dt=W.head[--Jt],W.head[Jt]=nt<=dt?dt-nt:0,--jt;);for(Jt=jt=nt;dt=W.prev[--Jt],W.prev[Jt]=nt<=dt?dt-nt:0,--jt;);pt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=pt,st=void 0,st=ie.avail_in,Q<st&&(st=Q),jt=st===0?0:(ie.avail_in-=st,m.arraySet(Kt,ie.input,ie.next_in,st,z),ie.state.wrap===1?ie.adler=v(ie.adler,Kt,st,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,st,z)),ie.next_in+=st,ie.total_in+=st,st),W.lookahead+=jt,W.lookahead+W.insert>=Z)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Z-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Z)););}while(W.lookahead<Rt&&W.strm.avail_in!==0)}function Si(W,Jt){for(var jt,dt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),jt!==0&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt)),W.match_length>=Z)if(dt=g._tr_tally(W,W.strstart-W.match_start,W.match_length-Z),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Z){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else dt=g._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(dt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var jt,dt,pt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Z-1,jt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt),W.match_length<=5&&(W.strategy===1||W.match_length===Z&&4096<W.strstart-W.match_start)&&(W.match_length=Z-1)),W.prev_length>=Z&&W.match_length<=W.prev_length){for(pt=W.strstart+W.lookahead-Z,dt=g._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Z),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=pt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Z-1,W.strstart++,dt&&(Bt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((dt=g._tr_tally(W,0,W.window[W.strstart-1]))&&Bt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(dt=g._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,jt,dt,pt){this.good_length=W,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=dt,this.func=pt}function pi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*N+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(J+1),this.heap=new m.Buf16(2*C+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*C+1),Ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Di(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=w,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?tt:_t,W.adler=Jt.wrap===2?0:1,Jt.last_flush=O,g._tr_init(Jt),R):ce(W,F)}function gn(W){var Jt=Di(W);return Jt===R&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=u[jt.level].max_lazy,jt.good_match=u[jt.level].good_length,jt.nice_match=u[jt.level].nice_length,jt.max_chain_length=u[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,jt.ins_h=0}(W.state),Jt}function Qi(W,Jt,jt,dt,pt,Dt){if(!W)return F;var ie=1;if(Jt===E&&(Jt=6),dt<0?(ie=0,dt=-dt):15<dt&&(ie=2,dt-=16),pt<1||I<pt||jt!==T||dt<8||15<dt||Jt<0||9<Jt||Dt<0||P<Dt)return ce(W,F);dt===8&&(dt=9);var Kt=new pi;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=dt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Z-1)/Z),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=jt,gn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var jt=65535;for(jt>W.pending_buf_size-5&&(jt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===O)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var dt=W.block_start+jt;if((W.strstart===0||W.strstart>=dt)&&(W.lookahead=W.strstart-dt,W.strstart=dt,Bt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Rt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):(W.strstart>W.block_start&&(Bt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Si),new Ge(4,5,16,8,Si),new Ge(4,6,32,32,Si),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],f.deflateInit=function(W,Jt){return Qi(W,Jt,T,15,8,0)},f.deflateInit2=Qi,f.deflateReset=gn,f.deflateResetKeep=Di,f.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?F:(W.state.gzhead=Jt,R):F},f.deflate=function(W,Jt){var jt,dt,pt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,F):F;if(dt=W.state,!W.output||!W.input&&W.avail_in!==0||dt.status===666&&Jt!==k)return ce(W,W.avail_out===0?-5:F);if(dt.strm=W,jt=dt.last_flush,dt.last_flush=Jt,dt.status===tt)if(dt.wrap===2)W.adler=0,Pe(dt,31),Pe(dt,139),Pe(dt,8),dt.gzhead?(Pe(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Pe(dt,255&dt.gzhead.time),Pe(dt,dt.gzhead.time>>8&255),Pe(dt,dt.gzhead.time>>16&255),Pe(dt,dt.gzhead.time>>24&255),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Pe(dt,255&dt.gzhead.extra.length),Pe(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(W.adler=S(W.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=69):(Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,3),dt.status=_t);else{var ie=T+(dt.w_bits-8<<4)<<8;ie|=(2<=dt.strategy||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(ie|=32),ie+=31-ie%31,dt.status=_t,pe(dt,ie),dt.strstart!==0&&(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),W.adler=1}if(dt.status===69)if(dt.gzhead.extra){for(pt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending!==dt.pending_buf_size));)Pe(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=73)}else dt.status=73;if(dt.status===73)if(dt.gzhead.name){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.gzindex=0,dt.status=91)}else dt.status=91;if(dt.status===91)if(dt.gzhead.comment){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.status=103)}else dt.status=103;if(dt.status===103&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&It(W),dt.pending+2<=dt.pending_buf_size&&(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),W.adler=0,dt.status=_t)):dt.status=_t),dt.pending!==0){if(It(W),W.avail_out===0)return dt.last_flush=-1,R}else if(W.avail_in===0&&re(Jt)<=re(jt)&&Jt!==k)return ce(W,-5);if(dt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||dt.lookahead!==0||Jt!==O&&dt.status!==666){var Kt=dt.strategy===2?function(z,Q){for(var st;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===O)return G;break}if(z.match_length=0,st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,st&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):dt.strategy===3?function(z,Q){for(var st,nt,vt,Ut,qt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===O)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Z&&0<z.strstart&&(nt=qt[vt=z.strstart-1])===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]){Ut=z.strstart+ct;do;while(nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&vt<Ut);z.match_length=ct-(Ut-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Z?(st=g._tr_tally(z,1,z.match_length-Z),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),st&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):u[dt.level].func(dt,Jt);if(Kt!==Et&&Kt!==At||(dt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(dt.last_flush=-1),R;if(Kt===Pt&&(Jt===1?g._tr_align(dt):Jt!==5&&(g._tr_stored_block(dt,0,0,!1),Jt===3&&(Ft(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),It(W),W.avail_out===0))return dt.last_flush=-1,R}return Jt!==k?R:dt.wrap<=0?1:(dt.wrap===2?(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),Pe(dt,W.adler>>16&255),Pe(dt,W.adler>>24&255),Pe(dt,255&W.total_in),Pe(dt,W.total_in>>8&255),Pe(dt,W.total_in>>16&255),Pe(dt,W.total_in>>24&255)):(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),It(W),0<dt.wrap&&(dt.wrap=-dt.wrap),dt.pending!==0?R:1)},f.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==tt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==_t&&Jt!==666?ce(W,F):(W.state=null,Jt===_t?ce(W,-3):R):F},f.deflateSetDictionary=function(W,Jt){var jt,dt,pt,Dt,ie,Kt,z,Q,st=Jt.length;if(!W||!W.state||(Dt=(jt=W.state).wrap)===2||Dt===1&&jt.status!==tt||jt.lookahead)return F;for(Dt===1&&(W.adler=v(W.adler,Jt,st,0)),jt.wrap=0,st>=jt.w_size&&(Dt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),Q=new m.Buf8(jt.w_size),m.arraySet(Q,Jt,st-jt.w_size,jt.w_size,0),Jt=Q,st=jt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=st,W.next_in=0,W.input=Jt,$e(jt);jt.lookahead>=Z;){for(dt=jt.strstart,pt=jt.lookahead-(Z-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[dt+Z-1])&jt.hash_mask,jt.prev[dt&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=dt,dt++,--pt;);jt.strstart=dt,jt.lookahead=Z-1,$e(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,jt.wrap=Dt,R},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,f){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,c,f){c.exports=function(u,m){var g,v,S,b,O,k,R,F,E,P,w,T,I,C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt;g=u.state,v=u.next_in,G=u.input,S=v+(u.avail_in-5),b=u.next_out,Pt=u.output,O=b-(m-u.avail_out),k=b+(u.avail_out-257),R=g.dmax,F=g.wsize,E=g.whave,P=g.wnext,w=g.window,T=g.hold,I=g.bits,C=g.lencode,U=g.distcode,N=(1<<g.lenbits)-1,X=(1<<g.distbits)-1;t:do{I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=C[T&N];e:for(;;){if(T>>>=Z=J>>>24,I-=Z,(Z=J>>>16&255)===0)Pt[b++]=65535&J;else{if(!(16&Z)){if(!(64&Z)){J=C[(65535&J)+(T&(1<<Z)-1)];continue e}if(32&Z){g.mode=12;break t}u.msg="invalid literal/length code",g.mode=30;break t}ct=65535&J,(Z&=15)&&(I<Z&&(T+=G[v++]<<I,I+=8),ct+=T&(1<<Z)-1,T>>>=Z,I-=Z),I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=U[T&X];i:for(;;){if(T>>>=Z=J>>>24,I-=Z,!(16&(Z=J>>>16&255))){if(!(64&Z)){J=U[(65535&J)+(T&(1<<Z)-1)];continue i}u.msg="invalid distance code",g.mode=30;break t}if(Rt=65535&J,I<(Z&=15)&&(T+=G[v++]<<I,(I+=8)<Z&&(T+=G[v++]<<I,I+=8)),R<(Rt+=T&(1<<Z)-1)){u.msg="invalid distance too far back",g.mode=30;break t}if(T>>>=Z,I-=Z,(Z=b-O)<Rt){if(E<(Z=Rt-Z)&&g.sane){u.msg="invalid distance too far back",g.mode=30;break t}if(_t=w,(tt=0)===P){if(tt+=F-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}else if(P<Z){if(tt+=F+P-Z,(Z-=P)<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);if(tt=0,P<ct){for(ct-=Z=P;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}}else if(tt+=P-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}for(;2<ct;)Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],ct-=3;ct&&(Pt[b++]=_t[tt++],1<ct&&(Pt[b++]=_t[tt++]))}else{for(tt=b-Rt;Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],2<(ct-=3););ct&&(Pt[b++]=Pt[tt++],1<ct&&(Pt[b++]=Pt[tt++]))}break}}break}}while(v<S&&b<k);v-=ct=I>>3,T&=(1<<(I-=ct<<3))-1,u.next_in=v,u.next_out=b,u.avail_in=v<S?S-v+5:5-(v-S),u.avail_out=b<k?k-b+257:257-(b-k),g.hold=T,g.bits=I}},{}],49:[function(o,c,f){var u=o("../utils/common"),m=o("./adler32"),g=o("./crc32"),v=o("./inffast"),S=o("./inftrees"),b=1,O=2,k=0,R=-2,F=1,E=852,P=592;function w(tt){return(tt>>>24&255)+(tt>>>8&65280)+((65280&tt)<<8)+((255&tt)<<24)}function T(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function I(tt){var _t;return tt&&tt.state?(_t=tt.state,tt.total_in=tt.total_out=_t.total=0,tt.msg="",_t.wrap&&(tt.adler=1&_t.wrap),_t.mode=F,_t.last=0,_t.havedict=0,_t.dmax=32768,_t.head=null,_t.hold=0,_t.bits=0,_t.lencode=_t.lendyn=new u.Buf32(E),_t.distcode=_t.distdyn=new u.Buf32(P),_t.sane=1,_t.back=-1,k):R}function C(tt){var _t;return tt&&tt.state?((_t=tt.state).wsize=0,_t.whave=0,_t.wnext=0,I(tt)):R}function U(tt,_t){var G,Pt;return tt&&tt.state?(Pt=tt.state,_t<0?(G=0,_t=-_t):(G=1+(_t>>4),_t<48&&(_t&=15)),_t&&(_t<8||15<_t)?R:(Pt.window!==null&&Pt.wbits!==_t&&(Pt.window=null),Pt.wrap=G,Pt.wbits=_t,C(tt))):R}function N(tt,_t){var G,Pt;return tt?(Pt=new T,(tt.state=Pt).window=null,(G=U(tt,_t))!==k&&(tt.state=null),G):R}var X,J,Z=!0;function ct(tt){if(Z){var _t;for(X=new u.Buf32(512),J=new u.Buf32(32),_t=0;_t<144;)tt.lens[_t++]=8;for(;_t<256;)tt.lens[_t++]=9;for(;_t<280;)tt.lens[_t++]=7;for(;_t<288;)tt.lens[_t++]=8;for(S(b,tt.lens,0,288,X,0,tt.work,{bits:9}),_t=0;_t<32;)tt.lens[_t++]=5;S(O,tt.lens,0,32,J,0,tt.work,{bits:5}),Z=!1}tt.lencode=X,tt.lenbits=9,tt.distcode=J,tt.distbits=5}function Rt(tt,_t,G,Pt){var Et,At=tt.state;return At.window===null&&(At.wsize=1<<At.wbits,At.wnext=0,At.whave=0,At.window=new u.Buf8(At.wsize)),Pt>=At.wsize?(u.arraySet(At.window,_t,G-At.wsize,At.wsize,0),At.wnext=0,At.whave=At.wsize):(Pt<(Et=At.wsize-At.wnext)&&(Et=Pt),u.arraySet(At.window,_t,G-Pt,Et,At.wnext),(Pt-=Et)?(u.arraySet(At.window,_t,G-Pt,Pt,0),At.wnext=Pt,At.whave=At.wsize):(At.wnext+=Et,At.wnext===At.wsize&&(At.wnext=0),At.whave<At.wsize&&(At.whave+=Et))),0}f.inflateReset=C,f.inflateReset2=U,f.inflateResetKeep=I,f.inflateInit=function(tt){return N(tt,15)},f.inflateInit2=N,f.inflate=function(tt,_t){var G,Pt,Et,At,ce,re,Ft,It,Bt,Pe,pe,Wt,$e,Si,Oe,Ge,pi,Di,gn,Qi,W,Jt,jt,dt,pt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!tt||!tt.state||!tt.output||!tt.input&&tt.avail_in!==0)return R;(G=tt.state).mode===12&&(G.mode=13),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Bt=G.bits,Pe=re,pe=Ft,Jt=k;t:for(;;)switch(G.mode){case F:if(G.wrap===0){G.mode=13;break}for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0),Bt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){tt.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){tt.msg="unknown compression method",G.mode=30;break}if(Bt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){tt.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,tt.adler=G.check=1,G.mode=512&It?10:12,Bt=It=0;break;case 2:for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(G.flags=It,(255&G.flags)!=8){tt.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){tt.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0,G.mode=3;case 3:for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=g(G.check,Dt,4,0)),Bt=It=0,G.mode=4;case 4:for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Wt=G.length)&&(Wt=re),Wt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,At,Wt,W)),512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,G.length-=Wt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It!==(65535&G.check)){tt.msg="header crc mismatch",G.mode=30;break}Bt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),tt.adler=G.check=0,G.mode=12;break;case 10:for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}tt.adler=G.check=w(It),Bt=It=0,G.mode=11;case 11:if(G.havedict===0)return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,2;tt.adler=G.check=1,G.mode=12;case 12:if(_t===5||_t===6)break t;case 13:if(G.last){It>>>=7&Bt,Bt-=7&Bt,G.mode=27;break}for(;Bt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}switch(G.last=1&It,Bt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,_t!==6)break;It>>>=2,Bt-=2;break t;case 2:G.mode=17;break;case 3:tt.msg="invalid block type",G.mode=30}It>>>=2,Bt-=2;break;case 14:for(It>>>=7&Bt,Bt-=7&Bt;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if((65535&It)!=(It>>>16^65535)){tt.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Bt=It=0,G.mode=15,_t===6)break t;case 15:G.mode=16;case 16:if(Wt=G.length){if(re<Wt&&(Wt=re),Ft<Wt&&(Wt=Ft),Wt===0)break t;u.arraySet(Et,Pt,At,Wt,ce),re-=Wt,At+=Wt,Ft-=Wt,ce+=Wt,G.length-=Wt;break}G.mode=12;break;case 17:for(;Bt<14;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(G.nlen=257+(31&It),It>>>=5,Bt-=5,G.ndist=1+(31&It),It>>>=5,Bt-=5,G.ncode=4+(15&It),It>>>=4,Bt-=4,286<G.nlen||30<G.ndist){tt.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Bt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Bt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,jt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(pi<16)It>>>=Oe,Bt-=Oe,G.lens[G.have++]=pi;else{if(pi===16){for(dt=Oe+2;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It>>>=Oe,Bt-=Oe,G.have===0){tt.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Wt=3+(3&It),It>>>=2,Bt-=2}else if(pi===17){for(dt=Oe+3;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}Bt-=Oe,W=0,Wt=3+(7&(It>>>=Oe)),It>>>=3,Bt-=3}else{for(dt=Oe+7;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}Bt-=Oe,W=0,Wt=11+(127&(It>>>=Oe)),It>>>=7,Bt-=7}if(G.have+Wt>G.nlen+G.ndist){tt.msg="invalid bit length repeat",G.mode=30;break}for(;Wt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){tt.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,jt={bits:G.lenbits},Jt=S(b,G.lens,0,G.nlen,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,jt={bits:G.distbits},Jt=S(O,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,jt),G.distbits=jt.bits,Jt){tt.msg="invalid distances set",G.mode=30;break}if(G.mode=20,_t===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,v(tt,pe),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Bt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(Ge&&!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.lencode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}It>>>=Di,Bt-=Di,G.back+=Di}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,G.length=pi,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){tt.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(dt=G.extra;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(pt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.distcode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}It>>>=Di,Bt-=Di,G.back+=Di}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,64&Ge){tt.msg="invalid distance code",G.mode=30;break}G.offset=pi,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(dt=G.extra;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){tt.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Wt=pe-Ft,G.offset>Wt){if((Wt=G.offset-Wt)>G.whave&&G.sane){tt.msg="invalid distance too far back",G.mode=30;break}$e=Wt>G.wnext?(Wt-=G.wnext,G.wsize-Wt):G.wnext-Wt,Wt>G.length&&(Wt=G.length),Si=G.window}else Si=Et,$e=ce-G.offset,Wt=G.length;for(Ft<Wt&&(Wt=Ft),Ft-=Wt,G.length-=Wt;Et[ce++]=Si[$e++],--Wt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Bt<32;){if(re===0)break t;re--,It|=Pt[At++]<<Bt,Bt+=8}if(pe-=Ft,tt.total_out+=pe,G.total+=pe,pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,ce-pe):m(G.check,Et,pe,ce-pe)),pe=Ft,(G.flags?It:w(It))!==G.check){tt.msg="incorrect data check",G.mode=30;break}Bt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It!==(4294967295&G.total)){tt.msg="incorrect length check",G.mode=30;break}Bt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return R}return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,(G.wsize||pe!==tt.avail_out&&G.mode<30&&(G.mode<27||_t!==4))&&Rt(tt,tt.output,tt.next_out,pe-tt.avail_out)?(G.mode=31,-4):(Pe-=tt.avail_in,pe-=tt.avail_out,tt.total_in+=Pe,tt.total_out+=pe,G.total+=pe,G.wrap&&pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,tt.next_out-pe):m(G.check,Et,pe,tt.next_out-pe)),tt.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Pe==0&&pe===0||_t===4)&&Jt===k&&(Jt=-5),Jt)},f.inflateEnd=function(tt){if(!tt||!tt.state)return R;var _t=tt.state;return _t.window&&(_t.window=null),tt.state=null,k},f.inflateGetHeader=function(tt,_t){var G;return tt&&tt.state&&2&(G=tt.state).wrap?((G.head=_t).done=!1,k):R},f.inflateSetDictionary=function(tt,_t){var G,Pt=_t.length;return tt&&tt.state?(G=tt.state).wrap!==0&&G.mode!==11?R:G.mode===11&&m(1,_t,Pt,0)!==G.check?-3:Rt(tt,_t,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):R},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,f){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],v=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(b,O,k,R,F,E,P,w){var T,I,C,U,N,X,J,Z,ct,Rt=w.bits,tt=0,_t=0,G=0,Pt=0,Et=0,At=0,ce=0,re=0,Ft=0,It=0,Bt=null,Pe=0,pe=new u.Buf16(16),Wt=new u.Buf16(16),$e=null,Si=0;for(tt=0;tt<=15;tt++)pe[tt]=0;for(_t=0;_t<R;_t++)pe[O[k+_t]]++;for(Et=Rt,Pt=15;1<=Pt&&pe[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return F[E++]=20971520,F[E++]=20971520,w.bits=1,0;for(G=1;G<Pt&&pe[G]===0;G++);for(Et<G&&(Et=G),tt=re=1;tt<=15;tt++)if(re<<=1,(re-=pe[tt])<0)return-1;if(0<re&&(b===0||Pt!==1))return-1;for(Wt[1]=0,tt=1;tt<15;tt++)Wt[tt+1]=Wt[tt]+pe[tt];for(_t=0;_t<R;_t++)O[k+_t]!==0&&(P[Wt[O[k+_t]]++]=_t);if(X=b===0?(Bt=$e=P,19):b===1?(Bt=m,Pe-=257,$e=g,Si-=257,256):(Bt=v,$e=S,-1),tt=G,N=E,ce=_t=It=0,C=-1,U=(Ft=1<<(At=Et))-1,b===1&&852<Ft||b===2&&592<Ft)return 1;for(;;){for(J=tt-ce,ct=P[_t]<X?(Z=0,P[_t]):P[_t]>X?(Z=$e[Si+P[_t]],Bt[Pe+P[_t]]):(Z=96,0),T=1<<tt-ce,G=I=1<<At;F[N+(It>>ce)+(I-=T)]=J<<24|Z<<16|ct|0,I!==0;);for(T=1<<tt-1;It&T;)T>>=1;if(T!==0?(It&=T-1,It+=T):It=0,_t++,--pe[tt]==0){if(tt===Pt)break;tt=O[k+P[_t]]}if(Et<tt&&(It&U)!==C){for(ce===0&&(ce=Et),N+=G,re=1<<(At=tt-ce);At+ce<Pt&&!((re-=pe[At+ce])<=0);)At++,re<<=1;if(Ft+=1<<At,b===1&&852<Ft||b===2&&592<Ft)return 1;F[C=It&U]=Et<<24|At<<16|N-E|0}}return It!==0&&(F[N+It]=tt-ce<<24|64<<16|0),w.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,f){c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,c,f){var u=o("../utils/common"),m=0,g=1;function v(pt){for(var Dt=pt.length;0<=--Dt;)pt[Dt]=0}var S=0,b=29,O=256,k=O+1+b,R=30,F=19,E=2*k+1,P=15,w=16,T=7,I=256,C=16,U=17,N=18,X=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Rt=new Array(2*(k+2));v(Rt);var tt=new Array(2*R);v(tt);var _t=new Array(512);v(_t);var G=new Array(256);v(G);var Pt=new Array(b);v(Pt);var Et,At,ce,re=new Array(R);function Ft(pt,Dt,ie,Kt,z){this.static_tree=pt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=pt&&pt.length}function It(pt,Dt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Dt}function Bt(pt){return pt<256?_t[pt]:_t[256+(pt>>>7)]}function Pe(pt,Dt){pt.pending_buf[pt.pending++]=255&Dt,pt.pending_buf[pt.pending++]=Dt>>>8&255}function pe(pt,Dt,ie){pt.bi_valid>w-ie?(pt.bi_buf|=Dt<<pt.bi_valid&65535,Pe(pt,pt.bi_buf),pt.bi_buf=Dt>>w-pt.bi_valid,pt.bi_valid+=ie-w):(pt.bi_buf|=Dt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Wt(pt,Dt,ie){pe(pt,ie[2*Dt],ie[2*Dt+1])}function $e(pt,Dt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Si(pt,Dt,ie){var Kt,z,Q=new Array(P+1),st=0;for(Kt=1;Kt<=P;Kt++)Q[Kt]=st=st+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=pt[2*z+1];nt!==0&&(pt[2*z]=$e(Q[nt]++,nt))}}function Oe(pt){var Dt;for(Dt=0;Dt<k;Dt++)pt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<R;Dt++)pt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<F;Dt++)pt.bl_tree[2*Dt]=0;pt.dyn_ltree[2*I]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Pe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function pi(pt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return pt[z]<pt[Q]||pt[z]===pt[Q]&&Kt[Dt]<=Kt[ie]}function Di(pt,Dt,ie){for(var Kt=pt.heap[ie],z=ie<<1;z<=pt.heap_len&&(z<pt.heap_len&&pi(Dt,pt.heap[z+1],pt.heap[z],pt.depth)&&z++,!pi(Dt,Kt,pt.heap[z],pt.depth));)pt.heap[ie]=pt.heap[z],ie=z,z<<=1;pt.heap[ie]=Kt}function gn(pt,Dt,ie){var Kt,z,Q,st,nt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*nt]<<8|pt.pending_buf[pt.d_buf+2*nt+1],z=pt.pending_buf[pt.l_buf+nt],nt++,Kt===0?Wt(pt,z,Dt):(Wt(pt,(Q=G[z])+O+1,Dt),(st=X[Q])!==0&&pe(pt,z-=Pt[Q],st),Wt(pt,Q=Bt(--Kt),ie),(st=J[Q])!==0&&pe(pt,Kt-=re[Q],st)),nt<pt.last_lit;);Wt(pt,I,Dt)}function Qi(pt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,st=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Ut=-1;for(pt.heap_len=0,pt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(pt.heap[++pt.heap_len]=Ut=ie,pt.depth[ie]=0):Q[2*ie+1]=0;for(;pt.heap_len<2;)Q[2*(z=pt.heap[++pt.heap_len]=Ut<2?++Ut:0)]=1,pt.depth[z]=0,pt.opt_len--,nt&&(pt.static_len-=st[2*z+1]);for(Dt.max_code=Ut,ie=pt.heap_len>>1;1<=ie;ie--)Di(pt,Q,ie);for(z=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Di(pt,Q,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],pt.depth[z]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,pt.heap[1]=z++,Di(pt,Q,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(qt,Xt){var Ne,Ie,me,we,yi,Ei,ni=Xt.dyn_tree,bi=Xt.max_code,Yr=Xt.stat_desc.static_tree,ar=Xt.stat_desc.has_stree,sn=Xt.stat_desc.extra_bits,Po=Xt.stat_desc.extra_base,zi=Xt.stat_desc.max_length,Zo=0;for(we=0;we<=P;we++)qt.bl_count[we]=0;for(ni[2*qt.heap[qt.heap_max]+1]=0,Ne=qt.heap_max+1;Ne<E;Ne++)zi<(we=ni[2*ni[2*(Ie=qt.heap[Ne])+1]+1]+1)&&(we=zi,Zo++),ni[2*Ie+1]=we,bi<Ie||(qt.bl_count[we]++,yi=0,Po<=Ie&&(yi=sn[Ie-Po]),Ei=ni[2*Ie],qt.opt_len+=Ei*(we+yi),ar&&(qt.static_len+=Ei*(Yr[2*Ie+1]+yi)));if(Zo!==0){do{for(we=zi-1;qt.bl_count[we]===0;)we--;qt.bl_count[we]--,qt.bl_count[we+1]+=2,qt.bl_count[zi]--,Zo-=2}while(0<Zo);for(we=zi;we!==0;we--)for(Ie=qt.bl_count[we];Ie!==0;)bi<(me=qt.heap[--Ne])||(ni[2*me+1]!==we&&(qt.opt_len+=(we-ni[2*me+1])*ni[2*me],ni[2*me+1]=we),Ie--)}}(pt,Dt),Si(Q,Ut,pt.bl_count)}function W(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=st,st=Dt[2*(Kt+1)+1],++nt<vt&&z===st||(nt<Ut?pt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&pt.bl_tree[2*z]++,pt.bl_tree[2*C]++):nt<=10?pt.bl_tree[2*U]++:pt.bl_tree[2*N]++,Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4))}function Jt(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Kt=0;Kt<=ie;Kt++)if(z=st,st=Dt[2*(Kt+1)+1],!(++nt<vt&&z===st)){if(nt<Ut)for(;Wt(pt,z,pt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Wt(pt,z,pt.bl_tree),nt--),Wt(pt,C,pt.bl_tree),pe(pt,nt-3,2)):nt<=10?(Wt(pt,U,pt.bl_tree),pe(pt,nt-3,3)):(Wt(pt,N,pt.bl_tree),pe(pt,nt-11,7));Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4)}}v(re);var jt=!1;function dt(pt,Dt,ie,Kt){pe(pt,(S<<1)+(Kt?1:0),3),function(z,Q,st,nt){Ge(z),nt&&(Pe(z,st),Pe(z,~st)),u.arraySet(z.pending_buf,z.window,Q,st,z.pending),z.pending+=st}(pt,Dt,ie,!0)}f._tr_init=function(pt){jt||(function(){var Dt,ie,Kt,z,Q,st=new Array(P+1);for(z=Kt=0;z<b-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<X[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<J[z];Dt++)_t[Q++]=z;for(Q>>=7;z<R;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<J[z]-7;Dt++)_t[256+Q++]=z;for(ie=0;ie<=P;ie++)st[ie]=0;for(Dt=0;Dt<=143;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(;Dt<=255;)Rt[2*Dt+1]=9,Dt++,st[9]++;for(;Dt<=279;)Rt[2*Dt+1]=7,Dt++,st[7]++;for(;Dt<=287;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(Si(Rt,k+1,st),Dt=0;Dt<R;Dt++)tt[2*Dt+1]=5,tt[2*Dt]=$e(Dt,5);Et=new Ft(Rt,X,O+1,k,P),At=new Ft(tt,J,0,R,P),ce=new Ft(new Array(0),Z,0,F,T)}(),jt=!0),pt.l_desc=new It(pt.dyn_ltree,Et),pt.d_desc=new It(pt.dyn_dtree,At),pt.bl_desc=new It(pt.bl_tree,ce),pt.bi_buf=0,pt.bi_valid=0,Oe(pt)},f._tr_stored_block=dt,f._tr_flush_block=function(pt,Dt,ie,Kt){var z,Q,st=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(nt){var vt,Ut=4093624447;for(vt=0;vt<=31;vt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return g;for(vt=32;vt<O;vt++)if(nt.dyn_ltree[2*vt]!==0)return g;return m}(pt)),Qi(pt,pt.l_desc),Qi(pt,pt.d_desc),st=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=F-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),z=pt.opt_len+3+7>>>3,(Q=pt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?dt(pt,Dt,ie,Kt):pt.strategy===4||Q===z?(pe(pt,2+(Kt?1:0),3),gn(pt,Rt,tt)):(pe(pt,4+(Kt?1:0),3),function(nt,vt,Ut,qt){var Xt;for(pe(nt,vt-257,5),pe(nt,Ut-1,5),pe(nt,qt-4,4),Xt=0;Xt<qt;Xt++)pe(nt,nt.bl_tree[2*ct[Xt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Ut-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,st+1),gn(pt,pt.dyn_ltree,pt.dyn_dtree)),Oe(pt),Kt&&Ge(pt)},f._tr_tally=function(pt,Dt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Dt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Dt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Dt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Dt--,pt.dyn_ltree[2*(G[ie]+O+1)]++,pt.dyn_dtree[2*Bt(Dt)]++),pt.last_lit===pt.lit_bufsize-1},f._tr_align=function(pt){pe(pt,2,3),Wt(pt,I,Rt),function(Dt){Dt.bi_valid===16?(Pe(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(o,c,f){c.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,c,f){(function(u){(function(m,g){if(!m.setImmediate){var v,S,b,O,k=1,R={},F=!1,E=m.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(m);P=P&&P.setTimeout?P:m,v={}.toString.call(m.process)==="[object process]"?function(C){process.nextTick(function(){T(C)})}:function(){if(m.postMessage&&!m.importScripts){var C=!0,U=m.onmessage;return m.onmessage=function(){C=!1},m.postMessage("","*"),m.onmessage=U,C}}()?(O="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",I,!1):m.attachEvent("onmessage",I),function(C){m.postMessage(O+C,"*")}):m.MessageChannel?((b=new MessageChannel).port1.onmessage=function(C){T(C.data)},function(C){b.port2.postMessage(C)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(C){var U=E.createElement("script");U.onreadystatechange=function(){T(C),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(C){setTimeout(T,0,C)},P.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var U=new Array(arguments.length-1),N=0;N<U.length;N++)U[N]=arguments[N+1];var X={callback:C,args:U};return R[k]=X,v(k),k++},P.clearImmediate=w}function w(C){delete R[C]}function T(C){if(F)setTimeout(T,0,C);else{var U=R[C];if(U){F=!0;try{(function(N){var X=N.callback,J=N.args;switch(J.length){case 0:X();break;case 1:X(J[0]);break;case 2:X(J[0],J[1]);break;case 3:X(J[0],J[1],J[2]);break;default:X.apply(g,J)}})(U)}finally{w(C),F=!1}}}}function I(C){C.source===m&&typeof C.data=="string"&&C.data.indexOf(O)===0&&T(+C.data.slice(O.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Af);var mm=Af.exports;const gm=ec(mm);var Pf={exports:{}};(function(x,a){(function(o,c){c()})(br,function(){function o(S,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,b,O){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){v(k.response,b,O)},k.onerror=function(){},k.send()}function f(S){var b=new XMLHttpRequest;b.open("HEAD",S,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(b)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof br=="object"&&br.global===br?br:void 0,g=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(S,b,O){var k=m.URL||m.webkitURL,R=document.createElement("a");b=b||S.name||"download",R.download=b,R.rel="noopener",typeof S=="string"?(R.href=S,R.origin===location.origin?u(R):f(R.href)?c(S,b,O):u(R,R.target="_blank")):(R.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(R.href)},4e4),setTimeout(function(){u(R)},0))}:"msSaveOrOpenBlob"in navigator?function(S,b,O){if(b=b||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,O),b);else if(f(S))c(S,b,O);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,b,O,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,b,O);var R=S.type==="application/octet-stream",F=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||R&&F||g)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var I=P.result;I=E?I:I.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=I:location=I,k=null},P.readAsDataURL(S)}else{var w=m.URL||m.webkitURL,T=w.createObjectURL(S);k?k.location=T:location.href=T,k=null,setTimeout(function(){w.revokeObjectURL(T)},4e4)}});m.saveAs=v.saveAs=v,x.exports=v})})(Pf);var vm=Pf.exports;const ym=ec(vm);class _m{constructor(a,o){window.mars3d&&(this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt)}start(a=!0){var o,c;if(a){window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="none"),this.timestamp=new Date().getTime();const f=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),f!==null&&f.classList.add(this.panoramicViewClass);let{lat:g,lng:v,alt:S}=window.map.getCameraView();this.lat=g,this.lng=v,this.alt=S,window.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?window.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var f;this.screenshot((f=this.screenshotArray)==null?void 0:f.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):this.emit("state",{type:"error"})}async screenshot(a){const o=await window.map.expImage({download:!1}),c=window.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),f=await window.domtoimage.toPng(window.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,f,o.width,o.height).then(u=>{var v;let m=Number(a)+1,g={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",g),(v=this.screenshotArray)==null||v.push(g),this.start(!1)})}mergeImage(a,o,c,f){return new Promise((u,m)=>{const g=document.createElement("canvas");g.width=c,g.height=f;const v=g.getContext("2d");if(g&&v){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{v.drawImage(S,0,0,c,f);const b=new Image;b.crossOrigin="Anonymous",b.onload=()=>{v.drawImage(b,0,0,c,f);const O=g.toDataURL("image/png");u(O)},b.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new gm;this.screenshotArray.forEach(c=>{const f=c.src.split(",")[1],u=atob(f),m=[];for(let S=0;S<u.length;S+=1024){const b=u.slice(S,S+1024),O=new Array(b.length);for(let R=0;R<b.length;R++)O[R]=b.charCodeAt(R);const k=new Uint8Array(O);m.push(k)}const g=new Blob(m,{type:"image/jpeg"}),v=`${c.name}`;a.file(v,g,{binary:!0})});const o=await a.generateAsync({type:"blob"});ym(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height=""),window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function ds(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function Lf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
|
|
2687
2687
|
* GSAP 3.12.5
|
|
2688
2688
|
* https://gsap.com
|
|
2689
2689
|
*
|
|
@@ -2699,4 +2699,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2699
2699
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
2700
2700
|
* Club GSAP members, the agreement issued with that membership.
|
|
2701
2701
|
* @author: Jack Doyle, jack@greensock.com
|
|
2702
|
-
*/var Ed,ea,Nl,Dc,Wa,bd,zc,fg=function(){return typeof window<"u"},ms={},ja=180/Math.PI,Fl=Math.PI/180,Ul=Math.atan2,Cd=1e8,kc=/([A-Z])/g,dg=/(left|right|width|margin|padding|x)/i,pg=/[\s,\(]\S/,qo={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Bc=function(a,o){return o.set(o.t,o.p,Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},mg=function(a,o){return o.set(o.t,o.p,a===1?o.e:Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},gg=function(a,o){return o.set(o.t,o.p,a?Math.round((o.s+o.c*a)*1e4)/1e4+o.u:o.b,o)},vg=function(a,o){var c=o.s+o.c*a;o.set(o.t,o.p,~~(c+(c<0?-.5:.5))+o.u,o)},Ad=function(a,o){return o.set(o.t,o.p,a?o.e:o.b,o)},Pd=function(a,o){return o.set(o.t,o.p,a!==1?o.b:o.e,o)},yg=function(a,o,c){return a.style[o]=c},_g=function(a,o,c){return a.style.setProperty(o,c)},xg=function(a,o,c){return a._gsap[o]=c},wg=function(a,o,c){return a._gsap.scaleX=a._gsap.scaleY=c},Mg=function(a,o,c,f,u){var m=a._gsap;m.scaleX=m.scaleY=c,m.renderTransform(u,m)},Tg=function(a,o,c,f,u){var m=a._gsap;m[o]=c,m.renderTransform(u,m)},mn="transform",Rr=mn+"Origin",Sg=function x(a,o){var c=this,f=this.target,u=f.style,m=f._gsap;if(a in ms&&u){if(this.tfm=this.tfm||{},a!=="transform")a=qo[a]||a,~a.indexOf(",")?a.split(",").forEach(function(g){return c.tfm[g]=gs(f,g)}):this.tfm[a]=m.x?m[a]:gs(f,a),a===Rr&&(this.tfm.zOrigin=m.zOrigin);else return qo.transform.split(",").forEach(function(g){return x.call(c,g,o)});if(this.props.indexOf(mn)>=0)return;m.svg&&(this.svgo=f.getAttribute("data-svg-origin"),this.props.push(Rr,o,"")),a=mn}(u||o)&&this.props.push(a,o,u[a])},Ld=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},Eg=function(){var a=this.props,o=this.target,c=o.style,f=o._gsap,u,m;for(u=0;u<a.length;u+=3)a[u+1]?o[a[u]]=a[u+2]:a[u+2]?c[a[u]]=a[u+2]:c.removeProperty(a[u].substr(0,2)==="--"?a[u]:a[u].replace(kc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)f[m]=this.tfm[m];f.svg&&(f.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=zc(),(!u||!u.isStart)&&!c[mn]&&(Ld(c),f.zOrigin&&c[Rr]&&(c[Rr]+=" "+f.zOrigin+"px",f.zOrigin=0,f.renderTransform()),f.uncache=1)}},Rd=function(a,o){var c={target:a,props:[],revert:Eg,save:Sg};return a._gsap||Lr.core.getCache(a),o&&o.split(",").forEach(function(f){return c.save(f)}),c},Od,Nc=function(a,o){var c=ea.createElementNS?ea.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):ea.createElement(a);return c&&c.style?c:ea.createElement(a)},Yo=function x(a,o,c){var f=getComputedStyle(a);return f[o]||f.getPropertyValue(o.replace(kc,"-$1").toLowerCase())||f.getPropertyValue(o)||!c&&x(a,Gl(o)||o,1)||""},Id="O,Moz,ms,Ms,Webkit".split(","),Gl=function(a,o,c){var f=o||Wa,u=f.style,m=5;if(a in u&&!c)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);m--&&!(Id[m]+a in u););return m<0?null:(m===3?"ms":m>=0?Id[m]:"")+a},Fc=function(){fg()&&window.document&&(Ed=window,ea=Ed.document,Nl=ea.documentElement,Wa=Nc("div")||{style:{}},Nc("div"),mn=Gl(mn),Rr=mn+"Origin",Wa.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Od=!!Gl("perspective"),zc=Lr.core.reverting,Dc=1)},Uc=function x(a){var o=Nc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),c=this.parentNode,f=this.nextSibling,u=this.style.cssText,m;if(Nl.appendChild(o),o.appendChild(this),this.style.display="block",a)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=x}catch{}else this._gsapBBox&&(m=this._gsapBBox());return c&&(f?c.insertBefore(this,f):c.appendChild(this)),Nl.removeChild(o),this.style.cssText=u,m},Dd=function(a,o){for(var c=o.length;c--;)if(a.hasAttribute(o[c]))return a.getAttribute(o[c])},zd=function(a){var o;try{o=a.getBBox()}catch{o=Uc.call(a,!0)}return o&&(o.width||o.height)||a.getBBox===Uc||(o=Uc.call(a,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Dd(a,["x","cx","x1"])||0,y:+Dd(a,["y","cy","y1"])||0,width:0,height:0}:o},kd=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&zd(a))},Xa=function(a,o){if(o){var c=a.style,f;o in ms&&o!==Rr&&(o=mn),c.removeProperty?(f=o.substr(0,2),(f==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),c.removeProperty(f==="--"?o:o.replace(kc,"-$1").toLowerCase())):c.removeAttribute(o)}},ia=function(a,o,c,f,u,m){var g=new Pr(a._pt,o,c,0,1,m?Pd:Ad);return a._pt=g,g.b=f,g.e=u,a._props.push(c),g},Bd={deg:1,rad:1,turn:1},bg={grid:1,flex:1},na=function x(a,o,c,f){var u=parseFloat(c)||0,m=(c+"").trim().substr((u+"").length)||"px",g=Wa.style,v=dg.test(o),S=a.tagName.toLowerCase()==="svg",b=(S?"client":"offset")+(v?"Width":"Height"),O=100,k=f==="px",R=f==="%",F,E,P,w;if(f===m||!u||Bd[f]||Bd[m])return u;if(m!=="px"&&!k&&(u=x(a,o,c,"px")),w=a.getCTM&&kd(a),(R||m==="%")&&(ms[o]||~o.indexOf("adius")))return F=w?a.getBBox()[v?"width":"height"]:a[b],On(R?u/F*O:u/100*F);if(g[v?"width":"height"]=O+(k?m:f),E=~o.indexOf("adius")||f==="em"&&a.appendChild&&!S?a:a.parentNode,w&&(E=(a.ownerSVGElement||{}).parentNode),(!E||E===ea||!E.appendChild)&&(E=ea.body),P=E._gsap,P&&R&&P.width&&v&&P.time===qr.time&&!P.uncache)return On(u/P.width*O);if(R&&(o==="height"||o==="width")){var T=a.style[o];a.style[o]=O+f,F=a[b],T?a.style[o]=T:Xa(a,o)}else(R||m==="%")&&!bg[Yo(E,"display")]&&(g.position=Yo(a,"position")),E===a&&(g.position="static"),E.appendChild(Wa),F=Wa[b],E.removeChild(Wa),g.position="absolute";return v&&R&&(P=Na(E),P.time=qr.time,P.width=E[b]),On(k?F*u/O:F&&u?O/F*u:0)},gs=function(a,o,c,f){var u;return Dc||Fc(),o in qo&&o!=="transform"&&(o=qo[o],~o.indexOf(",")&&(o=o.split(",")[0])),ms[o]&&o!=="transform"?(u=Lh(a,f),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:Su(Yo(a,Rr))+" "+u.zOrigin+"px"):(u=a.style[o],(!u||u==="auto"||f||~(u+"").indexOf("calc("))&&(u=Tu[o]&&Tu[o](a,o,c)||Yo(a,o)||Gf(a,o)||(o==="opacity"?1:0))),c&&!~(u+"").trim().indexOf(" ")?na(a,o,u,c)+c:u},Cg=function(a,o,c,f){if(!c||c==="none"){var u=Gl(o,a,1),m=u&&Yo(a,u,1);m&&m!==c?(o=u,c=m):o==="borderColor"&&(c=Yo(a,"borderTopColor"))}var g=new Pr(this._pt,a.style,o,0,1,wd),v=0,S=0,b,O,k,R,F,E,P,w,T,I,C,U;if(g.b=c,g.e=f,c+="",f+="",f==="auto"&&(E=a.style[o],a.style[o]=f,f=Yo(a,o)||f,E?a.style[o]=E:Xa(a,o)),b=[c,f],cd(b),c=b[0],f=b[1],k=c.match(Ol)||[],U=f.match(Ol)||[],U.length){for(;O=Ol.exec(f);)P=O[0],T=f.substring(v,O.index),F?F=(F+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(F=1),P!==(E=k[S++]||"")&&(R=parseFloat(E)||0,C=E.substr((R+"").length),P.charAt(1)==="="&&(P=Il(R,P)+C),w=parseFloat(P),I=P.substr((w+"").length),v=Ol.lastIndex-I.length,I||(I=I||Vr.units[o]||C,v===f.length&&(f+=I,g.e+=I)),C!==I&&(R=na(a,o,E,I)||0),g._pt={_next:g._pt,p:T||S===1?T:",",s:R,c:w-R,m:F&&F<4||o==="zIndex"?Math.round:0});g.c=v<f.length?f.substring(v,f.length):""}else g.r=o==="display"&&f==="none"?Pd:Ad;return Df.test(f)&&(g.e=0),this._pt=g,g},Nd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ag=function(a){var o=a.split(" "),c=o[0],f=o[1]||"50%";return(c==="top"||c==="bottom"||f==="left"||f==="right")&&(a=c,c=f,f=a),o[0]=Nd[c]||c,o[1]=Nd[f]||f,o.join(" ")},Pg=function(a,o){if(o.tween&&o.tween._time===o.tween._dur){var c=o.t,f=c.style,u=o.u,m=c._gsap,g,v,S;if(u==="all"||u===!0)f.cssText="",v=1;else for(u=u.split(","),S=u.length;--S>-1;)g=u[S],ms[g]&&(v=1,g=g==="transformOrigin"?Rr:mn),Xa(c,g);v&&(Xa(c,mn),m&&(m.svg&&c.removeAttribute("transform"),Lh(c,1),m.uncache=1,Ld(f)))}},Tu={clearProps:function(a,o,c,f,u){if(u.data!=="isFromStart"){var m=a._pt=new Pr(a._pt,o,c,0,0,Pg);return m.u=f,m.pr=-10,m.tween=u,a._props.push(c),1}}},Ph=[1,0,0,1,0,0],Fd={},Ud=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},Gd=function(a){var o=Yo(a,mn);return Ud(o)?Ph:o.substr(7).match(If).map(On)},Gc=function(a,o){var c=a._gsap||Na(a),f=a.style,u=Gd(a),m,g,v,S;return c.svg&&a.getAttribute("transform")?(v=a.transform.baseVal.consolidate().matrix,u=[v.a,v.b,v.c,v.d,v.e,v.f],u.join(",")==="1,0,0,1,0,0"?Ph:u):(u===Ph&&!a.offsetParent&&a!==Nl&&!c.svg&&(v=f.display,f.display="block",m=a.parentNode,(!m||!a.offsetParent)&&(S=1,g=a.nextElementSibling,Nl.appendChild(a)),u=Gd(a),v?f.display=v:Xa(a,"display"),S&&(g?m.insertBefore(a,g):m?m.appendChild(a):Nl.removeChild(a))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Hc=function(a,o,c,f,u,m){var g=a._gsap,v=u||Gc(a,!0),S=g.xOrigin||0,b=g.yOrigin||0,O=g.xOffset||0,k=g.yOffset||0,R=v[0],F=v[1],E=v[2],P=v[3],w=v[4],T=v[5],I=o.split(" "),C=parseFloat(I[0])||0,U=parseFloat(I[1])||0,N,X,J,Z;c?v!==Ph&&(X=R*P-F*E)&&(J=C*(P/X)+U*(-E/X)+(E*T-P*w)/X,Z=C*(-F/X)+U*(R/X)-(R*T-F*w)/X,C=J,U=Z):(N=zd(a),C=N.x+(~I[0].indexOf("%")?C/100*N.width:C),U=N.y+(~(I[1]||I[0]).indexOf("%")?U/100*N.height:U)),f||f!==!1&&g.smooth?(w=C-S,T=U-b,g.xOffset=O+(w*R+T*E)-w,g.yOffset=k+(w*F+T*P)-T):g.xOffset=g.yOffset=0,g.xOrigin=C,g.yOrigin=U,g.smooth=!!f,g.origin=o,g.originIsAbsolute=!!c,a.style[Rr]="0px 0px",m&&(ia(m,g,"xOrigin",S,C),ia(m,g,"yOrigin",b,U),ia(m,g,"xOffset",O,g.xOffset),ia(m,g,"yOffset",k,g.yOffset)),a.setAttribute("data-svg-origin",C+" "+U)},Lh=function(a,o){var c=a._gsap||new md(a);if("x"in c&&!o&&!c.uncache)return c;var f=a.style,u=c.scaleX<0,m="px",g="deg",v=getComputedStyle(a),S=Yo(a,Rr)||"0",b,O,k,R,F,E,P,w,T,I,C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt,Et,At,ce,re,Ft,It,Nt,Pe,pe,Wt;return b=O=k=E=P=w=T=I=C=0,R=F=1,c.svg=!!(a.getCTM&&kd(a)),v.translate&&((v.translate!=="none"||v.scale!=="none"||v.rotate!=="none")&&(f[mn]=(v.translate!=="none"?"translate3d("+(v.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(v.rotate!=="none"?"rotate("+v.rotate+") ":"")+(v.scale!=="none"?"scale("+v.scale.split(" ").join(",")+") ":"")+(v[mn]!=="none"?v[mn]:"")),f.scale=f.rotate=f.translate="none"),X=Gc(a,c.svg),c.svg&&(c.uncache?(ce=a.getBBox(),S=c.xOrigin-ce.x+"px "+(c.yOrigin-ce.y)+"px",At=""):At=!o&&a.getAttribute("data-svg-origin"),Hc(a,At||S,!!At||c.originIsAbsolute,c.smooth!==!1,X)),U=c.xOrigin||0,N=c.yOrigin||0,X!==Ph&&(Rt=X[0],tt=X[1],_t=X[2],G=X[3],b=Pt=X[4],O=Et=X[5],X.length===6?(R=Math.sqrt(Rt*Rt+tt*tt),F=Math.sqrt(G*G+_t*_t),E=Rt||tt?Ul(tt,Rt)*ja:0,T=_t||G?Ul(_t,G)*ja+E:0,T&&(F*=Math.abs(Math.cos(T*Fl))),c.svg&&(b-=U-(U*Rt+N*_t),O-=N-(U*tt+N*G))):(Wt=X[6],Pe=X[7],Ft=X[8],It=X[9],Nt=X[10],pe=X[11],b=X[12],O=X[13],k=X[14],J=Ul(Wt,Nt),P=J*ja,J&&(Z=Math.cos(-J),ct=Math.sin(-J),At=Pt*Z+Ft*ct,ce=Et*Z+It*ct,re=Wt*Z+Nt*ct,Ft=Pt*-ct+Ft*Z,It=Et*-ct+It*Z,Nt=Wt*-ct+Nt*Z,pe=Pe*-ct+pe*Z,Pt=At,Et=ce,Wt=re),J=Ul(-_t,Nt),w=J*ja,J&&(Z=Math.cos(-J),ct=Math.sin(-J),At=Rt*Z-Ft*ct,ce=tt*Z-It*ct,re=_t*Z-Nt*ct,pe=G*ct+pe*Z,Rt=At,tt=ce,_t=re),J=Ul(tt,Rt),E=J*ja,J&&(Z=Math.cos(J),ct=Math.sin(J),At=Rt*Z+tt*ct,ce=Pt*Z+Et*ct,tt=tt*Z-Rt*ct,Et=Et*Z-Pt*ct,Rt=At,Pt=ce),P&&Math.abs(P)+Math.abs(E)>359.9&&(P=E=0,w=180-w),R=On(Math.sqrt(Rt*Rt+tt*tt+_t*_t)),F=On(Math.sqrt(Et*Et+Wt*Wt)),J=Ul(Pt,Et),T=Math.abs(J)>2e-4?J*ja:0,C=pe?1/(pe<0?-pe:pe):0),c.svg&&(At=a.getAttribute("transform"),c.forceCSS=a.setAttribute("transform","")||!Ud(Yo(a,mn)),At&&a.setAttribute("transform",At))),Math.abs(T)>90&&Math.abs(T)<270&&(u?(R*=-1,T+=E<=0?180:-180,E+=E<=0?180:-180):(F*=-1,T+=T<=0?180:-180)),o=o||c.uncache,c.x=b-((c.xPercent=b&&(!o&&c.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-b)?-50:0)))?a.offsetWidth*c.xPercent/100:0)+m,c.y=O-((c.yPercent=O&&(!o&&c.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-O)?-50:0)))?a.offsetHeight*c.yPercent/100:0)+m,c.z=k+m,c.scaleX=On(R),c.scaleY=On(F),c.rotation=On(E)+g,c.rotationX=On(P)+g,c.rotationY=On(w)+g,c.skewX=T+g,c.skewY=I+g,c.transformPerspective=C+m,(c.zOrigin=parseFloat(S.split(" ")[2])||!o&&c.zOrigin||0)&&(f[Rr]=Su(S)),c.xOffset=c.yOffset=0,c.force3D=Vr.force3D,c.renderTransform=c.svg?Rg:Od?Hd:Lg,c.uncache=0,c},Su=function(a){return(a=a.split(" "))[0]+" "+a[1]},Vc=function(a,o,c){var f=sr(o);return On(parseFloat(o)+parseFloat(na(a,"x",c+"px",f)))+f},Lg=function(a,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Hd(a,o)},qa="0deg",Rh="0px",Ya=") ",Hd=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,v=c.z,S=c.rotation,b=c.rotationY,O=c.rotationX,k=c.skewX,R=c.skewY,F=c.scaleX,E=c.scaleY,P=c.transformPerspective,w=c.force3D,T=c.target,I=c.zOrigin,C="",U=w==="auto"&&a&&a!==1||w===!0;if(I&&(O!==qa||b!==qa)){var N=parseFloat(b)*Fl,X=Math.sin(N),J=Math.cos(N),Z;N=parseFloat(O)*Fl,Z=Math.cos(N),m=Vc(T,m,X*Z*-I),g=Vc(T,g,-Math.sin(N)*-I),v=Vc(T,v,J*Z*-I+I)}P!==Rh&&(C+="perspective("+P+Ya),(f||u)&&(C+="translate("+f+"%, "+u+"%) "),(U||m!==Rh||g!==Rh||v!==Rh)&&(C+=v!==Rh||U?"translate3d("+m+", "+g+", "+v+") ":"translate("+m+", "+g+Ya),S!==qa&&(C+="rotate("+S+Ya),b!==qa&&(C+="rotateY("+b+Ya),O!==qa&&(C+="rotateX("+O+Ya),(k!==qa||R!==qa)&&(C+="skew("+k+", "+R+Ya),(F!==1||E!==1)&&(C+="scale("+F+", "+E+Ya),T.style[mn]=C||"translate(0, 0)"},Rg=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,v=c.rotation,S=c.skewX,b=c.skewY,O=c.scaleX,k=c.scaleY,R=c.target,F=c.xOrigin,E=c.yOrigin,P=c.xOffset,w=c.yOffset,T=c.forceCSS,I=parseFloat(m),C=parseFloat(g),U,N,X,J,Z;v=parseFloat(v),S=parseFloat(S),b=parseFloat(b),b&&(b=parseFloat(b),S+=b,v+=b),v||S?(v*=Fl,S*=Fl,U=Math.cos(v)*O,N=Math.sin(v)*O,X=Math.sin(v-S)*-k,J=Math.cos(v-S)*k,S&&(b*=Fl,Z=Math.tan(S-b),Z=Math.sqrt(1+Z*Z),X*=Z,J*=Z,b&&(Z=Math.tan(b),Z=Math.sqrt(1+Z*Z),U*=Z,N*=Z)),U=On(U),N=On(N),X=On(X),J=On(J)):(U=O,J=k,N=X=0),(I&&!~(m+"").indexOf("px")||C&&!~(g+"").indexOf("px"))&&(I=na(R,"x",m,"px"),C=na(R,"y",g,"px")),(F||E||P||w)&&(I=On(I+F-(F*U+E*X)+P),C=On(C+E-(F*N+E*J)+w)),(f||u)&&(Z=R.getBBox(),I=On(I+f/100*Z.width),C=On(C+u/100*Z.height)),Z="matrix("+U+","+N+","+X+","+J+","+I+","+C+")",R.setAttribute("transform",Z),T&&(R.style[mn]=Z)},Og=function(a,o,c,f,u){var m=360,g=jn(u),v=parseFloat(u)*(g&&~u.indexOf("rad")?ja:1),S=v-f,b=f+S+"deg",O,k;return g&&(O=u.split("_")[1],O==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),O==="cw"&&S<0?S=(S+m*Cd)%m-~~(S/m)*m:O==="ccw"&&S>0&&(S=(S-m*Cd)%m-~~(S/m)*m)),a._pt=k=new Pr(a._pt,o,c,f,S,mg),k.e=b,k.u="deg",a._props.push(c),k},Vd=function(a,o){for(var c in o)a[c]=o[c];return a},Ig=function(a,o,c){var f=Vd({},c._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=c.style,g,v,S,b,O,k,R,F;f.svg?(S=c.getAttribute("transform"),c.setAttribute("transform",""),m[mn]=o,g=Lh(c,1),Xa(c,mn),c.setAttribute("transform",S)):(S=getComputedStyle(c)[mn],m[mn]=o,g=Lh(c,1),m[mn]=S);for(v in ms)S=f[v],b=g[v],S!==b&&u.indexOf(v)<0&&(R=sr(S),F=sr(b),O=R!==F?na(c,v,S,F):parseFloat(S),k=parseFloat(b),a._pt=new Pr(a._pt,g,v,O,k-O,Bc),a._pt.u=F||0,a._props.push(v));Vd(g,f)};Ar("padding,margin,Width,Radius",function(x,a){var o="Top",c="Right",f="Bottom",u="Left",m=(a<3?[o,c,f,u]:[o+u,o+c,f+c,f+u]).map(function(g){return a<2?x+g:"border"+g+x});Tu[a>1?"border"+x:x]=function(g,v,S,b,O){var k,R;if(arguments.length<4)return k=m.map(function(F){return gs(g,F,S)}),R=k.join(" "),R.split(k[0]).length===5?k[0]:R;k=(b+"").split(" "),R={},m.forEach(function(F,E){return R[F]=k[E]=k[E]||k[(E-1)/2|0]}),g.init(v,R,O)}});var Wd={name:"css",register:Fc,targetTest:function(a){return a.style&&a.nodeType},init:function(a,o,c,f,u){var m=this._props,g=a.style,v=c.vars.startAt,S,b,O,k,R,F,E,P,w,T,I,C,U,N,X,J;Dc||Fc(),this.styles=this.styles||Rd(a),J=this.styles.props,this.tween=c;for(E in o)if(E!=="autoRound"&&(b=o[E],!(jr[E]&&gd(E,o,c,f,a,u)))){if(R=typeof b,F=Tu[E],R==="function"&&(b=b.call(c,f,a,u),R=typeof b),R==="string"&&~b.indexOf("random(")&&(b=Th(b)),F)F(this,a,E,b,c)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(a).getPropertyValue(E)+"").trim(),b+="",Qs.lastIndex=0,Qs.test(S)||(P=sr(S),w=sr(b)),w?P!==w&&(S=na(a,E,S,w)+w):P&&(b+=P),this.add(g,"setProperty",S,b,f,u,0,0,E),m.push(E),J.push(E,0,g[E]);else if(R!=="undefined"){if(v&&E in v?(S=typeof v[E]=="function"?v[E].call(c,f,a,u):v[E],jn(S)&&~S.indexOf("random(")&&(S=Th(S)),sr(S+"")||S==="auto"||(S+=Vr.units[E]||sr(gs(a,E))||""),(S+"").charAt(1)==="="&&(S=gs(a,E))):S=gs(a,E),k=parseFloat(S),T=R==="string"&&b.charAt(1)==="="&&b.substr(0,2),T&&(b=b.substr(2)),O=parseFloat(b),E in qo&&(E==="autoAlpha"&&(k===1&&gs(a,"visibility")==="hidden"&&O&&(k=0),J.push("visibility",0,g.visibility),ia(this,g,"visibility",k?"inherit":"hidden",O?"inherit":"hidden",!O)),E!=="scale"&&E!=="transform"&&(E=qo[E],~E.indexOf(",")&&(E=E.split(",")[0]))),I=E in ms,I){if(this.styles.save(E),C||(U=a._gsap,U.renderTransform&&!o.parseTransform||Lh(a,o.parseTransform),N=o.smoothOrigin!==!1&&U.smooth,C=this._pt=new Pr(this._pt,g,mn,0,1,U.renderTransform,U,0,-1),C.dep=1),E==="scale")this._pt=new Pr(this._pt,U,"scaleY",U.scaleY,(T?Il(U.scaleY,T+O):O)-U.scaleY||0,Bc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){J.push(Rr,0,g[Rr]),b=Ag(b),U.svg?Hc(a,b,0,N,0,this):(w=parseFloat(b.split(" ")[2])||0,w!==U.zOrigin&&ia(this,U,"zOrigin",U.zOrigin,w),ia(this,g,E,Su(S),Su(b)));continue}else if(E==="svgOrigin"){Hc(a,b,1,N,0,this);continue}else if(E in Fd){Og(this,U,E,k,T?Il(k,T+b):b);continue}else if(E==="smoothOrigin"){ia(this,U,"smooth",U.smooth,b);continue}else if(E==="force3D"){U[E]=b;continue}else if(E==="transform"){Ig(this,b,a);continue}}else E in g||(E=Gl(E)||E);if(I||(O||O===0)&&(k||k===0)&&!pg.test(b)&&E in g)P=(S+"").substr((k+"").length),O||(O=0),w=sr(b)||(E in Vr.units?Vr.units[E]:P),P!==w&&(k=na(a,E,S,w)),this._pt=new Pr(this._pt,I?U:g,E,k,(T?Il(k,T+O):O)-k,!I&&(w==="px"||E==="zIndex")&&o.autoRound!==!1?vg:Bc),this._pt.u=w||0,P!==w&&w!=="%"&&(this._pt.b=S,this._pt.r=gg);else if(E in g)Cg.call(this,a,E,S,T?T+b:b);else if(E in a)this.add(a,E,S||a[E],T?T+b:b,f,u);else if(E!=="parseTransform"){cc(E,b);continue}I||(E in g?J.push(E,0,g[E]):J.push(E,1,S||a[E])),m.push(E)}}X&&Md(this)},render:function(a,o){if(o.tween._time||!zc())for(var c=o._pt;c;)c.r(a,c.d),c=c._next;else o.styles.revert()},get:gs,aliases:qo,getSetter:function(a,o,c){var f=qo[o];return f&&f.indexOf(",")<0&&(o=f),o in ms&&o!==Rr&&(a._gsap.x||gs(a,"x"))?c&&bd===c?o==="scale"?wg:xg:(bd=c||{})&&(o==="scale"?Mg:Tg):a.style&&!oc(a.style[o])?yg:~o.indexOf("-")?_g:Pc(a,o)},core:{_removeProperty:Xa,_getMatrix:Gc}};Lr.utils.checkPrefix=Gl,Lr.core.getStyleSaver=Rd,function(x,a,o,c){var f=Ar(x+","+a+","+o,function(u){ms[u]=1});Ar(a,function(u){Vr.units[u]="deg",Fd[u]=1}),qo[f[13]]=x+","+a,Ar(c,function(u){var m=u.split(":");qo[m[1]]=f[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(x){Vr.units[x]="px"}),Lr.registerPlugin(Wd);var Wc=Lr.registerPlugin(Wd)||Lr;Wc.core.Tween;class Dg{constructor(a,o=!1){window.mars3d&&(this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.DynamicMaskingStyle=[],this.canvasClientWidth=a.viewer.canvas.clientWidth,this.canvasClientHeight=a.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o)}add(a,o){let c=a.options.symbol.styleOptions.label.font_size,f=a.options.vectorId,u=Number(c)*1.4,m=Number(c)*1.8,g=a.options.symbol.styleOptions.label,{color:v,outlineColor:S,backgroundColor:b}=g;a.eachGraphic(O=>{O.style.label&&this.DynamicMaskingArr.push({id:f,uid:O.id,position:O._getLablePosition(),label:O.name,width:O.name?u*O.name.length:0,height:m,color:v,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:b,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.DynamicMaskingStyle.push({vectorId:a.options.vectorId,outline:o.label.outline,background:o.label.background,color:this.Cesium.Color.fromCssColorString(o.label.color),backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}),this.oldSet=new Set,this.tweenMap=new Map}remove(a){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==a),this.DynamicMaskingStyle=this.DynamicMaskingStyle.filter(o=>o.vectorId!==a),this.oldSet=new Set,this.tweenMap=new Map}modify(a,o){let{label:c}=o;if(c){let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:v}=c;this.DynamicMaskingArr.forEach(S=>{S.id===a&&(f!=null&&(S.color=this.Cesium.Color.fromCssColorString(f),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(f)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),g!=null&&(S.background=g),v!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(v),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(v)))})}}getBoundingRectangle(a){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(window.map.viewer.scene,a.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,a.width,a.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let a=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let f=!1,u=this.DynamicMaskingArr[o],m,g,v;if(g=this.getBoundingRectangle(u),!(g.x<0||g.x>this.canvasClientWidth||g.y<0||g.y>this.canvasClientHeight))if(a.length===0){a.push(o);continue}else{for(var c=0;c<a.length;c++)if(m=this.DynamicMaskingArr[a[c]],v=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(g,v)){f=!0;break}f||a.push(o)}}return new Set(a)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},c={color:1,outlineColor:1,backgroundColor:1},f=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(g=>!f.has(g))),m=new Set([...f].filter(g=>!this.oldSet.has(g)));for(let g of u)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}var a=Wc.to(c,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var S,b;var v=this.DynamicMaskingArr[g];v.backgroundColor.alpha=c.backgroundColor,v.color.alpha=c.color,v.outlineColor.alpha=c.outlineColor,(b=(S=window.map.getLayer(v.id,"vectorId"))==null?void 0:S.getGraphicByAttr(v.uid))==null||b.setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(g,a)}for(let g of m)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}let v=this.DynamicMaskingArr[g],{backgroundColor:S,color:b,outlineColor:O}=v.dynamicMaskingColor;var a=Wc.to(o,{duration:.8+Math.random(),color:b.alpha,outlineColor:O.alpha,backgroundColor:S.alpha,onUpdate:()=>{var R,F;v.backgroundColor.alpha=o.backgroundColor,v.color.alpha=o.color,v.outlineColor.alpha=o.outlineColor,(F=(R=window.map.getLayer(v.id,"vectorId"))==null?void 0:R.getGraphicByAttr(v.uid))==null||F.setStyle({label:{show:!0,outline:v.outline,background:v.background,color:v.color,outlineColor:v.outlineColor,backgroundColor:v.backgroundColor}})}});this.tweenMap.set(g,a)}this.oldSet=f}}switchDynamicMasking(a){if(a)window.map.getLayers().forEach(o=>{var c;if((c=o.options)!=null&&c.vectorId){let{color:f,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(g=>{g.setStyle({label:{color:f.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else if(this.DynamicMaskingStyle.length>0){let o;this.DynamicMaskingStyle.forEach(c=>{let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:v,vectorId:S}=c;o=window.map.getLayer(S,"vectorId"),o&&o.eachGraphic(b=>{b.setStyle({label:{color:f,outlineColor:m,backgroundColor:v,show:!0,background:g,outline:u}})})})}this.isDynamicMasking=a,window.bimVector.switchDynamicMasking(a)}}const zg=()=>{var x,a;window.planClip.clearPlanClip(),window.schemeEvnModify.clearAllEvnModify(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},kg=()=>{var x,a;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},Bg=()=>{var x,a;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},Ng=x=>{let a=[];if(x.forEach(o=>{let{id:c}=o,f={id:c,mockData:{nextPage:[],item:[],previousPage:[]}};o.operate.forEach((u,m)=>{let g=jc(u,f.mockData.nextPage);f.mockData.nextPage=g,f.mockData.item=g,f.mockData.previousPage=[]}),a.push(f)}),a.length>1)for(let o=1;o<a.length;o++){let c=a[o].mockData,f=a[o-1].mockData.item;const u=new Map;f.forEach(m=>{m.type!="rotatePoint"&&m.type!="viewpoint"&&m.type!="roaming"&&m.type!="splitScreen"&&m.type!="planClip"&&m.type!="editor"&&m.type!="gltf"?u.set(`${m.screenplayId}-${m.type}`,m):a[o].mockData.previousPage.push(m)}),c.nextPage.forEach(m=>{const g=`${m.screenplayId}-${m.type}`;let v={...u.get(g)};if(u.has(g)){if(m.type=="flight")a[o].mockData.previousPage.unshift(u.get(g)),v=m;else{let S={};Object.keys(m).forEach(b=>{if(b!="screenplayId"&&b!="type")if(u.get(g)[b])if(Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),b=="clip"||b=="flat"){v[b]=jd(u.get(g)[b],m[b]);let O={screenplayId:m.screenplayId,type:m.type};O[b]={},Object.keys(m[b]).forEach(k=>{u.get(g)[b][k]?O[b][k]=u.get(g)[b][k]:m[b][k]=="true"&&(O[b][k]="false")}),S={...O,...S}}else S[b]=u.get(g)[b],v[b]=m[b];else a[o].mockData.previousPage.some(O=>O.screenplayId===m.screenplayId)||(S={...Xd(m,b),...S}),v[b]=m[b]}),Object.keys(S).length>0&&a[o].mockData.previousPage.push(S)}u.set(g,v)}else{let S=Xd(m);S&&a[o].mockData.previousPage.push(S),u.set(g,m)}}),a[o].mockData.item=Array.from(u.values())}return a},jc=(x,a=null)=>{let{executionProperty:o,screenplayId:c,property:f,type:u,delay:m,delayTime:g}=x;if((f=="add"||f==!0)&&(f="true"),(f=="remove"||f==!1)&&(f="false"),u=="pit"){let S=window.schemeEvnModify.getModelModifyDataForInitModelById(c);if(S){let b={};b[c]=f,f=b,c=S.modelId,o=S.type}}let v;if(c==""||c=="map")if(c="map",u=="splitScreen"){let{splitScreenMode:S,splitScreenModePercentage:b}=JSON.parse(f);a.push({screenplayId:c,type:u,executionProperty:{splitScreenMode:S,splitScreenModePercentage:b,mapClone:[]}});let{mainScreen:O,secondaryScreen:k}=JSON.parse(x.property);O.forEach(F=>{jc(F,a)});let R=a.find(F=>F.type=="splitScreen");k.forEach(F=>{jc(F,R.executionProperty.mapClone)})}else v={screenplayId:c,type:u,executionProperty:f},(o=="clip"||o=="flat")&&(v[o]=f),m&&(v.delay=m),g&&(v.delayTime=g),a&&(u=="flight"?a.unshift(v):a.push(v));else v=a?a.find(S=>S.screenplayId==c):null,v?(o=="clip"||o=="flat"?v[o]?v[o]=jd(v[o],f):(v[o]=f,v.type="model"):v[o]=f,m&&(v[o].delay=m),g&&(v[o].delayTime=g)):(v={screenplayId:c,type:u},m&&(v.delay=m),g&&(v.delayTime=g),o=="clip"||o=="flat"?(v[o]=f,v.type="model"):v[o]=f,a&&(u=="flight"?a.unshift(v):a.push(v)));return a||v},jd=(x,a)=>{const o={...x};for(const c in a)a.hasOwnProperty(c)&&(o[c]=a[c]);return o},Xd=(x,a="all")=>{let{type:o,show:c,screenplayId:f,overallStaining:u,clip:m,flat:g}=x,v={};if(a=="all")switch(o){case"model":case"shp":case"plot":c&&c=="true"&&(v={screenplayId:f,type:o,show:"false"}),u&&(v={...v,screenplayId:f,type:o,overallStaining:"false"}),m&&(v={...v,screenplayId:f,type:o,clip:"false"}),g&&(v={...v,screenplayId:f,type:o,flat:"false"});break;case"terrain":v={screenplayId:f,type:o,executionProperty:"true"};break;case"pit":v={screenplayId:f,type:o,executionProperty:"false"};break;case"underground":v={screenplayId:f,type:o,executionProperty:"1"};break}else switch(a){case"clip":case"flat":case"overallStaining":v={screenplayId:f,type:o},v[a]="false";break}return Object.keys(v).length>0?v:null},Fg=(x,a)=>{const o={};return Object.keys(a).forEach(c=>{x.hasOwnProperty(c)&&(o[c]=x[c])}),o},Ug=x=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0\.\d+)\s*\)$/i.test(x),Gg=x=>{var o;let a={};(x==null?void 0:x.length)>0&&x[0].operate.forEach(c=>{let{executionProperty:f,screenplayId:u,property:m,type:g}=c;(f=="show"||f=="overallStaining")&&(a[u]||(a[u]={type:g}),a[u][m]=f)}),window.map.getLayers().forEach(c=>{if((c.type=="3dtiles"||c.type=="geojson"||c.type=="tileset")&&c.options.name!="国界"){let f=c.options.modelId||c.options.vectorId;a[f]?(window.bimModel.editColor(f),window.schemeEvnModify.clearAllModelModify({isClone:!1})):c.remove()}}),(o=window.bimEntity.entityLayer.getGraphics())==null||o.forEach(c=>{c.remove()}),window.bimMapSetUp.undergroundVal(1),window.bimTerrainProvider.show(),window.bimTrafficSimulation.destruction(),window.bimRotatePoint.stop(),window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.planClip.clearPlanClip()};class Hg{constructor(a){Vo(this,"getPositions",a=>a.length>1&&(Array.isArray(a[0])||typeof a[0]=="object")?a:this.getPositions(a[0]));Vo(this,"terrainCutById",(a,o,c)=>{switch(c==null?void 0:c.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone||this.terrainClipClone.list.find(f=>f.id==o))return;this.terrainClipClone.addArea(a.length>1?a:a[0],{id:o});break;case!1:if(!this.terrainClip||this.terrainClip.list.find(f=>f.id==o))return;this.terrainClip.addArea(a.length>1?a:a[0],{id:o});break}});Vo(this,"clearTerrainCutById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone)return;this.terrainClipClone.removeArea(a);break;case!1:if(!this.terrainClip)return;this.terrainClip.removeArea(a);break}});Vo(this,"terrainFlattenById",(a,o,c,f)=>{switch(f==null?void 0:f.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone||this.terrainFlatClone.list.find(u=>u.id==c))return;this.terrainFlatClone.addArea(a.length>1?a:a[0],{id:c,height:o});break;case!1:if(!this.terrainFlat||this.terrainFlat.list.find(u=>u.id==c))return;this.terrainFlat.addArea(a.length>1?a:a[0],{id:c,height:o});break}});Vo(this,"clearTerrainFlattenById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone)return;this.terrainFlatClone.removeArea(a);break;case!1:if(!this.terrainFlat)return;this.terrainFlat.removeArea(a);break}});this.flattenedEvnModifyData=a,this.modelIdListByModify=[],this.modelIdListByModifyClone=[],this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null,this.createTerrainModifyInstance()}getDataFromFlattenedEvnModifyListById(a){const o=this.flattenedEvnModifyData.find(c=>c.id==a);return o||null}getModelFromMapById(a,o){let c;switch(o==null?void 0:o.isClone){case!0:c=window.mapClone?window.mapClone.mapEx.getLayers():[];break;case!1:c=window.map.getLayers();break}return c.find(u=>u.options.modelId==a)}updateFlattenedEvnModifyData(a){this.flattenedEvnModifyData=a}modelCutById(a,o,c,f){const u=bimModel.queryModel(a,f);if(u&&!u.clip.list.find(m=>m.id==c))switch(u.clip.addArea(o.length>1?o:o[0],{id:c}),f==null?void 0:f.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}modelFlattenById(a,o,c,f,u){const m=bimModel.queryModel(a,u);if(m&&!m.flat.list.find(g=>g.id==f))switch(m.flat.addArea(o.length>1?o:o[0],{height:c,id:f}),u==null?void 0:u.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}clearModelCutById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.clip.removeArea(o),c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}clearModelFlattenById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.flat.removeArea(o),c==null?void 0:c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}createTerrainModifyInstance(){if(window.map.thing.terrainClip)this.terrainClip=window.map.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({czm:!1,splitNum:30});window.map.addThing(a),this.terrainClip=a}if(window.map.thing.terrainFlat)this.terrainFlat=window.map.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.map.addThing(a),this.terrainFlat=a}}createTerrainModifyInstanceClone(){if(window.mapClone){if(window.mapClone.mapEx.thing.terrainClip)this.terrainClipClone=window.mapClone.mapEx.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainClipClone=a}if(window.mapClone.mapEx.thing.terrainFlat)this.terrainFlatClone=window.mapClone.mapEx.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainFlatClone=a}}}evnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const v=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,v,b,o):u===0&&m===1?this.modelFlattenById(f,v,S,b,o):u===1&&m===0?this.terrainCutById(v,b,o):u===1&&m===1&&this.terrainFlattenById(v,S,b,o)}}evnModifyByIdAndAddOptionsToStore(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const v=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,v,b,o):u===0&&m===1?this.modelFlattenById(f,v,S,b,o):u===1&&m===0?this.terrainCutById(v,b,o):u===1&&m===1&&this.terrainFlattenById(v,S,b,o)}}clearEvnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const v=c.bimEnvModifyData[g].id;u===0&&m===0?this.clearModelCutById(f,v,o):u===0&&m===1?this.clearModelFlattenById(f,v,o):u===1&&m===0?this.clearTerrainCutById(v,o):u===1&&m===1&&this.clearTerrainFlattenById(v,o)}}clearAllModelModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:this.modelIdListByModifyClone.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModifyClone=[];break;case!1:this.modelIdListByModify.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModify=[];break}}clearAllTerrainModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:window.mapClone||(this.terrainClipClone=null,this.terrainFlatClone=null),this.terrainClipClone&&this.terrainClipClone.clear(),this.terrainFlatClone&&this.terrainFlatClone.clear();break;case!1:this.terrainClip&&this.terrainClip.clear(),this.terrainFlat&&this.terrainFlat.clear();break}}getModelModifyDataForInitModelById(a){const o=this.getDataFromFlattenedEvnModifyListById(a);if(!o)return;const{bimEnvModify:{embsId:c,dataType:f,modifyType:u}}=o;if(this.modelIdListByModify.push(c),f===0&&u===0){const m={modelId:c,type:"clip",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const S={positions:this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),id:o.bimEnvModifyData[g].id};m.area.push(S)}return m}else if(f===0&&u===1){const m={modelId:c,type:"flat",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const v=this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),S={id:o.bimEnvModifyData[g].id,positions:v,height:JSON.parse(o.bimEnvModifyData[g].modifyData).depth};return m.area.push(S),m}}}clearAllEvnModify(){this.clearAllModelModify({isClone:!0}),this.clearAllModelModify({isClone:!1}),this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1})}destroyTerrainModifyInstance(){this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1}),this.terrainClip&&window.map.removeThing(this.terrainClip,!0),this.terrainFlat&&window.map.removeThing(this.terrainFlat,!0),this.terrainClipClone&&window.mapClone.mapEx.removeThing(this.terrainClipClone,!0),this.terrainFlatClone&&window.mapClone.mapEx.removeThing(this.terrainFlatClone,!0),this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null}}let Za=null,vs=null,un=null,Oh=null,qd=null;class Vg{constructor(){mars3d&&(this.projectId=parseInt(window.sessionStorage.getItem("nowProjectId")),this.viewPoints=new Array,this.roaming=null)}init(a,o,c){vs=new mars3d.layer.GraphicLayer({isContinued:!0}),qd=new mars3d.layer.GraphicLayer({isContinued:!0}),window.map.addLayer(qd);var f=this;window.map.addLayer(vs),vs.on(mars3d.EventType.drawCreated,function(u){var m=u.graphic.point;o(m),setTimeout(()=>{f.startDrawGraphic()},500)}),vs.on(mars3d.EventType.editStop,function(u){}),un=c,Za=new mars3d.layer.GraphicLayer,window.map.addLayer(Za),a.length<=1e3?this.viewPoints=a:this.viewPoints=a.filter((u,m)=>{if(m%100==0)return u}),un.Viewovalue==1||un.Viewovalue==4?this.calculateAngle(this.viewPoints):this.addGraphicLayer(this.viewPoints)}addDemoGraphic1(a){Oh=new mars3d.graphic.PolylinePrimitive({positions:a.map(o=>[o.lng,o.lat,o.alt+1e3]),style:{width:10,materialType:mars3d.MaterialType.LineFlow,materialOptions:{color:"red",image:{}.VITE_APP_PUBLIC_PATH+"img/line/line-arrow-blue.png",speed:10,repeat:new Cesium.Cartesian2(5,1),mixt:!0}}}),Za.addGraphic(Oh)}getAzimuth(a,o,c,f){const u=R=>R*Math.PI/180,m=R=>R*180/Math.PI,g=u(o),v=u(f),S=u(c-a),b=Math.sin(S)*Math.cos(v),O=Math.cos(g)*Math.sin(v)-Math.sin(g)*Math.cos(v)*Math.cos(S);let k=Math.atan2(b,O);return(m(k)+360)%360}calculateAngle(a){var o=a,c=o.map((f,u)=>{if(u<o.length-1){Cesium.Cartesian3.fromRadians(f.lng,f.lat,f.alt),Cesium.Cartesian3.fromRadians(o[u+1].lng,o[u+1].lat,o[u+1].alt);var m=this.getAzimuth(f.lng,f.lat,o[u+1].lng,o[u+1].lat);const g=new mars3d.graphic.PolylinePrimitive({positions:[a[u-1],a[u]],style:{width:1,color:"rgba(200,200,200,0 )"}});return Za.addGraphic(g),un.Viewovalue==4&&(un.followedX=-1,un.followedZ=f.alt+2),{lng:f.lng,lat:f.lat,alt:f.alt?f.alt+un.followedZ*1:un.followedZ*1,heading:m,pitch:un.followedX*1,duration:(g.distance/un.speed).toFixed(2),stop:0}}});this.viewPoints=c}addGraphicLayer(a){var o=Cesium.Cartesian3.fromRadians(a[0].lng,a[0].lat,a[0].alt),c=Cesium.Cartesian3.fromRadians(a[1].lng,a[1].lat,a[1].alt),f=mars3d.MeasureUtil.getAngle(o,c,!0),u={};un.Viewovalue==1?u={camera:{type:"dy",followedX:un.followedX,followedZ:un.followedZ},interpolation:!0,interpolationDegree:10,autoMiddleDynamicPosition:!0,autoMiddleTimePosition:!0,interpolationAlgorithm:Cesium.HermitePolynomialApproximation}:un.Viewovalue==2?u={camera:{type:"gs",pitch:un.followedX,heading:f,radius:500},interpolation:!0,interpolationDegree:2,clockLoop:!0,path:{width:3,color:Cesium.Color.fromCssColorString("rgba(200,200,200,0 )")}}:un.Viewovalue==4?u={camera:{type:"dy",followedX:100,followedZ:1}}:u={camera:{type:"sd",followedZ:un.followedZ},polyline:{width:3,color:Cesium.Color.fromCssColorString("rgba(200,200,200,0 )")}},a=a.map(g=>[g.lng,g.lat,g.alt]),a.length;var m={type:"time",list:a,interpolationAlgorithm:Cesium.HermitePolynomialApproximation,interpolation:!0,speed:un.speed,interpolationDegree:2};this.fixedRoute=new mars3d.graphic.FixedRoute({name:"贴地表表面漫游",autoStop:!0,position:m,offsetHeight:1.6,clockLoop:!0,...u}),Za.addGraphic(this.fixedRoute)}getAzimuthFromCartesian(a,o){const c=F=>F*180/Math.PI,f=Cesium.Cartographic.fromCartesian(a),u=Cesium.Cartographic.fromCartesian(o),m=f.longitude,g=f.latitude,v=u.longitude,S=u.latitude,b=v-m,O=Math.sin(b)*Math.cos(S),k=Math.cos(g)*Math.sin(S)-Math.sin(g)*Math.cos(S)*Math.cos(b);let R=Math.atan2(O,k);return(c(R)+360)%360}addDemoGraphic(a,o){Oh=new mars3d.graphic.BillboardEntity({position:new mars3d.LngLatPoint(a.lng,a.lat,a.alt),style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0,label:{text:o,pixelOffsetY:-50}}}),vs.addGraphic(Oh)}startDrawGraphic(a){vs.startDraw({type:"billboard",style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0,pixelOffsetY:-20,classificationType:Cesium.ClassificationType.TERRAIN}}).then(o=>{})}start(){Oh.remove(),un.Viewovalue==1||un.Viewovalue==4?map.setCameraViewList(this.viewPoints,{maximumHeight:1}):(this.fixedRoute.start(),window.map.scene.screenSpaceCameraController.enableCollisionDetection=!1)}pause(){(un.Viewovalue==1||un.Viewovalue==4)&&map.pauseCameraViewList(),this.fixedRoute&&this.fixedRoute.pause()}resume(){(un.Viewovalue==1||un.Viewovalue==4)&&map.proceedCameraViewList(),this.fixedRoute&&this.fixedRoute.proceed()}stop(){this.fixedRoute&&this.fixedRoute.stop(),window.map.pauseCameraViewList()}remove(){this.fixedRoute&&this.fixedRoute.stop(),window.map.removeThing(this.roaming,!0),window.map.removeLayer(Za,!0),window.map.removeLayer(vs,!0),this.viewPoints=[],window.map.scene.screenSpaceCameraController.enableCollisionDetection=!1}removeCameraRoute(){Za.clear(),vs.clear()}removegraphicLayerpoint(){vs.clear()}}class Wg{constructor(a){window.mars3d&&(this.beginDate="",this.endDate="",this.trafficSimulationLayer,this.trafficSimulationArr=[],this.style={width:4,materialType:window.mars3d.MaterialType.LineFlow,materialOptions:{color:"#4ac2ff",image:a+"img/textures/line-arrow-right.png",repeat_x:20,repeat_y:1,speed:20},clampToGround:!1,allowDrillPick:!1},this.vehicleSum=100,this.automobileList=[{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/aodi1.gltf"},{url:a+"gltf/cart/kache3.gltf"},{url:a+"gltf/cart/bus2.gltf"},{url:a+"gltf/cart/jiaobanche.glb"}],this._czmlLayer,this._czmlLayerArr=[])}init(a){this.trafficSimulationLayer=new window.mars3d.layer.GraphicLayer({temporaryLayer:"trafficSimulation"}),window.map.addLayer(this.trafficSimulationLayer),window.map.bimMapEdit="1",a&&(this._czmlLayerArr=a)}addLine(a){let o=a;return new Promise(c=>{this.trafficSimulationLayer.startDraw({type:"polylineP",attr:{trafficSimulationId:o},style:{...this.style}}).then(f=>{c({id:o,pointSet:f.coordinates,speed:45,interval:1})})})}initLine(a){let o;a.forEach(c=>{let{id:f}=c;o=new window.mars3d.graphic.PolylinePrimitive({positions:c.pointSet,attr:{trafficSimulationId:f},style:{...this.style}}),this.trafficSimulationLayer.addGraphic(o)})}positionLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.flyTo({scale:2})}deleteLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.remove()}queryTrafficSimulationArr(){return this.trafficSimulationArr}queryTrafficSimulationLine(a){if(this.trafficSimulationLayer)return this.trafficSimulationLayer.getGraphicByAttr(a,"trafficSimulationId")}editTrafficSimulationLine(a,o=!0){let c=this.queryTrafficSimulationLine(a);o?(c.setStyle({materialOptions:{color:"#ff0000"}}),c.startEditing()):(c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing())}fallbackTrafficSimulationLine(a,o){let c=this.queryTrafficSimulationLine(a);c.positions=o,c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing()}queryCzml(a){return this._czmlLayerArr.length==0?!1:this._czmlLayerArr.find(o=>o.id==a)}start(a="add"){this.destruction(),this.beginDate=new Date().toISOString();let o=new Date,c=o.getDate();o.setDate(c+1),this.endDate=o.toISOString(),this.queryCzml(a)?this.trafficSimulationArr=JSON.parse(this.queryCzml(a).route):this.trafficSimulationArr=[],this.processingData(a)}selected(){this._czmlLayer&&this._czmlLayer.flyTo()}destruction(){this.trafficSimulationLayer.clear(),this.trafficSimulationLayer.remove(),this._czmlLayer&&(this._czmlLayer.clear(),this._czmlLayer.remove()),this.style.materialOptions.color="#4ac2ff",window.map.bimMapEdit="0"}processingData(a){let o=[{version:"1.0",id:"document",clock:{interval:`${this.beginDate}/${this.endDate}`,currentTime:this.beginDate,multiplier:1},style:{distanceDisplayCondition:!0,distanceDisplayCondition_far:1e6,distanceDisplayCondition_near:0}}],c=[],f=JSON.parse(JSON.stringify(this.trafficSimulationArr)),u=0;f.forEach((g,v)=>{let S=0,b=0,{pointSet:O,interval:k,speed:R}=g;for(let F=1;F<=this.vehicleSum;F++){let E=JSON.parse(JSON.stringify(O));E.forEach((w,T)=>{T>0&&(u=parseFloat((this.disTance(w,E[T-1].slice(1))/R).toFixed(2)),S+=u),T==0&&(S=b),w.unshift(S)}),b+=k,c=E.reduce((w,T)=>w.concat(T));let P={name:`${v}-${F}`,availability:`${this.beginDate}/${this.endDate}`,orientation:{velocityReference:"#position"},position:{epoch:this.beginDate,cartographicDegrees:c},style:{minimumPixelSize:100,distanceDisplayCondition:!0,distanceDisplayCondition_near:0,distanceDisplayCondition_far:1300,distanceDisplayPoint:{color:"#00ff00",pixelSize:8}},model:{show:!0,gltf:this.randomVehicle(),heightReference:window.Cesium.HeightReference.CLAMP_TO_GROUND,clampToGround:!0,scale:.6,minimumPixelSize:100,maximumScale:1.5}};o.push(P)}});let m={name:"交通模拟",czmlId:a,data:o,autoUpdateClock:!1};this._czmlLayer=new window.mars3d.layer.CzmlLayer(m),window.map.addLayer(this._czmlLayer)}disTance(a,o){let c,f,u;return c=window.Cesium.Cartesian3.fromDegrees(...a),f=window.Cesium.Cartesian3.fromDegrees(...o),u=window.Cesium.Cartesian3.distance(c,f),u}randomVehicle(){let a=Math.round(Math.random()*(this.automobileList.length-1));return this.automobileList[a].url}}const jg=[Tf,bf],Xg={continuation:null,mapModali:null,install(x){if(jg.forEach((m,g)=>{x.component(m.name,m)}),this.continuation){x.config.globalProperties.$continuation=this.continuation;return}let a=oi.createApp(Sf),o=document.createElement("div"),c=document.body;if(c.appendChild(o),this.loading=a.mount(o),x.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){x.config.globalProperties.$mapModali=this.mapModali;return}let f=oi.createApp(Ef),u=document.createElement("div");c.appendChild(u),this.mapModali=f.mount(u),x.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Pi.BimBackgroundPlate=bf,Pi.BimCutscenes=Sf,Pi.BimElevationImage=fm,Pi.BimEntity=pm,Pi.BimModel=lm,Pi.BimModify=Hg,Pi.BimTerrainProvider=cm,Pi.BimTrafficSimulation=Wg,Pi.BimVector=um,Pi.Bimroaming=Vg,Pi.Button=Tf,Pi.ChbimPlugins=Xg,Pi.DynamicMasking=Dg,Pi.MapModali=Ef,Pi.PanoramicView=_m,Pi.ViewShed=dm,Pi.getSameKeyData=Fg,Pi.init=zg,Pi.initMap=Gg,Pi.isValidRGBA=Ug,Pi.nextPage=Bg,Pi.operateMapData=Ng,Pi.previousPage=kg,Object.defineProperty(Pi,Symbol.toStringTag,{value:"Module"})});
|
|
2702
|
+
*/var Ed,ea,Nl,Dc,Wa,bd,zc,fg=function(){return typeof window<"u"},ms={},ja=180/Math.PI,Fl=Math.PI/180,Ul=Math.atan2,Cd=1e8,kc=/([A-Z])/g,dg=/(left|right|width|margin|padding|x)/i,pg=/[\s,\(]\S/,qo={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Bc=function(a,o){return o.set(o.t,o.p,Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},mg=function(a,o){return o.set(o.t,o.p,a===1?o.e:Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},gg=function(a,o){return o.set(o.t,o.p,a?Math.round((o.s+o.c*a)*1e4)/1e4+o.u:o.b,o)},vg=function(a,o){var c=o.s+o.c*a;o.set(o.t,o.p,~~(c+(c<0?-.5:.5))+o.u,o)},Ad=function(a,o){return o.set(o.t,o.p,a?o.e:o.b,o)},Pd=function(a,o){return o.set(o.t,o.p,a!==1?o.b:o.e,o)},yg=function(a,o,c){return a.style[o]=c},_g=function(a,o,c){return a.style.setProperty(o,c)},xg=function(a,o,c){return a._gsap[o]=c},wg=function(a,o,c){return a._gsap.scaleX=a._gsap.scaleY=c},Mg=function(a,o,c,f,u){var m=a._gsap;m.scaleX=m.scaleY=c,m.renderTransform(u,m)},Tg=function(a,o,c,f,u){var m=a._gsap;m[o]=c,m.renderTransform(u,m)},mn="transform",Rr=mn+"Origin",Sg=function x(a,o){var c=this,f=this.target,u=f.style,m=f._gsap;if(a in ms&&u){if(this.tfm=this.tfm||{},a!=="transform")a=qo[a]||a,~a.indexOf(",")?a.split(",").forEach(function(g){return c.tfm[g]=gs(f,g)}):this.tfm[a]=m.x?m[a]:gs(f,a),a===Rr&&(this.tfm.zOrigin=m.zOrigin);else return qo.transform.split(",").forEach(function(g){return x.call(c,g,o)});if(this.props.indexOf(mn)>=0)return;m.svg&&(this.svgo=f.getAttribute("data-svg-origin"),this.props.push(Rr,o,"")),a=mn}(u||o)&&this.props.push(a,o,u[a])},Ld=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},Eg=function(){var a=this.props,o=this.target,c=o.style,f=o._gsap,u,m;for(u=0;u<a.length;u+=3)a[u+1]?o[a[u]]=a[u+2]:a[u+2]?c[a[u]]=a[u+2]:c.removeProperty(a[u].substr(0,2)==="--"?a[u]:a[u].replace(kc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)f[m]=this.tfm[m];f.svg&&(f.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=zc(),(!u||!u.isStart)&&!c[mn]&&(Ld(c),f.zOrigin&&c[Rr]&&(c[Rr]+=" "+f.zOrigin+"px",f.zOrigin=0,f.renderTransform()),f.uncache=1)}},Rd=function(a,o){var c={target:a,props:[],revert:Eg,save:Sg};return a._gsap||Lr.core.getCache(a),o&&o.split(",").forEach(function(f){return c.save(f)}),c},Od,Nc=function(a,o){var c=ea.createElementNS?ea.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):ea.createElement(a);return c&&c.style?c:ea.createElement(a)},Yo=function x(a,o,c){var f=getComputedStyle(a);return f[o]||f.getPropertyValue(o.replace(kc,"-$1").toLowerCase())||f.getPropertyValue(o)||!c&&x(a,Gl(o)||o,1)||""},Id="O,Moz,ms,Ms,Webkit".split(","),Gl=function(a,o,c){var f=o||Wa,u=f.style,m=5;if(a in u&&!c)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);m--&&!(Id[m]+a in u););return m<0?null:(m===3?"ms":m>=0?Id[m]:"")+a},Fc=function(){fg()&&window.document&&(Ed=window,ea=Ed.document,Nl=ea.documentElement,Wa=Nc("div")||{style:{}},Nc("div"),mn=Gl(mn),Rr=mn+"Origin",Wa.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Od=!!Gl("perspective"),zc=Lr.core.reverting,Dc=1)},Uc=function x(a){var o=Nc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),c=this.parentNode,f=this.nextSibling,u=this.style.cssText,m;if(Nl.appendChild(o),o.appendChild(this),this.style.display="block",a)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=x}catch{}else this._gsapBBox&&(m=this._gsapBBox());return c&&(f?c.insertBefore(this,f):c.appendChild(this)),Nl.removeChild(o),this.style.cssText=u,m},Dd=function(a,o){for(var c=o.length;c--;)if(a.hasAttribute(o[c]))return a.getAttribute(o[c])},zd=function(a){var o;try{o=a.getBBox()}catch{o=Uc.call(a,!0)}return o&&(o.width||o.height)||a.getBBox===Uc||(o=Uc.call(a,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Dd(a,["x","cx","x1"])||0,y:+Dd(a,["y","cy","y1"])||0,width:0,height:0}:o},kd=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&zd(a))},Xa=function(a,o){if(o){var c=a.style,f;o in ms&&o!==Rr&&(o=mn),c.removeProperty?(f=o.substr(0,2),(f==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),c.removeProperty(f==="--"?o:o.replace(kc,"-$1").toLowerCase())):c.removeAttribute(o)}},ia=function(a,o,c,f,u,m){var g=new Pr(a._pt,o,c,0,1,m?Pd:Ad);return a._pt=g,g.b=f,g.e=u,a._props.push(c),g},Bd={deg:1,rad:1,turn:1},bg={grid:1,flex:1},na=function x(a,o,c,f){var u=parseFloat(c)||0,m=(c+"").trim().substr((u+"").length)||"px",g=Wa.style,v=dg.test(o),S=a.tagName.toLowerCase()==="svg",b=(S?"client":"offset")+(v?"Width":"Height"),O=100,k=f==="px",R=f==="%",F,E,P,w;if(f===m||!u||Bd[f]||Bd[m])return u;if(m!=="px"&&!k&&(u=x(a,o,c,"px")),w=a.getCTM&&kd(a),(R||m==="%")&&(ms[o]||~o.indexOf("adius")))return F=w?a.getBBox()[v?"width":"height"]:a[b],On(R?u/F*O:u/100*F);if(g[v?"width":"height"]=O+(k?m:f),E=~o.indexOf("adius")||f==="em"&&a.appendChild&&!S?a:a.parentNode,w&&(E=(a.ownerSVGElement||{}).parentNode),(!E||E===ea||!E.appendChild)&&(E=ea.body),P=E._gsap,P&&R&&P.width&&v&&P.time===qr.time&&!P.uncache)return On(u/P.width*O);if(R&&(o==="height"||o==="width")){var T=a.style[o];a.style[o]=O+f,F=a[b],T?a.style[o]=T:Xa(a,o)}else(R||m==="%")&&!bg[Yo(E,"display")]&&(g.position=Yo(a,"position")),E===a&&(g.position="static"),E.appendChild(Wa),F=Wa[b],E.removeChild(Wa),g.position="absolute";return v&&R&&(P=Na(E),P.time=qr.time,P.width=E[b]),On(k?F*u/O:F&&u?O/F*u:0)},gs=function(a,o,c,f){var u;return Dc||Fc(),o in qo&&o!=="transform"&&(o=qo[o],~o.indexOf(",")&&(o=o.split(",")[0])),ms[o]&&o!=="transform"?(u=Lh(a,f),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:Su(Yo(a,Rr))+" "+u.zOrigin+"px"):(u=a.style[o],(!u||u==="auto"||f||~(u+"").indexOf("calc("))&&(u=Tu[o]&&Tu[o](a,o,c)||Yo(a,o)||Gf(a,o)||(o==="opacity"?1:0))),c&&!~(u+"").trim().indexOf(" ")?na(a,o,u,c)+c:u},Cg=function(a,o,c,f){if(!c||c==="none"){var u=Gl(o,a,1),m=u&&Yo(a,u,1);m&&m!==c?(o=u,c=m):o==="borderColor"&&(c=Yo(a,"borderTopColor"))}var g=new Pr(this._pt,a.style,o,0,1,wd),v=0,S=0,b,O,k,R,F,E,P,w,T,I,C,U;if(g.b=c,g.e=f,c+="",f+="",f==="auto"&&(E=a.style[o],a.style[o]=f,f=Yo(a,o)||f,E?a.style[o]=E:Xa(a,o)),b=[c,f],cd(b),c=b[0],f=b[1],k=c.match(Ol)||[],U=f.match(Ol)||[],U.length){for(;O=Ol.exec(f);)P=O[0],T=f.substring(v,O.index),F?F=(F+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(F=1),P!==(E=k[S++]||"")&&(R=parseFloat(E)||0,C=E.substr((R+"").length),P.charAt(1)==="="&&(P=Il(R,P)+C),w=parseFloat(P),I=P.substr((w+"").length),v=Ol.lastIndex-I.length,I||(I=I||Vr.units[o]||C,v===f.length&&(f+=I,g.e+=I)),C!==I&&(R=na(a,o,E,I)||0),g._pt={_next:g._pt,p:T||S===1?T:",",s:R,c:w-R,m:F&&F<4||o==="zIndex"?Math.round:0});g.c=v<f.length?f.substring(v,f.length):""}else g.r=o==="display"&&f==="none"?Pd:Ad;return Df.test(f)&&(g.e=0),this._pt=g,g},Nd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ag=function(a){var o=a.split(" "),c=o[0],f=o[1]||"50%";return(c==="top"||c==="bottom"||f==="left"||f==="right")&&(a=c,c=f,f=a),o[0]=Nd[c]||c,o[1]=Nd[f]||f,o.join(" ")},Pg=function(a,o){if(o.tween&&o.tween._time===o.tween._dur){var c=o.t,f=c.style,u=o.u,m=c._gsap,g,v,S;if(u==="all"||u===!0)f.cssText="",v=1;else for(u=u.split(","),S=u.length;--S>-1;)g=u[S],ms[g]&&(v=1,g=g==="transformOrigin"?Rr:mn),Xa(c,g);v&&(Xa(c,mn),m&&(m.svg&&c.removeAttribute("transform"),Lh(c,1),m.uncache=1,Ld(f)))}},Tu={clearProps:function(a,o,c,f,u){if(u.data!=="isFromStart"){var m=a._pt=new Pr(a._pt,o,c,0,0,Pg);return m.u=f,m.pr=-10,m.tween=u,a._props.push(c),1}}},Ph=[1,0,0,1,0,0],Fd={},Ud=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},Gd=function(a){var o=Yo(a,mn);return Ud(o)?Ph:o.substr(7).match(If).map(On)},Gc=function(a,o){var c=a._gsap||Na(a),f=a.style,u=Gd(a),m,g,v,S;return c.svg&&a.getAttribute("transform")?(v=a.transform.baseVal.consolidate().matrix,u=[v.a,v.b,v.c,v.d,v.e,v.f],u.join(",")==="1,0,0,1,0,0"?Ph:u):(u===Ph&&!a.offsetParent&&a!==Nl&&!c.svg&&(v=f.display,f.display="block",m=a.parentNode,(!m||!a.offsetParent)&&(S=1,g=a.nextElementSibling,Nl.appendChild(a)),u=Gd(a),v?f.display=v:Xa(a,"display"),S&&(g?m.insertBefore(a,g):m?m.appendChild(a):Nl.removeChild(a))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Hc=function(a,o,c,f,u,m){var g=a._gsap,v=u||Gc(a,!0),S=g.xOrigin||0,b=g.yOrigin||0,O=g.xOffset||0,k=g.yOffset||0,R=v[0],F=v[1],E=v[2],P=v[3],w=v[4],T=v[5],I=o.split(" "),C=parseFloat(I[0])||0,U=parseFloat(I[1])||0,N,X,J,Z;c?v!==Ph&&(X=R*P-F*E)&&(J=C*(P/X)+U*(-E/X)+(E*T-P*w)/X,Z=C*(-F/X)+U*(R/X)-(R*T-F*w)/X,C=J,U=Z):(N=zd(a),C=N.x+(~I[0].indexOf("%")?C/100*N.width:C),U=N.y+(~(I[1]||I[0]).indexOf("%")?U/100*N.height:U)),f||f!==!1&&g.smooth?(w=C-S,T=U-b,g.xOffset=O+(w*R+T*E)-w,g.yOffset=k+(w*F+T*P)-T):g.xOffset=g.yOffset=0,g.xOrigin=C,g.yOrigin=U,g.smooth=!!f,g.origin=o,g.originIsAbsolute=!!c,a.style[Rr]="0px 0px",m&&(ia(m,g,"xOrigin",S,C),ia(m,g,"yOrigin",b,U),ia(m,g,"xOffset",O,g.xOffset),ia(m,g,"yOffset",k,g.yOffset)),a.setAttribute("data-svg-origin",C+" "+U)},Lh=function(a,o){var c=a._gsap||new md(a);if("x"in c&&!o&&!c.uncache)return c;var f=a.style,u=c.scaleX<0,m="px",g="deg",v=getComputedStyle(a),S=Yo(a,Rr)||"0",b,O,k,R,F,E,P,w,T,I,C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt,Et,At,ce,re,Ft,It,Bt,Pe,pe,Wt;return b=O=k=E=P=w=T=I=C=0,R=F=1,c.svg=!!(a.getCTM&&kd(a)),v.translate&&((v.translate!=="none"||v.scale!=="none"||v.rotate!=="none")&&(f[mn]=(v.translate!=="none"?"translate3d("+(v.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(v.rotate!=="none"?"rotate("+v.rotate+") ":"")+(v.scale!=="none"?"scale("+v.scale.split(" ").join(",")+") ":"")+(v[mn]!=="none"?v[mn]:"")),f.scale=f.rotate=f.translate="none"),X=Gc(a,c.svg),c.svg&&(c.uncache?(ce=a.getBBox(),S=c.xOrigin-ce.x+"px "+(c.yOrigin-ce.y)+"px",At=""):At=!o&&a.getAttribute("data-svg-origin"),Hc(a,At||S,!!At||c.originIsAbsolute,c.smooth!==!1,X)),U=c.xOrigin||0,N=c.yOrigin||0,X!==Ph&&(Rt=X[0],tt=X[1],_t=X[2],G=X[3],b=Pt=X[4],O=Et=X[5],X.length===6?(R=Math.sqrt(Rt*Rt+tt*tt),F=Math.sqrt(G*G+_t*_t),E=Rt||tt?Ul(tt,Rt)*ja:0,T=_t||G?Ul(_t,G)*ja+E:0,T&&(F*=Math.abs(Math.cos(T*Fl))),c.svg&&(b-=U-(U*Rt+N*_t),O-=N-(U*tt+N*G))):(Wt=X[6],Pe=X[7],Ft=X[8],It=X[9],Bt=X[10],pe=X[11],b=X[12],O=X[13],k=X[14],J=Ul(Wt,Bt),P=J*ja,J&&(Z=Math.cos(-J),ct=Math.sin(-J),At=Pt*Z+Ft*ct,ce=Et*Z+It*ct,re=Wt*Z+Bt*ct,Ft=Pt*-ct+Ft*Z,It=Et*-ct+It*Z,Bt=Wt*-ct+Bt*Z,pe=Pe*-ct+pe*Z,Pt=At,Et=ce,Wt=re),J=Ul(-_t,Bt),w=J*ja,J&&(Z=Math.cos(-J),ct=Math.sin(-J),At=Rt*Z-Ft*ct,ce=tt*Z-It*ct,re=_t*Z-Bt*ct,pe=G*ct+pe*Z,Rt=At,tt=ce,_t=re),J=Ul(tt,Rt),E=J*ja,J&&(Z=Math.cos(J),ct=Math.sin(J),At=Rt*Z+tt*ct,ce=Pt*Z+Et*ct,tt=tt*Z-Rt*ct,Et=Et*Z-Pt*ct,Rt=At,Pt=ce),P&&Math.abs(P)+Math.abs(E)>359.9&&(P=E=0,w=180-w),R=On(Math.sqrt(Rt*Rt+tt*tt+_t*_t)),F=On(Math.sqrt(Et*Et+Wt*Wt)),J=Ul(Pt,Et),T=Math.abs(J)>2e-4?J*ja:0,C=pe?1/(pe<0?-pe:pe):0),c.svg&&(At=a.getAttribute("transform"),c.forceCSS=a.setAttribute("transform","")||!Ud(Yo(a,mn)),At&&a.setAttribute("transform",At))),Math.abs(T)>90&&Math.abs(T)<270&&(u?(R*=-1,T+=E<=0?180:-180,E+=E<=0?180:-180):(F*=-1,T+=T<=0?180:-180)),o=o||c.uncache,c.x=b-((c.xPercent=b&&(!o&&c.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-b)?-50:0)))?a.offsetWidth*c.xPercent/100:0)+m,c.y=O-((c.yPercent=O&&(!o&&c.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-O)?-50:0)))?a.offsetHeight*c.yPercent/100:0)+m,c.z=k+m,c.scaleX=On(R),c.scaleY=On(F),c.rotation=On(E)+g,c.rotationX=On(P)+g,c.rotationY=On(w)+g,c.skewX=T+g,c.skewY=I+g,c.transformPerspective=C+m,(c.zOrigin=parseFloat(S.split(" ")[2])||!o&&c.zOrigin||0)&&(f[Rr]=Su(S)),c.xOffset=c.yOffset=0,c.force3D=Vr.force3D,c.renderTransform=c.svg?Rg:Od?Hd:Lg,c.uncache=0,c},Su=function(a){return(a=a.split(" "))[0]+" "+a[1]},Vc=function(a,o,c){var f=sr(o);return On(parseFloat(o)+parseFloat(na(a,"x",c+"px",f)))+f},Lg=function(a,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Hd(a,o)},qa="0deg",Rh="0px",Ya=") ",Hd=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,v=c.z,S=c.rotation,b=c.rotationY,O=c.rotationX,k=c.skewX,R=c.skewY,F=c.scaleX,E=c.scaleY,P=c.transformPerspective,w=c.force3D,T=c.target,I=c.zOrigin,C="",U=w==="auto"&&a&&a!==1||w===!0;if(I&&(O!==qa||b!==qa)){var N=parseFloat(b)*Fl,X=Math.sin(N),J=Math.cos(N),Z;N=parseFloat(O)*Fl,Z=Math.cos(N),m=Vc(T,m,X*Z*-I),g=Vc(T,g,-Math.sin(N)*-I),v=Vc(T,v,J*Z*-I+I)}P!==Rh&&(C+="perspective("+P+Ya),(f||u)&&(C+="translate("+f+"%, "+u+"%) "),(U||m!==Rh||g!==Rh||v!==Rh)&&(C+=v!==Rh||U?"translate3d("+m+", "+g+", "+v+") ":"translate("+m+", "+g+Ya),S!==qa&&(C+="rotate("+S+Ya),b!==qa&&(C+="rotateY("+b+Ya),O!==qa&&(C+="rotateX("+O+Ya),(k!==qa||R!==qa)&&(C+="skew("+k+", "+R+Ya),(F!==1||E!==1)&&(C+="scale("+F+", "+E+Ya),T.style[mn]=C||"translate(0, 0)"},Rg=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,v=c.rotation,S=c.skewX,b=c.skewY,O=c.scaleX,k=c.scaleY,R=c.target,F=c.xOrigin,E=c.yOrigin,P=c.xOffset,w=c.yOffset,T=c.forceCSS,I=parseFloat(m),C=parseFloat(g),U,N,X,J,Z;v=parseFloat(v),S=parseFloat(S),b=parseFloat(b),b&&(b=parseFloat(b),S+=b,v+=b),v||S?(v*=Fl,S*=Fl,U=Math.cos(v)*O,N=Math.sin(v)*O,X=Math.sin(v-S)*-k,J=Math.cos(v-S)*k,S&&(b*=Fl,Z=Math.tan(S-b),Z=Math.sqrt(1+Z*Z),X*=Z,J*=Z,b&&(Z=Math.tan(b),Z=Math.sqrt(1+Z*Z),U*=Z,N*=Z)),U=On(U),N=On(N),X=On(X),J=On(J)):(U=O,J=k,N=X=0),(I&&!~(m+"").indexOf("px")||C&&!~(g+"").indexOf("px"))&&(I=na(R,"x",m,"px"),C=na(R,"y",g,"px")),(F||E||P||w)&&(I=On(I+F-(F*U+E*X)+P),C=On(C+E-(F*N+E*J)+w)),(f||u)&&(Z=R.getBBox(),I=On(I+f/100*Z.width),C=On(C+u/100*Z.height)),Z="matrix("+U+","+N+","+X+","+J+","+I+","+C+")",R.setAttribute("transform",Z),T&&(R.style[mn]=Z)},Og=function(a,o,c,f,u){var m=360,g=jn(u),v=parseFloat(u)*(g&&~u.indexOf("rad")?ja:1),S=v-f,b=f+S+"deg",O,k;return g&&(O=u.split("_")[1],O==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),O==="cw"&&S<0?S=(S+m*Cd)%m-~~(S/m)*m:O==="ccw"&&S>0&&(S=(S-m*Cd)%m-~~(S/m)*m)),a._pt=k=new Pr(a._pt,o,c,f,S,mg),k.e=b,k.u="deg",a._props.push(c),k},Vd=function(a,o){for(var c in o)a[c]=o[c];return a},Ig=function(a,o,c){var f=Vd({},c._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=c.style,g,v,S,b,O,k,R,F;f.svg?(S=c.getAttribute("transform"),c.setAttribute("transform",""),m[mn]=o,g=Lh(c,1),Xa(c,mn),c.setAttribute("transform",S)):(S=getComputedStyle(c)[mn],m[mn]=o,g=Lh(c,1),m[mn]=S);for(v in ms)S=f[v],b=g[v],S!==b&&u.indexOf(v)<0&&(R=sr(S),F=sr(b),O=R!==F?na(c,v,S,F):parseFloat(S),k=parseFloat(b),a._pt=new Pr(a._pt,g,v,O,k-O,Bc),a._pt.u=F||0,a._props.push(v));Vd(g,f)};Ar("padding,margin,Width,Radius",function(x,a){var o="Top",c="Right",f="Bottom",u="Left",m=(a<3?[o,c,f,u]:[o+u,o+c,f+c,f+u]).map(function(g){return a<2?x+g:"border"+g+x});Tu[a>1?"border"+x:x]=function(g,v,S,b,O){var k,R;if(arguments.length<4)return k=m.map(function(F){return gs(g,F,S)}),R=k.join(" "),R.split(k[0]).length===5?k[0]:R;k=(b+"").split(" "),R={},m.forEach(function(F,E){return R[F]=k[E]=k[E]||k[(E-1)/2|0]}),g.init(v,R,O)}});var Wd={name:"css",register:Fc,targetTest:function(a){return a.style&&a.nodeType},init:function(a,o,c,f,u){var m=this._props,g=a.style,v=c.vars.startAt,S,b,O,k,R,F,E,P,w,T,I,C,U,N,X,J;Dc||Fc(),this.styles=this.styles||Rd(a),J=this.styles.props,this.tween=c;for(E in o)if(E!=="autoRound"&&(b=o[E],!(jr[E]&&gd(E,o,c,f,a,u)))){if(R=typeof b,F=Tu[E],R==="function"&&(b=b.call(c,f,a,u),R=typeof b),R==="string"&&~b.indexOf("random(")&&(b=Th(b)),F)F(this,a,E,b,c)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(a).getPropertyValue(E)+"").trim(),b+="",Qs.lastIndex=0,Qs.test(S)||(P=sr(S),w=sr(b)),w?P!==w&&(S=na(a,E,S,w)+w):P&&(b+=P),this.add(g,"setProperty",S,b,f,u,0,0,E),m.push(E),J.push(E,0,g[E]);else if(R!=="undefined"){if(v&&E in v?(S=typeof v[E]=="function"?v[E].call(c,f,a,u):v[E],jn(S)&&~S.indexOf("random(")&&(S=Th(S)),sr(S+"")||S==="auto"||(S+=Vr.units[E]||sr(gs(a,E))||""),(S+"").charAt(1)==="="&&(S=gs(a,E))):S=gs(a,E),k=parseFloat(S),T=R==="string"&&b.charAt(1)==="="&&b.substr(0,2),T&&(b=b.substr(2)),O=parseFloat(b),E in qo&&(E==="autoAlpha"&&(k===1&&gs(a,"visibility")==="hidden"&&O&&(k=0),J.push("visibility",0,g.visibility),ia(this,g,"visibility",k?"inherit":"hidden",O?"inherit":"hidden",!O)),E!=="scale"&&E!=="transform"&&(E=qo[E],~E.indexOf(",")&&(E=E.split(",")[0]))),I=E in ms,I){if(this.styles.save(E),C||(U=a._gsap,U.renderTransform&&!o.parseTransform||Lh(a,o.parseTransform),N=o.smoothOrigin!==!1&&U.smooth,C=this._pt=new Pr(this._pt,g,mn,0,1,U.renderTransform,U,0,-1),C.dep=1),E==="scale")this._pt=new Pr(this._pt,U,"scaleY",U.scaleY,(T?Il(U.scaleY,T+O):O)-U.scaleY||0,Bc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){J.push(Rr,0,g[Rr]),b=Ag(b),U.svg?Hc(a,b,0,N,0,this):(w=parseFloat(b.split(" ")[2])||0,w!==U.zOrigin&&ia(this,U,"zOrigin",U.zOrigin,w),ia(this,g,E,Su(S),Su(b)));continue}else if(E==="svgOrigin"){Hc(a,b,1,N,0,this);continue}else if(E in Fd){Og(this,U,E,k,T?Il(k,T+b):b);continue}else if(E==="smoothOrigin"){ia(this,U,"smooth",U.smooth,b);continue}else if(E==="force3D"){U[E]=b;continue}else if(E==="transform"){Ig(this,b,a);continue}}else E in g||(E=Gl(E)||E);if(I||(O||O===0)&&(k||k===0)&&!pg.test(b)&&E in g)P=(S+"").substr((k+"").length),O||(O=0),w=sr(b)||(E in Vr.units?Vr.units[E]:P),P!==w&&(k=na(a,E,S,w)),this._pt=new Pr(this._pt,I?U:g,E,k,(T?Il(k,T+O):O)-k,!I&&(w==="px"||E==="zIndex")&&o.autoRound!==!1?vg:Bc),this._pt.u=w||0,P!==w&&w!=="%"&&(this._pt.b=S,this._pt.r=gg);else if(E in g)Cg.call(this,a,E,S,T?T+b:b);else if(E in a)this.add(a,E,S||a[E],T?T+b:b,f,u);else if(E!=="parseTransform"){cc(E,b);continue}I||(E in g?J.push(E,0,g[E]):J.push(E,1,S||a[E])),m.push(E)}}X&&Md(this)},render:function(a,o){if(o.tween._time||!zc())for(var c=o._pt;c;)c.r(a,c.d),c=c._next;else o.styles.revert()},get:gs,aliases:qo,getSetter:function(a,o,c){var f=qo[o];return f&&f.indexOf(",")<0&&(o=f),o in ms&&o!==Rr&&(a._gsap.x||gs(a,"x"))?c&&bd===c?o==="scale"?wg:xg:(bd=c||{})&&(o==="scale"?Mg:Tg):a.style&&!oc(a.style[o])?yg:~o.indexOf("-")?_g:Pc(a,o)},core:{_removeProperty:Xa,_getMatrix:Gc}};Lr.utils.checkPrefix=Gl,Lr.core.getStyleSaver=Rd,function(x,a,o,c){var f=Ar(x+","+a+","+o,function(u){ms[u]=1});Ar(a,function(u){Vr.units[u]="deg",Fd[u]=1}),qo[f[13]]=x+","+a,Ar(c,function(u){var m=u.split(":");qo[m[1]]=f[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(x){Vr.units[x]="px"}),Lr.registerPlugin(Wd);var Wc=Lr.registerPlugin(Wd)||Lr;Wc.core.Tween;class Dg{constructor(a,o=!1){window.mars3d&&(this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.DynamicMaskingStyle=[],this.canvasClientWidth=a.viewer.canvas.clientWidth,this.canvasClientHeight=a.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o)}add(a,o){let c=a.options.symbol.styleOptions.label.font_size,f=a.options.vectorId,u=Number(c)*1.4,m=Number(c)*1.8,g=a.options.symbol.styleOptions.label,{color:v,outlineColor:S,backgroundColor:b}=g;a.eachGraphic(O=>{O.style.label&&this.DynamicMaskingArr.push({id:f,uid:O.id,position:O._getLablePosition(),label:O.name,width:O.name?u*O.name.length:0,height:m,color:v,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:b,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.DynamicMaskingStyle.push({vectorId:a.options.vectorId,outline:o.label.outline,background:o.label.background,color:this.Cesium.Color.fromCssColorString(o.label.color),backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}),this.oldSet=new Set,this.tweenMap=new Map}remove(a){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==a),this.DynamicMaskingStyle=this.DynamicMaskingStyle.filter(o=>o.vectorId!==a),this.oldSet=new Set,this.tweenMap=new Map}modify(a,o){let{label:c}=o;if(c){let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:v}=c;this.DynamicMaskingArr.forEach(S=>{S.id===a&&(f!=null&&(S.color=this.Cesium.Color.fromCssColorString(f),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(f)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),g!=null&&(S.background=g),v!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(v),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(v)))})}}getBoundingRectangle(a){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(window.map.viewer.scene,a.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,a.width,a.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let a=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let f=!1,u=this.DynamicMaskingArr[o],m,g,v;if(g=this.getBoundingRectangle(u),!(g.x<0||g.x>this.canvasClientWidth||g.y<0||g.y>this.canvasClientHeight))if(a.length===0){a.push(o);continue}else{for(var c=0;c<a.length;c++)if(m=this.DynamicMaskingArr[a[c]],v=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(g,v)){f=!0;break}f||a.push(o)}}return new Set(a)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},c={color:1,outlineColor:1,backgroundColor:1},f=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(g=>!f.has(g))),m=new Set([...f].filter(g=>!this.oldSet.has(g)));for(let g of u)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}var a=Wc.to(c,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var S,b;var v=this.DynamicMaskingArr[g];v.backgroundColor.alpha=c.backgroundColor,v.color.alpha=c.color,v.outlineColor.alpha=c.outlineColor,(b=(S=window.map.getLayer(v.id,"vectorId"))==null?void 0:S.getGraphicByAttr(v.uid))==null||b.setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(g,a)}for(let g of m)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}let v=this.DynamicMaskingArr[g],{backgroundColor:S,color:b,outlineColor:O}=v.dynamicMaskingColor;var a=Wc.to(o,{duration:.8+Math.random(),color:b.alpha,outlineColor:O.alpha,backgroundColor:S.alpha,onUpdate:()=>{var R,F;v.backgroundColor.alpha=o.backgroundColor,v.color.alpha=o.color,v.outlineColor.alpha=o.outlineColor,(F=(R=window.map.getLayer(v.id,"vectorId"))==null?void 0:R.getGraphicByAttr(v.uid))==null||F.setStyle({label:{show:!0,outline:v.outline,background:v.background,color:v.color,outlineColor:v.outlineColor,backgroundColor:v.backgroundColor}})}});this.tweenMap.set(g,a)}this.oldSet=f}}switchDynamicMasking(a){if(a)window.map.getLayers().forEach(o=>{var c;if((c=o.options)!=null&&c.vectorId){let{color:f,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(g=>{g.setStyle({label:{color:f.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else if(this.DynamicMaskingStyle.length>0){let o;this.DynamicMaskingStyle.forEach(c=>{let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:v,vectorId:S}=c;o=window.map.getLayer(S,"vectorId"),o&&o.eachGraphic(b=>{b.setStyle({label:{color:f,outlineColor:m,backgroundColor:v,show:!0,background:g,outline:u}})})})}this.isDynamicMasking=a,window.bimVector.switchDynamicMasking(a)}}const zg=()=>{var x,a;window.planClip.clearPlanClip(),window.schemeEvnModify.clearAllEvnModify(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},kg=()=>{var x,a;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},Bg=()=>{var x,a;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},Ng=x=>{let a=[];if(x.forEach(o=>{let{id:c}=o,f={id:c,mockData:{nextPage:[],item:[],previousPage:[]}};o.operate.forEach((u,m)=>{let g=jc(u,f.mockData.nextPage);f.mockData.nextPage=g,f.mockData.item=g,f.mockData.previousPage=[]}),a.push(f)}),a.length>1)for(let o=1;o<a.length;o++){let c=a[o].mockData,f=a[o-1].mockData.item;const u=new Map;f.forEach(m=>{m.type!="rotatePoint"&&m.type!="viewpoint"&&m.type!="roaming"&&m.type!="splitScreen"&&m.type!="planClip"&&m.type!="editor"&&m.type!="gltf"?u.set(`${m.screenplayId}-${m.type}`,m):a[o].mockData.previousPage.push(m)}),c.nextPage.forEach(m=>{const g=`${m.screenplayId}-${m.type}`;let v={...u.get(g)};if(u.has(g)){if(m.type=="flight")a[o].mockData.previousPage.unshift(u.get(g)),v=m;else{let S={};Object.keys(m).forEach(b=>{if(b!="screenplayId"&&b!="type")if(u.get(g)[b])if(Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),b=="clip"||b=="flat"){v[b]=jd(u.get(g)[b],m[b]);let O={screenplayId:m.screenplayId,type:m.type};O[b]={},Object.keys(m[b]).forEach(k=>{u.get(g)[b][k]?O[b][k]=u.get(g)[b][k]:m[b][k]=="true"&&(O[b][k]="false")}),S={...O,...S}}else S[b]=u.get(g)[b],v[b]=m[b];else a[o].mockData.previousPage.some(O=>O.screenplayId===m.screenplayId)||(S={...Xd(m,b),...S}),v[b]=m[b]}),Object.keys(S).length>0&&a[o].mockData.previousPage.push(S)}u.set(g,v)}else{let S=Xd(m);S&&a[o].mockData.previousPage.push(S),u.set(g,m)}}),a[o].mockData.item=Array.from(u.values())}return a},jc=(x,a=null)=>{let{executionProperty:o,screenplayId:c,property:f,type:u,delay:m,delayTime:g}=x;if((f=="add"||f==!0)&&(f="true"),(f=="remove"||f==!1)&&(f="false"),u=="pit"){let S=window.schemeEvnModify.getModelModifyDataForInitModelById(c);if(S){let b={};b[c]=f,f=b,c=S.modelId,o=S.type}}let v;if(c==""||c=="map")if(c="map",u=="splitScreen"){let{splitScreenMode:S,splitScreenModePercentage:b}=JSON.parse(f);a.push({screenplayId:c,type:u,executionProperty:{splitScreenMode:S,splitScreenModePercentage:b,mapClone:[]}});let{mainScreen:O,secondaryScreen:k}=JSON.parse(x.property);O.forEach(F=>{jc(F,a)});let R=a.find(F=>F.type=="splitScreen");k.forEach(F=>{jc(F,R.executionProperty.mapClone)})}else v={screenplayId:c,type:u,executionProperty:f},(o=="clip"||o=="flat")&&(v[o]=f),m&&(v.delay=m),g&&(v.delayTime=g),a&&(u=="flight"?a.unshift(v):a.push(v));else v=a?a.find(S=>S.screenplayId==c):null,v?(o=="clip"||o=="flat"?v[o]?v[o]=jd(v[o],f):(v[o]=f,v.type="model"):v[o]=f,m&&(v[o].delay=m),g&&(v[o].delayTime=g)):(v={screenplayId:c,type:u},m&&(v.delay=m),g&&(v.delayTime=g),o=="clip"||o=="flat"?(v[o]=f,v.type="model"):v[o]=f,a&&(u=="flight"?a.unshift(v):a.push(v)));return a||v},jd=(x,a)=>{const o={...x};for(const c in a)a.hasOwnProperty(c)&&(o[c]=a[c]);return o},Xd=(x,a="all")=>{let{type:o,show:c,screenplayId:f,overallStaining:u,clip:m,flat:g}=x,v={};if(a=="all")switch(o){case"model":case"shp":case"plot":c&&c=="true"&&(v={screenplayId:f,type:o,show:"false"}),u&&(v={...v,screenplayId:f,type:o,overallStaining:"false"}),m&&(v={...v,screenplayId:f,type:o,clip:"false"}),g&&(v={...v,screenplayId:f,type:o,flat:"false"});break;case"terrain":v={screenplayId:f,type:o,executionProperty:"true"};break;case"pit":v={screenplayId:f,type:o,executionProperty:"false"};break;case"underground":v={screenplayId:f,type:o,executionProperty:"1"};break}else switch(a){case"clip":case"flat":case"overallStaining":v={screenplayId:f,type:o},v[a]="false";break}return Object.keys(v).length>0?v:null},Fg=(x,a)=>{const o={};return Object.keys(a).forEach(c=>{x.hasOwnProperty(c)&&(o[c]=x[c])}),o},Ug=x=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0\.\d+)\s*\)$/i.test(x),Gg=x=>{var o;let a={};(x==null?void 0:x.length)>0&&x[0].operate.forEach(c=>{let{executionProperty:f,screenplayId:u,property:m,type:g}=c;(f=="show"||f=="overallStaining")&&(a[u]||(a[u]={type:g}),a[u][m]=f)}),window.map.getLayers().forEach(c=>{if((c.type=="3dtiles"||c.type=="geojson"||c.type=="tileset")&&c.options.name!="国界"){let f=c.options.modelId||c.options.vectorId;a[f]?(window.bimModel.editColor(f),window.schemeEvnModify.clearAllModelModify({isClone:!1})):c.remove()}}),(o=window.bimEntity.entityLayer.getGraphics())==null||o.forEach(c=>{c.remove()}),window.bimMapSetUp.undergroundVal(1),window.bimTerrainProvider.show(),window.bimTrafficSimulation.destruction(),window.bimRotatePoint.stop(),window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.planClip.clearPlanClip()};class Hg{constructor(a){Vo(this,"getPositions",a=>a.length>1&&(Array.isArray(a[0])||typeof a[0]=="object")?a:this.getPositions(a[0]));Vo(this,"terrainCutById",(a,o,c)=>{switch(c==null?void 0:c.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone||this.terrainClipClone.list.find(f=>f.id==o))return;this.terrainClipClone.addArea(a.length>1?a:a[0],{id:o});break;case!1:if(!this.terrainClip||this.terrainClip.list.find(f=>f.id==o))return;this.terrainClip.addArea(a.length>1?a:a[0],{id:o});break}});Vo(this,"clearTerrainCutById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone)return;this.terrainClipClone.removeArea(a);break;case!1:if(!this.terrainClip)return;this.terrainClip.removeArea(a);break}});Vo(this,"terrainFlattenById",(a,o,c,f)=>{switch(f==null?void 0:f.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone||this.terrainFlatClone.list.find(u=>u.id==c))return;this.terrainFlatClone.addArea(a.length>1?a:a[0],{id:c,height:o});break;case!1:if(!this.terrainFlat||this.terrainFlat.list.find(u=>u.id==c))return;this.terrainFlat.addArea(a.length>1?a:a[0],{id:c,height:o});break}});Vo(this,"clearTerrainFlattenById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone)return;this.terrainFlatClone.removeArea(a);break;case!1:if(!this.terrainFlat)return;this.terrainFlat.removeArea(a);break}});this.flattenedEvnModifyData=a,this.modelIdListByModify=[],this.modelIdListByModifyClone=[],this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null,this.createTerrainModifyInstance()}getDataFromFlattenedEvnModifyListById(a){const o=this.flattenedEvnModifyData.find(c=>c.id==a);return o||null}getModelFromMapById(a,o){let c;switch(o==null?void 0:o.isClone){case!0:c=window.mapClone?window.mapClone.mapEx.getLayers():[];break;case!1:c=window.map.getLayers();break}return c.find(u=>u.options.modelId==a)}updateFlattenedEvnModifyData(a){this.flattenedEvnModifyData=a}modelCutById(a,o,c,f){const u=bimModel.queryModel(a,f);if(u&&!u.clip.list.find(m=>m.id==c))switch(u.clip.addArea(o.length>1?o:o[0],{id:c}),f==null?void 0:f.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}modelFlattenById(a,o,c,f,u){const m=bimModel.queryModel(a,u);if(m&&!m.flat.list.find(g=>g.id==f))switch(m.flat.addArea(o.length>1?o:o[0],{height:c,id:f}),u==null?void 0:u.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}clearModelCutById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.clip.removeArea(o),c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}clearModelFlattenById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.flat.removeArea(o),c==null?void 0:c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}createTerrainModifyInstance(){if(window.map.thing.terrainClip)this.terrainClip=window.map.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({czm:!1,splitNum:30});window.map.addThing(a),this.terrainClip=a}if(window.map.thing.terrainFlat)this.terrainFlat=window.map.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.map.addThing(a),this.terrainFlat=a}}createTerrainModifyInstanceClone(){if(window.mapClone){if(window.mapClone.mapEx.thing.terrainClip)this.terrainClipClone=window.mapClone.mapEx.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainClipClone=a}if(window.mapClone.mapEx.thing.terrainFlat)this.terrainFlatClone=window.mapClone.mapEx.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainFlatClone=a}}}evnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const v=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,v,b,o):u===0&&m===1?this.modelFlattenById(f,v,S,b,o):u===1&&m===0?this.terrainCutById(v,b,o):u===1&&m===1&&this.terrainFlattenById(v,S,b,o)}}evnModifyByIdAndAddOptionsToStore(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const v=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,v,b,o):u===0&&m===1?this.modelFlattenById(f,v,S,b,o):u===1&&m===0?this.terrainCutById(v,b,o):u===1&&m===1&&this.terrainFlattenById(v,S,b,o)}}clearEvnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const v=c.bimEnvModifyData[g].id;u===0&&m===0?this.clearModelCutById(f,v,o):u===0&&m===1?this.clearModelFlattenById(f,v,o):u===1&&m===0?this.clearTerrainCutById(v,o):u===1&&m===1&&this.clearTerrainFlattenById(v,o)}}clearAllModelModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:this.modelIdListByModifyClone.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModifyClone=[];break;case!1:this.modelIdListByModify.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModify=[];break}}clearAllTerrainModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:window.mapClone||(this.terrainClipClone=null,this.terrainFlatClone=null),this.terrainClipClone&&this.terrainClipClone.clear(),this.terrainFlatClone&&this.terrainFlatClone.clear();break;case!1:this.terrainClip&&this.terrainClip.clear(),this.terrainFlat&&this.terrainFlat.clear();break}}getModelModifyDataForInitModelById(a){const o=this.getDataFromFlattenedEvnModifyListById(a);if(!o)return;const{bimEnvModify:{embsId:c,dataType:f,modifyType:u}}=o;if(this.modelIdListByModify.push(c),f===0&&u===0){const m={modelId:c,type:"clip",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const S={positions:this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),id:o.bimEnvModifyData[g].id};m.area.push(S)}return m}else if(f===0&&u===1){const m={modelId:c,type:"flat",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const v=this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),S={id:o.bimEnvModifyData[g].id,positions:v,height:JSON.parse(o.bimEnvModifyData[g].modifyData).depth};return m.area.push(S),m}}}clearAllEvnModify(){this.clearAllModelModify({isClone:!0}),this.clearAllModelModify({isClone:!1}),this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1})}destroyTerrainModifyInstance(){this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1}),this.terrainClip&&window.map.removeThing(this.terrainClip,!0),this.terrainFlat&&window.map.removeThing(this.terrainFlat,!0),this.terrainClipClone&&window.mapClone.mapEx.removeThing(this.terrainClipClone,!0),this.terrainFlatClone&&window.mapClone.mapEx.removeThing(this.terrainFlatClone,!0),this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null}}let Za=null,vs=null,un=null,Oh=null,qd=null;class Vg{constructor(){mars3d&&(this.projectId=parseInt(window.sessionStorage.getItem("nowProjectId")),this.viewPoints=new Array,this.roaming=null)}init(a,o,c){vs=new mars3d.layer.GraphicLayer({isContinued:!0}),qd=new mars3d.layer.GraphicLayer({isContinued:!0}),window.map.addLayer(qd);var f=this;window.map.addLayer(vs),vs.on(mars3d.EventType.drawCreated,function(u){var m=u.graphic.point;o(m),setTimeout(()=>{f.startDrawGraphic()},500)}),vs.on(mars3d.EventType.editStop,function(u){}),un=c,Za=new mars3d.layer.GraphicLayer,window.map.addLayer(Za),a.length<=1e3?this.viewPoints=a:this.viewPoints=a.filter((u,m)=>{if(m%100==0)return u}),un.Viewovalue==1||un.Viewovalue==4?this.calculateAngle(this.viewPoints):this.addGraphicLayer(this.viewPoints)}addDemoGraphic1(a){Oh=new mars3d.graphic.PolylinePrimitive({positions:a.map(o=>[o.lng,o.lat,o.alt+1e3]),style:{width:10,materialType:mars3d.MaterialType.LineFlow,materialOptions:{color:"red",image:{}.VITE_APP_PUBLIC_PATH+"img/line/line-arrow-blue.png",speed:10,repeat:new Cesium.Cartesian2(5,1),mixt:!0}}}),Za.addGraphic(Oh)}getAzimuth(a,o,c,f){const u=R=>R*Math.PI/180,m=R=>R*180/Math.PI,g=u(o),v=u(f),S=u(c-a),b=Math.sin(S)*Math.cos(v),O=Math.cos(g)*Math.sin(v)-Math.sin(g)*Math.cos(v)*Math.cos(S);let k=Math.atan2(b,O);return(m(k)+360)%360}calculateAngle(a){var o=a,c=o.map((f,u)=>{if(u<o.length-1){Cesium.Cartesian3.fromRadians(f.lng,f.lat,f.alt),Cesium.Cartesian3.fromRadians(o[u+1].lng,o[u+1].lat,o[u+1].alt);var m=this.getAzimuth(f.lng,f.lat,o[u+1].lng,o[u+1].lat);const g=new mars3d.graphic.PolylinePrimitive({positions:[a[u-1],a[u]],style:{width:1,color:"rgba(200,200,200,0 )"}});return Za.addGraphic(g),un.Viewovalue==4&&(un.followedX=-1,un.followedZ=f.alt+2),{lng:f.lng,lat:f.lat,alt:f.alt?f.alt+un.followedZ*1:un.followedZ*1,heading:m,pitch:un.followedX*1,duration:(g.distance/un.speed).toFixed(2),stop:0}}});this.viewPoints=c}addGraphicLayer(a){var o=Cesium.Cartesian3.fromRadians(a[0].lng,a[0].lat,a[0].alt),c=Cesium.Cartesian3.fromRadians(a[1].lng,a[1].lat,a[1].alt),f=mars3d.MeasureUtil.getAngle(o,c,!0),u={};un.Viewovalue==1?u={camera:{type:"dy",followedX:un.followedX,followedZ:un.followedZ},interpolation:!0,interpolationDegree:10,autoMiddleDynamicPosition:!0,autoMiddleTimePosition:!0,interpolationAlgorithm:Cesium.HermitePolynomialApproximation}:un.Viewovalue==2?u={camera:{type:"gs",pitch:un.followedX,heading:f,radius:500},interpolation:!0,interpolationDegree:2,clockLoop:!0,path:{width:3,color:Cesium.Color.fromCssColorString("rgba(200,200,200,0 )")}}:un.Viewovalue==4?u={camera:{type:"dy",followedX:100,followedZ:1}}:u={camera:{type:"sd",followedZ:un.followedZ},polyline:{width:3,color:Cesium.Color.fromCssColorString("rgba(200,200,200,0 )")}},a=a.map(g=>[g.lng,g.lat,g.alt]),a.length;var m={type:"time",list:a,interpolationAlgorithm:Cesium.HermitePolynomialApproximation,interpolation:!0,speed:un.speed,interpolationDegree:2};this.fixedRoute=new mars3d.graphic.FixedRoute({name:"贴地表表面漫游",autoStop:!0,position:m,offsetHeight:1.6,clockLoop:!0,...u}),Za.addGraphic(this.fixedRoute)}getAzimuthFromCartesian(a,o){const c=F=>F*180/Math.PI,f=Cesium.Cartographic.fromCartesian(a),u=Cesium.Cartographic.fromCartesian(o),m=f.longitude,g=f.latitude,v=u.longitude,S=u.latitude,b=v-m,O=Math.sin(b)*Math.cos(S),k=Math.cos(g)*Math.sin(S)-Math.sin(g)*Math.cos(S)*Math.cos(b);let R=Math.atan2(O,k);return(c(R)+360)%360}addDemoGraphic(a,o){Oh=new mars3d.graphic.BillboardEntity({position:new mars3d.LngLatPoint(a.lng,a.lat,a.alt),style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0,label:{text:o,pixelOffsetY:-50}}}),vs.addGraphic(Oh)}startDrawGraphic(a){vs.startDraw({type:"billboard",style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0,pixelOffsetY:-20,classificationType:Cesium.ClassificationType.TERRAIN}}).then(o=>{})}start(){Oh.remove(),un.Viewovalue==1||un.Viewovalue==4?map.setCameraViewList(this.viewPoints,{maximumHeight:1}):(this.fixedRoute.start(),window.map.scene.screenSpaceCameraController.enableCollisionDetection=!1)}pause(){(un.Viewovalue==1||un.Viewovalue==4)&&map.pauseCameraViewList(),this.fixedRoute&&this.fixedRoute.pause()}resume(){(un.Viewovalue==1||un.Viewovalue==4)&&map.proceedCameraViewList(),this.fixedRoute&&this.fixedRoute.proceed()}stop(){this.fixedRoute&&this.fixedRoute.stop(),window.map.pauseCameraViewList()}remove(){this.fixedRoute&&this.fixedRoute.stop(),window.map.removeThing(this.roaming,!0),window.map.removeLayer(Za,!0),window.map.removeLayer(vs,!0),this.viewPoints=[],window.map.scene.screenSpaceCameraController.enableCollisionDetection=!1}removeCameraRoute(){Za.clear(),vs.clear()}removegraphicLayerpoint(){vs.clear()}}class Wg{constructor(a){window.mars3d&&(this.beginDate="",this.endDate="",this.trafficSimulationLayer,this.trafficSimulationArr=[],this.style={width:4,materialType:window.mars3d.MaterialType.LineFlow,materialOptions:{color:"#4ac2ff",image:a+"img/textures/line-arrow-right.png",repeat_x:20,repeat_y:1,speed:20},clampToGround:!1,allowDrillPick:!1},this.vehicleSum=100,this.automobileList=[{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/aodi1.gltf"},{url:a+"gltf/cart/kache3.gltf"},{url:a+"gltf/cart/bus2.gltf"},{url:a+"gltf/cart/jiaobanche.glb"}],this._czmlLayer,this._czmlLayerArr=[])}init(a){this.trafficSimulationLayer=new window.mars3d.layer.GraphicLayer({temporaryLayer:"trafficSimulation"}),window.map.addLayer(this.trafficSimulationLayer),window.map.bimMapEdit="1",a&&(this._czmlLayerArr=a)}addLine(a){let o=a;return new Promise(c=>{this.trafficSimulationLayer.startDraw({type:"polylineP",attr:{trafficSimulationId:o},style:{...this.style}}).then(f=>{c({id:o,pointSet:f.coordinates,speed:45,interval:1})})})}initLine(a){let o;a.forEach(c=>{let{id:f}=c;o=new window.mars3d.graphic.PolylinePrimitive({positions:c.pointSet,attr:{trafficSimulationId:f},style:{...this.style}}),this.trafficSimulationLayer.addGraphic(o)})}positionLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.flyTo({scale:2})}deleteLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.remove()}queryTrafficSimulationArr(){return this.trafficSimulationArr}queryTrafficSimulationLine(a){if(this.trafficSimulationLayer)return this.trafficSimulationLayer.getGraphicByAttr(a,"trafficSimulationId")}editTrafficSimulationLine(a,o=!0){let c=this.queryTrafficSimulationLine(a);o?(c.setStyle({materialOptions:{color:"#ff0000"}}),c.startEditing()):(c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing())}fallbackTrafficSimulationLine(a,o){let c=this.queryTrafficSimulationLine(a);c.positions=o,c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing()}queryCzml(a){return this._czmlLayerArr.length==0?!1:this._czmlLayerArr.find(o=>o.id==a)}start(a="add"){this.destruction(),this.beginDate=new Date().toISOString();let o=new Date,c=o.getDate();o.setDate(c+1),this.endDate=o.toISOString(),this.queryCzml(a)?this.trafficSimulationArr=JSON.parse(this.queryCzml(a).route):this.trafficSimulationArr=[],this.processingData(a)}selected(){this._czmlLayer&&this._czmlLayer.flyTo()}destruction(){this.trafficSimulationLayer.clear(),this.trafficSimulationLayer.remove(),this._czmlLayer&&(this._czmlLayer.clear(),this._czmlLayer.remove()),this.style.materialOptions.color="#4ac2ff",window.map.bimMapEdit="0"}processingData(a){let o=[{version:"1.0",id:"document",clock:{interval:`${this.beginDate}/${this.endDate}`,currentTime:this.beginDate,multiplier:1},style:{distanceDisplayCondition:!0,distanceDisplayCondition_far:1e6,distanceDisplayCondition_near:0}}],c=[],f=JSON.parse(JSON.stringify(this.trafficSimulationArr)),u=0;f.forEach((g,v)=>{let S=0,b=0,{pointSet:O,interval:k,speed:R}=g;for(let F=1;F<=this.vehicleSum;F++){let E=JSON.parse(JSON.stringify(O));E.forEach((w,T)=>{T>0&&(u=parseFloat((this.disTance(w,E[T-1].slice(1))/R).toFixed(2)),S+=u),T==0&&(S=b),w.unshift(S)}),b+=k,c=E.reduce((w,T)=>w.concat(T));let P={name:`${v}-${F}`,availability:`${this.beginDate}/${this.endDate}`,orientation:{velocityReference:"#position"},position:{epoch:this.beginDate,cartographicDegrees:c},style:{minimumPixelSize:100,distanceDisplayCondition:!0,distanceDisplayCondition_near:0,distanceDisplayCondition_far:1300,distanceDisplayPoint:{color:"#00ff00",pixelSize:8}},model:{show:!0,gltf:this.randomVehicle(),heightReference:window.Cesium.HeightReference.CLAMP_TO_GROUND,clampToGround:!0,scale:.6,minimumPixelSize:100,maximumScale:1.5}};o.push(P)}});let m={name:"交通模拟",czmlId:a,data:o,autoUpdateClock:!1};this._czmlLayer=new window.mars3d.layer.CzmlLayer(m),window.map.addLayer(this._czmlLayer)}disTance(a,o){let c,f,u;return c=window.Cesium.Cartesian3.fromDegrees(...a),f=window.Cesium.Cartesian3.fromDegrees(...o),u=window.Cesium.Cartesian3.distance(c,f),u}randomVehicle(){let a=Math.round(Math.random()*(this.automobileList.length-1));return this.automobileList[a].url}}const jg=[Tf,bf],Xg={continuation:null,mapModali:null,install(x){if(jg.forEach((m,g)=>{x.component(m.name,m)}),this.continuation){x.config.globalProperties.$continuation=this.continuation;return}let a=oi.createApp(Sf),o=document.createElement("div"),c=document.body;if(c.appendChild(o),this.loading=a.mount(o),x.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){x.config.globalProperties.$mapModali=this.mapModali;return}let f=oi.createApp(Ef),u=document.createElement("div");c.appendChild(u),this.mapModali=f.mount(u),x.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Pi.BimBackgroundPlate=bf,Pi.BimCutscenes=Sf,Pi.BimElevationImage=fm,Pi.BimEntity=pm,Pi.BimModel=lm,Pi.BimModify=Hg,Pi.BimTerrainProvider=cm,Pi.BimTrafficSimulation=Wg,Pi.BimVector=um,Pi.Bimroaming=Vg,Pi.Button=Tf,Pi.ChbimPlugins=Xg,Pi.DynamicMasking=Dg,Pi.MapModali=Ef,Pi.PanoramicView=_m,Pi.ViewShed=dm,Pi.getSameKeyData=Fg,Pi.init=zg,Pi.initMap=Gg,Pi.isValidRGBA=Ug,Pi.nextPage=Bg,Pi.operateMapData=Ng,Pi.previousPage=kg,Object.defineProperty(Pi,Symbol.toStringTag,{value:"Module"})});
|