!function r(n,o,s){function a(e,t){if(!o[e]){if(!n[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(h)return h(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}i=o[e]={exports:{}},n[e][0].call(i.exports,function(t){return a(n[e][1][t]||t)},i,i.exports,r,n,o,s)}return o[e].exports}for(var h="function"==typeof require&&require,t=0;t title : "+t.title+"
tabIndex: "+t.tabIndex},o.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0),t.x+t.width>this.renderer.width&&(t.width=this.renderer.width-t.x),t.y+t.height>this.renderer.height&&(t.height=this.renderer.height-t.y)},o.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width=n+"px",e.style.height=n+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2..toString(),e.style.borderStyle="none",-1]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var ot,st=p;function p(t,e){var i=this;return e=e||{},(i=ot.call(this,document.createElement("canvas"))||this)._width=0,i._height=0,i.svg=t,i.scale=e.scale||1,i._overrideWidth=e.width,i._overrideHeight=e.height,i._resolve=null,i._crossorigin=e.crossorigin,i._load=null,!1!==e.autoLoad&&i.load(),i}a(f,at=l),f.prototype.update=function(t){void 0===t&&(t=0),this.destroyed||(t=B.Ticker.shared.elapsedMS*this.source.playbackRate,this._msToNextUpdate=Math.floor(this._msToNextUpdate-t),(!this._updateFPS||this._msToNextUpdate<=0)&&(at.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0))},f.prototype.load=function(){var e=this;if(this._load)return this._load;var i=this.source;return(i.readyState===i.HAVE_ENOUGH_DATA||i.readyState===i.HAVE_FUTURE_DATA)&&i.width&&i.height&&(i.complete=!0),i.addEventListener("play",this._onPlayStart.bind(this)),i.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(i.addEventListener("canplay",this._onCanPlay),i.addEventListener("canplaythrough",this._onCanPlay),i.addEventListener("error",this._onError,!0)),this._load=new Promise(function(t){e.valid?t(e):(e._resolve=t,i.load())}),this._load},f.prototype._onError=function(t){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(t)},f.prototype._isSourcePlaying=function(){var t=this.source;return 0this.baseTexture.width,s=i+n>this.baseTexture.height;if(o||s)throw e="X: "+e+" + "+r+" = "+(e+r)+" > "+this.baseTexture.width,i="Y: "+i+" + "+n+" = "+(i+n)+" > "+this.baseTexture.height,new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+e+" "+(o&&s?"and":"or")+" "+i);this.valid=r&&n&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),_.prototype.castToBaseTexture=function(){return this.baseTexture},_);function _(t,e,i,r,n,o){var s=Tt.call(this)||this;if(s.noFrame=!1,e||(s.noFrame=!0,e=new h.Rectangle(0,0,1,1)),t instanceof _&&(t=t.baseTexture),s.baseTexture=t,s._frame=e,s.trim=r,s.valid=!1,s._uvs=Et,s.uvMatrix=null,s.orig=i||e,s._rotate=Number(n||0),!0===n)s._rotate=2;else if(s._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return s.defaultAnchor=o?new h.Point(o.x,o.y):new h.Point(0,0),s._updateID=0,s.textureCacheIds=[],t.valid?s.noFrame?t.valid&&s.onBaseTextureUpdated(t):s.frame=e:t.once("loaded",s.onBaseTextureUpdated,s),s.noFrame&&t.on("update",s.onBaseTextureUpdated,s),s}function wt(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}u.EMPTY=new u(new d),wt(u.EMPTY),wt(u.EMPTY.baseTexture),u.WHITE=((st=document.createElement("canvas")).width=16,st.height=16,(ht=st.getContext("2d")).fillStyle="white",ht.fillRect(0,0,16,16),new u(new d(new $(st)))),wt(u.WHITE),wt(u.WHITE.baseTexture);a(Ot,Pt=u),Object.defineProperty(Ot.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Ot.prototype.resize=function(t,e,i){void 0===i&&(i=!0),t=Math.ceil(t),e=Math.ceil(e),this.valid=0=y.ENV.WEBGL2?t.getContext("webgl2",e):i)this.webGLVersion=2;else if(this.webGLVersion=1,!(i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},w.prototype.getExtensions=function(){var t=this.gl;1===this.webGLVersion?Object.assign(this.extensions,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,{anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),colorBufferFloat:t.getExtension("EXT_color_buffer_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear")})},w.prototype.handleContextLost=function(t){t.preventDefault()},w.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},w.prototype.destroy=function(){var t=this.renderer.view;t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},w.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},w.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in window&&t instanceof window.WebGL2RenderingContext,e=(i&&(this.webGLVersion=2),e.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly"),i||!!t.getExtension("OES_element_index_uint"));(this.supports.uint32Indices=e)||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},w);function w(t){var e=ie.call(this,t)||this;return e.webGLVersion=1,e.extensions={},e.supports={uint32Indices:!1},e.handleContextLost=e.handleContextLost.bind(e),e.handleContextRestored=e.handleContextRestored.bind(e),t.view.addEventListener("webglcontextlost",e.handleContextLost,!1),t.view.addEventListener("webglcontextrestored",e.handleContextRestored,!1),e}var oe,se=function(t){this.framebuffer=t,this.stencil=null,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.multisample=y.MSAA_QUALITY.NONE,this.msaaBuffer=null,this.blitFramebuffer=null},ae=new h.Rectangle,he=(a(P,oe=o),P.prototype.contextChange=function(){var e,t,i=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new h.Rectangle,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion?(e=this.renderer.context.extensions.drawBuffers,t=this.renderer.context.extensions.depthTexture,m.settings.PREFER_ENV===y.ENV.WEBGL_LEGACY&&(t=e=null),e?i.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,i.drawBuffers=function(){}),t||(this.writeDepthTexture=!1)):this.msaaSamples=i.getInternalformatParameter(i.RENDERBUFFER,i.RGBA8,i.SAMPLES)},P.prototype.bind=function(t,e){var i=this.gl;if(t){var r=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,r.framebuffer)),r.dirtyId!==t.dirtyId&&(r.dirtyId=t.dirtyId,r.dirtyFormat!==t.dirtyFormat?(r.dirtyFormat=t.dirtyFormat,this.updateFramebuffer(t)):r.dirtySize!==t.dirtySize&&(r.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var n=0;n=o.data.byteLength?e.bufferSubData(r,0,o.data):(n=o.static?e.STATIC_DRAW:e.DYNAMIC_DRAW,s.byteLength=o.data.byteLength,e.bufferData(r,o.data,n)))}},S.prototype.checkCompatibility=function(t,e){var i,r=t.attributes;for(i in e.attributeData)if(!r[i])throw new Error('shader and geometry incompatible, geometry missing the "'+i+'" attribute')},S.prototype.getSignature=function(t,e){var i,r=t.attributes,n=e.attributeData,o=["g",t.id];for(i in r)n[i]&&o.push(i);return o.join("-")},S.prototype.initGeometryVao=function(t,e,i){void 0===i&&(i=!0),this.checkCompatibility(t,e);var r=this.gl,n=this.CONTEXT_UID,o=this.getSignature(t,e),s=t.glVertexArrayObjects[this.CONTEXT_UID],a=s[o];if(a)return s[e.id]=a;var h,u=t.buffers,l=t.attributes,c={},d={};for(h in u)c[h]=0,d[h]=0;for(h in l)!l[h].size&&e.attributeData[h]?l[h].size=e.attributeData[h].size:l[h].size||console.warn("PIXI Geometry attribute '"+h+"' size cannot be determined (likely the bound shader does not have the attribute)"),c[l[h].buffer]+=l[h].size*ce[l[h].type];for(h in l){var p=l[h],f=p.size;void 0===p.stride&&(c[p.buffer]===f*ce[p.type]?p.stride=0:p.stride=c[p.buffer]),void 0===p.start&&(p.start=d[p.buffer],d[p.buffer]+=f*ce[p.type])}a=r.createVertexArray(),r.bindVertexArray(a);for(var m=0;m=y.ENV.WEBGL2?t.getContext("webgl2",{}):e)||((e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}))?e.getExtension("WEBGL_draw_buffers"):e=null),be=e),be}function Ee(t,e,i){return"precision"!==t.substring(0,9)?"precision "+(e===y.PRECISION.HIGH&&i!==y.PRECISION.HIGH?y.PRECISION.MEDIUM:e)+" float;\n"+t:i!==y.PRECISION.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var we={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};var Pe=null,Se={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Oe(t,e){if(!Pe){var i=Object.keys(Se);Pe={};for(var r=0;re.name?1:-1});for(o=0;o>=1,i++;this.stateId=t.data}for(i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},Pi.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,r=0;rthis.maxIdle&&(t.destroyTexture(n,!0),i=!(e[r]=null))}if(i){for(var o=0,r=0;rthis.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},N.prototype.buildTexturesAndDrawCalls=function(){var t=this._bufferedTextures,e=this.MAX_TEXTURES,i=N._textureArrayPool,r=this.renderer.batch,n=this._tempBoundTextures,o=this.renderer.textureGC.count,s=++d._globalBatch,a=0,h=i[0],u=0;r.copyBoundTextures(n,e);for(var l=0;l=e&&(r.boundArray(h,n,s,e),this.buildDrawCalls(h,u,l),u=l,h=i[++a],++s),c._batchEnabled=s,c.touched=o,h.elements[h.count++]=c)}0this.maxX||this.minY>this.maxY},n.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},n.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?o.Rectangle.EMPTY:((t=t||new o.Rectangle(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},n.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},n.prototype.addQuad=function(t){var e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,o=t[0],s=t[1],e=or?t.maxX:r,this.maxY=t.maxY>n?t.maxY:n},n.prototype.addBoundsMask=function(t,e){var i,r,n,o=(t.minX>e.minX?t:e).minX,s=(t.minY>e.minY?t:e).minY,a=(t.maxXe.x?t.minX:e.x,s=t.minY>e.y?t.minY:e.y,a=t.maxXi?this.maxX:i,this.minY=this.minYr?this.maxY:r},n);function n(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}var h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function u(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}u(c,l=s.EventEmitter),c.mixin=function(t){for(var e=Object.keys(t),i=0;ithis.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},v.prototype.swapChildren=function(t,e){var i,r;t!==e&&(i=this.getChildIndex(t),r=this.getChildIndex(e),this.children[i]=e,this.children[r]=t,this.onChildrenChange(i=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(t);s.removeItems(this.children,i,1),this.children.splice(e,0,t),this.onChildrenChange(e)},v.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},v.prototype.removeChild=function(){for(var t=arguments,e=[],i=0;i>16&255)/255,s=(i>>8&255)/255,i=(255&i)/255,a=((r=r||3375104)>>16&255)/255,h=(r>>8&255)/255,r=(255&r)/255;this._loadMatrix([.3,.59,.11,0,0,o,s,i,t=t||.2,0,a,h,r,e=e||.15,0,o-a,s-h,i-r,0,0],n)},h.prototype.night=function(t,e){this._loadMatrix([-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e)},h.prototype.predator=function(t,e){this._loadMatrix([11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0],e)},h.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},h.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},Object.defineProperty(h.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0});var o,s,t=h;function a(){this.constructor=s}function h(){var t=this,e={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return(t=o.call(this,r.defaultFilterVertex,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n",e)||this).alpha=1,t}t.prototype.grayscale=t.prototype.greyscale,i.ColorMatrixFilter=t},{"@pixi/core":4}],10:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=t("@pixi/core"),n=t("@pixi/math"),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};s=r.Filter,o(a=u,t=s),a.prototype=null===t?Object.create(t):(h.prototype=t.prototype,new h),u.prototype.apply=function(t,e,i,r){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.worldTransform,o=Math.sqrt(n.a*n.a+n.b*n.b),s=Math.sqrt(n.c*n.c+n.d*n.d);0!==o&&0!==s&&(this.uniforms.rotation[0]=n.a/o,this.uniforms.rotation[1]=n.b/o,this.uniforms.rotation[2]=n.c/s,this.uniforms.rotation[3]=n.d/s),t.applyFilter(this,e,i,r)},Object.defineProperty(u.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t},enumerable:!1,configurable:!0});var s,a,r=u;function h(){this.constructor=a}function u(t,e){var i=this,r=new n.Matrix;return t.renderable=!1,(i=s.call(this,"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:t._texture,filterMatrix:r,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=t,i.maskMatrix=r,i.scale=new n.Point(e=null==e?20:e,e),i}i.DisplacementFilter=r},{"@pixi/core":4,"@pixi/math":16}],11:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var t=t("@pixi/core"),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};n=t.Filter,r(o=a,t=n),o.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s);var n,o,t=a;function s(){this.constructor=o}function a(){return n.call(this,"\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputPixel;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputPixel.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputPixel;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputPixel.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n')||this}i.FXAAFilter=t},{"@pixi/core":4}],12:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=t("@pixi/core"),n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};o=r.Filter,n(s=h,t=o),s.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a),Object.defineProperty(h.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0});var o,s,t=h;function a(){this.constructor=s}function h(t,e){void 0===t&&(t=.5),void 0===e&&(e=Math.random());var i=o.call(this,r.defaultFilterVertex,"precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n",{uNoise:0,uSeed:0})||this;return i.noise=t,i.seed=e,i}i.NoiseFilter=t},{"@pixi/core":4}],13:[function(t,C,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var p=t("@pixi/core"),K=t("@pixi/math"),c=t("@pixi/utils"),y=t("@pixi/constants"),e=t("@pixi/display"),Z=((t=q.LINE_JOIN||(q.LINE_JOIN={})).MITER="miter",t.BEVEL="bevel",t.ROUND="round",(t=q.LINE_CAP||(q.LINE_CAP={})).BUTT="butt",t.ROUND="round",t.SQUARE="square",{adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;e=Math.ceil(t/this.maxLength);return ethis.maxSegments&&(e=this.maxSegments),e}}),i=(r.prototype.clone=function(){var t=new r;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},r.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=p.Texture.WHITE,this.matrix=null,this.visible=!1},r.prototype.destroy=function(){this.texture=null,this.matrix=null},r);function r(){this.color=16777215,this.alpha=1,this.texture=p.Texture.WHITE,this.matrix=null,this.visible=!1,this.reset()}var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function o(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var s={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var i=t.points,r=t.holes,n=e.points,o=e.indices;if(6<=i.length){for(var s=[],a=0;a>0),m=c/f;if(d+=m,a){s.push(t,e),s.push(i,r);for(var y=1,g=d;y>16)+(65280&e)+((255&e)<<16),i);t.length=Math.max(t.length,n+r);for(var s=0;s>16&255)/255*n,o.tint[1]=(r>>8&255)/255*n,o.tint[2]=(255&r)/255*n,o.tint[3]=n,t.shader.bind(e),t.geometry.bind(i,e),t.state.set(this.state);for(var a=0,h=s.length;a>16)+(65280&r)+((255&r)<<16)}}},D.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var t=this.transform.worldTransform,e=t.a,i=t.b,r=t.c,n=t.d,o=t.tx,s=t.ty,a=this._geometry.points,h=this.vertexData,u=0,l=0;l=this.x&&t=this.y&&e=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){if(e>=this.y+this.radius&&e<=this.y+this.height-this.radius||t>=this.x+this.radius&&t<=this.x+this.width-this.radius)return!0;var i=t-(this.x+this.radius),r=e-(this.y+this.radius),n=this.radius*this.radius;if(i*i+r*r<=n)return!0;if((i=t-(this.x+this.width-this.radius))*i+r*r<=n)return!0;if(i*i+(r=e-(this.y+this.height-this.radius))*r<=n)return!0;if((i=t-(this.x+this.radius))*i+r*r<=n)return!0}return!1};var d=p;function p(t,e,i,r,n){void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===n&&(n=20),this.x=t=void 0===t?0:t,this.y=e,this.width=i,this.height=r,this.radius=n,this.type=a.SHAPES.RREC}m.prototype.clone=function(){return new m(this.x,this.y)},m.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},m.prototype.copyTo=function(t){return t.set(this.x,this.y),t},m.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},m.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this};var f=m;function m(t,e){void 0===e&&(e=0),this.x=t=void 0===t?0:t,this.y=e}g.prototype.clone=function(t,e){return new g(t=void 0===t?this.cb:t,e=void 0===e?this.scope:e,this._x,this._y)},g.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},g.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},g.prototype.copyTo=function(t){return t.set(this._x,this._y),t},g.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},Object.defineProperty(g.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0});var y=g;function g(t,e,i,r){void 0===r&&(r=0),this._x=i=void 0===i?0:i,this._y=r,this.cb=t,this.scope=e}_.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},_.prototype.set=function(t,e,i,r,n,o){return this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=o,this},_.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));e=e||this.array;return t?(e[0]=this.a,e[1]=this.b,e[2]=0,e[3]=this.c,e[4]=this.d,e[5]=0,e[6]=this.tx,e[7]=this.ty):(e[0]=this.a,e[1]=this.c,e[2]=this.tx,e[3]=this.b,e[4]=this.d,e[5]=this.ty,e[6]=0,e[7]=0),e[8]=1,e},_.prototype.apply=function(t,e){e=e||new f;var i=t.x,t=t.y;return e.x=this.a*i+this.c*t+this.tx,e.y=this.b*i+this.d*t+this.ty,e},_.prototype.applyInverse=function(t,e){e=e||new f;var i=1/(this.a*this.d+this.c*-this.b),r=t.x,t=t.y;return e.x=this.d*i*r+-this.c*i*t+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*t+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,e},_.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},_.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},_.prototype.rotate=function(t){var e=Math.cos(t),t=Math.sin(t),i=this.a,r=this.c,n=this.tx;return this.a=i*e-this.b*t,this.b=i*t+this.b*e,this.c=r*e-this.d*t,this.d=r*t+this.d*e,this.tx=n*e-this.ty*t,this.ty=n*t+this.ty*e,this},_.prototype.append=function(t){var e=this.a,i=this.b,r=this.c,n=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*r,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*i+t.ty*n+this.ty,this},_.prototype.setTransform=function(t,e,i,r,n,o,s,a,h){return this.a=Math.cos(s+h)*n,this.b=Math.sin(s+h)*n,this.c=-Math.sin(s-a)*o,this.d=Math.cos(s-a)*o,this.tx=t-(i*this.a+r*this.c),this.ty=e-(i*this.b+r*this.d),this},_.prototype.prepend=function(t){var e,i,r=this.tx;return 1===t.a&&0===t.b&&0===t.c&&1===t.d||(e=this.a,i=this.c,this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d),this.tx=r*t.a+this.ty*t.c+t.tx,this.ty=r*t.b+this.ty*t.d+t.ty,this},_.prototype.decompose=function(t){var e=this.a,i=this.b,r=this.c,n=this.d,o=-Math.atan2(-r,n),s=Math.atan2(i,e),a=Math.abs(o+s);return a<1e-5||Math.abs(h-a)<1e-5?(t.rotation=s,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=s),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(r*r+n*n),t.position.x=this.tx,t.position.y=this.ty,t},_.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,o=t*r-e*i;return this.a=r/o,this.b=-e/o,this.c=-i/o,this.d=t/o,this.tx=(i*this.ty-r*n)/o,this.ty=-(t*this.ty-e*n)/o,this},_.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},_.prototype.clone=function(){var t=new _;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},_.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},_.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},Object.defineProperty(_,"IDENTITY",{get:function(){return new _},enumerable:!1,configurable:!0}),Object.defineProperty(_,"TEMP_MATRIX",{get:function(){return new _},enumerable:!1,configurable:!0});var v=_;function _(t,e,i,r,n,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===n&&(n=0),void 0===o&&(o=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=o}var x=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],b=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],T=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],E=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],w=[],P=[],S=Math.sign;for(var O=0;O<16;O++){var I=[];w.push(I);for(var A=0;A<16;A++)for(var M=S(x[O]*x[A]+T[O]*b[A]),D=S(b[O]*x[A]+E[O]*b[A]),U=S(x[O]*T[A]+T[O]*E[A]),j=S(b[O]*T[A]+E[O]*E[A]),C=0;C<16;C++)if(x[C]===M&&b[C]===D&&T[C]===U&&E[C]===j){I.push(C);break}}for(O=0;O<16;O++){var R=new v;R.set(x[O],b[O],T[O],E[O],0,0),P.push(R)}var L={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return x[t]},uY:function(t){return b[t]},vX:function(t){return T[t]},vY:function(t){return E[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return w[t][e]},sub:function(t,e){return w[t][L.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?0<=e?L.S:L.N:2*Math.abs(e)<=Math.abs(t)?0t?1:this._width/t,e=this._topHeight+this._bottomHeight,e=this._height>e?1:this._height/e;return Math.min(t,e)},Object.defineProperty(w.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()},enumerable:!1,configurable:!0}),w.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data,t=(this._origWidth=t.orig.width,this._origHeight=t.orig.height,1/this._origWidth),i=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=t*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-t*this._rightWidth,e[9]=e[11]=e[13]=e[15]=i*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-i*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()};var T,E=w;function w(t,e,i,r,n){void 0===e&&(e=10),void 0===i&&(i=10),void 0===r&&(r=10),void 0===n&&(n=10);var o=T.call(this,a.Texture.WHITE,4,4)||this;return o._origWidth=t.orig.width,o._origHeight=t.orig.height,o._width=o._origWidth,o._height=o._origHeight,o._leftWidth=e,o._rightWidth=r,o._topHeight=i,o._bottomHeight=n,o.texture=t,o}i.NineSlicePlane=E,i.PlaneGeometry=u,i.RopeGeometry=d,i.SimpleMesh=x,i.SimplePlane=g,i.SimpleRope=t},{"@pixi/constants":3,"@pixi/core":4,"@pixi/mesh":18}],18:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=t("@pixi/core"),n=t("@pixi/math"),s=t("@pixi/constants"),r=t("@pixi/display"),f=t("@pixi/settings"),a=t("@pixi/utils"),h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function u(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}c.prototype.update=function(t){!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID||(this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID,t=this.uvBuffer.data,this.data&&this.data.length===t.length||(this.data=new Float32Array(t.length)),this.uvMatrix.multiplyUvs(t,this.data),this._updateID++)};var l=c;function c(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}var d,p=new n.Point,m=new n.Polygon,t=(u(y,d=r.Container),Object.defineProperty(y.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"tint",{get:function(){return this.shader.tint},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),y.prototype._render=function(t){var e=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===s.DRAW_MODES.TRIANGLES&&e.length<2*y.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},y.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.program.uniformData.translationMatrix&&(e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0)),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},y.prototype._renderToBatch=function(t){var e=this.geometry,e=(this.shader.uvMatrix&&(this.shader.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=this.shader._tintRGB,this._texture=this.shader.texture,this.material.pluginName);t.batch.setObjectRenderer(t.plugins[e]),t.plugins[e].render(this)},y.prototype.calculateVertices=function(){var t=this.geometry,e=t.buffers[0].data;if(t.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length));for(var i=this.transform.worldTransform,r=i.a,n=i.b,o=i.c,s=i.d,a=i.tx,h=i.ty,u=this.vertexData,l=0;l>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),v.prototype.update=function(){var t;this._colorDirty&&(this._colorDirty=!1,t=this.texture.baseTexture,a.premultiplyTintToRgba(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)};var g,r=v;function v(t,e){var i=this,r={uSampler:t,alpha:1,uTextureMatrix:n.Matrix.IDENTITY,uColor:new Float32Array([1,1,1,1])};return(e=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},e)).uniforms&&Object.assign(r,e.uniforms),(i=g.call(this,e.program||o.Program.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n"),r)||this)._colorDirty=!1,i.uvMatrix=new o.TextureMatrix(t),i.batchable=void 0===e.program,i.pluginName=e.pluginName,i.tint=e.tint,i.alpha=e.alpha,i}u(b,_=o.Geometry),Object.defineProperty(b.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0});var _,x=b;function b(t,e,i){var r=_.call(this)||this,t=new o.Buffer(t),e=new o.Buffer(e,!0),i=new o.Buffer(i,!0,!0);return r.addAttribute("aVertexPosition",t,2,!1,s.TYPES.FLOAT).addAttribute("aTextureCoord",e,2,!1,s.TYPES.FLOAT).addIndex(i),r._updateId=-1,r}i.Mesh=t,i.MeshBatchUvs=l,i.MeshGeometry=x,i.MeshMaterial=r},{"@pixi/constants":3,"@pixi/core":4,"@pixi/display":5,"@pixi/math":16,"@pixi/settings":26,"@pixi/utils":34}],19:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=t("@pixi/core"),l=t("@pixi/sprite"),r=t("@pixi/display"),n=t("@pixi/math"),c=t("@pixi/utils"),d=t("@pixi/settings"),p=new n.Matrix,o=(r.DisplayObject.prototype._cacheAsBitmap=!1,r.DisplayObject.prototype._cacheData=null,function(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null});Object.defineProperties(r.DisplayObject.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&((this._cacheAsBitmap=t)?(this._cacheData||(this._cacheData=new o),(e=this._cacheData).originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),r.DisplayObject.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},r.DisplayObject.prototype._initCachedDisplayObject=function(t){var e,i,r,n,o,s,a,h;this._cacheData&&this._cacheData.sprite||(e=this.alpha,this.alpha=1,t.batch.flush(),i=this.getLocalBounds(null,!0).clone(),this.filters&&(r=this.filters[0].padding,i.pad(r)),i.ceil(d.settings.RESOLUTION),r=t.renderTexture.current,n=t.renderTexture.sourceFrame.clone(),o=t.renderTexture.destinationFrame.clone(),s=t.projection.transform,a=u.RenderTexture.create({width:i.width,height:i.height}),h="cacheAsBitmap_"+c.uid(),this._cacheData.textureCacheId=h,u.BaseTexture.addToCache(a.baseTexture,h),u.Texture.addToCache(a,h),h=this.transform.localTransform.copyTo(p).invert().translate(-i.x,-i.y),this.render=this._cacheData.originalRender,t.render(this,a,!0,h,!1),t.projection.transform=s,t.renderTexture.bind(r,n,o),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,(h=new l.Sprite(a)).transform.worldTransform=this.transform.worldTransform,h.anchor.x=-(i.x/i.width),h.anchor.y=-(i.y/i.height),h.alpha=e,h._bounds=this._bounds,this._cacheData.sprite=h,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=h.containsPoint.bind(h))},r.DisplayObject.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},r.DisplayObject.prototype._initCachedDisplayObjectCanvas=function(t){var e,i,r,n,o,s;this._cacheData&&this._cacheData.sprite||(e=this.getLocalBounds(null,!0),i=this.alpha,this.alpha=1,r=t.context,n=t._projTransform,e.ceil(d.settings.RESOLUTION),o=u.RenderTexture.create({width:e.width,height:e.height}),s="cacheAsBitmap_"+c.uid(),this._cacheData.textureCacheId=s,u.BaseTexture.addToCache(o.baseTexture,s),u.Texture.addToCache(o,s),this.transform.localTransform.copyTo(s=p),s.invert(),s.tx-=e.x,s.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,o,!0,s,!1),t.context=r,t._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,(s=new l.Sprite(o)).transform.worldTransform=this.transform.worldTransform,s.anchor.x=-(e.x/e.width),s.anchor.y=-(e.y/e.height),s.alpha=i,s._bounds=this._bounds,this._cacheData.sprite=s,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=s.containsPoint.bind(s))},r.DisplayObject.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},r.DisplayObject.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},r.DisplayObject.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,u.BaseTexture.removeFromCache(this._cacheData.textureCacheId),u.Texture.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},r.DisplayObject.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)},i.CacheData=o},{"@pixi/core":4,"@pixi/display":5,"@pixi/math":16,"@pixi/settings":26,"@pixi/sprite":29,"@pixi/utils":34}],20:[function(t,e,i){"use strict";t=t("@pixi/display");t.DisplayObject.prototype.name=null,t.Container.prototype.getChildByName=function(t,e){for(var i=0,r=this.children.length;i=s.length&&s.push(this._generateOneMoreBuffer(t)),s[c]),f=(p.uploadDynamic(e,l,d),t._bufferUpdateIDs[c]||0);(u=u||p._updateID=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(0i)&&this.onLoop(),this.updateTexture())}},l.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},l.prototype.destroy=function(t){this.stop(),a.prototype.destroy.call(this,t),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},l.fromFrames=function(t){for(var e=[],i=0;i=i&&u.x=i&&u.y=i&&c.x=i&&c.y>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||n.Texture.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),f);function p(){this.constructor=l}function f(t){var e=u.call(this)||this;return e._anchor=new s.ObservablePoint(e._onAnchorUpdate,e,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),e._texture=null,e._width=0,e._height=0,e._tint=null,e._tintRGB=null,e.tint=16777215,e.blendMode=r.BLEND_MODES.NORMAL,e._cachedTint=16777215,e.uvs=null,e.texture=t||n.Texture.EMPTY,e.vertexData=new Float32Array(8),e.vertexTrimmedData=null,e._transformID=-1,e._textureID=-1,e._transformTrimmedID=-1,e._textureTrimmedID=-1,e.indices=d,e.pluginName="batch",e.isSprite=!0,e._roundPixels=y.settings.ROUND_PIXELS,e}i.Sprite=o},{"@pixi/constants":3,"@pixi/core":4,"@pixi/display":5,"@pixi/math":16,"@pixi/settings":26,"@pixi/utils":34}],30:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=t("@pixi/math"),l=t("@pixi/core"),r=t("@pixi/utils"),o=t("@pixi/loaders"),s=(c.prototype._updateResolution=function(t){var e=this.data.meta.scale,t=r.getResolutionOfUrl(t=void 0===t?null:t,null);return 1!==(t=null===t?void 0!==e?parseFloat(e):1:t)&&this.baseTexture.setResolution(t),t},c.prototype.parse=function(t){this._batchIndex=0,this._callback=t,this._frameKeys.length<=c.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},c.prototype._processFrames=function(t){for(var e=t,i=c.BATCH_SIZE;e-t")&&(t=(new self.DOMParser).parseFromString(t,"text/xml"),s.test(t))},u.parse=function(t){t=(new window.DOMParser).parseFromString(t,"text/xml");return s.parse(t)};var l=[t,s,u];function m(t){for(var e=0;eB&&(++d,Q.removeItems(r,1+l-d,1+f-l),f=l,l=-1,n.push(c),h=Math.max(h,c),u++,i.x=0,i.y+=t.lineHeight,s=null))}for(var U=o.charAt(o.length-1),j=("\r"!==U&&"\n"!==U&&(/(?:\s)/.test(U)&&(a=c),n.push(a),h=Math.max(h,a)),[]),f=0;f<=u;f++){var k=0;"right"===this._align?k=h-n[f]:"center"===this._align&&(k=(h-n[f])/2),j.push(k)}for(var X=r.length,_={},x=[],b=this._activePagesMeshData,f=0;f6*w)||C.vertices.length<2*J.Mesh.BATCHABLE_SIZE)C.vertices=new Float32Array(8*w),C.uvs=new Float32Array(8*w),C.indices=new Uint16Array(6*w);else for(var H=C.total,z=C.vertices,Y=4*H*2;Ye.priority){t.connect(i);break}e=(i=e).next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this},a.prototype.remove=function(t,e){for(var i=this._head.next;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(a.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),a.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},a.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},a.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},a.prototype.update=function(t){var e;if((t=void 0===t?performance.now():t)>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e},i.hex2string=function(t){return t=t.toString(16),"#"+("000000".substr(0,6-t.length)+t)},i.interleaveTypedArrays=function(t,e){for(var i=0,r=0,n={},o=0;o>>=e)?1:0)<<3;return(e|=i)|(i=(15<(t>>>=i)?1:0)<<2)|(i=(3<(t>>>=i)?1:0)<<1)|(t>>>=i)>>1},i.nextPow2=function(t){return t+=0===t?1:0,--t,(t=(t=(t=(t=(t|=t>>>1)|t>>>2)|t>>>4)|t>>>8)|t>>>16)+1},i.premultiplyBlendMode=d,i.premultiplyRgba=function(t,e,i,r){return i=i||new Float32Array(4),r||void 0===r?(i[0]=t[0]*e,i[1]=t[1]*e,i[2]=t[2]*e):(i[0]=t[0],i[1]=t[1],i[2]=t[2]),i[3]=e,i},i.premultiplyTint=function(t,e){return 1===e?(255*e<<24)+t:0===e?0:(255*e<<24)+(((t>>16&255)*e+.5|0)<<16)+(((t>>8&255)*e+.5|0)<<8)+((255&t)*e+.5|0)},i.premultiplyTintToRgba=function(t,e,i,r){return(i=i||new Float32Array(4))[0]=(t>>16&255)/255,i[1]=(t>>8&255)/255,i[2]=(255&t)/255,!r&&void 0!==r||(i[0]*=e,i[1]*=e,i[2]*=e),i[3]=e,i},i.removeItems=function(t,e,i){var r=t.length;if(!(r<=e||0===i)){for(var n=r-(i=r=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=n&&s=r.x&&r.x>=l&&n!==r.x&&I(oi.x||r.x===i.x&&function(t,e){return A(t.prev,t,e.prev)<0&&A(e.next,t,t.next)<0}(i,r)))&&(i=r,d=h)),r=r.next,r!==u;);return i}(t,e);if(!i)return e;var t=R(i,t),r=P(i,i.next);return P(t,t.next),e===i?r:e}(h[n],i),i=P(i,i.next);return i}(t,e,l,i)),t.length>80*i){for(var d=r=t[0],p=n=t[1],f=i;fo.x?n.x>s.x?n:s:o.x>s.x?o:s).x,l=(n.y>o.y?n.y>s.y?n:s:o.y>s.y?o:s).y,c=O(a,h,e,i,r),d=O(u,l,e,i,r),p=t.prevZ,f=t.nextZ;for(;p&&p.z>=c&&f&&f.z<=d;){if(p!==t.prev&&p!==t.next&&I(n.x,n.y,o.x,o.y,s.x,s.y,p.x,p.y)&&0<=A(p.prev,p,p.next))return;if(p=p.prevZ,f!==t.prev&&f!==t.next&&I(n.x,n.y,o.x,o.y,s.x,s.y,f.x,f.y)&&0<=A(f.prev,f,f.next))return;f=f.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&I(n.x,n.y,o.x,o.y,s.x,s.y,p.x,p.y)&&0<=A(p.prev,p,p.next))return;p=p.prevZ}for(;f&&f.z<=d;){if(f!==t.prev&&f!==t.next&&I(n.x,n.y,o.x,o.y,s.x,s.y,f.x,f.y)&&0<=A(f.prev,f,f.next))return;f=f.nextZ}return 1}(t,r,n,o):function(t){var e=t.prev,i=t,r=t.next;if(0<=A(e,i,r))return;var n=t.next.next;for(;n!==t.prev;){if(I(e.x,e.y,i.x,i.y,r.x,r.y,n.x,n.y)&&0<=A(n.prev,n,n.next))return;n=n.next}return 1}(t))e.push(T.i/i),e.push(t.i/i),e.push(E.i/i),L(t),t=E.next,w=E.next;else if((t=E)===w){s?1===s?S(t=function(t,e,i){var r=t;do{var n=r.prev,o=r.next.next}while(!M(n,o)&&D(n,r,r.next,o)&&C(n,o)&&C(o,n)&&(e.push(n.i/i),e.push(r.i/i),e.push(o.i/i),L(r),L(r.next),r=t=o),r=r.next,r!==t);return P(r)}(P(t),e,i),e,i,r,n,o,2):2===s&&function(t,e,i,r,n,o){var s=t;do{for(var a,h=s.next.next;h!==s.prev;){if(s.i!==h.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&D(i,i.next,t,e))return 1}while(i=i.next,i!==t);return}(t,e)&&(C(t,e)&&C(e,t)&&function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;for(;i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next,i!==t;);return r}(t,e)&&(A(t.prev,t,e.prev)||A(t,e.prev,e))||M(t,e)&&0=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function u(t){return 0{if(e){const n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var r=n.parser[i.strictMode?"strict":"loose"].exec(e);const o={};let t=14;for(;t--;)o[n.key[t]]=r[t]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,function(t,e,i){e&&(o[n.q.name][e]=i)}),o}}},{}],43:[function(t,N,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t("@pixi/polyfill");var p=t("@pixi/utils"),i=t("@pixi/accessibility"),r=t("@pixi/interaction"),n=t("@pixi/app"),o=t("@pixi/core"),s=t("@pixi/extract"),a=t("@pixi/loaders"),h=t("@pixi/particles"),u=t("@pixi/prepare"),l=t("@pixi/spritesheet"),c=t("@pixi/sprite-tiling"),d=t("@pixi/text-bitmap"),f=t("@pixi/ticker"),m=t("@pixi/filter-alpha"),y=t("@pixi/filter-blur"),g=t("@pixi/filter-color-matrix"),v=t("@pixi/filter-displacement"),_=t("@pixi/filter-fxaa"),x=t("@pixi/filter-noise"),b=(t("@pixi/mixin-cache-as-bitmap"),t("@pixi/mixin-get-child-by-name"),t("@pixi/mixin-get-global-position"),t("@pixi/constants")),T=t("@pixi/display"),E=t("@pixi/graphics"),w=t("@pixi/math"),P=t("@pixi/mesh"),S=t("@pixi/mesh-extras"),O=t("@pixi/runner"),I=t("@pixi/sprite"),A=t("@pixi/sprite-animated"),M=t("@pixi/text"),D=t("@pixi/settings"),C=function(t,e){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function R(t,e){function i(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var L="5.0.0";o.Renderer.registerPlugin("accessibility",i.AccessibilityManager),o.Renderer.registerPlugin("extract",s.Extract),o.Renderer.registerPlugin("interaction",r.InteractionManager),o.Renderer.registerPlugin("particle",h.ParticleRenderer),o.Renderer.registerPlugin("prepare",u.Prepare),o.Renderer.registerPlugin("batch",o.BatchRenderer),o.Renderer.registerPlugin("tilingSprite",c.TilingSpriteRenderer),a.Loader.registerPlugin(d.BitmapFontLoader),a.Loader.registerPlugin(l.SpritesheetLoader),n.Application.registerPlugin(f.TickerPlugin),n.Application.registerPlugin(a.AppLoaderPlugin);t={AlphaFilter:m.AlphaFilter,BlurFilter:y.BlurFilter,BlurFilterPass:y.BlurFilterPass,ColorMatrixFilter:g.ColorMatrixFilter,DisplacementFilter:v.DisplacementFilter,FXAAFilter:_.FXAAFilter,NoiseFilter:x.NoiseFilter};Object.keys(i).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}),Object.keys(r).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),Object.keys(n).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.keys(o).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),Object.keys(s).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}),Object.keys(a).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}),Object.keys(h).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}})}),Object.keys(u).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})}),Object.keys(l).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}),Object.keys(c).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})}),Object.keys(d).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}})}),Object.keys(f).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})}),Object.keys(b).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})}),Object.keys(T).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return T[t]}})}),Object.keys(E).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return E[t]}})}),Object.keys(w).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return w[t]}})}),Object.keys(P).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return P[t]}})}),Object.keys(S).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}})}),Object.keys(O).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}})}),Object.keys(I).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return I[t]}})}),Object.keys(A).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return A[t]}})}),Object.keys(M).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return M[t]}})}),Object.keys(D).forEach(function(t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return D[t]}})}),e.utils=p,e.VERSION="5.3.12",e.filters=t,e.useDeprecated=function(){function e(t){return"on"+t.charAt(0).toUpperCase()+t.slice(1)}var n,o,s=this,a=(Object.defineProperties(s,{SVG_SIZE:{get:function(){return p.deprecation(L,"PIXI.utils.SVG_SIZE property has moved to PIXI.resources.SVGResource.SVG_SIZE"),s.SVGResource.SVG_SIZE}},TransformStatic:{get:function(){return p.deprecation(L,"PIXI.TransformStatic class has been removed, use PIXI.Transform"),s.Transform}},TransformBase:{get:function(){return p.deprecation(L,"PIXI.TransformBase class has been removed, use PIXI.Transform"),s.Transform}},TRANSFORM_MODE:{get:function(){return p.deprecation(L,"PIXI.TRANSFORM_MODE property has been removed"),{STATIC:0,DYNAMIC:1}}},WebGLRenderer:{get:function(){return p.deprecation(L,"PIXI.WebGLRenderer class has moved to PIXI.Renderer"),s.Renderer}},CanvasRenderTarget:{get:function(){return p.deprecation(L,"PIXI.CanvasRenderTarget class has moved to PIXI.utils.CanvasRenderTarget"),s.utils.CanvasRenderTarget}},loader:{get:function(){return p.deprecation(L,"PIXI.loader instance has moved to PIXI.Loader.shared"),s.Loader.shared}},FilterManager:{get:function(){return p.deprecation(L,"PIXI.FilterManager class has moved to PIXI.systems.FilterSystem"),s.systems.FilterSystem}},CanvasTinter:{get:function(){return p.deprecation("5.2.0","PIXI.CanvasTinter namespace has moved to PIXI.canvasUtils"),s.canvasUtils}},GroupD8:{get:function(){return p.deprecation("5.2.0","PIXI.GroupD8 namespace has moved to PIXI.groupD8"),s.groupD8}}}),s.accessibility={},Object.defineProperties(s.accessibility,{AccessibilityManager:{get:function(){return p.deprecation("5.3.0","PIXI.accessibility.AccessibilityManager moved to PIXI.AccessibilityManager"),s.AccessibilityManager}}}),s.interaction={},Object.defineProperties(s.interaction,{InteractionManager:{get:function(){return p.deprecation("5.3.0","PIXI.interaction.InteractionManager moved to PIXI.InteractionManager"),s.InteractionManager}},InteractionData:{get:function(){return p.deprecation("5.3.0","PIXI.interaction.InteractionData moved to PIXI.InteractionData"),s.InteractionData}},InteractionEvent:{get:function(){return p.deprecation("5.3.0","PIXI.interaction.InteractionEvent moved to PIXI.InteractionEvent"),s.InteractionEvent}}}),s.prepare={},Object.defineProperties(s.prepare,{BasePrepare:{get:function(){return p.deprecation("5.2.1","PIXI.prepare.BasePrepare moved to PIXI.BasePrepare"),s.BasePrepare}},Prepare:{get:function(){return p.deprecation("5.2.1","PIXI.prepare.Prepare moved to PIXI.Prepare"),s.Prepare}},CanvasPrepare:{get:function(){return p.deprecation("5.2.1","PIXI.prepare.CanvasPrepare moved to PIXI.CanvasPrepare"),s.CanvasPrepare}}}),s.extract={},Object.defineProperties(s.extract,{Extract:{get:function(){return p.deprecation("5.2.1","PIXI.extract.Extract moved to PIXI.Extract"),s.Extract}},CanvasExtract:{get:function(){return p.deprecation("5.2.1","PIXI.extract.CanvasExtract moved to PIXI.CanvasExtract"),s.CanvasExtract}}}),s.extras={},Object.defineProperties(s.extras,{TilingSprite:{get:function(){return p.deprecation(L,"PIXI.extras.TilingSprite class has moved to PIXI.TilingSprite"),s.TilingSprite}},TilingSpriteRenderer:{get:function(){return p.deprecation(L,"PIXI.extras.TilingSpriteRenderer class has moved to PIXI.TilingSpriteRenderer"),s.TilingSpriteRenderer}},AnimatedSprite:{get:function(){return p.deprecation(L,"PIXI.extras.AnimatedSprite class has moved to PIXI.AnimatedSprite"),s.AnimatedSprite}},BitmapText:{get:function(){return p.deprecation(L,"PIXI.extras.BitmapText class has moved to PIXI.BitmapText"),s.BitmapText}}}),s.TilingSprite.fromFrame=function(t,e,i){return p.deprecation("5.3.0","TilingSprite.fromFrame is deprecated, use TilingSprite.from"),s.TilingSprite.from(t,{width:e,height:i})},s.TilingSprite.fromImage=function(t,e,i,r){return void 0===r&&(r={}),p.deprecation("5.3.0","TilingSprite.fromImage is deprecated, use TilingSprite.from"),(r=r&&"object"!=typeof r?{scaleMode:arguments[4],resourceOptions:{crossorigin:arguments[3]}}:r).width=e,r.height=i,s.TilingSprite.from(t,r)},Object.defineProperties(s.utils,{getSvgSize:{get:function(){return p.deprecation(L,"PIXI.utils.getSvgSize function has moved to PIXI.resources.SVGResource.getSize"),s.resources.SVGResource.getSize}}}),s.mesh={},Object.defineProperties(s.mesh,{Mesh:{get:function(){return p.deprecation(L,"PIXI.mesh.Mesh class has moved to PIXI.SimpleMesh"),s.SimpleMesh}},NineSlicePlane:{get:function(){return p.deprecation(L,"PIXI.mesh.NineSlicePlane class has moved to PIXI.NineSlicePlane"),s.NineSlicePlane}},Plane:{get:function(){return p.deprecation(L,"PIXI.mesh.Plane class has moved to PIXI.SimplePlane"),s.SimplePlane}},Rope:{get:function(){return p.deprecation(L,"PIXI.mesh.Rope class has moved to PIXI.SimpleRope"),s.SimpleRope}},RawMesh:{get:function(){return p.deprecation(L,"PIXI.mesh.RawMesh class has moved to PIXI.Mesh"),s.Mesh}},CanvasMeshRenderer:{get:function(){return p.deprecation(L,"PIXI.mesh.CanvasMeshRenderer class has moved to PIXI.CanvasMeshRenderer"),s.CanvasMeshRenderer}},MeshRenderer:{get:function(){return p.deprecation(L,"PIXI.mesh.MeshRenderer class has moved to PIXI.MeshRenderer"),s.MeshRenderer}}}),s.particles={},Object.defineProperties(s.particles,{ParticleContainer:{get:function(){return p.deprecation(L,"PIXI.particles.ParticleContainer class has moved to PIXI.ParticleContainer"),s.ParticleContainer}},ParticleRenderer:{get:function(){return p.deprecation(L,"PIXI.particles.ParticleRenderer class has moved to PIXI.ParticleRenderer"),s.ParticleRenderer}}}),s.ticker={},Object.defineProperties(s.ticker,{Ticker:{get:function(){return p.deprecation(L,"PIXI.ticker.Ticker class has moved to PIXI.Ticker"),s.Ticker}},shared:{get:function(){return p.deprecation(L,"PIXI.ticker.shared instance has moved to PIXI.Ticker.shared"),s.Ticker.shared}}}),s.loaders={},Object.defineProperties(s.loaders,{Loader:{get:function(){return p.deprecation(L,"PIXI.loaders.Loader class has moved to PIXI.Loader"),s.Loader}},Resource:{get:function(){return p.deprecation(L,"PIXI.loaders.Resource class has moved to PIXI.LoaderResource"),s.LoaderResource}},bitmapFontParser:{get:function(){return p.deprecation(L,"PIXI.loaders.bitmapFontParser function has moved to PIXI.BitmapFontLoader.use"),s.BitmapFontLoader.use}},parseBitmapFontData:{get:function(){p.deprecation(L,"PIXI.loaders.parseBitmapFontData function has removed")}},spritesheetParser:{get:function(){return p.deprecation(L,"PIXI.loaders.spritesheetParser function has moved to PIXI.SpritesheetLoader.use"),s.SpritesheetLoader.use}},getResourcePath:{get:function(){return p.deprecation(L,"PIXI.loaders.getResourcePath property has moved to PIXI.SpritesheetLoader.getResourcePath"),s.SpritesheetLoader.getResourcePath}}}),s.Loader.addPixiMiddleware=function(t){return p.deprecation(L,"PIXI.loaders.Loader.addPixiMiddleware function is deprecated, use PIXI.loaders.Loader.registerPlugin"),s.loaders.Loader.registerPlugin({use:t()})},Object.assign(s.Loader.prototype,{on:function(t){t=e(t);p.deprecation(L,"PIXI.Loader#on is completely deprecated, use PIXI.Loader#"+t+".add")},once:function(t){t=e(t);p.deprecation(L,"PIXI.Loader#once is completely deprecated, use PIXI.Loader#"+t+".once")},off:function(t){t=e(t);p.deprecation(L,"PIXI.Loader#off is completely deprecated, use PIXI.Loader#"+t+".detach")}}),Object.defineProperty(s.extract,"WebGLExtract",{get:function(){return p.deprecation(L,"PIXI.extract.WebGLExtract method has moved to PIXI.Extract"),s.Extract}}),Object.defineProperty(s.prepare,"WebGLPrepare",{get:function(){return p.deprecation(L,"PIXI.prepare.WebGLPrepare class has moved to PIXI.Prepare"),s.Prepare}}),s.Container.prototype._renderWebGL=function(t){p.deprecation(L,"PIXI.Container._renderWebGL method has moved to PIXI.Container._render"),this._render(t)},s.Container.prototype.renderWebGL=function(t){p.deprecation(L,"PIXI.Container.renderWebGL method has moved to PIXI.Container.render"),this.render(t)},s.DisplayObject.prototype.renderWebGL=function(t){p.deprecation(L,"PIXI.DisplayObject.renderWebGL method has moved to PIXI.DisplayObject.render"),this.render(t)},s.Container.prototype.renderAdvancedWebGL=function(t){p.deprecation(L,"PIXI.Container.renderAdvancedWebGL method has moved to PIXI.Container.renderAdvanced"),this.renderAdvanced(t)},Object.defineProperties(s.settings,{TRANSFORM_MODE:{get:function(){return p.deprecation(L,"PIXI.settings.TRANSFORM_MODE property has been removed"),0},set:function(){p.deprecation(L,"PIXI.settings.TRANSFORM_MODE property has been removed")}}}),s.BaseTexture),t=!(a.prototype.loadSource=function(t){p.deprecation(L,"PIXI.BaseTexture.loadSource method has been deprecated");t=s.resources.autoDetectResource(t);t.internal=!0,this.setResource(t),this.update()}),i=(Object.defineProperties(a.prototype,{hasLoaded:{get:function(){return p.deprecation(L,"PIXI.BaseTexture.hasLoaded property has been removed, use PIXI.BaseTexture.valid"),this.valid}},imageUrl:{get:function(){var t;return p.deprecation(L,"PIXI.BaseTexture.imageUrl property has been removed, use PIXI.BaseTexture.resource.url"),null==(t=this.resource)?void 0:t.url},set:function(t){p.deprecation(L,"PIXI.BaseTexture.imageUrl property has been removed, use PIXI.BaseTexture.resource.url"),this.resource&&(this.resource.url=t)}},source:{get:function(){return p.deprecation(L,"PIXI.BaseTexture.source property has been moved, use `PIXI.BaseTexture.resource.source`"),this.resource.source},set:function(t){p.deprecation(L,"PIXI.BaseTexture.source property has been moved, use `PIXI.BaseTexture.resource.source` if you want to set HTMLCanvasElement. Otherwise, create new BaseTexture."),this.resource&&(this.resource.source=t)}},premultiplyAlpha:{get:function(){return p.deprecation("5.2.0","PIXI.BaseTexture.premultiplyAlpha property has been changed to `alphaMode`, see `PIXI.ALPHA_MODES`"),0!==this.alphaMode},set:function(t){p.deprecation("5.2.0","PIXI.BaseTexture.premultiplyAlpha property has been changed to `alphaMode`, see `PIXI.ALPHA_MODES`"),this.alphaMode=Number(t)}},_id:{get:function(){return t||(p.deprecation("5.2.0","PIXI.BaseTexture._id batch local field has been changed to `_batchLocation`"),t=!0),this._batchLocation},set:function(t){this._batchLocation=t}}}),a.fromImage=function(t,e,i,r){return p.deprecation(L,"PIXI.BaseTexture.fromImage method has been replaced with PIXI.BaseTexture.from"),a.from(t,{scaleMode:i,resourceOptions:{scale:r,crossorigin:e}})},a.fromCanvas=function(t,e){return p.deprecation(L,"PIXI.BaseTexture.fromCanvas method has been replaced with PIXI.BaseTexture.from"),a.from(t,{scaleMode:e})},a.fromSVG=function(t,e,i,r){return p.deprecation(L,"PIXI.BaseTexture.fromSVG method has been replaced with PIXI.BaseTexture.from"),a.from(t,{scaleMode:i,resourceOptions:{scale:r,crossorigin:e}})},Object.defineProperties(s.resources.ImageResource.prototype,{premultiplyAlpha:{get:function(){return p.deprecation("5.2.0","PIXI.resources.ImageResource.premultiplyAlpha property has been changed to `alphaMode`, see `PIXI.ALPHA_MODES`"),0!==this.alphaMode},set:function(t){p.deprecation("5.2.0","PIXI.resources.ImageResource.premultiplyAlpha property has been changed to `alphaMode`, see `PIXI.ALPHA_MODES`"),this.alphaMode=Number(t)}}}),s.Point.prototype.copy=function(t){return p.deprecation(L,"PIXI.Point.copy method has been replaced with PIXI.Point.copyFrom"),this.copyFrom(t)},s.ObservablePoint.prototype.copy=function(t){return p.deprecation(L,"PIXI.ObservablePoint.copy method has been replaced with PIXI.ObservablePoint.copyFrom"),this.copyFrom(t)},s.Rectangle.prototype.copy=function(t){return p.deprecation(L,"PIXI.Rectangle.copy method has been replaced with PIXI.Rectangle.copyFrom"),this.copyFrom(t)},s.Matrix.prototype.copy=function(t){return p.deprecation(L,"PIXI.Matrix.copy method has been replaced with PIXI.Matrix.copyTo"),this.copyTo(t)},s.systems.StateSystem.prototype.setState=function(t){return p.deprecation("v5.1.0","StateSystem.setState has been renamed to StateSystem.set"),this.set(t)},Object.assign(s.systems.FilterSystem.prototype,{getRenderTarget:function(t,e){return p.deprecation(L,"PIXI.FilterManager.getRenderTarget method has been replaced with PIXI.systems.FilterSystem#getFilterTexture"),this.getFilterTexture(null,e)},returnRenderTarget:function(t){p.deprecation(L,"PIXI.FilterManager.returnRenderTarget method has been replaced with PIXI.systems.FilterSystem.returnFilterTexture"),this.returnFilterTexture(t)},calculateScreenSpaceMatrix:function(t){p.deprecation(L,"PIXI.systems.FilterSystem.calculateScreenSpaceMatrix method is removed, use `(vTextureCoord * inputSize.xy) + outputFrame.xy` instead");var t=t.identity(),e=this.activeState,i=e.sourceFrame,e=e.destinationFrame;return t.translate(i.x/e.width,i.y/e.height),t.scale(e.width,e.height),t},calculateNormalizedScreenSpaceMatrix:function(t){p.deprecation(L,"PIXI.systems.FilterManager.calculateNormalizedScreenSpaceMatrix method is removed, use `((vTextureCoord * inputSize.xy) + outputFrame.xy) / outputFrame.zw` instead.");var e=this.activeState,i=e.sourceFrame,e=e.destinationFrame,t=t.identity(),r=(t.translate(i.x/e.width,i.y/e.height),e.width/i.width),e=e.height/i.height;return t.scale(r,e),t}}),Object.defineProperties(s.RenderTexture.prototype,{sourceFrame:{get:function(){return p.deprecation(L,"PIXI.RenderTexture.sourceFrame property has been removed"),this.filterFrame}},size:{get:function(){return p.deprecation(L,"PIXI.RenderTexture.size property has been removed"),this._frame}}}),R(r,n=s.filters.BlurFilterPass),r);function r(t,e,i,r){return p.deprecation(L,"PIXI.filters.BlurXFilter class is deprecated, use PIXI.filters.BlurFilterPass"),n.call(this,!0,t,e,i,r)||this}function h(t,e,i,r){return p.deprecation(L,"PIXI.filters.BlurYFilter class is deprecated, use PIXI.filters.BlurFilterPass"),o.call(this,!1,t,e,i,r)||this}R(h,o=s.filters.BlurFilterPass),Object.assign(s.filters,{BlurXFilter:i,BlurYFilter:h});var u=s.Sprite,l=s.Texture;function c(t,e,i,r){return p.deprecation(L,"PIXI.Sprite."+t+" method is deprecated, use PIXI.Sprite.from"),u.from(e,{resourceOptions:{scale:r,crossorigin:i}})}function d(t,e,i,r){return p.deprecation(L,"PIXI.Texture."+t+" method is deprecated, use PIXI.Texture.from"),l.from(e,{resourceOptions:{scale:r,crossorigin:i}})}(i=s.Graphics).prototype.generateCanvasTexture||(i.prototype.generateCanvasTexture=function(){p.deprecation(L,'PIXI.Graphics.generateCanvasTexture method is only available in "pixi.js-legacy"')}),Object.defineProperty(i.prototype,"graphicsData",{get:function(){return p.deprecation(L,"PIXI.Graphics.graphicsData property is deprecated, use PIXI.Graphics.geometry.graphicsData"),this.geometry.graphicsData}}),u.fromImage=c.bind(null,"fromImage"),u.fromSVG=c.bind(null,"fromSVG"),u.fromCanvas=c.bind(null,"fromCanvas"),u.fromVideo=c.bind(null,"fromVideo"),u.fromFrame=c.bind(null,"fromFrame"),l.fromImage=d.bind(null,"fromImage"),l.fromSVG=d.bind(null,"fromSVG"),l.fromCanvas=d.bind(null,"fromCanvas"),l.fromVideo=d.bind(null,"fromVideo"),l.fromFrame=d.bind(null,"fromFrame"),Object.defineProperty(s.AbstractRenderer.prototype,"autoResize",{get:function(){return p.deprecation(L,"PIXI.AbstractRenderer.autoResize property is deprecated, use PIXI.AbstractRenderer.autoDensity"),this.autoDensity},set:function(t){p.deprecation(L,"PIXI.AbstractRenderer.autoResize property is deprecated, use PIXI.AbstractRenderer.autoDensity"),this.autoDensity=t}}),Object.defineProperty(s.Renderer.prototype,"textureManager",{get:function(){return p.deprecation(L,"PIXI.Renderer.textureManager property is deprecated, use PIXI.Renderer.texture"),this.texture}}),s.utils.mixins={mixin:function(){p.deprecation(L,"PIXI.utils.mixins.mixin function is no longer available")},delayMixin:function(){p.deprecation(L,"PIXI.utils.mixins.delayMixin function is no longer available")},performMixins:function(){p.deprecation(L,"PIXI.utils.mixins.performMixins function is no longer available")}},Object.defineProperty(s.BitmapText.prototype,"font",{get:function(){return p.deprecation("5.3.0","PIXI.BitmapText.font property is deprecated, use fontName, fontSize, tint or align properties"),{name:this._fontName,size:this._fontSize,tint:this._tint,align:this._align}},set:function(t){p.deprecation("5.3.0","PIXI.BitmapText.font property is deprecated, use fontName, fontSize, tint or align properties"),t&&(this._upgradeStyle(t={font:t}),t.fontSize=t.fontSize||s.BitmapFont.available[t.fontName].size,this._fontName=t.fontName,this._fontSize=t.fontSize,this.dirty=!0)}})}},{"@pixi/accessibility":1,"@pixi/app":2,"@pixi/constants":3,"@pixi/core":4,"@pixi/display":5,"@pixi/extract":6,"@pixi/filter-alpha":7,"@pixi/filter-blur":8,"@pixi/filter-color-matrix":9,"@pixi/filter-displacement":10,"@pixi/filter-fxaa":11,"@pixi/filter-noise":12,"@pixi/graphics":13,"@pixi/interaction":14,"@pixi/loaders":15,"@pixi/math":16,"@pixi/mesh":18,"@pixi/mesh-extras":17,"@pixi/mixin-cache-as-bitmap":19,"@pixi/mixin-get-child-by-name":20,"@pixi/mixin-get-global-position":21,"@pixi/particles":22,"@pixi/polyfill":23,"@pixi/prepare":24,"@pixi/runner":25,"@pixi/settings":26,"@pixi/sprite":29,"@pixi/sprite-animated":27,"@pixi/sprite-tiling":28,"@pixi/spritesheet":30,"@pixi/text":32,"@pixi/text-bitmap":31,"@pixi/ticker":33,"@pixi/utils":34}],44:[function(t,e,i){var r,n,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return(r=setTimeout)(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}var h,u=[],l=!1,c=-1;function d(){l&&h&&(l=!1,h.length?u=h.concat(u):c=-1,u.length&&p())}function p(){if(!l){for(var t=a(d),e=(l=!0,u.length);e;){for(h=u,u=[];++c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-1,_=Math.floor,x=String.fromCharCode;function b(t){throw new RangeError(c[t])}function p(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function f(t,e){var i=t.split("@"),r="",i=(1>>10&1023|55296),t=56320|1023&t),e+=x(t)}).join("")}function E(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function w(t,e,i){var r=0;for(t=i?_(t/a):t>>1,t+=_(t/e);d*v>>1_((y-l)/o))&&b("overflow"),l+=a*o,!(a<(a=s<=d?1:d+v<=s?v:s-d));s+=g)o>_(y/(a=g-a))&&b("overflow"),o*=a;d=w(l-n,e=h.length+1,0==n),_(l/e)>y-c&&b("overflow"),c+=_(l/e),l%=e,h.splice(l++,0,c)}return m(h)}function S(t){for(var e,i,r,n,o,s,a,h,u,l,c=[],d=(t=T(t)).length,p=128,f=72,m=e=0;m_((y-e)/(h=i+1))&&b("overflow"),e+=(n-p)*h,p=n,m=0;my&&b("overflow"),a==p){for(o=e,s=g;!(o<(u=s<=f?1:f+v<=s?v:s-f));s+=g)c.push(x(E(u+(l=o-u)%(u=g-u),0))),o=_(l/u);c.push(x(E(o,0))),f=w(e,h,i==r),e=0,++i}++e,++p}return c.join("")}if(n={version:"1.4.1",ucs2:{decode:T,encode:m},decode:P,encode:S,toASCII:function(t){return f(t,function(t){return u.test(t)?"xn--"+S(t):t})},toUnicode:function(t){return f(t,function(t){return h.test(t)?P(t.slice(4).toLowerCase()):t})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return n});else if(e&&i)if(I.exports==e)i.exports=n;else for(o in n)n.hasOwnProperty(o)&&(e[o]=n[o]);else t.punycode=n}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],46:[function(t,e,i){"use strict";e.exports=function(t,e,i,r){i=i||"=";var n={};if("string"!=typeof t||0===t.length)return n;var o=/\+/g,e=(t=t.split(e=e||"&"),1e3),s=(r&&"number"==typeof r.maxKeys&&(e=r.maxKeys),t.length);0>2,n[1]=(3&r[0])<<4|r[1]>>4,n[2]=(15&r[1])<<2|r[2]>>6,n[3]=63&r[2],i-(t.length-1)){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64}for(var s=0;s",'"',"`"," ","\r","\n","\t"]),O=["'"].concat(i),I=["%","/","?",";","#"].concat(O),A=["/","?","#"],M=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},L={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},N=t("querystring");function n(t,e,i){if(t&&w.isObject(t)&&t instanceof b)return t;var r=new b;return r.parse(t,e,i),r}b.prototype.parse=function(t,e,i){if(!w.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),r=-1!==r&&rthis.waveform.averageGainLinearized?1:-1),this.waveform.averageGainFirstOrder+=.5*(this.waveform.averageGain-this.waveform.averageGainFirstOrder)*t;for(var e=0;ethis.waveform.timeDomainDataSmooth[e]?this.waveform.timeDomainDataSmooth[e]=i:this.waveform.timeDomainDataSmooth[e]+=.5*(i-this.waveform.timeDomainDataSmooth[e])*t}this.lastUpdateDate=new Date,requestAnimationFrame(this.updateStats.bind(this))},n.prototype.onContainerResized=function(){this.stage.resize()},n.prototype.flip=function(){var t=this.stage.powerCircle;if(!t)throw new Error("Unable to make the PowerCircle flip");t.flip()},n.BIN_COUNT=256,i.Viz=n},{"./animation/engine/Stage":62}],54:[function(t,e,i){"use strict";var r,n,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),t=(Object.defineProperty(i,"__esModule",{value:!0}),i.AnimatedBackground=void 0,t("../engine/DisplayObject")),t=(n=t.DisplayObject,o(s,n),s.prototype.redraw=function(){var t;void 0!==this.graphics&&(t=17*(Math.min(50,256*this.stage.viz.waveform.averageGainFirstOrder)/50)|0,t=parseInt("0x"+(t<<16|t<<8|t).toString(16),16),this.graphics.clear(),this.graphics.beginFill(t),this.graphics.drawRect(0,0,this.stage.getWidth(),this.stage.getHeight()),this.graphics.endFill())},s);function s(){return null!==n&&n.apply(this,arguments)||this}i.AnimatedBackground=t},{"../engine/DisplayObject":59}],55:[function(t,e,i){"use strict";var r,n,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),t=(Object.defineProperty(i,"__esModule",{value:!0}),i.Node=void 0,t("../engine/DisplayObject")),t=(n=t.DisplayObject,o(s,n),s.prototype.update=function(t){n.prototype.update.call(this,t);var e=Math.max(.1,8*this.stage.viz.waveform.averageGain);this.position.x+=t*this.velocity.x*(e-1),this.position.y+=t*this.velocity.y*(e-1),this.x<0?this.x=this.stage.getWidth():this.x>this.stage.getWidth()&&(this.x=0),this.y<0?this.y=this.stage.getHeight():this.y>this.stage.getHeight()&&(this.y=0),this.redraw()},s.prototype.redraw=function(){var t,e;void 0!==this.graphics&&(t=255*(.5+Math.min(8,64*this.stage.viz.waveform.averageGain)/16)|0,t=parseInt("0x"+(t<<16|t<<8|t).toString(16),16),this.graphics.clear(),e=6*(this.radius+4*this.stage.viz.waveform.averageGainFirstOrder)*(1-Math.exp(-3*this.stage.viz.waveform.averageGain)),this.graphics.lineStyle(4,.152*this.parent.circle.radius||(this.graphics.moveTo(i.position.x,i.position.y),this.graphics.lineTo(this.centerPosition.x,this.centerPosition.y))}}},s);function s(t,e){t=p.call(this,t)||this;return t.nodeParent=e,t.centerPosition=new m.Point(0,0),t}i.NodeLinker=t},{"../engine/DisplayObject":59,"../engine/Point":61,"pixi.js":43}],58:[function(t,e,i){"use strict";var r,n,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(i,"__esModule",{value:!0}),i.PowerCircle=void 0,t("../engine/DisplayObject")),a=t("pixi.js"),h=t("../engine/Point"),t=(n=s.DisplayObject,o(u,n),u.prototype.setBaseRadius=function(t){this.baseRadius=t},u.prototype.setCenter=function(t,e){this.centerX=t,this.centerY=e},u.prototype.update=function(t){n.prototype.update.call(this,t),this.eyesClosed=Math.floor(10*Date.now()/1e3)%30==0,this.lineWidth=1+8*this.stage.viz.waveform.averageGainLinearized,this.filter.blur=Math.floor(.2+4*Math.exp(-24*this.stage.viz.waveform.averageGainLinearized)),this.radius=this.baseRadius+100*this.stage.viz.waveform.averageGainLinearized,this.setForce("main",{x:(this.targetPosition.x-this.position.x)*this.stage.viz.waveform.averageGainFirstOrder*16,y:(this.targetPosition.y-this.position.y)*this.stage.viz.waveform.averageGainFirstOrder*16}),Date.now()>800+this.lastUpdateRandomPosition&&(this.randomAngle=2*Math.random()*Math.PI,this.lastUpdateRandomPosition=Date.now()),Date.now()>1400+this.lastUpdateRandomRotation&&(this.targetRotation=2*this.stage.viz.waveform.averageGainFirstOrder*(Math.random()-.5),Math.random()<.05&&.25<=this.stage.viz.waveform.averageGainFirstOrder&&(this.targetBaseRotation-=2*Math.PI),this.lastUpdateRandomRotation=Date.now()),this.rotationAcceleration=(this.targetRotation+this.targetBaseRotation-this.rotation)*this.stage.viz.waveform.averageGainFirstOrder*16,this.rotationAcceleration+=2*-this.rotationVelocity,this.rotationVelocity+=this.rotationAcceleration*t,this.rotation+=this.rotationVelocity*t,this.updatePosition(),this.redraw()},u.prototype.updatePosition=function(){var t=256*this.stage.viz.waveform.averageGainFirstOrder,e=Math.cos(this.randomAngle)*t,i=Math.sin(this.randomAngle)*t,r=this.stage.renderer.plugins.interaction.mouse.global,t=Math.min(t,h.Point.distance(r,this.position)),r=Math.atan2(r.y-this.position.x,r.x-this.position.y),n=Math.cos(r)*t,r=Math.sin(r)*t;this.targetPosition.x=this.centerX+e+n,this.targetPosition.y=this.centerY+i+r},u.prototype.redraw=function(){if(void 0!==this.graphics){this.graphics.clear();for(var t=this.stage.viz.waveform.timeDomainDataSmooth,e=t.reduce(function(t,e){return t+e},0)/t.length,i=t.reduce(function(t,e){return Math.min(t,e)},t[0]),r=this.radius,n=[],o=[],s=0,a=Math.PI/2-.5*Math.PI/t.length;s