FacialRecognition/build/static/js/main.0b821458.js
2024-01-29 20:22:46 +05:30

3 lines
245 KiB
JavaScript

/*! For license information please see main.0b821458.js.LICENSE.txt */
(()=>{var e={848:function(e){e.exports=function(){"use strict";var e=3.1415926,t={PI:e,PIx2:2*e,PI_2:e/2,PI_180:e/180,N180_PI:180/e,Infinity:-999,isInfinity:function(e){return e===this.Infinity||e===1/0},randomAToB:function(e,t,n){return 2<arguments.length&&void 0!==n&&n?Math.floor(Math.random()*(t-e))+e:e+Math.random()*(t-e)},randomFloating:function(e,t,n){return this.randomAToB(e-t,e+t,n)},randomColor:function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).slice(-6)},randomZone:function(){},floor:function(e,t){return t=1<arguments.length&&void 0!==t?t:4,t=Math.pow(10,t),Math.floor(e*t)/t},degreeTransform:function(t){return t*e/180},toColor16:function(e){return"#"+e.toString(16)}},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);return void 0!==r?"value"in r?r.value:void 0!==(r=r.get)?r.call(n):void 0:null!==(e=Object.getPrototypeOf(e))?o(e,t,n):void 0}var l=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},u=(i(c,[{key:"getValue",value:function(e){return e=0<arguments.length&&void 0!==e&&e,this.isArray?x.getRandFromArray(this.a):this.center?t.randomFloating(this.a,this.b,e):t.randomAToB(this.a,this.b,e)}}],[{key:"setSpanValue",value:function(e,t,n){return e instanceof c?e:void 0===t?new c(e):void 0===n?new c(e,t):new c(e,t,n)}},{key:"getSpanValue",value:function(e){return e instanceof c?e.getValue():e}}]),c);function c(e,t,n){r(this,c),x.isArray(e)?(this.isArray=!0,this.a=e):(this.isArray=!1,this.a=x.initValue(e,1),this.b=x.initValue(t,this.a),this.center=x.initValue(n,!1))}var d=function(e){--e;for(var t=1;t<32;t<<=1)e|=e>>t;return e+1},h=function(e,t){return[1,0,0,0,1,0,e,t,1]},f=function(e){var t=Math.cos(e);return[t,-(e=Math.sin(e)),0,e,t,0,0,0,1]},p=function(e,t){return[e,0,0,0,t,0,0,0,1]},v=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],s=e[6],u=e[7],c=e[8],d=t[0],h=t[1],f=t[2],p=t[3],v=t[4],y=t[5],m=t[6];return[n*d+r*p+i*m,n*h+r*v+i*(e=t[7]),n*f+r*y+i*(t=t[8]),a*d+o*p+l*m,a*h+o*v+l*e,a*f+o*y+l*t,s*d+u*p+c*m,s*h+u*v+c*e,s*f+u*y+c*t]},y={createCanvas:function(e,t,n,r){var i=3<arguments.length&&void 0!==r?r:"absolute";return(r=document.createElement("canvas")).id=e,r.width=t,r.height=n,r.style.opacity=0,r.style.position=i,this.transform(r,-500,-500,0,0),r},createDiv:function(e,t,n){var r=document.createElement("div");return r.id=e,r.style.position="absolute",this.resize(r,t,n),r},resize:function(e,t,n){e.style.width=t+"px",e.style.height=n+"px",e.style.marginLeft=-t/2+"px",e.style.marginTop=-n/2+"px"},transform:function(e,t,n,r,i){e.style.willChange="transform";var a="translate("+t+"px, "+n+"px) scale("+r+") rotate("+i+"deg)";this.css3(e,"transform",a)},transform3d:function(e,t,n,r,i){e.style.willChange="transform",i="translate3d("+t+"px, "+n+"px, 0) scale("+r+") rotate("+i+"deg)",this.css3(e,"backfaceVisibility","hidden"),this.css3(e,"transform",i)},css3:function(e,t,n){var r=t.charAt(0).toUpperCase()+t.substr(1);e.style["Webkit"+r]=n,e.style["Moz"+r]=n,e.style["O"+r]=n,e.style["ms"+r]=n,e.style[""+t]=n}},m={},g={},b=0,w=function(e,t,n){return e.drawImage(t,n.x,n.y),t=e.getImageData(n.x,n.y,n.width,n.height),e.clearRect(n.x,n.y,n.width,n.height),t},k=function(e,t,n){var r="string"==typeof e?e:e.src;m[r]?t(m[r],n):((e=new Image).onload=function(e){m[r]=e.target,t(m[r],n)},e.src=r)},_=function(e,t,n){var r,i,a=e.src;return g[a]||(r=d(e.width),i=d(e.height),(i=y.createCanvas("proton_canvas_cache_"+ ++b,r,i)).getContext("2d").drawImage(e,0,0,e.width,e.height),g[a]=i),t&&t(g[a],n),g[a]},x={initValue:function(e,t){return null!=e?e:t},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},emptyArray:function(e){e&&(e.length=0)},toArray:function(e){return this.isArray(e)?e:[e]},getRandFromArray:function(e){return e?e[Math.floor(e.length*Math.random())]:null},emptyObject:function(e,t){var n,r=1<arguments.length&&void 0!==t?t:null;for(n in e)r&&-1<r.indexOf(n)||delete e[n]},classApply:function(e,t){return new((t=1<arguments.length&&void 0!==t?t:null)?e.bind.apply(e,[null].concat(t)):e)},setVectorVal:function(e,t){(t=1<arguments.length&&void 0!==t?t:null)&&(this.hasProp(t,"x")&&(e.p.x=t.x),this.hasProp(t,"y")&&(e.p.y=t.y),this.hasProp(t,"vx")&&(e.v.x=t.vx),this.hasProp(t,"vy")&&(e.v.y=t.vy),this.hasProp(t,"ax")&&(e.a.x=t.ax),this.hasProp(t,"ay")&&(e.a.y=t.ay),this.hasProp(t,"p")&&e.p.copy(t.p),this.hasProp(t,"v")&&e.v.copy(t.v),this.hasProp(t,"a")&&e.a.copy(t.a),this.hasProp(t,"position")&&e.p.copy(t.position),this.hasProp(t,"velocity")&&e.v.copy(t.velocity),this.hasProp(t,"accelerate")&&e.a.copy(t.accelerate))},hasProp:function(e,t){return!!e&&void 0!==e[t]},setProp:function(e,t){for(var n in t)e.hasOwnProperty(n)&&(e[n]=u.getSpanValue(t[n]));return e},getImageData:function(e,t,n){return w(e,t,n)},destroyAll:function(e,t){for(var n=1<arguments.length&&void 0!==t?t:null,r=e.length;r--;){try{e[r].destroy(n)}catch(e){}delete e[r]}e.length=0},assign:function(e,t){if("function"==typeof Object.assign)return Object.assign(e,t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}},S={},E={_index:0,_cache:{},id:function(e){return void 0!==S[e]&&null!==S[e]||(S[e]=0),e+"_"+S[e]++},getId:function(e){var t=this.getIdFromCache(e);return t||(t="PUID_"+this._index++,this._cache[t]=e,t)},getIdFromCache:function(e){var t,n=void 0;for(n in this._cache){if((t=this._cache[n])===e)return n;if(this.isBody(t,e)&&t.src===e.src)return n}return null},isBody:function(e,t){return"object"===(void 0===e?"undefined":n(e))&&"object"===(void 0===t?"undefined":n(t))&&e.isInner&&t.isInner},getTarget:function(e){return this._cache[e]}},P=(i(C,[{key:"get",value:function(e,t,n){var r=void 0;return n=n||e.__puid||E.getId(e),(r=this.cache[n]&&0<this.cache[n].length?this.cache[n].pop():this.createOrClone(e,t)).__puid=e.__puid||n,r}},{key:"expire",value:function(e){return this.getCache(e.__puid).push(e)}},{key:"createOrClone",value:function(e,t){return this.total++,this.create?this.create(e,t):"function"==typeof e?x.classApply(e,t):e.clone()}},{key:"getCount",value:function(){var e,t=0;for(e in this.cache)t+=this.cache[e].length;return t++}},{key:"destroy",value:function(){for(var e in this.cache)this.cache[e].length=0,delete this.cache[e]}},{key:"getCache",value:function(e){return e=0<arguments.length&&void 0!==e?e:"default",this.cache[e]||(this.cache[e]=[]),this.cache[e]}}]),C);function C(e){r(this,C),this.total=0,this.cache={}}var R=(i(T,[{key:"update",value:function(e,t){this.add(e,t);var n=this.getEmitter();switch(e=this.getRenderer(),t="",this.type){case 2:t+="emitter:"+this.proton.emitters.length+"<br>",n&&(t+="em speed:"+n.emitSpeed+"<br>"),n&&(t+="pos:"+this.getEmitterPos(n));break;case 3:n&&(t+="initializes:"+n.initializes.length+"<br>"),n&&(t+='<span style="display:inline-block;">'+this.concatArr(n.initializes)+"</span><br>"),n&&(t+="behaviours:"+n.behaviours.length+"<br>"),n&&(t+='<span style="display:inline-block;">'+this.concatArr(n.behaviours)+"</span><br>");break;case 4:e&&(t+=e.name+"<br>"),e&&(t+="body:"+this.getCreatedNumber(e)+"<br>");break;default:t+="particles:"+this.proton.getCount()+"<br>",t+="pool:"+this.proton.pool.getCount()+"<br>",t+="total:"+this.proton.pool.total}this.container.innerHTML=t}},{key:"add",value:function(e,t){var n=this;if(!this.container){this.type=1,this.container=document.createElement("div"),this.container.style.cssText=["position:absolute;bottom:0px;left:0;cursor:pointer;","opacity:0.9;z-index:10000;padding:10px;font-size:12px;font-family:Helvetica,Arial,sans-serif;","width:120px;height:50px;background-color:#002;color:#0ff;"].join(""),this.container.addEventListener("click",(function(e){n.type++,4<n.type&&(n.type=1)}),!1);var r=void 0,i=void 0;switch(e){case 2:r="#201",i="#f08";break;case 3:r="#020",i="#0f0";break;default:r="#002",i="#0ff"}this.container.style["background-color"]=r,this.container.style.color=i}this.container.parentNode||(t=t||this.body||document.body).appendChild(this.container)}},{key:"getEmitter",value:function(){return this.proton.emitters[this.emitterIndex]}},{key:"getRenderer",value:function(){return this.proton.renderers[this.rendererIndex]}},{key:"concatArr",value:function(e){var t="";if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t+=(e[n].name||"").substr(0,1)+".";return t}},{key:"getCreatedNumber",value:function(e){return e.pool.total||e.cpool&&e.cpool.total||0}},{key:"getEmitterPos",value:function(e){return Math.round(e.p.x)+","+Math.round(e.p.y)}}]),T);function T(e){r(this,T),this.proton=e,this.container=null,this.type=1,this.emitterIndex=0,this.rendererIndex=0}var z=(i(O,[{key:"addEventListener",value:function(e,t){return this._listeners?this.removeEventListener(e,t):this._listeners={},this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),t}},{key:"removeEventListener",value:function(e,t){if(this._listeners&&this._listeners[e])for(var n=this._listeners[e],r=n.length,i=0;i<r;i++)if(n[i]===t){1===r?delete this._listeners[e]:n.splice(i,1);break}}},{key:"removeAllEventListeners",value:function(e){e?this._listeners&&delete this._listeners[e]:this._listeners=null}},{key:"dispatchEvent",value:function(e,t){var n=!1,r=this._listeners;if(e&&r){var i=r[e];if(!i)return n;for(var a=void 0,o=i.length;o--;)a=i[o],n=n||a(t)}return!!n}},{key:"hasEventListener",value:function(e){var t=this._listeners;return!(!t||!t[e])}}],[{key:"bind",value:function(e){e.prototype.dispatchEvent=O.prototype.dispatchEvent,e.prototype.hasEventListener=O.prototype.hasEventListener,e.prototype.addEventListener=O.prototype.addEventListener,e.prototype.removeEventListener=O.prototype.removeEventListener,e.prototype.removeAllEventListeners=O.prototype.removeAllEventListeners}}]),O);function O(){r(this,O),this._listeners=null}var I=(i(M,[{key:"calculate",value:function(e,t,n){this.eulerIntegrate(e,t,n)}},{key:"eulerIntegrate",value:function(e,t,n){e.sleep||(e.old.p.copy(e.p),e.old.v.copy(e.v),e.a.multiplyScalar(1/e.mass),e.v.add(e.a.multiplyScalar(t)),e.p.add(e.old.v.multiplyScalar(t)),n&&e.v.multiplyScalar(n),e.a.clear())}}]),M);function M(e){r(this,M),this.type=e}var A=(i(D,[{key:"addRenderer",value:function(e){e.init(this),this.renderers.push(e)}},{key:"removeRenderer",value:function(e){var t=this.renderers.indexOf(e);this.renderers.splice(t,1),e.remove(this)}},{key:"addEmitter",value:function(e){this.emitters.push(e),(e.parent=this).dispatchEvent(D.EMITTER_ADDED,e)}},{key:"removeEmitter",value:function(e){var t=this.emitters.indexOf(e);this.emitters.splice(t,1),e.parent=null,this.dispatchEvent(D.EMITTER_REMOVED,e)}},{key:"update",value:function(){"auto"===this._fps?(this.dispatchEvent(D.PROTON_UPDATE),D.USE_CLOCK?(this.then||(this.then=(new Date).getTime()),this.now=(new Date).getTime(),this.elapsed=.001*(this.now-this.then),this.amendChangeTabsBug(),0<this.elapsed&&this.emittersUpdate(this.elapsed),this.then=this.now):this.emittersUpdate(D.DEFAULT_INTERVAL),this.dispatchEvent(D.PROTON_UPDATE_AFTER)):(this.then||(this.then=(new Date).getTime()),this.now=(new Date).getTime(),this.elapsed=.001*(this.now-this.then),this.elapsed>this._interval&&(this.dispatchEvent(D.PROTON_UPDATE),this.emittersUpdate(this._interval),this.then=this.now-this.elapsed%this._interval*1e3,this.dispatchEvent(D.PROTON_UPDATE_AFTER)))}},{key:"emittersUpdate",value:function(e){for(var t=this.emitters.length;t--;)this.emitters[t].update(e)}},{key:"amendChangeTabsBug",value:function(){D.amendChangeTabsBug&&.5<this.elapsed&&(this.then=(new Date).getTime(),this.elapsed=0)}},{key:"getCount",value:function(){for(var e=0,t=this.emitters.length;t--;)e+=this.emitters[t].particles.length;return e}},{key:"getAllParticles",value:function(){for(var e=[],t=this.emitters.length;t--;)e=e.concat(this.emitters[t].particles);return e}},{key:"destroyAllEmitters",value:function(){x.destroyAll(this.emitters)}},{key:"destroy",value:function(e){function t(){n.time=0,n.then=0,n.pool.destroy(),x.destroyAll(n.emitters),x.destroyAll(n.renderers,n.getAllParticles())}var n=this;0<arguments.length&&void 0!==e&&e?setTimeout(t,200):t()}},{key:"fps",set:function(e){this._fps=e,this._interval="auto"===e?D.DEFAULT_INTERVAL:t.floor(1/e,7)},get:function(){return this._fps}}]),D);function D(e){r(this,D),this.emitters=[],this.renderers=[],this.time=0,this.now=0,this.then=0,this.elapsed=0,this.stats=new R(this),this.pool=new P(80),this.integrationType=x.initValue(e,D.EULER),this.integrator=new I(this.integrationType),this._fps="auto",this._interval=D.DEFAULT_INTERVAL}A.USE_CLOCK=!1,A.MEASURE=100,A.EULER="euler",A.RK2="runge-kutta2",A.PARTICLE_CREATED="PARTICLE_CREATED",A.PARTICLE_UPDATE="PARTICLE_UPDATE",A.PARTICLE_SLEEP="PARTICLE_SLEEP",A.PARTICLE_DEAD="PARTICLE_DEAD",A.EMITTER_ADDED="EMITTER_ADDED",A.EMITTER_REMOVED="EMITTER_REMOVED",A.PROTON_UPDATE="PROTON_UPDATE",A.PROTON_UPDATE_AFTER="PROTON_UPDATE_AFTER",A.DEFAULT_INTERVAL=.0167,A.amendChangeTabsBug=!0,z.bind(A);var L=(i(B,[{key:"reset",value:function(){this.r=255,this.g=255,this.b=255}}]),B);function B(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:255;r(this,B),this.r=e,this.g=t,this.b=n}var N={easeLinear:function(e){return e},easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return-(Math.pow(e-1,2)-1)},easeInOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},easeInCubic:function(e){return Math.pow(e,3)},easeOutCubic:function(e){return Math.pow(e-1,3)+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},easeInQuart:function(e){return Math.pow(e,4)},easeOutQuart:function(e){return-(Math.pow(e-1,4)-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeInSine:function(e){return 1-Math.cos(e*t.PI_2)},easeOutSine:function(e){return Math.sin(e*t.PI_2)},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInBack:function(e){return e*e*(2.70158*e-1.70158)},easeOutBack:function(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},getEasing:function(e){return"function"==typeof e?e:this[e]||this.easeLinear}},F=(i(U,[{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"getGradient",value:function(){return 0!==this.x?Math.atan2(this.y,this.x):0<this.y?t.PI_2:this.y<0?-t.PI_2:void 0}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e,t){return void 0!==t?this.addVectors(e,t):(this.x+=e.x,this.y+=e.y,this)}},{key:"addXY",value:function(e,t){return this.x+=e,this.y+=t,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"sub",value:function(e,t){return void 0!==t?this.subVectors(e,t):(this.x-=e.x,this.y-=e.y,this)}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"divideScalar",value:function(e){return 0!==e?(this.x/=e,this.y/=e):this.set(0,0),this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"negate",value:function(){return this.multiplyScalar(-1)}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length())}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"rotate",value:function(e){var t=this.x,n=this.y;return this.x=t*Math.cos(e)+n*Math.sin(e),this.y=-t*Math.sin(e)+n*Math.cos(e),this}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x;return t*t+(e=this.y-e.y)*e}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"clear",value:function(){return this.x=0,this.y=0,this}},{key:"clone",value:function(){return new U(this.x,this.y)}}]),U);function U(e,t){r(this,U),this.x=e||0,this.y=t||0}var V=(i(j,[{key:"getDirection",value:function(){return Math.atan2(this.v.x,-this.v.y)*t.N180_PI}},{key:"reset",value:function(){return this.life=1/0,this.age=0,this.dead=!1,this.sleep=!1,this.body=null,this.sprite=null,this.parent=null,this.energy=1,this.mass=1,this.radius=10,this.alpha=1,this.scale=1,this.rotation=0,this.color=null,this.p.set(0,0),this.v.set(0,0),this.a.set(0,0),this.old.p.set(0,0),this.old.v.set(0,0),this.old.a.set(0,0),this.easing=N.easeLinear,this.rgb.reset(),x.emptyObject(this.data),this.removeAllBehaviours(),this}},{key:"update",value:function(e,t){this.sleep||(this.age+=e,this.applyBehaviours(e,t)),this.age<this.life?(t=this.easing(this.age/this.life),this.energy=Math.max(1-t,0)):this.destroy()}},{key:"applyBehaviours",value:function(e,t){var n=this.behaviours.length,r=void 0;for(r=0;r<n;r++)this.behaviours[r]&&this.behaviours[r].applyBehaviour(this,e,t)}},{key:"addBehaviour",value:function(e){this.behaviours.push(e),e.hasOwnProperty("parents")&&e.parents.push(this),e.initialize(this)}},{key:"addBehaviours",value:function(e){var t=e.length,n=void 0;for(n=0;n<t;n++)this.addBehaviour(e[n])}},{key:"removeBehaviour",value:function(e){-1<(e=this.behaviours.indexOf(e))&&(this.behaviours.splice(e,1).parents=null)}},{key:"removeAllBehaviours",value:function(){x.emptyArray(this.behaviours)}},{key:"destroy",value:function(){this.removeAllBehaviours(),this.energy=0,this.dead=!0,this.parent=null}}]),j);function j(e){r(this,j),this.id="",this.old={},this.data={},this.behaviours=[],this.p=[],this.v=[],this.a=[],this.rgb={},this.name="Particle",this.id=E.id(this.name),this.old={},this.data={},this.behaviours=[],this.p=new F,this.v=new F,this.a=new F,this.old.p=new F,this.old.v=new F,this.old.a=new F,this.rgb=new L,this.reset(),e&&x.setProp(this,e)}var H={hexToRgb:function(e){return e="#"===e.charAt(0)?e.substring(1,7):e,{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},rgbToHex:function(e){return"rgb("+e.r+", "+e.g+", "+e.b+")"},getHex16FromParticle:function(e){return 65536*Number(e.rgb.r)+256*Number(e.rgb.g)+Number(e.rgb.b)}},W=(i($,[{key:"set",value:function(e,t){return this.r=e,this.tha=t,this}},{key:"setR",value:function(e){return this.r=e,this}},{key:"setTha",value:function(e){return this.tha=e,this}},{key:"copy",value:function(e){return this.r=e.r,this.tha=e.tha,this}},{key:"toVector",value:function(){return new F(this.getX(),this.getY())}},{key:"getX",value:function(){return this.r*Math.sin(this.tha)}},{key:"getY",value:function(){return-this.r*Math.cos(this.tha)}},{key:"normalize",value:function(){return this.r=1,this}},{key:"equals",value:function(e){return e.r===this.r&&e.tha===this.tha}},{key:"clear",value:function(){return this.r=0,this.tha=0,this}},{key:"clone",value:function(){return new $(this.r,this.tha)}}]),$);function $(e,t){r(this,$),this.r=Math.abs(e)||0,this.tha=t||0}var q={create:function(e){var t=new Float32Array(9);return e&&this.set(e,t),t},set:function(e,t){for(var n=0;n<9;n++)t[n]=e[n];return t},multiply:function(e,t,n){var r=e[0],i=e[1],a=e[2],o=e[3],l=e[4],s=e[6],u=e[7],c=t[0],d=t[1],h=t[2],f=t[3],p=t[4];return e=t[6],t=t[7],n[0]=c*r+d*o,n[1]=c*i+d*l,n[2]=a*h,n[3]=f*r+p*o,n[4]=f*i+p*l,n[6]=e*r+t*o+s,n[7]=e*i+t*l+u,n},inverse:function(e,t){var n=e[0],r=e[1],i=e[3],a=e[4],o=e[6],l=e[7],s=-i;return e=l*i-a*o,i=1/(n*a+r*s),t[0]=a*i,t[1]=-r*i,t[3]=s*i,t[4]=n*i,t[6]=e*i,t[7]=(-l*n+r*o)*i,t},multiplyVec2:function(e,t,n){var r=t[0];return t=t[1],n[0]=r*e[0]+t*e[3]+e[6],n[1]=r*e[1]+t*e[4]+e[7],n}},Q=(l(Z,u),i(Z,[{key:"getValue",value:function(){var e=x.getRandFromArray(this._arr);return"random"===e||"Random"===e?t.randomColor():e}}],[{key:"createArraySpan",value:function(e){return e?e instanceof Z?e:new Z(e):null}}]),Z);function Z(e){r(this,Z);var t=s(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this));return t._arr=x.toArray(e),t}var Y=(i(X,[{key:"contains",value:function(e,t){return e<=this.right&&e>=this.x&&t<=this.bottom&&t>=this.y}}]),X);function X(e,t,n,i){r(this,X),this.x=e,this.y=t,this.width=n,this.height=i,this.bottom=this.y+this.height,this.right=this.x+this.width}var G=(i(K,[{key:"init",value:function(){this.startTime=0,this.nextTime=this.timePan.getValue()}},{key:"getValue",value:function(e){return this.startTime+=e,this.startTime>=this.nextTime?(this.startTime=0,this.nextTime=this.timePan.getValue(),1===this.numPan.b?.5<this.numPan.getValue(!1)?1:0:this.numPan.getValue(!0)):0}}]),K);function K(e,t){r(this,K),this.numPan=u.setSpanValue(x.initValue(e,1)),this.timePan=u.setSpanValue(x.initValue(t,1)),this.startTime=0,this.nextTime=0,this.init()}var J=(i(ee,[{key:"reset",value:function(){}},{key:"init",value:function(e,t){t?this.initialize(t):this.initialize(e)}},{key:"initialize",value:function(){}}]),ee);function ee(){r(this,ee)}var te=(l(ne,J),i(ne,[{key:"initialize",value:function(e){this.lifePan.a===1/0?e.life=1/0:e.life=this.lifePan.getValue()}}]),ne);function ne(e,t,n){r(this,ne);var i=s(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this));return i.lifePan=u.setSpanValue(e,t,n),i.name="Life",i}var re=(i(ie,[{key:"getPosition",value:function(){}},{key:"crossing",value:function(){}}]),ie);function ie(){r(this,ie),this.vector=new F(0,0),this.random=0,this.crossType="dead",this.alert=!0}var ae=(l(oe,re),i(oe,[{key:"getPosition",value:function(){return this.vector.x=this.x,this.vector.y=this.y,this.vector}},{key:"crossing",value:function(){this.alert&&(console.error("Sorry, PointZone does not support crossing method!"),this.alert=!1)}}]),oe);function oe(e,t){r(this,oe);var n=s(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return n.x=e,n.y=t,n}var le=(l(se,J),i(se,[{key:"reset",value:function(e){this.zone=x.initValue(e,new ae)}},{key:"initialize",value:function(e){this.zone.getPosition(),e.p.x=this.zone.vector.x,e.p.y=this.zone.vector.y}}]),se);function se(e){r(this,se);var t=s(this,(se.__proto__||Object.getPrototypeOf(se)).call(this));return t.zone=x.initValue(e,new ae),t.name="Position",t}var ue=(l(ce,J),i(ce,[{key:"reset",value:function(e,t,n){this.rPan=u.setSpanValue(e),this.thaPan=u.setSpanValue(t),this.type=x.initValue(n,"vector")}},{key:"normalizeVelocity",value:function(e){return e*A.MEASURE}},{key:"initialize",value:function(e){var n;"p"===this.type||"P"===this.type||"polar"===this.type?(n=new W(this.normalizeVelocity(this.rPan.getValue()),this.thaPan.getValue()*t.PI_180),e.v.x=n.getX(),e.v.y=n.getY()):(e.v.x=this.normalizeVelocity(this.rPan.getValue()),e.v.y=this.normalizeVelocity(this.thaPan.getValue()))}}]),ce);function ce(e,t,n){r(this,ce);var i=s(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this));return i.rPan=u.setSpanValue(e),i.thaPan=u.setSpanValue(t),i.type=x.initValue(n,"vector"),i.name="Velocity",i}var de=(l(he,J),i(he,[{key:"initialize",value:function(e){e.mass=this.massPan.getValue()}}]),he);function he(e,t,n){r(this,he);var i=s(this,(he.__proto__||Object.getPrototypeOf(he)).call(this));return i.massPan=u.setSpanValue(e,t,n),i.name="Mass",i}var fe=(l(pe,J),i(pe,[{key:"reset",value:function(e,t,n){this.radius=u.setSpanValue(e,t,n)}},{key:"initialize",value:function(e){e.radius=this.radius.getValue(),e.data.oldRadius=e.radius}}]),pe);function pe(e,t,n){r(this,pe);var i=s(this,(pe.__proto__||Object.getPrototypeOf(pe)).call(this));return i.radius=u.setSpanValue(e,t,n),i.name="Radius",i}var ve=(l(ye,J),i(ye,[{key:"initialize",value:function(e){var t=this.image.getValue();e.body="string"==typeof t?{width:this.w,height:this.h,src:t,isInner:!0,inner:!0}:t}},{key:"setSpanValue",value:function(e){return e instanceof Q?e:new Q(e)}}]),ye);function ye(e,t,n){r(this,ye);var i=s(this,(ye.__proto__||Object.getPrototypeOf(ye)).call(this));return i.image=i.setSpanValue(e),i.w=x.initValue(t,20),i.h=x.initValue(n,i.w),i.name="Body",i}var me=(i(ge,[{key:"reset",value:function(e,t){this.life=x.initValue(e,1/0),this.easing=N.getEasing(t)}},{key:"normalizeForce",value:function(e){return e.multiplyScalar(A.MEASURE)}},{key:"normalizeValue",value:function(e){return e*A.MEASURE}},{key:"initialize",value:function(){}},{key:"calculate",value:function(e,t){this.age+=t,this.age>=this.life||this.dead?(this.energy=0,this.dead=!0,this.destroy()):(e=this.easing(e.age/e.life),this.energy=Math.max(1-e,0))}},{key:"destroy",value:function(){for(var e=this.parents.length;e--;)this.parents[e].removeBehaviour(this);this.parents.length=0}}]),ge);function ge(e,t){r(this,ge),this.life=x.initValue(e,1/0),this.easing=N.getEasing(t),this.age=0,this.energy=1,this.dead=!1,this.parents=[],this.id="Behaviour_"+ge.id++,this.name="Behaviour"}me.id=0;var be=(l(we,me),i(we,[{key:"reset",value:function(e,t,n,r){this.force=this.normalizeForce(new F(e,t)),n&&o(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"reset",this).call(this,n,r)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.a.add(this.force)}}]),we);function we(e,t,n,i){return r(this,we),(i=s(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,n,i))).force=i.normalizeForce(new F(e,t)),i.name="Force",i}var ke=(l(_e,me),i(_e,[{key:"reset",value:function(e,t,n,r,i){this.targetPosition=x.initValue(e,new F),this.radius=x.initValue(n,1e3),this.force=x.initValue(this.normalizeValue(t),100),this.radiusSq=this.radius*this.radius,this.attractionForce=new F,this.lengthSq=0,r&&o(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"reset",this).call(this,r,i)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.attractionForce.copy(this.targetPosition),this.attractionForce.sub(e.p),this.lengthSq=this.attractionForce.lengthSq(),4e-5<this.lengthSq&&this.lengthSq<this.radiusSq&&(this.attractionForce.normalize(),this.attractionForce.multiplyScalar(1-this.lengthSq/this.radiusSq),this.attractionForce.multiplyScalar(this.force),e.a.add(this.attractionForce))}}]),_e);function _e(e,t,n,i,a){return r(this,_e),(a=s(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,i,a))).targetPosition=x.initValue(e,new F),a.radius=x.initValue(n,1e3),a.force=x.initValue(a.normalizeValue(t),100),a.radiusSq=a.radius*a.radius,a.attractionForce=new F,a.lengthSq=0,a.name="Attraction",a}var xe=(l(Se,me),i(Se,[{key:"reset",value:function(e,t,n,r,i){this.panFoce=new F(e,t),this.panFoce=this.normalizeForce(this.panFoce),this.delay=n,r&&o(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"reset",this).call(this,r,i)}},{key:"initialize",value:function(e){e.data.time=0}},{key:"applyBehaviour",value:function(e,n,r){this.calculate(e,n,r),e.data.time+=n,e.data.time>=this.delay&&(e.a.addXY(t.randomAToB(-this.panFoce.x,this.panFoce.x),t.randomAToB(-this.panFoce.y,this.panFoce.y)),e.data.time=0)}}]),Se);function Se(e,t,n,i,a){return r(this,Se),(a=s(this,(Se.__proto__||Object.getPrototypeOf(Se)).call(this,i,a))).reset(e,t,n),a.time=0,a.name="RandomDrift",a}var Ee=(l(Pe,be),i(Pe,[{key:"reset",value:function(e,t,n){o(Pe.prototype.__proto__||Object.getPrototypeOf(Pe.prototype),"reset",this).call(this,0,e,t,n)}}]),Pe);function Pe(e,t,n){return r(this,Pe),(n=s(this,(Pe.__proto__||Object.getPrototypeOf(Pe)).call(this,0,e,t,n))).name="Gravity",n}var Ce=(l(Re,me),i(Re,[{key:"reset",value:function(e,t,n,r,i){this.emitter=x.initValue(e,null),this.mass=x.initValue(t,!0),this.callback=x.initValue(n,null),this.collisionPool=[],this.delta=new F,r&&o(Re.prototype.__proto__||Object.getPrototypeOf(Re.prototype),"reset",this).call(this,r,i)}},{key:"applyBehaviour",value:function(e,t,n){var r,i,a,o,l,s,u=(this.emitter?this.emitter.particles:this.pool).slice(n),c=u.length,d=void 0,h=void 0;for(h=0;h<c;h++)(d=u[h])!==e&&(this.delta.copy(d.p),this.delta.sub(e.p),(r=this.delta.lengthSq())<=(s=e.radius+d.radius)*s&&(i=s-Math.sqrt(r),i+=.5,a=e.mass+d.mass,o=this.mass?d.mass/a:.5,l=this.mass?e.mass/a:.5,e.p.add(this.delta.clone().normalize().multiplyScalar(i*-o)),d.p.add(this.delta.normalize().multiplyScalar(i*l)),this.callback&&this.callback(e,d)))}}]),Re);function Re(e,t,n,i,a){return r(this,Re),(a=s(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,i,a))).reset(e,t,n),a.name="Collision",a}var Te=(l(ze,me),i(ze,[{key:"reset",value:function(e,t,n,r){this.zone=e,this.zone.crossType=x.initValue(t,"dead"),n&&o(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"reset",this).call(this,n,r)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.zone.crossing(e)}}]),ze);function ze(e,t,n,i){return r(this,ze),(i=s(this,(ze.__proto__||Object.getPrototypeOf(ze)).call(this,n,i))).reset(e,t),i.name="CrossZone",i}var Oe=(l(Ie,me),i(Ie,[{key:"reset",value:function(e,t,n,r){this.same=null==t,this.a=u.setSpanValue(x.initValue(e,1)),this.b=u.setSpanValue(t),n&&o(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(e){e.data.alphaA=this.a.getValue(),this.same?e.data.alphaB=e.data.alphaA:e.data.alphaB=this.b.getValue()}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.alpha=e.data.alphaB+(e.data.alphaA-e.data.alphaB)*this.energy,e.alpha<.001&&(e.alpha=0)}}]),Ie);function Ie(e,t,n,i){return r(this,Ie),(i=s(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,n,i))).reset(e,t),i.name="Alpha",i}var Me=(l(Ae,me),i(Ae,[{key:"reset",value:function(e,t,n,r){this.same=null==t,this.a=u.setSpanValue(x.initValue(e,1)),this.b=u.setSpanValue(t),n&&o(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(e){e.data.scaleA=this.a.getValue(),e.data.oldRadius=e.radius,e.data.scaleB=this.same?e.data.scaleA:this.b.getValue()}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.scale=e.data.scaleB+(e.data.scaleA-e.data.scaleB)*this.energy,e.scale<1e-4&&(e.scale=0),e.radius=e.data.oldRadius*e.scale}}]),Ae);function Ae(e,t,n,i){return r(this,Ae),(i=s(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,n,i))).reset(e,t),i.name="Scale",i}var De=(l(Le,me),i(Le,[{key:"reset",value:function(e,t,n,r,i){this.same=null==t,this.a=u.setSpanValue(x.initValue(e,"Velocity")),this.b=u.setSpanValue(x.initValue(t,0)),this.style=x.initValue(n,"to"),r&&o(Le.prototype.__proto__||Object.getPrototypeOf(Le.prototype),"reset",this).call(this,r,i)}},{key:"initialize",value:function(e){e.rotation=this.a.getValue(),e.data.rotationA=this.a.getValue(),this.same||(e.data.rotationB=this.b.getValue())}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.same?"V"!==this.a.a&&"Velocity"!==this.a.a&&"v"!==this.a.a||(e.rotation=e.getDirection()):"to"===this.style||"TO"===this.style||"_"===this.style?e.rotation+=e.data.rotationB+(e.data.rotationA-e.data.rotationB)*this.energy:e.rotation+=e.data.rotationB}}]),Le);function Le(e,t,n,i,a){return r(this,Le),(a=s(this,(Le.__proto__||Object.getPrototypeOf(Le)).call(this,i,a))).reset(e,t,n),a.name="Rotate",a}var Be=(l(Ne,me),i(Ne,[{key:"reset",value:function(e,t,n,r){this.a=Q.createArraySpan(e),this.b=Q.createArraySpan(t),n&&o(Ne.prototype.__proto__||Object.getPrototypeOf(Ne.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(e){e.color=this.a.getValue(),e.data.colorA=H.hexToRgb(e.color),this.b&&(e.data.colorB=H.hexToRgb(this.b.getValue()))}},{key:"applyBehaviour",value:function(e,t,n){this.b?(this.calculate(e,t,n),e.rgb.r=e.data.colorB.r+(e.data.colorA.r-e.data.colorB.r)*this.energy,e.rgb.g=e.data.colorB.g+(e.data.colorA.g-e.data.colorB.g)*this.energy,e.rgb.b=e.data.colorB.b+(e.data.colorA.b-e.data.colorB.b)*this.energy,e.rgb.r=Math.floor(e.rgb.r),e.rgb.g=Math.floor(e.rgb.g),e.rgb.b=Math.floor(e.rgb.b)):(e.rgb.r=e.data.colorA.r,e.rgb.g=e.data.colorA.g,e.rgb.b=e.data.colorA.b)}}]),Ne);function Ne(e,t,n,i){return r(this,Ne),(i=s(this,(Ne.__proto__||Object.getPrototypeOf(Ne)).call(this,n,i))).reset(e,t),i.name="Color",i}var Fe="changing",Ue=(l(Ve,me),i(Ve,[{key:"setAngleAndForce",value:function(e,n){this.force=Fe,this.angle=t.PI/2,"right"===e?this.angle=t.PI/2:"left"===e?this.angle=-t.PI/2:"random"===e?this.angle="random":e instanceof u?(this.angle="span",this.span=e):e&&(this.angle=e),"changing"===String(n).toLowerCase()||"chang"===String(n).toLowerCase()||"auto"===String(n).toLowerCase()?this.force=Fe:n&&(this.force=n)}},{key:"reset",value:function(e,n,r,i){this.angle=t.PI/2,this.setAngleAndForce(e,n),r&&o(Ve.prototype.__proto__||Object.getPrototypeOf(Ve.prototype),"reset",this).call(this,r,i)}},{key:"initialize",value:function(e){"random"===this.angle?e.data.cangle=t.randomAToB(-t.PI,t.PI):"span"===this.angle&&(e.data.cangle=this.span.getValue()),e.data.cyclone=new F(0,0)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),t=void 0,n=e.v.getGradient(),"random"===this.angle||"span"===this.angle?n+=e.data.cangle:n+=this.angle,t=this.force===Fe?e.v.length()/100:this.force,e.data.cyclone.x=t*Math.cos(n),e.data.cyclone.y=t*Math.sin(n),e.data.cyclone=this.normalizeForce(e.data.cyclone),e.a.add(e.data.cyclone)}}]),Ve);function Ve(e,t,n,i){return r(this,Ve),(i=s(this,(Ve.__proto__||Object.getPrototypeOf(Ve)).call(this,n,i))).setAngleAndForce(e,t),i.name="Cyclone",i}var je=(l(He,ke),i(He,[{key:"reset",value:function(e,t,n,r,i){o(He.prototype.__proto__||Object.getPrototypeOf(He.prototype),"reset",this).call(this,e,t,n,r,i),this.force*=-1}}]),He);function He(e,t,n,i,a){return r(this,He),(a=s(this,(He.__proto__||Object.getPrototypeOf(He)).call(this,e,t,n,i,a))).force*=-1,a.name="Repulsion",a}var We=(l($e,me),i($e,[{key:"reset",value:function(e,t,n,r){this.distanceVec=new F,this.centerPoint=x.initValue(e,new F),this.force=x.initValue(this.normalizeValue(t),100),n&&o($e.prototype.__proto__||Object.getPrototypeOf($e.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(){}},{key:"applyBehaviour",value:function(e,t){this.distanceVec.set(this.centerPoint.x-e.p.x,this.centerPoint.y-e.p.y);var n,r=this.distanceVec.lengthSq();0!==r&&(n=this.distanceVec.length(),n=this.force*t/(r*n),e.v.x+=n*this.distanceVec.x,e.v.y+=n*this.distanceVec.y)}}]),$e);function $e(e,t,n,i){return r(this,$e),(i=s(this,($e.__proto__||Object.getPrototypeOf($e)).call(this,n,i))).distanceVec=new F,i.centerPoint=x.initValue(e,new F),i.force=x.initValue(i.normalizeValue(t),100),i.name="GravityWell",i}var qe={initialize:function(e,t,n){var r=n.length,i=void 0;for(i=0;i<r;i++)n[i]instanceof J?n[i].init(e,t):this.init(e,t,n[i]);this.bindEmitter(e,t)},init:function(e,t,n){x.setProp(t,n),x.setVectorVal(t,n)},bindEmitter:function(e,n){e.bindEmitter&&(n.p.add(e.p),n.v.add(e.v),n.a.add(e.a),n.v.rotate(t.degreeTransform(e.rotation)))}},Qe=(l(Ze,V),i(Ze,[{key:"emit",value:function(e,t){this.stoped=!1,this.emitTime=0,this.totalTime=x.initValue(e,1/0),!0===t||"life"===t||"destroy"===t?this.life="once"===e?1:this.totalTime:isNaN(t)||(this.life=t),this.rate.init()}},{key:"stop",value:function(){this.totalTime=-1,this.emitTime=0,this.stoped=!0}},{key:"preEmit",value:function(e){var t=this.stoped,n=this.emitTime,r=this.totalTime;for(this.stoped=!1,this.emitTime=0,this.totalTime=e,this.rate.init();.0167<e;)e-=.0167,this.update(.0167);this.stoped=t,this.emitTime=n+Math.max(e,0),this.totalTime=r}},{key:"removeAllParticles",value:function(){for(var e=this.particles.length;e--;)this.particles[e].dead=!0}},{key:"addSelfInitialize",value:function(e){e.init?e.init(this):this.initAll()}},{key:"addInitialize",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.length;r--;)this.initializes.push(t[r])}},{key:"removeInitialize",value:function(e){-1<(e=this.initializes.indexOf(e))&&this.initializes.splice(e,1)}},{key:"removeAllInitializers",value:function(){x.emptyArray(this.initializes)}},{key:"addBehaviour",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=arguments.length;r--;){var i=t[r];this.behaviours.push(i),i.parents&&i.parents.push(this)}}},{key:"removeBehaviour",value:function(e){var t=this.behaviours.indexOf(e);return this.behaviours.splice(t,1),e.parents&&(t=e.parents.indexOf(e),e.parents.splice(t,1)),t}},{key:"removeAllBehaviours",value:function(){x.emptyArray(this.behaviours)}},{key:"update",value:function(e){this.age+=e,(this.age>=this.life||this.dead)&&this.destroy(),this.emitting(e),this.integrate(e)}},{key:"integrate",value:function(e){if(this.parent){var t=1-this.damping;this.parent.integrator.calculate(this,e,t);var n=void 0,r=void 0;for(n=this.particles.length-1;0<=n;n--)(r=this.particles[n]).update(e,n),this.parent.integrator.calculate(r,e,t),this.dispatch("PARTICLE_UPDATE",r),r.dead&&(this.dispatch("PARTICLE_DEAD",r),this.parent.pool.expire(r),this.particles.splice(n,1))}}},{key:"dispatch",value:function(e,t){this.parent&&this.parent.dispatchEvent(e,t),this.bindEvent&&this.dispatchEvent(e,t)}},{key:"emitting",value:function(e){if("once"===this.totalTime){var t=void 0,n=this.rate.getValue(99999);for(0<n&&(this.emitSpeed=n),t=0;t<n;t++)this.createParticle();this.totalTime="none"}else if(this.emitTime+=e,this.emitTime<this.totalTime){var r=this.rate.getValue(e),i=void 0;for(0<r&&(this.emitSpeed=r),i=0;i<r;i++)this.createParticle()}}},{key:"createParticle",value:function(e,t){var n=this.parent.pool.get(V);return this.setupParticle(n,e,t),this.dispatch("PARTICLE_CREATED",n),n}},{key:"setupParticle",value:function(e,t,n){var r=this.initializes,i=this.behaviours;t&&(r=x.toArray(t)),n&&(i=x.toArray(n)),e.reset(),qe.initialize(this,e,r),e.addBehaviours(i),(e.parent=this).particles.push(e)}},{key:"remove",value:function(){this.stop(),x.destroyAll(this.particles)}},{key:"destroy",value:function(){this.dead=!0,this.remove(),this.removeAllInitializers(),this.removeAllBehaviours(),this.parent&&this.parent.removeEmitter(this)}}]),Ze);function Ze(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r(this,Ze),(e=s(this,(Ze.__proto__||Object.getPrototypeOf(Ze)).call(this,e))).particles=[],e.behaviours=[],e.initializes=[],e.emitTime=0,e.emitSpeed=0,e.totalTime=-1,e.damping=.006,e.bindEmitter=!0,e.rate=new G(1,.1),e.name="Emitter",e.id=E.id(e.name),e}z.bind(Qe);var Ye=(l(Xe,Qe),i(Xe,[{key:"addSelfBehaviour",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0,i=t.length;for(r=0;r<i;r++){var a=t[r];this.selfBehaviours.push(a),a.initialize(this)}}},{key:"removeSelfBehaviour",value:function(e){-1<(e=this.selfBehaviours.indexOf(e))&&this.selfBehaviours.splice(e,1)}},{key:"update",value:function(e){if(o(Xe.prototype.__proto__||Object.getPrototypeOf(Xe.prototype),"update",this).call(this,e),!this.sleep){var t=this.selfBehaviours.length,n=void 0;for(n=0;n<t;n++)this.selfBehaviours[n].applyBehaviour(this,e,n)}}}]),Xe);function Xe(e){return r(this,Xe),(e=s(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,e))).selfBehaviours=[],e}var Ge=(l(Ke,Qe),i(Ke,[{key:"initEventHandler",value:function(){var e=this;this.mousemoveHandler=function(t){return e.mousemove.call(e,t)},this.mousedownHandler=function(t){return e.mousedown.call(e,t)},this.mouseupHandler=function(t){return e.mouseup.call(e,t)},this.mouseTarget.addEventListener("mousemove",this.mousemoveHandler,!1)}},{key:"emit",value:function(){this._allowEmitting=!0}},{key:"stop",value:function(){this._allowEmitting=!1}},{key:"mousemove",value:function(e){e.layerX||0===e.layerX?(this.p.x+=(e.layerX-this.p.x)*this.ease,this.p.y+=(e.layerY-this.p.y)*this.ease):!e.offsetX&&0!==e.offsetX||(this.p.x+=(e.offsetX-this.p.x)*this.ease,this.p.y+=(e.offsetY-this.p.y)*this.ease),this._allowEmitting&&o(Ke.prototype.__proto__||Object.getPrototypeOf(Ke.prototype),"emit",this).call(this,"once")}},{key:"destroy",value:function(){o(Ke.prototype.__proto__||Object.getPrototypeOf(Ke.prototype),"destroy",this).call(this),this.mouseTarget.removeEventListener("mousemove",this.mousemoveHandler,!1)}}]),Ke);function Ke(e,t,n){return r(this,Ke),(n=s(this,(Ke.__proto__||Object.getPrototypeOf(Ke)).call(this,n))).mouseTarget=x.initValue(e,window),n.ease=x.initValue(t,.7),n._allowEmitting=!1,n.initEventHandler(),n}var Je=(i(et,[{key:"setStroke",value:function(e,t){e=0<arguments.length&&void 0!==e?e:"#000000",t=1<arguments.length&&void 0!==t?t:1,this.stroke={color:e,thinkness:t}}},{key:"initHandler",value:function(){var e=this;this._protonUpdateHandler=function(){e.onProtonUpdate.call(e)},this._protonUpdateAfterHandler=function(){e.onProtonUpdateAfter.call(e)},this._emitterAddedHandler=function(t){e.onEmitterAdded.call(e,t)},this._emitterRemovedHandler=function(t){e.onEmitterRemoved.call(e,t)},this._particleCreatedHandler=function(t){e.onParticleCreated.call(e,t)},this._particleUpdateHandler=function(t){e.onParticleUpdate.call(e,t)},this._particleDeadHandler=function(t){e.onParticleDead.call(e,t)}}},{key:"init",value:function(e){(this.parent=e).addEventListener("PROTON_UPDATE",this._protonUpdateHandler),e.addEventListener("PROTON_UPDATE_AFTER",this._protonUpdateAfterHandler),e.addEventListener("EMITTER_ADDED",this._emitterAddedHandler),e.addEventListener("EMITTER_REMOVED",this._emitterRemovedHandler),e.addEventListener("PARTICLE_CREATED",this._particleCreatedHandler),e.addEventListener("PARTICLE_UPDATE",this._particleUpdateHandler),e.addEventListener("PARTICLE_DEAD",this._particleDeadHandler)}},{key:"resize",value:function(){}},{key:"destroy",value:function(){this.remove()}},{key:"remove",value:function(){this.parent.removeEventListener("PROTON_UPDATE",this._protonUpdateHandler),this.parent.removeEventListener("PROTON_UPDATE_AFTER",this._protonUpdateAfterHandler),this.parent.removeEventListener("EMITTER_ADDED",this._emitterAddedHandler),this.parent.removeEventListener("EMITTER_REMOVED",this._emitterRemovedHandler),this.parent.removeEventListener("PARTICLE_CREATED",this._particleCreatedHandler),this.parent.removeEventListener("PARTICLE_UPDATE",this._particleUpdateHandler),this.parent.removeEventListener("PARTICLE_DEAD",this._particleDeadHandler),this.parent=null}},{key:"onProtonUpdate",value:function(){}},{key:"onProtonUpdateAfter",value:function(){}},{key:"onEmitterAdded",value:function(){}},{key:"onEmitterRemoved",value:function(){}},{key:"onParticleCreated",value:function(){}},{key:"onParticleUpdate",value:function(){}},{key:"onParticleDead",value:function(){}}]),et);function et(e,t){r(this,et),this.pool=new P,this.element=e,this.stroke=t,this.circleConf={isCircle:!0},this.initHandler(),this.name="BaseRenderer"}var tt=(l(nt,Je),i(nt,[{key:"resize",value:function(e,t){this.element.width=e,this.element.height=t}},{key:"onProtonUpdate",value:function(){this.context.clearRect(0,0,this.element.width,this.element.height)}},{key:"onParticleCreated",value:function(e){e.body?k(e.body,this.addImg2Body,e):e.color=e.color||"#ff0000"}},{key:"onParticleUpdate",value:function(e){e.body?e.body instanceof Image&&this.drawImage(e):this.drawCircle(e)}},{key:"onParticleDead",value:function(e){e.body=null}},{key:"addImg2Body",value:function(e,t){t.body=e}},{key:"drawImage",value:function(e){var n,r=e.body.width*e.scale|0,i=e.body.height*e.scale|0,a=e.p.x-r/2,o=e.p.y-i/2;e.color?(e.data.buffer||(e.data.buffer=this.createBuffer(e.body)),(n=e.data.buffer.getContext("2d")).clearRect(0,0,e.data.buffer.width,e.data.buffer.height),n.globalAlpha=e.alpha,n.drawImage(e.body,0,0),n.globalCompositeOperation="source-atop",n.fillStyle=H.rgbToHex(e.rgb),n.fillRect(0,0,e.data.buffer.width,e.data.buffer.height),n.globalCompositeOperation="source-over",n.globalAlpha=1,this.context.drawImage(e.data.buffer,0,0,e.data.buffer.width,e.data.buffer.height,a,o,r,i)):(this.context.save(),this.context.globalAlpha=e.alpha,this.context.translate(e.p.x,e.p.y),this.context.rotate(t.degreeTransform(e.rotation)),this.context.translate(-e.p.x,-e.p.y),this.context.drawImage(e.body,0,0,e.body.width,e.body.height,a,o,r,i),this.context.globalAlpha=1,this.context.restore())}},{key:"drawCircle",value:function(e){e.rgb?this.context.fillStyle="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.alpha+")":this.context.fillStyle=e.color,this.context.beginPath(),this.context.arc(e.p.x,e.p.y,e.radius,0,2*Math.PI,!0),this.stroke&&(this.context.strokeStyle=this.stroke.color,this.context.lineWidth=this.stroke.thinkness,this.context.stroke()),this.context.closePath(),this.context.fill()}},{key:"createBuffer",value:function(e){if(e instanceof Image){var t=e.width+"_"+e.height,n=this.bufferCache[t];return n||((n=document.createElement("canvas")).width=e.width,n.height=e.height,this.bufferCache[t]=n),n}}}]),nt);function nt(e){return r(this,nt),(e=s(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this,e))).stroke=null,e.context=e.element.getContext("2d"),e.bufferCache={},e.name="CanvasRenderer",e}var rt=(l(it,Je),i(it,[{key:"onParticleCreated",value:function(e){e.body?k(e.body,this.addImg2Body,e):(e.body=this.pool.get(this.circleConf,e),this.element.appendChild(e.body))}},{key:"onParticleUpdate",value:function(e){this.bodyReady(e)&&(this.transform3d?y.transform3d(e.body,e.p.x,e.p.y,e.scale,e.rotation):y.transform(e.body,e.p.x,e.p.y,e.scale,e.rotation),e.body.style.opacity=e.alpha,e.body.isCircle&&(e.body.style.backgroundColor=e.color||"#ff0000"))}},{key:"onParticleDead",value:function(e){this.bodyReady(e)&&(this.element.removeChild(e.body),this.pool.expire(e.body),e.body=null)}},{key:"bodyReady",value:function(e){return"object"===n(e.body)&&e.body&&!e.body.isInner}},{key:"addImg2Body",value:function(e,t){t.dead||(t.body=this.pool.get(e,t),y.resize(t.body,e.width,e.height),this.element.appendChild(t.body))}},{key:"createBody",value:function(e,t){return e.isCircle?this.createCircle(t):this.createSprite(e,t)}},{key:"createCircle",value:function(e){var t=y.createDiv(e.id+"_dom",2*e.radius,2*e.radius);return t.style.borderRadius=e.radius+"px",this.stroke&&(t.style.borderColor=this.stroke.color,t.style.borderWidth=this.stroke.thinkness+"px"),t.isCircle=!0,t}},{key:"createSprite",value:function(e,t){var n="string"==typeof e?e:e.src;return(e=y.createDiv(t.id+"_dom",e.width,e.height)).style.backgroundImage="url("+n+")",e}}]),it);function it(e){r(this,it);var t=s(this,(it.__proto__||Object.getPrototypeOf(it)).call(this,e));return t.stroke=null,t.pool.create=function(e,n){return t.createBody(e,n)},t.addImg2Body=t.addImg2Body.bind(t),t.transform3d=!1,t.name="DomRenderer",t}var at=(l(ot,Je),i(ot,[{key:"onParticleCreated",value:function(e){e.body?this.createSprite(e):this.createCircle(e),this.element.addChild(e.body)}},{key:"onParticleUpdate",value:function(e){e.body&&(e.body.x=e.p.x,e.body.y=e.p.y,e.body.alpha=e.alpha,e.body.scaleX=e.body.scaleY=e.scale,e.body.rotation=e.rotation)}},{key:"onParticleDead",value:function(e){e.body&&(e.body.parent&&e.body.parent.removeChild(e.body),this.pool.expire(e.body),e.body=null),e.graphics&&this.pool.expire(e.graphics)}},{key:"createSprite",value:function(e){e.body=this.pool.get(e.body),e.body.parent||e.body.image&&(e.body.regX=e.body.image.width/2,e.body.regY=e.body.image.height/2)}},{key:"createCircle",value:function(e){var t=this.pool.get(createjs.Graphics);this.stroke&&(this.stroke instanceof String?t.beginStroke(this.stroke):t.beginStroke("#000000")),t.beginFill(e.color||"#ff0000").drawCircle(0,0,e.radius);var n=this.pool.get(createjs.Shape,[t]);e.body=n,e.graphics=t}}]),ot);function ot(e,t){return r(this,ot),(e=s(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this,e))).stroke=t,e.name="EaselRenderer",e}var lt=(l(st,Je),i(st,[{key:"resize",value:function(e,t){this.element.width=e,this.element.height=t}},{key:"createImageData",value:function(e){this.rectangle=e||new Y(0,0,this.element.width,this.element.height),this.imageData=this.context.createImageData(this.rectangle.width,this.rectangle.height),this.context.putImageData(this.imageData,this.rectangle.x,this.rectangle.y)}},{key:"onProtonUpdate",value:function(){this.context.clearRect(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height),this.imageData=this.context.getImageData(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height)}},{key:"onProtonUpdateAfter",value:function(){this.context.putImageData(this.imageData,this.rectangle.x,this.rectangle.y)}},{key:"onParticleCreated",value:function(){}},{key:"onParticleUpdate",value:function(e){this.imageData&&this.setPixel(this.imageData,Math.floor(e.p.x-this.rectangle.x),Math.floor(e.p.y-this.rectangle.y),e)}},{key:"setPixel",value:function(e,t,n,r){var i=r.rgb;t<0||t>this.element.width||n<0||n>this.elementwidth||(t=4*((n>>0)*e.width+(t>>0)),e.data[t]=i.r,e.data[1+t]=i.g,e.data[2+t]=i.b,e.data[3+t]=255*r.alpha)}},{key:"onParticleDead",value:function(){}}]),st);function st(e,t){return r(this,st),(e=s(this,(st.__proto__||Object.getPrototypeOf(st)).call(this,e))).context=e.element.getContext("2d"),e.imageData=null,e.rectangle=null,e.rectangle=t,e.createImageData(t),e.name="PixelRenderer",e}var ut=void 0,ct=(l(dt,Je),i(dt,[{key:"setPIXI",value:function(e){try{ut=e||{Sprite:{}},this.createFromImage=ut.Sprite.from||ut.Sprite.fromImage}catch(e){}}},{key:"onProtonUpdate",value:function(){}},{key:"onParticleCreated",value:function(e){e.body?e.body=this.pool.get(e.body,e):e.body=this.pool.get(this.circleConf,e),this.blendMode&&(e.body.blendMode=this.blendMode),this.element.addChild(e.body)}},{key:"onParticleUpdate",value:function(e){this.transform(e,e.body),!0!==this.setColor&&!0!==this.color||(e.body.tint=H.getHex16FromParticle(e))}},{key:"onParticleDead",value:function(e){this.element.removeChild(e.body),this.pool.expire(e.body),e.body=null}},{key:"destroy",value:function(e){o(dt.prototype.__proto__||Object.getPrototypeOf(dt.prototype),"destroy",this).call(this),this.pool.destroy();for(var t=e.length;t--;){var n=e[t];n.body&&this.element.removeChild(n.body)}}},{key:"transform",value:function(e,n){n.x=e.p.x,n.y=e.p.y,n.alpha=e.alpha,n.scale.x=e.scale,n.scale.y=e.scale,n.rotation=e.rotation*t.PI_180}},{key:"createBody",value:function(e,t){return e.isCircle?this.createCircle(t):this.createSprite(e)}},{key:"createSprite",value:function(e){return(e=e.isInner?this.createFromImage(e.src):new ut.Sprite(e)).anchor.x=.5,e.anchor.y=.5,e}},{key:"createCircle",value:function(e){var t,n=new ut.Graphics;return this.stroke&&(t=this.stroke instanceof String?this.stroke:0,n.beginStroke(t)),n.beginFill(e.color||36077),n.drawCircle(0,0,e.radius),n.endFill(),n}}]),dt);function dt(e,t){r(this,dt);var n=s(this,(dt.__proto__||Object.getPrototypeOf(dt)).call(this,e));return n.stroke=t,n.color=!1,n.setColor=!1,n.blendMode=null,n.pool.create=function(e,t){return n.createBody(e,t)},n.setPIXI(window.PIXI),n.name="PixiRenderer",n}var ht=(i(ft,[{key:"set",value:function(e,t){0===t?q.set(e,this.mats[0]):q.multiply(this.mats[t-1],e,this.mats[t]),this.size=Math.max(this.size,t+1)}},{key:"push",value:function(e){0===this.size?q.set(e,this.mats[0]):q.multiply(this.mats[this.size-1],e,this.mats[this.size]),this.size++}},{key:"pop",value:function(){0<this.size&&this.size--}},{key:"top",value:function(){return this.mats[this.size-1]}}]),ft);function ft(){r(this,ft),this.mats=[];for(var e=this.size=0;e<20;e++)this.mats.push(q.create([0,0,0,0,0,0,0,0,0]))}function pt(e){return r(this,pt),(e=s(this,(pt.__proto__||Object.getPrototypeOf(pt)).call(this,e))).gl=e.element.getContext("experimental-webgl",{antialias:!0,stencil:!1,depth:!1}),e.gl||alert("Sorry your browser do not suppest WebGL!"),e.initVar(),e.setMaxRadius(),e.initShaders(),e.initBuffers(),e.gl.blendEquation(e.gl.FUNC_ADD),e.gl.blendFunc(e.gl.SRC_ALPHA,e.gl.ONE_MINUS_SRC_ALPHA),e.gl.enable(e.gl.BLEND),e.addImg2Body=e.addImg2Body.bind(e),e.name="WebGLRenderer",e}function vt(e){return r(this,vt),(e=s(this,(vt.__proto__||Object.getPrototypeOf(vt)).call(this,e))).name="CustomRenderer",e}l(pt,Je),i(pt,[{key:"init",value:function(e){o(pt.prototype.__proto__||Object.getPrototypeOf(pt.prototype),"init",this).call(this,e),this.resize(this.element.width,this.element.height)}},{key:"resize",value:function(e,t){this.umat[4]=-2,this.umat[7]=1,this.smat[0]=1/e,this.smat[4]=1/t,this.mstack.set(this.umat,0),this.mstack.set(this.smat,1),this.gl.viewport(0,0,e,t),this.element.width=e,this.element.height=t}},{key:"setMaxRadius",value:function(e){this.circleCanvasURL=this.createCircle(e)}},{key:"getVertexShader",value:function(){return["uniform vec2 viewport;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 tMat;","varying vec2 vTextureCoord;","varying float alpha;","void main() {","vec3 v = tMat * vec3(aVertexPosition, 1.0);","gl_Position = vec4(v.x, v.y, 0, 1);","vTextureCoord = aTextureCoord;","alpha = tMat[0][2];","}"].join("\n")}},{key:"getFragmentShader",value:function(){return["precision mediump float;","varying vec2 vTextureCoord;","varying float alpha;","uniform sampler2D uSampler;","uniform vec4 color;","uniform bool useTexture;","uniform vec3 uColor;","void main() {","vec4 textureColor = texture2D(uSampler, vTextureCoord);","gl_FragColor = textureColor * vec4(uColor, 1.0);","gl_FragColor.w *= alpha;","}"].join("\n")}},{key:"initVar",value:function(){this.mstack=new ht,this.umat=q.create([2,0,1,0,-2,0,-1,1,1]),this.smat=q.create([.01,0,1,0,.01,0,0,0,1]),this.texturebuffers={}}},{key:"blendEquation",value:function(e){this.gl.blendEquation(this.gl[e])}},{key:"blendFunc",value:function(e,t){this.gl.blendFunc(this.gl[e],this.gl[t])}},{key:"getShader",value:function(e,t,n){return n=n?e.createShader(e.FRAGMENT_SHADER):e.createShader(e.VERTEX_SHADER),e.shaderSource(n,t),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)?n:(alert(e.getShaderInfoLog(n)),null)}},{key:"initShaders",value:function(){var e=this.getShader(this.gl,this.getFragmentShader(),!0),t=this.getShader(this.gl,this.getVertexShader(),!1);this.sprogram=this.gl.createProgram(),this.gl.attachShader(this.sprogram,t),this.gl.attachShader(this.sprogram,e),this.gl.linkProgram(this.sprogram),this.gl.getProgramParameter(this.sprogram,this.gl.LINK_STATUS)||alert("Could not initialise shaders"),this.gl.useProgram(this.sprogram),this.sprogram.vpa=this.gl.getAttribLocation(this.sprogram,"aVertexPosition"),this.sprogram.tca=this.gl.getAttribLocation(this.sprogram,"aTextureCoord"),this.gl.enableVertexAttribArray(this.sprogram.tca),this.gl.enableVertexAttribArray(this.sprogram.vpa),this.sprogram.tMatUniform=this.gl.getUniformLocation(this.sprogram,"tMat"),this.sprogram.samplerUniform=this.gl.getUniformLocation(this.sprogram,"uSampler"),this.sprogram.useTex=this.gl.getUniformLocation(this.sprogram,"useTexture"),this.sprogram.color=this.gl.getUniformLocation(this.sprogram,"uColor"),this.gl.uniform1i(this.sprogram.useTex,1)}},{key:"initBuffers",value:function(){var e;this.unitIBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.unitIBuffer),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,3,1,0,2,3]),this.gl.STATIC_DRAW);var t=void 0,n=[];for(t=0;t<100;t++)n.push(t);for(e=new Uint16Array(n),this.unitI33=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.unitI33),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,e,this.gl.STATIC_DRAW),n=[],t=0;t<100;t++)n.push(t,t+1,t+2);e=new Uint16Array(n),this.stripBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.stripBuffer),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,e,this.gl.STATIC_DRAW)}},{key:"createCircle",value:function(e){this.circleCanvasRadius=d(x.initValue(e,32));var t=y.createCanvas("circle_canvas",2*this.circleCanvasRadius,2*this.circleCanvasRadius);return(e=t.getContext("2d")).beginPath(),e.arc(this.circleCanvasRadius,this.circleCanvasRadius,this.circleCanvasRadius,0,2*Math.PI,!0),e.closePath(),e.fillStyle="#FFF",e.fill(),t.toDataURL()}},{key:"drawImg2Canvas",value:function(e){var t=e.body.width,n=e.body.height,r=d(e.body.width),i=d(e.body.height),a=e.body.width/r,o=e.body.height/i;this.texturebuffers[e.data.src]||(this.texturebuffers[e.data.src]=[this.gl.createTexture(),this.gl.createBuffer(),this.gl.createBuffer()]),e.data.texture=this.texturebuffers[e.data.src][0],e.data.vcBuffer=this.texturebuffers[e.data.src][1],e.data.tcBuffer=this.texturebuffers[e.data.src][2],this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.tcBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,a,0,0,o,o,o]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.vcBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,t,0,0,n,t,n]),this.gl.STATIC_DRAW),i=e.data.canvas.getContext("2d").getImageData(0,0,r,i),this.gl.bindTexture(this.gl.TEXTURE_2D,e.data.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,i),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR_MIPMAP_NEAREST),this.gl.generateMipmap(this.gl.TEXTURE_2D),e.data.textureLoaded=!0,e.data.textureWidth=t,e.data.textureHeight=n}},{key:"onProtonUpdate",value:function(){}},{key:"onParticleCreated",value:function(e){e.data.textureLoaded=!1,e.data.tmat=q.create(),e.data.tmat[8]=1,e.data.imat=q.create(),e.data.imat[8]=1,e.body?k(e.body,this.addImg2Body,e):(k(this.circleCanvasURL,this.addImg2Body,e),e.data.oldScale=e.radius/this.circleCanvasRadius)}},{key:"addImg2Body",value:function(e,t){t.dead||(t.body=e,t.data.src=e.src,t.data.canvas=_(e),t.data.oldScale=1,this.drawImg2Canvas(t))}},{key:"onParticleUpdate",value:function(e){e.data.textureLoaded&&(this.updateMatrix(e),this.gl.uniform3f(this.sprogram.color,e.rgb.r/255,e.rgb.g/255,e.rgb.b/255),this.gl.uniformMatrix3fv(this.sprogram.tMatUniform,!1,this.mstack.top()),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.vcBuffer),this.gl.vertexAttribPointer(this.sprogram.vpa,2,this.gl.FLOAT,!1,0,0),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.tcBuffer),this.gl.vertexAttribPointer(this.sprogram.tca,2,this.gl.FLOAT,!1,0,0),this.gl.bindTexture(this.gl.TEXTURE_2D,e.data.texture),this.gl.uniform1i(this.sprogram.samplerUniform,0),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.unitIBuffer),this.gl.drawElements(this.gl.TRIANGLES,6,this.gl.UNSIGNED_SHORT,0),this.mstack.pop())}},{key:"onParticleDead",value:function(){}},{key:"updateMatrix",value:function(e){var n=h(-e.data.textureWidth/2,-e.data.textureHeight/2),r=h(e.p.x,e.p.y),i=e.rotation*t.PI_180,a=f(i);i=e.scale*e.data.oldScale,i=p(i,i),i=v(n,i),i=v(i,a),i=v(i,r),q.inverse(i,e.data.imat),i[2]=e.alpha,this.mstack.push(i)}}]),z=pt,l(vt,Je),Je=vt;var yt=(l(mt,re),i(mt,[{key:"getPosition",value:function(){return this.random=Math.random(),this.vector.x=this.x1+this.random*this.length*Math.cos(this.gradient),this.vector.y=this.y1+this.random*this.length*Math.sin(this.gradient),this.vector}},{key:"getDirection",value:function(e,t){var n=this.dy,r=-this.dx;return 0<(n*e+r*t+this.dot)*(0==r?1:r)}},{key:"getDistance",value:function(e,t){return(this.dy*e+-this.dx*t+this.dot)/Math.sqrt(this.xxyy)}},{key:"getSymmetric",value:function(e){var t=e.getGradient(),n=2*(this.getGradient()-t),r=e.x;return t=e.y,e.x=r*Math.cos(n)-t*Math.sin(n),e.y=r*Math.sin(n)+t*Math.cos(n),e}},{key:"getGradient",value:function(){return Math.atan2(this.dy,this.dx)}},{key:"rangeOut",value:function(e){if(Math.abs(this.getGradient())<=t.PI/4){if(e.p.x<=this.maxx&&e.p.x>=this.minx)return!0}else if(e.p.y<=this.maxy&&e.p.y>=this.miny)return!0;return!1}},{key:"getLength",value:function(){return Math.sqrt(this.dx*this.dx+this.dy*this.dy)}},{key:"crossing",value:function(e){"dead"===this.crossType?">"===this.direction||"R"===this.direction||"right"===this.direction||"down"===this.direction?this.rangeOut(e)&&this.getDirection(e.p.x,e.p.y)&&(e.dead=!0):this.rangeOut(e)&&(this.getDirection(e.p.x,e.p.y)||(e.dead=!0)):"bound"===this.crossType?this.rangeOut(e)&&this.getDistance(e.p.x,e.p.y)<=e.radius&&(0===this.dx?e.v.x*=-1:0===this.dy?e.v.y*=-1:this.getSymmetric(e.v)):"cross"===this.crossType&&this.alert&&(console.error("Sorry, LineZone does not support cross method!"),this.alert=!1)}}]),mt);function mt(e,t,n,i,a){r(this,mt);var o=s(this,(mt.__proto__||Object.getPrototypeOf(mt)).call(this));return 0<=n-e?(o.x1=e,o.y1=t,o.x2=n,o.y2=i):(o.x1=n,o.y1=i,o.x2=e,o.y2=t),o.dx=o.x2-o.x1,o.dy=o.y2-o.y1,o.minx=Math.min(o.x1,o.x2),o.miny=Math.min(o.y1,o.y2),o.maxx=Math.max(o.x1,o.x2),o.maxy=Math.max(o.y1,o.y2),o.dot=o.x2*o.y1-o.x1*o.y2,o.xxyy=o.dx*o.dx+o.dy*o.dy,o.gradient=o.getGradient(),o.length=o.getLength(),o.direction=x.initValue(a,">"),o}var gt=(l(bt,re),i(bt,[{key:"getPosition",value:function(){return this.angle=t.PIx2*Math.random(),this.randomRadius=Math.random()*this.radius,this.vector.x=this.x+this.randomRadius*Math.cos(this.angle),this.vector.y=this.y+this.randomRadius*Math.sin(this.angle),this.vector}},{key:"setCenter",value:function(e,t){this.center.x=e,this.center.y=t}},{key:"crossing",value:function(e){var t=e.p.distanceTo(this.center);"dead"===this.crossType?t-e.radius>this.radius&&(e.dead=!0):"bound"===this.crossType?t+e.radius>=this.radius&&this.getSymmetric(e):"cross"===this.crossType&&this.alert&&(console.error("Sorry, CircleZone does not support cross method!"),this.alert=!1)}},{key:"getSymmetric",value:function(e){var t=e.v.getGradient(),n=2*(this.getGradient(e)-t),r=e.v.x;t=e.v.y,e.v.x=r*Math.cos(n)-t*Math.sin(n),e.v.y=r*Math.sin(n)+t*Math.cos(n)}},{key:"getGradient",value:function(e){return-t.PI_2+Math.atan2(e.p.y-this.center.y,e.p.x-this.center.x)}}]),bt);function bt(e,t,n){r(this,bt);var i=s(this,(bt.__proto__||Object.getPrototypeOf(bt)).call(this));return i.x=e,i.y=t,i.radius=n,i.angle=0,i.center={x:e,y:t},i}var wt=(l(kt,re),i(kt,[{key:"getPosition",value:function(){return this.vector.x=this.x+Math.random()*this.width,this.vector.y=this.y+Math.random()*this.height,this.vector}},{key:"crossing",value:function(e){"dead"===this.crossType?((e.p.x+e.radius<this.x||e.p.x-e.radius>this.x+this.width)&&(e.dead=!0),(e.p.y+e.radius<this.y||e.p.y-e.radius>this.y+this.height)&&(e.dead=!0)):"bound"===this.crossType?(e.p.x-e.radius<this.x?(e.p.x=this.x+e.radius,e.v.x*=-1):e.p.x+e.radius>this.x+this.width&&(e.p.x=this.x+this.width-e.radius,e.v.x*=-1),e.p.y-e.radius<this.y?(e.p.y=this.y+e.radius,e.v.y*=-1):e.p.y+e.radius>this.y+this.height&&(e.p.y=this.y+this.height-e.radius,e.v.y*=-1)):"cross"===this.crossType&&(e.p.x+e.radius<this.x&&e.v.x<=0?e.p.x=this.x+this.width+e.radius:e.p.x-e.radius>this.x+this.width&&0<=e.v.x&&(e.p.x=this.x-e.radius),e.p.y+e.radius<this.y&&e.v.y<=0?e.p.y=this.y+this.height+e.radius:e.p.y-e.radius>this.y+this.height&&0<=e.v.y&&(e.p.y=this.y-e.radius))}}]),kt);function kt(e,t,n,i){r(this,kt);var a=s(this,(kt.__proto__||Object.getPrototypeOf(kt)).call(this));return a.x=e,a.y=t,a.width=n,a.height=i,a}function _t(e,t,n,i){r(this,_t);var a=s(this,(_t.__proto__||Object.getPrototypeOf(_t)).call(this));return a.reset(e,t,n,i),a}return l(_t,re),i(_t,[{key:"reset",value:function(e,t,n,r){this.imageData=e,this.x=x.initValue(t,0),this.y=x.initValue(n,0),this.d=x.initValue(r,2),this.vectors=[],this.setVectors()}},{key:"setVectors",value:function(){var e=void 0,t=void 0,n=this.imageData.width,r=this.imageData.height;for(e=0;e<n;e+=this.d)for(t=0;t<r;t+=this.d){var i=4*((t>>0)*n+(e>>0));0<this.imageData.data[3+i]&&this.vectors.push({x:e+this.x,y:t+this.y})}return this.vector}},{key:"getBound",value:function(e,t){return e=4*((t>>0)*this.imageData.width+(e>>0)),0<this.imageData.data[3+e]}},{key:"getPosition",value:function(){var e=x.getRandFromArray(this.vectors);return this.vector.copy(e)}},{key:"getColor",value:function(e,t){return e-=this.x,e=4*(((t-=this.y)>>0)*this.imageData.width+(e>>0)),{r:this.imageData.data[e],g:this.imageData.data[1+e],b:this.imageData.data[2+e],a:this.imageData.data[3+e]}}},{key:"crossing",value:function(e){"dead"===this.crossType?this.getBound(e.p.x-this.x,e.p.y-this.y)?e.dead=!0:e.dead=!1:"bound"===this.crossType&&(this.getBound(e.p.x-this.x,e.p.y-this.y)||e.v.negate())}}]),l=_t,i={addEventListener:function(e,t){e.addEventListener("PROTON_UPDATE_AFTER",(function(){return t()}))},getStyle:function(e){return"rgba("+(e=H.hexToRgb(0<arguments.length&&void 0!==e?e:"#ff0000")).r+", "+e.g+", "+e.b+", 0.5)"},drawZone:function(e,t,n,r){var i=t.getContext("2d"),a=this.getStyle();this.addEventListener(e,(function(){r&&i.clearRect(0,0,t.width,t.height),n instanceof ae?(i.beginPath(),i.fillStyle=a,i.arc(n.x,n.y,10,0,2*Math.PI,!0),i.fill(),i.closePath()):n instanceof yt?(i.beginPath(),i.strokeStyle=a,i.moveTo(n.x1,n.y1),i.lineTo(n.x2,n.y2),i.stroke(),i.closePath()):n instanceof wt?(i.beginPath(),i.strokeStyle=a,i.drawRect(n.x,n.y,n.width,n.height),i.stroke(),i.closePath()):n instanceof gt&&(i.beginPath(),i.strokeStyle=a,i.arc(n.x,n.y,n.radius,0,2*Math.PI,!0),i.stroke(),i.closePath())}))},drawEmitter:function(e,t,n,r){var i=t.getContext("2d"),a=this.getStyle();this.addEventListener(e,(function(){r&&i.clearRect(0,0,t.width,t.height),i.beginPath(),i.fillStyle=a,i.arc(n.p.x,n.p.y,10,0,2*Math.PI,!0),i.fill(),i.closePath()}))}},A.Particle=V,A.Pool=P,A.Util=x,A.ColorUtil=H,A.MathUtil=t,A.Vector2D=A.Vector=F,A.Polar2D=A.Polar=W,A.ArraySpan=Q,A.Rectangle=Y,A.Rate=G,A.ease=N,A.Span=u,A.Mat3=q,A.getSpan=function(e,t,n){return new u(e,t,n)},A.createArraySpan=Q.createArraySpan,A.Initialize=A.Init=J,A.Life=A.L=te,A.Position=A.P=le,A.Velocity=A.V=ue,A.Mass=A.M=de,A.Radius=A.R=fe,A.Body=A.B=ve,A.Behaviour=me,A.Force=A.F=be,A.Attraction=A.A=ke,A.RandomDrift=A.RD=xe,A.Gravity=A.G=Ee,A.Collision=Ce,A.CrossZone=Te,A.Alpha=Oe,A.Scale=A.S=Me,A.Rotate=De,A.Color=Be,A.Repulsion=je,A.Cyclone=Ue,A.GravityWell=We,A.Emitter=Qe,A.BehaviourEmitter=Ye,A.FollowEmitter=Ge,A.Zone=re,A.LineZone=yt,A.CircleZone=gt,A.PointZone=ae,A.RectZone=wt,A.ImageZone=l,A.CanvasRenderer=tt,A.DomRenderer=rt,A.EaselRenderer=at,A.PixiRenderer=ct,A.PixelRenderer=lt,A.WebGLRenderer=A.WebGlRenderer=z,A.CustomRenderer=Je,A.Debug=i,x.assign(A,N),A}()},222:function(e){e.exports=function(){"use strict";return function(){for(var e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"]}(),{timer:0,state:"stop",animations:[],add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n={callback:e,fps:t,n:60/t,param:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i:0};return this.animations.push(n),this.animations.length>=1&&this.start(),this},getIndex:function(e){for(var t=0;t<this.animations.length;t++)if(this.animations[t].callback===e)return t;return-1},remove:function(e){if(!(this.getIndex(e)<0))return this.deleteMap(e),0===this.animations.length&&this.stop(),this},deleteMap:function(e){var t=this.getIndex(e),n=this.animations[t];for(var r in n)delete n[r];this.animations.splice(t,1)},start:function(){if("start"!==this.state)return this.state="start",this.tick(),this},stop:function(){if("stop"!==this.state)return this.state="stop",cancelAnimationFrame(this.timer),this},tick:function(){var e=this;this.timer=requestAnimationFrame((function(){e.tick()}));for(var t=0;t<this.animations.length;t++){var n=this.animations[t],r=n.callback,i=n.param;n.i++,n.i>=n.n&&(r(i),n.i=0)}}}}()},463:(e,t,n)=>{"use strict";var r=n(791),i=n(296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,g);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,g);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,g);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=A&&e[A]||e["@@iterator"])?e:null}var L,B=Object.assign;function N(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function U(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(1!==o||1!==l)do{if(o--,0>--l||i[o]!==a[l]){var s="\n"+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=o&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function V(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function j(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case _:return"Portal";case E:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function K(e,t){G(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var me=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,xe=null,Se=null;function Ee(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(a(280));var t=e.stateNode;t&&(t=ki(t),_e(e.stateNode,e.type,t))}}function Pe(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Ce(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Re(e,t){return e(t)}function Te(){}var ze=!1;function Oe(e,t,n){if(ze)return e(t,n);ze=!0;try{return Re(e,t,n)}finally{ze=!1,(null!==xe||null!==Se)&&(Te(),Ce())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=ki(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Me=!1;if(c)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ce){Me=!1}function De(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Le=!1,Be=null,Ne=!1,Fe=null,Ue={onError:function(e){Le=!0,Be=e}};function Ve(e,t,n,r,i,a,o,l,s){Le=!1,Be=null,De.apply(Ue,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(je(e)!==e)throw Error(a(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return We(i),e;if(o===r)return We(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Qe=i.unstable_scheduleCallback,Ze=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ge=i.unstable_now,Ke=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var l=o&~i;0!==l?r=dt(l):0!==(a&=o)&&(r=dt(a))}else 0!==(o=n&~i)?r=dt(o):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,_t,xt,St,Et,Pt=!1,Ct=[],Rt=null,Tt=null,zt=null,Ot=new Map,It=new Map,Mt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Lt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Bt(e){var t=gi(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Et(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){Nt(e)&&n.delete(t)}function Ut(){Pt=!1,null!==Rt&&Nt(Rt)&&(Rt=null),null!==Tt&&Nt(Tt)&&(Tt=null),null!==zt&&Nt(zt)&&(zt=null),Ot.forEach(Ft),It.forEach(Ft)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function jt(e){function t(t){return Vt(t,e)}if(0<Ct.length){Vt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Vt(Rt,e),null!==Tt&&Vt(Tt,e),null!==zt&&Vt(zt,e),Ot.forEach(t),It.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Mt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function $t(e,t,n,r){var i=bt,a=Ht.transition;Ht.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=i,Ht.transition=a}}function qt(e,t,n,r){var i=bt,a=Ht.transition;Ht.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=i,Ht.transition=a}}function Qt(e,t,n,r){if(Wt){var i=Yt(e,t,n,r);if(null===i)Wr(e,t,r,Zt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Rt=Lt(Rt,e,t,n,r,i),!0;case"dragenter":return Tt=Lt(Tt,e,t,n,r,i),!0;case"mouseover":return zt=Lt(zt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ot.set(a,Lt(Ot.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,It.set(a,Lt(It.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&kt(a),null===(a=Yt(e,t,n,r))&&Wr(e,t,r,Zt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Zt=null;function Yt(e,t,n,r){if(Zt=null,null!==(e=gi(e=ke(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ke()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Gt=null,Kt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Kt,r=n.length,i="value"in Gt?Gt.value:Gt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=B({},un,{view:0,detail:0}),hn=an(dn),fn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),pn=an(fn),vn=an(B({},fn,{dataTransfer:0})),yn=an(B({},dn,{relatedTarget:0})),mn=an(B({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=B({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(gn),wn=an(B({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function En(){return Sn}var Pn=B({},dn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(Pn),Rn=an(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=an(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),zn=an(B({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=B({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=an(On),Mn=[9,13,27,32],An=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Dn,Bn=c&&(!An||Dn&&8<Dn&&11>=Dn),Nn=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Pe(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Qn=null;function Zn(e){Nr(e,0)}function Yn(e){if(Q(wi(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(c){var Kn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Kn=Jn}else Kn=!1;Gn=Kn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Qn=qn=null)}function nr(e){if("value"===e.propertyName&&Yn(Qn)){var t=[];$n(t,Qn,e,ke(e)),Oe(Zn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Qn)}function ar(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=cr(n,a);var o=cr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,mr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==Z(r)||("selectionStart"in(r=yr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=qr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},xr={},Sr={};function Er(e){if(xr[e])return xr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return xr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Pr=Er("animationend"),Cr=Er("animationiteration"),Rr=Er("animationstart"),Tr=Er("transitionend"),zr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){zr.set(e,t),s(t,[e])}for(var Mr=0;Mr<Or.length;Mr++){var Ar=Or[Mr];Ir(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Ir(Pr,"onAnimationEnd"),Ir(Cr,"onAnimationIteration"),Ir(Rr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,s,u){if(Ve.apply(this,arguments),Le){if(!Le)throw Error(a(198));var c=Be;Le=!1,Be=null,Ne||(Ne=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Br(i,l,u),a=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Br(i,l,u),a=s}}}if(Ne)throw e=Fe,Ne=!1,Fe=null,e}function Fr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function jr(e){if(!e[Vr]){e[Vr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var i=$t;break;case 4:i=qt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;o=o.return}for(;null!==l;){if(null===(o=gi(l)))return;if(5===(s=o.tag)||6===s){r=a=o;continue e}l=l.parentNode}}r=r.return}Oe((function(){var r=a,i=ke(n),o=[];e:{var l=zr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tn;break;case Pr:case Cr:case Rr:s=mn;break;case Tr:s=zn;break;case"scroll":s=hn;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rn}var c=0!==(4&t),d=!c&&"scroll"===e,h=c?null!==l?l+"Capture":null:l;c=[];for(var f,p=r;null!==p;){var v=(f=p).stateNode;if(5===f.tag&&null!==v&&(f=v,null!==h&&(null!=(v=Ie(p,h))&&c.push($r(p,v,f)))),d)break;p=p.return}0<c.length&&(l=new s(l,u,null,n,i),o.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!gi(u)&&!u[pi])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?gi(u):null)&&(u!==(d=je(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=pn,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,v="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==s?l:wi(s),f=null==u?l:wi(u),(l=new c(v,p+"leave",s,n,i)).target=d,l.relatedTarget=f,v=null,gi(i)===r&&((c=new c(h,p+"enter",u,n,i)).target=f,c.relatedTarget=d,v=c),d=v,s&&u)e:{for(h=u,p=0,f=c=s;f;f=Qr(f))p++;for(f=0,v=h;v;v=Qr(v))f++;for(;0<p-f;)c=Qr(c),p--;for(;0<f-p;)h=Qr(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=Qr(c),h=Qr(h)}c=null}else c=null;null!==s&&Zr(o,l,s,c,!1),null!==u&&null!==d&&Zr(o,d,u,c,!0)}if("select"===(s=(l=r?wi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var y=Xn;else if(Wn(l))if(Gn)y=or;else{y=ir;var m=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ar);switch(y&&(y=y(e,r))?$n(o,y,n,i):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&ee(l,"number",l.value)),m=r?wi(r):window,e){case"focusin":(Wn(m)||"true"===m.contentEditable)&&(yr=m,mr=r,gr=null);break;case"focusout":gr=mr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(o,n,i)}var g;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else jn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==b?"onCompositionEnd"===b&&jn&&(g=en()):(Kt="value"in(Gt=i)?Gt.value:Gt.textContent,jn=!0)),0<(m=qr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:m}),g?b.data=g:null!==(g=Vn(n))&&(b.data=g))),(g=Ln?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!An&&Un(e,t)?(e=en(),Jt=Kt=Gt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g))}Nr(o,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ie(e,n))&&r.unshift($r(e,a,i)),null!=(a=Ie(e,t))&&r.push($r(e,a,i))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=Ie(n,a))&&o.unshift($r(n,s,l)):i||null!=(s=Ie(n,a))&&o.push($r(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Gr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Kr(e,t,n){if(t=Gr(t),Gr(e)!==t&&n)throw Error(a(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,oi="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(li)}:ri;function li(e){setTimeout((function(){throw e}))}function si(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void jt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);jt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,yi="__reactListeners$"+di,mi="__reactHandles$"+di;function gi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ki(e){return e[fi]||null}var _i=[],xi=-1;function Si(e){return{current:e}}function Ei(e){0>xi||(e.current=_i[xi],_i[xi]=null,xi--)}function Pi(e,t){xi++,_i[xi]=e.current,e.current=t}var Ci={},Ri=Si(Ci),Ti=Si(!1),zi=Ci;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mi(){Ei(Ti),Ei(Ri)}function Ai(e,t,n){if(Ri.current!==Ci)throw Error(a(168));Pi(Ri,t),Pi(Ti,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,H(e)||"Unknown",i));return B({},n,r)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,zi=Ri.current,Pi(Ri,e),Pi(Ti,Ti.current),!0}function Bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Di(e,t,zi),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ti),Ei(Ri),Pi(Ri,e)):Ei(Ti),Pi(Ti,n)}var Ni=null,Fi=!1,Ui=!1;function Vi(e){null===Ni?Ni=[e]:Ni.push(e)}function ji(){if(!Ui&&null!==Ni){Ui=!0;var e=0,t=bt;try{var n=Ni;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ni=null,Fi=!1}catch(i){throw null!==Ni&&(Ni=Ni.slice(e+1)),Qe(Je,ji),i}finally{bt=t,Ui=!1}}return null}var Hi=[],Wi=0,$i=null,qi=0,Qi=[],Zi=0,Yi=null,Xi=1,Gi="";function Ki(e,t){Hi[Wi++]=qi,Hi[Wi++]=$i,$i=e,qi=t}function Ji(e,t,n){Qi[Zi++]=Xi,Qi[Zi++]=Gi,Qi[Zi++]=Yi,Yi=e;var r=Xi;e=Gi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xi=1<<32-ot(t)+i|n<<i|r,Gi=a+e}else Xi=1<<a|n<<i|r,Gi=e}function ea(e){null!==e.return&&(Ki(e,1),Ji(e,1,0))}function ta(e){for(;e===$i;)$i=Hi[--Wi],Hi[Wi]=null,qi=Hi[--Wi],Hi[Wi]=null;for(;e===Yi;)Yi=Qi[--Zi],Qi[Zi]=null,Gi=Qi[--Zi],Qi[Zi]=null,Xi=Qi[--Zi],Qi[Zi]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yi?{id:Xi,overflow:Gi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function sa(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(ia){var t=ra;if(t){var n=t;if(!la(e,t)){if(sa(e))throw Error(a(418));t=ui(n.nextSibling);var r=na;t&&la(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(sa(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(sa(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=ui(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ui(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ra;e;)e=ui(e.nextSibling)}function fa(){ra=na=null,ia=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var va=w.ReactCurrentBatchConfig;function ya(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ma=Si(null),ga=null,ba=null,wa=null;function ka(){wa=ba=ga=null}function _a(e){var t=ma.current;Ei(ma),e._currentValue=t}function xa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t){ga=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ga)throw Error(a(308));ba=e,ga.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Pa=null;function Ca(e){null===Pa?Pa=[e]:Pa.push(e)}function Ra(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ca(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ta(e,r)}function Ta(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var za=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ts)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ta(e,n)}return null===(i=r.interleaved)?(t.next=t,Ca(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ta(e,n)}function Da(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ba(e,t,n,r){var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var s=l,u=s.next;s.next=null,null===o?a=u:o.next=u,o=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==a){var d=i.baseState;for(o=0,c=u=s=null,l=a;;){var h=l.lane,f=l.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,v=l;switch(h=t,f=n,v.tag){case 1:if("function"===typeof(p=v.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=v.payload)?p.call(f,d,h):p)||void 0===h)break e;d=B({},d,h);break e;case 2:za=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[l]:h.push(l))}else f={eventTime:f,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,o|=h;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(h=l).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Bs|=o,e.lanes=o,e.memoizedState=d}}function Na(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var Fa=(new r.Component).refs;function Ua(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),a=Ma(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Aa(e,a,i))&&(ru(t,e,i,r),Da(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),a=Ma(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Aa(e,a,i))&&(ru(t,e,i,r),Da(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),i=Ma(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Aa(e,i,r))&&(ru(t,e,r,n),Da(t,e,r))}};function ja(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,a))}function Ha(e,t,n){var r=!1,i=Ci,a=t.contextType;return"object"===typeof a&&null!==a?a=Ea(a):(i=Ii(t)?zi:Ri.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Oi(e,i):Ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Wa(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Va.enqueueReplaceState(t,t.state,null)}function $a(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fa,Oa(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ea(a):(a=Ii(t)?zi:Ri.current,i.context=Oi(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Va.enqueueReplaceState(i,i.state,null),Ba(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function qa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Fa&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Za(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===I&&Za(a)===t.type)?((r=i(t,n.props)).ref=qa(e,t,n),r.return=e,r):((r=Du(n.type,n.key,n.props,null,e.mode,r)).ref=qa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=qa(e,null,t),n.return=e,n;case _:return(t=Fu(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?u(e,t,n,r):null;case _:return n.key===i?c(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);Qa(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);Qa(t,r)}return null}function v(i,a,l,s){for(var u=null,c=null,d=a,v=a=0,y=null;null!==d&&v<l.length;v++){d.index>v?(y=d,d=null):y=d.sibling;var m=f(i,d,l[v],s);if(null===m){null===d&&(d=y);break}e&&d&&null===m.alternate&&t(i,d),a=o(m,a,v),null===c?u=m:c.sibling=m,c=m,d=y}if(v===l.length)return n(i,d),ia&&Ki(i,v),u;if(null===d){for(;v<l.length;v++)null!==(d=h(i,l[v],s))&&(a=o(d,a,v),null===c?u=d:c.sibling=d,c=d);return ia&&Ki(i,v),u}for(d=r(i,d);v<l.length;v++)null!==(y=p(d,i,v,l[v],s))&&(e&&null!==y.alternate&&d.delete(null===y.key?v:y.key),a=o(y,a,v),null===c?u=y:c.sibling=y,c=y);return e&&d.forEach((function(e){return t(i,e)})),ia&&Ki(i,v),u}function y(i,l,s,u){var c=D(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var d=c=null,v=l,y=l=0,m=null,g=s.next();null!==v&&!g.done;y++,g=s.next()){v.index>y?(m=v,v=null):m=v.sibling;var b=f(i,v,g.value,u);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),l=o(b,l,y),null===d?c=b:d.sibling=b,d=b,v=m}if(g.done)return n(i,v),ia&&Ki(i,y),c;if(null===v){for(;!g.done;y++,g=s.next())null!==(g=h(i,g.value,u))&&(l=o(g,l,y),null===d?c=g:d.sibling=g,d=g);return ia&&Ki(i,y),c}for(v=r(i,v);!g.done;y++,g=s.next())null!==(g=p(v,i,y,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),l=o(g,l,y),null===d?c=g:d.sibling=g,d=g);return e&&v.forEach((function(e){return t(i,e)})),ia&&Ki(i,y),c}return function e(r,a,o,s){if("object"===typeof o&&null!==o&&o.type===x&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===x){if(7===c.tag){n(r,c.sibling),(a=i(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===I&&Za(u)===c.type){n(r,c.sibling),(a=i(c,o.props)).ref=qa(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===x?((a=Lu(o.props.children,r.mode,s,o.key)).return=r,r=a):((s=Du(o.type,o.key,o.props,null,r.mode,s)).ref=qa(r,a,o),s.return=r,r=s)}return l(r);case _:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fu(o,r.mode,s)).return=r,r=a}return l(r);case I:return e(r,a,(c=o._init)(o._payload),s)}if(te(o))return v(r,a,o,s);if(D(o))return y(r,a,o,s);Qa(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Nu(o,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Xa=Ya(!0),Ga=Ya(!1),Ka={},Ja=Si(Ka),eo=Si(Ka),to=Si(Ka);function no(e){if(e===Ka)throw Error(a(174));return e}function ro(e,t){switch(Pi(to,t),Pi(eo,e),Pi(Ja,Ka),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Ja),Pi(Ja,t)}function io(){Ei(Ja),Ei(eo),Ei(to)}function ao(e){no(to.current);var t=no(Ja.current),n=se(t,e.type);t!==n&&(Pi(eo,e),Pi(Ja,n))}function oo(e){eo.current===e&&(Ei(Ja),Ei(eo))}var lo=Si(0);function so(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=[];function co(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var ho=w.ReactCurrentDispatcher,fo=w.ReactCurrentBatchConfig,po=0,vo=null,yo=null,mo=null,go=!1,bo=!1,wo=0,ko=0;function _o(){throw Error(a(321))}function xo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,o){if(po=o,vo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ho.current=null===e||null===e.memoizedState?ll:sl,e=n(r,i),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(a(301));o+=1,mo=yo=null,t.updateQueue=null,ho.current=ul,e=n(r,i)}while(bo)}if(ho.current=ol,t=null!==yo&&null!==yo.next,po=0,mo=yo=vo=null,go=!1,t)throw Error(a(300));return e}function Eo(){var e=0!==wo;return wo=0,e}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mo?vo.memoizedState=mo=e:mo=mo.next=e,mo}function Co(){if(null===yo){var e=vo.alternate;e=null!==e?e.memoizedState:null}else e=yo.next;var t=null===mo?vo.memoizedState:mo.next;if(null!==t)mo=t,yo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(yo=e).memoizedState,baseState:yo.baseState,baseQueue:yo.baseQueue,queue:yo.queue,next:null},null===mo?vo.memoizedState=mo=e:mo=mo.next=e}return mo}function Ro(e,t){return"function"===typeof t?t(e):t}function To(e){var t=Co(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=yo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=l=null,u=null,c=o;do{var d=c.lane;if((po&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=h,l=r):u=u.next=h,vo.lanes|=d,Bs|=d}c=c.next}while(null!==c&&c!==o);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,vo.lanes|=o,Bs|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zo(e){var t=Co(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);lr(o,t.memoizedState)||(wl=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Oo(){}function Io(e,t){var n=vo,r=Co(),i=t(),o=!lr(r.memoizedState,i);if(o&&(r.memoizedState=i,wl=!0),r=r.queue,Wo(Do.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==mo&&1&mo.memoizedState.tag){if(n.flags|=2048,Fo(9,Ao.bind(null,n,r,i,t),void 0,null),null===zs)throw Error(a(349));0!==(30&po)||Mo(n,t,i)}return i}function Mo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=vo.updateQueue)?(t={lastEffect:null,stores:null},vo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ao(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Bo(e)}function Do(e,t,n){return n((function(){Lo(t)&&Bo(e)}))}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Bo(e){var t=Ta(e,1);null!==t&&ru(t,e,1,-1)}function No(e){var t=Po();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,vo,e),[t.memoizedState,e]}function Fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=vo.updateQueue)?(t={lastEffect:null,stores:null},vo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Uo(){return Co().memoizedState}function Vo(e,t,n,r){var i=Po();vo.flags|=e,i.memoizedState=Fo(1|t,n,void 0,void 0===r?null:r)}function jo(e,t,n,r){var i=Co();r=void 0===r?null:r;var a=void 0;if(null!==yo){var o=yo.memoizedState;if(a=o.destroy,null!==r&&xo(r,o.deps))return void(i.memoizedState=Fo(t,n,a,r))}vo.flags|=e,i.memoizedState=Fo(1|t,n,a,r)}function Ho(e,t){return Vo(8390656,8,e,t)}function Wo(e,t){return jo(2048,8,e,t)}function $o(e,t){return jo(4,2,e,t)}function qo(e,t){return jo(4,4,e,t)}function Qo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Zo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,jo(4,4,Qo.bind(null,t,e),n)}function Yo(){}function Xo(e,t){var n=Co();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Go(e,t){var n=Co();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ko(e,t,n){return 0===(21&po)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=vt(),vo.lanes|=n,Bs|=n,e.baseState=!0),t)}function Jo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=fo.transition;fo.transition={};try{e(!1),t()}finally{bt=n,fo.transition=r}}function el(){return Co().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))il(t,n);else if(null!==(n=Ra(e,t,n,r))){ru(n,e,r,tu()),al(n,t,r)}}function nl(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))il(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,lr(l,o)){var s=t.interleaved;return null===s?(i.next=i,Ca(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Ra(e,t,i,r))&&(ru(n,e,r,i=tu()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===vo||null!==t&&t===vo}function il(e,t){bo=go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var ol={readContext:Ea,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useInsertionEffect:_o,useLayoutEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useMutableSource:_o,useSyncExternalStore:_o,useId:_o,unstable_isNewReconciler:!1},ll={readContext:Ea,useCallback:function(e,t){return Po().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Ho,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Vo(4194308,4,Qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vo(4,2,e,t)},useMemo:function(e,t){var n=Po();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Po();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,vo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Po().memoizedState=e},useState:No,useDebugValue:Yo,useDeferredValue:function(e){return Po().memoizedState=e},useTransition:function(){var e=No(!1),t=e[0];return e=Jo.bind(null,e[1]),Po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vo,i=Po();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===zs)throw Error(a(349));0!==(30&po)||Mo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ho(Do.bind(null,r,o,e),[e]),r.flags|=2048,Fo(9,Ao.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Po(),t=zs.identifierPrefix;if(ia){var n=Gi;t=":"+t+"R"+(n=(Xi&~(1<<32-ot(Xi)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ko++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Ea,useCallback:Xo,useContext:Ea,useEffect:Wo,useImperativeHandle:Zo,useInsertionEffect:$o,useLayoutEffect:qo,useMemo:Go,useReducer:To,useRef:Uo,useState:function(){return To(Ro)},useDebugValue:Yo,useDeferredValue:function(e){return Ko(Co(),yo.memoizedState,e)},useTransition:function(){return[To(Ro)[0],Co().memoizedState]},useMutableSource:Oo,useSyncExternalStore:Io,useId:el,unstable_isNewReconciler:!1},ul={readContext:Ea,useCallback:Xo,useContext:Ea,useEffect:Wo,useImperativeHandle:Zo,useInsertionEffect:$o,useLayoutEffect:qo,useMemo:Go,useReducer:zo,useRef:Uo,useState:function(){return zo(Ro)},useDebugValue:Yo,useDeferredValue:function(e){var t=Co();return null===yo?t.memoizedState=e:Ko(t,yo.memoizedState,e)},useTransition:function(){return[zo(Ro)[0],Co().memoizedState]},useMutableSource:Oo,useSyncExternalStore:Io,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Ma(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$s||($s=!0,qs=r),hl(0,t)},n}function vl(e,t,n){(n=Ma(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hl(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){hl(0,t),"function"!==typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Pu.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ma(-1,1)).tag=2,Aa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bl=w.ReactCurrentOwner,wl=!1;function kl(e,t,n,r){t.child=null===e?Ga(t,null,n,r):Xa(t,e.child,n,r)}function _l(e,t,n,r,i){n=n.render;var a=t.ref;return Sa(t,i),r=So(e,t,n,r,a,i),n=Eo(),null===e||wl?(ia&&n&&ea(t),t.flags|=1,kl(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$l(e,t,i))}function xl(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Mu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Sl(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)return $l(e,t,i)}return t.flags|=1,(e=Au(a,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,$l(e,t,i);0!==(131072&e.flags)&&(wl=!0)}}return Cl(e,t,n,r,i)}function El(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pi(As,Ms),Ms|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pi(As,Ms),Ms|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Pi(As,Ms),Ms|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Pi(As,Ms),Ms|=r;return kl(e,t,i,n),t.child}function Pl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cl(e,t,n,r,i){var a=Ii(n)?zi:Ri.current;return a=Oi(t,a),Sa(t,i),n=So(e,t,n,r,a,i),r=Eo(),null===e||wl?(ia&&r&&ea(t),t.flags|=1,kl(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$l(e,t,i))}function Rl(e,t,n,r,i){if(Ii(n)){var a=!0;Li(t)}else a=!1;if(Sa(t,i),null===t.stateNode)Wl(e,t),Ha(t,n,r),$a(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ea(u):u=Oi(t,u=Ii(n)?zi:Ri.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==r||s!==u)&&Wa(t,o,r,u),za=!1;var h=t.memoizedState;o.state=h,Ba(t,r,o,i),s=t.memoizedState,l!==r||h!==s||Ti.current||za?("function"===typeof c&&(Ua(t,n,c,r),s=t.memoizedState),(l=za||ja(t,n,l,r,h,s,u))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ya(t.type,l),o.props=u,d=t.pendingProps,h=o.context,"object"===typeof(s=n.contextType)&&null!==s?s=Ea(s):s=Oi(t,s=Ii(n)?zi:Ri.current);var f=n.getDerivedStateFromProps;(c="function"===typeof f||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==d||h!==s)&&Wa(t,o,r,s),za=!1,h=t.memoizedState,o.state=h,Ba(t,r,o,i);var p=t.memoizedState;l!==d||h!==p||Ti.current||za?("function"===typeof f&&(Ua(t,n,f,r),p=t.memoizedState),(u=za||ja(t,n,u,r,h,p,s)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Tl(e,t,n,r,a,i)}function Tl(e,t,n,r,i,a){Pl(e,t);var o=0!==(128&t.flags);if(!r&&!o)return i&&Bi(t,n,!1),$l(e,t,a);r=t.stateNode,bl.current=t;var l=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,l,a)):kl(e,t,l,a),t.memoizedState=r.state,i&&Bi(t,n,!0),t.child}function zl(e){var t=e.stateNode;t.pendingContext?Ai(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ai(0,t.context,!1),ro(e,t.containerInfo)}function Ol(e,t,n,r,i){return fa(),pa(i),t.flags|=256,kl(e,t,n,r),t.child}var Il,Ml,Al,Dl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nl(e,t,n){var r,i=t.pendingProps,o=lo.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Pi(lo,1&o),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&i)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Bu(s,i,0,null),e=Lu(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Bl(n),t.memoizedState=Ll,e):Fl(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,l){if(n)return 256&t.flags?(t.flags&=-257,Ul(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Bu({mode:"visible",children:r.children},i,0,null),(o=Lu(o,i,l,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Xa(t,e.child,null,l),t.child.memoizedState=Bl(l),t.memoizedState=Ll,o);if(0===(1&t.mode))return Ul(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,Ul(e,t,l,r=dl(o=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=zs)){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|l))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Ta(e,i),ru(r,e,i,-1))}return yu(),Ul(e,t,l,r=dl(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=ui(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(Qi[Zi++]=Xi,Qi[Zi++]=Gi,Qi[Zi++]=Yi,Xi=e.id,Gi=e.overflow,Yi=t),t=Fl(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(l){l=i.fallback,s=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Au(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?l=Au(r,l):(l=Lu(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Bl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,i}return e=(l=e.child).sibling,i=Au(l,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fl(e,t){return(t=Bu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ul(e,t,n,r){return null!==r&&pa(r),Xa(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xa(e.return,t,n)}function jl(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Hl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(kl(e,t,r.children,n),0!==(2&(r=lo.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vl(e,n,t);else if(19===e.tag)Vl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pi(lo,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===so(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jl(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===so(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jl(t,!0,n,null,a);break;case"together":jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $l(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zl(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ql(t),null;case 1:case 17:return Ii(t.type)&&Mi(),Ql(t),null;case 3:return r=t.stateNode,io(),Ei(Ti),Ei(Ri),co(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(lu(aa),aa=null))),Ml(e,t),Ql(t),null;case 5:oo(t);var i=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Ql(t),null}if(e=no(Ja.current),da(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[hi]=t,r[fi]=o,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":X(r,o),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Fr("invalid",r);break;case"textarea":ie(r,o),Fr("invalid",r)}for(var s in ge(n,o),i=null,o)if(o.hasOwnProperty(s)){var u=o[s];"children"===s?"string"===typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&Kr(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Kr(r.textContent,u,e),i=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":q(r),J(r,o,!0);break;case"textarea":q(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[hi]=t,e[fi]=r,Il(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":X(e,r),i=Y(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(o in ge(n,i),u=i)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ye(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===o?"string"===typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"===typeof c&&he(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Fr("scroll",e):null!=c&&b(e,o,c,s))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ql(t),null;case 6:if(e&&null!=t.stateNode)Dl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=no(to.current),no(Ja.current),da(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Kr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Ql(t),null;case 13:if(Ei(lo),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))ha(),fa(),t.flags|=98560,o=!1;else if(o=da(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hi]=t}else fa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ql(t),o=!1}else null!==aa&&(lu(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&lo.current)?0===Ds&&(Ds=3):yu())),null!==t.updateQueue&&(t.flags|=4),Ql(t),null);case 4:return io(),Ml(e,t),null===e&&jr(t.stateNode.containerInfo),Ql(t),null;case 10:return _a(t.type._context),Ql(t),null;case 19:if(Ei(lo),null===(o=t.memoizedState))return Ql(t),null;if(r=0!==(128&t.flags),null===(s=o.rendering))if(r)ql(o,!1);else{if(0!==Ds||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=so(e))){for(t.flags|=128,ql(o,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(s=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pi(lo,1&lo.current|2),t.child}e=e.sibling}null!==o.tail&&Ge()>Hs&&(t.flags|=128,r=!0,ql(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=so(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(o,!0),null===o.tail&&"hidden"===o.tailMode&&!s.alternate&&!ia)return Ql(t),null}else 2*Ge()-o.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,ql(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=o.last)?n.sibling=s:t.child=s,o.last=s)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ge(),t.sibling=null,n=lo.current,Pi(lo,r?1&n|2:1&n),t):(Ql(t),null);case 22:case 23:return hu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ms)&&(Ql(t),6&t.subtreeFlags&&(t.flags|=8192)):Ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(ta(t),t.tag){case 1:return Ii(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return io(),Ei(Ti),Ei(Ri),co(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ei(lo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));fa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(lo),null;case 4:return io(),null;case 10:return _a(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Il=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ml=function(){},Al=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,no(Ja.current);var a,o=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),o=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),o||s===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Dl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Gl=!1,Kl="function"===typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Eu(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){Eu(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&ts(t,n,a)}i=i.next}while(i!==r)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[vi],delete t[yi],delete t[mi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,hs=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(l){}switch(n.tag){case 5:Gl||es(n,t);case 6:var r=ds,i=hs;ds=null,fs(e,t,n),hs=i,null!==(ds=r)&&(hs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(hs?(e=ds,n=n.stateNode,8===e.nodeType?si(e.parentNode,n):1===e.nodeType&&si(e,n),jt(e)):si(ds,n.stateNode));break;case 4:r=ds,i=hs,ds=n.stateNode.containerInfo,hs=!0,fs(e,t,n),ds=r,hs=i;break;case 0:case 11:case 14:case 15:if(!Gl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&ts(n,t,o),i=i.next}while(i!==r)}fs(e,t,n);break;case 1:if(!Gl&&(es(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Eu(n,t,l)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Gl=(r=Gl)||null!==n.memoizedState,fs(e,t,n),Gl=r):fs(e,t,n);break;default:fs(e,t,n)}}function vs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ys(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,hs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,hs=!0;break e}s=s.return}if(null===ds)throw Error(a(160));ps(o,l,i),ds=null,hs=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){Eu(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ms(t,e),t=t.sibling}function ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ys(t,e),gs(e),4&r){try{rs(3,e,e.return),is(3,e)}catch(y){Eu(e,e.return,y)}try{rs(5,e,e.return)}catch(y){Eu(e,e.return,y)}}break;case 1:ys(t,e),gs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(ys(t,e),gs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(y){Eu(e,e.return,y)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,l=null!==n?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===o.type&&null!=o.name&&G(i,o),be(s,l);var c=be(s,o);for(l=0;l<u.length;l+=2){var d=u[l],h=u[l+1];"style"===d?ye(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,c)}switch(s){case"input":K(i,o);break;case"textarea":ae(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(i,!!o.multiple,p,!1):f!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[fi]=o}catch(y){Eu(e,e.return,y)}}break;case 6:if(ys(t,e),gs(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Eu(e,e.return,y)}}break;case 3:if(ys(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{jt(t.containerInfo)}catch(y){Eu(e,e.return,y)}break;case 4:default:ys(t,e),gs(e);break;case 13:ys(t,e),gs(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(js=Ge())),4&r&&vs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gl=(c=Gl)||d,ys(t,e),Gl=c):ys(t,e),gs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Jl=e,d=e.child;null!==d;){for(h=Jl=d;null!==Jl;){switch(p=(f=Jl).child,f.tag){case 0:case 11:case 14:case 15:rs(4,f,f.return);break;case 1:es(f,f.return);var v=f.stateNode;if("function"===typeof v.componentWillUnmount){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){Eu(r,n,y)}}break;case 5:es(f,f.return);break;case 22:if(null!==f.memoizedState){_s(h);continue}}null!==p?(p.return=f,Jl=p):_s(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"===typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=h.stateNode,l=void 0!==(u=h.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,s.style.display=ve("display",l))}catch(y){Eu(e,e.return,y)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){Eu(e,e.return,y)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ys(t,e),gs(e),4&r&&vs(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),cs(e,ss(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;us(e,ss(e),o);break;default:throw Error(a(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,ws(e,t,n)}function ws(e,t,n){for(var r=0!==(1&e.mode);null!==Jl;){var i=Jl,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Xl;if(!o){var l=i.alternate,s=null!==l&&null!==l.memoizedState||Gl;l=Xl;var u=Gl;if(Xl=o,(Gl=s)&&!u)for(Jl=i;null!==Jl;)s=(o=Jl).child,22===o.tag&&null!==o.memoizedState?xs(i):null!==s?(s.return=o,Jl=s):xs(i);for(;null!==a;)Jl=a,ws(a,t,n),a=a.sibling;Jl=i,Xl=l,Gl=u}ks(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,Jl=a):ks(e)}}function ks(e){for(;null!==Jl;){var t=Jl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gl||is(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gl)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ya(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Na(t,o,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Na(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&jt(h)}}}break;default:throw Error(a(163))}Gl||512&t.flags&&as(t)}catch(f){Eu(t,t.return,f)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function _s(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function xs(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{is(4,t)}catch(s){Eu(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(s){Eu(t,i,s)}}var a=t.return;try{as(t)}catch(s){Eu(t,a,s)}break;case 5:var o=t.return;try{as(t)}catch(s){Eu(t,o,s)}}}catch(s){Eu(t,t.return,s)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Ss,Es=Math.ceil,Ps=w.ReactCurrentDispatcher,Cs=w.ReactCurrentOwner,Rs=w.ReactCurrentBatchConfig,Ts=0,zs=null,Os=null,Is=0,Ms=0,As=Si(0),Ds=0,Ls=null,Bs=0,Ns=0,Fs=0,Us=null,Vs=null,js=0,Hs=1/0,Ws=null,$s=!1,qs=null,Qs=null,Zs=!1,Ys=null,Xs=0,Gs=0,Ks=null,Js=-1,eu=0;function tu(){return 0!==(6&Ts)?Ge():-1!==Js?Js:Js=Ge()}function nu(e){return 0===(1&e.mode)?1:0!==(2&Ts)&&0!==Is?Is&-Is:null!==va.transition?(0===eu&&(eu=vt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ru(e,t,n,r){if(50<Gs)throw Gs=0,Ks=null,Error(a(185));mt(e,n,r),0!==(2&Ts)&&e===zs||(e===zs&&(0===(2&Ts)&&(Ns|=n),4===Ds&&su(e,Is)),iu(e,r),1===n&&0===Ts&&0===(1&t.mode)&&(Hs=Ge()+500,Fi&&ji()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),l=1<<o,s=i[o];-1===s?0!==(l&n)&&0===(l&r)||(i[o]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=ht(e,e===zs?Is:0);if(0===r)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){Fi=!0,Vi(e)}(uu.bind(null,e)):Vi(uu.bind(null,e)),oi((function(){0===(6&Ts)&&ji()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=zu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Js=-1,eu=0,0!==(6&Ts))throw Error(a(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ht(e,e===zs?Is:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=Ts;Ts|=2;var o=vu();for(zs===e&&Is===t||(Ws=null,Hs=Ge()+500,fu(e,t));;)try{bu();break}catch(s){pu(e,s)}ka(),Ps.current=o,Ts=i,null!==Os?t=0:(zs=null,Is=0,t=Ds)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ou(e,i))),1===t)throw n=Ls,fu(e,0),su(e,r),iu(e,Ge()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!lr(a(),i))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mu(e,r))&&(0!==(o=pt(e))&&(r=o,t=ou(e,o))),1===t))throw n=Ls,fu(e,0),su(e,r),iu(e,Ge()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:_u(e,Vs,Ws);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=js+500-Ge())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,Vs,Ws),t);break}_u(e,Vs,Ws);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-ot(r);o=1<<l,(l=t[l])>i&&(i=l),r&=~o}if(r=i,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,Vs,Ws),r);break}_u(e,Vs,Ws);break;default:throw Error(a(329))}}}return iu(e,Ge()),e.callbackNode===n?au.bind(null,e):null}function ou(e,t){var n=Us;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Vs,Vs=n,null!==t&&lu(t)),e}function lu(e){null===Vs?Vs=e:Vs.push.apply(Vs,e)}function su(e,t){for(t&=~Fs,t&=~Ns,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!==(6&Ts))throw Error(a(327));xu();var t=ht(e,0);if(0===(1&t))return iu(e,Ge()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Ls,fu(e,0),su(e,t),iu(e,Ge()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Vs,Ws),iu(e,Ge()),null}function cu(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Hs=Ge()+500,Fi&&ji())}}function du(e){null!==Ys&&0===Ys.tag&&0===(6&Ts)&&xu();var t=Ts;Ts|=1;var n=Rs.transition,r=bt;try{if(Rs.transition=null,bt=1,e)return e()}finally{bt=r,Rs.transition=n,0===(6&(Ts=t))&&ji()}}function hu(){Ms=As.current,Ei(As)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Mi();break;case 3:io(),Ei(Ti),Ei(Ri),co();break;case 5:oo(r);break;case 4:io();break;case 13:case 19:Ei(lo);break;case 10:_a(r.type._context);break;case 22:case 23:hu()}n=n.return}if(zs=e,Os=e=Au(e.current,null),Is=Ms=t,Ds=0,Ls=null,Fs=Ns=Bs=0,Vs=Us=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Pa=null}return e}function pu(e,t){for(;;){var n=Os;try{if(ka(),ho.current=ol,go){for(var r=vo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}go=!1}if(po=0,mo=yo=vo=null,bo=!1,wo=0,Cs.current=null,null===n||null===n.return){Ds=1,Ls=t,Os=null;break}e:{var o=e,l=n.return,s=n,u=t;if(t=Is,s.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=s,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ml(l);if(null!==p){p.flags&=-257,gl(p,l,s,0,t),1&p.mode&&yl(o,c,t),u=c;var v=(t=p).updateQueue;if(null===v){var y=new Set;y.add(u),t.updateQueue=y}else v.add(u);break e}if(0===(1&t)){yl(o,c,t),yu();break e}u=Error(a(426))}else if(ia&&1&s.mode){var m=ml(l);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),gl(m,l,s,0,t),pa(cl(u,s));break e}}o=u=cl(u,s),4!==Ds&&(Ds=2),null===Us?Us=[o]:Us.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,La(o,pl(0,u,t));break e;case 1:s=u;var g=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Qs||!Qs.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,La(o,vl(o,s,t));break e}}o=o.return}while(null!==o)}ku(n)}catch(w){t=w,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function vu(){var e=Ps.current;return Ps.current=ol,null===e?ol:e}function yu(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===zs||0===(268435455&Bs)&&0===(268435455&Ns)||su(zs,Is)}function mu(e,t){var n=Ts;Ts|=2;var r=vu();for(zs===e&&Is===t||(Ws=null,fu(e,t));;)try{gu();break}catch(i){pu(e,i)}if(ka(),Ts=n,Ps.current=r,null!==Os)throw Error(a(261));return zs=null,Is=0,Ds}function gu(){for(;null!==Os;)wu(Os)}function bu(){for(;null!==Os&&!Ye();)wu(Os)}function wu(e){var t=Ss(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?ku(e):Os=t,Cs.current=null}function ku(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Zl(n,t,Ms)))return void(Os=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return Ds=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===Ds&&(Ds=5)}function _u(e,t,n){var r=bt,i=Rs.transition;try{Rs.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Ys);if(0!==(6&Ts))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===zs&&(Os=zs=null,Is=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Zs||(Zs=!0,zu(tt,(function(){return xu(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Rs.transition,Rs.transition=null;var l=bt;bt=1;var s=Ts;Ts|=4,Cs.current=null,function(e,t){if(ei=Wt,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(k){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(s=l+i),h!==o||0!==r&&3!==h.nodeType||(u=l+r),3===h.nodeType&&(l+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===i&&(s=l),f===o&&++d===r&&(u=l),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var y=v.memoizedProps,m=v.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:ya(t.type,y),m);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(k){Eu(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}v=ns,ns=!1}(e,n),ms(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,bs(n,e,i),Xe(),Ts=s,bt=l,Rs.transition=o}else e.current=n;if(Zs&&(Zs=!1,Ys=e,Xs=i),o=e.pendingLanes,0===o&&(Qs=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),iu(e,Ge()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if($s)throw $s=!1,e=qs,qs=null,e;0!==(1&Xs)&&0!==e.tag&&xu(),o=e.pendingLanes,0!==(1&o)?e===Ks?Gs++:(Gs=0,Ks=e):Gs=0,ji()}(e,t,n,r)}finally{Rs.transition=i,bt=r}return null}function xu(){if(null!==Ys){var e=wt(Xs),t=Rs.transition,n=bt;try{if(Rs.transition=null,bt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Xs=0,0!==(6&Ts))throw Error(a(331));var i=Ts;for(Ts|=4,Jl=e.current;null!==Jl;){var o=Jl,l=o.child;if(0!==(16&Jl.flags)){var s=o.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:rs(8,d,o)}var h=d.child;if(null!==h)h.return=d,Jl=h;else for(;null!==Jl;){var f=(d=Jl).sibling,p=d.return;if(os(d),d===c){Jl=null;break}if(null!==f){f.return=p,Jl=f;break}Jl=p}}}var v=o.alternate;if(null!==v){var y=v.child;if(null!==y){v.child=null;do{var m=y.sibling;y.sibling=null,y=m}while(null!==y)}}Jl=o}}if(0!==(2064&o.subtreeFlags)&&null!==l)l.return=o,Jl=l;else e:for(;null!==Jl;){if(0!==(2048&(o=Jl).flags))switch(o.tag){case 0:case 11:case 15:rs(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,Jl=g;break e}Jl=o.return}}var b=e.current;for(Jl=b;null!==Jl;){var w=(l=Jl).child;if(0!==(2064&l.subtreeFlags)&&null!==w)w.return=l,Jl=w;else e:for(l=b;null!==Jl;){if(0!==(2048&(s=Jl).flags))try{switch(s.tag){case 0:case 11:case 15:is(9,s)}}catch(_){Eu(s,s.return,_)}if(s===l){Jl=null;break e}var k=s.sibling;if(null!==k){k.return=s.return,Jl=k;break e}Jl=s.return}}if(Ts=i,ji(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(_){}r=!0}return r}finally{bt=n,Rs.transition=t}}return!1}function Su(e,t,n){e=Aa(e,t=pl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(mt(e,1,t),iu(e,t))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){t=Aa(t,e=vl(t,e=cl(n,e),1),1),e=tu(),null!==t&&(mt(t,1,e),iu(t,e));break}}t=t.return}}function Pu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,zs===e&&(Is&n)===n&&(4===Ds||3===Ds&&(130023424&Is)===Is&&500>Ge()-js?fu(e,0):Fs|=n),iu(e,t)}function Cu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ta(e,t))&&(mt(e,t,n),iu(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Cu(e,n)}function zu(e,t){return Qe(e,t)}function Ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Ou(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,n,r,i,o){var l=2;if(r=e,"function"===typeof e)Mu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case x:return Lu(n.children,i,o,t);case S:l=8,i|=8;break;case E:return(e=Iu(12,n,t,2|i)).elementType=E,e.lanes=o,e;case T:return(e=Iu(13,n,t,i)).elementType=T,e.lanes=o,e;case z:return(e=Iu(19,n,t,i)).elementType=z,e.lanes=o,e;case M:return Bu(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:l=10;break e;case C:l=9;break e;case R:l=11;break e;case O:l=14;break e;case I:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Iu(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Lu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Bu(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,r,i,a,o,l,s){return e=new Uu(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Iu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oa(a),e}function ju(e){if(!e)return Ci;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Di(e,n,t)}return t}function Hu(e,t,n,r,i,a,o,l,s){return(e=Vu(n,r,!0,e,0,a,0,l,s)).context=ju(null),n=e.current,(a=Ma(r=tu(),i=nu(n))).callback=void 0!==t&&null!==t?t:null,Aa(n,a,i),e.current.lanes=i,mt(e,i,r),iu(e,r),e}function Wu(e,t,n,r){var i=t.current,a=tu(),o=nu(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ma(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Aa(i,t,o))&&(ru(e,i,o,a),Da(e,i,o)),o}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)wl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:zl(t),fa();break;case 5:ao(t);break;case 1:Ii(t.type)&&Li(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Pi(ma,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Pi(lo,1&lo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Nl(e,t,n):(Pi(lo,1&lo.current),null!==(e=$l(e,t,n))?e.sibling:null);Pi(lo,1&lo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(lo,lo.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return $l(e,t,n)}(e,t,n);wl=0!==(131072&e.flags)}else wl=!1,ia&&0!==(1048576&t.flags)&&Ji(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var i=Oi(t,Ri.current);Sa(t,n),i=So(null,t,r,e,i,n);var o=Eo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(o=!0,Li(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Oa(t),i.updater=Va,t.stateNode=i,i._reactInternals=t,$a(t,r,e,n),t=Tl(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),kl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Mu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===R)return 11;if(e===O)return 14}return 2}(r),e=ya(r,e),i){case 0:t=Cl(null,t,r,e,n);break e;case 1:t=Rl(null,t,r,e,n);break e;case 11:t=_l(null,t,r,e,n);break e;case 14:t=xl(null,t,r,ya(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cl(e,t,r,i=t.elementType===r?i:ya(r,i),n);case 1:return r=t.type,i=t.pendingProps,Rl(e,t,r,i=t.elementType===r?i:ya(r,i),n);case 3:e:{if(zl(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Ia(e,t),Ba(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ol(e,t,r,n,i=cl(Error(a(423)),t));break e}if(r!==i){t=Ol(e,t,r,n,i=cl(Error(a(424)),t));break e}for(ra=ui(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=Ga(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fa(),r===i){t=$l(e,t,n);break e}kl(e,t,r,n)}t=t.child}return t;case 5:return ao(t),null===e&&ua(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,ni(r,i)?l=null:null!==o&&ni(r,o)&&(t.flags|=32),Pl(e,t),kl(e,t,l,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Nl(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xa(t,null,r,n):kl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_l(e,t,r,i=t.elementType===r?i:ya(r,i),n);case 7:return kl(e,t,t.pendingProps,n),t.child;case 8:case 12:return kl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,Pi(ma,r._currentValue),r._currentValue=l,null!==o)if(lr(o.value,l)){if(o.children===i.children&&!Ti.current){t=$l(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){l=o.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Ma(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),xa(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===o.tag)l=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(l=o.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),xa(l,n,t),l=o.sibling}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===t){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}kl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sa(t,n),r=r(i=Ea(i)),t.flags|=1,kl(e,t,r,n),t.child;case 14:return i=ya(r=t.type,t.pendingProps),xl(e,t,r,i=ya(r.type,i),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ya(r,i),Wl(e,t),t.tag=1,Ii(r)?(e=!0,Li(t)):e=!1,Sa(t,n),Ha(t,r,i),$a(t,r,i,n),Tl(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return El(e,t,n)}throw Error(a(156,t.tag))};var Zu="function"===typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof i){var l=i;i=function(){var e=$u(o);l.call(e)}}Wu(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=$u(o);a.call(e)}}var o=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=o,e[pi]=o.current,jr(8===e.nodeType?e.parentNode:e),du(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var l=r;r=function(){var e=$u(s);l.call(e)}}var s=Vu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[pi]=s.current,jr(8===e.nodeType?e.parentNode:e),du((function(){Wu(t,s,n,r)})),s}(n,t,e,i,r);return $u(o)}Xu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Wu(e,t,null,null)},Xu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Wu(null,e,null,null)})),t[pi]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Bt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(gt(t,1|n),iu(t,Ge()),0===(6&Ts)&&(Hs=Ge()+500,ji()))}break;case 13:du((function(){var t=Ta(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Qu(e,1)}},_t=function(e){if(13===e.tag){var t=Ta(e,134217728);if(null!==t)ru(t,e,134217728,tu());Qu(e,134217728)}},xt=function(e){if(13===e.tag){var t=nu(e),n=Ta(e,t);if(null!==n)ru(n,e,t,tu());Qu(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(K(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ki(r);if(!i)throw Error(a(90));Q(r),K(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=cu,Te=du;var tc={usingClientEntryPoint:!1,Events:[bi,wi,ki,Pe,Ce,cu]},nc={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),at=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(a(299));var n=!1,r="",i=Zu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Vu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,jr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",l=Zu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,i,0,o,l),e[pi]=t.current,jr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xu(t)},t.render=function(e,t,n){if(!Ku(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(a(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},250:(e,t,n)=>{"use strict";var r=n(164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},164:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},374:(e,t,n)=>{"use strict";var r=n(791),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:l.current}}t.jsx=u,t.jsxs=u},117:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,y={};function m(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||p}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var w=b.prototype=new g;w.constructor=b,v(w,m.prototype),w.isPureReactComponent=!0;var k=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,a={},o=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)_.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(i in s=e.defaultProps)void 0===a[i]&&(a[i]=s[i]);return{$$typeof:n,type:e,key:o,ref:l,props:a,_owner:x.current}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function R(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,a,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return o=o(s=e),e=""===a?"."+R(s,0):a,k(o)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),T(o,t,i,"",(function(e){return e}))):null!=o&&(P(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(s=0,a=""===a?".":a+":",k(e))for(var u=0;u<e.length;u++){var c=a+R(l=e[u],u);s+=T(l,t,i,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=T(l=l.value,t,i,c=a+R(l,u++),o);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function z(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},M={transition:null},A={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:M,ReactCurrentOwner:x};t.Children={map:z,forEach:function(e,t,n){z(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return z(e,(function(){t++})),t},toArray:function(e){return z(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),a=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)_.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},791:(e,t,n)=>{"use strict";e.exports=n(117)},184:(e,t,n)=>{"use strict";e.exports=n(374)},813:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<i&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,h=null,f=3,p=!1,v=!1,y=!1,m="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(y=!1,w(e),!v)if(null!==r(u))v=!0,M(_);else{var t=r(c);null!==t&&A(k,t.startTime-e)}}function _(e,n){v=!1,y&&(y=!1,g(P),P=-1),p=!0;var a=f;try{for(w(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!T());){var o=h.callback;if("function"===typeof o){h.callback=null,f=h.priorityLevel;var l=o(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?h.callback=l:h===r(u)&&i(u),w(n)}else i(u);h=r(u)}if(null!==h)var s=!0;else{var d=r(c);null!==d&&A(k,d.startTime-n),s=!1}return s}finally{h=null,f=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,E=null,P=-1,C=5,R=-1;function T(){return!(t.unstable_now()-R<C)}function z(){if(null!==E){var e=t.unstable_now();R=e;var n=!0;try{n=E(!0,e)}finally{n?x():(S=!1,E=null)}}else S=!1}if("function"===typeof b)x=function(){b(z)};else if("undefined"!==typeof MessageChannel){var O=new MessageChannel,I=O.port2;O.port1.onmessage=z,x=function(){I.postMessage(null)}}else x=function(){m(z,0)};function M(e){E=e,S||(S=!0,x())}function A(e,n){P=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,M(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(y?(g(P),P=-1):y=!0,A(k,a-o))):(e.sortIndex=l,n(u,e),v||p||(v=!0,M(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},296:(e,t,n)=>{"use strict";e.exports=n(813)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".9c5e822e.chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="dummy:";n.l=(r,i,a,o)=>{if(e[r])e[r].push(i);else{var l,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+a),l.src=r),e[r]=[i];var h=(t,n)=>{l.onerror=l.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e={179:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var a=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=a);var o=n.p+n.u(t),l=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,i[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,a,o=r[0],l=r[1],s=r[2],u=0;if(o.some((t=>0!==e[t]))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(s)s(n)}for(t&&t(r);u<o.length;u++)a=o[u],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkdummy=self.webpackChunkdummy||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(791),t=n(250),r=n(222),i=n.n(r),a=n(848),o=n.n(a),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},d=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},h=function(){function e(){s(this,e),this.list=[]}return u(e,[{key:"set",value:function(e,t){this.list.push({probability:e,target:t,a:0,b:1}),this.calculation()}},{key:"calculation",value:function(){for(var e=0,t=0;t<this.list.length;t++)e+=this.list[t].probability;for(var n=0;n<this.list.length;n++){var r=this.list[n],i=r.probability/e;r.a=0===n?0:this.list[n-1].b,r.b=r.a+i}}},{key:"getResult",value:function(){for(var e=Math.random(),t=0;t<this.list.length;t++){var n=this.list[t];if(e<=n.b&&e>n.a)return n.target}return this.list[0].target}}]),e}(),f=function(t){function n(t){s(this,n);var r=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return r._iid=0,r._oid=0,r.size={width:0,height:0},r.canvasRef=e.createRef(),r}return c(n,t),u(n,[{key:"componentDidMount",value:function(){var e=this;this._oid=setTimeout((function(){e.initCanvas(),e.resize=e.resize.bind(e),window.addEventListener("resize",e.resize)}),100);var t=this.getCanvas();this.props.onCanvasDidMount&&this.props.onCanvasDidMount(t)}},{key:"initCanvas",value:function(){var e=this.getCanvas();this.props.globalCompositeOperation&&(e.getContext("2d").globalCompositeOperation=this.props.globalCompositeOperation);var t=this.setCanvasSize(e),n=t.width,r=t.height;this.heartbeatDetectionCanvasSize(e),this.props.onCanvasInited(e,n,r)}},{key:"getCanvas",value:function(){return this.canvasRef.current}},{key:"heartbeatDetectionCanvasSize",value:function(e){var t=this;this._iid=setInterval((function(){if(t.canvasRef.current&&t.canvasRef.current.clientHeight!==t.size.height){var n=t.setCanvasSize(e),r=n.width,i=n.height;t.props.onResize&&t.props.onResize(r,i)}}),100)}},{key:"componentWillUnmount",value:function(){try{window.removeEventListener("resize",this.resize),clearInterval(this._iid),clearTimeout(this._oid)}catch(e){}}},{key:"resize",value:function(){var e=this.getCanvas(),t=this.setCanvasSize(e),n=t.width,r=t.height;this.props.onResize&&this.props.onResize(n,r)}},{key:"setCanvasSize",value:function(e){var t=this.canvasRef.current.clientWidth,n=this.canvasRef.current.clientHeight;return this.size.width=t,this.size.height=n,e.width=t,e.height=n,{width:t,height:n}}},{key:"handleWaypointEnter",value:function(){i().start()}},{key:"handleWaypointLeave",value:function(){i().stop()}},{key:"getStyle",value:function(){var e=this.props.bg,t={width:"100%",height:"100%"};return!0===e?t=Object.assign(t,{position:"absolute",zIndex:-1,top:0,left:0}):e&&"object"===("undefined"===typeof e?"undefined":l(e))&&(t=Object.assign(t,e)),t}},{key:"handleMouseDown",value:function(e){this.props.onMouseDown&&this.props.onMouseDown(e)}},{key:"render",value:function(){return e.createElement("canvas",{className:"particles-bg-canvas-self",ref:this.canvasRef,onMouseDown:this.handleMouseDown.bind(this),style:this.getStyle()})}}]),n}(e.Component);function p(e,t){var n=void 0;return e?"rgba("+(n=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{}}(e)).r+","+n.g+","+n.b+", "+t+")":null}var v=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),this.createMiniEmitter(e),i().add(this.renderProton)}},{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e,t,n){var r=this,i=e.getContext("2d");this.proton=new(o());var a=new(o().Emitter);a.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(4,9),new(o().Span)(.8,1.3)),a.addInitialize(new(o().Mass)(1)),a.addInitialize(new(o().Radius)(1,50)),a.addInitialize(new(o().Life)(5,6)),a.addInitialize(new(o().Velocity)(new(o().Span)(5,8),new(o().Span)(30,70),"polar")),a.addBehaviour(new(o().Alpha)(1,0)),a.addBehaviour(new(o().Color)(["#36aaf3","#fd769c","#94ff22","#ffa545","#ffffff"])),a.addBehaviour(new(o().Scale)(.7,1)),a.addBehaviour(new(o().Gravity)(3)),a.addBehaviour(new(o().Collision)(a)),a.addBehaviour(this.customDeadBehaviour(e)),a.addBehaviour(new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"bound")),a.p.x=Math.min(500,Math.max(e.width/2-400,50)),a.p.y=e.height/2+50,a.emit(),this.proton.addEmitter(a);var l=new(o().CanvasRenderer)(e);l.onProtonUpdate=function(){i.fillStyle=p(r.props.color,.2)||"rgba(255, 255, 255, 0.2)",i.fillRect(0,0,e.width,e.height)},this.proton.addRenderer(l)}},{key:"customDeadBehaviour",value:function(e){var t=this;return{initialize:function(e){},applyBehaviour:function(n){n.p.y+n.radius>=e.height&&n.radius>9&&(t.miniEmitteing(n),n.dead=!0)}}}},{key:"createMiniEmitter",value:function(e){var t=new(o().Emitter);t.rate=new(o().Rate)(new(o().Span)(3,6),new(o().Span)(1,2)),t.addInitialize(new(o().Mass)(1)),t.radiusInitialize=new(o().Radius),t.addInitialize(t.radiusInitialize),t.addInitialize(new(o().Life)(.5,1)),t.addInitialize(new(o().V)(new(o().Span)(1.5,3),new(o().Span)(0,70,!0),"polar")),t.colorBehaviour=new(o().Color)("#ffffff"),t.addBehaviour(new(o().Alpha)(1,0)),t.addBehaviour(t.colorBehaviour),t.addBehaviour(new(o().Gravity)(4)),t.addBehaviour(new(o().Collision)(t)),t.addBehaviour(new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"bound")),this.proton.addEmitter(t),this.miniEmitter=t}},{key:"miniEmitteing",value:function(e){var t=this.miniEmitter;t.radiusInitialize.reset(.05*e.radius,.2*e.radius),t.colorBehaviour.reset(e.color),t.p.x=e.p.x,t.p.y=e.p.y,t.emit("once")}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),y=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#529B88","#CDD180","#FFFA32","#FB6255","#FB4A53","#FF4E50","#F9D423"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(5,8),new(o().Span)(.1,.25)),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(20,200)),r.addInitialize(new(o().Life)(2,4)),r.addInitialize(new(o().Position)(new(o().RectZone)(0,0,t,n))),r.addBehaviour(new(o().Alpha)(0,1,1/0,o().easeOutCubic)),r.addBehaviour(new(o().Scale)(1,0,1/0,o().easeOutCubic)),r.addBehaviour(new(o().Color)(this.colors,"random")),r.emit(),this.proton.addEmitter(r);var i=new(o().CanvasRenderer)(e);this.proton.addRenderer(i)}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),m=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#529B88","#CDD180","#FFFA32","#FB6255","#FB4A53","#FF4E50","#F9D423"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"getProp",value:function(e,t){var n=(this.props.config||{})[e]||t;return Array.isArray(n)?new(o().Span)(n[0],n[1]):n}},{key:"getArrProp",value:function(e,t){var n=(this.props.config||{})[e]||t;return n?Array.isArray(n)?n:[n,n]:null}},{key:"createProton",value:function(e,t,n){var r=this.getProp("num",[5,8]),i=this.getProp("rps",[.1,.2]),a=this.getProp("mass",1),s=this.getProp("radius",[10,30]),u=this.getProp("life",[2,3]),c=this.getProp("body"),d=this.getProp("position"),h=this.getProp("v",[2,3]),f=this.getProp("tha",[-15,15]),p=this.getArrProp("alpha"),v=this.getArrProp("scale"),y=this.getArrProp("color"),m=this.getProp("cross","dead"),g=this.getProp("random"),b=this.getArrProp("rotate"),w=this.getProp("g"),k=this.getArrProp("f"),_=this.getProp("emitter");this.proton=new(o());var x=void 0;(x="follow"===_?new(o().FollowEmitter):new(o().Emitter)).rate=new(o().Rate)(r,i),x.addInitialize(new(o().Mass)(a)),x.addInitialize(new(o().Radius)(s)),x.addInitialize(new(o().Life)(u)),x.addInitialize(new(o().Velocity)(h,f,"polar")),c&&x.addInitialize(new(o().Body)(c));var S=void 0;"all"===d||"screen"===d?S=new(o().Position)(new(o().RectZone)(0,0,e.width,e.height)):"object"===("undefined"===typeof d?"undefined":l(d))?S=new(o().Position)(new(o().RectZone)(d.x,d.y,d.width,d.height)):(x.p.x=e.width/2,x.p.y=e.height/2),x.addInitialize(S);var E=p?new(o().Alpha)(p[0],p[1]):new(o().Alpha)(0,1),P=v?new(o().Scale)(v[0],v[1]):new(o().Scale)(1,.2),C=y?new(o().Color)(y[0],y[1]):new(o().Color)(this.colors);x.addBehaviour(E),x.addBehaviour(P),c||x.addBehaviour(C),b&&(!0===b[0]||"rotate"===b[0]?x.addBehaviour(new(o().Rotate)):x.addBehaviour(new(o().Rotate)(b[0],b[1])));var R=new(o().RectZone)(0,0,e.width,e.height),T=new(o().CrossZone)(R,m);x.addBehaviour(T),g&&x.addBehaviour(new(o().RandomDrift)(g,g,.05)),w&&x.addBehaviour(new(o().G)(w)),k&&x.addBehaviour(new(o().F)(k[0],k[1])),x.emit(),this.proton.addEmitter(x);var z=this.createRenderer(e);this.proton.addRenderer(z),this.emitter=x,this.crossZoneBehaviour=T}},{key:"createRenderer",value:function(e){var t=e.width,n=e.height,r=e.getContext("2d"),i=new(o().CanvasRenderer)(e),a=this.getProp("onUpdate");a&&(i.onProtonUpdate=function(){a(r,t,n)});var l=this.getProp("onParticleCreated");l&&(i.onParticleCreated=function(e){l(r,e)});var s=this.getProp("onParticleUpdate");return s&&(i.onParticleUpdate=function(e){s(r,e)}),i}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"handleMouseDown",value:function(e){var t=this.getProp("onMouseDown");t&&t(e)}},{key:"render",value:function(){var t=this.props.globalCompositeOperation||this.props.operation||"source-over";return e.createElement(f,{bg:this.props.bg,onMouseDown:this.handleMouseDown.bind(this),globalCompositeOperation:t,onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),g=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasDidMount",value:function(e){this.props.color&&(e.style.backgroundColor=this.props.color)}},{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.damping=.008,r.rate=new(o().Rate)(this.props.num?this.props.num:250),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(4)),r.addInitialize(new(o().Velocity)(new(o().Span)(1.5),new(o().Span)(0,360),"polar"));var i={x:t/2,y:n/2},a=new(o().Attraction)(i,0,0),l=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"cross");r.addBehaviour(new(o().Color)("random")),r.addBehaviour(a,l),r.addBehaviour(new(o().RandomDrift)(10,10,.05)),r.p.x=e.width/2,r.p.y=e.height/2,r.emit("once"),this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e)),this.crossZoneBehaviour=l}},{key:"createRenderer",value:function(e){var t=this,n=e.getContext("2d"),r=new(o().CanvasRenderer)(e);return r.onProtonUpdate=function(){n.fillStyle=p(t.props.color,.02)||"rgba(0, 0, 0, 0.02)",n.fillRect(0,0,e.width,e.height)},r.onParticleUpdate=function(e){n.beginPath(),n.strokeStyle=e.color,n.lineWidth=1,n.moveTo(e.old.p.x,e.old.p.y),n.lineTo(e.p.x,e.p.y),n.closePath(),n.stroke()},r}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),b=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.hue=0,t.index=0,t.colorTemplate="hsla(hue,80%,50%, 0.75)",t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasDidMount",value:function(e){this.props.color&&(e.style.backgroundColor=this.props.color)}},{key:"onCanvasInited",value:function(e,t,n){this.canvas=e,this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.damping=.008,r.rate=new(o().Rate)(this.props.num?this.props.num:150),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(8)),r.addInitialize(new(o().V)(new(o().Span)(.1,.5),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().CircleZone)(e.width/2,e.height/2,100)));var i=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"cross");r.addBehaviour(i),this.repulsion=new(o().Repulsion)({x:e.width/2,y:e.height/2-100},3,300),this.attraction=new(o().Attraction)({x:e.width/2,y:e.height/2},3,200),r.addBehaviour(this.attraction,this.repulsion),r.addBehaviour(new(o().Color)("random")),r.addBehaviour(new(o().RandomDrift)(20,15,.15)),r.emit("once"),this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e)),this.crossZoneBehaviour=i}},{key:"createRenderer",value:function(e){var t=this,n=e.getContext("2d"),r=new(o().CanvasRenderer)(e);return r.onProtonUpdate=function(){t.hue+=1,n.fillStyle=p(t.props.color,.02)||"rgba(0, 0, 0, 0.02)",n.fillRect(0,0,e.width,e.height)},r.onParticleCreated=function(e){e.data.begin=o().MathUtil.randomAToB(1,120),e.data.tha=o().MathUtil.randomAToB(0,2*Math.PI)},r.onParticleUpdate=function(e){var r=e.data.begin+t.hue;e.color=t.colorTemplate.replace("hue",r%360);var i=.25*e.radius*Math.cos(e.data.tha+=.01)+.75*e.radius;n.beginPath(),n.fillStyle=e.color,n.arc(e.p.x,e.p.y,i,0,2*Math.PI,!0),n.closePath(),n.fill()},r}},{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"renderProton",value:function(){var e=this.canvas;this.proton.update(),this.index%200===0&&(this.attraction.targetPosition.x=Math.random()*e.width,this.attraction.targetPosition.y=Math.random()*e.height,this.repulsion.targetPosition.x=Math.random()*e.width,this.repulsion.targetPosition.y=Math.random()*e.height),this.index++}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),w=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#fad390","#81ecec","#ffffff","#badc58","#f9ca24","#FEA47F"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasDidMount",value:function(e){}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e+300,this.crossZoneBehaviour.zone.height=t+300,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?this.props.num:50),r.damping=0,r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(4,70)),r.addInitialize(new(o().Velocity)(new(o().Span)(2,10),new(o().Span)(0),"polar")),r.addInitialize(new(o().Position)(new(o().LineZone)(0,e.height,e.width,e.height)));var i=new(o().CrossZone)(new(o().RectZone)(-150,-150,e.width+300,e.height+300),"cross");r.addBehaviour(i),r.addBehaviour(new(o().Alpha)(o().getSpan(.1,.55))),r.addBehaviour(new(o().Color)(this.colors)),r.emit("once"),this.proton.addEmitter(r);var a=this.createRenderer(e);this.proton.addRenderer(a),this.crossZoneBehaviour=i,r.preEmit(2)}},{key:"createRenderer",value:function(e){var t=e.getContext("2d"),n=new(o().CustomRenderer);return n.onProtonUpdate=function(){t.clearRect(0,0,e.width,e.height)},n.onParticleCreated=function(e){var t=e.radius||60,n=o().MathUtil.randomAToB(100,200,"int");e.data.w=t,e.data.h=n},n.onParticleUpdate=function(e){var n=e.data.w,r=e.data.h;t.save(),t.globalAlpha=e.alpha,t.fillStyle=e.color,t.translate(e.p.x,e.p.y),t.rotate(o().MathUtil.degreeTransform(e.rotation)),t.translate(-e.p.x,-e.p.y),t.beginPath(),t.rect(e.p.x-n/2,e.p.y-r/2,n,r),t.closePath(),t.fill(),t.globalAlpha=1,t.restore()},n}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"lighter",onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),k=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(100),new(o().Span)(.05,.2)),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(1,4)),r.addInitialize(new(o().Life)(1/0));var i=new(o().Position)(new(o().RectZone)(0,0,t,n));r.addInitialize(i),r.addInitialize(new(o().Velocity)(new(o().Span)(.3,.6),new(o().Span)(0,360),"polar")),r.addBehaviour(new(o().Alpha)(o().getSpan(.2,.9))),r.addBehaviour(new(o().Color)(this.props.color||"#333")),this.crossZoneBehaviour=new(o().CrossZone)(new(o().RectZone)(0,0,t,n),"cross"),r.addBehaviour(this.crossZoneBehaviour),r.emit("once"),r.damping=0,this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e,r))}},{key:"createRenderer",value:function(e,t){var n=this,r=e.getContext("2d"),i=new(o().CanvasRenderer)(e);return i.onProtonUpdateAfter=function(){for(var e=t.particles,i=0;i<e.length;i++)for(var a=i+1;a<e.length;a++){var o=e[i],l=e[a],s=o.p.distanceTo(l.p);if(s<140){var u=.5*(1-s/140);r.strokeStyle=p(n.props.color,u)||"rgba(3, 3, 3, "+u+")",r.beginPath(),r.moveTo(o.p.x,o.p.y),r.lineTo(l.p.x,l.p.y),r.closePath(),r.stroke()}}},i}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),_=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#74b9ff","#e84393","#6c5ce7","#00b894","#fdcb6e","#006266","#1B1464"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num||20),r.damping=.008,r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(30,600)),r.addInitialize(new(o().Velocity)(new(o().Span)(.5),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().RectZone)(0,0,e.width,e.height)));var i=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"cross");r.addBehaviour(i),r.addBehaviour(new(o().Alpha)(o().getSpan(.35,.55))),r.addBehaviour(new(o().Color)(this.getColor())),r.addBehaviour(new(o().RandomDrift)(50,50,.5)),r.emit("once"),this.proton.addEmitter(r);var a=new(o().CanvasRenderer)(e);this.proton.addRenderer(a),this.crossZoneBehaviour=i}},{key:"getColor",value:function(){var e=this.colors;return this.props.color&&(e=Array.isArray(this.props.color)?this.props.color:[this.props.color]),e}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darken",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),x=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasDidMount",value:function(e){}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),this.renderProton()}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.damping=.008,r.rate=new(o().Rate)(this.props.num?this.props.num:50),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(5,9)),r.addInitialize(new(o().Velocity)(new(o().Span)(1.5),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().RectZone)(0,0,t,n)));var i={x:t/2,y:n/2},a=new(o().Attraction)(i,0,0),l=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"bound");r.addBehaviour(new(o().Color)(this.props.color||"#bbb")),r.addBehaviour(a,l),r.addBehaviour(new(o().RandomDrift)(15,15,.05)),r.emit("once"),this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e)),this.crossZoneBehaviour=l}},{key:"createRenderer",value:function(e){var t=e.getContext("2d"),n=new(o().CanvasRenderer)(e);n.onProtonUpdate=function(){t.clearRect(0,0,e.width,e.height)},n.onParticleCreated=function(e){e.data.points=[],e.data.index=0},n.onParticleUpdate=function(e){a(e),e.data.index%8===0&&r(e),i(e),e.data.index++};var r=function(e){e.data.points.unshift(e.p.y),e.data.points.unshift(e.p.x),e.data.points.length>10&&(e.data.points.pop(),e.data.points.pop())},i=function(e){t.fillStyle=e.color,t.beginPath(),t.arc(e.p.x,e.p.y,e.radius,0,2*Math.PI,!0),t.closePath(),t.fill()},a=function(e){t.beginPath(),t.strokeStyle=e.color,t.moveTo(e.p.x,e.p.y);for(var n=e.data.points.length,r=0;r<n;r+=2){var i=e.data.points[r],a=e.data.points[r+1];t.lineWidth=l(r,n),t.lineTo(i,a),t.stroke()}},l=function(e,t){if(t<=2)return 1;var n=5/(2/t-1),r=n*((e+2)/t)+(1-n);return r>>=0};return n}},{key:"renderProton",value:function(){var e=this;i().add((function(){e.proton.update()}))}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),S=["#f6b93b","#18dcff","#cd84f1","#ED4C67","#ffffff","#b71540","#32ff7e","#ff3838"],E=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasInited",value:function(e,t,n){this.createProton(e),this.createEmitter({canvas:e,x:t/2,y:n/2,mainEmitter:!0,zone:"bound"}),i().add(this.renderProton)}},{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e){this.proton=new(o());var t=this.createRenderer(e);this.proton.addRenderer(t)}},{key:"createRenderer",value:function(e){var t=e.getContext("2d"),n=new(o().CustomRenderer);n.onProtonUpdate=function(){t.clearRect(0,0,e.width,e.height)},n.onParticleCreated=function(e){e.data.count=o().MathUtil.randomAToB(3,10,!0)},n.onParticleUpdate=function(e){t.save(),t.globalAlpha=e.alpha,t.fillStyle=e.color,t.translate(e.p.x,e.p.y),t.rotate(o().MathUtil.degreeTransform(e.rotation)),t.translate(-e.p.x,-e.p.y),t.beginPath(),r(e,e.data.count),t.closePath(),t.fill(),t.globalAlpha=1,t.restore()},n.onParticleDead=function(e){};var r=function(e,n){if(n>=7)t.arc(e.p.x,e.p.y,e.radius,0,2*Math.PI,!0);else for(var r=e.radius,i=0;i<=n;i++){var a=e.p.x+r*Math.cos(Math.PI/180*360/n*i),o=e.p.y+r*Math.sin(Math.PI/180*360/n*i);0===i?t.moveTo(a,o):t.lineTo(a,o)}};return n}},{key:"createEmitter",value:function(e){var t=e.mainEmitter,n=e.canvas,r=e.x,i=e.y,a=e.radius,l=e.color,s=void 0===l?S:l,u=e.zone,c=void 0===u?"dead":u,d=e.once,h=void 0===d?"all":d,f=e.alpha,p=void 0===f?.85:f,v=e.gravity,y=void 0===v?3.5:v,m=this.proton.pool.get(o().Emitter);if(!m.completed){m.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(4,9),new(o().Span)(1.6,2.2));var g=t?new(o().Radius)(10,110):new(o().Radius)(3,a);m.addInitialize(new(o().Mass)(1)),m.addInitialize(g),m.addInitialize(new(o().Life)(3,6)),m.addInitialize(new(o().Velocity)(new(o().Span)(4,6),new(o().Span)(-90,90),"polar")),m.addBehaviour(new(o().Alpha)(p,.2)),m.addBehaviour(new(o().Color)(s)),m.addBehaviour(new(o().Scale)(1,.3)),m.addBehaviour(new(o().Rotate)),m.addBehaviour(new(o().Gravity)(y)),m.addBehaviour(this.customDeadBehaviour(n)),m.addBehaviour(new(o().CrossZone)(new(o().RectZone)(0,0,n.width,n.height),c))}m.p.x=r,m.p.y=i,"once"===h?m.emit("once"):m.emit(),this.proton.addEmitter(m)}},{key:"expireEmitter",value:function(e){var t=this;setTimeout((function(){e.completed=!0,t.proton.pool.expire(e),t.proton.removeEmitter(e)}),500)}},{key:"customDeadBehaviour",value:function(e){var t=this;return{initialize:function(e){e.data=e.data||{},e.data.oldRadius=e.radius,e.data.emitterCount=0},applyBehaviour:function(n){n.radius<5||n.data.emitterCount>=2||n.radius<=1/3*n.data.oldRadius&&(n.data.emitterCount++,t.createEmitter({canvas:e,x:n.p.x,y:n.p.y,radius:.5*n.radius,alpha:.5,gravity:5,color:n.color,once:"once"}))}}}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),P=function(t){function n(e){s(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#529B88","#CDD180","#FFFA32","#FB6255","#FB4A53","#FF4E50","#F9D423"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{i().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),i().add(this.renderProton)}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(4,8),new(o().Span)(.1,.25)),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(20,200)),r.addInitialize(new(o().Life)(2,4)),r.addInitialize(new(o().Velocity)(new(o().Span)(4,7),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().CircleZone)(t/2,n/2,100))),r.addBehaviour(new(o().Alpha)(1,0)),r.addBehaviour(new(o().Scale)(.2,1)),r.addBehaviour(this.createCustomBehaviour()),r.addBehaviour(new(o().Color)(this.colors,"random")),r.emit(),this.proton.addEmitter(r);var i=new(o().CanvasRenderer)(e);this.proton.addRenderer(i)}},{key:"createCustomBehaviour",value:function(){return{initialize:function(e){e.f=new(o().Vector2D)(0,0)},applyBehaviour:function(e){var t=e.v.length()/1e3,n=e.v.getGradient();n+=1.57,e.f.x=1e3*t*Math.cos(n),e.f.y=1e3*t*Math.sin(n),e.a.add(e.f)}}}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(f,{bg:this.props.bg,globalCompositeOperation:"xor",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component);const C=function(t){function n(e){return s(this,n),d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))}return c(n,t),u(n,[{key:"getRandom",value:function(){var t=this.props,n=t.num,r=t.bg,i=t.color;return this.random||(this.random=new h,this.random.set(.25,e.createElement(y,{num:n,bg:r,color:i})),this.random.set(.2,e.createElement(v,{num:n,bg:r,color:i})),this.random.set(.2,e.createElement(g,{num:n,bg:r,color:i})),this.random.set(.16,e.createElement(b,{num:n,bg:r,color:i})),this.random.set(.18,e.createElement(_,{num:n,bg:r,color:i})),this.random.set(.04,e.createElement(k,{num:n,bg:r,color:i})),this.random.set(.1,e.createElement(E,{num:n,bg:r,color:i})),this.random.set(.08,e.createElement(w,{num:n,bg:r,color:i})),this.random.set(.18,e.createElement(x,{num:n,bg:r,color:i})),this.random.set(.15,e.createElement(P,{num:n,bg:r,color:i}))),this.random.getResult()}},{key:"getBgParticles",value:function(){var t=this.props,n=t.type,r=t.num,i=t.bg,a=t.color,o=t.config,l=void 0;switch(String(n).toLowerCase()){case"color":default:l=e.createElement(y,{num:r,bg:i,color:a});break;case"ball":l=e.createElement(v,{num:r,bg:i,color:a});break;case"lines":l=e.createElement(g,{num:r,bg:i,color:a});break;case"thick":l=e.createElement(b,{num:r,bg:i,color:a});break;case"circle":l=e.createElement(_,{num:r,bg:i,color:a});break;case"cobweb":l=e.createElement(k,{num:r,bg:i,color:a});break;case"polygon":l=e.createElement(E,{num:r,bg:i,color:a});break;case"square":l=e.createElement(w,{num:r,bg:i,color:a});break;case"tadpole":l=e.createElement(x,{num:r,bg:i,color:a});break;case"fountain":l=e.createElement(P,{num:r,bg:i,color:a});break;case"custom":l=e.createElement(m,{bg:i,config:o});break;case"random":l=this.getRandom(r)}return l}},{key:"render",value:function(){var t=this.getBgParticles();return e.createElement(e.Fragment,null,t)}}]),n}(e.Component);var R=n(184),T=Object.defineProperty,z=Object.defineProperties,O=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,D=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t)=>{for(var n in t||(t={}))M.call(t,n)&&D(e,n,t[n]);if(I)for(var n of I(t))A.call(t,n)&&D(e,n,t[n]);return e},B=(e,t)=>z(e,O(t)),N=class extends e.Component{constructor(t){super(t),this.ref=e.createRef(),this.state={style:{}};this.width=null,this.height=null,this.left=null,this.top=null,this.transitionTimeout=null,this.updateCall=null,this.element=null,this.settings=Object.assign({},{reverse:!1,max:35,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:"1.1",speed:"1000",transition:!0,axis:null,reset:!0},this.props.options),this.reverse=this.settings.reverse?-1:1,this.onMouseEnter=this.onMouseEnter.bind(this,this.props.onMouseEnter),this.onMouseMove=this.onMouseMove.bind(this,this.props.onMouseMove),this.onMouseLeave=this.onMouseLeave.bind(this,this.props.onMouseLeave)}componentDidMount(){this.element=this.ref.current,setTimeout((()=>{this.element.parentElement.querySelector(":hover")===this.element&&this.onMouseEnter()}),0)}componentWillUnmount(){clearTimeout(this.transitionTimeout),cancelAnimationFrame(this.updateCall)}onMouseEnter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0;return this.updateElementPosition(),this.setState(Object.assign({},this.state,{style:B(L({},this.state.style),{willChange:"transform"})})),this.setTransition(),e(t)}reset(){window.requestAnimationFrame((()=>{this.setState(Object.assign({},this.state,{style:B(L({},this.state.style),{transform:"perspective(".concat(this.settings.perspective,"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)")})}))}))}onMouseMove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0;return t.persist(),null!==this.updateCall&&window.cancelAnimationFrame(this.updateCall),this.event=t,this.updateCall=requestAnimationFrame(this.update.bind(this,t)),e(t)}setTransition(){clearTimeout(this.transitionTimeout),this.setState(Object.assign({},this.state,{style:B(L({},this.state.style),{transition:"".concat(this.settings.speed,"ms ").concat(this.settings.easing)})})),this.transitionTimeout=setTimeout((()=>{this.setState(Object.assign({},this.state,{style:B(L({},this.state.style),{transition:""})}))}),this.settings.speed)}onMouseLeave(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0;return this.setTransition(),this.settings.reset&&this.reset(),e(t)}getValues(e){const t=(e.nativeEvent.clientX-this.left)/this.width,n=(e.nativeEvent.clientY-this.top)/this.height,r=Math.min(Math.max(t,0),1),i=Math.min(Math.max(n,0),1);return{tiltX:(this.reverse*(this.settings.max/2-r*this.settings.max)).toFixed(2),tiltY:(this.reverse*(i*this.settings.max-this.settings.max/2)).toFixed(2),percentageX:100*r,percentageY:100*i}}updateElementPosition(){const e=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=e.left,this.top=e.top}update(e){const t=this.getValues(e);this.setState(Object.assign({},this.state,{style:B(L({},this.state.style),{transform:"perspective(".concat(this.settings.perspective,"px) rotateX(").concat("x"===this.settings.axis?0:t.tiltY,"deg) rotateY(").concat("y"===this.settings.axis?0:t.tiltX,"deg) scale3d(").concat(this.settings.scale,", ").concat(this.settings.scale,", ").concat(this.settings.scale,")")})})),this.updateCall=null}render(){const e=Object.assign({},this.props.style,this.state.style);return(0,R.jsx)("div",{style:e,ref:this.ref,className:this.props.className,onMouseEnter:this.onMouseEnter,onMouseMove:this.onMouseMove,onMouseLeave:this.onMouseLeave,children:this.props.children})}};const F=n.p+"static/media/img.8d314c6eb13d123018f3.png",U=()=>(0,R.jsx)("div",{className:"pa2 ma4 mt0",children:(0,R.jsx)(N,{className:"br2 shadow-2",style:{height:80,width:80},children:(0,R.jsx)("div",{className:"",children:(0,R.jsx)("img",{alt:"img",src:F})})})}),V=e=>{let{onInputChange:t,onButtonSubmit:n}=e;return(0,R.jsxs)("div",{children:[(0,R.jsx)("p",{className:"f3",children:"Faces Will be Detected Here"}),(0,R.jsx)("div",{className:"center",children:(0,R.jsxs)("div",{className:"pa4 br3 shadow-5",children:[(0,R.jsx)("input",{className:"f4 pa2 w-70 center",type:"text",onChange:t}),(0,R.jsx)("button",{className:"ma4 pointer button",onClick:n,children:"Detect"})]})})]})},j=e=>{let{imageUrl:t,box:n}=e;return(0,R.jsx)("div",{className:"center ma",children:(0,R.jsxs)("div",{className:"absolute mt2",children:[(0,R.jsx)("img",{id:"inputimage",alt:"",src:t,width:"500px",height:"auto"}),(0,R.jsx)("div",{className:"bounding-box",style:{top:n.topRow,bottom:n.bottomRow,left:n.leftCol,right:n.rightCol}})]})})};class H extends e.Component{constructor(){super(),this.calculateFaceLocation=e=>{const t=e.outputs[0].data.regions[0].region_info.bounding_box,n=document.getElementById("inputimage"),r=Number(n.width),i=Number(n.height);return{leftCol:t.left_col*r,topRow:t.top_row*i,rightCol:r-t.right_col*r,bottomRow:i-t.bottom_row*i}},this.displayFaceBox=e=>{console.log(e),this.setState({box:e})},this.onInputChange=e=>{this.setState({input:e.target.value})},this.onButtonSubmit=()=>{this.setState({imageUrl:this.state.input}),fetch("https://api.clarifai.com/v2/models/face-detection/outputs",(e=>{const t=e;return{method:"POST",headers:{Accept:"application/json",Authorization:"Key 9a79ac5267f54073853713833271f89d"},body:JSON.stringify({user_app_id:{user_id:"tanmaymachkar",app_id:"test"},inputs:[{data:{image:{url:t}}}]})}})(this.state.input)).then((e=>e.json())).then((e=>this.displayFaceBox(this.calculateFaceLocation(e)))).catch((e=>console.log(e)))},this.state={input:"",imageUrl:"",box:{}}}render(){return(0,R.jsxs)("div",{className:"App",children:[(0,R.jsx)(U,{}),(0,R.jsx)(V,{onInputChange:this.onInputChange,onButtonSubmit:this.onButtonSubmit}),(0,R.jsx)(j,{box:this.state.box,imageUrl:this.state.imageUrl}),(0,R.jsx)(C,{type:"circle",bg:!0})]})}}const W=H,$=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:a,getTTFB:o}=t;n(e),r(e),i(e),a(e),o(e)}))};t.createRoot(document.getElementById("root")).render((0,R.jsx)(e.StrictMode,{children:(0,R.jsx)(W,{})})),$()})()})();
//# sourceMappingURL=main.0b821458.js.map