diff --git a/assets/@ivanv.bf09ddfc.js b/assets/@ivanv.bf09ddfc.js deleted file mode 100644 index 0ee42d4..0000000 --- a/assets/@ivanv.bf09ddfc.js +++ /dev/null @@ -1 +0,0 @@ -import{o as r,c as o,w as d,r as h,T as l}from"./@vue.861e8bf0.js";var c=(e,t)=>{const s=e.__vccOpts||e;for(const[n,a]of t)s[n]=a;return s};const p={name:"CollapseTransition",props:{name:{type:String,required:!1,default:"collapse"},dimension:{type:String,required:!1,default:"height",validator:e=>["height","width"].includes(e)},duration:{type:Number,required:!1,default:300},easing:{type:String,required:!1,default:"ease-in-out"}},watch:{dimension(){this.clearCachedDimensions()}},data(){return{cachedStyles:null}},computed:{transition(){let e=[];return Object.keys(this.cachedStyles).forEach(t=>{e.push(`${this.convertToCssProperty(t)} ${this.duration}ms ${this.easing}`)}),e.join(", ")}},methods:{beforeAppear(e){this.$emit("before-appear",e)},appear(e){this.$emit("appear",e)},afterAppear(e){this.$emit("after-appear",e)},appearCancelled(e){this.$emit("appear-cancelled",e)},beforeEnter(e){this.$emit("before-enter",e)},enter(e,t){this.detectAndCacheDimensions(e),this.setClosedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setOpenedDimensions(e),this.$emit("enter",e,t),setTimeout(t,this.duration)},afterEnter(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-enter",e)},enterCancelled(e){this.$emit("enter-cancelled",e)},beforeLeave(e){this.$emit("before-leave",e)},leave(e,t){this.detectAndCacheDimensions(e),this.setOpenedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setClosedDimensions(e),this.$emit("leave",e,t),setTimeout(t,this.duration)},afterLeave(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-leave",e)},leaveCancelled(e){this.$emit("leave-cancelled",e)},detectAndCacheDimensions(e){if(this.cachedStyles)return;const t=e.style.visibility,s=e.style.display;e.style.visibility="hidden",e.style.display="",this.cachedStyles=this.detectRelevantDimensions(e),e.style.visibility=t,e.style.display=s},clearCachedDimensions(){this.cachedStyles=null},detectRelevantDimensions(e){return this.dimension==="height"?{height:e.offsetHeight+"px",paddingTop:e.style.paddingTop||this.getCssValue(e,"padding-top"),paddingBottom:e.style.paddingBottom||this.getCssValue(e,"padding-bottom")}:this.dimension==="width"?{width:e.offsetWidth+"px",paddingLeft:e.style.paddingLeft||this.getCssValue(e,"padding-left"),paddingRight:e.style.paddingRight||this.getCssValue(e,"padding-right")}:{}},setTransition(e){e.style.transition=this.transition},unsetTransition(e){e.style.transition=""},hideOverflow(e){e.style.overflow="hidden"},unsetOverflow(e){e.style.overflow=""},setClosedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]="0"})},setOpenedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=this.cachedStyles[t]})},unsetDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=""})},forceRepaint(e){getComputedStyle(e)[this.dimension]},getCssValue(e,t){return getComputedStyle(e,null).getPropertyValue(t)},convertToCssProperty(e){const t=e.match(/([A-Z])/g);if(!t)return e;for(let s=0,n=t.length;s[h(e.$slots,"default")]),_:3},8,["name","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])}var m=c(p,[["render",f]]);export{m as C,c as _}; diff --git a/assets/@pixi.b4dff018.js b/assets/@pixi.b4dff018.js deleted file mode 100644 index d4aea91..0000000 --- a/assets/@pixi.b4dff018.js +++ /dev/null @@ -1,1569 +0,0 @@ -import{P as Sh}from"./promise-polyfill.7a7f9c83.js";import{o as Lh}from"./object-assign.9840bf7d.js";import{E as we}from"./eventemitter3.dc5195d7.js";import{e as Do}from"./earcut.89ec12e6.js";import{i as Fh}from"./ismobilejs.5c6954b9.js";import{p as Gh,f as Bh,r as Mh}from"./url.08d1c71e.js";/*! - * @pixi/settings - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/settings is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var It=Fh(globalThis.navigator);function Xh(t){var r=!0;if(It.tablet||It.phone){if(It.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(r=!1)}}if(It.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(r=!1)}}}return r?t:4}function kh(){return!It.apple.device}/*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/constants is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var $n;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})($n||($n={}));var qn;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(qn||(qn={}));var Kn;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Kn||(Kn={}));var Zn;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(Zn||(Zn={}));var Jn;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Jn||(Jn={}));var Qn;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Qn||(Qn={}));var ta;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(ta||(ta={}));var ea;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(ea||(ea={}));var ra;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ra||(ra={}));var bi;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(bi||(bi={}));var Ii;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ii||(Ii={}));var Ei;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Ei||(Ei={}));var ia;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(ia||(ia={}));var na;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(na||(na={}));var Ri;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Ri||(Ri={}));var Me;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Me||(Me={}));var aa;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(aa||(aa={}));var Ci;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(Ci||(Ci={}));var sa;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(sa||(sa={}));var N={MIPMAP_TEXTURES:Ei.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Ci.NONE,SPRITE_MAX_TEXTURES:Xh(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:Ri.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Ii.CLAMP,SCALE_MODE:bi.LINEAR,PRECISION_VERTEX:Me.HIGH,PRECISION_FRAGMENT:It.apple.device?Me.HIGH:Me.MEDIUM,CAN_UPLOAD_SAME_BUFFER:kh(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};/*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/constants is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var Mt;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Mt||(Mt={}));var ke;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(ke||(ke={}));var Pr;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Pr||(Pr={}));var P;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(P||(P={}));var vt;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(vt||(vt={}));var R;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(R||(R={}));var ae;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(ae||(ae={}));var O;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(O||(O={}));var Nr;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Nr||(Nr={}));var Lt;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Lt||(Lt={}));var Ft;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ft||(Ft={}));var Xt;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Xt||(Xt={}));var _t;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(_t||(_t={}));var Vt;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Vt||(Vt={}));var wi;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(wi||(wi={}));var Et;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Et||(Et={}));var st;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(st||(st={}));var et;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(et||(et={}));var Ct;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Ct||(Ct={}));/*! - * @pixi/utils - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/utils is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var Te={parse:Gh,format:Bh,resolve:Mh};N.RETINA_PREFIX=/@([0-9\.]+)x/;N.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var oa=!1,ha="6.4.2";function Hh(t){var r;if(!oa){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=[` - %c %c %c PixiJS `+ha+" - \u2730 "+t+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 - -`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(r=globalThis.console).log.apply(r,e)}else globalThis.console&&globalThis.console.log("PixiJS "+ha+" - "+t+" - http://www.pixijs.com/");oa=!0}}var Hr;function Dh(){return typeof Hr=="undefined"&&(Hr=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:N.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",r)||e.getContext("experimental-webgl",r),n=!!(i&&i.getContextAttributes().stencil);if(i){var a=i.getExtension("WEBGL_lose_context");a&&a.loseContext()}return i=null,n}catch{return!1}}()),Hr}var Vh="#f0f8ff",jh="#faebd7",zh="#00ffff",Wh="#7fffd4",Yh="#f0ffff",$h="#f5f5dc",qh="#ffe4c4",Kh="#000000",Zh="#ffebcd",Jh="#0000ff",Qh="#8a2be2",tu="#a52a2a",eu="#deb887",ru="#5f9ea0",iu="#7fff00",nu="#d2691e",au="#ff7f50",su="#6495ed",ou="#fff8dc",hu="#dc143c",uu="#00ffff",lu="#00008b",fu="#008b8b",cu="#b8860b",du="#a9a9a9",pu="#006400",vu="#a9a9a9",_u="#bdb76b",mu="#8b008b",yu="#556b2f",gu="#ff8c00",Tu="#9932cc",xu="#8b0000",bu="#e9967a",Iu="#8fbc8f",Eu="#483d8b",Ru="#2f4f4f",Cu="#2f4f4f",wu="#00ced1",Pu="#9400d3",Nu="#ff1493",Au="#00bfff",Uu="#696969",Ou="#696969",Su="#1e90ff",Lu="#b22222",Fu="#fffaf0",Gu="#228b22",Bu="#ff00ff",Mu="#dcdcdc",Xu="#f8f8ff",ku="#daa520",Hu="#ffd700",Du="#808080",Vu="#008000",ju="#adff2f",zu="#808080",Wu="#f0fff0",Yu="#ff69b4",$u="#cd5c5c",qu="#4b0082",Ku="#fffff0",Zu="#f0e68c",Ju="#fff0f5",Qu="#e6e6fa",tl="#7cfc00",el="#fffacd",rl="#add8e6",il="#f08080",nl="#e0ffff",al="#fafad2",sl="#d3d3d3",ol="#90ee90",hl="#d3d3d3",ul="#ffb6c1",ll="#ffa07a",fl="#20b2aa",cl="#87cefa",dl="#778899",pl="#778899",vl="#b0c4de",_l="#ffffe0",ml="#00ff00",yl="#32cd32",gl="#faf0e6",Tl="#ff00ff",xl="#800000",bl="#66cdaa",Il="#0000cd",El="#ba55d3",Rl="#9370db",Cl="#3cb371",wl="#7b68ee",Pl="#00fa9a",Nl="#48d1cc",Al="#c71585",Ul="#191970",Ol="#f5fffa",Sl="#ffe4e1",Ll="#ffe4b5",Fl="#ffdead",Gl="#000080",Bl="#fdf5e6",Ml="#808000",Xl="#6b8e23",kl="#ffa500",Hl="#ff4500",Dl="#da70d6",Vl="#eee8aa",jl="#98fb98",zl="#afeeee",Wl="#db7093",Yl="#ffefd5",$l="#ffdab9",ql="#cd853f",Kl="#ffc0cb",Zl="#dda0dd",Jl="#b0e0e6",Ql="#800080",tf="#663399",ef="#ff0000",rf="#bc8f8f",nf="#4169e1",af="#8b4513",sf="#fa8072",of="#f4a460",hf="#2e8b57",uf="#fff5ee",lf="#a0522d",ff="#c0c0c0",cf="#87ceeb",df="#6a5acd",pf="#708090",vf="#708090",_f="#fffafa",mf="#00ff7f",yf="#4682b4",gf="#d2b48c",Tf="#008080",xf="#d8bfd8",bf="#ff6347",If="#40e0d0",Ef="#ee82ee",Rf="#f5deb3",Cf="#ffffff",wf="#f5f5f5",Pf="#ffff00",Nf="#9acd32",Af={aliceblue:Vh,antiquewhite:jh,aqua:zh,aquamarine:Wh,azure:Yh,beige:$h,bisque:qh,black:Kh,blanchedalmond:Zh,blue:Jh,blueviolet:Qh,brown:tu,burlywood:eu,cadetblue:ru,chartreuse:iu,chocolate:nu,coral:au,cornflowerblue:su,cornsilk:ou,crimson:hu,cyan:uu,darkblue:lu,darkcyan:fu,darkgoldenrod:cu,darkgray:du,darkgreen:pu,darkgrey:vu,darkkhaki:_u,darkmagenta:mu,darkolivegreen:yu,darkorange:gu,darkorchid:Tu,darkred:xu,darksalmon:bu,darkseagreen:Iu,darkslateblue:Eu,darkslategray:Ru,darkslategrey:Cu,darkturquoise:wu,darkviolet:Pu,deeppink:Nu,deepskyblue:Au,dimgray:Uu,dimgrey:Ou,dodgerblue:Su,firebrick:Lu,floralwhite:Fu,forestgreen:Gu,fuchsia:Bu,gainsboro:Mu,ghostwhite:Xu,goldenrod:ku,gold:Hu,gray:Du,green:Vu,greenyellow:ju,grey:zu,honeydew:Wu,hotpink:Yu,indianred:$u,indigo:qu,ivory:Ku,khaki:Zu,lavenderblush:Ju,lavender:Qu,lawngreen:tl,lemonchiffon:el,lightblue:rl,lightcoral:il,lightcyan:nl,lightgoldenrodyellow:al,lightgray:sl,lightgreen:ol,lightgrey:hl,lightpink:ul,lightsalmon:ll,lightseagreen:fl,lightskyblue:cl,lightslategray:dl,lightslategrey:pl,lightsteelblue:vl,lightyellow:_l,lime:ml,limegreen:yl,linen:gl,magenta:Tl,maroon:xl,mediumaquamarine:bl,mediumblue:Il,mediumorchid:El,mediumpurple:Rl,mediumseagreen:Cl,mediumslateblue:wl,mediumspringgreen:Pl,mediumturquoise:Nl,mediumvioletred:Al,midnightblue:Ul,mintcream:Ol,mistyrose:Sl,moccasin:Ll,navajowhite:Fl,navy:Gl,oldlace:Bl,olive:Ml,olivedrab:Xl,orange:kl,orangered:Hl,orchid:Dl,palegoldenrod:Vl,palegreen:jl,paleturquoise:zl,palevioletred:Wl,papayawhip:Yl,peachpuff:$l,peru:ql,pink:Kl,plum:Zl,powderblue:Jl,purple:Ql,rebeccapurple:tf,red:ef,rosybrown:rf,royalblue:nf,saddlebrown:af,salmon:sf,sandybrown:of,seagreen:hf,seashell:uf,sienna:lf,silver:ff,skyblue:cf,slateblue:df,slategray:pf,slategrey:vf,snow:_f,springgreen:mf,steelblue:yf,tan:gf,teal:Tf,thistle:xf,tomato:bf,turquoise:If,violet:Ef,wheat:Rf,white:Cf,whitesmoke:wf,yellow:Pf,yellowgreen:Nf};function Re(t,r){return r===void 0&&(r=[]),r[0]=(t>>16&255)/255,r[1]=(t>>8&255)/255,r[2]=(t&255)/255,r}function Vo(t){var r=t.toString(16);return r="000000".substring(0,6-r.length)+r,"#"+r}function jo(t){return typeof t=="string"&&(t=Af[t.toLowerCase()]||t,t[0]==="#"&&(t=t.slice(1))),parseInt(t,16)}function Uf(){for(var t=[],r=[],e=0;e<32;e++)t[e]=e,r[e]=e;t[P.NORMAL_NPM]=P.NORMAL,t[P.ADD_NPM]=P.ADD,t[P.SCREEN_NPM]=P.SCREEN,r[P.NORMAL]=P.NORMAL_NPM,r[P.ADD]=P.ADD_NPM,r[P.SCREEN]=P.SCREEN_NPM;var i=[];return i.push(r),i.push(t),i}var zo=Uf();function Wo(t,r){return zo[r?1:0][t]}function Of(t,r,e,i){return e=e||new Float32Array(4),i||i===void 0?(e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r):(e[0]=t[0],e[1]=t[1],e[2]=t[2]),e[3]=r,e}function pn(t,r){if(r===1)return(r*255<<24)+t;if(r===0)return 0;var e=t>>16&255,i=t>>8&255,n=t&255;return e=e*r+.5|0,i=i*r+.5|0,n=n*r+.5|0,(r*255<<24)+(e<<16)+(i<<8)+n}function Yo(t,r,e,i){return e=e||new Float32Array(4),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(t&255)/255,(i||i===void 0)&&(e[0]*=r,e[1]*=r,e[2]*=r),e[3]=r,e}function Sf(t,r){r===void 0&&(r=null);var e=t*6;if(r=r||new Uint16Array(e),r.length!==e)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+e);for(var i=0,n=0;i>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1}function ua(t){return!(t&t-1)&&!!t}function la(t){var r=(t>65535?1:0)<<4;t>>>=r;var e=(t>255?1:0)<<3;return t>>>=e,r|=e,e=(t>15?1:0)<<2,t>>>=e,r|=e,e=(t>3?1:0)<<1,t>>>=e,r|=e,r|t>>1}function Gt(t,r,e){var i=t.length,n;if(!(r>=i||e===0)){e=r+e>i?i-r:e;var a=i-e;for(n=r;n8)throw new Error("max arguments reached");var u=this,l=u.name,c=u.items;this._aliasCount++;for(var f=0,d=c.length;f0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(r){return r[this._name]&&(this.ensureNonAliasedItems(),this.remove(r),this.items.push(r)),this},t.prototype.remove=function(r){var e=this.items.indexOf(r);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(r){return this.items.indexOf(r)!==-1},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(ot.prototype,{dispatch:{value:ot.prototype.emit},run:{value:ot.prototype.emit}});/*! - * @pixi/ticker - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/ticker is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */N.TARGET_FPMS=.06;var kt;(function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"})(kt||(kt={}));var Dr=function(){function t(r,e,i,n){e===void 0&&(e=null),i===void 0&&(i=0),n===void 0&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=r,this.context=e,this.priority=i,this.once=n}return t.prototype.match=function(r,e){return e===void 0&&(e=null),this.fn===r&&this.context===e},t.prototype.emit=function(r){this.fn&&(this.context?this.fn.call(this.context,r):this.fn(r));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(r){this.previous=r,r.next&&(r.next.previous=this),this.next=r.next,r.next=this},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=r?null:e,this.previous=null,e},t}(),at=function(){function t(){var r=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Dr(null,null,1/0),this.deltaMS=1/N.TARGET_FPMS,this.elapsedMS=1/N.TARGET_FPMS,this._tick=function(e){r._requestId=null,r.started&&(r.update(e),r.started&&r._requestId===null&&r._head.next&&(r._requestId=requestAnimationFrame(r._tick)))}}return t.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(r,e,i){return i===void 0&&(i=kt.NORMAL),this._addListener(new Dr(r,e,i))},t.prototype.addOnce=function(r,e,i){return i===void 0&&(i=kt.NORMAL),this._addListener(new Dr(r,e,i,!0))},t.prototype._addListener=function(r){var e=this._head.next,i=this._head;if(!e)r.connect(i);else{for(;e;){if(r.priority>e.priority){r.connect(i);break}i=e,e=e.next}r.previous||r.connect(i)}return this._startIfPossible(),this},t.prototype.remove=function(r,e){for(var i=this._head.next;i;)i.match(r,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var r=0,e=this._head;e=e.next;)r++;return r},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var r=this._head.next;r;)r=r.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(r){r===void 0&&(r=performance.now());var e;if(r>this.lastTime){if(e=this.elapsedMS=r-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=r-this._lastFrame|0;if(i=this.x&&r=this.y&&er.right?r.right:this.right;if(n<=i)return!1;var a=this.yr.bottom?r.bottom:this.bottom;return s>a}var o=this.left,h=this.right,u=this.top,l=this.bottom;if(h<=o||l<=u)return!1;var c=nr[0].set(r.left,r.top),f=nr[1].set(r.left,r.bottom),d=nr[2].set(r.right,r.top),p=nr[3].set(r.right,r.bottom);if(d.x<=c.x||f.y<=c.y)return!1;var v=Math.sign(e.a*e.d-e.b*e.c);if(v===0||(e.apply(c,c),e.apply(f,f),e.apply(d,d),e.apply(p,p),Math.max(c.x,f.x,d.x,p.x)<=o||Math.min(c.x,f.x,d.x,p.x)>=h||Math.max(c.y,f.y,d.y,p.y)<=u||Math.min(c.y,f.y,d.y,p.y)>=l))return!1;var _=v*(f.y-c.y),m=v*(c.x-f.x),T=_*o+m*u,x=_*h+m*u,E=_*o+m*l,g=_*h+m*l;if(Math.max(T,x,E,g)<=_*c.x+m*c.y||Math.min(T,x,E,g)>=_*p.x+m*p.y)return!1;var y=v*(c.y-d.y),b=v*(d.x-c.x),C=y*o+b*u,I=y*h+b*u,w=y*o+b*l,S=y*h+b*l;return!(Math.max(C,I,w,S)<=y*c.x+b*c.y||Math.min(C,I,w,S)>=y*p.x+b*p.y)},t.prototype.pad=function(r,e){return r===void 0&&(r=0),e===void 0&&(e=r),this.x-=r,this.y-=e,this.width+=r*2,this.height+=e*2,this},t.prototype.fit=function(r){var e=Math.max(this.x,r.x),i=Math.min(this.x+this.width,r.x+r.width),n=Math.max(this.y,r.y),a=Math.min(this.y+this.height,r.y+r.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(a-n,0),this},t.prototype.ceil=function(r,e){r===void 0&&(r=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*r)/r,n=Math.ceil((this.y+this.height-e)*r)/r;return this.x=Math.floor((this.x+e)*r)/r,this.y=Math.floor((this.y+e)*r)/r,this.width=i-this.x,this.height=n-this.y,this},t.prototype.enlarge=function(r){var e=Math.min(this.x,r.x),i=Math.max(this.x+this.width,r.x+r.width),n=Math.min(this.y,r.y),a=Math.max(this.y+this.height,r.y+r.height);return this.x=e,this.width=i-e,this.y=n,this.height=a-n,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),Bf=function(){function t(r,e,i){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),this.x=r,this.y=e,this.radius=i,this.type=Z.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(r,e){if(this.radius<=0)return!1;var i=this.radius*this.radius,n=this.x-r,a=this.y-e;return n*=n,a*=a,n+a<=i},t.prototype.getBounds=function(){return new M(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),Mf=function(){function t(r,e,i,n){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=r,this.y=e,this.width=i,this.height=n,this.type=Z.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(r,e){if(this.width<=0||this.height<=0)return!1;var i=(r-this.x)/this.width,n=(e-this.y)/this.height;return i*=i,n*=n,i+n<=1},t.prototype.getBounds=function(){return new M(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),Cr=function(){function t(){for(var r=arguments,e=[],i=0;ie!=l>e&&r<(u-o)*((e-h)/(l-h))+o;c&&(i=!i)}return i},t.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(r,e){return r+", "+e},"")+"]")},t}(),Xf=function(){function t(r,e,i,n,a){r===void 0&&(r=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),a===void 0&&(a=20),this.x=r,this.y=e,this.width=i,this.height=n,this.radius=a,this.type=Z.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(r,e){if(this.width<=0||this.height<=0)return!1;if(r>=this.x&&r<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||r>=this.x+i&&r<=this.x+this.width-i)return!0;var n=r-(this.x+i),a=e-(this.y+i),s=i*i;if(n*n+a*a<=s||(n=r-(this.x+this.width-i),n*n+a*a<=s)||(a=e-(this.y+this.height-i),n*n+a*a<=s)||(n=r-(this.x+i),n*n+a*a<=s))return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},t}(),be=function(){function t(r,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=r,this.scope=e}return t.prototype.clone=function(r,e){return r===void 0&&(r=this.cb),e===void 0&&(e=this.scope),new t(r,e,this._x,this._y)},t.prototype.set=function(r,e){return r===void 0&&(r=0),e===void 0&&(e=r),(this._x!==r||this._y!==e)&&(this._x=r,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(r){return(this._x!==r.x||this._y!==r.y)&&(this._x=r.x,this._y=r.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(r){return r.set(this._x,this._y),r},t.prototype.equals=function(r){return r.x===this._x&&r.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(r){this._x!==r&&(this._x=r,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(r){this._y!==r&&(this._y=r,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),Q=function(){function t(r,e,i,n,a,s){r===void 0&&(r=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),a===void 0&&(a=0),s===void 0&&(s=0),this.array=null,this.a=r,this.b=e,this.c=i,this.d=n,this.tx=a,this.ty=s}return t.prototype.fromArray=function(r){this.a=r[0],this.b=r[1],this.c=r[3],this.d=r[4],this.tx=r[2],this.ty=r[5]},t.prototype.set=function(r,e,i,n,a,s){return this.a=r,this.b=e,this.c=i,this.d=n,this.tx=a,this.ty=s,this},t.prototype.toArray=function(r,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return r?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},t.prototype.apply=function(r,e){e=e||new D;var i=r.x,n=r.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},t.prototype.applyInverse=function(r,e){e=e||new D;var i=1/(this.a*this.d+this.c*-this.b),n=r.x,a=r.y;return e.x=this.d*i*n+-this.c*i*a+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*a+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},t.prototype.translate=function(r,e){return this.tx+=r,this.ty+=e,this},t.prototype.scale=function(r,e){return this.a*=r,this.d*=e,this.c*=r,this.b*=e,this.tx*=r,this.ty*=e,this},t.prototype.rotate=function(r){var e=Math.cos(r),i=Math.sin(r),n=this.a,a=this.c,s=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=a*e-this.d*i,this.d=a*i+this.d*e,this.tx=s*e-this.ty*i,this.ty=s*i+this.ty*e,this},t.prototype.append=function(r){var e=this.a,i=this.b,n=this.c,a=this.d;return this.a=r.a*e+r.b*n,this.b=r.a*i+r.b*a,this.c=r.c*e+r.d*n,this.d=r.c*i+r.d*a,this.tx=r.tx*e+r.ty*n+this.tx,this.ty=r.tx*i+r.ty*a+this.ty,this},t.prototype.setTransform=function(r,e,i,n,a,s,o,h,u){return this.a=Math.cos(o+u)*a,this.b=Math.sin(o+u)*a,this.c=-Math.sin(o-h)*s,this.d=Math.cos(o-h)*s,this.tx=r-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},t.prototype.prepend=function(r){var e=this.tx;if(r.a!==1||r.b!==0||r.c!==0||r.d!==1){var i=this.a,n=this.c;this.a=i*r.a+this.b*r.c,this.b=i*r.b+this.b*r.d,this.c=n*r.a+this.d*r.c,this.d=n*r.b+this.d*r.d}return this.tx=e*r.a+this.ty*r.c+r.tx,this.ty=e*r.b+this.ty*r.d+r.ty,this},t.prototype.decompose=function(r){var e=this.a,i=this.b,n=this.c,a=this.d,s=r.pivot,o=-Math.atan2(-n,a),h=Math.atan2(i,e),u=Math.abs(o+h);return u<1e-5||Math.abs(Or-u)<1e-5?(r.rotation=h,r.skew.x=r.skew.y=0):(r.rotation=0,r.skew.x=o,r.skew.y=h),r.scale.x=Math.sqrt(e*e+i*i),r.scale.y=Math.sqrt(n*n+a*a),r.position.x=this.tx+(s.x*e+s.y*n),r.position.y=this.ty+(s.x*i+s.y*a),r},t.prototype.invert=function(){var r=this.a,e=this.b,i=this.c,n=this.d,a=this.tx,s=r*n-e*i;return this.a=n/s,this.b=-e/s,this.c=-i/s,this.d=r/s,this.tx=(i*this.ty-n*a)/s,this.ty=-(r*this.ty-e*a)/s,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var r=new t;return r.a=this.a,r.b=this.b,r.c=this.c,r.d=this.d,r.tx=this.tx,r.ty=this.ty,r},t.prototype.copyTo=function(r){return r.a=this.a,r.b=this.b,r.c=this.c,r.d=this.d,r.tx=this.tx,r.ty=this.ty,r},t.prototype.copyFrom=function(r){return this.a=r.a,this.b=r.b,this.c=r.c,this.d=r.d,this.tx=r.tx,this.ty=r.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),ee=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],re=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ie=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ne=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Pi=[],Zo=[],ar=Math.sign;function kf(){for(var t=0;t<16;t++){var r=[];Pi.push(r);for(var e=0;e<16;e++)for(var i=ar(ee[t]*ee[e]+ie[t]*re[e]),n=ar(re[t]*ee[e]+ne[t]*re[e]),a=ar(ee[t]*ie[e]+ie[t]*ne[e]),s=ar(re[t]*ie[e]+ne[t]*ne[e]),o=0;o<16;o++)if(ee[o]===i&&re[o]===n&&ie[o]===a&&ne[o]===s){r.push(o);break}}for(var t=0;t<16;t++){var h=new Q;h.set(ee[t],re[t],ie[t],ne[t],0,0),Zo.push(h)}}kf();var K={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 ee[t]},uY:function(t){return re[t]},vX:function(t){return ie[t]},vY:function(t){return ne[t]},inv:function(t){return t&8?t&15:-t&7},add:function(t,r){return Pi[t][r]},sub:function(t,r){return Pi[t][K.inv(r)]},rotate180:function(t){return t^4},isVertical:function(t){return(t&3)===2},byDirection:function(t,r){return Math.abs(t)*2<=Math.abs(r)?r>=0?K.S:K.N:Math.abs(r)*2<=Math.abs(t)?t>0?K.E:K.W:r>0?t>0?K.SE:K.SW:t>0?K.NE:K.NW},matrixAppendRotationInv:function(t,r,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=Zo[K.inv(r)];n.tx=e,n.ty=i,t.append(n)}},vn=function(){function t(){this.worldTransform=new Q,this.localTransform=new Q,this.position=new be(this.onChange,this,0,0),this.scale=new be(this.onChange,this,1,1),this.pivot=new be(this.onChange,this,0,0),this.skew=new be(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},t.prototype.updateLocalTransform=function(){var r=this.localTransform;this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(r){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==r._worldID){var i=r.worldTransform,n=this.worldTransform;n.a=e.a*i.a+e.b*i.c,n.b=e.a*i.b+e.b*i.d,n.c=e.c*i.a+e.d*i.c,n.d=e.c*i.b+e.d*i.d,n.tx=e.tx*i.a+e.ty*i.c+i.tx,n.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=r._worldID,this._worldID++}},t.prototype.setFromMatrix=function(r){r.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(r){this._rotation!==r&&(this._rotation=r,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}();/*! - * @pixi/core - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/core is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */N.PREFER_ENV=It.any?Mt.WEBGL:Mt.WEBGL2;N.STRICT_TEXTURE_CACHE=!1;var Ni=[];function Jo(t,r){if(!t)return null;var e="";if(typeof t=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);i&&(e=i[1].toLowerCase())}for(var n=Ni.length-1;n>=0;--n){var a=Ni[n];if(a.test&&a.test(t,e))return new a(t,r)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var Ai=function(t,r){return Ai=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Ai(t,r)};function $(t,r){Ai(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Ui=function(){return Ui=Object.assign||function(r){for(var e=arguments,i,n=1,a=arguments.length;n0&&l>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(e),n}return Object.defineProperty(r.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),r.prototype.setStyle=function(e,i){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,n=!0),n&&this.dirtyStyleId++,this},r.prototype.setSize=function(e,i,n){return n=n||this.resolution,this.setRealSize(e*n,i*n,n)},r.prototype.setRealSize=function(e,i,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},r.prototype._refreshPOT=function(){this.isPowerOfTwo=ua(this.realWidth)&&ua(this.realHeight)},r.prototype.setResolution=function(e){var i=this.resolution;return i===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*i)/e,this.height=Math.round(this.height*i)/e,this.emit("update",this)),this._refreshPOT(),this)},r.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this},r.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},r.prototype.onError=function(e){this.emit("error",this,e)},r.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Kt[this.cacheId],delete Ot[this.cacheId],this.cacheId=null),this.dispose(),r.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},r.prototype.dispose=function(){this.emit("dispose",this)},r.prototype.castToBaseTexture=function(){return this},r.from=function(e,i,n){n===void 0&&(n=N.STRICT_TEXTURE_CACHE);var a=typeof e=="string",s=null;if(a)s=e;else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+oe()}s=e._pixiId}var h=Kt[s];if(a&&n&&!h)throw new Error('The cacheId "'+s+'" does not exist in BaseTextureCache.');return h||(h=new r(e,i),h.cacheId=s,r.addToCache(h,s)),h},r.fromBuffer=function(e,i,n,a){e=e||new Float32Array(i*n*4);var s=new Je(e,{width:i,height:n}),o=e instanceof Float32Array?O.FLOAT:O.UNSIGNED_BYTE;return new r(s,Object.assign(Df,a||{width:i,height:n,type:o}))},r.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),Kt[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),Kt[i]=e)},r.removeFromCache=function(e){if(typeof e=="string"){var i=Kt[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete Kt[e],i}}else if(e&&e.textureCacheIds){for(var a=0;a0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=ae.TEXTURE_CUBE_MAP_POSITIVE_X+i,e.parentTextureArray=this.baseTexture,this.items[i]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[i]=e,this},r.prototype.upload=function(e,i,n){for(var a=this.itemDirtyIds,s=0;s)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,r}(Yt),Wf=function(t){$(r,t);function r(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var a=document.createElement("video");a.setAttribute("preload","auto"),a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var s=e[0].src||e[0];Yt.crossOrigin(a,s,i.crossorigin);for(var o=0;o0&&e.paused===!1&&e.ended===!1&&e.readyState>2},r.prototype._isSourceReady=function(){var e=this.source;return e.readyState===3||e.readyState===4},r.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(at.shared.add(this.update,this),this._isConnectedToTicker=!0)},r.prototype._onPlayStop=function(){this._isConnectedToTicker&&(at.shared.remove(this.update,this),this._isConnectedToTicker=!1)},r.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(e.videoWidth,e.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},r.prototype.dispose=function(){this._isConnectedToTicker&&(at.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),t.prototype.dispose.call(this)},Object.defineProperty(r.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(at.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(at.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),r.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||r.TYPES.indexOf(i)>-1},r.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],r.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},r}(Yt),Yf=function(t){$(r,t);function r(e){return t.call(this,e)||this}return r.test=function(e){return!!globalThis.createImageBitmap&&e instanceof ImageBitmap},r}(Yt);Ni.push(eh,Yf,th,Wf,zf,Je,jf,Vf);var $f=function(t){$(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.upload=function(e,i,n){var a=e.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===_t.UNPACK);var s=i.realWidth,o=i.realHeight;return n.width===s&&n.height===o?a.texSubImage2D(i.target,0,0,0,s,o,i.format,n.type,this.data):(n.width=s,n.height=o,a.texImage2D(i.target,0,n.internalFormat,s,o,0,i.format,n.type,this.data)),!0},r}(Je),Oi=function(){function t(r,e){this.width=Math.round(r||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new ot("disposeFramebuffer"),this.multisample=et.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(r,e){return r===void 0&&(r=0),this.colorTextures[r]=e||new H(null,{scaleMode:Lt.NEAREST,resolution:1,mipmap:Xt.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(r){return this.depthTexture=r||new H(new $f(null,{width:this.width,height:this.height}),{scaleMode:Lt.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Xt.OFF,format:R.DEPTH_COMPONENT,type:O.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(r,e){if(r=Math.round(r),e=Math.round(e),!(r===this.width&&e===this.height)){this.width=r,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(n,1),delete Ot[e],i}}else if(e&&e.textureCacheIds){for(var a=0;athis.baseTexture.width,h=n+s>this.baseTexture.height;if(o||h){var u=o&&h?"and":"or",l="X: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.width,c="Y: "+n+" + "+s+" = "+(n+s)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(l+" "+u+" "+c))}this.valid=a&&s&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),r.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(r,"EMPTY",{get:function(){return r._EMPTY||(r._EMPTY=new r(new H),sr(r._EMPTY),sr(r._EMPTY.baseTexture)),r._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(r,"WHITE",{get:function(){if(!r._WHITE){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=16,e.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),r._WHITE=new r(new H(new th(e))),sr(r._WHITE),sr(r._WHITE.baseTexture)}return r._WHITE},enumerable:!1,configurable:!0}),r}(we),he=function(t){$(r,t);function r(e,i){var n=t.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(r.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),r.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var a=this.baseTexture.resolution,s=Math.round(e*a)/a,o=Math.round(i*a)/a;this.valid=s>0&&o>0,this._frame.width=this.orig.width=s,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(s,o),this.updateUvs()},r.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},r.create=function(e){for(var i=arguments,n=[],a=1;a>>0,n>1&&(a+=n*4294967296)):a=n>1?-n:-1,this.texturePool[a]||(this.texturePool[a]=[]);var s=this.texturePool[a].pop();return s||(s=this.createTexture(r,e,n)),s.filterPoolKey=a,s.setResolution(i),s},t.prototype.getFilterTexture=function(r,e,i){var n=this.getOptimalTexture(r.width,r.height,e||r.resolution,i||et.NONE);return n.filterFrame=r.filterFrame,n},t.prototype.returnTexture=function(r){var e=r.filterPoolKey;r.filterFrame=null,this.texturePool[e].push(r)},t.prototype.returnFilterTexture=function(r){this.returnTexture(r)},t.prototype.clear=function(r){if(r=r!==!1,r)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n0&&r.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n1){for(var l=0;l1&&(c=this.getOptimalFilterTexture(l.width,l.height,e.resolution),c.filterFrame=l.filterFrame),i[f].apply(this,l,c,Vt.CLEAR,e);var d=l;l=c,c=d}i[f].apply(this,l,u.renderTexture,Vt.BLEND,e),f>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(c)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(r,e){e===void 0&&(e=Vt.CLEAR);var i=this.renderer,n=i.renderTexture,a=i.state;if(r===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,r&&r.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=r.filterFrame.width,s.height=r.filterFrame.height,n.bind(r,r.filterFrame,s)}else r!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(r):this.renderer.renderTexture.bind(r,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=a.stateId&1||this.forceClear;(e===Vt.CLEAR||e===Vt.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(r,e,i,n){var a=this.renderer;a.state.set(r.state),this.bindAndClear(i,n),r.uniforms.uSampler=e,r.uniforms.filterGlobals=this.globalUniforms,a.shader.bind(r),r.legacy=!!r.program.attributeData.aTextureCoord,r.legacy?(this.quadUv.map(e._frame,e.filterFrame),a.geometry.bind(this.quadUv),a.geometry.draw(vt.TRIANGLES)):(a.geometry.bind(this.quad),a.geometry.draw(vt.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(r,e){var i=this.activeState,n=i.sourceFrame,a=i.destinationFrame,s=e._texture.orig,o=r.set(a.width,0,0,a.height,n.x,n.y),h=e.worldTransform.copyTo(Q.TEMP_MATRIX);return h.invert(),o.prepend(h),o.scale(1/s.width,1/s.height),o.translate(e.anchor.x,e.anchor.y),o},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(r,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=et.NONE),this.texturePool.getOptimalTexture(r,e,i,n)},t.prototype.getFilterTexture=function(r,e,i){if(typeof r=="number"){var n=r;r=e,e=n}r=r||this.activeState.renderTexture;var a=this.texturePool.getOptimalTexture(r.width,r.height,e||r.resolution,i||et.NONE);return a.filterFrame=r.filterFrame,a},t.prototype.returnFilterTexture=function(r){this.texturePool.returnTexture(r)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(r,e){var i=or[0],n=or[1],a=or[2],s=or[3];i.set(e.left,e.top),n.set(e.left,e.bottom),a.set(e.right,e.top),s.set(e.right,e.bottom),r.apply(i,i),r.apply(n,n),r.apply(a,a),r.apply(s,s);var o=Math.min(i.x,n.x,a.x,s.x),h=Math.min(i.y,n.y,a.y,s.y),u=Math.max(i.x,n.x,a.x,s.x),l=Math.max(i.y,n.y,a.y,s.y);e.x=o,e.y=h,e.width=u-o,e.height=l-h},t.prototype.roundFrame=function(r,e,i,n,a){if(!(r.width<=0||r.height<=0||i.width<=0||i.height<=0)){if(a){var s=a.a,o=a.b,h=a.c,u=a.d;if((Math.abs(o)>1e-4||Math.abs(h)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(u)>1e-4))return}a=a?Vr.copyFrom(a):Vr.identity(),a.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(a,r),r.ceil(e),this.transformAABB(a.invert(),r)}},t}(),Br=function(){function t(r){this.renderer=r}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(r){},t}(),ac=function(){function t(r){this.renderer=r,this.emptyRenderer=new Br(r),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(r){this.currentRenderer!==r&&(this.currentRenderer.stop(),this.currentRenderer=r,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(r,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)r[n]=i[n]||null,r[n]&&(r[n]._batchLocation=n)},t.prototype.boundArray=function(r,e,i,n){for(var a=r.elements,s=r.ids,o=r.count,h=0,u=0;u=0&&c=Mt.WEBGL2&&(i=r.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=r.getContext("webgl",e)||r.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var r=this.gl,e={anisotropicFiltering:r.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:r.getExtension("OES_texture_float_linear"),s3tc:r.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:r.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:r.getExtension("WEBGL_compressed_texture_etc"),etc1:r.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:r.getExtension("WEBGL_compressed_texture_pvrtc")||r.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:r.getExtension("WEBGL_compressed_texture_atc"),astc:r.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:r.getExtension("WEBGL_draw_buffers"),depthTexture:r.getExtension("WEBGL_depth_texture"),loseContext:r.getExtension("WEBGL_lose_context"),vertexArrayObject:r.getExtension("OES_vertex_array_object")||r.getExtension("MOZ_OES_vertex_array_object")||r.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:r.getExtension("OES_element_index_uint"),floatTexture:r.getExtension("OES_texture_float"),floatTextureLinear:r.getExtension("OES_texture_float_linear"),textureHalfFloat:r.getExtension("OES_texture_half_float"),textureHalfFloatLinear:r.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:r.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(r){r.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var r=this.renderer.view;this.renderer=null,r.removeEventListener("webglcontextlost",this.handleContextLost),r.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(r){var e=r.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&r instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!r.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),oc=function(){function t(r){this.framebuffer=r,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=et.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return t}(),hc=new M,uc=function(){function t(r){this.renderer=r,this.managedFramebuffers=[],this.unknownFramebuffer=new Oi(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){var r=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new M,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;N.PREFER_ENV===Mt.WEBGL_LEGACY&&(e=null,i=null),e?r.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,r.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=r.getInternalformatParameter(r.RENDERBUFFER,r.RGBA8,r.SAMPLES)},t.prototype.bind=function(r,e,i){i===void 0&&(i=0);var n=this.gl;if(r){var a=r.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(r);this.current!==r&&(this.current=r,n.bindFramebuffer(n.FRAMEBUFFER,a.framebuffer)),a.mipLevel!==i&&(r.dirtyId++,r.dirtyFormat++,a.mipLevel=i),a.dirtyId!==r.dirtyId&&(a.dirtyId=r.dirtyId,a.dirtyFormat!==r.dirtyFormat?(a.dirtyFormat=r.dirtyFormat,a.dirtySize=r.dirtySize,this.updateFramebuffer(r,i)):a.dirtySize!==r.dirtySize&&(a.dirtySize=r.dirtySize,this.resizeFramebuffer(r)));for(var s=0;s>i,u=e.height>>i,l=h/e.width;this.setViewport(e.x*l,e.y*l,h,u)}else{var h=r.width>>i,u=r.height>>i;this.setViewport(0,0,h,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(r,e,i,n){var a=this.viewport;r=Math.round(r),e=Math.round(e),i=Math.round(i),n=Math.round(n),(a.width!==i||a.height!==n||a.x!==r||a.y!==e)&&(a.x=r,a.y=e,a.width=i,a.height=n,this.gl.viewport(r,e,i,n))},Object.defineProperty(t.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),t.prototype.clear=function(r,e,i,n,a){a===void 0&&(a=Pr.COLOR|Pr.DEPTH);var s=this.gl;s.clearColor(r,e,i,n),s.clear(a)},t.prototype.initFramebuffer=function(r){var e=this.gl,i=new oc(e.createFramebuffer());return i.multisample=this.detectSamples(r.multisample),r.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(r),r.disposeRunner.add(this),i},t.prototype.resizeFramebuffer=function(r){var e=this.gl,i=r.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,r.width,r.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,r.width,r.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,r.width,r.height));var n=r.colorTextures,a=n.length;e.drawBuffers||(a=Math.min(a,1));for(var s=0;s1&&this.canMultisampleFramebuffer(r)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,r.width,r.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var o=[],h=0;h1&&i.drawBuffers(o),r.depthTexture){var c=this.writeDepthTexture;if(c){var f=r.depthTexture;this.renderer.texture.bind(f,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,f._glTextures[this.CONTEXT_UID].texture,e)}}(r.stencil||r.depth)&&!(r.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,r.width,r.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,r.width,r.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},t.prototype.canMultisampleFramebuffer=function(r){return this.renderer.context.webGLVersion!==1&&r.colorTextures.length<=1&&!r.depthTexture},t.prototype.detectSamples=function(r){var e=this.msaaSamples,i=et.NONE;if(r<=1||e===null)return i;for(var n=0;n=0&&this.managedFramebuffers.splice(a,1),r.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(r){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=Mt.WEBGL2&&(r=t.getContext("webgl2",{})),r||(r=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),r?r.getExtension("WEBGL_draw_buffers"):r=null),Ue=r}return Ue}var hr;function pc(){if(!hr){hr=Et.MEDIUM;var t=dc();if(t&&t.getShaderPrecisionFormat){var r=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);hr=r.precision?Et.HIGH:Et.MEDIUM}}return hr}function Ta(t,r,e){if(t.substring(0,9)!=="precision"){var i=r;return r===Et.HIGH&&e!==Et.HIGH&&(i=Et.MEDIUM),"precision "+i+` float; -`+t}else if(e!==Et.HIGH&&t.substring(0,15)==="precision highp")return t.replace("precision highp","precision mediump");return t}var vc={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function oh(t){return vc[t]}var ur=null,xa={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",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 hh(t,r){if(!ur){var e=Object.keys(xa);ur={};for(var i=0;i0&&(r+=` -else `),e1e-4||Math.abs(a)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(s)>1e-4)},r.prototype.testScissor=function(e){var i=e.maskObject;if(!i.isFastRect||!i.isFastRect()||r.isMatrixRotated(i.worldTransform)||r.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var n=e._scissorRectLocal;return n.width>0&&n.height>0},r.prototype.roundFrameToPixels=function(e,i,n,a,s){r.isMatrixRotated(s)||(s=s?Ia.copyFrom(s):Ia.identity(),s.translate(-n.x,-n.y).scale(a.width/n.width,a.height/n.height).translate(a.x,a.y),this.renderer.filter.transformAABB(s,e),e.fit(a),e.x=Math.round(e.x*i),e.y=Math.round(e.y*i),e.width=Math.round(e.width*i),e.height=Math.round(e.height*i))},r.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var i=this.renderer.gl;e._scissorRect||i.enable(i.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},r.prototype.pop=function(){var e=this.renderer.gl;this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)},r.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=e.y:i=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,i,e.width,e.height)},r}(uh),Sc=function(t){$(r,t);function r(e){var i=t.call(this,e)||this;return i.glConst=WebGLRenderingContext.STENCIL_TEST,i}return r.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},r.prototype.push=function(e){var i=e.maskObject,n=this.renderer.gl,a=e._stencilCounter;a===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++,n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.EQUAL,a,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,this._useCurrent()},r.prototype.pop=function(e){var i=this.renderer.gl;this.getStackLength()===0?i.disable(i.STENCIL_TEST):(i.colorMask(!1,!1,!1,!1),i.stencilOp(i.KEEP,i.KEEP,i.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent())},r.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},r}(uh),Lc=function(){function t(r){this.renderer=r,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Q,this.transform=null}return t.prototype.update=function(r,e,i,n){this.destinationFrame=r||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||r,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var a=this.renderer;a.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,a.globalUniforms.update(),a.shader.shader&&a.shader.syncUniformGroup(a.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(r,e,i,n){var a=this.projectionMatrix,s=n?-1:1;a.identity(),a.a=1/e.width*2,a.d=s*(1/e.height*2),a.tx=-1-e.x*a.a,a.ty=-s-e.y*a.d},t.prototype.setTransform=function(r){},t.prototype.destroy=function(){this.renderer=null},t}(),Zt=new M,Se=new M,Fc=function(){function t(r){this.renderer=r,this.clearColor=r._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new M,this.destinationFrame=new M,this.viewportFrame=new M}return t.prototype.bind=function(r,e,i){r===void 0&&(r=null);var n=this.renderer;this.current=r;var a,s,o;r?(a=r.baseTexture,o=a.resolution,e||(Zt.width=r.frame.width,Zt.height=r.frame.height,e=Zt),i||(Se.x=r.frame.x,Se.y=r.frame.y,Se.width=e.width,Se.height=e.height,i=Se),s=a.framebuffer):(o=n.resolution,e||(Zt.width=n.screen.width,Zt.height=n.screen.height,e=Zt),i||(i=Zt,i.width=e.width,i.height=e.height));var h=this.viewportFrame;h.x=i.x*o,h.y=i.y*o,h.width=i.width*o,h.height=i.height*o,r||(h.y=n.view.height-(h.y+h.height)),h.ceil(),this.renderer.framebuffer.bind(s,h),this.renderer.projection.update(i,e,o,!s),r?this.renderer.mask.setMaskStack(a.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},t.prototype.clear=function(r,e){this.current?r=r||this.current.baseTexture.clearColor:r=r||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,a=i.width!==n.width||i.height!==n.height;if(a){var s=this.viewportFrame,o=s.x,h=s.y,u=s.width,l=s.height;o=Math.round(o),h=Math.round(h),u=Math.round(u),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,h,u,l)}this.renderer.framebuffer.clear(r[0],r[1],r[2],r[3],e),a&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function Gc(t,r,e,i,n){e.buffer.update(n)}var Bc={float:` - data[offset] = v; - `,vec2:` - data[offset] = v[0]; - data[offset+1] = v[1]; - `,vec3:` - data[offset] = v[0]; - data[offset+1] = v[1]; - data[offset+2] = v[2]; - - `,vec4:` - data[offset] = v[0]; - data[offset+1] = v[1]; - data[offset+2] = v[2]; - data[offset+3] = v[3]; - `,mat2:` - data[offset] = v[0]; - data[offset+1] = v[1]; - - data[offset+4] = v[2]; - data[offset+5] = v[3]; - `,mat3:` - data[offset] = v[0]; - data[offset+1] = v[1]; - data[offset+2] = v[2]; - - data[offset + 4] = v[3]; - data[offset + 5] = v[4]; - data[offset + 6] = v[5]; - - data[offset + 8] = v[6]; - data[offset + 9] = v[7]; - data[offset + 10] = v[8]; - `,mat4:` - for(var i = 0; i < 16; i++) - { - data[offset + i] = v[i]; - } - `},lh={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function Mc(t){for(var r=t.map(function(h){return{data:h,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,a=0;a1&&(e=Math.max(e,16)*s.data.size),s.dataLen=e,i%e!==0&&i<16){var o=i%e%16;i+=o,n+=o}i+e>16?(n=Math.ceil(n/16)*16,s.offset=n,n+=e,i=e):(s.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:r,size:n}}function Xc(t,r){var e=[];for(var i in t)r[i]&&e.push(r[i]);return e.sort(function(n,a){return n.index-a.index}),e}function kc(t,r){if(!t.autoManage)return{size:0,syncFunc:Gc};for(var e=Xc(t.uniforms,r),i=Mc(e),n=i.uboElements,a=i.size,s=[` - var v = null; - var v2 = null; - var cv = null; - var t = 0; - var gl = renderer.gl - var index = 0; - var data = buffer.data; - `],o=0;o1){var p=oh(h.data.type),v=Math.max(lh[h.data.type]/16,1),_=p/v,m=(4-_%4)%4;s.push(` - cv = ud.`+l+`.value; - v = uv.`+l+`; - offset = `+h.offset/4+`; - - t = 0; - - for(var i=0; i < `+h.data.size*v+`; i++) - { - for(var j = 0; j < `+_+`; j++) - { - data[offset++] = v[t++]; - } - offset += `+m+`; - } - - `)}else{var T=Bc[h.data.type];s.push(` - cv = ud.`+l+`.value; - v = uv.`+l+`; - offset = `+h.offset/4+`; - `+T+`; - `)}}return s.push(` - renderer.buffer.update(buffer); - `),{size:a,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join(` -`))}}var Hc=function(){function t(r,e){this.program=r,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function Dc(t,r){for(var e={},i=r.getProgramParameter(t,r.ACTIVE_ATTRIBUTES),n=0;nc?1:-1});for(var s=0;s>1,i++;this.stateId=r.data}for(var i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var r=this.renderer.texture,e=r.managedTextures,i=!1,n=0;nthis.maxIdle&&(r.destroyTexture(a,!0),e[n]=null,i=!0)}if(i){for(var s=0,n=0;n=0;n--)this.unload(r.children[n])},t.prototype.destroy=function(){this.renderer=null},t}();function rd(t){var r,e,i,n,a,s,o,h,u,l,c,f,d,p,v,_,m,T,x,E,g,y,b;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?b=(r={},r[O.UNSIGNED_BYTE]=(e={},e[R.RGBA]=t.RGBA8,e[R.RGB]=t.RGB8,e[R.RG]=t.RG8,e[R.RED]=t.R8,e[R.RGBA_INTEGER]=t.RGBA8UI,e[R.RGB_INTEGER]=t.RGB8UI,e[R.RG_INTEGER]=t.RG8UI,e[R.RED_INTEGER]=t.R8UI,e[R.ALPHA]=t.ALPHA,e[R.LUMINANCE]=t.LUMINANCE,e[R.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,e),r[O.BYTE]=(i={},i[R.RGBA]=t.RGBA8_SNORM,i[R.RGB]=t.RGB8_SNORM,i[R.RG]=t.RG8_SNORM,i[R.RED]=t.R8_SNORM,i[R.RGBA_INTEGER]=t.RGBA8I,i[R.RGB_INTEGER]=t.RGB8I,i[R.RG_INTEGER]=t.RG8I,i[R.RED_INTEGER]=t.R8I,i),r[O.UNSIGNED_SHORT]=(n={},n[R.RGBA_INTEGER]=t.RGBA16UI,n[R.RGB_INTEGER]=t.RGB16UI,n[R.RG_INTEGER]=t.RG16UI,n[R.RED_INTEGER]=t.R16UI,n[R.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,n),r[O.SHORT]=(a={},a[R.RGBA_INTEGER]=t.RGBA16I,a[R.RGB_INTEGER]=t.RGB16I,a[R.RG_INTEGER]=t.RG16I,a[R.RED_INTEGER]=t.R16I,a),r[O.UNSIGNED_INT]=(s={},s[R.RGBA_INTEGER]=t.RGBA32UI,s[R.RGB_INTEGER]=t.RGB32UI,s[R.RG_INTEGER]=t.RG32UI,s[R.RED_INTEGER]=t.R32UI,s[R.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,s),r[O.INT]=(o={},o[R.RGBA_INTEGER]=t.RGBA32I,o[R.RGB_INTEGER]=t.RGB32I,o[R.RG_INTEGER]=t.RG32I,o[R.RED_INTEGER]=t.R32I,o),r[O.FLOAT]=(h={},h[R.RGBA]=t.RGBA32F,h[R.RGB]=t.RGB32F,h[R.RG]=t.RG32F,h[R.RED]=t.R32F,h[R.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,h),r[O.HALF_FLOAT]=(u={},u[R.RGBA]=t.RGBA16F,u[R.RGB]=t.RGB16F,u[R.RG]=t.RG16F,u[R.RED]=t.R16F,u),r[O.UNSIGNED_SHORT_5_6_5]=(l={},l[R.RGB]=t.RGB565,l),r[O.UNSIGNED_SHORT_4_4_4_4]=(c={},c[R.RGBA]=t.RGBA4,c),r[O.UNSIGNED_SHORT_5_5_5_1]=(f={},f[R.RGBA]=t.RGB5_A1,f),r[O.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[R.RGBA]=t.RGB10_A2,d[R.RGBA_INTEGER]=t.RGB10_A2UI,d),r[O.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[R.RGB]=t.R11F_G11F_B10F,p),r[O.UNSIGNED_INT_5_9_9_9_REV]=(v={},v[R.RGB]=t.RGB9_E5,v),r[O.UNSIGNED_INT_24_8]=(_={},_[R.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,_),r[O.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[R.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,m),r):b=(T={},T[O.UNSIGNED_BYTE]=(x={},x[R.RGBA]=t.RGBA,x[R.RGB]=t.RGB,x[R.ALPHA]=t.ALPHA,x[R.LUMINANCE]=t.LUMINANCE,x[R.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,x),T[O.UNSIGNED_SHORT_5_6_5]=(E={},E[R.RGB]=t.RGB,E),T[O.UNSIGNED_SHORT_4_4_4_4]=(g={},g[R.RGBA]=t.RGBA,g),T[O.UNSIGNED_SHORT_5_5_5_1]=(y={},y[R.RGBA]=t.RGBA,y),T),b}var Jr=function(){function t(r){this.texture=r,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=O.UNSIGNED_BYTE,this.internalFormat=R.RGBA,this.samplerType=0}return t}(),id=function(){function t(r){this.renderer=r,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new H,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var r=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=rd(r);var e=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i=0;--s){var o=i[s];if(o){var h=o._glTextures[a];h.samplerType!==Nr.FLOAT&&this.renderer.texture.unbind(o)}}},t.prototype.initTexture=function(r){var e=new Jr(this.gl.createTexture());return e.dirtyId=-1,r._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(r),r.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(r,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[r.type])===null||i===void 0?void 0:i[r.format])!==null&&n!==void 0?n:r.format,this.webGLVersion===2&&r.type===O.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=r.type},t.prototype.updateTexture=function(r){var e=r._glTextures[this.CONTEXT_UID];if(!!e){var i=this.renderer;if(this.initTextureType(r,e),r.resource&&r.resource.upload(i,r,e))e.samplerType!==Nr.FLOAT&&(this.hasIntegerTextures=!0);else{var n=r.realWidth,a=r.realHeight,s=i.gl;(e.width!==n||e.height!==a||e.dirtyId<0)&&(e.width=n,e.height=a,s.texImage2D(r.target,0,e.internalFormat,n,a,0,r.format,e.type,null))}r.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(r),e.dirtyId=r.dirtyId}},t.prototype.destroyTexture=function(r,e){var i=this.gl;if(r=r.castToBaseTexture(),r._glTextures[this.CONTEXT_UID]&&(this.unbind(r),i.deleteTexture(r._glTextures[this.CONTEXT_UID].texture),r.off("dispose",this.destroyTexture,this),delete r._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(r);n!==-1&&Gt(this.managedTextures,n,1)}},t.prototype.updateTextureStyle=function(r){var e=r._glTextures[this.CONTEXT_UID];!e||((r.mipmap===Xt.POW2||this.webGLVersion!==2)&&!r.isPowerOfTwo?e.mipmap=!1:e.mipmap=r.mipmap>=1,this.webGLVersion!==2&&!r.isPowerOfTwo?e.wrapMode=Ft.CLAMP:e.wrapMode=r.wrapMode,r.resource&&r.resource.style(this.renderer,r,e)||this.setStyle(r,e),e.dirtyStyleId=r.dirtyStyleId)},t.prototype.setStyle=function(r,e){var i=this.gl;if(e.mipmap&&r.mipmap!==Xt.ON_MANUAL&&i.generateMipmap(r.target),i.texParameteri(r.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(r.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(r.target,i.TEXTURE_MIN_FILTER,r.scaleMode===Lt.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&r.anisotropicLevel>0&&r.scaleMode===Lt.LINEAR){var a=Math.min(r.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(r.target,n.TEXTURE_MAX_ANISOTROPY_EXT,a)}}else i.texParameteri(r.target,i.TEXTURE_MIN_FILTER,r.scaleMode===Lt.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(r.target,i.TEXTURE_MAG_FILTER,r.scaleMode===Lt.LINEAR?i.LINEAR:i.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Qr=new Q,nd=function(t){$(r,t);function r(e,i){e===void 0&&(e=ke.UNKNOWN);var n=t.call(this)||this;return i=Object.assign({},N.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new M(0,0,i.width,i.height),n.view=i.view||document.createElement("canvas"),n.resolution=i.resolution||N.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(He("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return r.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(r.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),r.prototype.resize=function(e,i){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,a=this.view.height/this.resolution;this.screen.width=n,this.screen.height=a,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=a+"px"),this.emit("resize",n,a)},r.prototype.generateTexture=function(e,i,n,a){i===void 0&&(i={}),typeof i=="number"&&(He("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:a});var s=i.region,o=Hf(i,["region"]);a=s||e.getLocalBounds(null,!0),a.width===0&&(a.width=1),a.height===0&&(a.height=1);var h=he.create(Ui({width:a.width,height:a.height},o));return Qr.tx=-a.x,Qr.ty=-a.y,this.render(e,{renderTexture:h,clear:!1,transform:Qr,skipUpdateTransform:!!e.parent}),h},r.prototype.destroy=function(e){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=ke.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(r.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Vo(e),Re(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),r}(we),ad=function(){function t(r){this.buffer=r||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return t}(),sd=function(){function t(r){this.renderer=r,this.managedBuffers={},this.boundBufferBases={}}return t.prototype.destroy=function(){this.renderer=null},t.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},t.prototype.bind=function(r){var e=this,i=e.gl,n=e.CONTEXT_UID,a=r._glBuffers[n]||this.createGLBuffer(r);i.bindBuffer(r.type,a.buffer)},t.prototype.bindBufferBase=function(r,e){var i=this,n=i.gl,a=i.CONTEXT_UID;if(this.boundBufferBases[e]!==r){var s=r._glBuffers[a]||this.createGLBuffer(r);this.boundBufferBases[e]=r,n.bindBufferBase(n.UNIFORM_BUFFER,e,s.buffer)}},t.prototype.bindBufferRange=function(r,e,i){var n=this,a=n.gl,s=n.CONTEXT_UID;i=i||0;var o=r._glBuffers[s]||this.createGLBuffer(r);a.bindBufferRange(a.UNIFORM_BUFFER,e||0,o.buffer,i*256,256)},t.prototype.update=function(r){var e=this,i=e.gl,n=e.CONTEXT_UID,a=r._glBuffers[n];if(r._updateID!==a.updateID)if(a.updateID=r._updateID,i.bindBuffer(r.type,a.buffer),a.byteLength>=r.data.byteLength)i.bufferSubData(r.type,0,r.data);else{var s=r.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;a.byteLength=r.data.byteLength,i.bufferData(r.type,r.data,s)}},t.prototype.dispose=function(r,e){if(!!this.managedBuffers[r.id]){delete this.managedBuffers[r.id];var i=r._glBuffers[this.CONTEXT_UID],n=this.gl;r.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete r._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(r){for(var e=Object.keys(this.managedBuffers),i=0;i=et.HIGH?this.multisample=et.HIGH:i>=et.MEDIUM?this.multisample=et.MEDIUM:i>=et.LOW?this.multisample=et.LOW:this.multisample=et.NONE},r.prototype.addSystem=function(e,i){var n=new e(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var a in this.runners)this.runners[a].add(n);return this},r.prototype.render=function(e,i){var n,a,s,o;if(i&&(i instanceof he?(He("6.0.0","Renderer#render arguments changed, use options instead."),n=i,a=arguments[2],s=arguments[3],o=arguments[4]):(n=i.renderTexture,a=i.clear,s=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=s,!this.context.isLost){if(n||(this._lastObjectRendered=e),!o){var h=e.enableTempParent();e.updateTransform(),e.disableTempParent(h)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(a!==void 0?a:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},r.prototype.generateTexture=function(e,i,n,a){i===void 0&&(i={});var s=t.prototype.generateTexture.call(this,e,i,n,a);return this.framebuffer.blit(),s},r.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},r.prototype.reset=function(){return this.runners.reset.emit(),this},r.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},r.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(r.prototype,"extract",{get:function(){return He("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),r.registerPlugin=function(e,i){r.__plugins=r.__plugins||{},r.__plugins[e]=i},r}(nd);function hd(t){return od.create(t)}var ud=`attribute vec2 aVertexPosition; -attribute vec2 aTextureCoord; - -uniform mat3 projectionMatrix; - -varying vec2 vTextureCoord; - -void main(void) -{ - gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); - vTextureCoord = aTextureCoord; -}`,ld=`attribute vec2 aVertexPosition; - -uniform mat3 projectionMatrix; - -varying vec2 vTextureCoord; - -uniform vec4 inputSize; -uniform vec4 outputFrame; - -vec4 filterVertexPosition( void ) -{ - vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; - - return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); -} - -vec2 filterTextureCoord( void ) -{ - return aVertexPosition * (outputFrame.zw * inputSize.zw); -} - -void main(void) -{ - gl_Position = filterVertexPosition(); - vTextureCoord = filterTextureCoord(); -} -`,fd=ud,fh=ld,Si=function(){function t(){this.texArray=null,this.blend=0,this.type=vt.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}(),Li=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var r=0;rthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},r.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,a=r._textureArrayPool,s=this.renderer.batch,o=this._tempBoundTextures,h=this.renderer.textureGC.count,u=++H._globalBatch,l=0,c=a[0],f=0;s.copyBoundTextures(o,n);for(var d=0;d=n&&(s.boundArray(c,o,u,n),this.buildDrawCalls(c,f,d),f=d,c=a[++l],++u),p._batchEnabled=u,p.touched=h,c.elements[c.count++]=p)}c.count>0&&(s.boundArray(c,o,u,n),this.buildDrawCalls(c,f,this._bufferSize),++l,++u);for(var d=0;d0&&(e+=` -else `),ithis.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(r){return this.minX>this.maxX||this.minY>this.maxY?M.EMPTY:(r=r||new M(0,0,1,1),r.x=this.minX,r.y=this.minY,r.width=this.maxX-this.minX,r.height=this.maxY-this.minY,r)},t.prototype.addPoint=function(r){this.minX=Math.min(this.minX,r.x),this.maxX=Math.max(this.maxX,r.x),this.minY=Math.min(this.minY,r.y),this.maxY=Math.max(this.maxY,r.y)},t.prototype.addPointMatrix=function(r,e){var i=r.a,n=r.b,a=r.c,s=r.d,o=r.tx,h=r.ty,u=i*e.x+a*e.y+o,l=n*e.x+s*e.y+h;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},t.prototype.addQuad=function(r){var e=this.minX,i=this.minY,n=this.maxX,a=this.maxY,s=r[0],o=r[1];e=sn?s:n,a=o>a?o:a,s=r[2],o=r[3],e=sn?s:n,a=o>a?o:a,s=r[4],o=r[5],e=sn?s:n,a=o>a?o:a,s=r[6],o=r[7],e=sn?s:n,a=o>a?o:a,this.minX=e,this.minY=i,this.maxX=n,this.maxY=a},t.prototype.addFrame=function(r,e,i,n,a){this.addFrameMatrix(r.worldTransform,e,i,n,a)},t.prototype.addFrameMatrix=function(r,e,i,n,a){var s=r.a,o=r.b,h=r.c,u=r.d,l=r.tx,c=r.ty,f=this.minX,d=this.minY,p=this.maxX,v=this.maxY,_=s*e+h*i+l,m=o*e+u*i+c;f=_p?_:p,v=m>v?m:v,_=s*n+h*i+l,m=o*n+u*i+c,f=_p?_:p,v=m>v?m:v,_=s*e+h*a+l,m=o*e+u*a+c,f=_p?_:p,v=m>v?m:v,_=s*n+h*a+l,m=o*n+u*a+c,f=_p?_:p,v=m>v?m:v,this.minX=f,this.minY=d,this.maxX=p,this.maxY=v},t.prototype.addVertexData=function(r,e,i){for(var n=this.minX,a=this.minY,s=this.maxX,o=this.maxY,h=e;hs?u:s,o=l>o?l:o}this.minX=n,this.minY=a,this.maxX=s,this.maxY=o},t.prototype.addVertices=function(r,e,i,n){this.addVerticesMatrix(r.worldTransform,e,i,n)},t.prototype.addVerticesMatrix=function(r,e,i,n,a,s){a===void 0&&(a=0),s===void 0&&(s=a);for(var o=r.a,h=r.b,u=r.c,l=r.d,c=r.tx,f=r.ty,d=this.minX,p=this.minY,v=this.maxX,_=this.maxY,m=i;mn?r.maxX:n,this.maxY=r.maxY>a?r.maxY:a},t.prototype.addBoundsMask=function(r,e){var i=r.minX>e.minX?r.minX:e.minX,n=r.minY>e.minY?r.minY:e.minY,a=r.maxXu?a:u,this.maxY=s>l?s:l}},t.prototype.addBoundsMatrix=function(r,e){this.addFrameMatrix(e,r.minX,r.minY,r.maxX,r.maxY)},t.prototype.addBoundsArea=function(r,e){var i=r.minX>e.x?r.minX:e.x,n=r.minY>e.y?r.minY:e.y,a=r.maxXu?a:u,this.maxY=s>l?s:l}},t.prototype.pad=function(r,e){r===void 0&&(r=0),e===void 0&&(e=r),this.isEmpty()||(this.minX-=r,this.maxX+=r,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(r,e,i,n,a,s){r-=a,e-=s,i+=a,n+=s,this.minX=this.minXi?this.maxX:i,this.minY=this.minYn?this.maxY:n},t}();/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var Gi=function(t,r){return Gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Gi(t,r)};function mn(t,r){Gi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var tt=function(t){mn(r,t);function r(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new vn,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new Ve,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return r.mixin=function(e){for(var i=Object.keys(e),n=0;n1)for(var a=0;athis.children.length)throw new Error(e+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(i,0,e),this._boundsID++,this.onChildrenChange(i),e.emit("added",this),this.emit("childAdded",e,this,i),e},r.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),a=this.getChildIndex(i);this.children[n]=i,this.children[a]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);Gt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},r.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},r.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var a=0;a0&&s<=a){o=this.children.splice(n,s);for(var h=0;h1&&this.children.sort(vd),this.sortDirty=!1},r.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,a;if(this.cullArea?(n=this.cullArea,a=this.worldTransform):this._render!==r.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,a))this._render(e);else if(this.cullArea)return;for(var s=0,o=this.children.length;s=a&&Le.x=s&&Le.y>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||F.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),r}(wt);/*! - * @pixi/particle-emitter - v5.0.7 - * Compiled Fri, 27 May 2022 02:00:12 UTC - * - * @pixi/particle-emitter is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */class Rt{constructor(r,e,i){this.value=r,this.time=e,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:_h(i):this.ease=null}static createList(r){if("list"in r){const i=r.list;let n;const{value:a,time:s}=i[0],o=n=new Rt(typeof a=="string"?cr(a):a,s,r.ease);if(i.length>2||i.length===2&&i[1].value!==a)for(let h=1;h0?this._frequency=r:this._frequency=1}get parent(){return this._parent}set parent(r){this.cleanup(),this._parent=r}init(r){if(!r)return;this.cleanup(),this._origConfig=r,this.minLifetime=r.lifetime.min,this.maxLifetime=r.lifetime.max,r.ease?this.customEase=typeof r.ease=="function"?r.ease:_h(r.ease):this.customEase=null,this.particlesPerWave=1,r.particlesPerWave&&r.particlesPerWave>1&&(this.particlesPerWave=r.particlesPerWave),this.frequency=r.frequency,this.spawnChance=typeof r.spawnChance=="number"&&r.spawnChance>0?r.spawnChance:1,this.emitterLifetime=r.emitterLifetime||-1,this.maxParticles=r.maxParticles>0?r.maxParticles:1e3,this.addAtBack=!!r.addAtBack,this.rotation=0,this.ownerPos.set(0),r.pos?this.spawnPos.copyFrom(r.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=r.emit===void 0?!0:!!r.emit,this.autoUpdate=!!r.autoUpdate;const e=r.behaviors.map(i=>{const n=W.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(Jt),e.sort((i,n)=>i===Jt?n.order===Y.Spawn?1:-1:n===Jt?i.order===Y.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==Jt&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==Jt&&i.recycleParticle)}getBehavior(r){return W.knownBehaviors[r]&&this.initBehaviors.find(e=>e instanceof W.knownBehaviors[r])||null}fillPool(r){for(;r>0;--r){const e=new ti(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(r,e=!1){for(let i=0;is.maxLife||s.age<0)this.recycle(s);else{let h=s.age*s.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),s.agePercent=h;for(let u=0;u=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let s,o;if(this._prevPosIsValid&&this._posChanged){const l=1+this._spawnTimer/r;s=(n-e)*l+e,o=(a-i)*l+i}else s=n,o=a;let h=null,u=null;for(let l=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),c=0;c=this.spawnChance)continue;let f;if(this.minLifetime===this.maxLifetime?f=this.minLifetime:f=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=f)continue;let d;this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new ti(this),d.init(f),this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d),h?(u.next=d,d.prev=u,u=d):u=h=d,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=u):(this._activeParticlesFirst=h,this._activeParticlesLast=u);for(let l=0;l=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new ti(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,o.init(h),this.addAtBack?this._parent.addChildAt(o,0):this._parent.addChild(o),i?(n.next=o,o.prev=n,n=o):n=i=o,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let a=0;athis.maxSpeed&&vh(i,this.maxSpeed/s)}r.x+=(n+i.x)/2*e,r.y+=(a+i.y)/2*e,this.rotate&&(r.rotation=Math.atan2(i.y,i.x))}}Tn.type="moveAcceleration";Tn.editorConfig=null;function Td(t){return this.ease&&(t=this.ease(t)),(this.first.next.value-this.first.value)*t+this.first.value}function xd(t){this.ease&&(t=this.ease(t));const r=this.first.value,e=this.first.next.value,i=(e.r-r.r)*t+r.r,n=(e.g-r.g)*t+r.g,a=(e.b-r.b)*t+r.b;return Mr(i,n,a)}function bd(t){this.ease&&(t=this.ease(t));let r=this.first,e=r.next;for(;t>e.time;)r=e,e=e.next;return t=(t-r.time)/(e.time-r.time),(e.value-r.value)*t+r.value}function Id(t){this.ease&&(t=this.ease(t));let r=this.first,e=r.next;for(;t>e.time;)r=e,e=e.next;t=(t-r.time)/(e.time-r.time);const i=r.value,n=e.value,a=(n.r-i.r)*t+i.r,s=(n.g-i.g)*t+i.g,o=(n.b-i.b)*t+i.b;return Mr(a,s,o)}function Ed(t){this.ease&&(t=this.ease(t));let r=this.first;for(;r.next&&t>r.next.time;)r=r.next;return r.value}function Rd(t){this.ease&&(t=this.ease(t));let r=this.first;for(;r.next&&t>r.next.time;)r=r.next;const e=r.value;return Mr(e.r,e.g,e.b)}class er{constructor(r=!1){this.first=null,this.isColor=!!r,this.interpolate=null,this.ease=null}reset(r){this.first=r,r.next&&r.next.time>=1?this.interpolate=this.isColor?xd:Td:r.isStepped?this.interpolate=this.isColor?Rd:Ed:this.interpolate=this.isColor?Id:bd,this.ease=this.first.ease}}class xn{constructor(r){this.order=Y.Normal,this.list=new er(!1),this.list.reset(Rt.createList(r.alpha))}initParticles(r){let e=r;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(r){r.alpha=this.list.interpolate(r.agePercent)}}xn.type="alpha";xn.editorConfig=null;class bn{constructor(r){this.order=Y.Normal,this.value=r.alpha}initParticles(r){let e=r;for(;e;)e.alpha=this.value,e=e.next}}bn.type="alphaStatic";bn.editorConfig=null;function mh(t){const r=[];for(let e=0;e0;--n)r.push(i)}}return r}class In{constructor(r){this.order=Y.Normal,this.anims=[];for(let e=0;e0?i.framerate:60,s={textures:n,duration:a>0?n.length/a:0,framerate:a,loop:a>0?!!i.loop:!1};this.anims.push(s)}}initParticles(r){let e=r;for(;e;){const i=Math.floor(Math.random()*this.anims.length),n=e.config.anim=this.anims[i];e.texture=n.textures[0],e.config.animElapsed=0,n.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=n.textures.length/e.maxLife):(e.config.animDuration=n.duration,e.config.animFramerate=n.framerate),e=e.next}}updateParticle(r,e){const i=r.config,n=i.anim;i.animElapsed+=e,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const a=i.animElapsed*i.animFramerate+1e-7|0;r.texture=n.textures[a]||n.textures[n.textures.length-1]||F.EMPTY}}In.type="animatedRandom";In.editorConfig=null;class En{constructor(r){this.order=Y.Normal;const e=r.anim,i=mh(e.textures),n=e.framerate<0?-1:e.framerate>0?e.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!e.loop:!1}}initParticles(r){let e=r;const i=this.anim;for(;e;)e.texture=i.textures[0],e.config.animElapsed=0,i.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=i.textures.length/e.maxLife):(e.config.animDuration=i.duration,e.config.animFramerate=i.framerate),e=e.next}updateParticle(r,e){const i=this.anim,n=r.config;n.animElapsed+=e,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const a=n.animElapsed*n.animFramerate+1e-7|0;r.texture=i.textures[a]||i.textures[i.textures.length-1]||F.EMPTY}}En.type="animatedSingle";En.editorConfig=null;class Rn{constructor(r){this.order=Y.Normal,this.value=r.blendMode}initParticles(r){let e=r;for(;e;)e.blendMode=gd(this.value),e=e.next}}Rn.type="blendMode";Rn.editorConfig=null;class Cn{constructor(r){this.order=Y.Spawn,this.spacing=r.spacing*bt,this.start=r.start*bt,this.distance=r.distance}initParticles(r){let e=0,i=r;for(;i;){let n;this.spacing?n=this.start+this.spacing*e:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,Bt(n,i.position)),i=i.next,++e}}}Cn.type="spawnBurst";Cn.editorConfig=null;class wn{constructor(r){this.order=Y.Normal,this.list=new er(!0),this.list.reset(Rt.createList(r.color))}initParticles(r){let e=r;const i=this.list.first.value,n=Mr(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(r){r.tint=this.list.interpolate(r.agePercent)}}wn.type="color";wn.editorConfig=null;class Pn{constructor(r){this.order=Y.Normal;let e=r.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(r){let e=r;for(;e;)e.tint=this.value,e=e.next}}Pn.type="colorStatic";Pn.editorConfig=null;class Nn{constructor(r){this.order=Y.Normal,this.index=0,this.textures=r.textures.map(e=>typeof e=="string"?je(e):e)}initParticles(r){let e=r;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}Nn.type="textureOrdered";Nn.editorConfig=null;const pe=new D,yh=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Cd=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(yh).join("|"),"g");function wd(t){const r=t.match(Cd);for(let e=r.length-1;e>=0;--e)yh.indexOf(r[e])>=0&&(r[e]=`Math.${r[e]}`);return t=r.join(""),new Function("x",`return ${t};`)}class An{constructor(r){var e;if(this.order=Y.Late,r.path)if(typeof r.path=="function")this.path=r.path;else try{this.path=wd(r.path)}catch{this.path=null}else this.path=i=>i;this.list=new er(!1),this.list.reset(Rt.createList(r.speed)),this.minMult=(e=r.minMult)!==null&&e!==void 0?e:1}initParticles(r){let e=r;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new D(e.x,e.y),e.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e=e.next}}updateParticle(r,e){const i=this.list.interpolate(r.agePercent)*r.config.speedMult;r.config.movement+=i*e,pe.x=r.config.movement,pe.y=this.path(pe.x),Bt(r.config.initRotation,pe),r.position.x=r.config.initPosition.x+pe.x,r.position.y=r.config.initPosition.y+pe.y}}An.type="movePath";An.editorConfig=null;class Un{constructor(){this.order=Y.Spawn}initParticles(r){}}Un.type="spawnPoint";Un.editorConfig=null;class On{constructor(r){this.order=Y.Normal,this.textures=r.textures.map(e=>typeof e=="string"?je(e):e)}initParticles(r){let e=r;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}On.type="textureRandom";On.editorConfig=null;class Sn{constructor(r){this.order=Y.Normal,this.minStart=r.minStart*bt,this.maxStart=r.maxStart*bt,this.minSpeed=r.minSpeed*bt,this.maxSpeed=r.maxSpeed*bt,this.accel=r.accel*bt}initParticles(r){let e=r;for(;e;)this.minStart===this.maxStart?e.rotation+=this.maxStart:e.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,e.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,e=e.next}updateParticle(r,e){if(this.accel){const i=r.config.rotSpeed;r.config.rotSpeed+=this.accel*e,r.rotation+=(r.config.rotSpeed+i)/2*e}else r.rotation+=r.config.rotSpeed*e}}Sn.type="rotation";Sn.editorConfig=null;class Ln{constructor(r){this.order=Y.Normal,this.min=r.min*bt,this.max=r.max*bt}initParticles(r){let e=r;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}Ln.type="rotationStatic";Ln.editorConfig=null;class Fn{constructor(r){this.order=Y.Late+1,this.rotation=(r.rotation||0)*bt}initParticles(r){let e=r;for(;e;)e.rotation=this.rotation,e=e.next}}Fn.type="noRotation";Fn.editorConfig=null;class Gn{constructor(r){var e;this.order=Y.Normal,this.list=new er(!1),this.list.reset(Rt.createList(r.scale)),this.minMult=(e=r.minMult)!==null&&e!==void 0?e:1}initParticles(r){let e=r;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.scaleMult=i,e.scale.x=e.scale.y=this.list.first.value*i,e=e.next}}updateParticle(r){r.scale.x=r.scale.y=this.list.interpolate(r.agePercent)*r.config.scaleMult}}Gn.type="scale";Gn.editorConfig=null;class Bn{constructor(r){this.order=Y.Normal,this.min=r.min,this.max=r.max}initParticles(r){let e=r;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}Bn.type="scaleStatic";Bn.editorConfig=null;class mt{constructor(r){this.order=Y.Spawn;const e=mt.shapes[r.type];if(!e)throw new Error(`No shape found with type '${r.type}'`);this.shape=new e(r.data)}static registerShape(r,e){mt.shapes[e||r.type]=r}initParticles(r){let e=r;for(;e;)this.shape.getRandPos(e),e=e.next}}mt.type="spawnShape";mt.editorConfig=null;mt.shapes={};mt.registerShape(gn);mt.registerShape(yn);mt.registerShape(Xr);mt.registerShape(Xr,"circle");class Mn{constructor(r){this.order=Y.Normal,this.texture=typeof r.texture=="string"?je(r.texture):r.texture}initParticles(r){let e=r;for(;e;)e.texture=this.texture,e=e.next}}Mn.type="textureSingle";Mn.editorConfig=null;class Xn{constructor(r){var e;this.order=Y.Late,this.list=new er(!1),this.list.reset(Rt.createList(r.speed)),this.minMult=(e=r.minMult)!==null&&e!==void 0?e:1}initParticles(r){let e=r;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e.config.velocity?e.config.velocity.set(this.list.first.value*i,0):e.config.velocity=new D(this.list.first.value*i,0),Bt(e.rotation,e.config.velocity),e=e.next}}updateParticle(r,e){const i=this.list.interpolate(r.agePercent)*r.config.speedMult,n=r.config.velocity;yd(n),vh(n,i),r.x+=n.x*e,r.y+=n.y*e}}Xn.type="moveSpeed";Xn.editorConfig=null;class kn{constructor(r){this.order=Y.Late,this.min=r.min,this.max=r.max}initParticles(r){let e=r;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new D(i,0),Bt(e.rotation,e.config.velocity),e=e.next}}updateParticle(r,e){const i=r.config.velocity;r.x+=i.x*e,r.y+=i.y*e}}kn.type="moveSpeedStatic";kn.editorConfig=null;function Zv(t,r){var e,i,n,a,s,o,h,u,l,c,f,d,p,v,_,m,T,x,E,g,y;if("behaviors"in t)return t;const b={lifetime:t.lifetime,ease:t.ease,particlesPerWave:t.particlesPerWave,frequency:t.frequency,spawnChance:t.spawnChance,emitterLifetime:t.emitterLifetime,maxParticles:t.maxParticles,addAtBack:t.addAtBack,pos:t.pos,emit:t.emit,autoUpdate:t.autoUpdate,behaviors:[]};if(t.alpha)if("start"in t.alpha)if(t.alpha.start===t.alpha.end)t.alpha.start!==1&&b.behaviors.push({type:"alphaStatic",config:{alpha:t.alpha.start}});else{const C={list:[{time:0,value:t.alpha.start},{time:1,value:t.alpha.end}]};b.behaviors.push({type:"alpha",config:{alpha:C}})}else t.alpha.list.length===1?t.alpha.list[0].value!==1&&b.behaviors.push({type:"alphaStatic",config:{alpha:t.alpha.list[0].value}}):b.behaviors.push({type:"alpha",config:{alpha:t.alpha}});if(t.acceleration&&(t.acceleration.x||t.acceleration.y)){let C,I;"start"in t.speed?(C=t.speed.start*((e=t.speed.minimumSpeedMultiplier)!==null&&e!==void 0?e:1),I=t.speed.start):(C=t.speed.list[0].value*((i=t.minimumSpeedMultiplier)!==null&&i!==void 0?i:1),I=t.speed.list[0].value),b.behaviors.push({type:"moveAcceleration",config:{accel:t.acceleration,minStart:C,maxStart:I,rotate:!t.noRotation,maxSpeed:t.maxSpeed}})}else if(!((n=t.extraData)===null||n===void 0)&&n.path){let C,I;"start"in t.speed?(I=(a=t.speed.minimumSpeedMultiplier)!==null&&a!==void 0?a:1,t.speed.start===t.speed.end?C={list:[{time:0,value:t.speed.start}]}:C={list:[{time:0,value:t.speed.start},{time:1,value:t.speed.end}]}):(C=t.speed,I=(s=t.minimumSpeedMultiplier)!==null&&s!==void 0?s:1),b.behaviors.push({type:"movePath",config:{path:t.extraData.path,speed:C,minMult:I}})}else if(t.speed)if("start"in t.speed)if(t.speed.start===t.speed.end)b.behaviors.push({type:"moveSpeedStatic",config:{min:t.speed.start*((o=t.speed.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),max:t.speed.start}});else{const C={list:[{time:0,value:t.speed.start},{time:1,value:t.speed.end}]};b.behaviors.push({type:"moveSpeed",config:{speed:C,minMult:t.speed.minimumSpeedMultiplier}})}else t.speed.list.length===1?b.behaviors.push({type:"moveSpeedStatic",config:{min:t.speed.list[0].value*((h=t.minimumSpeedMultiplier)!==null&&h!==void 0?h:1),max:t.speed.list[0].value}}):b.behaviors.push({type:"moveSpeed",config:{speed:t.speed,minMult:(u=t.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(t.scale)if("start"in t.scale){const C=(l=t.scale.minimumScaleMultiplier)!==null&&l!==void 0?l:1;if(t.scale.start===t.scale.end)b.behaviors.push({type:"scaleStatic",config:{min:t.scale.start*C,max:t.scale.start}});else{const I={list:[{time:0,value:t.scale.start},{time:1,value:t.scale.end}]};b.behaviors.push({type:"scale",config:{scale:I,minMult:C}})}}else if(t.scale.list.length===1){const C=(c=t.minimumScaleMultiplier)!==null&&c!==void 0?c:1,I=t.scale.list[0].value;b.behaviors.push({type:"scaleStatic",config:{min:I*C,max:I}})}else b.behaviors.push({type:"scale",config:{scale:t.scale,minMult:(f=t.minimumScaleMultiplier)!==null&&f!==void 0?f:1}});if(t.color)if("start"in t.color)if(t.color.start===t.color.end)t.color.start!=="ffffff"&&b.behaviors.push({type:"colorStatic",config:{color:t.color.start}});else{const C={list:[{time:0,value:t.color.start},{time:1,value:t.color.end}]};b.behaviors.push({type:"color",config:{color:C}})}else t.color.list.length===1?t.color.list[0].value!=="ffffff"&&b.behaviors.push({type:"colorStatic",config:{color:t.color.list[0].value}}):b.behaviors.push({type:"color",config:{color:t.color}});if(t.rotationAcceleration||((d=t.rotationSpeed)===null||d===void 0?void 0:d.min)||((p=t.rotationSpeed)===null||p===void 0?void 0:p.max)?b.behaviors.push({type:"rotation",config:{accel:t.rotationAcceleration||0,minSpeed:((v=t.rotationSpeed)===null||v===void 0?void 0:v.min)||0,maxSpeed:((_=t.rotationSpeed)===null||_===void 0?void 0:_.max)||0,minStart:((m=t.startRotation)===null||m===void 0?void 0:m.min)||0,maxStart:((T=t.startRotation)===null||T===void 0?void 0:T.max)||0}}):(((x=t.startRotation)===null||x===void 0?void 0:x.min)||((E=t.startRotation)===null||E===void 0?void 0:E.max))&&b.behaviors.push({type:"rotationStatic",config:{min:((g=t.startRotation)===null||g===void 0?void 0:g.min)||0,max:((y=t.startRotation)===null||y===void 0?void 0:y.max)||0}}),t.noRotation&&b.behaviors.push({type:"noRotation",config:{}}),t.blendMode&&t.blendMode!=="normal"&&b.behaviors.push({type:"blendMode",config:{blendMode:t.blendMode}}),Array.isArray(r)&&typeof r[0]!="string"&&"framerate"in r[0]){for(let C=0;C0?1:-1});Number.isInteger||(Number.isInteger=function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*! - * @pixi/accessibility - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/accessibility is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var Ad={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};tt.mixin(Ad);var Ud=9,dr=100,Od=0,Sd=0,za=2,Wa=1,Ld=-1e3,Fd=-1e3,Gd=2,Jv=function(){function t(r){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(It.tablet||It.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width=dr+"px",e.style.height=dr+"px",e.style.position="absolute",e.style.top=Od+"px",e.style.left=Sd+"px",e.style.zIndex=za.toString(),this.div=e,this.renderer=r,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),t.prototype.createTouchHook=function(){var r=this,e=document.createElement("button");e.style.width=Wa+"px",e.style.height=Wa+"px",e.style.position="absolute",e.style.top=Ld+"px",e.style.left=Fd+"px",e.style.zIndex=Gd.toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",function(){r._isMobileAccessibility=!0,r.activate(),r.destroyTouchHook()}),document.body.appendChild(e),this._hookDiv=e},t.prototype.destroyTouchHook=function(){!this._hookDiv||(document.body.removeChild(this._hookDiv),this._hookDiv=null)},t.prototype.activate=function(){var r;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(r=this.renderer.view.parentNode)===null||r===void 0||r.appendChild(this.div))},t.prototype.deactivate=function(){var r;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(r=this.div.parentNode)===null||r===void 0||r.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(r){if(!(!r.visible||!r.accessibleChildren)){r.accessible&&r.interactive&&(r._accessibleActive||this.addChild(r),r.renderId=this.renderId);var e=r.children;if(e)for(var i=0;i title : "+r.title+"
tabIndex: "+r.tabIndex},t.prototype.capHitArea=function(r){r.x<0&&(r.width+=r.x,r.x=0),r.y<0&&(r.height+=r.y,r.y=0);var e=this.renderer,i=e.width,n=e.height;r.x+r.width>i&&(r.width=i-r.x),r.y+r.height>n&&(r.height=n-r.y)},t.prototype.addChild=function(r){var e=this.pool.pop();e||(e=document.createElement("button"),e.style.width=dr+"px",e.style.height=dr+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=za.toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=r.accessiblePointerEvents,e.type=r.accessibleType,r.accessibleTitle&&r.accessibleTitle!==null?e.title=r.accessibleTitle:(!r.accessibleHint||r.accessibleHint===null)&&(e.title="displayObject "+r.tabIndex),r.accessibleHint&&r.accessibleHint!==null&&e.setAttribute("aria-label",r.accessibleHint),this.debug&&this.updateDebugHTML(e),r._accessibleActive=!0,r._accessibleDiv=e,e.displayObject=r,this.children.push(r),this.div.appendChild(r._accessibleDiv),r._accessibleDiv.tabIndex=r.tabIndex},t.prototype._onClick=function(r){var e=this.renderer.plugins.interaction,i=r.target.displayObject,n=e.eventData;e.dispatchEvent(i,"click",n),e.dispatchEvent(i,"pointertap",n),e.dispatchEvent(i,"tap",n)},t.prototype._onFocus=function(r){r.target.getAttribute("aria-live")||r.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,i=r.target.displayObject,n=e.eventData;e.dispatchEvent(i,"mouseover",n)},t.prototype._onFocusOut=function(r){r.target.getAttribute("aria-live")||r.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,i=r.target.displayObject,n=e.eventData;e.dispatchEvent(i,"mouseout",n)},t.prototype._onKeyDown=function(r){r.keyCode===Ud&&this.activate()},t.prototype._onMouseMove=function(r){r.movementX===0&&r.movementY===0||this.deactivate()},t.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t}();/*! - * @pixi/interaction - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/interaction is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var Ya=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new D,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(r,e,i){return r.worldTransform.applyInverse(i||this.global,e)},t.prototype.copyEvent=function(r){"isPrimary"in r&&r.isPrimary&&(this.isPrimary=!0),this.button="button"in r&&r.button;var e="buttons"in r&&r.buttons;this.buttons=Number.isInteger(e)?e:"which"in r&&r.which,this.width="width"in r&&r.width,this.height="height"in r&&r.height,this.tiltX="tiltX"in r&&r.tiltX,this.tiltY="tiltY"in r&&r.tiltY,this.pointerType="pointerType"in r&&r.pointerType,this.pressure="pressure"in r&&r.pressure,this.rotationAngle="rotationAngle"in r&&r.rotationAngle,this.twist="twist"in r&&r.twist||0,this.tangentialPressure="tangentialPressure"in r&&r.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}();/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var Xi=function(t,r){return Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Xi(t,r)};function Bd(t,r){Xi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Md=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),ai=function(){function t(r){this._pointerId=r,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(r,e){e?this._flags=this._flags|r:this._flags=this._flags&~r},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(r){this._flags=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return(this._flags&t.FLAGS.OVER)!==0},set:function(r){this._doSet(t.FLAGS.OVER,r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return(this._flags&t.FLAGS.RIGHT_DOWN)!==0},set:function(r){this._doSet(t.FLAGS.RIGHT_DOWN,r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return(this._flags&t.FLAGS.LEFT_DOWN)!==0},set:function(r){this._doSet(t.FLAGS.LEFT_DOWN,r)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1<<0,LEFT_DOWN:1<<1,RIGHT_DOWN:1<<2}),t}(),Xd=function(){function t(){this._tempPoint=new D}return t.prototype.recursiveFindHit=function(r,e,i,n,a){if(!e||!e.visible)return!1;var s=r.data.global;a=e.interactive||a;var o=!1,h=a,u=!0;if(e.hitArea?(n&&(e.worldTransform.applyInverse(s,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?o=!0:(n=!1,u=!1)),h=!1):e._mask&&n&&(e._mask.containsPoint&&e._mask.containsPoint(s)||(n=!1)),u&&e.interactiveChildren&&e.children)for(var l=e.children,c=l.length-1;c>=0;c--){var f=l[c],d=this.recursiveFindHit(r,f,i,n,h);if(d){if(!f.parent)continue;h=!1,d&&(r.target&&(n=!1),o=!0)}}return a&&(n&&!r.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(s)&&(o=!0),e.interactive&&(o&&!r.target&&(r.target=e),i&&i(r,e,!!o))),o},t.prototype.findHit=function(r,e,i,n){this.recursiveFindHit(r,e,i,n,!1)},t}(),kd={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(t){t?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};tt.mixin(kd);var pr=1,vr={target:null,data:{global:null}},Qv=function(t){Bd(r,t);function r(e,i){var n=t.call(this)||this;return i=i||{},n.renderer=e,n.autoPreventDefault=i.autoPreventDefault!==void 0?i.autoPreventDefault:!0,n.interactionFrequency=i.interactionFrequency||10,n.mouse=new Ya,n.mouse.identifier=pr,n.mouse.global.set(-999999),n.activeInteractionData={},n.activeInteractionData[pr]=n.mouse,n.interactionDataPool=[],n.eventData=new Md,n.interactionDOMElement=null,n.moveWhenInside=!1,n.eventsAdded=!1,n.tickerAdded=!1,n.mouseOverRenderer=!("PointerEvent"in globalThis),n.supportsTouchEvents="ontouchstart"in globalThis,n.supportsPointerEvents=!!globalThis.PointerEvent,n.onPointerUp=n.onPointerUp.bind(n),n.processPointerUp=n.processPointerUp.bind(n),n.onPointerCancel=n.onPointerCancel.bind(n),n.processPointerCancel=n.processPointerCancel.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n.processPointerDown=n.processPointerDown.bind(n),n.onPointerMove=n.onPointerMove.bind(n),n.processPointerMove=n.processPointerMove.bind(n),n.onPointerOut=n.onPointerOut.bind(n),n.processPointerOverOut=n.processPointerOverOut.bind(n),n.onPointerOver=n.onPointerOver.bind(n),n.cursorStyles={default:"inherit",pointer:"pointer"},n.currentCursorMode=null,n.cursor=null,n.resolution=1,n.delayedEvents=[],n.search=new Xd,n._tempDisplayObject=new dh,n._eventListenerOptions={capture:!0,passive:!1},n._useSystemTicker=i.useSystemTicker!==void 0?i.useSystemTicker:!0,n.setTargetElement(n.renderer.view,n.renderer.resolution),n}return Object.defineProperty(r.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(e){this._useSystemTicker=e,e?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),r.prototype.hitTest=function(e,i){return vr.target=null,vr.data.global=e,i||(i=this.lastObjectRendered),this.processInteractive(vr,i,null,!0),vr.target},r.prototype.setTargetElement=function(e,i){i===void 0&&(i=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=e,this.resolution=i,this.addEvents(),this.addTickerListener()},r.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(at.system.add(this.tickerUpdate,this,kt.INTERACTION),this.tickerAdded=!0)},r.prototype.removeTickerListener=function(){!this.tickerAdded||(at.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},r.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var e=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},r.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var e=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},r.prototype.tickerUpdate=function(e){this._deltaTime+=e,!(this._deltaTime1&&typeof MSStream=="undefined"};function Vd(t){return function(r){return r.test(t)}}function jd(t){var r={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator!="undefined"?r={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?r.userAgent=t:t&&t.userAgent&&(r={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var e=r.userAgent,i=e.split("[FBAN");typeof i[1]!="undefined"&&(e=i[0]),i=e.split("Twitter"),typeof i[1]!="undefined"&&(e=i[0]);var n=Vd(e),a={apple:{phone:n(si)&&!n(At),ipod:n($a),tablet:!n(si)&&(n(qa)||ns(r))&&!n(At),universal:n(Ka),device:(n(si)||n($a)||n(qa)||n(Ka)||ns(r))&&!n(At)},amazon:{phone:n(ve),tablet:!n(ve)&&n(_r),device:n(ve)||n(_r)},android:{phone:!n(At)&&n(ve)||!n(At)&&n(oi),tablet:!n(At)&&!n(ve)&&!n(oi)&&(n(_r)||n(Za)),device:!n(At)&&(n(ve)||n(_r)||n(oi)||n(Za))||n(/\bokhttp\b/i)},windows:{phone:n(At),tablet:n(Ja),device:n(At)||n(Ja)},other:{blackberry:n(Qa),blackberry10:n(ts),opera:n(es),firefox:n(is),chrome:n(rs),device:n(Qa)||n(ts)||n(es)||n(is)||n(rs)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}/*! - * @pixi/settings - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/settings is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var Ie=jd(globalThis.navigator);function zd(t){var r=!0;if(Ie.tablet||Ie.phone){if(Ie.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(r=!1)}}if(Ie.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(r=!1)}}}return r?t:4}function Wd(){return!Ie.apple.device}/*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/constants is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var as;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(as||(as={}));var ss;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(ss||(ss={}));var os;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(os||(os={}));var hs;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(hs||(hs={}));var us;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(us||(us={}));var ls;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ls||(ls={}));var fs;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(fs||(fs={}));var cs;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(cs||(cs={}));var ds;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ds||(ds={}));var ki;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(ki||(ki={}));var Hi;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Hi||(Hi={}));var Di;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Di||(Di={}));var ps;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(ps||(ps={}));var vs;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(vs||(vs={}));var Vi;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Vi||(Vi={}));var Xe;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Xe||(Xe={}));var _s;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(_s||(_s={}));var ji;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(ji||(ji={}));var ms;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(ms||(ms={}));var gh={MIPMAP_TEXTURES:Di.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:ji.NONE,SPRITE_MAX_TEXTURES:zd(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:Vi.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Hi.CLAMP,SCALE_MODE:ki.LINEAR,PRECISION_VERTEX:Xe.HIGH,PRECISION_FRAGMENT:Ie.apple.device?Xe.HIGH:Xe.MEDIUM,CAN_UPLOAD_SAME_BUFFER:Wd(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};/*! - * @pixi/display - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/display is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */gh.SORTABLE_CHILDREN=!1;var ys=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(r){return this.minX>this.maxX||this.minY>this.maxY?M.EMPTY:(r=r||new M(0,0,1,1),r.x=this.minX,r.y=this.minY,r.width=this.maxX-this.minX,r.height=this.maxY-this.minY,r)},t.prototype.addPoint=function(r){this.minX=Math.min(this.minX,r.x),this.maxX=Math.max(this.maxX,r.x),this.minY=Math.min(this.minY,r.y),this.maxY=Math.max(this.maxY,r.y)},t.prototype.addPointMatrix=function(r,e){var i=r.a,n=r.b,a=r.c,s=r.d,o=r.tx,h=r.ty,u=i*e.x+a*e.y+o,l=n*e.x+s*e.y+h;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},t.prototype.addQuad=function(r){var e=this.minX,i=this.minY,n=this.maxX,a=this.maxY,s=r[0],o=r[1];e=sn?s:n,a=o>a?o:a,s=r[2],o=r[3],e=sn?s:n,a=o>a?o:a,s=r[4],o=r[5],e=sn?s:n,a=o>a?o:a,s=r[6],o=r[7],e=sn?s:n,a=o>a?o:a,this.minX=e,this.minY=i,this.maxX=n,this.maxY=a},t.prototype.addFrame=function(r,e,i,n,a){this.addFrameMatrix(r.worldTransform,e,i,n,a)},t.prototype.addFrameMatrix=function(r,e,i,n,a){var s=r.a,o=r.b,h=r.c,u=r.d,l=r.tx,c=r.ty,f=this.minX,d=this.minY,p=this.maxX,v=this.maxY,_=s*e+h*i+l,m=o*e+u*i+c;f=_p?_:p,v=m>v?m:v,_=s*n+h*i+l,m=o*n+u*i+c,f=_p?_:p,v=m>v?m:v,_=s*e+h*a+l,m=o*e+u*a+c,f=_p?_:p,v=m>v?m:v,_=s*n+h*a+l,m=o*n+u*a+c,f=_p?_:p,v=m>v?m:v,this.minX=f,this.minY=d,this.maxX=p,this.maxY=v},t.prototype.addVertexData=function(r,e,i){for(var n=this.minX,a=this.minY,s=this.maxX,o=this.maxY,h=e;hs?u:s,o=l>o?l:o}this.minX=n,this.minY=a,this.maxX=s,this.maxY=o},t.prototype.addVertices=function(r,e,i,n){this.addVerticesMatrix(r.worldTransform,e,i,n)},t.prototype.addVerticesMatrix=function(r,e,i,n,a,s){a===void 0&&(a=0),s===void 0&&(s=a);for(var o=r.a,h=r.b,u=r.c,l=r.d,c=r.tx,f=r.ty,d=this.minX,p=this.minY,v=this.maxX,_=this.maxY,m=i;mn?r.maxX:n,this.maxY=r.maxY>a?r.maxY:a},t.prototype.addBoundsMask=function(r,e){var i=r.minX>e.minX?r.minX:e.minX,n=r.minY>e.minY?r.minY:e.minY,a=r.maxXu?a:u,this.maxY=s>l?s:l}},t.prototype.addBoundsMatrix=function(r,e){this.addFrameMatrix(e,r.minX,r.minY,r.maxX,r.maxY)},t.prototype.addBoundsArea=function(r,e){var i=r.minX>e.x?r.minX:e.x,n=r.minY>e.y?r.minY:e.y,a=r.maxXu?a:u,this.maxY=s>l?s:l}},t.prototype.pad=function(r,e){r===void 0&&(r=0),e===void 0&&(e=r),this.isEmpty()||(this.minX-=r,this.maxX+=r,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(r,e,i,n,a,s){r-=a,e-=s,i+=a,n+=s,this.minX=this.minXi?this.maxX:i,this.minY=this.minYn?this.maxY:n},t}();/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var zi=function(t,r){return zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},zi(t,r)};function Hn(t,r){zi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var ze=function(t){Hn(r,t);function r(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new vn,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new ys,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return r.mixin=function(e){for(var i=Object.keys(e),n=0;n1)for(var a=0;athis.children.length)throw new Error(e+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(i,0,e),this._boundsID++,this.onChildrenChange(i),e.emit("added",this),this.emit("childAdded",e,this,i),e},r.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),a=this.getChildIndex(i);this.children[n]=i,this.children[a]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);Gt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},r.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},r.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var a=0;a0&&s<=a){o=this.children.splice(n,s);for(var h=0;h1&&this.children.sort($d),this.sortDirty=!1},r.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,a;if(this.cullArea?(n=this.cullArea,a=this.worldTransform):this._render!==r.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,a))this._render(e);else if(this.cullArea)return;for(var s=0,o=this.children.length;s0||r.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?i=ks:i===Zd&&(i=Kd);var n=i/100|0;if(n===Jd)if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=e,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(e),this.type=t.TYPE.JSON}catch(o){this.abort("Error trying to parse loaded json: "+o);return}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var a=new DOMParser;this.data=a.parseFromString(e,"text/xml")}else{var s=document.createElement("div");s.innerHTML=e,this.data=s}this.type=t.TYPE.XML}catch(o){this.abort("Error trying to parse loaded xml: "+o);return}else this.data=r.response||e;else{this.abort("["+r.status+"] "+r.statusText+": "+r.responseURL);return}this.complete()},t.prototype._determineCrossOrigin=function(r,e){if(r.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,yr||(yr=document.createElement("a")),yr.href=r;var i=Th(yr.href,{strictMode:!0}),n=!i.port&&e.port===""||i.port===e.port,a=i.protocol?i.protocol+":":"";return i.host!==e.hostname||!n||a!==e.protocol?"anonymous":""},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(r){r===void 0&&(r=this.url);var e="";if(this.isDataUrl){var i=r.indexOf("/");e=r.substring(i+1,r.indexOf(";",i))}else{var n=r.indexOf("?"),a=r.indexOf("#"),s=Math.min(n>-1?n:r.length,a>-1?a:r.length);r=r.substring(0,s),e=r.substring(r.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(r){switch(r){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();(function(t){(function(r){r[r.NONE=0]="NONE",r[r.DATA_URL=1]="DATA_URL",r[r.COMPLETE=2]="COMPLETE",r[r.LOADING=4]="LOADING"})(t.STATUS_FLAGS||(t.STATUS_FLAGS={})),function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.JSON=1]="JSON",r[r.XML=2]="XML",r[r.IMAGE=3]="IMAGE",r[r.AUDIO=4]="AUDIO",r[r.VIDEO=5]="VIDEO",r[r.TEXT=6]="TEXT"}(t.TYPE||(t.TYPE={})),function(r){r[r.XHR=1]="XHR",r[r.IMAGE=2]="IMAGE",r[r.AUDIO=3]="AUDIO",r[r.VIDEO=4]="VIDEO"}(t.LOAD_TYPE||(t.LOAD_TYPE={})),function(r){r.DEFAULT="text",r.BUFFER="arraybuffer",r.BLOB="blob",r.DOCUMENT="document",r.JSON="json",r.TEXT="text"}(t.XHR_RESPONSE_TYPE||(t.XHR_RESPONSE_TYPE={})),t._loadTypeMap={gif:t.LOAD_TYPE.IMAGE,png:t.LOAD_TYPE.IMAGE,bmp:t.LOAD_TYPE.IMAGE,jpg:t.LOAD_TYPE.IMAGE,jpeg:t.LOAD_TYPE.IMAGE,tif:t.LOAD_TYPE.IMAGE,tiff:t.LOAD_TYPE.IMAGE,webp:t.LOAD_TYPE.IMAGE,tga:t.LOAD_TYPE.IMAGE,svg:t.LOAD_TYPE.IMAGE,"svg+xml":t.LOAD_TYPE.IMAGE,mp3:t.LOAD_TYPE.AUDIO,ogg:t.LOAD_TYPE.AUDIO,wav:t.LOAD_TYPE.AUDIO,mp4:t.LOAD_TYPE.VIDEO,webm:t.LOAD_TYPE.VIDEO},t._xhrTypeMap={xhtml:t.XHR_RESPONSE_TYPE.DOCUMENT,html:t.XHR_RESPONSE_TYPE.DOCUMENT,htm:t.XHR_RESPONSE_TYPE.DOCUMENT,xml:t.XHR_RESPONSE_TYPE.DOCUMENT,tmx:t.XHR_RESPONSE_TYPE.DOCUMENT,svg:t.XHR_RESPONSE_TYPE.DOCUMENT,tsx:t.XHR_RESPONSE_TYPE.DOCUMENT,gif:t.XHR_RESPONSE_TYPE.BLOB,png:t.XHR_RESPONSE_TYPE.BLOB,bmp:t.XHR_RESPONSE_TYPE.BLOB,jpg:t.XHR_RESPONSE_TYPE.BLOB,jpeg:t.XHR_RESPONSE_TYPE.BLOB,tif:t.XHR_RESPONSE_TYPE.BLOB,tiff:t.XHR_RESPONSE_TYPE.BLOB,webp:t.XHR_RESPONSE_TYPE.BLOB,tga:t.XHR_RESPONSE_TYPE.BLOB,json:t.XHR_RESPONSE_TYPE.JSON,text:t.XHR_RESPONSE_TYPE.TEXT,txt:t.XHR_RESPONSE_TYPE.TEXT,ttf:t.XHR_RESPONSE_TYPE.BUFFER,otf:t.XHR_RESPONSE_TYPE.BUFFER},t.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(J||(J={}));function Qt(){}function Qd(t){return function(){for(var e=arguments,i=[],n=0;n>2,n[1]=(i[0]&3)<<4|i[1]>>4,n[2]=(i[1]&15)<<2|i[2]>>6,n[3]=i[2]&63;var s=e-(t.length-1);switch(s){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64;break}for(var a=0;a0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=33776&&e<=33779)return"s3tc";if(e>=37488&&e<=37497)return"etc";if(e>=35840&&e<=35843)return"pvrtc";if(e>=36196)return"etc1";if(e>=35986&&e<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},r._createLevelBuffers=function(e,i,n,a,s,o,h){for(var u=new Array(n),l=e.byteOffset,c=o,f=h,d=c+a-1&~(a-1),p=f+s-1&~(s-1),v=d*p*Sr[i],_=0;_1?c:d,levelHeight:n>1?f:p,levelBuffer:new Uint8Array(e.buffer,l,v)},l+=v,c=c>>1||1,f=f>>1||1,d=c+a-1&~(a-1),p=f+s-1&~(s-1),v=d*p*Sr[i];return u},r}(hp),r_=function(){function t(){}return t.use=function(r,e){var i=r.data,n=this;if(r.type===J.TYPE.JSON&&i&&i.cacheID&&i.textures){for(var a=i.textures,s=void 0,o=void 0,h=0,u=a.length;h>>1,S=S>>>1}for(var U=b,G=0;G1||a!==0?I:S,levelHeight:d>1||a!==0?w:G,levelBuffer:new Uint8Array(e,U,C)},U+=C}X+=A+4,X=X%4!==0?X+4-X%4:X,I=I>>1||1,w=w>>1||1,S=I+v-1&~(v-1),G=w+_-1&~(_-1),C=S*G*g}return a!==0?{uncompressed:x.map(function(j){var L=j[0].levelBuffer,yt=!1;return a===O.FLOAT?L=new Float32Array(j[0].levelBuffer.buffer,j[0].levelBuffer.byteOffset,j[0].levelBuffer.byteLength/4):a===O.UNSIGNED_INT?(yt=!0,L=new Uint32Array(j[0].levelBuffer.buffer,j[0].levelBuffer.byteOffset,j[0].levelBuffer.byteLength/4)):a===O.INT&&(yt=!0,L=new Int32Array(j[0].levelBuffer.buffer,j[0].levelBuffer.byteOffset,j[0].levelBuffer.byteLength/4)),{resource:new Je(L,{width:j[0].levelWidth,height:j[0].levelHeight}),type:a,format:yt?t.convertFormatToInteger(s):s}}),kvData:y}:{compressed:x.map(function(j){return new $i(null,{format:o,width:h,height:u,levels:d,levelBuffers:j})}),kvData:y}},t.validate=function(r,e){for(var i=0;ie-a){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;uo&&(n=o),s._properties=[!1,!0,!1,!1,!1],s._maxSize=e,s._batchSize=n,s._buffers=null,s._bufferUpdateIDs=[],s._updateID=0,s.interactiveChildren=!1,s.blendMode=P.NORMAL,s.autoResize=a,s.roundPixels=!0,s.baseTexture=null,s.setProperties(i),s._tint=0,s.tintRgb=new Float32Array(4),s.tint=16777215,s}return r.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},r.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(r.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e,Re(e,this.tintRgb)},enumerable:!1,configurable:!0}),r.prototype.render=function(e){var i=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return i.onChildrenChange(0)})),e.batch.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},r.prototype.onChildrenChange=function(e){for(var i=Math.floor(e/this._batchSize);this._bufferUpdateIDs.lengthn&&!e.autoResize&&(o=n);var h=e._buffers;h||(h=e._buffers=this.generateBuffers(e));var u=i[0]._texture.baseTexture;this.state.blendMode=Wo(e.blendMode,u.alphaMode),s.state.set(this.state);var l=s.gl,c=e.worldTransform.copyTo(this.tempMatrix);c.prepend(s.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=c.toArray(!0),this.shader.uniforms.uColor=Of(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,u.alphaMode),this.shader.uniforms.uSampler=u,this.renderer.shader.bind(this.shader);for(var f=!1,d=0,p=0;da&&(v=a),p>=h.length&&h.push(this._generateOneMoreBuffer(e));var _=h[p];_.uploadDynamic(i,d,v);var m=e._bufferUpdateIDs[p]||0;f=f||_._updateID0,c=u.alpha,f=c<1&&l?pn(u._tintRGB,c):u._tintRGB+(c*255<<24);a[o]=f,a[o+s]=f,a[o+s*2]=f,a[o+s*3]=f,o+=s*4}},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},r}(Br);/*! - * @pixi/graphics - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/graphics is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var jt;(function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"})(jt||(jt={}));var zt;(function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"})(zt||(zt={}));var Ye={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,r){if(r===void 0&&(r=20),!this.adaptive||!t||isNaN(t))return r;var e=Math.ceil(t/this.maxLength);return ethis.maxSegments&&(e=this.maxSegments),e}},Eh=function(){function t(){this.color=16777215,this.alpha=1,this.texture=F.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var r=new t;return r.color=this.color,r.alpha=this.alpha,r.texture=this.texture,r.matrix=this.matrix,r.visible=this.visible,r},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=F.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}();/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var Zi=function(t,r){return Zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Zi(t,r)};function Dn(t,r){Zi(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function Ys(t,r){var e,i;r===void 0&&(r=!1);var n=t.length;if(!(n<6)){for(var a=0,s=0,o=t[n-2],h=t[n-1];s0||r&&a<=0)for(var c=n/2,s=c+c%2;s=6){Ys(e,!1);for(var s=[],o=0;o=0&&o>=0&&n>=0&&a>=0)){r.length=0;return}var d=Math.ceil(2.3*Math.sqrt(s+o)),p=d*8+(n?4:0)+(a?4:0);if(r.length=p,p!==0){if(d===0){r.length=8,r[0]=r[6]=e+n,r[1]=r[3]=i+a,r[2]=r[4]=e-n,r[5]=r[7]=i-a;return}var v=0,_=d*4+(n?2:0)+2,m=_,T=p;{var x=n+s,E=a,g=e+x,y=e-x,b=i+E;if(r[v++]=g,r[v++]=b,r[--_]=b,r[--_]=y,a){var C=i-E;r[m++]=y,r[m++]=C,r[--T]=C,r[--T]=g}}for(var I=1;Ic&&(c+=Math.PI*2);var f=l,d=c-l,p=Math.abs(d),v=Math.sqrt(h*h+u*u),_=(15*p*Math.sqrt(v)/Math.PI>>0)+1,m=d/_;if(f+=m,o){s.push(t,r),s.push(e,i);for(var T=1,x=f;T<_;T++,x+=m)s.push(t,r),s.push(t+Math.sin(x)*v,r+Math.cos(x)*v);s.push(t,r),s.push(n,a)}else{s.push(e,i),s.push(t,r);for(var T=1,x=f;T<_;T++,x+=m)s.push(t+Math.sin(x)*v,r+Math.cos(x)*v),s.push(t,r);s.push(n,a),s.push(t,r)}return _*2}function Op(t,r){var e=t.shape,i=t.points||e.points.slice(),n=r.closePointEps;if(i.length!==0){var a=t.lineStyle,s=new D(i[0],i[1]),o=new D(i[i.length-2],i[i.length-1]),h=e.type!==Z.POLY||e.closeStroke,u=Math.abs(s.x-o.x)T?(Nt?(f.push(lt,ft),f.push(g+I*U,y+w*U),f.push(lt,ft),f.push(g+S*U,y+G*U)):(f.push(g-I*A,y-w*A),f.push(ht,ut),f.push(g-S*A,y-G*A),f.push(ht,ut)),p+=2):a.join===jt.ROUND?Nt?(f.push(lt,ft),f.push(g+I*U,y+w*U),p+=me(g,y,g+I*U,y+w*U,g+S*U,y+G*U,f,!0)+4,f.push(lt,ft),f.push(g+S*U,y+G*U)):(f.push(g-I*A,y-w*A),f.push(ht,ut),p+=me(g,y,g-I*A,y-w*A,g-S*A,y-G*A,f,!1)+4,f.push(g-S*A,y-G*A),f.push(ht,ut)):(f.push(lt,ft),f.push(ht,ut)):(f.push(g-I*A,y-w*A),f.push(g+I*U,y+w*U),a.join===jt.ROUND?Nt?p+=me(g,y,g+I*U,y+w*U,g+S*U,y+G*U,f,!0)+2:p+=me(g,y,g-I*A,y-w*A,g-S*A,y-G*A,f,!1)+2:a.join===jt.MITER&&ce/m<=T&&(Nt?(f.push(ht,ut),f.push(ht,ut)):(f.push(lt,ft),f.push(lt,ft)),p+=2),f.push(g-S*A,y-G*A),f.push(g+S*U,y+G*U),p+=2)}x=i[(d-2)*2],E=i[(d-2)*2+1],g=i[(d-1)*2],y=i[(d-1)*2+1],I=-(E-y),w=x-g,X=Math.sqrt(I*I+w*w),I/=X,w/=X,I*=_,w*=_,f.push(g-I*A,y-w*A),f.push(g+I*U,y+w*U),h||(a.cap===zt.ROUND?p+=me(g-I*(A-U)*.5,y-w*(A-U)*.5,g-I*A,y-w*A,g+I*U,y+w*U,f,!1)+2:a.cap===zt.SQUARE&&(p+=$s(g,y,I,w,A,U,!1,f)));for(var xt=r.indices,de=Ye.epsilon*Ye.epsilon,k=v;kf*u}},t.arc=function(r,e,i,n,a,s,o,h,u){for(var l=o-s,c=Ye._segmentsCount(Math.abs(l)*a,Math.ceil(Math.abs(l)/Or)*40),f=l/(c*2),d=f*2,p=Math.cos(f),v=Math.sin(f),_=c-1,m=_%1/_,T=0;T<=_;++T){var x=T+m*T,E=f+s+d*x,g=Math.cos(E),y=-Math.sin(E);u.push((p*g+v*y)*a+i,(p*-y+v*g)*a+n)}},t}(),Lp=function(){function t(){}return t.curveLength=function(r,e,i,n,a,s,o,h){for(var u=10,l=0,c=0,f=0,d=0,p=0,v=0,_=0,m=0,T=0,x=0,E=0,g=r,y=e,b=1;b<=u;++b)c=b/u,f=c*c,d=f*c,p=1-c,v=p*p,_=v*p,m=_*r+3*v*c*i+3*p*f*a+d*o,T=_*e+3*v*c*n+3*p*f*s+d*h,x=g-m,E=y-T,g=m,y=T,l+=Math.sqrt(x*x+E*E);return l},t.curveTo=function(r,e,i,n,a,s,o){var h=o[o.length-2],u=o[o.length-1];o.length-=2;var l=Ye._segmentsCount(t.curveLength(h,u,r,e,i,n,a,s)),c=0,f=0,d=0,p=0,v=0;o.push(h,u);for(var _=1,m=0;_<=l;++_)m=_/l,c=1-m,f=c*c,d=f*c,p=m*m,v=p*m,o.push(d*h+3*f*m*r+3*c*p*i+v*a,d*u+3*f*m*e+3*c*p*n+v*s)},t}(),Fp=function(){function t(){}return t.curveLength=function(r,e,i,n,a,s){var o=r-2*i+a,h=e-2*n+s,u=2*i-2*r,l=2*n-2*e,c=4*(o*o+h*h),f=4*(o*u+h*l),d=u*u+l*l,p=2*Math.sqrt(c+f+d),v=Math.sqrt(c),_=2*c*v,m=2*Math.sqrt(d),T=f/v;return(_*p+v*f*(p-m)+(4*d*c-f*f)*Math.log((2*v+T+p)/(T+m)))/(4*_)},t.curveTo=function(r,e,i,n,a){for(var s=a[a.length-2],o=a[a.length-1],h=Ye._segmentsCount(t.curveLength(s,o,r,e,i,n)),u=0,l=0,c=1;c<=h;++c){var f=c/h;u=s+(r-s)*f,l=o+(e-o)*f,a.push(u+(r+(i-r)*f-u)*f,l+(e+(n-e)*f-l)*f)}},t}(),Gp=function(){function t(){this.reset()}return t.prototype.begin=function(r,e,i){this.reset(),this.style=r,this.start=e,this.attribStart=i},t.prototype.end=function(r,e){this.attribSize=e-this.attribStart,this.size=r-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),te,vi=(te={},te[Z.POLY]=Rh,te[Z.CIRC]=Lr,te[Z.ELIP]=Lr,te[Z.RECT]=Ap,te[Z.RREC]=Up,te),Zs=[],Ir=[],Js=function(){function t(r,e,i,n){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=null),this.points=[],this.holes=[],this.shape=r,this.lineStyle=i,this.fillStyle=e,this.matrix=n,this.type=r.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),ye=new D,Bp=new Ve,Mp=function(t){Dn(r,t);function r(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new Ve,e.boundsDirty=-1,e}return Object.defineProperty(r.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),r.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var e=0;e0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},r.prototype.drawShape=function(e,i,n,a){i===void 0&&(i=null),n===void 0&&(n=null),a===void 0&&(a=null);var s=new Js(e,i,n,a);return this.graphicsData.push(s),this.dirty++,this},r.prototype.drawHole=function(e,i){if(i===void 0&&(i=null),!this.graphicsData.length)return null;var n=new Js(e,null,null,i),a=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=a.lineStyle,a.holes.push(n),this.dirty++,this},r.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e0&&(a=this.batches[this.batches.length-1],s=a.style);for(var o=this.shapeIndex;o65535&&e;this.indicesUint16=E?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},r.prototype._compareStyles=function(e,i){return!(!e||!i||e.texture.baseTexture!==i.texture.baseTexture||e.color+e.alpha!==i.color+i.alpha||!!e.native!=!!i.native)},r.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var e=0,i=this.graphicsData.length;e65535*2)return!1;for(var e=this.batches,i=0;i0&&(s=Ir.pop(),s||(s=new Si,s.texArray=new Li),this.drawCalls.push(s)),s.start=f,s.size=0,s.texArray.count=0,s.type=c),_.touched=1,_._batchEnabled=e,_._batchLocation=o,_.wrapMode=Ft.REPEAT,s.texArray.elements[s.texArray.count++]=_,o++)),s.size+=d.size,f+=d.size,u=_._batchLocation,this.addColors(n,v.color,v.alpha,d.attribSize,d.attribStart),this.addTextureIds(a,u,d.attribSize,d.attribStart)}H._globalBatch=e,this.packAttributes()},r.prototype.packAttributes=function(){for(var e=this.points,i=this.uvs,n=this.colors,a=this.textureIds,s=new ArrayBuffer(e.length*3*4),o=new Float32Array(s),h=new Uint32Array(s),u=0,l=0;l>16)+(i&65280)+((i&255)<<16),h=pn(o,n);e.length=Math.max(e.length,s+a);for(var u=0;u0&&e.alpha>0;return i?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:i},e)):this._lineStyle.reset(),this},r.prototype.startPoly=function(){if(this.currentPath){var e=this.currentPath.points,i=this.currentPath.points.length;i>2&&(this.drawShape(this.currentPath),this.currentPath=new Cr,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[i-2],e[i-1]))}else this.currentPath=new Cr,this.currentPath.closeStroke=!1},r.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},r.prototype.moveTo=function(e,i){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=i,this},r.prototype.lineTo=function(e,i){this.currentPath||this.moveTo(0,0);var n=this.currentPath.points,a=n[n.length-2],s=n[n.length-1];return(a!==e||s!==i)&&n.push(e,i),this},r.prototype._initCurve=function(e,i){e===void 0&&(e=0),i===void 0&&(i=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,i]):this.moveTo(e,i)},r.prototype.quadraticCurveTo=function(e,i,n,a){this._initCurve();var s=this.currentPath.points;return s.length===0&&this.moveTo(0,0),Fp.curveTo(e,i,n,a,s),this},r.prototype.bezierCurveTo=function(e,i,n,a,s,o){return this._initCurve(),Lp.curveTo(e,i,n,a,s,o,this.currentPath.points),this},r.prototype.arcTo=function(e,i,n,a,s){this._initCurve(e,i);var o=this.currentPath.points,h=Ks.curveTo(e,i,n,a,s,o);if(h){var u=h.cx,l=h.cy,c=h.radius,f=h.startAngle,d=h.endAngle,p=h.anticlockwise;this.arc(u,l,c,f,d,p)}return this},r.prototype.arc=function(e,i,n,a,s,o){if(o===void 0&&(o=!1),a===s)return this;!o&&s<=a?s+=Or:o&&a<=s&&(a+=Or);var h=s-a;if(h===0)return this;var u=e+Math.cos(a)*n,l=i+Math.sin(a)*n,c=this._geometry.closePointEps,f=this.currentPath?this.currentPath.points:null;if(f){var d=Math.abs(f[f.length-2]-u),p=Math.abs(f[f.length-1]-l);d0;return i?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:i},e)):this._fillStyle.reset(),this},r.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},r.prototype.drawRect=function(e,i,n,a){return this.drawShape(new M(e,i,n,a))},r.prototype.drawRoundedRect=function(e,i,n,a,s){return this.drawShape(new Xf(e,i,n,a,s))},r.prototype.drawCircle=function(e,i,n){return this.drawShape(new Bf(e,i,n))},r.prototype.drawEllipse=function(e,i,n,a){return this.drawShape(new Mf(e,i,n,a))},r.prototype.drawPolygon=function(){for(var e=arguments,i=[],n=0;n>16&255)/255*s,o.tint[1]=(a>>8&255)/255*s,o.tint[2]=(a&255)/255*s,o.tint[3]=s,e.shader.bind(i),e.geometry.bind(n,i),e.state.set(this.state);for(var u=0,l=h.length;u>16)+(u&65280)+((u&255)<<16)}}},r.prototype.calculateVertices=function(){var e=this.transform._worldID;if(this._transformID!==e){this._transformID=e;for(var i=this.transform.worldTransform,n=i.a,a=i.b,s=i.c,o=i.d,h=i.tx,u=i.ty,l=this._geometry.points,c=this.vertexData,f=0,d=0;d=0;i--){var n=e[i].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&Dp.indexOf(n)<0&&(n='"'+n+'"'),e[i]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+r+" "+e.join(",")},t}();function Qs(t){return typeof t=="number"?Vo(t):(typeof t=="string"&&t.indexOf("0x")===0&&(t=t.replace("0x","#")),t)}function yi(t){if(Array.isArray(t)){for(var r=0;rp)if(s!==""&&(o+=t.addLine(s),s="",a=0),t.canBreakWords(m,e.breakWords))for(var g=t.wordWrapSplit(m),y=0;yp&&(o+=t.addLine(s),d=!1,s="",a=0),s+=b,a+=S}else{s.length>0&&(o+=t.addLine(s),s="",a=0);var G=_===v.length-1;o+=t.addLine(m,!G),d=!1,s="",a=0}else E+a>p&&(d=!1,o+=t.addLine(s),s="",a=0),(s.length>0||!t.isBreakingSpace(m)||d)&&(s+=m,a+=E)}return o+=t.addLine(s,!1),o},t.addLine=function(r,e){return e===void 0&&(e=!0),r=t.trimRight(r),r=e?r+` -`:r,r},t.getFromCache=function(r,e,i,n){var a=i[r];if(typeof a!="number"){var s=r.length*e;a=n.measureText(r).width+s,i[r]=a}return a},t.collapseSpaces=function(r){return r==="normal"||r==="pre-line"},t.collapseNewlines=function(r){return r==="normal"},t.trimRight=function(r){if(typeof r!="string")return"";for(var e=r.length-1;e>=0;e--){var i=r[e];if(!t.isBreakingSpace(i))break;r=r.slice(0,-1)}return r},t.isNewline=function(r){return typeof r!="string"?!1:t._newlines.indexOf(r.charCodeAt(0))>=0},t.isBreakingSpace=function(r,e){return typeof r!="string"?!1:t._breakingSpaces.indexOf(r.charCodeAt(0))>=0},t.tokenize=function(r){var e=[],i="";if(typeof r!="string")return e;for(var n=0;no;--f){for(var v=0;v0&&_>m&&(T=(m+_)/2);var x=m+v,E=n.lineHeight*(p+1),g=x;p+10},t}();function Yp(t,r){var e=!1;if(t&&t._textures&&t._textures.length){for(var i=0;i=0;e--)this.add(r.children[e]);return this},t.prototype.destroy=function(){this.ticking&&at.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}();function wh(t,r){return r instanceof H?(r._glTextures[t.CONTEXT_UID]||t.texture.bind(r),!0):!1}function ev(t,r){if(!(r instanceof Fr))return!1;var e=r.geometry;r.finishPoly(),e.updateBatches();for(var i=e.batches,n=0;n=a&&Be.x=s&&Be.y1?Wt.from(sv,ov,i):Wt.from(to,av,i)},r.prototype.render=function(e){var i=this.renderer,n=this.quad,a=n.vertices;a[0]=a[6]=e._width*-e.anchor.x,a[1]=a[3]=e._height*-e.anchor.y,a[2]=a[4]=e._width*(1-e.anchor.x),a[5]=a[7]=e._height*(1-e.anchor.y);var s=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;a=n.uvs,a[0]=a[6]=-s,a[1]=a[3]=-o,a[2]=a[4]=1-s,a[5]=a[7]=1-o,n.invalidate();var h=e._texture,u=h.baseTexture,l=e.tileTransform.localTransform,c=e.uvMatrix,f=u.isPowerOfTwo&&h.frame.width===u.width&&h.frame.height===u.height;f&&(u._glTextures[i.CONTEXT_UID]?f=u.wrapMode!==Ft.CLAMP:u.wrapMode===Ft.CLAMP&&(u.wrapMode=Ft.REPEAT));var d=f?this.simpleShader:this.shader,p=h.width,v=h.height,_=e._width,m=e._height;Er.set(l.a*p/_,l.b*p/m,l.c*v/_,l.d*v/m,l.tx/_,l.ty/m),Er.invert(),f?Er.prepend(c.mapCoord):(d.uniforms.uMapCoord=c.mapCoord.toArray(!0),d.uniforms.uClampFrame=c.uClampFrame,d.uniforms.uClampOffset=c.uClampOffset),d.uniforms.uTransform=Er.toArray(!0),d.uniforms.uColor=Yo(e.tint,e.worldAlpha,d.uniforms.uColor,u.alphaMode),d.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),d.uniforms.uSampler=h,i.shader.bind(d),i.geometry.bind(n),this.state.blendMode=Wo(e.blendMode,u.alphaMode),i.state.set(this.state),i.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},r}(Br);/*! - * @pixi/mesh - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/mesh is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var en=function(t,r){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},en(t,r)};function Vn(t,r){en(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var hv=function(){function t(r,e){this.uvBuffer=r,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(r){if(!(!r&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;(!this.data||this.data.length!==e.length)&&(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),Ti=new D,eo=new Cr,qe=function(t){Vn(r,t);function r(e,i,n,a){a===void 0&&(a=vt.TRIANGLES);var s=t.call(this)||this;return s.geometry=e,s.shader=i,s.state=n||ue.for2d(),s.drawMode=a,s.start=0,s.size=0,s.uvs=null,s.indices=null,s.vertexData=new Float32Array(1),s.vertexDirty=-1,s._transformID=-1,s._roundPixels=N.ROUND_PIXELS,s.batchUvs=null,s}return Object.defineProperty(r.prototype,"geometry",{get:function(){return this._geometry},set:function(e){this._geometry!==e&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=e,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"material",{get:function(){return this.shader},set:function(e){this.shader=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(e){this.shader.tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(e){this.shader.texture=e},enumerable:!1,configurable:!0}),r.prototype._render=function(e){var i=this.geometry.buffers[0].data,n=this.shader;n.batchable&&this.drawMode===vt.TRIANGLES&&i.length>16)+(e&65280)+((e&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),r.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var e=this.texture.baseTexture;Yo(this._tint,this._alpha,this.uniforms.uColor,e.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},r}(Wt),kr=function(t){Vn(r,t);function r(e,i,n){var a=t.call(this)||this,s=new it(e),o=new it(i,!0),h=new it(n,!0,!0);return a.addAttribute("aVertexPosition",s,2,!1,O.FLOAT).addAttribute("aTextureCoord",o,2,!1,O.FLOAT).addIndex(h),a._updateId=-1,a}return Object.defineProperty(r.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),r}(Qe);/*! - * @pixi/text-bitmap - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/text-bitmap is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var rn=function(t,r){return rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},rn(t,r)};function fv(t,r){rn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Gr=function(){function t(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return t}(),cv=function(){function t(){}return t.test=function(r){return typeof r=="string"&&r.indexOf("info face=")===0},t.parse=function(r){var e=r.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var n in e){var a=e[n].match(/^[a-z]+/gm)[0],s=e[n].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),o={};for(var h in s){var u=s[h].split("="),l=u[0],c=u[1].replace(/"/gm,""),f=parseFloat(c),d=isNaN(f)?c:f;o[l]=d}i[a].push(o)}var p=new Gr;return i.info.forEach(function(v){return p.info.push({face:v.face,size:parseInt(v.size,10)})}),i.common.forEach(function(v){return p.common.push({lineHeight:parseInt(v.lineHeight,10)})}),i.page.forEach(function(v){return p.page.push({id:parseInt(v.id,10),file:v.file})}),i.char.forEach(function(v){return p.char.push({id:parseInt(v.id,10),page:parseInt(v.page,10),x:parseInt(v.x,10),y:parseInt(v.y,10),width:parseInt(v.width,10),height:parseInt(v.height,10),xoffset:parseInt(v.xoffset,10),yoffset:parseInt(v.yoffset,10),xadvance:parseInt(v.xadvance,10)})}),i.kerning.forEach(function(v){return p.kerning.push({first:parseInt(v.first,10),second:parseInt(v.second,10),amount:parseInt(v.amount,10)})}),i.distanceField.forEach(function(v){return p.distanceField.push({distanceRange:parseInt(v.distanceRange,10),fieldType:v.fieldType})}),p},t}(),nn=function(){function t(){}return t.test=function(r){return r instanceof XMLDocument&&r.getElementsByTagName("page").length&&r.getElementsByTagName("info")[0].getAttribute("face")!==null},t.parse=function(r){for(var e=new Gr,i=r.getElementsByTagName("info"),n=r.getElementsByTagName("common"),a=r.getElementsByTagName("page"),s=r.getElementsByTagName("char"),o=r.getElementsByTagName("kerning"),h=r.getElementsByTagName("distanceField"),u=0;u")>-1){var e=new globalThis.DOMParser().parseFromString(r,"text/xml");return nn.test(e)}return!1},t.parse=function(r){var e=new globalThis.DOMParser().parseFromString(r,"text/xml");return nn.parse(e)},t}(),xi=[cv,nn,dv];function Nh(t){for(var r=0;r=u-C*o){if(v===0)throw new Error("[BitmapFont] textureHeight "+u+"px is "+("too small for "+c.fontSize+"px fonts"));--g,_=null,m=null,T=null,v=0,p=0,x=0;continue}if(x=Math.max(C+y.fontProperties.descent,x),I*o+p>=f){--g,v+=x*o,v=Math.ceil(v),p=0,x=0;continue}vv(_,m,y,p,v,o,c);var w=wr(y.text);d.char.push({id:w,page:E.length-1,x:p/o,y:v/o,width:I,height:C,xoffset:0,yoffset:0,xadvance:Math.ceil(b-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0))}),p+=(I+2*s)*o,p=Math.ceil(p)}for(var g=0,S=l.length;g0&&a.x>c&&(++x,Gt(s,1+m-x,1+y-m),y=m,m=-1,o.push(T),h.push(s.length>0?s[s.length-1].prevSpaces:0),v=Math.max(v,T),_++,a.x=0,a.y+=i.lineHeight,d=null,g=0)}}var S=l[l.length-1];S!=="\r"&&S!==` -`&&(/(?:\s)/.test(S)&&(p=T),o.push(p),v=Math.max(v,p),h.push(-1));for(var G=[],y=0;y<=_;y++){var X=0;this._align==="right"?X=v-o[y]:this._align==="center"?X=(v-o[y])/2:this._align==="justify"&&(X=h[y]<0?0:(v-o[y])/h[y]),G.push(X)}for(var rt=s.length,A={},U=[],k=this._activePagesMeshData,y=0;y6*gt)||L.vertices.length=e&&(s=t-o-1),h=h.replace("%value%",r[s].toString()),n+=h,n+=` -`}return i=i.replace("%blur%",n),i=i.replace("%size%",t.toString()),i}/*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/constants is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var io;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(io||(io={}));var no;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(no||(no={}));var ao;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(ao||(ao={}));var so;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(so||(so={}));var oo;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(oo||(oo={}));var ho;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ho||(ho={}));var uo;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(uo||(uo={}));var lo;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(lo||(lo={}));var fo;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(fo||(fo={}));var co;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(co||(co={}));var po;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(po||(po={}));var vo;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(vo||(vo={}));var _o;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(_o||(_o={}));var Ze;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Ze||(Ze={}));var mo;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(mo||(mo={}));var yo;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(yo||(yo={}));var go;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(go||(go={}));var To;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(To||(To={}));var xo;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(xo||(xo={}));var bo=function(t){Uh(r,t);function r(e,i,n,a,s){i===void 0&&(i=8),n===void 0&&(n=4),a===void 0&&(a=N.FILTER_RESOLUTION),s===void 0&&(s=5);var o=this,h=Ev(s,e),u=wv(s);return o=t.call(this,h,u)||this,o.horizontal=e,o.resolution=a,o._quality=0,o.quality=n,o.blur=i,o}return r.prototype.apply=function(e,i,n,a){if(n?this.horizontal?this.uniforms.strength=1/n.width*(n.width/i.width):this.uniforms.strength=1/n.height*(n.height/i.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/i.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/i.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,i,n,a);else{var s=e.getFilterTexture(),o=e.renderer,h=i,u=s;this.state.blend=!1,e.applyFilter(this,h,u,Ze.CLEAR);for(var l=1;l 0.0) { - c.rgb /= c.a; - } - - vec4 result; - - result.r = (m[0] * c.r); - result.r += (m[1] * c.g); - result.r += (m[2] * c.b); - result.r += (m[3] * c.a); - result.r += m[4]; - - result.g = (m[5] * c.r); - result.g += (m[6] * c.g); - result.g += (m[7] * c.b); - result.g += (m[8] * c.a); - result.g += m[9]; - - result.b = (m[10] * c.r); - result.b += (m[11] * c.g); - result.b += (m[12] * c.b); - result.b += (m[13] * c.a); - result.b += m[14]; - - result.a = (m[15] * c.r); - result.a += (m[16] * c.g); - result.a += (m[17] * c.b); - result.a += (m[18] * c.a); - result.a += m[19]; - - vec3 rgb = mix(c.rgb, result.rgb, uAlpha); - - // Premultiply alpha again. - rgb *= result.a; - - gl_FragColor = vec4(rgb, result.a); -} -`,Io=function(t){Pv(r,t);function r(){var e=this,i={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 e=t.call(this,fh,Nv,i)||this,e.alpha=1,e}return r.prototype._loadMatrix=function(e,i){i===void 0&&(i=!1);var n=e;i&&(this._multiply(n,this.uniforms.m,e),n=this._colorMatrix(n)),this.uniforms.m=n},r.prototype._multiply=function(e,i,n){return e[0]=i[0]*n[0]+i[1]*n[5]+i[2]*n[10]+i[3]*n[15],e[1]=i[0]*n[1]+i[1]*n[6]+i[2]*n[11]+i[3]*n[16],e[2]=i[0]*n[2]+i[1]*n[7]+i[2]*n[12]+i[3]*n[17],e[3]=i[0]*n[3]+i[1]*n[8]+i[2]*n[13]+i[3]*n[18],e[4]=i[0]*n[4]+i[1]*n[9]+i[2]*n[14]+i[3]*n[19]+i[4],e[5]=i[5]*n[0]+i[6]*n[5]+i[7]*n[10]+i[8]*n[15],e[6]=i[5]*n[1]+i[6]*n[6]+i[7]*n[11]+i[8]*n[16],e[7]=i[5]*n[2]+i[6]*n[7]+i[7]*n[12]+i[8]*n[17],e[8]=i[5]*n[3]+i[6]*n[8]+i[7]*n[13]+i[8]*n[18],e[9]=i[5]*n[4]+i[6]*n[9]+i[7]*n[14]+i[8]*n[19]+i[9],e[10]=i[10]*n[0]+i[11]*n[5]+i[12]*n[10]+i[13]*n[15],e[11]=i[10]*n[1]+i[11]*n[6]+i[12]*n[11]+i[13]*n[16],e[12]=i[10]*n[2]+i[11]*n[7]+i[12]*n[12]+i[13]*n[17],e[13]=i[10]*n[3]+i[11]*n[8]+i[12]*n[13]+i[13]*n[18],e[14]=i[10]*n[4]+i[11]*n[9]+i[12]*n[14]+i[13]*n[19]+i[14],e[15]=i[15]*n[0]+i[16]*n[5]+i[17]*n[10]+i[18]*n[15],e[16]=i[15]*n[1]+i[16]*n[6]+i[17]*n[11]+i[18]*n[16],e[17]=i[15]*n[2]+i[16]*n[7]+i[17]*n[12]+i[18]*n[17],e[18]=i[15]*n[3]+i[16]*n[8]+i[17]*n[13]+i[18]*n[18],e[19]=i[15]*n[4]+i[16]*n[9]+i[17]*n[14]+i[18]*n[19]+i[19],e},r.prototype._colorMatrix=function(e){var i=new Float32Array(e);return i[4]/=255,i[9]/=255,i[14]/=255,i[19]/=255,i},r.prototype.brightness=function(e,i){var n=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.tint=function(e,i){var n=e>>16&255,a=e>>8&255,s=e&255,o=[n/255,0,0,0,0,0,a/255,0,0,0,0,0,s/255,0,0,0,0,0,1,0];this._loadMatrix(o,i)},r.prototype.greyscale=function(e,i){var n=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.blackAndWhite=function(e){var i=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.hue=function(e,i){e=(e||0)/180*Math.PI;var n=Math.cos(e),a=Math.sin(e),s=Math.sqrt,o=1/3,h=s(o),u=n+(1-n)*o,l=o*(1-n)-h*a,c=o*(1-n)+h*a,f=o*(1-n)+h*a,d=n+o*(1-n),p=o*(1-n)-h*a,v=o*(1-n)-h*a,_=o*(1-n)+h*a,m=n+o*(1-n),T=[u,l,c,0,0,f,d,p,0,0,v,_,m,0,0,0,0,0,1,0];this._loadMatrix(T,i)},r.prototype.contrast=function(e,i){var n=(e||0)+1,a=-.5*(n-1),s=[n,0,0,0,a,0,n,0,0,a,0,0,n,0,a,0,0,0,1,0];this._loadMatrix(s,i)},r.prototype.saturate=function(e,i){e===void 0&&(e=0);var n=e*2/3+1,a=(n-1)*-.5,s=[n,a,a,0,0,a,n,a,0,0,a,a,n,0,0,0,0,0,1,0];this._loadMatrix(s,i)},r.prototype.desaturate=function(){this.saturate(-1)},r.prototype.negative=function(e){var i=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.sepia=function(e){var i=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.technicolor=function(e){var i=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.polaroid=function(e){var i=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.toBGR=function(e){var i=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.kodachrome=function(e){var i=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.browni=function(e){var i=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.vintage=function(e){var i=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.colorTone=function(e,i,n,a,s){e=e||.2,i=i||.15,n=n||16770432,a=a||3375104;var o=(n>>16&255)/255,h=(n>>8&255)/255,u=(n&255)/255,l=(a>>16&255)/255,c=(a>>8&255)/255,f=(a&255)/255,d=[.3,.59,.11,0,0,o,h,u,e,0,l,c,f,i,0,o-l,h-c,u-f,0,0];this._loadMatrix(d,s)},r.prototype.night=function(e,i){e=e||.1;var n=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.predator=function(e,i){var n=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(n,i)},r.prototype.lsd=function(e){var i=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(i,e)},r.prototype.reset=function(){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)},Object.defineProperty(r.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0}),r}($t);Io.prototype.grayscale=Io.prototype.greyscale;/*! - * @pixi/filter-displacement - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/filter-displacement is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var hn=function(t,r){return hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},hn(t,r)};function Av(t,r){hn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Uv=`varying vec2 vFilterCoord; -varying vec2 vTextureCoord; - -uniform vec2 scale; -uniform mat2 rotation; -uniform sampler2D uSampler; -uniform sampler2D mapSampler; - -uniform highp vec4 inputSize; -uniform vec4 inputClamp; - -void main(void) -{ - vec4 map = texture2D(mapSampler, vFilterCoord); - - map -= 0.5; - map.xy = scale * inputSize.zw * (rotation * map.xy); - - gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); -} -`,Ov=`attribute vec2 aVertexPosition; - -uniform mat3 projectionMatrix; -uniform mat3 filterMatrix; - -varying vec2 vTextureCoord; -varying vec2 vFilterCoord; - -uniform vec4 inputSize; -uniform vec4 outputFrame; - -vec4 filterVertexPosition( void ) -{ - vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; - - return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); -} - -vec2 filterTextureCoord( void ) -{ - return aVertexPosition * (outputFrame.zw * inputSize.zw); -} - -void main(void) -{ - gl_Position = filterVertexPosition(); - vTextureCoord = filterTextureCoord(); - vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; -} -`;(function(t){Av(r,t);function r(e,i){var n=this,a=new Q;return e.renderable=!1,n=t.call(this,Ov,Uv,{mapSampler:e._texture,filterMatrix:a,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,n.maskSprite=e,n.maskMatrix=a,i==null&&(i=20),n.scale=new D(i,i),n}return r.prototype.apply=function(e,i,n,a){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var s=this.maskSprite.worldTransform,o=Math.sqrt(s.a*s.a+s.b*s.b),h=Math.sqrt(s.c*s.c+s.d*s.d);o!==0&&h!==0&&(this.uniforms.rotation[0]=s.a/o,this.uniforms.rotation[1]=s.b/o,this.uniforms.rotation[2]=s.c/h,this.uniforms.rotation[3]=s.d/h),e.applyFilter(this,i,n,a)},Object.defineProperty(r.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e},enumerable:!1,configurable:!0}),r})($t);/*! - * @pixi/filter-fxaa - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/filter-fxaa is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var un=function(t,r){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},un(t,r)};function Sv(t,r){un(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Lv=` -attribute vec2 aVertexPosition; - -uniform mat3 projectionMatrix; - -varying vec2 v_rgbNW; -varying vec2 v_rgbNE; -varying vec2 v_rgbSW; -varying vec2 v_rgbSE; -varying vec2 v_rgbM; - -varying vec2 vFragCoord; - -uniform vec4 inputSize; -uniform vec4 outputFrame; - -vec4 filterVertexPosition( void ) -{ - vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; - - return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); -} - -void texcoords(vec2 fragCoord, vec2 inverseVP, - out vec2 v_rgbNW, out vec2 v_rgbNE, - out vec2 v_rgbSW, out vec2 v_rgbSE, - out vec2 v_rgbM) { - v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP; - v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP; - v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP; - v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP; - v_rgbM = vec2(fragCoord * inverseVP); -} - -void main(void) { - - gl_Position = filterVertexPosition(); - - vFragCoord = aVertexPosition * outputFrame.zw; - - texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); -} -`,Fv=`varying vec2 v_rgbNW; -varying vec2 v_rgbNE; -varying vec2 v_rgbSW; -varying vec2 v_rgbSE; -varying vec2 v_rgbM; - -varying vec2 vFragCoord; -uniform sampler2D uSampler; -uniform highp vec4 inputSize; - - -/** - Basic FXAA implementation based on the code on geeks3d.com with the - modification that the texture2DLod stuff was removed since it's - unsupported by WebGL. - - -- - - From: - https://github.com/mitsuhiko/webgl-meincraft - - Copyright (c) 2011 by Armin Ronacher. - - Some rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * The names of the contributors may not be used to endorse or - promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef FXAA_REDUCE_MIN -#define FXAA_REDUCE_MIN (1.0/ 128.0) -#endif -#ifndef FXAA_REDUCE_MUL -#define FXAA_REDUCE_MUL (1.0 / 8.0) -#endif -#ifndef FXAA_SPAN_MAX -#define FXAA_SPAN_MAX 8.0 -#endif - -//optimized version for mobile, where dependent -//texture reads can be a bottleneck -vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP, - vec2 v_rgbNW, vec2 v_rgbNE, - vec2 v_rgbSW, vec2 v_rgbSE, - vec2 v_rgbM) { - vec4 color; - vec3 rgbNW = texture2D(tex, v_rgbNW).xyz; - vec3 rgbNE = texture2D(tex, v_rgbNE).xyz; - vec3 rgbSW = texture2D(tex, v_rgbSW).xyz; - vec3 rgbSE = texture2D(tex, v_rgbSE).xyz; - vec4 texColor = texture2D(tex, v_rgbM); - vec3 rgbM = texColor.xyz; - vec3 luma = vec3(0.299, 0.587, 0.114); - float lumaNW = dot(rgbNW, luma); - float lumaNE = dot(rgbNE, luma); - float lumaSW = dot(rgbSW, luma); - float lumaSE = dot(rgbSE, luma); - float lumaM = dot(rgbM, luma); - float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE))); - float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE))); - - mediump vec2 dir; - dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); - dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); - - float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) * - (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN); - - float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce); - dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX), - max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), - dir * rcpDirMin)) * inverseVP; - - vec3 rgbA = 0.5 * ( - texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz + - texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz); - vec3 rgbB = rgbA * 0.5 + 0.25 * ( - texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz + - texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz); - - float lumaB = dot(rgbB, luma); - if ((lumaB < lumaMin) || (lumaB > lumaMax)) - color = vec4(rgbA, texColor.a); - else - color = vec4(rgbB, texColor.a); - return color; -} - -void main() { - - vec4 color; - - color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); - - gl_FragColor = color; -} -`;(function(t){Sv(r,t);function r(){return t.call(this,Lv,Fv)||this}return r})($t);/*! - * @pixi/filter-noise - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/filter-noise is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var ln=function(t,r){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},ln(t,r)};function Gv(t,r){ln(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Bv=`precision highp float; - -varying vec2 vTextureCoord; -varying vec4 vColor; - -uniform float uNoise; -uniform float uSeed; -uniform sampler2D uSampler; - -float rand(vec2 co) -{ - return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453); -} - -void main() -{ - vec4 color = texture2D(uSampler, vTextureCoord); - float randomValue = rand(gl_FragCoord.xy * uSeed); - float diff = (randomValue - 0.5) * uNoise; - - // Un-premultiply alpha before applying the color matrix. See issue #3539. - if (color.a > 0.0) { - color.rgb /= color.a; - } - - color.r += diff; - color.g += diff; - color.b += diff; - - // Premultiply alpha again. - color.rgb *= color.a; - - gl_FragColor = color; -} -`;(function(t){Gv(r,t);function r(e,i){e===void 0&&(e=.5),i===void 0&&(i=Math.random());var n=t.call(this,fh,Bv,{uNoise:0,uSeed:0})||this;return n.noise=e,n.seed=i,n}return Object.defineProperty(r.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e},enumerable:!1,configurable:!0}),r})($t);/*! - * @pixi/mixin-cache-as-bitmap - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/constants is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */var Eo;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Eo||(Eo={}));var Ro;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Ro||(Ro={}));var Co;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Co||(Co={}));var wo;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(wo||(wo={}));var Po;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Po||(Po={}));var No;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(No||(No={}));var Ao;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Ao||(Ao={}));var Uo;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Uo||(Uo={}));var Oo;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Oo||(Oo={}));var So;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(So||(So={}));var Lo;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Lo||(Lo={}));var Fo;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Fo||(Fo={}));var Go;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Go||(Go={}));var Bo;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"})(Bo||(Bo={}));var Mo;(function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"})(Mo||(Mo={}));var Xo;(function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"})(Xo||(Xo={}));var ko;(function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"})(ko||(ko={}));var fn;(function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"})(fn||(fn={}));var Ho;(function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Ho||(Ho={}));var Oh=new Q;tt.prototype._cacheAsBitmap=!1;tt.prototype._cacheData=null;tt.prototype._cacheAsBitmapResolution=null;tt.prototype._cacheAsBitmapMultisample=fn.NONE;var Mv=function(){function t(){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}return t}();Object.defineProperties(tt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){if(this._cacheAsBitmap!==t){this._cacheAsBitmap=t;var r;t?(this._cacheData||(this._cacheData=new Mv),r=this._cacheData,r.originalRender=this.render,r.originalRenderCanvas=this.renderCanvas,r.originalUpdateTransform=this.updateTransform,r.originalCalculateBounds=this.calculateBounds,r.originalGetLocalBounds=this.getLocalBounds,r.originalDestroy=this.destroy,r.originalContainsPoint=this.containsPoint,r.originalMask=this._mask,r.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(r=this._cacheData,r.sprite&&this._destroyCachedDisplayObject(),this.render=r.originalRender,this.renderCanvas=r.originalRenderCanvas,this.calculateBounds=r.originalCalculateBounds,this.getLocalBounds=r.originalGetLocalBounds,this.destroy=r.originalDestroy,this.updateTransform=r.originalUpdateTransform,this.containsPoint=r.originalContainsPoint,this._mask=r.originalMask,this.filterArea=r.originalFilterArea)}}}});tt.prototype._renderCached=function(r){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(r),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(r))};tt.prototype._initCachedDisplayObject=function(r){var e;if(!(this._cacheData&&this._cacheData.sprite)){var i=this.alpha;this.alpha=1,r.batch.flush();var n=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var a=this.filters[0].padding;n.pad(a)}n.ceil(N.RESOLUTION);var s=r.renderTexture.current,o=r.renderTexture.sourceFrame.clone(),h=r.renderTexture.destinationFrame.clone(),u=r.projection.transform,l=he.create({width:n.width,height:n.height,resolution:this.cacheAsBitmapResolution||r.resolution,multisample:(e=this.cacheAsBitmapMultisample)!==null&&e!==void 0?e:r.multisample}),c="cacheAsBitmap_"+oe();this._cacheData.textureCacheId=c,H.addToCache(l.baseTexture,c),F.addToCache(l,c);var f=this.transform.localTransform.copyTo(Oh).invert().translate(-n.x,-n.y);this.render=this._cacheData.originalRender,r.render(this,{renderTexture:l,clear:!0,transform:f,skipUpdateTransform:!1}),r.framebuffer.blit(),r.projection.transform=u,r.renderTexture.bind(s,o,h),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var d=new Pe(l);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(n.x/n.width),d.anchor.y=-(n.y/n.height),d.alpha=i,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};tt.prototype._renderCachedCanvas=function(r){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(r),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(r))};tt.prototype._initCachedDisplayObjectCanvas=function(r){if(!(this._cacheData&&this._cacheData.sprite)){var e=this.getLocalBounds(null,!0),i=this.alpha;this.alpha=1;var n=r.context,a=r._projTransform;e.ceil(N.RESOLUTION);var s=he.create({width:e.width,height:e.height}),o="cacheAsBitmap_"+oe();this._cacheData.textureCacheId=o,H.addToCache(s.baseTexture,o),F.addToCache(s,o);var h=Oh;this.transform.localTransform.copyTo(h),h.invert(),h.tx-=e.x,h.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,r.render(this,{renderTexture:s,clear:!0,transform:h,skipUpdateTransform:!1}),r.context=n,r._projTransform=a,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var u=new Pe(s);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-(e.x/e.width),u.anchor.y=-(e.y/e.height),u.alpha=i,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=r._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}};tt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};tt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};tt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,H.removeFromCache(this._cacheData.textureCacheId),F.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};tt.prototype._cacheAsBitmapDestroy=function(r){this.cacheAsBitmap=!1,this.destroy(r)};/*! - * @pixi/mixin-get-child-by-name - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/mixin-get-child-by-name is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - */tt.prototype.name=null;wt.prototype.getChildByName=function(r,e){for(var i=0,n=this.children.length;i0){var p=u.x-e[f].x,v=u.y-e[f].y,_=Math.sqrt(p*p+v*v);u=e[f],h+=_/l}else h=f/(c-1);s[d]=h,s[d+1]=0,s[d+2]=h,s[d+3]=1}for(var m=0,f=0;f0?this.textureScale*this._width/2:this._width/2;a/=f,s/=f,a*=d,s*=d,o[c]=l.x+a,o[c+1]=l.y+s,o[c+2]=l.x-a,o[c+3]=l.y-s,i=l}this.buffers[0].update()}},r.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},r}(kr);(function(t){Ne(r,t);function r(e,i,n){n===void 0&&(n=0);var a=this,s=new kv(e.height,i,n),o=new Ke(e);return n>0&&(e.baseTexture.wrapMode=Ft.REPEAT),a=t.call(this,s,o)||this,a.autoUpdate=!0,a}return r.prototype._render=function(e){var i=this.geometry;(this.autoUpdate||i._width!==this.shader.texture.height)&&(i._width=this.shader.texture.height,i.update()),t.prototype._render.call(this,e)},r})(qe);var Hv=function(t){Ne(r,t);function r(e,i,n){var a=this,s=new Xv(e.width,e.height,i,n),o=new Ke(F.WHITE);return a=t.call(this,s,o)||this,a.texture=e,a.autoResize=!0,a}return r.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var e=this.geometry,i=this.shader.texture,n=i.width,a=i.height;this.autoResize&&(e.width!==n||e.height!==a)&&(e.width=this.shader.texture.width,e.height=this.shader.texture.height,e.build())},Object.defineProperty(r.prototype,"texture",{get:function(){return this.shader.texture},set:function(e){this.shader.texture!==e&&(this.shader.texture=e,this._textureID=-1,e.baseTexture.valid?this.textureUpdated():e.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),r.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},r.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},r}(qe);(function(t){Ne(r,t);function r(e,i,n,a,s){e===void 0&&(e=F.EMPTY);var o=this,h=new kr(i,n,a);h.getBuffer("aVertexPosition").static=!1;var u=new Ke(e);return o=t.call(this,h,u,null,s)||this,o.autoUpdate=!0,o}return Object.defineProperty(r.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),r.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)},r})(qe);var Rr=10;(function(t){Ne(r,t);function r(e,i,n,a,s){i===void 0&&(i=Rr),n===void 0&&(n=Rr),a===void 0&&(a=Rr),s===void 0&&(s=Rr);var o=t.call(this,F.WHITE,4,4)||this;return o._origWidth=e.orig.width,o._origHeight=e.orig.height,o._width=o._origWidth,o._height=o._origHeight,o._leftWidth=i,o._rightWidth=a,o._topHeight=n,o._bottomHeight=s,o.texture=e,o}return r.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(r.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),r.prototype.updateHorizontalVertices=function(){var e=this.vertices,i=this._getMinScale();e[9]=e[11]=e[13]=e[15]=this._topHeight*i,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*i,e[25]=e[27]=e[29]=e[31]=this._height},r.prototype.updateVerticalVertices=function(){var e=this.vertices,i=this._getMinScale();e[2]=e[10]=e[18]=e[26]=this._leftWidth*i,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*i,e[6]=e[14]=e[22]=e[30]=this._width},r.prototype._getMinScale=function(){var e=this._leftWidth+this._rightWidth,i=this._width>e?1:this._width/e,n=this._topHeight+this._bottomHeight,a=this._height>n?1:this._height/n,s=Math.min(i,a);return s},Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"topHeight",{get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()},enumerable:!1,configurable:!0}),r.prototype._refresh=function(){var e=this.texture,i=this.geometry.buffers[1].data;this._origWidth=e.orig.width,this._origHeight=e.orig.height;var n=1/this._origWidth,a=1/this._origHeight;i[0]=i[8]=i[16]=i[24]=0,i[1]=i[3]=i[5]=i[7]=0,i[6]=i[14]=i[22]=i[30]=1,i[25]=i[27]=i[29]=i[31]=1,i[2]=i[10]=i[18]=i[26]=n*this._leftWidth,i[4]=i[12]=i[20]=i[28]=1-n*this._rightWidth,i[9]=i[11]=i[13]=i[15]=a*this._topHeight,i[17]=i[19]=i[21]=i[23]=1-a*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},r})(Hv);/*! - * @pixi/sprite-animated - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC - * - * @pixi/sprite-animated is licensed under the MIT License. - * http://www.opensource.org/licenses/mit-license - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var dn=function(t,r){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},dn(t,r)};function Dv(t,r){dn(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}(function(t){Dv(r,t);function r(e,i){i===void 0&&(i=!0);var n=t.call(this,e[0]instanceof F?e[0]:e[0].texture)||this;return n._textures=null,n._durations=null,n._autoUpdate=i,n._isConnectedToTicker=!1,n.animationSpeed=1,n.loop=!0,n.updateAnchor=!1,n.onComplete=null,n.onFrameChange=null,n.onLoop=null,n._currentTime=0,n._playing=!1,n._previousFrame=null,n.textures=e,n}return r.prototype.stop=function(){!this._playing||(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(at.shared.remove(this.update,this),this._isConnectedToTicker=!1))},r.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(at.shared.add(this.update,this,kt.HIGH),this._isConnectedToTicker=!0))},r.prototype.gotoAndStop=function(e){this.stop();var i=this.currentFrame;this._currentTime=e,i!==this.currentFrame&&this.updateTexture()},r.prototype.gotoAndPlay=function(e){var i=this.currentFrame;this._currentTime=e,i!==this.currentFrame&&this.updateTexture(),this.play()},r.prototype.update=function(e){if(!!this._playing){var i=this.animationSpeed*e,n=this.currentFrame;if(this._durations!==null){var a=this._currentTime%1*this._durations[this.currentFrame];for(a+=i/60*1e3;a<0;)this._currentTime--,a+=this._durations[this.currentFrame];var s=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);a>=this._durations[this.currentFrame];)a-=this._durations[this.currentFrame]*s,this._currentTime+=s;this._currentTime+=a/this._durations[this.currentFrame]}else this._currentTime+=i;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()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramen&&this.onLoop()),this.updateTexture())}},r.prototype.updateTexture=function(){var e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this._texture=this._textures[e],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))},r.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},r.fromFrames=function(e){for(var i=[],n=0;n!!n[r.toLowerCase()]:r=>!!n[r]}const ao="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",ho=Pn(ao),po="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",go=Pn(po);function kr(e){return!!e||e===""}function Mn(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(_o);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(se(e))t=e;else if(N(e))for(let n=0;nXe(n,t))}const af=e=>se(e)?e:e==null?"":N(e)||oe(e)&&(e.toString===Dr||!V(e.toString))?JSON.stringify(e,Hr,2):String(e),Hr=(e,t)=>t&&t.__v_isRef?Hr(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:ut(t)?{[`Set(${t.size})`]:[...t.values()]}:oe(t)&&!N(t)&&!Ur(t)?String(t):t,X={},yt=[],ve=()=>{},Co=()=>!1,xo=/^on[^a-z]/,Gt=e=>xo.test(e),Es=e=>e.startsWith("onUpdate:"),ie=Object.assign,ws=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Eo=Object.prototype.hasOwnProperty,J=(e,t)=>Eo.call(e,t),N=Array.isArray,Ct=e=>en(e)==="[object Map]",ut=e=>en(e)==="[object Set]",Zs=e=>en(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",Wt=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",Ts=e=>oe(e)&&V(e.then)&&V(e.catch),Dr=Object.prototype.toString,en=e=>Dr.call(e),wo=e=>en(e).slice(8,-1),Ur=e=>en(e)==="[object Object]",As=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},To=/-(\w)/g,Te=In(e=>e.replace(To,(t,n)=>n?n.toUpperCase():"")),Ao=/\B([A-Z])/g,Oe=In(e=>e.replace(Ao,"-$1").toLowerCase()),Sn=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=In(e=>e?`on${Sn(e)}`:""),At=(e,t)=>!Object.is(e,t),xt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ze=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Qs;const Fo=()=>Qs||(Qs=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let be;class $r{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&be&&(this.parent=be,this.index=(be.scopes||(be.scopes=[])).push(this)-1)}run(t){if(this.active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Kr=e=>(e.w&Qe)>0,Vr=e=>(e.n&Qe)>0,vo=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=s)&&l.push(c)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":N(e)?As(n)&&l.push(o.get("length")):(l.push(o.get(ot)),Ct(e)&&l.push(o.get(is)));break;case"delete":N(e)||(l.push(o.get(ot)),Ct(e)&&l.push(o.get(is)));break;case"set":Ct(e)&&l.push(o.get(ot));break}if(l.length===1)l[0]&&os(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);os(Fs(c))}}function os(e,t){const n=N(e)?e:[...e];for(const s of n)s.computed&&er(s);for(const s of n)s.computed||er(s)}function er(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Mo=Pn("__proto__,__v_isRef,__isVue"),Jr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt)),Ro=Bn(),Oo=Bn(!1,!0),Io=Bn(!0),So=Bn(!0,!0),tr=No();function No(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let i=0,o=this.length;i{e[t]=function(...n){at();const s=Y(this)[t].apply(this,n);return dt(),s}}),e}function Bn(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?ei:Gr:t?Qr:Zr).get(s))return s;const o=N(s);if(!e&&o&&J(tr,r))return Reflect.get(tr,r,i);const l=Reflect.get(s,r,i);return(Wt(r)?Jr.has(r):Mo(r))||(e||xe(s,"get",r),t)?l:ce(l)?o&&As(r)?l:l.value:oe(l)?e?ti(l):Ps(l):l}}const Bo=Yr(),Lo=Yr(!0);function Yr(e=!1){return function(n,s,r,i){let o=n[s];if(qt(o)&&ce(o)&&!ce(r))return!1;if(!e&&!qt(r)&&(ls(r)||(r=Y(r),o=Y(o)),!N(n)&&ce(o)&&!ce(r)))return o.value=r,!0;const l=N(n)&&As(s)?Number(s)e,Ln=e=>Reflect.getPrototypeOf(e);function rn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),i=Y(t);n||(t!==i&&xe(r,"get",t),xe(r,"get",i));const{has:o}=Ln(r),l=s?vs:n?Ms:Jt;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function on(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&xe(s,"has",e),xe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function ln(e,t=!1){return e=e.__v_raw,!t&&xe(Y(e),"iterate",ot),Reflect.get(e,"size",e)}function nr(e){e=Y(e);const t=Y(this);return Ln(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function sr(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Ln(n);let i=s.call(n,e);i||(e=Y(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?At(t,o)&&He(n,"set",e,t):He(n,"add",e,t),this}function rr(e){const t=Y(this),{has:n,get:s}=Ln(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&He(t,"delete",e,void 0),i}function ir(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function cn(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Y(o),c=t?vs:e?Ms:Jt;return!e&&xe(l,"iterate",ot),o.forEach((u,p)=>s.call(r,c(u),c(p),i))}}function fn(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),o=Ct(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=r[e](...s),p=n?vs:t?Ms:Jt;return!t&&xe(i,"iterate",c?is:ot),{next(){const{value:h,done:g}=u.next();return g?{value:h,done:g}:{value:l?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:this}}function jo(){const e={get(i){return rn(this,i)},get size(){return ln(this)},has:on,add:nr,set:sr,delete:rr,clear:ir,forEach:cn(!1,!1)},t={get(i){return rn(this,i,!1,!0)},get size(){return ln(this)},has:on,add:nr,set:sr,delete:rr,clear:ir,forEach:cn(!1,!0)},n={get(i){return rn(this,i,!0)},get size(){return ln(this,!0)},has(i){return on.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:cn(!0,!1)},s={get(i){return rn(this,i,!0,!0)},get size(){return ln(this,!0)},has(i){return on.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:cn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=fn(i,!1,!1),n[i]=fn(i,!0,!1),t[i]=fn(i,!1,!0),s[i]=fn(i,!0,!0)}),[e,n,t,s]}const[Ko,Vo,Wo,qo]=jo();function kn(e,t){const n=t?e?qo:Wo:e?Vo:Ko;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(J(n,r)&&r in s?n:s,r,i)}const Jo={get:kn(!1,!1)},Yo={get:kn(!1,!0)},zo={get:kn(!0,!1)},Xo={get:kn(!0,!0)},Zr=new WeakMap,Qr=new WeakMap,Gr=new WeakMap,ei=new WeakMap;function Zo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Zo(wo(e))}function Ps(e){return qt(e)?e:Hn(e,!1,zr,Jo,Zr)}function Go(e){return Hn(e,!1,Uo,Yo,Qr)}function ti(e){return Hn(e,!0,Xr,zo,Gr)}function _f(e){return Hn(e,!0,$o,Xo,ei)}function Hn(e,t,n,s,r){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Qo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Et(e){return qt(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function ni(e){return Et(e)||qt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function si(e){return Cn(e,"__v_skip",!0),e}const Jt=e=>oe(e)?Ps(e):e,Ms=e=>oe(e)?ti(e):e;function Rs(e){Ye&&Fe&&(e=Y(e),qr(e.dep||(e.dep=Fs())))}function Dn(e,t){e=Y(e),e.dep&&os(e.dep)}function ce(e){return!!(e&&e.__v_isRef===!0)}function Xn(e){return ri(e,!1)}function bf(e){return ri(e,!0)}function ri(e,t){return ce(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:Jt(t)}get value(){return Rs(this),this._value}set value(t){t=this.__v_isShallow?t:Y(t),At(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Jt(t),Dn(this))}}function yf(e){Dn(e)}function tl(e){return ce(e)?e.value:e}const nl={get:(e,t,n)=>tl(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ce(r)&&!ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ii(e){return Et(e)?e:new Proxy(e,nl)}class sl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>Rs(this),()=>Dn(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Cf(e){return new sl(e)}function xf(e){const t=N(e)?new Array(e.length):{};for(const n in e)t[n]=il(e,n);return t}class rl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function il(e,t,n){const s=e[t];return ce(s)?s:new rl(e,t,n)}class ol{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Nn(t,()=>{this._dirty||(this._dirty=!0,Dn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return Rs(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ll(e,t,n=!1){let s,r;const i=V(e);return i?(s=e,r=ve):(s=e.get,r=e.set),new ol(s,r,i||!r,n)}const Dt=[];function cl(e,...t){at();const n=Dt.length?Dt[Dt.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=fl();if(s)ke(s,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Wi(n,i.type)}>`).join(` -`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` -`,...ul(r)),console.warn(...i)}dt()}function fl(){let e=Dt[Dt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function ul(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` -`],...al(n))}),t}function al({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${Wi(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...dl(e.props),i]:[r+i]}function dl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...oi(s,e[s]))}),n.length>3&&t.push(" ..."),t}function oi(e,t,n){return se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ce(t)?(t=oi(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function ke(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Mt(i,t,n)}return r}function we(e,t,n,s){if(V(e)){const i=ke(e,t,n,s);return i&&Ts(i)&&i.catch(o=>{Mt(o,t,n)}),i}const r=[];for(let i=0;i>>1;Yt(Ce[s])Be&&Ce.splice(t,1)}function ui(e,t,n,s){N(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),fi()}function ml(e){ui(e,Lt,Ut,_t)}function ai(e){ui(e,We,$t,bt)}function Un(e,t=null){if(Ut.length){for(fs=t,Lt=[...new Set(Ut)],Ut.length=0,_t=0;_tYt(n)-Yt(s)),bt=0;bte.id==null?1/0:e.id;function di(e){cs=!1,xn=!0,Un(e),Ce.sort((n,s)=>Yt(n)-Yt(s));const t=ve;try{for(Be=0;BeIt.emit(r,...i)),un=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{_l(i,t)}),setTimeout(()=>{It||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,un=[])},3e3)):un=[]}function bl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const p=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:g}=s[p]||X;g&&(r=n.map(E=>E.trim())),h&&(r=n.map(Ze))}let l,c=s[l=gn(t)]||s[l=gn(Te(t))];!c&&i&&(c=s[l=gn(Oe(t))]),c&&we(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,we(u,e,6,r)}}function hi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=u=>{const p=hi(u,t,!0);p&&(l=!0,ie(o,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(s.set(e,null),null):(N(i)?i.forEach(c=>o[c]=null):ie(o,i),s.set(e,o),o)}function $n(e,t){return!e||!Gt(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Oe(t))||J(e,t))}let ae=null,jn=null;function zt(e){const t=ae;return ae=e,jn=e&&e.type.__scopeId||null,t}function Ef(e){jn=e}function wf(){jn=null}const Tf=e=>pi;function pi(e,t=ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&br(-1);const i=zt(t),o=e(...r);return zt(i),s._d&&br(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function mn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:u,render:p,renderCache:h,data:g,setupState:E,ctx:v,inheritAttrs:H}=e;let I,_;const d=zt(e);try{if(n.shapeFlag&4){const w=r||s;I=ye(p.call(w,w,h,i,E,g,v)),_=c}else{const w=t;I=ye(w.length>1?w(i,{attrs:c,slots:l,emit:u}):w(i,null)),_=t.props?c:Cl(c)}}catch(w){Kt.length=0,Mt(w,e,1),I=ne(he)}let b=I;if(_&&H!==!1){const w=Object.keys(_),{shapeFlag:R}=b;w.length&&R&7&&(o&&w.some(Es)&&(_=xl(_,o)),b=De(b,_))}return n.dirs&&(b=De(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),I=b,zt(d),I}function yl(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Gt(n))&&((t||(t={}))[n]=e[n]);return t},xl=(e,t)=>{const n={};for(const s in e)(!Es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function El(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?or(s,o,u):!!o;if(c&8){const p=t.dynamicProps;for(let h=0;he.__isSuspense,wl={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,u){e==null?Tl(t,n,s,r,i,o,l,c,u):Al(e,t,n,s,r,o,l,c,u)},hydrate:Fl,create:Ns,normalize:vl},Af=wl;function Xt(e,t){const n=e.props&&e.props[t];V(n)&&n()}function Tl(e,t,n,s,r,i,o,l,c){const{p:u,o:{createElement:p}}=c,h=p("div"),g=e.suspense=Ns(e,r,s,t,h,n,i,o,l,c);u(null,g.pendingBranch=e.ssContent,h,null,s,g,i,o),g.deps>0?(Xt(e,"onPending"),Xt(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,o),wt(g,e.ssFallback)):g.resolve()}function Al(e,t,n,s,r,i,o,l,{p:c,um:u,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,E=t.ssFallback,{activeBranch:v,pendingBranch:H,isInFallback:I,isHydrating:_}=h;if(H)h.pendingBranch=g,Re(g,H)?(c(H,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():I&&(c(v,E,n,s,r,null,i,o,l),wt(h,E))):(h.pendingId++,_?(h.isHydrating=!1,h.activeBranch=H):u(H,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():(c(v,E,n,s,r,null,i,o,l),wt(h,E))):v&&Re(g,v)?(c(v,g,n,s,r,h,i,o,l),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0&&h.resolve()));else if(v&&Re(g,v))c(v,g,n,s,r,h,i,o,l),wt(h,g);else if(Xt(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0)h.resolve();else{const{timeout:d,pendingId:b}=h;d>0?setTimeout(()=>{h.pendingId===b&&h.fallback(E)},d):d===0&&h.fallback(E)}}function Ns(e,t,n,s,r,i,o,l,c,u,p=!1){const{p:h,m:g,um:E,n:v,o:{parentNode:H,remove:I}}=u,_=Ze(e.props&&e.props.timeout),d={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(b=!1){const{vnode:w,activeBranch:R,pendingBranch:B,pendingId:D,effects:T,parentComponent:L,container:U}=d;if(d.isHydrating)d.isHydrating=!1;else if(!b){const q=R&&B.transition&&B.transition.mode==="out-in";q&&(R.transition.afterLeave=()=>{D===d.pendingId&&g(B,U,k,0)});let{anchor:k}=d;R&&(k=v(R),E(R,L,d,!0)),q||g(B,U,k,0)}wt(d,B),d.pendingBranch=null,d.isInFallback=!1;let K=d.parent,O=!1;for(;K;){if(K.pendingBranch){K.effects.push(...T),O=!0;break}K=K.parent}O||ai(T),d.effects=[],Xt(w,"onResolve")},fallback(b){if(!d.pendingBranch)return;const{vnode:w,activeBranch:R,parentComponent:B,container:D,isSVG:T}=d;Xt(w,"onFallback");const L=v(R),U=()=>{!d.isInFallback||(h(null,b,D,L,B,null,T,l,c),wt(d,b))},K=b.transition&&b.transition.mode==="out-in";K&&(R.transition.afterLeave=U),d.isInFallback=!0,E(R,B,null,!0),K||U()},move(b,w,R){d.activeBranch&&g(d.activeBranch,b,w,R),d.container=b},next(){return d.activeBranch&&v(d.activeBranch)},registerDep(b,w){const R=!!d.pendingBranch;R&&d.deps++;const B=b.vnode.el;b.asyncDep.catch(D=>{Mt(D,b,0)}).then(D=>{if(b.isUnmounted||d.isUnmounted||d.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:T}=b;ms(b,D,!1),B&&(T.el=B);const L=!B&&b.subTree.el;w(b,T,H(B||b.subTree.el),B?null:v(b.subTree),d,o,c),L&&I(L),Ss(b,T.el),R&&--d.deps===0&&d.resolve()})},unmount(b,w){d.isUnmounted=!0,d.activeBranch&&E(d.activeBranch,n,b,w),d.pendingBranch&&E(d.pendingBranch,n,b,w)}};return d}function Fl(e,t,n,s,r,i,o,l,c){const u=t.suspense=Ns(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),p=c(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(),p}function vl(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=lr(s?n.default:n),e.ssFallback=s?lr(n.fallback):ne(he)}function lr(e){let t;if(V(e)){const n=ct&&e._c;n&&(e._d=!1,Ks()),e=e(),n&&(e._d=!0,t=me,Ni())}return N(e)&&(e=yl(e)),e=ye(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function mi(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):ai(e)}function wt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,Ss(s,r))}function Pl(e,t){if(le){let n=le.provides;const s=le.parent&&le.parent.provides;s===n&&(n=le.provides=Object.create(s)),n[e]=t}}function _n(e,t,n=!1){const s=le||ae;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&V(t)?t.call(s.proxy):t}}function Ff(e,t){return tn(e,null,t)}function Ml(e,t){return tn(e,null,{flush:"post"})}function vf(e,t){return tn(e,null,{flush:"sync"})}const cr={};function bn(e,t,n){return tn(e,t,n)}function tn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=X){const l=le;let c,u=!1,p=!1;if(ce(e)?(c=()=>e.value,u=ls(e)):Et(e)?(c=()=>e,s=!0):N(e)?(p=!0,u=e.some(_=>Et(_)||ls(_)),c=()=>e.map(_=>{if(ce(_))return _.value;if(Et(_))return it(_);if(V(_))return ke(_,l,2)})):V(e)?t?c=()=>ke(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),we(e,l,3,[g])}:c=ve,t&&s){const _=c;c=()=>it(_())}let h,g=_=>{h=I.onStop=()=>{ke(_,l,4)}};if(vt)return g=ve,t?n&&we(t,l,3,[c(),p?[]:void 0,g]):c(),ve;let E=p?[]:cr;const v=()=>{if(!!I.active)if(t){const _=I.run();(s||u||(p?_.some((d,b)=>At(d,E[b])):At(_,E)))&&(h&&h(),we(t,l,3,[_,E===cr?void 0:E,g]),E=_)}else I.run()};v.allowRecurse=!!t;let H;r==="sync"?H=v:r==="post"?H=()=>fe(v,l&&l.suspense):H=()=>ml(v);const I=new Nn(c,H);return t?n?v():E=I.run():r==="post"?fe(I.run.bind(I),l&&l.suspense):I.run(),()=>{I.stop(),l&&l.scope&&ws(l.scope.effects,I)}}function Rl(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?_i(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=le;Ge(this);const l=tn(r,i.bind(s),n);return o?Ge(o):ze(),l}function _i(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{it(n,t)});else if(Ur(e))for(const n in e)it(e[n],t);return e}function bi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vn(()=>{e.isMounted=!0}),ks(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],Ol={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},setup(e,{slots:t}){const n=ht(),s=bi();let r;return()=>{const i=t.default&&Bs(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const H of i)if(H.type!==he){o=H;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return Zn(o);const u=fr(o);if(!u)return Zn(o);const p=Zt(u,l,s,n);Ft(u,p);const h=n.subTree,g=h&&fr(h);let E=!1;const{getTransitionKey:v}=u.type;if(v){const H=v();r===void 0?r=H:H!==r&&(r=H,E=!0)}if(g&&g.type!==he&&(!Re(u,g)||E)){const H=Zt(g,l,s,n);if(Ft(g,H),c==="out-in")return s.isLeaving=!0,H.afterLeave=()=>{s.isLeaving=!1,n.update()},Zn(o);c==="in-out"&&u.type!==he&&(H.delayLeave=(I,_,d)=>{const b=Ci(s,g);b[String(g.key)]=g,I._leaveCb=()=>{_(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=d})}return o}}},yi=Ol;function Ci(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Zt(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:E,onLeaveCancelled:v,onBeforeAppear:H,onAppear:I,onAfterAppear:_,onAppearCancelled:d}=t,b=String(e.key),w=Ci(n,e),R=(T,L)=>{T&&we(T,s,9,L)},B=(T,L)=>{const U=L[1];R(T,L),N(T)?T.every(K=>K.length<=1)&&U():T.length<=1&&U()},D={mode:i,persisted:o,beforeEnter(T){let L=l;if(!n.isMounted)if(r)L=H||l;else return;T._leaveCb&&T._leaveCb(!0);const U=w[b];U&&Re(e,U)&&U.el._leaveCb&&U.el._leaveCb(),R(L,[T])},enter(T){let L=c,U=u,K=p;if(!n.isMounted)if(r)L=I||c,U=_||u,K=d||p;else return;let O=!1;const q=T._enterCb=k=>{O||(O=!0,k?R(K,[T]):R(U,[T]),D.delayedLeave&&D.delayedLeave(),T._enterCb=void 0)};L?B(L,[T,q]):q()},leave(T,L){const U=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return L();R(h,[T]);let K=!1;const O=T._leaveCb=q=>{K||(K=!0,L(),q?R(v,[T]):R(E,[T]),T._leaveCb=void 0,w[U]===e&&delete w[U])};w[U]=e,g?B(g,[T,O]):O()},clone(T){return Zt(T,t,n,s)}};return D}function Zn(e){if(nn(e))return e=De(e),e.children=null,e}function fr(e){return nn(e)?e.children?e.children[0]:void 0:e}function Ft(e,t){e.shapeFlag&6&&e.component?Ft(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function Pf(e){V(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,u,p=0;const h=()=>(p++,c=null,g()),g=()=>{let E;return c||(E=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((H,I)=>{l(v,()=>H(h()),()=>I(v),p+1)});throw v}).then(v=>E!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return xi({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return u},setup(){const E=le;if(u)return()=>Qn(u,E);const v=d=>{c=null,Mt(d,E,13,!s)};if(o&&E.suspense||vt)return g().then(d=>()=>Qn(d,E)).catch(d=>(v(d),()=>s?ne(s,{error:d}):null));const H=Xn(!1),I=Xn(),_=Xn(!!r);return r&&setTimeout(()=>{_.value=!1},r),i!=null&&setTimeout(()=>{if(!H.value&&!I.value){const d=new Error(`Async component timed out after ${i}ms.`);v(d),I.value=d}},i),g().then(()=>{H.value=!0,E.parent&&nn(E.parent.vnode)&&Is(E.parent.update)}).catch(d=>{v(d),I.value=d}),()=>{if(H.value&&u)return Qn(u,E);if(I.value&&s)return ne(s,{error:I.value});if(n&&!_.value)return ne(n)}}})}function Qn(e,{vnode:{ref:t,props:n,children:s,shapeFlag:r},parent:i}){const o=ne(e,n,s);return o.ref=t,o}const nn=e=>e.type.__isKeepAlive,Il={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ht(),s=n.ctx;if(!s.renderer)return()=>{const d=t.default&&t.default();return d&&d.length===1?d[0]:d};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:u,um:p,o:{createElement:h}}}=s,g=h("div");s.activate=(d,b,w,R,B)=>{const D=d.component;u(d,b,w,0,l),c(D.vnode,d,b,w,D,l,R,d.slotScopeIds,B),fe(()=>{D.isDeactivated=!1,D.a&&xt(D.a);const T=d.props&&d.props.onVnodeMounted;T&&ge(T,D.parent,d)},l)},s.deactivate=d=>{const b=d.component;u(d,g,null,1,l),fe(()=>{b.da&&xt(b.da);const w=d.props&&d.props.onVnodeUnmounted;w&&ge(w,b.parent,d),b.isDeactivated=!0},l)};function E(d){Gn(d),p(d,n,l,!0)}function v(d){r.forEach((b,w)=>{const R=vn(b.type);R&&(!d||!d(R))&&H(w)})}function H(d){const b=r.get(d);!o||b.type!==o.type?E(b):o&&Gn(o),r.delete(d),i.delete(d)}bn(()=>[e.include,e.exclude],([d,b])=>{d&&v(w=>kt(d,w)),b&&v(w=>!kt(b,w))},{flush:"post",deep:!0});let I=null;const _=()=>{I!=null&&r.set(I,es(n.subTree))};return Vn(_),Ls(_),ks(()=>{r.forEach(d=>{const{subTree:b,suspense:w}=n,R=es(b);if(d.type===R.type){Gn(R);const B=R.component.da;B&&fe(B,w);return}E(d)})}),()=>{if(I=null,!t.default)return null;const d=t.default(),b=d[0];if(d.length>1)return o=null,d;if(!ft(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let w=es(b);const R=w.type,B=vn(lt(w)?w.type.__asyncResolved||{}:R),{include:D,exclude:T,max:L}=e;if(D&&(!B||!kt(D,B))||T&&B&&kt(T,B))return o=w,b;const U=w.key==null?R:w.key,K=r.get(U);return w.el&&(w=De(w),b.shapeFlag&128&&(b.ssContent=w)),I=U,K?(w.el=K.el,w.component=K.component,w.transition&&Ft(w,w.transition),w.shapeFlag|=512,i.delete(U),i.add(U)):(i.add(U),L&&i.size>parseInt(L,10)&&H(i.values().next().value)),w.shapeFlag|=256,o=w,gi(b.type)?b:w}}},Mf=Il;function kt(e,t){return N(e)?e.some(n=>kt(n,t)):se(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Sl(e,t){Ei(e,"a",t)}function Nl(e,t){Ei(e,"da",t)}function Ei(e,t,n=le){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)nn(r.parent.vnode)&&Bl(s,t,n,r),r=r.parent}}function Bl(e,t,n,s){const r=Kn(t,e,s,!0);Hs(()=>{ws(s[t],r)},n)}function Gn(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function es(e){return e.shapeFlag&128?e.ssContent:e}function Kn(e,t,n=le,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;at(),Ge(n);const l=we(t,n,e,o);return ze(),dt(),l});return s?r.unshift(i):r.push(i),i}}const Ue=e=>(t,n=le)=>(!vt||e==="sp")&&Kn(e,t,n),Ll=Ue("bm"),Vn=Ue("m"),kl=Ue("bu"),Ls=Ue("u"),ks=Ue("bum"),Hs=Ue("um"),Hl=Ue("sp"),Dl=Ue("rtg"),Ul=Ue("rtc");function $l(e,t=le){Kn("ec",e,t)}function Rf(e,t){const n=ae;if(n===null)return e;const s=qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;lft(t)?!(t.type===he||t.type===ue&&!Ti(t.children)):!0)?e:null}function kf(e){const t={};for(const n in e)t[gn(n)]=e[n];return t}const us=e=>e?$i(e)?qn(e)||e.proxy:us(e.parent):null,wn=ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>us(e.parent),$root:e=>us(e.root),$emit:e=>e.emit,$options:e=>Fi(e),$forceUpdate:e=>e.f||(e.f=()=>Is(e.update)),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Rl.bind(e)}),as={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const E=o[t];if(E!==void 0)switch(E){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==X&&J(s,t))return o[t]=1,s[t];if(r!==X&&J(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&J(u,t))return o[t]=3,i[t];if(n!==X&&J(n,t))return o[t]=4,n[t];ds&&(o[t]=0)}}const p=wn[t];let h,g;if(p)return t==="$attrs"&&xe(e,"get",t),p(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==X&&J(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,J(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==X&&J(r,t)?(r[t]=n,!0):s!==X&&J(s,t)?(s[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==X&&J(e,o)||t!==X&&J(t,o)||(l=i[0])&&J(l,o)||J(s,o)||J(wn,o)||J(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Kl=ie({},as,{get(e,t){if(t!==Symbol.unscopables)return as.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ho(t)}});let ds=!0;function Vl(e){const t=Fi(e),n=e.proxy,s=e.ctx;ds=!1,t.beforeCreate&&ar(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:u,created:p,beforeMount:h,mounted:g,beforeUpdate:E,updated:v,activated:H,deactivated:I,beforeDestroy:_,beforeUnmount:d,destroyed:b,unmounted:w,render:R,renderTracked:B,renderTriggered:D,errorCaptured:T,serverPrefetch:L,expose:U,inheritAttrs:K,components:O,directives:q,filters:k}=t;if(u&&Wl(u,s,null,e.appContext.config.unwrapInjectedRef),o)for(const re in o){const ee=o[re];V(ee)&&(s[re]=ee.bind(n))}if(r){const re=r.call(n,n);oe(re)&&(e.data=Ps(re))}if(ds=!0,i)for(const re in i){const ee=i[re],Ie=V(ee)?ee.bind(n,n):V(ee.get)?ee.get.bind(n,n):ve,Jn=!V(ee)&&V(ee.set)?ee.set.bind(n):ve,Rt=yc({get:Ie,set:Jn});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>Rt.value,set:pt=>Rt.value=pt})}if(l)for(const re in l)Ai(l[re],s,n,re);if(c){const re=V(c)?c.call(n):c;Reflect.ownKeys(re).forEach(ee=>{Pl(ee,re[ee])})}p&&ar(p,e,"c");function Z(re,ee){N(ee)?ee.forEach(Ie=>re(Ie.bind(n))):ee&&re(ee.bind(n))}if(Z(Ll,h),Z(Vn,g),Z(kl,E),Z(Ls,v),Z(Sl,H),Z(Nl,I),Z($l,T),Z(Ul,B),Z(Dl,D),Z(ks,d),Z(Hs,w),Z(Hl,L),N(U))if(U.length){const re=e.exposed||(e.exposed={});U.forEach(ee=>{Object.defineProperty(re,ee,{get:()=>n[ee],set:Ie=>n[ee]=Ie})})}else e.exposed||(e.exposed={});R&&e.render===ve&&(e.render=R),K!=null&&(e.inheritAttrs=K),O&&(e.components=O),q&&(e.directives=q)}function Wl(e,t,n=ve,s=!1){N(e)&&(e=hs(e));for(const r in e){const i=e[r];let o;oe(i)?"default"in i?o=_n(i.from||r,i.default,!0):o=_n(i.from||r):o=_n(i),ce(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function ar(e,t,n){we(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,s){const r=s.includes(".")?_i(n,s):()=>n[s];if(se(e)){const i=t[e];V(i)&&bn(r,i)}else if(V(e))bn(r,e.bind(n));else if(oe(e))if(N(e))e.forEach(i=>Ai(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&bn(r,i,e)}}function Fi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>Tn(c,u,o,!0)),Tn(c,t,o)),i.set(t,c),c}function Tn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Tn(e,i,n,!0),r&&r.forEach(o=>Tn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ql[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ql={data:dr,props:st,emits:st,methods:st,computed:st,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:st,directives:st,watch:Yl,provide:dr,inject:Jl};function dr(e,t){return t?e?function(){return ie(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Jl(e,t){return st(hs(e),hs(t))}function hs(e){if(N(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const p=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,E]=Pi(h,t,!0);ie(o,g),E&&l.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return s.set(e,yt),yt;if(N(i))for(let p=0;p-1,E[1]=H<0||v-1||J(E,"default"))&&l.push(h)}}}const u=[o,l];return s.set(e,u),u}function hr(e){return e[0]!=="$"}function pr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function gr(e,t){return pr(e)===pr(t)}function mr(e,t){return N(t)?t.findIndex(n=>gr(n,e)):V(t)&&gr(t,e)?0:-1}const Mi=e=>e[0]==="_"||e==="$stable",$s=e=>N(e)?e.map(ye):[ye(e)],Zl=(e,t,n)=>{if(t._n)return t;const s=pi((...r)=>$s(t(...r)),n);return s._c=!1,s},Ri=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Mi(r))continue;const i=e[r];if(V(i))t[r]=Zl(r,i,s);else if(i!=null){const o=$s(i);t[r]=()=>o}}},Oi=(e,t)=>{const n=$s(t);e.slots.default=()=>n},Ql=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),Cn(t,"_",n)):Ri(t,e.slots={})}else e.slots={},t&&Oi(e,t);Cn(e.slots,Wn,1)},Gl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ie(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ri(t,r)),o=t}else t&&(Oi(e,t),o={default:1});if(i)for(const l in r)!Mi(l)&&!(l in o)&&delete r[l]};function Ii(){return{app:null,config:{isNativeTag:Co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ec=0;function tc(e,t){return function(s,r=null){V(s)||(s=Object.assign({},s)),r!=null&&!oe(r)&&(r=null);const i=Ii(),o=new Set;let l=!1;const c=i.app={_uid:ec++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:wc,get config(){return i.config},set config(u){},use(u,...p){return o.has(u)||(u&&V(u.install)?(o.add(u),u.install(c,...p)):V(u)&&(o.add(u),u(c,...p))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,p){return p?(i.components[u]=p,c):i.components[u]},directive(u,p){return p?(i.directives[u]=p,c):i.directives[u]},mount(u,p,h){if(!l){const g=ne(s,r);return g.appContext=i,p&&t?t(g,u):e(g,u,h),l=!0,c._container=u,u.__vue_app__=c,qn(g.component)||g.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,p){return i.provides[u]=p,c}};return c}}function An(e,t,n,s,r=!1){if(N(e)){e.forEach((g,E)=>An(g,t&&(N(t)?t[E]:t),n,s,r));return}if(lt(s)&&!r)return;const i=s.shapeFlag&4?qn(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,u=t&&t.r,p=l.refs===X?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(se(u)?(p[u]=null,J(h,u)&&(h[u]=null)):ce(u)&&(u.value=null)),V(c))ke(c,l,12,[o,p]);else{const g=se(c),E=ce(c);if(g||E){const v=()=>{if(e.f){const H=g?p[c]:c.value;r?N(H)&&ws(H,i):N(H)?H.includes(i)||H.push(i):g?(p[c]=[i],J(h,c)&&(h[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else g?(p[c]=o,J(h,c)&&(h[c]=o)):E&&(c.value=o,e.k&&(p[e.k]=o))};o?(v.id=-1,fe(v,n)):v()}}}let Ke=!1;const an=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",dn=e=>e.nodeType===8;function nc(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:u}}=e,p=(_,d)=>{if(!d.hasChildNodes()){n(null,_,d),En(),d._vnode=_;return}Ke=!1,h(d.firstChild,_,null,null,null),En(),d._vnode=_,Ke&&console.error("Hydration completed but contains mismatches.")},h=(_,d,b,w,R,B=!1)=>{const D=dn(_)&&_.data==="[",T=()=>H(_,d,b,w,R,D),{type:L,ref:U,shapeFlag:K,patchFlag:O}=d,q=_.nodeType;d.el=_,O===-2&&(B=!1,d.dynamicChildren=null);let k=null;switch(L){case Qt:q!==3?d.children===""?(c(d.el=r(""),o(_),_),k=_):k=T():(_.data!==d.children&&(Ke=!0,_.data=d.children),k=i(_));break;case he:q!==8||D?k=T():k=i(_);break;case Tt:if(q!==1&&q!==3)k=T();else{k=_;const pe=!d.children.length;for(let Z=0;Z{B=B||!!d.dynamicChildren;const{type:D,props:T,patchFlag:L,shapeFlag:U,dirs:K}=d,O=D==="input"&&K||D==="option";if(O||L!==-1){if(K&&Me(d,null,b,"created"),T)if(O||!B||L&48)for(const k in T)(O&&k.endsWith("value")||Gt(k)&&!Ht(k))&&s(_,k,null,T[k],!1,void 0,b);else T.onClick&&s(_,"onClick",null,T.onClick,!1,void 0,b);let q;if((q=T&&T.onVnodeBeforeMount)&&ge(q,b,d),K&&Me(d,null,b,"beforeMount"),((q=T&&T.onVnodeMounted)||K)&&mi(()=>{q&&ge(q,b,d),K&&Me(d,null,b,"mounted")},w),U&16&&!(T&&(T.innerHTML||T.textContent))){let k=E(_.firstChild,d,_,b,w,R,B);for(;k;){Ke=!0;const pe=k;k=k.nextSibling,l(pe)}}else U&8&&_.textContent!==d.children&&(Ke=!0,_.textContent=d.children)}return _.nextSibling},E=(_,d,b,w,R,B,D)=>{D=D||!!d.dynamicChildren;const T=d.children,L=T.length;for(let U=0;U{const{slotScopeIds:D}=d;D&&(R=R?R.concat(D):D);const T=o(_),L=E(i(_),d,T,b,w,R,B);return L&&dn(L)&&L.data==="]"?i(d.anchor=L):(Ke=!0,c(d.anchor=u("]"),T,L),L)},H=(_,d,b,w,R,B)=>{if(Ke=!0,d.el=null,B){const L=I(_);for(;;){const U=i(_);if(U&&U!==L)l(U);else break}}const D=i(_),T=o(_);return l(_),n(null,d,T,D,b,w,an(T),R),D},I=_=>{let d=0;for(;_;)if(_=i(_),_&&dn(_)&&(_.data==="["&&d++,_.data==="]")){if(d===0)return i(_);d--}return _};return[p,h]}const fe=mi;function sc(e){return Si(e)}function rc(e){return Si(e,nc)}function Si(e,t){const n=Fo();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:p,parentNode:h,nextSibling:g,setScopeId:E=ve,cloneNode:v,insertStaticContent:H}=e,I=(f,a,m,C=null,y=null,F=null,M=!1,A=null,P=!!a.dynamicChildren)=>{if(f===a)return;f&&!Re(f,a)&&(C=sn(f),$e(f,y,F,!0),f=null),a.patchFlag===-2&&(P=!1,a.dynamicChildren=null);const{type:x,ref:$,shapeFlag:S}=a;switch(x){case Qt:_(f,a,m,C);break;case he:d(f,a,m,C);break;case Tt:f==null&&b(a,m,C,M);break;case ue:q(f,a,m,C,y,F,M,A,P);break;default:S&1?B(f,a,m,C,y,F,M,A,P):S&6?k(f,a,m,C,y,F,M,A,P):(S&64||S&128)&&x.process(f,a,m,C,y,F,M,A,P,gt)}$!=null&&y&&An($,f&&f.ref,F,a||f,!a)},_=(f,a,m,C)=>{if(f==null)s(a.el=l(a.children),m,C);else{const y=a.el=f.el;a.children!==f.children&&u(y,a.children)}},d=(f,a,m,C)=>{f==null?s(a.el=c(a.children||""),m,C):a.el=f.el},b=(f,a,m,C)=>{[f.el,f.anchor]=H(f.children,a,m,C,f.el,f.anchor)},w=({el:f,anchor:a},m,C)=>{let y;for(;f&&f!==a;)y=g(f),s(f,m,C),f=y;s(a,m,C)},R=({el:f,anchor:a})=>{let m;for(;f&&f!==a;)m=g(f),r(f),f=m;r(a)},B=(f,a,m,C,y,F,M,A,P)=>{M=M||a.type==="svg",f==null?D(a,m,C,y,F,M,A,P):U(f,a,y,F,M,A,P)},D=(f,a,m,C,y,F,M,A)=>{let P,x;const{type:$,props:S,shapeFlag:j,transition:W,patchFlag:z,dirs:Q}=f;if(f.el&&v!==void 0&&z===-1)P=f.el=v(f.el);else{if(P=f.el=o(f.type,F,S&&S.is,S),j&8?p(P,f.children):j&16&&L(f.children,P,null,C,y,F&&$!=="foreignObject",M,A),Q&&Me(f,null,C,"created"),S){for(const te in S)te!=="value"&&!Ht(te)&&i(P,te,null,S[te],F,f.children,C,y,Se);"value"in S&&i(P,"value",null,S.value),(x=S.onVnodeBeforeMount)&&ge(x,C,f)}T(P,f,f.scopeId,M,C)}Q&&Me(f,null,C,"beforeMount");const G=(!y||y&&!y.pendingBranch)&&W&&!W.persisted;G&&W.beforeEnter(P),s(P,a,m),((x=S&&S.onVnodeMounted)||G||Q)&&fe(()=>{x&&ge(x,C,f),G&&W.enter(P),Q&&Me(f,null,C,"mounted")},y)},T=(f,a,m,C,y)=>{if(m&&E(f,m),C)for(let F=0;F{for(let x=P;x{const A=a.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=a;P|=f.patchFlag&16;const S=f.props||X,j=a.props||X;let W;m&&tt(m,!1),(W=j.onVnodeBeforeUpdate)&&ge(W,m,a,f),$&&Me(a,f,m,"beforeUpdate"),m&&tt(m,!0);const z=y&&a.type!=="foreignObject";if(x?K(f.dynamicChildren,x,A,m,C,z,F):M||Ie(f,a,A,null,m,C,z,F,!1),P>0){if(P&16)O(A,a,S,j,m,C,y);else if(P&2&&S.class!==j.class&&i(A,"class",null,j.class,y),P&4&&i(A,"style",S.style,j.style,y),P&8){const Q=a.dynamicProps;for(let G=0;G{W&&ge(W,m,a,f),$&&Me(a,f,m,"updated")},C)},K=(f,a,m,C,y,F,M)=>{for(let A=0;A{if(m!==C){for(const A in C){if(Ht(A))continue;const P=C[A],x=m[A];P!==x&&A!=="value"&&i(f,A,x,P,M,a.children,y,F,Se)}if(m!==X)for(const A in m)!Ht(A)&&!(A in C)&&i(f,A,m[A],null,M,a.children,y,F,Se);"value"in C&&i(f,"value",m.value,C.value)}},q=(f,a,m,C,y,F,M,A,P)=>{const x=a.el=f?f.el:l(""),$=a.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:j,slotScopeIds:W}=a;W&&(A=A?A.concat(W):W),f==null?(s(x,m,C),s($,m,C),L(a.children,m,$,y,F,M,A,P)):S>0&&S&64&&j&&f.dynamicChildren?(K(f.dynamicChildren,j,m,y,F,M,A),(a.key!=null||y&&a===y.subTree)&&js(f,a,!0)):Ie(f,a,m,$,y,F,M,A,P)},k=(f,a,m,C,y,F,M,A,P)=>{a.slotScopeIds=A,f==null?a.shapeFlag&512?y.ctx.activate(a,m,C,M,P):pe(a,m,C,y,F,M,P):Z(f,a,P)},pe=(f,a,m,C,y,F,M)=>{const A=f.component=Ui(f,C,y);if(nn(f)&&(A.ctx.renderer=gt),ji(A),A.asyncDep){if(y&&y.registerDep(A,re),!f.el){const P=A.subTree=ne(he);d(null,P,a,m)}return}re(A,f,a,m,y,F,M)},Z=(f,a,m)=>{const C=a.component=f.component;if(El(f,a,m))if(C.asyncDep&&!C.asyncResolved){ee(C,a,m);return}else C.next=a,gl(C.update),C.update();else a.el=f.el,C.vnode=a},re=(f,a,m,C,y,F,M)=>{const A=()=>{if(f.isMounted){let{next:$,bu:S,u:j,parent:W,vnode:z}=f,Q=$,G;tt(f,!1),$?($.el=z.el,ee(f,$,M)):$=z,S&&xt(S),(G=$.props&&$.props.onVnodeBeforeUpdate)&&ge(G,W,$,z),tt(f,!0);const te=mn(f),Ae=f.subTree;f.subTree=te,I(Ae,te,h(Ae.el),sn(Ae),f,y,F),$.el=te.el,Q===null&&Ss(f,te.el),j&&fe(j,y),(G=$.props&&$.props.onVnodeUpdated)&&fe(()=>ge(G,W,$,z),y)}else{let $;const{el:S,props:j}=a,{bm:W,m:z,parent:Q}=f,G=lt(a);if(tt(f,!1),W&&xt(W),!G&&($=j&&j.onVnodeBeforeMount)&&ge($,Q,a),tt(f,!0),S&&zn){const te=()=>{f.subTree=mn(f),zn(S,f.subTree,f,y,null)};G?a.type.__asyncLoader().then(()=>!f.isUnmounted&&te()):te()}else{const te=f.subTree=mn(f);I(null,te,m,C,f,y,F),a.el=te.el}if(z&&fe(z,y),!G&&($=j&&j.onVnodeMounted)){const te=a;fe(()=>ge($,Q,te),y)}(a.shapeFlag&256||Q&<(Q.vnode)&&Q.vnode.shapeFlag&256)&&f.a&&fe(f.a,y),f.isMounted=!0,a=m=C=null}},P=f.effect=new Nn(A,()=>Is(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,tt(f,!0),x()},ee=(f,a,m)=>{a.component=f;const C=f.vnode.props;f.vnode=a,f.next=null,Xl(f,a.props,C,m),Gl(f,a.children,m),at(),Un(void 0,f.update),dt()},Ie=(f,a,m,C,y,F,M,A,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,S=a.children,{patchFlag:j,shapeFlag:W}=a;if(j>0){if(j&128){Rt(x,S,m,C,y,F,M,A,P);return}else if(j&256){Jn(x,S,m,C,y,F,M,A,P);return}}W&8?($&16&&Se(x,y,F),S!==x&&p(m,S)):$&16?W&16?Rt(x,S,m,C,y,F,M,A,P):Se(x,y,F,!0):($&8&&p(m,""),W&16&&L(S,m,C,y,F,M,A,P))},Jn=(f,a,m,C,y,F,M,A,P)=>{f=f||yt,a=a||yt;const x=f.length,$=a.length,S=Math.min(x,$);let j;for(j=0;j$?Se(f,y,F,!0,!1,S):L(a,m,C,y,F,M,A,P,S)},Rt=(f,a,m,C,y,F,M,A,P)=>{let x=0;const $=a.length;let S=f.length-1,j=$-1;for(;x<=S&&x<=j;){const W=f[x],z=a[x]=P?Je(a[x]):ye(a[x]);if(Re(W,z))I(W,z,m,null,y,F,M,A,P);else break;x++}for(;x<=S&&x<=j;){const W=f[S],z=a[j]=P?Je(a[j]):ye(a[j]);if(Re(W,z))I(W,z,m,null,y,F,M,A,P);else break;S--,j--}if(x>S){if(x<=j){const W=j+1,z=W<$?a[W].el:C;for(;x<=j;)I(null,a[x]=P?Je(a[x]):ye(a[x]),m,z,y,F,M,A,P),x++}}else if(x>j)for(;x<=S;)$e(f[x],y,F,!0),x++;else{const W=x,z=x,Q=new Map;for(x=z;x<=j;x++){const _e=a[x]=P?Je(a[x]):ye(a[x]);_e.key!=null&&Q.set(_e.key,x)}let G,te=0;const Ae=j-z+1;let mt=!1,Ys=0;const Ot=new Array(Ae);for(x=0;x=Ae){$e(_e,y,F,!0);continue}let Pe;if(_e.key!=null)Pe=Q.get(_e.key);else for(G=z;G<=j;G++)if(Ot[G-z]===0&&Re(_e,a[G])){Pe=G;break}Pe===void 0?$e(_e,y,F,!0):(Ot[Pe-z]=x+1,Pe>=Ys?Ys=Pe:mt=!0,I(_e,a[Pe],m,null,y,F,M,A,P),te++)}const zs=mt?ic(Ot):yt;for(G=zs.length-1,x=Ae-1;x>=0;x--){const _e=z+x,Pe=a[_e],Xs=_e+1<$?a[_e+1].el:C;Ot[x]===0?I(null,Pe,m,Xs,y,F,M,A,P):mt&&(G<0||x!==zs[G]?pt(Pe,m,Xs,2):G--)}}},pt=(f,a,m,C,y=null)=>{const{el:F,type:M,transition:A,children:P,shapeFlag:x}=f;if(x&6){pt(f.component.subTree,a,m,C);return}if(x&128){f.suspense.move(a,m,C);return}if(x&64){M.move(f,a,m,gt);return}if(M===ue){s(F,a,m);for(let S=0;SA.enter(F),y);else{const{leave:S,delayLeave:j,afterLeave:W}=A,z=()=>s(F,a,m),Q=()=>{S(F,()=>{z(),W&&W()})};j?j(F,z,Q):Q()}else s(F,a,m)},$e=(f,a,m,C=!1,y=!1)=>{const{type:F,props:M,ref:A,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:S,dirs:j}=f;if(A!=null&&An(A,null,m,f,!0),$&256){a.ctx.deactivate(f);return}const W=$&1&&j,z=!lt(f);let Q;if(z&&(Q=M&&M.onVnodeBeforeUnmount)&&ge(Q,a,f),$&6)uo(f.component,m,C);else{if($&128){f.suspense.unmount(m,C);return}W&&Me(f,null,a,"beforeUnmount"),$&64?f.type.remove(f,a,m,y,gt,C):x&&(F!==ue||S>0&&S&64)?Se(x,a,m,!1,!0):(F===ue&&S&384||!y&&$&16)&&Se(P,a,m),C&&qs(f)}(z&&(Q=M&&M.onVnodeUnmounted)||W)&&fe(()=>{Q&&ge(Q,a,f),W&&Me(f,null,a,"unmounted")},m)},qs=f=>{const{type:a,el:m,anchor:C,transition:y}=f;if(a===ue){fo(m,C);return}if(a===Tt){R(f);return}const F=()=>{r(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:M,delayLeave:A}=y,P=()=>M(m,F);A?A(f.el,F,P):P()}else F()},fo=(f,a)=>{let m;for(;f!==a;)m=g(f),r(f),f=m;r(a)},uo=(f,a,m)=>{const{bum:C,scope:y,update:F,subTree:M,um:A}=f;C&&xt(C),y.stop(),F&&(F.active=!1,$e(M,f,a,m)),A&&fe(A,a),fe(()=>{f.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},Se=(f,a,m,C=!1,y=!1,F=0)=>{for(let M=F;Mf.shapeFlag&6?sn(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Js=(f,a,m)=>{f==null?a._vnode&&$e(a._vnode,null,null,!0):I(a._vnode||null,f,a,null,null,null,m),En(),a._vnode=f},gt={p:I,um:$e,m:pt,r:qs,mt:pe,mc:L,pc:Ie,pbc:K,n:sn,o:e};let Yn,zn;return t&&([Yn,zn]=t(gt)),{render:Js,hydrate:Yn,createApp:tc(Js,Yn)}}function tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function js(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const oc=e=>e.__isTeleport,jt=e=>e&&(e.disabled||e.disabled===""),_r=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,gs=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},lc={__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,u){const{mc:p,pc:h,pbc:g,o:{insert:E,querySelector:v,createText:H,createComment:I}}=u,_=jt(t.props);let{shapeFlag:d,children:b,dynamicChildren:w}=t;if(e==null){const R=t.el=H(""),B=t.anchor=H("");E(R,n,s),E(B,n,s);const D=t.target=gs(t.props,v),T=t.targetAnchor=H("");D&&(E(T,D),o=o||_r(D));const L=(U,K)=>{d&16&&p(b,U,K,r,i,o,l,c)};_?L(n,B):D&&L(D,T)}else{t.el=e.el;const R=t.anchor=e.anchor,B=t.target=e.target,D=t.targetAnchor=e.targetAnchor,T=jt(e.props),L=T?n:B,U=T?R:D;if(o=o||_r(B),w?(g(e.dynamicChildren,w,L,r,i,o,l),js(e,t,!0)):c||h(e,t,L,U,r,i,o,l,!1),_)T||hn(t,n,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=gs(t.props,v);K&&hn(t,K,null,u,0)}else T&&hn(t,B,D,u,1)}},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:l,children:c,anchor:u,targetAnchor:p,target:h,props:g}=e;if(h&&i(p),(o||!jt(g))&&(i(u),l&16))for(let E=0;E0?me||yt:null,Ni(),ct>0&&me&&me.push(e),e}function Df(e,t,n,s,r,i){return Bi(Hi(e,t,n,s,r,i,!0))}function Li(e,t,n,s,r){return Bi(ne(e,t,n,s,r,!0))}function ft(e){return e?e.__v_isVNode===!0:!1}function Re(e,t){return e.type===t.type&&e.key===t.key}function Uf(e){}const Wn="__vInternal",ki=({key:e})=>e!=null?e:null,yn=({ref:e,ref_key:t,ref_for:n})=>e!=null?se(e)||ce(e)||V(e)?{i:ae,r:e,k:t,f:!!n}:e:null;function Hi(e,t=null,n=null,s=0,r=null,i=e===ue?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ki(t),ref:t&&yn(t),scopeId:jn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(Vs(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),ct>0&&!o&&me&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&me.push(c),c}const ne=fc;function fc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===wi)&&(e=he),ft(e)){const l=De(e,t,!0);return n&&Vs(l,n),ct>0&&!i&&me&&(l.shapeFlag&6?me[me.indexOf(e)]=l:me.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Rn(l)),oe(c)&&(ni(c)&&!N(c)&&(c=ie({},c)),t.style=Mn(c))}const o=se(e)?1:gi(e)?128:oc(e)?64:oe(e)?4:V(e)?2:0;return Hi(e,t,n,s,r,o,i,!0)}function uc(e){return e?ni(e)||Wn in e?ie({},e):e:null}function De(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?ac(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ki(l),ref:t&&t.ref?n&&r?N(r)?r.concat(yn(t)):[r,yn(t)]:yn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&De(e.ssContent),ssFallback:e.ssFallback&&De(e.ssFallback),el:e.el,anchor:e.anchor}}function Di(e=" ",t=0){return ne(Qt,null,e,t)}function $f(e,t){const n=ne(Tt,null,e);return n.staticCount=t,n}function jf(e="",t=!1){return t?(Ks(),Li(he,null,e)):ne(he,null,e)}function ye(e){return e==null||typeof e=="boolean"?ne(he):N(e)?ne(ue,null,e.slice()):typeof e=="object"?Je(e):ne(Qt,null,String(e))}function Je(e){return e.el===null||e.memo?e:De(e)}function Vs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Vs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Wn in t)?t._ctx=ae:r===3&&ae&&(ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ae},n=32):(t=String(t),s&64?(n=16,t=[Di(t)]):n=8);e.children=t,e.shapeFlag|=n}function ac(...e){const t={};for(let n=0;nle||ae,Ge=e=>{le=e,e.scope.on()},ze=()=>{le&&le.scope.off(),le=null};function $i(e){return e.vnode.shapeFlag&4}let vt=!1;function ji(e,t=!1){vt=t;const{props:n,children:s}=e.vnode,r=$i(e);zl(e,n,r,t),Ql(e,s);const i=r?pc(e,t):void 0;return vt=!1,i}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=si(new Proxy(e.ctx,as));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Vi(e):null;Ge(e),at();const i=ke(s,e,0,[e.props,r]);if(dt(),ze(),Ts(i)){if(i.then(ze,ze),t)return i.then(o=>{ms(e,o,t)}).catch(o=>{Mt(o,e,0)});e.asyncDep=i}else ms(e,i,t)}else Ki(e,t)}function ms(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=ii(t)),Ki(e,n)}let Fn,_s;function Kf(e){Fn=e,_s=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Kl))}}const Vf=()=>!Fn;function Ki(e,t,n){const s=e.type;if(!e.render){if(!t&&Fn&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=ie(ie({isCustomElement:i,delimiters:l},o),c);s.render=Fn(r,u)}}e.render=s.render||ve,_s&&_s(e)}Ge(e),at(),Vl(e),dt(),ze()}function gc(e){return new Proxy(e.attrs,{get(t,n){return xe(e,"get","$attrs"),t[n]}})}function Vi(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=gc(e))},slots:e.slots,emit:e.emit,expose:t}}function qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(si(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)}}))}const mc=/(?:^|[-_])(\w)/g,_c=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function vn(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function Wi(e,t,n=!1){let s=vn(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?_c(s):n?"App":"Anonymous"}function bc(e){return V(e)&&"__vccOpts"in e}const yc=(e,t)=>ll(e,t,vt);function Wf(){return null}function qf(){return null}function Jf(e){}function Yf(e,t){return null}function zf(){return qi().slots}function Xf(){return qi().attrs}function qi(){const e=ht();return e.setupContext||(e.setupContext=Vi(e))}function Zf(e,t){const n=N(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?N(r)||V(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function Qf(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function Gf(e){const t=ht();let n=e();return ze(),Ts(n)&&(n=n.catch(s=>{throw Ge(t),s})),[n,()=>Ge(t)]}function Cc(e,t,n){const s=arguments.length;return s===2?oe(t)&&!N(t)?ft(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ft(n)&&(n=[n]),ne(e,t,n))}const xc=Symbol(""),eu=()=>{{const e=_n(xc);return e||cl("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function tu(){}function nu(e,t,n,s){const r=n[s];if(r&&Ec(r,e))return r;const i=t();return i.memo=e.slice(),n[s]=i}function Ec(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&me&&me.push(e),!0}const wc="3.2.37",Tc={createComponentInstance:Ui,setupComponent:ji,renderComponentRoot:mn,setCurrentRenderingInstance:zt,isVNode:ft,normalizeVNode:ye},su=Tc,ru=null,iu=null,Ac="http://www.w3.org/2000/svg",rt=typeof document!="undefined"?document:null,yr=rt&&rt.createElement("template"),Fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?rt.createElementNS(Ac,e):rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{yr.innerHTML=s?`${e}`:e;const l=yr.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function vc(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Pc(e,t,n){const s=e.style,r=se(n);if(n&&!r){for(const i in n)bs(s,i,n[i]);if(t&&!se(t))for(const i in t)n[i]==null&&bs(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Cr=/\s*!important$/;function bs(e,t,n){if(N(n))n.forEach(s=>bs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Mc(e,t);Cr.test(n)?e.setProperty(Oe(s),n.replace(Cr,""),"important"):e[s]=n}}const xr=["Webkit","Moz","ms"],ts={};function Mc(e,t){const n=ts[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Sn(s);for(let r=0;r{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let ys=0;const Sc=Promise.resolve(),Nc=()=>{ys=0},Bc=()=>ys||(Sc.then(Nc),ys=Ji());function Le(e,t,n,s){e.addEventListener(t,n,s)}function Lc(e,t,n,s){e.removeEventListener(t,n,s)}function kc(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Hc(t);if(s){const u=i[t]=Dc(s,r);Le(e,l,u,c)}else o&&(Lc(e,l,o,c),i[t]=void 0)}}const wr=/(?:Once|Passive|Capture)$/;function Hc(e){let t;if(wr.test(e)){t={};let n;for(;n=e.match(wr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Oe(e.slice(2)),t]}function Dc(e,t){const n=s=>{const r=s.timeStamp||Ji();(Ic||r>=n.attached-1)&&we(Uc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Uc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Tr=/^on[a-z]/,$c=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?vc(e,s,r):t==="style"?Pc(e,n,s):Gt(t)?Es(t)||kc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jc(e,t,s,r))?Oc(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Rc(e,t,s,r))};function jc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Tr.test(t)&&V(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Tr.test(t)&&se(n)?!1:t in e}function Kc(e,t){const n=xi(e);class s extends Ws{constructor(i){super(n,i,t)}}return s.def=n,s}const ou=e=>Kc(e,ff),Vc=typeof HTMLElement!="undefined"?HTMLElement:class{};class Ws extends Vc{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,ci(()=>{this._connected||(Br(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=s=>{const{props:r,styles:i}=s,o=!N(r),l=r?o?Object.keys(r):r:[];let c;if(o)for(const u in this._props){const p=r[u];(p===Number||p&&p.type===Number)&&(this._props[u]=Ze(this._props[u]),(c||(c=Object.create(null)))[u]=!0)}this._numberProps=c;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of l.map(Te))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(p){this._setProp(u,p)}});this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Ze(n)),this._setProp(Te(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Oe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Oe(t),n+""):n||this.removeAttribute(Oe(t))))}_update(){Br(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ne(this._def,ie({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(r,...i)=>{this.dispatchEvent(new CustomEvent(r,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Ws){n.parent=s._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function lu(e="$style"){{const t=ht();if(!t)return X;const n=t.type.__cssModules;if(!n)return X;const s=n[e];return s||X}}function cu(e){const t=ht();if(!t)return;const n=()=>Cs(t.subTree,e(t.proxy));Ml(n),Vn(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Hs(()=>s.disconnect())})}function Cs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Cs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ar(e.el,t);else if(e.type===ue)e.children.forEach(n=>Cs(n,t));else if(e.type===Tt){let{el:n,anchor:s}=e;for(;n&&(Ar(n,t),n!==s);)n=n.nextSibling}}function Ar(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const Ve="transition",St="animation",Yi=(e,{slots:t})=>Cc(yi,Xi(e),t);Yi.displayName="Transition";const zi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Wc=Yi.props=ie({},yi.props,zi),nt=(e,t=[])=>{N(e)?e.forEach(n=>n(...t)):e&&e(...t)},Fr=e=>e?N(e)?e.some(t=>t.length>1):e.length>1:!1;function Xi(e){const t={};for(const O in e)O in zi||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:p=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,v=qc(r),H=v&&v[0],I=v&&v[1],{onBeforeEnter:_,onEnter:d,onEnterCancelled:b,onLeave:w,onLeaveCancelled:R,onBeforeAppear:B=_,onAppear:D=d,onAppearCancelled:T=b}=t,L=(O,q,k)=>{qe(O,q?p:l),qe(O,q?u:o),k&&k()},U=(O,q)=>{O._isLeaving=!1,qe(O,h),qe(O,E),qe(O,g),q&&q()},K=O=>(q,k)=>{const pe=O?D:d,Z=()=>L(q,O,k);nt(pe,[q,Z]),vr(()=>{qe(q,O?c:i),Ne(q,O?p:l),Fr(pe)||Pr(q,s,H,Z)})};return ie(t,{onBeforeEnter(O){nt(_,[O]),Ne(O,i),Ne(O,o)},onBeforeAppear(O){nt(B,[O]),Ne(O,c),Ne(O,u)},onEnter:K(!1),onAppear:K(!0),onLeave(O,q){O._isLeaving=!0;const k=()=>U(O,q);Ne(O,h),Qi(),Ne(O,g),vr(()=>{!O._isLeaving||(qe(O,h),Ne(O,E),Fr(w)||Pr(O,s,I,k))}),nt(w,[O,k])},onEnterCancelled(O){L(O,!1),nt(b,[O])},onAppearCancelled(O){L(O,!0),nt(T,[O])},onLeaveCancelled(O){U(O),nt(R,[O])}})}function qc(e){if(e==null)return null;if(oe(e))return[ns(e.enter),ns(e.leave)];{const t=ns(e);return[t,t]}}function ns(e){return Ze(e)}function Ne(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function qe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Jc=0;function Pr(e,t,n,s){const r=e._endId=++Jc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Zi(e,t);if(!o)return s();const u=o+"end";let p=0;const h=()=>{e.removeEventListener(u,g),i()},g=E=>{E.target===e&&++p>=c&&h()};setTimeout(()=>{p(n[v]||"").split(", "),r=s(Ve+"Delay"),i=s(Ve+"Duration"),o=Mr(r,i),l=s(St+"Delay"),c=s(St+"Duration"),u=Mr(l,c);let p=null,h=0,g=0;t===Ve?o>0&&(p=Ve,h=o,g=i.length):t===St?u>0&&(p=St,h=u,g=c.length):(h=Math.max(o,u),p=h>0?o>u?Ve:St:null,g=p?p===Ve?i.length:c.length:0);const E=p===Ve&&/\b(transform|all)(,|$)/.test(n[Ve+"Property"]);return{type:p,timeout:h,propCount:g,hasTransform:E}}function Mr(e,t){for(;e.lengthRr(n)+Rr(e[s])))}function Rr(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Qi(){return document.body.offsetHeight}const Gi=new WeakMap,eo=new WeakMap,Yc={name:"TransitionGroup",props:ie({},Wc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ht(),s=bi();let r,i;return Ls(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Qc(r[0].el,n.vnode.el,o))return;r.forEach(zc),r.forEach(Xc);const l=r.filter(Zc);Qi(),l.forEach(c=>{const u=c.el,p=u.style;Ne(u,o),p.transform=p.webkitTransform=p.transitionDuration="";const h=u._moveCb=g=>{g&&g.target!==u||(!g||/transform$/.test(g.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,qe(u,o))};u.addEventListener("transitionend",h)})}),()=>{const o=Y(e),l=Xi(o);let c=o.tag||ue;r=i,i=t.default?Bs(t.default()):[];for(let u=0;u{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Zi(s);return r.removeChild(s),i}const et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>xt(t,n):t};function Gc(e){e.target.composing=!0}function Or(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=et(r);const i=s||r.props&&r.props.type==="number";Le(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Ze(l)),e._assign(l)}),n&&Le(e,"change",()=>{e.value=e.value.trim()}),t||(Le(e,"compositionstart",Gc),Le(e,"compositionend",Or),Le(e,"change",Or))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=et(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Ze(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},to={deep:!0,created(e,t,n){e._assign=et(n),Le(e,"change",()=>{const s=e._modelValue,r=Pt(e),i=e.checked,o=e._assign;if(N(s)){const l=On(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const u=[...s];u.splice(l,1),o(u)}}else if(ut(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(so(e,i))})},mounted:Ir,beforeUpdate(e,t,n){e._assign=et(n),Ir(e,t,n)}};function Ir(e,{value:t,oldValue:n},s){e._modelValue=t,N(t)?e.checked=On(t,s.props.value)>-1:ut(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Xe(t,so(e,!0)))}const no={created(e,{value:t},n){e.checked=Xe(t,n.props.value),e._assign=et(n),Le(e,"change",()=>{e._assign(Pt(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=et(s),t!==n&&(e.checked=Xe(t,s.props.value))}},ef={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=ut(t);Le(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Ze(Pt(o)):Pt(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=et(s)},mounted(e,{value:t}){Sr(e,t)},beforeUpdate(e,t,n){e._assign=et(n)},updated(e,{value:t}){Sr(e,t)}};function Sr(e,t){const n=e.multiple;if(!(n&&!N(t)&&!ut(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(Xe(Pt(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pt(e){return"_value"in e?e._value:e.value}function so(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tf={created(e,t,n){pn(e,t,n,null,"created")},mounted(e,t,n){pn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){pn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){pn(e,t,n,s,"updated")}};function ro(e,t){switch(e){case"SELECT":return ef;case"TEXTAREA":return xs;default:switch(t){case"checkbox":return to;case"radio":return no;default:return xs}}}function pn(e,t,n,s,r){const o=ro(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function nf(){xs.getSSRProps=({value:e})=>({value:e}),no.getSSRProps=({value:e},t)=>{if(t.props&&Xe(t.props.value,e))return{checked:!0}},to.getSSRProps=({value:e},t)=>{if(N(e)){if(t.props&&On(e,t.props.value)>-1)return{checked:!0}}else if(ut(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},tf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ro(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const sf=["ctrl","shift","alt","meta"],rf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sf.some(n=>e[`${n}Key`]&&!t.includes(n))},uu=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=Oe(n.key);if(t.some(r=>r===s||of[r]===s))return e(n)},lf={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Nt(e,!0),s.enter(e)):s.leave(e,()=>{Nt(e,!1)}):Nt(e,t))},beforeUnmount(e,{value:t}){Nt(e,t)}};function Nt(e,t){e.style.display=t?e._vod:"none"}function cf(){lf.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const io=ie({patchProp:$c},Fc);let Vt,Nr=!1;function oo(){return Vt||(Vt=sc(io))}function lo(){return Vt=Nr?Vt:rc(io),Nr=!0,Vt}const Br=(...e)=>{oo().render(...e)},ff=(...e)=>{lo().hydrate(...e)},du=(...e)=>{const t=oo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=co(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},hu=(...e)=>{const t=lo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=co(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function co(e){return se(e)?document.querySelector(e):e}let Lr=!1;const pu=()=>{Lr||(Lr=!0,nf(),cf())};export{Hi as $,yf as A,tl as B,Te as C,Sn as D,$r as E,Rn as F,uf as G,Mn as H,af as I,gn as J,yi as K,he as L,ue as M,Mf as N,Af as O,Hf as P,Qt as Q,Nn as R,Tt as S,Yi as T,we as U,ke as V,De as W,iu as X,yc as Y,jf as Z,Df as _,Cf as a,Ff as a$,rc as a0,Qf as a1,sc as a2,Bf as a3,$f as a4,Di as a5,ne as a6,Pf as a7,xi as a8,qf as a9,Hs as aA,Ls as aB,wf as aC,Pl as aD,Ef as aE,ai as aF,Kf as aG,Nf as aH,Of as aI,Sf as aJ,If as aK,ru as aL,Zt as aM,br as aN,_l as aO,Ft as aP,xc as aQ,su as aR,kf as aS,Uf as aT,Xf as aU,eu as aV,zf as aW,bi as aX,wc as aY,cl as aZ,bn as a_,Jf as aa,Wf as ab,It as ac,ht as ad,Bs as ae,uc as af,Cc as ag,Mt as ah,tu as ai,_n as aj,Ec as ak,Vf as al,ft as am,Zf as an,ac as ao,ci as ap,Sl as aq,Ll as ar,ks as as,kl as at,Nl as au,$l as av,Vn as aw,Ul as ax,Dl as ay,Hl as az,df as b,Ml as b0,vf as b1,Gf as b2,Yf as b3,Rf as b4,nu as b5,Tf as b6,fu as b7,Ws as b8,du as b9,hu as ba,Kc as bb,ou as bc,ff as bd,pu as be,Br as bf,lu as bg,cu as bh,to as bi,tf as bj,no as bk,ef as bl,xs as bm,lf as bn,au as bo,uu as bp,N as bq,Li as c,Et as d,gf as e,qt as f,hf as g,ce as h,ni as i,ls as j,pf as k,Ps as l,si as m,ti as n,Ks as o,ii as p,Xn as q,Lf as r,Go as s,_f as t,bf as u,mf as v,pi as w,Y as x,il as y,xf as z}; diff --git a/assets/earcut.89ec12e6.js b/assets/earcut.89ec12e6.js deleted file mode 100644 index 2466c21..0000000 --- a/assets/earcut.89ec12e6.js +++ /dev/null @@ -1 +0,0 @@ -var N=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var x=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,x.get?x:{enumerable:!0,get:function(){return e[n]}})}),t}var z={exports:{}};z.exports=P;z.exports.default=P;function P(e,t,n){n=n||2;var x=t&&t.length,r=x?t[0]*n:e.length,u=A(e,0,r,n,!0),f=[];if(!u||u.next===u.prev)return f;var i,l,y,c,h,p,v;if(x&&(u=R(e,t,u,n)),e.length>80*n){i=y=e[0],l=c=e[1];for(var o=n;oy&&(y=h),p>c&&(c=p);v=Math.max(y-i,c-l),v=v!==0?1/v:0}return w(u,f,n,i,l,v),f}function A(e,t,n,x,r){var u,f;if(r===k(e,t,n,x)>0)for(u=t;u=t;u-=x)f=E(u,e[u],e[u+1],f);return f&&T(f,f.next)&&(M(f),f=f.next),f}function g(e,t){if(!e)return e;t||(t=e);var n=e,x;do if(x=!1,!n.steiner&&(T(n,n.next)||s(n.prev,n,n.next)===0)){if(M(n),n=t=n.prev,n===n.next)break;x=!0}else n=n.next;while(x||n!==t);return t}function w(e,t,n,x,r,u,f){if(!!e){!f&&u&&U(e,x,r,u);for(var i=e,l,y;e.prev!==e.next;){if(l=e.prev,y=e.next,u?B(e,x,r,u):D(e)){t.push(l.i/n),t.push(e.i/n),t.push(y.i/n),M(e),e=y.next,i=y.next;continue}if(e=y,e===i){f?f===1?(e=$(g(e),t,n),w(e,t,n,x,r,u,2)):f===2&&G(e,t,n,x,r,u):w(g(e),t,n,x,r,u,1);break}}}}function D(e){var t=e.prev,n=e,x=e.next;if(s(t,n,x)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(Z(t.x,t.y,n.x,n.y,x.x,x.y,r.x,r.y)&&s(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function B(e,t,n,x){var r=e.prev,u=e,f=e.next;if(s(r,u,f)>=0)return!1;for(var i=r.xu.x?r.x>f.x?r.x:f.x:u.x>f.x?u.x:f.x,c=r.y>u.y?r.y>f.y?r.y:f.y:u.y>f.y?u.y:f.y,h=H(i,l,t,n,x),p=H(y,c,t,n,x),v=e.prevZ,o=e.nextZ;v&&v.z>=h&&o&&o.z<=p;){if(v!==e.prev&&v!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,v.x,v.y)&&s(v.prev,v,v.next)>=0||(v=v.prevZ,o!==e.prev&&o!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,o.x,o.y)&&s(o.prev,o,o.next)>=0))return!1;o=o.nextZ}for(;v&&v.z>=h;){if(v!==e.prev&&v!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,v.x,v.y)&&s(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;o&&o.z<=p;){if(o!==e.prev&&o!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,o.x,o.y)&&s(o.prev,o,o.next)>=0)return!1;o=o.nextZ}return!0}function $(e,t,n){var x=e;do{var r=x.prev,u=x.next.next;!T(r,u)&&j(r,x,x.next,u)&&F(r,u)&&F(u,r)&&(t.push(r.i/n),t.push(x.i/n),t.push(u.i/n),M(x),M(x.next),x=e=u),x=x.next}while(x!==e);return g(x)}function G(e,t,n,x,r,u){var f=e;do{for(var i=f.next.next;i!==f.prev;){if(f.i!==i.i&&Y(f,i)){var l=C(f,i);f=g(f,f.next),l=g(l,l.next),w(f,t,n,x,r,u),w(l,t,n,x,r,u);return}i=i.next}f=f.next}while(f!==e)}function R(e,t,n,x){var r=[],u,f,i,l,y;for(u=0,f=t.length;u=n.next.y&&n.next.y!==n.y){var i=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(i<=x&&i>u){if(u=i,i===x){if(r===n.y)return n;if(r===n.next.y)return n.next}f=n.x=n.x&&n.x>=y&&x!==n.x&&Z(rf.x||n.x===f.x&&Q(f,n)))&&(f=n,h=p)),n=n.next;while(n!==l);return f}function Q(e,t){return s(e.prev,e,t.prev)<0&&s(t.next,e,e.next)<0}function U(e,t,n,x){var r=e;do r.z===null&&(r.z=H(r.x,r.y,t,n,x)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,W(r)}function W(e){var t,n,x,r,u,f,i,l,y=1;do{for(n=e,e=null,u=null,f=0;n;){for(f++,x=n,i=0,t=0;t0||l>0&&x;)i!==0&&(l===0||!x||n.z<=x.z)?(r=n,n=n.nextZ,i--):(r=x,x=x.nextZ,l--),u?u.nextZ=r:e=r,r.prevZ=u,u=r;n=x}u.nextZ=null,y*=2}while(f>1);return e}function H(e,t,n,x,r){return e=32767*(e-n)*r,t=32767*(t-x)*r,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function X(e){var t=e,n=e;do(t.x=0&&(e-f)*(x-i)-(n-f)*(t-i)>=0&&(n-f)*(u-i)-(r-f)*(x-i)>=0}function Y(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!I(e,t)&&(F(e,t)&&F(t,e)&&S(e,t)&&(s(e.prev,e,t.prev)||s(e,t.prev,t))||T(e,t)&&s(e.prev,e,e.next)>0&&s(t.prev,t,t.next)>0)}function s(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function T(e,t){return e.x===t.x&&e.y===t.y}function j(e,t,n,x){var r=L(s(e,t,n)),u=L(s(e,t,x)),f=L(s(n,x,e)),i=L(s(n,x,t));return!!(r!==u&&f!==i||r===0&&O(e,n,t)||u===0&&O(e,x,t)||f===0&&O(n,e,x)||i===0&&O(n,t,x))}function O(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function L(e){return e>0?1:e<0?-1:0}function I(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&j(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function F(e,t){return s(e.prev,e,e.next)<0?s(e,t,e.next)>=0&&s(e,e.prev,t)>=0:s(e,t,e.prev)<0||s(e,e.next,t)<0}function S(e,t){var n=e,x=!1,r=(e.x+t.x)/2,u=(e.y+t.y)/2;do n.y>u!=n.next.y>u&&n.next.y!==n.y&&r<(n.next.x-n.x)*(u-n.y)/(n.next.y-n.y)+n.x&&(x=!x),n=n.next;while(n!==e);return x}function C(e,t){var n=new _(e.i,e.x,e.y),x=new _(t.i,t.x,t.y),r=e.next,u=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,x.next=n,n.prev=x,u.next=x,x.prev=u,x}function E(e,t,n,x){var r=new _(e,t,n);return x?(r.next=x.next,r.prev=x,x.next.prev=r,x.next=r):(r.prev=r,r.next=r),r}function M(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function _(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}P.deviation=function(e,t,n,x){var r=t&&t.length,u=r?t[0]*n:e.length,f=Math.abs(k(e,0,u,n));if(r)for(var i=0,l=t.length;i0&&(x+=e[r-1].length,n.holes.push(x))}return n};var b=z.exports;export{a,N as c,b as e,m as g}; diff --git a/assets/eventemitter3.dc5195d7.js b/assets/eventemitter3.dc5195d7.js deleted file mode 100644 index 036c893..0000000 --- a/assets/eventemitter3.dc5195d7.js +++ /dev/null @@ -1 +0,0 @@ -var w={exports:{}};(function(g){var m=Object.prototype.hasOwnProperty,u="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(u=!1));function b(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function x(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new b(n,r||s,l),o=u?u+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function y(s,t){--s._eventsCount===0?s._events=new h:delete s._events[t]}function f(){this._events=new h,this._eventsCount=0}f.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)m.call(n,r)&&t.push(u?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},f.prototype.listeners=function(t){var n=u?u+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-6a08ac80]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-34c9d881]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-34c9d881]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized div[data-v-34c9d881]{margin:0;writing-mode:vertical-rl;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-34c9d881]{padding-bottom:0}.modal-body .layer-tab[data-v-34c9d881]:not(.hasSubtabs){padding-top:0}.minimize[data-v-34c9d881]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-34c9d881]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-34c9d881]{position:sticky;top:6px;left:20px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;z-index:7}.goBack[data-v-34c9d881]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-7dec2dec]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-7dec2dec]{margin:0}.info-modal-logo[data-v-7dec2dec]{height:4em;width:4em}.info-modal-title[data-v-7dec2dec]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-7dec2dec]{display:flex;align-items:center}.info-modal-discord[data-v-7dec2dec]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.icon.delete{display:flex;justify-content:center;align-items:center;padding:0;margin:0;border:none;background:none;height:8px;width:8px;min-height:8px;min-width:8px;max-height:8px;max-width:8px;cursor:pointer}.icon.arrow-downward{color:#999;border-style:solid;border-width:4px 4px 0;border-color:#999 transparent transparent;content:"";transition:transform .2s linear;cursor:pointer}.icon.arrow-downward.active{transform:rotate(180deg)}.vue-select{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;width:150px;border-radius:4px;border:1px solid #999;box-sizing:border-box;outline:none}.vue-select[aria-disabled=true]{background-color:#efefef}.vue-select[aria-disabled=true] *,.vue-select[aria-disabled=true] input{cursor:not-allowed}.vue-select-header{display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-header .icon.loading,.vue-select-header .icon.arrow-downward{margin-right:4px}.vue-tags{display:flex;flex-wrap:wrap;margin:0;padding:2px;min-height:calc(1rem + 4px);user-select:none}.vue-tags.collapsed{flex-wrap:nowrap;overflow:auto}.vue-tag{display:none;align-items:center;justify-content:center;list-style-type:none;border-radius:4px;background-color:#999;padding:0 4px;margin:2px;min-height:1rem;font-size:.8rem}.vue-tag span{margin-right:4px}.vue-tag.selected{display:flex;align-items:center;justify-content:center;background-color:#999;border-radius:4px;padding:0 4px;font-size:.8rem}.vue-tags[data-removable=false] .vue-tag.selected img:hover{cursor:not-allowed}.vue-select-input-wrapper{position:relative;display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-input-wrapper .icon.loading{margin-right:4px}.vue-input{display:inline-flex;align-items:center;border-radius:4px;border:none;outline:none;max-width:100%;min-width:0;width:100%;box-sizing:border-box;padding:4px}.vue-select[data-is-focusing=false][aria-disabled=false] .vue-input input,input[readonly]{cursor:default}.vue-input input{border:none;outline:none;width:100%;min-width:0;font-size:.8rem;padding:0}.vue-input input[disabled]{background-color:#efefef}.vue-input input[readonly],.vue-select-header .vue-input input[disabled]{background-color:unset}.vue-dropdown{display:none;position:absolute;background-color:#fff;z-index:1;overflow-y:auto;width:100%;min-width:0;margin:0;padding:0;left:-1px;box-sizing:content-box;border:1px solid #999;list-style-type:none}.vue-select[aria-expanded=true] .vue-dropdown{display:unset}.vue-dropdown[data-visible-length="0"]{border:none}.vue-dropdown-item{list-style-type:none;padding:4px;cursor:pointer;min-height:1rem}.vue-dropdown-item.highlighted{background-color:#41b883}.vue-dropdown-item.disabled{background-color:#efefef;cursor:not-allowed}.vue-dropdown-item.selected{background-color:#f3f3f3}.vue-dropdown-item.selected.highlighted{background-color:#ff6a6a}.vue-dropdown[data-removable=false] .vue-dropdown-item.selected:hover{cursor:not-allowed}.vue-dropdown[data-addable=false][data-multiple=true] .vue-dropdown-item:not(.selected):hover{cursor:not-allowed}.icon.loading{display:inline-block;position:relative;width:8px;min-width:8px;height:8px;min-height:8px}.icon.loading div{box-sizing:border-box;display:block;position:absolute;border:1px solid #999;width:8px;height:8px;border-radius:50%;animation:loading 1s cubic-bezier(.5,0,.5,1) infinite;border-color:#999 transparent transparent transparent}.icon.loading div:nth-child(1){animation-delay:-.08s}.icon.loading div:nth-child(2){animation-delay:-.16s}@keyframes loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.inline-flex{display:inline-flex}.vue-select[aria-expanded=true].direction-bottom{border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-select[aria-expanded=true].direction-top{border-top-left-radius:0;border-top-right-radius:0}.vue-select.direction-top .vue-dropdown{bottom:100%;border-top-left-radius:3px;border-top-right-radius:3px}.vue-select.direction-bottom .vue-dropdown{top:100%;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input::placeholder{color:var(--link)}.field[data-v-2b109500]{cursor:pointer}input[data-v-2b109500]{appearance:none;pointer-events:none}span[data-v-2b109500]{width:100%;position:relative}input+span[data-v-2b109500]:before{content:"";float:right;margin:5px 0 5px 10px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-2b109500]:after{content:"";position:absolute;top:2px;right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-2b109500]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-2b109500]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}.header[data-v-bc13791c]{margin-bottom:-10px}*[data-v-bc13791c] .tooltip-container{display:inline;margin-left:5px}form[data-v-d74adb0a]{margin:0;width:100%}.field>*[data-v-d74adb0a]{margin:0}input[data-v-d74adb0a]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-d74adb0a]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.save[data-v-0136bef4]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-0136bef4]{border-color:var(--bought)}.open[data-v-0136bef4]{display:inline;margin:0;padding-left:0}.handle[data-v-0136bef4]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-0136bef4]{margin:0 80px 0 0;flex-grow:1}.error[data-v-0136bef4]{font-size:.8em;color:var(--danger)}.save-version[data-v-0136bef4]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-0136bef4]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-0136bef4]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-3b9991aa],.field .field-title[data-v-3b9991aa],.field .field-buttons[data-v-3b9991aa]{margin:0}.field-buttons[data-v-3b9991aa]{display:flex}.field-buttons .field[data-v-3b9991aa]{margin:0 0 0 8px}.modal-footer[data-v-3b9991aa]{margin-top:-20px}.footer[data-v-3b9991aa]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-4a3f8425]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-4a3f8425]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-4a3f8425]{height:100%;width:unset}.overlay-nav[data-v-4a3f8425]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-4a3f8425]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-4a3f8425]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-4a3f8425]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-4a3f8425],.nav .info[data-v-4a3f8425]{display:flex}.tooltip-container[data-v-4a3f8425]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-4a3f8425]{position:relative}.discord img[data-v-4a3f8425]{width:100%;height:100%}.discord-links[data-v-4a3f8425]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-4a3f8425]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-4a3f8425]{left:-10px}.discord-links li[data-v-4a3f8425]{margin-bottom:4px}.discord-links li[data-v-4a3f8425]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-4a3f8425]{right:0}.material-icons[data-v-4a3f8425]{font-size:36px}.material-icons[data-v-4a3f8425]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-4a3f8425]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-4a3f8425]{width:unset;height:25px}.version[data-v-4a3f8425]{color:var(--points)}.version:hover span[data-v-4a3f8425]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-4a3f8425],.overlay-nav>div>a[data-v-4a3f8425]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-4cb9ce0f]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-4cb9ce0f]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-4cb9ce0f]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-4cb9ce0f]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-4cb9ce0f]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}svg[data-v-89b4b00a]{background:#2e3440}svg .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:2648.758056640625px;stroke-dasharray:1324.3790283203125px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) 0s}svg.v-enter-from .svg-elem-1[data-v-89b4b00a],svg.v-leave-to .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:1324.3790283203125px}svg .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:680.4000854492188px;stroke-dasharray:340.2000427246094px;transition:stroke-dashoffset 1s ease-out .4s}svg.v-enter-from .svg-elem-2[data-v-89b4b00a],svg.v-leave-to .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:340.2000427246094px}svg .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:76.21031951904297px;stroke-dasharray:38.105159759521484px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-3[data-v-89b4b00a],svg.v-leave-to .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:38.105159759521484px}svg .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:175.18072509765625px;stroke-dasharray:87.59036254882812px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) .36s}svg.v-enter-from .svg-elem-4[data-v-89b4b00a],svg.v-leave-to .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:87.59036254882812px}svg .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:671.9447021484375px;stroke-dasharray:335.97235107421875px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-5[data-v-89b4b00a],svg.v-leave-to .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:335.97235107421875px}svg .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:173.96141052246094px;stroke-dasharray:86.98070526123047px;transition:stroke-dashoffset 1s ease-out 1s}svg.v-enter-from .svg-elem-6[data-v-89b4b00a],svg.v-leave-to .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:86.98070526123047px}svg .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:172.99151611328125px;stroke-dasharray:86.49575805664062px;transition:stroke-dashoffset 1s ease-out .85s}svg.v-enter-from .svg-elem-7[data-v-89b4b00a],svg.v-leave-to .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:86.49575805664062px}.resize-listener[data-v-c139d80e]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-c139d80e]{position:absolute;top:5px;left:5px;right:5px;bottom:5px;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-2cb1bb79]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.treeNode[data-v-1c0c107d]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-1c0c107d]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-1c0c107d]{pointer-events:none}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.achievement[data-v-58163dab]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.Vue-Toastification__container{z-index:9999;position:fixed;padding:4px;width:600px;box-sizing:border-box;display:flex;min-height:100%;color:#fff;flex-direction:column;pointer-events:none}@media only screen and (min-width : 600px){.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:1em}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:1em;flex-direction:column-reverse}.Vue-Toastification__container.top-left,.Vue-Toastification__container.bottom-left{left:1em}.Vue-Toastification__container.top-left .Vue-Toastification__toast,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast{margin-right:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl{margin-right:unset;margin-left:auto}}.Vue-Toastification__container.top-right,.Vue-Toastification__container.bottom-right{right:1em}.Vue-Toastification__container.top-right .Vue-Toastification__toast,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast{margin-left:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl{margin-left:unset;margin-right:auto}}.Vue-Toastification__container.top-center,.Vue-Toastification__container.bottom-center{left:50%;margin-left:-300px}.Vue-Toastification__container.top-center .Vue-Toastification__toast,.Vue-Toastification__container.bottom-center .Vue-Toastification__toast{margin-left:auto;margin-right:auto}}@media only screen and (max-width : 600px){.Vue-Toastification__container{width:100vw;padding:0;left:0;margin:0}.Vue-Toastification__container .Vue-Toastification__toast{width:100%}.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:0}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:0;flex-direction:column-reverse}}.Vue-Toastification__toast{display:inline-flex;position:relative;max-height:800px;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:22px 24px;border-radius:8px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;justify-content:space-between;font-family:Lato,Helvetica,Roboto,Arial,sans-serif;max-width:600px;min-width:326px;pointer-events:auto;overflow:hidden;transform:translateZ(0);direction:ltr}.Vue-Toastification__toast--rtl{direction:rtl}.Vue-Toastification__toast--default{background-color:#1976d2;color:#fff}.Vue-Toastification__toast--info{background-color:#2196f3;color:#fff}.Vue-Toastification__toast--success{background-color:#4caf50;color:#fff}.Vue-Toastification__toast--error{background-color:#ff5252;color:#fff}.Vue-Toastification__toast--warning{background-color:#ffc107;color:#fff}@media only screen and (max-width : 600px){.Vue-Toastification__toast{border-radius:0;margin-bottom:.5rem}}.Vue-Toastification__toast-body{flex:1;line-height:24px;font-size:16px;word-break:break-word;white-space:pre-wrap}.Vue-Toastification__toast-component-body{flex:1}.Vue-Toastification__toast.disable-transition{animation:none!important}.Vue-Toastification__close-button{font-weight:700;font-size:24px;line-height:24px;background:transparent;outline:none;border:none;padding:0 0 0 10px;cursor:pointer;transition:.3s ease;align-items:center;color:#fff;opacity:.3;transition:visibility 0s,opacity .2s linear}.Vue-Toastification__close-button:hover,.Vue-Toastification__close-button:focus{opacity:1}.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover{opacity:0}.Vue-Toastification__toast--rtl .Vue-Toastification__close-button{padding-left:unset;padding-right:10px}@keyframes scale-x-frames{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Vue-Toastification__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:10000;background-color:#ffffffb3;transform-origin:left;animation:scale-x-frames linear 1 forwards}.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar{right:0;left:unset;transform-origin:right}.Vue-Toastification__icon{margin:auto 18px auto 0;background:transparent;outline:none;border:none;padding:0;transition:.3s ease;align-items:center;width:20px;height:100%}.Vue-Toastification__toast--rtl .Vue-Toastification__icon{margin:auto 0 auto 18px}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes bounceOutRight{40%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(1000px,0,0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Vue-Toastification__bounce-enter-active.top-left,.Vue-Toastification__bounce-enter-active.bottom-left{animation-name:bounceInLeft}.Vue-Toastification__bounce-enter-active.top-right,.Vue-Toastification__bounce-enter-active.bottom-right{animation-name:bounceInRight}.Vue-Toastification__bounce-enter-active.top-center{animation-name:bounceInDown}.Vue-Toastification__bounce-enter-active.bottom-center{animation-name:bounceInUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left{animation-name:bounceOutLeft}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right{animation-name:bounceOutRight}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center{animation-name:bounceOutUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center{animation-name:bounceOutDown}.Vue-Toastification__bounce-leave-active,.Vue-Toastification__bounce-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__bounce-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes fadeOutTop{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}@keyframes fadeOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-50px);opacity:0}}@keyframes fadeOutBottom{0%{transform:translateY(0);opacity:1}to{transform:translateY(50px);opacity:0}}@keyframes fadeOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(50px);opacity:0}}@keyframes fadeInLeft{0%{transform:translate(-50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInRight{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInTop{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeInBottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.Vue-Toastification__fade-enter-active.top-left,.Vue-Toastification__fade-enter-active.bottom-left{animation-name:fadeInLeft}.Vue-Toastification__fade-enter-active.top-right,.Vue-Toastification__fade-enter-active.bottom-right{animation-name:fadeInRight}.Vue-Toastification__fade-enter-active.top-center{animation-name:fadeInTop}.Vue-Toastification__fade-enter-active.bottom-center{animation-name:fadeInBottom}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left{animation-name:fadeOutLeft}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right{animation-name:fadeOutRight}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center{animation-name:fadeOutTop}.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center{animation-name:fadeOutBottom}.Vue-Toastification__fade-leave-active,.Vue-Toastification__fade-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__fade-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes slideInBlurredLeft{0%{transform:translate(-1000px) scaleX(2.5) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredTop{0%{transform:translateY(-1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredRight{0%{transform:translate(1000px) scaleX(2.5) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredBottom{0%{transform:translateY(1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideOutBlurredTop{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 0%;filter:blur(0);opacity:1}to{transform:translateY(-1000px) scaleY(2) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredBottom{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translateY(1000px) scaleY(2) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredLeft{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(-1000px) scaleX(2) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}}@keyframes slideOutBlurredRight{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(1000px) scaleX(2) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}}.Vue-Toastification__slideBlurred-enter-active.top-left,.Vue-Toastification__slideBlurred-enter-active.bottom-left{animation-name:slideInBlurredLeft}.Vue-Toastification__slideBlurred-enter-active.top-right,.Vue-Toastification__slideBlurred-enter-active.bottom-right{animation-name:slideInBlurredRight}.Vue-Toastification__slideBlurred-enter-active.top-center{animation-name:slideInBlurredTop}.Vue-Toastification__slideBlurred-enter-active.bottom-center{animation-name:slideInBlurredBottom}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left{animation-name:slideOutBlurredLeft}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right{animation-name:slideOutBlurredRight}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center{animation-name:slideOutBlurredTop}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center{animation-name:slideOutBlurredBottom}.Vue-Toastification__slideBlurred-leave-active,.Vue-Toastification__slideBlurred-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__slideBlurred-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}.tile[data-v-26ac0e82]{min-height:80px;width:80px;font-size:10px;background-color:var(--layer-color)}.tile>*[data-v-26ac0e82]{pointer-events:none}.clickable[data-v-5e7c90cf]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-5e7c90cf]{min-height:unset}.clickable>*[data-v-5e7c90cf]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.infobox[data-v-338c9154]{position:relative;width:600px;max-width:95%;margin-top:0;text-align:left;border-style:solid;border-width:0px;box-sizing:border-box;border-radius:5px}.infobox.stacked[data-v-338c9154]{border-width:4px}.infobox:not(.stacked)+.infobox[data-v-338c9154]:not(.stacked){margin-top:20px}.infobox[data-v-338c9154]+:not(.infobox){margin-top:10px}.title[data-v-338c9154]{font-size:24px;color:#000;cursor:pointer;border:none;width:auto;text-align:left;padding:4px 4px 4px 30px}.infobox:not(.stacked) .title[data-v-338c9154]{border-top-left-radius:5px;border-top-right-radius:5px}.infobox.stacked+.infobox.stacked[data-v-338c9154]{border-top-left-radius:0;border-top-right-radius:0;margin-top:-5px}.stacked .title[data-v-338c9154]{width:100%}.collapsed:not(.stacked) .title[data-v-338c9154]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background-color:inherit}.toggle[data-v-338c9154]{position:absolute;left:10px}.collapsed .toggle[data-v-338c9154]{transform:rotate(-90deg)}.body[data-v-338c9154]{transition-duration:.5s;border-radius:0 5px 5px}.infobox:not(.stacked) .body[data-v-338c9154]{padding:4px}.body>*[data-v-338c9154]{padding:8px;width:100%;display:block;box-sizing:border-box;border-radius:0 5px 5px;background-color:var(--background)}.not-fullscreen[data-v-8adf21fa],.resize-listener[data-v-8adf21fa]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;pointer-events:none}.sticky[data-v-21495571]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex}.modifier-container{display:flex}.modifier-container:nth-child(2n){background:var(--raised-background)}.modifier-amount{flex-basis:100px;flex-shrink:0}.modifier-description{flex-grow:1}.fullWidth[data-v-1b053b9f]{width:100%}.vr[data-v-5e0a978a]{width:4px;background:var(--outline);height:100%;margin:auto var(--feature-margin)}.bar[data-v-02d0d7b2]{position:relative;display:table}.overlayTextContainer[data-v-02d0d7b2]{position:absolute;border-radius:10px;vertical-align:middle;display:flex;justify-content:center;z-index:3}.overlayText[data-v-02d0d7b2]{z-index:6}.border[data-v-02d0d7b2]{border:2px solid;border-radius:10px;border-color:var(--foreground);overflow:hidden;mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);margin:0}.fill[data-v-02d0d7b2]{position:absolute;background-color:var(--foreground);overflow:hidden;margin-left:-.5px;transition-duration:.2s;z-index:2}.challenge[data-v-4d2947df]{background-color:var(--locked);width:300px;min-height:300px;color:#000;font-size:15px;display:flex;flex-flow:column;align-items:center}.challenge.done[data-v-4d2947df]{background-color:var(--bought)}.challenge button[data-v-4d2947df]{min-height:50px;width:120px;border-radius:var(--border-radius);box-shadow:none!important;background:transparent}.challenge.canStart button[data-v-4d2947df]{cursor:pointer;background-color:var(--layer-color)}.milestone[data-v-f4e8794e]{width:calc(100% - 10px);min-width:120px;padding-left:5px;padding-right:5px;background-color:var(--locked);border-width:4px;border-radius:5px;color:#00000080}.milestone.done[data-v-f4e8794e]{background-color:var(--bought);cursor:default}.milestone[data-v-f4e8794e] .equal-spaced{display:flex;justify-content:center}.milestone[data-v-f4e8794e] .equal-spaced>*{margin:auto}.tabButton[data-v-610a2549]{background-color:transparent;color:var(--foreground);font-size:20px;cursor:pointer;padding:5px 20px;margin:5px;border-radius:5px;border:2px solid;flex-shrink:0;border-color:var(--layer-color)}.tabButton[data-v-610a2549]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}:not(.floating)>.tabButton[data-v-610a2549]{height:50px;margin:0;border-left:none;border-right:none;border-top:none;border-bottom-width:4px;border-radius:0;transform:unset}:not(.floating) .tabButton[data-v-610a2549]:not(.active){border-bottom-color:transparent}.tabButton>*[data-v-610a2549]{pointer-events:none}.tab-family-container[data-v-11575f45]{margin:calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px;position:relative;border:solid 4px;border-color:var(--outline)}.layer-tab>.tab-family-container[data-v-11575f45]:first-child{margin:-4px -11px var(--feature-margin) -11px}.layer-tab>.tab-family-container[data-v-11575f45]:first-child:nth-last-child(3){border-bottom-style:none;border-left-style:none;border-right-style:none;height:calc(100% + 50px)}.modal-body>.tab-family-container[data-v-11575f45]:first-child{margin:calc(10px + var(--feature-margin)) 10px 0 10px;border:none}.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:20px}.modal-body>.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:50px}.tab-family-container[data-v-f18896fc][data-v-11575f45]>:last-child{margin-bottom:20px}.tab-buttons-container[data-v-11575f45]{z-index:4}.tab-buttons-container[data-v-11575f45]:not(.floating){border-bottom:solid 4px;border-color:inherit}:not(.layer-tab):not(.modal-body)>.tab-family-container>.tab-buttons-container[data-v-11575f45]:not(.floating){width:calc(100% + 6px);margin-left:-3px}.tab-buttons-container:not(.floating) .tab-buttons[data-v-11575f45]{text-align:left;margin-bottom:-4px}.tab-buttons-container.floating .tab-buttons[data-v-11575f45]{justify-content:center;margin-top:-25px}.tab-buttons[data-v-11575f45]{margin-bottom:24px;display:flex;flex-flow:wrap;z-index:4}.layer-tab>.tab-family-container:first-child:nth-last-child(3)>.tab-buttons-container>.tab-buttons[data-v-11575f45]{padding-right:60px}.tab-buttons[data-v-11575f45]:not(.floating){text-align:left;border-bottom:inherit;border-width:4px;box-sizing:border-box;height:50px}.modal-body .tab-buttons[data-v-11575f45]{width:100%;margin-left:0;margin-right:0;padding-left:0}.showGoBack>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:70px}:not(.showGoBack)>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:0}.minimizable>.tab-buttons-container[data-v-11575f45]:not(.floating):first-child{padding-right:50px}.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{margin-top:-50px}.tab-buttons-container+*[data-v-11575f45]{margin-top:20px}.upgrade[data-v-7742f590]{min-height:120px;width:120px;font-size:10px}.upgrade>*[data-v-7742f590]{pointer-events:none}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-3de07c06]{padding:10px 0;margin-left:10px}.nan-footer[data-v-3de07c06]{display:flex;justify-content:flex-end}.nan-footer button[data-v-3de07c06]{margin:0 10px}.nan-modal-discord-link[data-v-3de07c06]{display:flex;align-items:center}.nan-modal-discord[data-v-3de07c06]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-9417972e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-9417972e]{position:absolute;min-height:100%;height:100%} diff --git a/assets/index.d5d1e0a2.js b/assets/index.d5d1e0a2.js new file mode 100644 index 0000000..1a495d8 --- /dev/null +++ b/assets/index.d5d1e0a2.js @@ -0,0 +1,593 @@ +const Ay=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}};Ay();const Oy="modulepreload",Sd={},Py="./",sl=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Py}${r}`,r in Sd)return;Sd[r]=!0;const i=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${a}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Oy,i||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),i)return new Promise((s,l)=>{o.addEventListener("load",s),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};function Ml(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Fy="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",My=Ml(Fy),Ly="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Uy=Ml(Ly);function Qp(e){return!!e||e===""}function tt(e){if(Ce(e)){const t={};for(let n=0;n{if(n){const r=n.split(ky);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ze(e){let t="";if(Vt(e))t=e;else if(Ce(e))for(let n=0;npi(n,t))}const Je=e=>Vt(e)?e:e==null?"":Ce(e)||Wt(e)&&(e.toString===tv||!De(e.toString))?JSON.stringify(e,ev,2):String(e),ev=(e,t)=>t&&t.__v_isRef?ev(e,t.value):Io(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:io(t)?{[`Set(${t.size})`]:[...t.values()]}:Wt(t)&&!Ce(t)&&!nv(t)?String(t):t,xt={},Eo=[],ur=()=>{},Vy=()=>!1,$y=/^on[^a-z]/,qa=e=>$y.test(e),af=e=>e.startsWith("onUpdate:"),Xt=Object.assign,sf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jy=Object.prototype.hasOwnProperty,dt=(e,t)=>jy.call(e,t),Ce=Array.isArray,Io=e=>es(e)==="[object Map]",io=e=>es(e)==="[object Set]",Nd=e=>es(e)==="[object Date]",De=e=>typeof e=="function",Vt=e=>typeof e=="string",Oa=e=>typeof e=="symbol",Wt=e=>e!==null&&typeof e=="object",lf=e=>Wt(e)&&De(e.then)&&De(e.catch),tv=Object.prototype.toString,es=e=>tv.call(e),Hy=e=>es(e).slice(8,-1),nv=e=>es(e)==="[object Object]",uf=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pa=Ml(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ul=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zy=/-(\w)/g,Vn=Ul(e=>e.replace(zy,(t,n)=>n?n.toUpperCase():"")),Xy=/\B([A-Z])/g,wr=Ul(e=>e.replace(Xy,"-$1").toLowerCase()),ts=Ul(e=>e.charAt(0).toUpperCase()+e.slice(1)),va=Ul(e=>e?`on${ts(e)}`:""),Mo=(e,t)=>!Object.is(e,t),So=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},vi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Rd;const Wy=()=>Rd||(Rd=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Fn;class cf{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Fn&&(this.parent=Fn,this.index=(Fn.scopes||(Fn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Fn;try{return Fn=this,t()}finally{Fn=n}}}on(){Fn=this}off(){Fn=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},iv=e=>(e.w&mi)>0,ov=e=>(e.n&mi)>0,Jy=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=r)&&s.push(l)});else switch(n!==void 0&&s.push(o.get(n)),t){case"add":Ce(e)?uf(n)&&s.push(o.get("length")):(s.push(o.get(Zi)),Io(e)&&s.push(o.get(ic)));break;case"delete":Ce(e)||(s.push(o.get(Zi)),Io(e)&&s.push(o.get(ic)));break;case"set":Io(e)&&s.push(o.get(Zi));break}if(s.length===1)s[0]&&oc(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);oc(ff(l))}}function oc(e,t){const n=Ce(e)?e:[...e];for(const r of n)r.computed&&Od(r);for(const r of n)r.computed||Od(r)}function Od(e,t){(e!==sr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const t0=Ml("__proto__,__v_isRef,__isVue"),lv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Oa)),n0=Bl(),r0=Bl(!1,!0),i0=Bl(!0),o0=Bl(!0,!0),Pd=a0();function a0(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ot(this);for(let a=0,o=this.length;a{e[t]=function(...n){oo();const r=ot(this)[t].apply(this,n);return ao(),r}}),e}function Bl(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?vv:pv:t?hv:dv).get(r))return r;const o=Ce(r);if(!e&&o&&dt(Pd,i))return Reflect.get(Pd,i,a);const s=Reflect.get(r,i,a);return(Oa(i)?lv.has(i):t0(i))||(e||$n(r,"get",i),t)?s:et(s)?o&&uf(i)?s:s.value:Wt(s)?e?hf(s):Pr(s):s}}const s0=uv(),l0=uv(!0);function uv(e=!1){return function(n,r,i,a){let o=n[r];if(Lo(o)&&et(o)&&!et(i))return!1;if(!e&&!Lo(i)&&(ul(i)||(i=ot(i),o=ot(o)),!Ce(n)&&et(o)&&!et(i)))return o.value=i,!0;const s=Ce(n)&&uf(r)?Number(r)e,kl=e=>Reflect.getPrototypeOf(e);function ps(e,t,n=!1,r=!1){e=e.__v_raw;const i=ot(e),a=ot(t);n||(t!==a&&$n(i,"get",t),$n(i,"get",a));const{has:o}=kl(i),s=r?df:n?mf:Pa;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function vs(e,t=!1){const n=this.__v_raw,r=ot(n),i=ot(e);return t||(e!==i&&$n(r,"has",e),$n(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ms(e,t=!1){return e=e.__v_raw,!t&&$n(ot(e),"iterate",Zi),Reflect.get(e,"size",e)}function Fd(e){e=ot(e);const t=ot(this);return kl(t).has.call(t,e)||(t.add(e),Hr(t,"add",e,e)),this}function Md(e,t){t=ot(t);const n=ot(this),{has:r,get:i}=kl(n);let a=r.call(n,e);a||(e=ot(e),a=r.call(n,e));const o=i.call(n,e);return n.set(e,t),a?Mo(t,o)&&Hr(n,"set",e,t):Hr(n,"add",e,t),this}function Ld(e){const t=ot(this),{has:n,get:r}=kl(t);let i=n.call(t,e);i||(e=ot(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&Hr(t,"delete",e,void 0),a}function Ud(){const e=ot(this),t=e.size!==0,n=e.clear();return t&&Hr(e,"clear",void 0,void 0),n}function gs(e,t){return function(r,i){const a=this,o=a.__v_raw,s=ot(o),l=t?df:e?mf:Pa;return!e&&$n(s,"iterate",Zi),o.forEach((u,c)=>r.call(i,l(u),l(c),a))}}function ys(e,t,n){return function(...r){const i=this.__v_raw,a=ot(i),o=Io(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?df:t?mf:Pa;return!t&&$n(a,"iterate",l?ic:Zi),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Qr(e){return function(...t){return e==="delete"?!1:this}}function p0(){const e={get(a){return ps(this,a)},get size(){return ms(this)},has:vs,add:Fd,set:Md,delete:Ld,clear:Ud,forEach:gs(!1,!1)},t={get(a){return ps(this,a,!1,!0)},get size(){return ms(this)},has:vs,add:Fd,set:Md,delete:Ld,clear:Ud,forEach:gs(!1,!0)},n={get(a){return ps(this,a,!0)},get size(){return ms(this,!0)},has(a){return vs.call(this,a,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:gs(!0,!1)},r={get(a){return ps(this,a,!0,!0)},get size(){return ms(this,!0)},has(a){return vs.call(this,a,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:gs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ys(a,!1,!1),n[a]=ys(a,!0,!1),t[a]=ys(a,!1,!0),r[a]=ys(a,!0,!0)}),[e,n,t,r]}const[v0,m0,g0,y0]=p0();function Dl(e,t){const n=t?e?y0:g0:e?m0:v0;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(dt(n,i)&&i in r?n:r,i,a)}const b0={get:Dl(!1,!1)},x0={get:Dl(!1,!0)},_0={get:Dl(!0,!1)},T0={get:Dl(!0,!0)},dv=new WeakMap,hv=new WeakMap,pv=new WeakMap,vv=new WeakMap;function w0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function C0(e){return e.__v_skip||!Object.isExtensible(e)?0:w0(Hy(e))}function Pr(e){return Lo(e)?e:Gl(e,!1,cv,b0,dv)}function jo(e){return Gl(e,!1,d0,x0,hv)}function hf(e){return Gl(e,!0,fv,_0,pv)}function E0(e){return Gl(e,!0,h0,T0,vv)}function Gl(e,t,n,r,i){if(!Wt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=C0(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function di(e){return Lo(e)?di(e.__v_raw):!!(e&&e.__v_isReactive)}function Lo(e){return!!(e&&e.__v_isReadonly)}function ul(e){return!!(e&&e.__v_isShallow)}function pf(e){return di(e)||Lo(e)}function ot(e){const t=e&&e.__v_raw;return t?ot(t):e}function vf(e){return ll(e,"__v_skip",!0),e}const Pa=e=>Wt(e)?Pr(e):e,mf=e=>Wt(e)?hf(e):e;function gf(e){fi&&sr&&(e=ot(e),sv(e.dep||(e.dep=ff())))}function Vl(e,t){e=ot(e),e.dep&&oc(e.dep)}function et(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return mv(e,!1)}function An(e){return mv(e,!0)}function mv(e,t){return et(e)?e:new I0(e,t)}class I0{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ot(t),this._value=n?t:Pa(t)}get value(){return gf(this),this._value}set value(t){t=this.__v_isShallow?t:ot(t),Mo(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Pa(t),Vl(this))}}function S0(e){Vl(e)}function x(e){return et(e)?e.value:e}const N0={get:(e,t,n)=>x(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return et(i)&&!et(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function yf(e){return di(e)?e:new Proxy(e,N0)}class R0{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>gf(this),()=>Vl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function A0(e){return new R0(e)}function Et(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=Sn(e,n);return t}class O0{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Sn(e,t,n){const r=e[t];return et(r)?r:new O0(e,t,n)}class P0{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ns(t,()=>{this._dirty||(this._dirty=!0,Vl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=ot(this);return gf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function F0(e,t,n=!1){let r,i;const a=De(e);return a?(r=e,i=ur):(r=e.get,i=e.set),new P0(r,i,a||!i,n)}const ma=[];function gv(e,...t){oo();const n=ma.length?ma[ma.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=M0();if(r)Cr(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:a})=>`at <${um(n,a.type)}>`).join(` +`),i]);else{const a=[`[Vue warn]: ${e}`,...t];i.length&&a.push(` +`,...L0(i)),console.warn(...a)}ao()}function M0(){let e=ma[ma.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function L0(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` +`],...U0(n))}),t}function U0({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${um(e.component,e.type,r)}`,a=">"+n;return e.props?[i,...B0(e.props),a]:[i+a]}function B0(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...yv(r,e[r]))}),n.length>3&&t.push(" ..."),t}function yv(e,t,n){return Vt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:et(t)?(t=yv(e,ot(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):De(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ot(t),n?t:[`${e}=`,t])}function Cr(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){so(a,t,n)}return i}function Gn(e,t,n,r){if(De(e)){const a=Cr(e,t,n,r);return a&&lf(a)&&a.catch(o=>{so(o,t,n)}),a}const i=[];for(let a=0;a>>1;Fa(Un[r])Br&&Un.splice(t,1)}function _v(e,t,n,r){Ce(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),xv()}function V0(e){_v(e,aa,ga,mo)}function _f(e){_v(e,ni,ya,go)}function $l(e,t=null){if(ga.length){for(sc=t,aa=[...new Set(ga)],ga.length=0,mo=0;moFa(n)-Fa(r)),go=0;goe.id==null?1/0:e.id;function Tv(e){ac=!1,cl=!0,$l(e),Un.sort((n,r)=>Fa(n)-Fa(r));const t=ur;try{for(Br=0;Bryo.emit(i,...a)),bs=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{wv(a,t)}),setTimeout(()=>{yo||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bs=[])},3e3)):bs=[]}function $0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xt;let i=n;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||xt;d&&(i=n.map(h=>h.trim())),f&&(i=n.map(vi))}let s,l=r[s=va(t)]||r[s=va(Vn(t))];!l&&a&&(l=r[s=va(wr(t))]),l&&Gn(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Gn(u,e,6,i)}}function Cv(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!De(e)){const l=u=>{const c=Cv(u,t,!0);c&&(s=!0,Xt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(r.set(e,null),null):(Ce(a)?a.forEach(l=>o[l]=null):Xt(o,a),r.set(e,o),o)}function jl(e,t){return!e||!qa(t)?!1:(t=t.slice(2).replace(/Once$/,""),dt(e,t[0].toLowerCase()+t.slice(1))||dt(e,wr(t))||dt(e,t))}let mn=null,Hl=null;function Ma(e){const t=mn;return mn=e,Hl=e&&e.type.__scopeId||null,t}function hr(e){Hl=e}function pr(){Hl=null}const j0=e=>Pe;function Pe(e,t=mn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&pc(-1);const a=Ma(t),o=e(...i);return Ma(a),r._d&&pc(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function Ys(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let g,y;const m=Ma(e);try{if(n.shapeFlag&4){const T=i||r;g=Ln(c.call(T,T,f,a,h,d,p)),y=l}else{const T=t;g=Ln(T.length>1?T(a,{attrs:l,slots:s,emit:u}):T(a,null)),y=t.props?l:z0(l)}}catch(T){xa.length=0,so(T,e,1),g=C(yn)}let b=g;if(y&&v!==!1){const T=Object.keys(y),{shapeFlag:S}=b;T.length&&S&7&&(o&&T.some(af)&&(y=X0(y,o)),b=Ar(b,y))}return n.dirs&&(b=Ar(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Ma(m),g}function H0(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||qa(n))&&((t||(t={}))[n]=e[n]);return t},X0=(e,t)=>{const n={};for(const r in e)(!af(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function W0(e,t,n){const{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Bd(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense,K0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,o,s,l,u){e==null?Z0(t,n,r,i,a,o,s,l,u):J0(e,t,n,r,i,o,s,l,u)},hydrate:Q0,create:wf,normalize:q0},Y0=K0;function La(e,t){const n=e.props&&e.props[t];De(n)&&n()}function Z0(e,t,n,r,i,a,o,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=wf(e,i,r,t,f,n,a,o,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,a,o),d.deps>0?(La(e,"onPending"),La(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,a,o),No(d,e.ssFallback)):d.resolve()}function J0(e,t,n,r,i,a,o,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:g,isHydrating:y}=f;if(v)f.pendingBranch=d,yr(d,v)?(l(v,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0?f.resolve():g&&(l(p,h,n,r,i,null,a,o,s),No(f,h))):(f.pendingId++,y?(f.isHydrating=!1,f.activeBranch=v):u(v,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0?f.resolve():(l(p,h,n,r,i,null,a,o,s),No(f,h))):p&&yr(d,p)?(l(p,d,n,r,i,f,a,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0&&f.resolve()));else if(p&&yr(d,p))l(p,d,n,r,i,f,a,o,s),No(f,d);else if(La(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,i,f,a,o,s),f.deps<=0)f.resolve();else{const{timeout:m,pendingId:b}=f;m>0?setTimeout(()=>{f.pendingId===b&&f.fallback(h)},m):m===0&&f.fallback(h)}}function wf(e,t,n,r,i,a,o,s,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:g}}=u,y=vi(e.props&&e.props.timeout),m={vnode:e,parent:t,parentComponent:n,isSVG:o,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(b=!1){const{vnode:T,activeBranch:S,pendingBranch:w,pendingId:N,effects:I,parentComponent:R,container:U}=m;if(m.isHydrating)m.isHydrating=!1;else if(!b){const j=S&&w.transition&&w.transition.mode==="out-in";j&&(S.transition.afterLeave=()=>{N===m.pendingId&&d(w,U,B,0)});let{anchor:B}=m;S&&(B=p(S),h(S,R,m,!0)),j||d(w,U,B,0)}No(m,w),m.pendingBranch=null,m.isInFallback=!1;let $=m.parent,z=!1;for(;$;){if($.pendingBranch){$.effects.push(...I),z=!0;break}$=$.parent}z||_f(I),m.effects=[],La(T,"onResolve")},fallback(b){if(!m.pendingBranch)return;const{vnode:T,activeBranch:S,parentComponent:w,container:N,isSVG:I}=m;La(T,"onFallback");const R=p(S),U=()=>{!m.isInFallback||(f(null,b,N,R,w,null,I,s,l),No(m,b))},$=b.transition&&b.transition.mode==="out-in";$&&(S.transition.afterLeave=U),m.isInFallback=!0,h(S,w,null,!0),$||U()},move(b,T,S){m.activeBranch&&d(m.activeBranch,b,T,S),m.container=b},next(){return m.activeBranch&&p(m.activeBranch)},registerDep(b,T){const S=!!m.pendingBranch;S&&m.deps++;const w=b.vnode.el;b.asyncDep.catch(N=>{so(N,b,0)}).then(N=>{if(b.isUnmounted||m.isUnmounted||m.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:I}=b;vc(b,N,!1),w&&(I.el=w);const R=!w&&b.subTree.el;T(b,I,v(w||b.subTree.el),w?null:p(b.subTree),m,o,l),R&&g(R),Tf(b,I.el),S&&--m.deps===0&&m.resolve()})},unmount(b,T){m.isUnmounted=!0,m.activeBranch&&h(m.activeBranch,n,b,T),m.pendingBranch&&h(m.pendingBranch,n,b,T)}};return m}function Q0(e,t,n,r,i,a,o,s,l){const u=t.suspense=wf(t,r,n,e.parentNode,document.createElement("div"),null,i,a,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,a,o);return u.deps===0&&u.resolve(),c}function q0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=kd(r?n.default:n),e.ssFallback=r?kd(n.fallback):C(yn)}function kd(e){let t;if(De(e)){const n=no&&e._c;n&&(e._d=!1,M()),e=e(),n&&(e._d=!0,t=Nn,em())}return Ce(e)&&(e=H0(e)),e=Ln(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Iv(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):_f(e)}function No(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Tf(r,i))}function Hi(e,t){if(on){let n=on.provides;const r=on.parent&&on.parent.provides;r===n&&(n=on.provides=Object.create(r)),n[e]=t}}function Kn(e,t,n=!1){const r=on||mn;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&De(t)?t.call(r.proxy):t}}function zt(e,t){return rs(e,null,t)}function Sv(e,t){return rs(e,null,{flush:"post"})}function eb(e,t){return rs(e,null,{flush:"sync"})}const Dd={};function Dt(e,t,n){return rs(e,t,n)}function rs(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:o}=xt){const s=on;let l,u=!1,c=!1;if(et(e)?(l=()=>e.value,u=ul(e)):di(e)?(l=()=>e,r=!0):Ce(e)?(c=!0,u=e.some(y=>di(y)||ul(y)),l=()=>e.map(y=>{if(et(y))return y.value;if(di(y))return zi(y);if(De(y))return Cr(y,s,2)})):De(e)?t?l=()=>Cr(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),Gn(e,s,3,[d])}:l=ur,t&&r){const y=l;l=()=>zi(y())}let f,d=y=>{f=g.onStop=()=>{Cr(y,s,4)}};if(ko)return d=ur,t?n&&Gn(t,s,3,[l(),c?[]:void 0,d]):l(),ur;let h=c?[]:Dd;const p=()=>{if(!!g.active)if(t){const y=g.run();(r||u||(c?y.some((m,b)=>Mo(m,h[b])):Mo(y,h)))&&(f&&f(),Gn(t,s,3,[y,h===Dd?void 0:h,d]),h=y)}else g.run()};p.allowRecurse=!!t;let v;i==="sync"?v=p:i==="post"?v=()=>fn(p,s&&s.suspense):v=()=>V0(p);const g=new ns(l,v);return t?n?p():h=g.run():i==="post"?fn(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&sf(s.scope.effects,g)}}function tb(e,t,n){const r=this.proxy,i=Vt(e)?e.includes(".")?Nv(r,e):()=>r[e]:e.bind(r,r);let a;De(t)?a=t:(a=t.handler,n=t);const o=on;gi(this);const s=rs(i,a.bind(r),n);return o?gi(o):hi(),s}function Nv(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{zi(n,t)});else if(nv(e))for(const n in e)zi(e[n],t);return e}function Cf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vr(()=>{e.isMounted=!0}),as(()=>{e.isUnmounting=!0}),e}const zn=[Function,Array],nb={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zn,onEnter:zn,onAfterEnter:zn,onEnterCancelled:zn,onBeforeLeave:zn,onLeave:zn,onAfterLeave:zn,onLeaveCancelled:zn,onBeforeAppear:zn,onAppear:zn,onAfterAppear:zn,onAppearCancelled:zn},setup(e,{slots:t}){const n=Fr(),r=Cf();let i;return()=>{const a=t.default&&zl(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==yn){o=v;break}}const s=ot(e),{mode:l}=s;if(r.isLeaving)return fu(o);const u=Gd(o);if(!u)return fu(o);const c=Uo(u,s,r,n);to(u,c);const f=n.subTree,d=f&&Gd(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,h=!0)}if(d&&d.type!==yn&&(!yr(u,d)||h)){const v=Uo(d,s,r,n);if(to(d,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update()},fu(o);l==="in-out"&&u.type!==yn&&(v.delayLeave=(g,y,m)=>{const b=Rv(r,d);b[String(d.key)]=d,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},Ef=nb;function Rv(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Uo(e,t,n,r){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=t,b=String(e.key),T=Rv(n,e),S=(I,R)=>{I&&Gn(I,r,9,R)},w=(I,R)=>{const U=R[1];S(I,R),Ce(I)?I.every($=>$.length<=1)&&U():I.length<=1&&U()},N={mode:a,persisted:o,beforeEnter(I){let R=s;if(!n.isMounted)if(i)R=v||s;else return;I._leaveCb&&I._leaveCb(!0);const U=T[b];U&&yr(e,U)&&U.el._leaveCb&&U.el._leaveCb(),S(R,[I])},enter(I){let R=l,U=u,$=c;if(!n.isMounted)if(i)R=g||l,U=y||u,$=m||c;else return;let z=!1;const j=I._enterCb=B=>{z||(z=!0,B?S($,[I]):S(U,[I]),N.delayedLeave&&N.delayedLeave(),I._enterCb=void 0)};R?w(R,[I,j]):j()},leave(I,R){const U=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return R();S(f,[I]);let $=!1;const z=I._leaveCb=j=>{$||($=!0,R(),j?S(p,[I]):S(h,[I]),I._leaveCb=void 0,T[U]===e&&delete T[U])};T[U]=e,d?w(d,[I,z]):z()},clone(I){return Uo(I,t,n,r)}};return N}function fu(e){if(is(e))return e=Ar(e),e.children=null,e}function Gd(e){return is(e)?e.children?e.children[0]:void 0:e}function to(e,t){e.shapeFlag&6&&e.component?to(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zl(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader;function rb(e){De(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,g)=>{s(p,()=>v(f()),()=>g(p),c+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Ie({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=on;if(u)return()=>du(u,h);const p=m=>{l=null,so(m,h,13,!r)};if(o&&h.suspense||ko)return d().then(m=>()=>du(m,h)).catch(m=>(p(m),()=>r?C(r,{error:m}):null));const v=Te(!1),g=Te(),y=Te(!!i);return i&&setTimeout(()=>{y.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!g.value){const m=new Error(`Async component timed out after ${a}ms.`);p(m),g.value=m}},a),d().then(()=>{v.value=!0,h.parent&&is(h.parent.vnode)&&xf(h.parent.update)}).catch(m=>{p(m),g.value=m}),()=>{if(v.value&&u)return du(u,h);if(g.value&&r)return C(r,{error:g.value});if(n&&!y.value)return C(n)}}})}function du(e,{vnode:{ref:t,props:n,children:r,shapeFlag:i},parent:a}){const o=C(e,n,r);return o.ref=t,o}const is=e=>e.type.__isKeepAlive,ib={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Fr(),r=n.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const i=new Map,a=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(m,b,T,S,w)=>{const N=m.component;u(m,b,T,0,s),l(N.vnode,m,b,T,N,s,S,m.slotScopeIds,w),fn(()=>{N.isDeactivated=!1,N.a&&So(N.a);const I=m.props&&m.props.onVnodeMounted;I&&In(I,N.parent,m)},s)},r.deactivate=m=>{const b=m.component;u(m,d,null,1,s),fn(()=>{b.da&&So(b.da);const T=m.props&&m.props.onVnodeUnmounted;T&&In(T,b.parent,m),b.isDeactivated=!0},s)};function h(m){hu(m),c(m,n,s,!0)}function p(m){i.forEach((b,T)=>{const S=ml(b.type);S&&(!m||!m(S))&&v(T)})}function v(m){const b=i.get(m);!o||b.type!==o.type?h(b):o&&hu(o),i.delete(m),a.delete(m)}Dt(()=>[e.include,e.exclude],([m,b])=>{m&&p(T=>sa(m,T)),b&&p(T=>!sa(b,T))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&i.set(g,pu(n.subTree))};return vr(y),os(y),as(()=>{i.forEach(m=>{const{subTree:b,suspense:T}=n,S=pu(b);if(m.type===S.type){hu(S);const w=S.component.da;w&&fn(w,T);return}h(m)})}),()=>{if(g=null,!t.default)return null;const m=t.default(),b=m[0];if(m.length>1)return o=null,m;if(!fr(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let T=pu(b);const S=T.type,w=ml(Ji(T)?T.type.__asyncResolved||{}:S),{include:N,exclude:I,max:R}=e;if(N&&(!w||!sa(N,w))||I&&w&&sa(I,w))return o=T,b;const U=T.key==null?S:T.key,$=i.get(U);return T.el&&(T=Ar(T),b.shapeFlag&128&&(b.ssContent=T)),g=U,$?(T.el=$.el,T.component=$.component,T.transition&&to(T,T.transition),T.shapeFlag|=512,a.delete(U),a.add(U)):(a.add(U),R&&a.size>parseInt(R,10)&&v(a.values().next().value)),T.shapeFlag|=256,o=T,Ev(b.type)?b:T}}},ob=ib;function sa(e,t){return Ce(e)?e.some(n=>sa(n,t)):Vt(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Av(e,t){Pv(e,"a",t)}function Ov(e,t){Pv(e,"da",t)}function Pv(e,t,n=on){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Xl(t,r,n),n){let i=n.parent;for(;i&&i.parent;)is(i.parent.vnode)&&ab(r,t,n,i),i=i.parent}}function ab(e,t,n,r){const i=Xl(t,e,r,!0);Ho(()=>{sf(r[t],i)},n)}function hu(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function pu(e){return e.shapeFlag&128?e.ssContent:e}function Xl(e,t,n=on,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;oo(),gi(n);const s=Gn(t,n,e,o);return hi(),ao(),s});return r?i.unshift(a):i.push(a),a}}const Wr=e=>(t,n=on)=>(!ko||e==="sp")&&Xl(e,t,n),Fv=Wr("bm"),vr=Wr("m"),Mv=Wr("bu"),os=Wr("u"),as=Wr("bum"),Ho=Wr("um"),Lv=Wr("sp"),Uv=Wr("rtg"),Bv=Wr("rtc");function kv(e,t=on){Xl("ec",e,t)}function zo(e,t){const n=mn;if(n===null)return e;const r=Kl(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;sfr(t)?!(t.type===yn||t.type===Oe&&!Gv(t.children)):!0)?e:null}function Vv(e){const t={};for(const n in e)t[va(n)]=e[n];return t}const lc=e=>e?om(e)?Kl(e)||e.proxy:lc(e.parent):null,dl=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lc(e.parent),$root:e=>lc(e.root),$emit:e=>e.emit,$options:e=>jv(e),$forceUpdate:e=>e.f||(e.f=()=>xf(e.update)),$nextTick:e=>e.n||(e.n=tn.bind(e.proxy)),$watch:e=>tb.bind(e)}),uc={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(r!==xt&&dt(r,t))return o[t]=1,r[t];if(i!==xt&&dt(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&dt(u,t))return o[t]=3,a[t];if(n!==xt&&dt(n,t))return o[t]=4,n[t];cc&&(o[t]=0)}}const c=dl[t];let f,d;if(c)return t==="$attrs"&&$n(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==xt&&dt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,dt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return i!==xt&&dt(i,t)?(i[t]=n,!0):r!==xt&&dt(r,t)?(r[t]=n,!0):dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},o){let s;return!!n[o]||e!==xt&&dt(e,o)||t!==xt&&dt(t,o)||(s=a[0])&&dt(s,o)||dt(r,o)||dt(dl,o)||dt(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},cb=Xt({},uc,{get(e,t){if(t!==Symbol.unscopables)return uc.get(e,t,e)},has(e,t){return t[0]!=="_"&&!My(t)}});let cc=!0;function fb(e){const t=jv(e),n=e.proxy,r=e.ctx;cc=!1,t.beforeCreate&&$d(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:b,unmounted:T,render:S,renderTracked:w,renderTriggered:N,errorCaptured:I,serverPrefetch:R,expose:U,inheritAttrs:$,components:z,directives:j,filters:B}=t;if(u&&db(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(const oe in o){const me=o[oe];De(me)&&(r[oe]=me.bind(n))}if(i){const oe=i.call(n,n);Wt(oe)&&(e.data=Pr(oe))}if(cc=!0,a)for(const oe in a){const me=a[oe],Ke=De(me)?me.bind(n,n):De(me.get)?me.get.bind(n,n):ur,re=!De(me)&&De(me.set)?me.set.bind(n):ur,de=J({get:Ke,set:re});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>de.value,set:ye=>de.value=ye})}if(s)for(const oe in s)$v(s[oe],r,n,oe);if(l){const oe=De(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(me=>{Hi(me,oe[me])})}c&&$d(c,e,"c");function Y(oe,me){Ce(me)?me.forEach(Ke=>oe(Ke.bind(n))):me&&oe(me.bind(n))}if(Y(Fv,f),Y(vr,d),Y(Mv,h),Y(os,p),Y(Av,v),Y(Ov,g),Y(kv,I),Y(Bv,w),Y(Uv,N),Y(as,m),Y(Ho,T),Y(Lv,R),Ce(U))if(U.length){const oe=e.exposed||(e.exposed={});U.forEach(me=>{Object.defineProperty(oe,me,{get:()=>n[me],set:Ke=>n[me]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===ur&&(e.render=S),$!=null&&(e.inheritAttrs=$),z&&(e.components=z),j&&(e.directives=j)}function db(e,t,n=ur,r=!1){Ce(e)&&(e=fc(e));for(const i in e){const a=e[i];let o;Wt(a)?"default"in a?o=Kn(a.from||i,a.default,!0):o=Kn(a.from||i):o=Kn(a),et(o)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function $d(e,t,n){Gn(Ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $v(e,t,n,r){const i=r.includes(".")?Nv(n,r):()=>n[r];if(Vt(e)){const a=t[e];De(a)&&Dt(i,a)}else if(De(e))Dt(i,e.bind(n));else if(Wt(e))if(Ce(e))e.forEach(a=>$v(a,t,n,r));else{const a=De(e.handler)?e.handler.bind(n):t[e.handler];De(a)&&Dt(i,a,e)}}function jv(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>hl(l,u,o,!0)),hl(l,t,o)),a.set(t,l),l}function hl(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&hl(e,a,n,!0),i&&i.forEach(o=>hl(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=hb[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const hb={data:jd,props:Mi,emits:Mi,methods:Mi,computed:Mi,beforeCreate:bn,created:bn,beforeMount:bn,mounted:bn,beforeUpdate:bn,updated:bn,beforeDestroy:bn,beforeUnmount:bn,destroyed:bn,unmounted:bn,activated:bn,deactivated:bn,errorCaptured:bn,serverPrefetch:bn,components:Mi,directives:Mi,watch:vb,provide:jd,inject:pb};function jd(e,t){return t?e?function(){return Xt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function pb(e,t){return Mi(fc(e),fc(t))}function fc(e){if(Ce(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=zv(f,t,!0);Xt(o,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return r.set(e,Eo),Eo;if(Ce(a))for(let c=0;c-1,h[1]=v<0||p-1||dt(h,"default"))&&s.push(f)}}}const u=[o,s];return r.set(e,u),u}function Hd(e){return e[0]!=="$"}function zd(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Xd(e,t){return zd(e)===zd(t)}function Wd(e,t){return Ce(t)?t.findIndex(n=>Xd(n,e)):De(t)&&Xd(t,e)?0:-1}const Xv=e=>e[0]==="_"||e==="$stable",Nf=e=>Ce(e)?e.map(Ln):[Ln(e)],yb=(e,t,n)=>{if(t._n)return t;const r=Pe((...i)=>Nf(t(...i)),n);return r._c=!1,r},Wv=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Xv(i))continue;const a=e[i];if(De(a))t[i]=yb(i,a,r);else if(a!=null){const o=Nf(a);t[i]=()=>o}}},Kv=(e,t)=>{const n=Nf(t);e.slots.default=()=>n},bb=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ot(t),ll(t,"_",n)):Wv(t,e.slots={})}else e.slots={},t&&Kv(e,t);ll(e.slots,Wl,1)},xb=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,o=xt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(Xt(i,t),!n&&s===1&&delete i._):(a=!t.$stable,Wv(t,i)),o=t}else t&&(Kv(e,t),o={default:1});if(a)for(const s in i)!Xv(s)&&!(s in o)&&delete i[s]};function Yv(){return{app:null,config:{isNativeTag:Vy,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _b=0;function Tb(e,t){return function(r,i=null){De(r)||(r=Object.assign({},r)),i!=null&&!Wt(i)&&(i=null);const a=Yv(),o=new Set;let s=!1;const l=a.app={_uid:_b++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:pm,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&De(u.install)?(o.add(u),u.install(l,...c)):De(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,f){if(!s){const d=C(r,i);return d.appContext=a,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,Kl(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l}};return l}}function pl(e,t,n,r,i=!1){if(Ce(e)){e.forEach((d,h)=>pl(d,t&&(Ce(t)?t[h]:t),n,r,i));return}if(Ji(r)&&!i)return;const a=r.shapeFlag&4?Kl(r.component)||r.component.proxy:r.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===xt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Vt(u)?(c[u]=null,dt(f,u)&&(f[u]=null)):et(u)&&(u.value=null)),De(l))Cr(l,s,12,[o,c]);else{const d=Vt(l),h=et(l);if(d||h){const p=()=>{if(e.f){const v=d?c[l]:l.value;i?Ce(v)&&sf(v,a):Ce(v)?v.includes(a)||v.push(a):d?(c[l]=[a],dt(f,l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,dt(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,fn(p,n)):p()}}}let qr=!1;const xs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",_s=e=>e.nodeType===8;function wb(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(y,m)=>{if(!m.hasChildNodes()){n(null,y,m),fl(),m._vnode=y;return}qr=!1,f(m.firstChild,y,null,null,null),fl(),m._vnode=y,qr&&console.error("Hydration completed but contains mismatches.")},f=(y,m,b,T,S,w=!1)=>{const N=_s(y)&&y.data==="[",I=()=>v(y,m,b,T,S,N),{type:R,ref:U,shapeFlag:$,patchFlag:z}=m,j=y.nodeType;m.el=y,z===-2&&(w=!1,m.dynamicChildren=null);let B=null;switch(R){case Bo:j!==3?m.children===""?(l(m.el=i(""),o(y),y),B=y):B=I():(y.data!==m.children&&(qr=!0,y.data=m.children),B=a(y));break;case yn:j!==8||N?B=I():B=a(y);break;case Qi:if(j!==1&&j!==3)B=I();else{B=y;const he=!m.children.length;for(let Y=0;Y{w=w||!!m.dynamicChildren;const{type:N,props:I,patchFlag:R,shapeFlag:U,dirs:$}=m,z=N==="input"&&$||N==="option";if(z||R!==-1){if($&&mr(m,null,b,"created"),I)if(z||!w||R&48)for(const B in I)(z&&B.endsWith("value")||qa(B)&&!pa(B))&&r(y,B,null,I[B],!1,void 0,b);else I.onClick&&r(y,"onClick",null,I.onClick,!1,void 0,b);let j;if((j=I&&I.onVnodeBeforeMount)&&In(j,b,m),$&&mr(m,null,b,"beforeMount"),((j=I&&I.onVnodeMounted)||$)&&Iv(()=>{j&&In(j,b,m),$&&mr(m,null,b,"mounted")},T),U&16&&!(I&&(I.innerHTML||I.textContent))){let B=h(y.firstChild,m,y,b,T,S,w);for(;B;){qr=!0;const he=B;B=B.nextSibling,s(he)}}else U&8&&y.textContent!==m.children&&(qr=!0,y.textContent=m.children)}return y.nextSibling},h=(y,m,b,T,S,w,N)=>{N=N||!!m.dynamicChildren;const I=m.children,R=I.length;for(let U=0;U{const{slotScopeIds:N}=m;N&&(S=S?S.concat(N):N);const I=o(y),R=h(a(y),m,I,b,T,S,w);return R&&_s(R)&&R.data==="]"?a(m.anchor=R):(qr=!0,l(m.anchor=u("]"),I,R),R)},v=(y,m,b,T,S,w)=>{if(qr=!0,m.el=null,w){const R=g(y);for(;;){const U=a(y);if(U&&U!==R)s(U);else break}}const N=a(y),I=o(y);return s(y),n(null,m,I,N,b,T,xs(I),S),N},g=y=>{let m=0;for(;y;)if(y=a(y),y&&_s(y)&&(y.data==="["&&m++,y.data==="]")){if(m===0)return a(y);m--}return y};return[c,f]}const fn=Iv;function Zv(e){return Qv(e)}function Jv(e){return Qv(e,wb)}function Qv(e,t){const n=Wy();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ur,cloneNode:p,insertStaticContent:v}=e,g=(E,A,V,K=null,Z=null,ae=null,pe=!1,ne=null,se=!!A.dynamicChildren)=>{if(E===A)return;E&&!yr(E,A)&&(K=Ve(E),Se(E,Z,ae,!0),E=null),A.patchFlag===-2&&(se=!1,A.dynamicChildren=null);const{type:ee,ref:Ne,shapeFlag:be}=A;switch(ee){case Bo:y(E,A,V,K);break;case yn:m(E,A,V,K);break;case Qi:E==null&&b(A,V,K,pe);break;case Oe:j(E,A,V,K,Z,ae,pe,ne,se);break;default:be&1?w(E,A,V,K,Z,ae,pe,ne,se):be&6?B(E,A,V,K,Z,ae,pe,ne,se):(be&64||be&128)&&ee.process(E,A,V,K,Z,ae,pe,ne,se,Ze)}Ne!=null&&Z&&pl(Ne,E&&E.ref,ae,A||E,!A)},y=(E,A,V,K)=>{if(E==null)r(A.el=s(A.children),V,K);else{const Z=A.el=E.el;A.children!==E.children&&u(Z,A.children)}},m=(E,A,V,K)=>{E==null?r(A.el=l(A.children||""),V,K):A.el=E.el},b=(E,A,V,K)=>{[E.el,E.anchor]=v(E.children,A,V,K,E.el,E.anchor)},T=({el:E,anchor:A},V,K)=>{let Z;for(;E&&E!==A;)Z=d(E),r(E,V,K),E=Z;r(A,V,K)},S=({el:E,anchor:A})=>{let V;for(;E&&E!==A;)V=d(E),i(E),E=V;i(A)},w=(E,A,V,K,Z,ae,pe,ne,se)=>{pe=pe||A.type==="svg",E==null?N(A,V,K,Z,ae,pe,ne,se):U(E,A,Z,ae,pe,ne,se)},N=(E,A,V,K,Z,ae,pe,ne)=>{let se,ee;const{type:Ne,props:be,shapeFlag:Re,transition:Le,patchFlag:qe,dirs:ht}=E;if(E.el&&p!==void 0&&qe===-1)se=E.el=p(E.el);else{if(se=E.el=o(E.type,ae,be&&be.is,be),Re&8?c(se,E.children):Re&16&&R(E.children,se,null,K,Z,ae&&Ne!=="foreignObject",pe,ne),ht&&mr(E,null,K,"created"),be){for(const L in be)L!=="value"&&!pa(L)&&a(se,L,null,be[L],ae,E.children,K,Z,ue);"value"in be&&a(se,"value",null,be.value),(ee=be.onVnodeBeforeMount)&&In(ee,K,E)}I(se,E,E.scopeId,pe,K)}ht&&mr(E,null,K,"beforeMount");const F=(!Z||Z&&!Z.pendingBranch)&&Le&&!Le.persisted;F&&Le.beforeEnter(se),r(se,A,V),((ee=be&&be.onVnodeMounted)||F||ht)&&fn(()=>{ee&&In(ee,K,E),F&&Le.enter(se),ht&&mr(E,null,K,"mounted")},Z)},I=(E,A,V,K,Z)=>{if(V&&h(E,V),K)for(let ae=0;ae{for(let ee=se;ee{const ne=A.el=E.el;let{patchFlag:se,dynamicChildren:ee,dirs:Ne}=A;se|=E.patchFlag&16;const be=E.props||xt,Re=A.props||xt;let Le;V&&Ci(V,!1),(Le=Re.onVnodeBeforeUpdate)&&In(Le,V,A,E),Ne&&mr(A,E,V,"beforeUpdate"),V&&Ci(V,!0);const qe=Z&&A.type!=="foreignObject";if(ee?$(E.dynamicChildren,ee,ne,V,K,qe,ae):pe||Ke(E,A,ne,null,V,K,qe,ae,!1),se>0){if(se&16)z(ne,A,be,Re,V,K,Z);else if(se&2&&be.class!==Re.class&&a(ne,"class",null,Re.class,Z),se&4&&a(ne,"style",be.style,Re.style,Z),se&8){const ht=A.dynamicProps;for(let F=0;F{Le&&In(Le,V,A,E),Ne&&mr(A,E,V,"updated")},K)},$=(E,A,V,K,Z,ae,pe)=>{for(let ne=0;ne{if(V!==K){for(const ne in K){if(pa(ne))continue;const se=K[ne],ee=V[ne];se!==ee&&ne!=="value"&&a(E,ne,ee,se,pe,A.children,Z,ae,ue)}if(V!==xt)for(const ne in V)!pa(ne)&&!(ne in K)&&a(E,ne,V[ne],null,pe,A.children,Z,ae,ue);"value"in K&&a(E,"value",V.value,K.value)}},j=(E,A,V,K,Z,ae,pe,ne,se)=>{const ee=A.el=E?E.el:s(""),Ne=A.anchor=E?E.anchor:s("");let{patchFlag:be,dynamicChildren:Re,slotScopeIds:Le}=A;Le&&(ne=ne?ne.concat(Le):Le),E==null?(r(ee,V,K),r(Ne,V,K),R(A.children,V,Ne,Z,ae,pe,ne,se)):be>0&&be&64&&Re&&E.dynamicChildren?($(E.dynamicChildren,Re,V,Z,ae,pe,ne),(A.key!=null||Z&&A===Z.subTree)&&Rf(E,A,!0)):Ke(E,A,V,Ne,Z,ae,pe,ne,se)},B=(E,A,V,K,Z,ae,pe,ne,se)=>{A.slotScopeIds=ne,E==null?A.shapeFlag&512?Z.ctx.activate(A,V,K,pe,se):he(A,V,K,Z,ae,pe,se):Y(E,A,se)},he=(E,A,V,K,Z,ae,pe)=>{const ne=E.component=im(E,K,Z);if(is(E)&&(ne.ctx.renderer=Ze),am(ne),ne.asyncDep){if(Z&&Z.registerDep(ne,oe),!E.el){const se=ne.subTree=C(yn);m(null,se,A,V)}return}oe(ne,E,A,V,Z,ae,pe)},Y=(E,A,V)=>{const K=A.component=E.component;if(W0(E,A,V))if(K.asyncDep&&!K.asyncResolved){me(K,A,V);return}else K.next=A,G0(K.update),K.update();else A.el=E.el,K.vnode=A},oe=(E,A,V,K,Z,ae,pe)=>{const ne=()=>{if(E.isMounted){let{next:Ne,bu:be,u:Re,parent:Le,vnode:qe}=E,ht=Ne,F;Ci(E,!1),Ne?(Ne.el=qe.el,me(E,Ne,pe)):Ne=qe,be&&So(be),(F=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&In(F,Le,Ne,qe),Ci(E,!0);const L=Ys(E),G=E.subTree;E.subTree=L,g(G,L,f(G.el),Ve(G),E,Z,ae),Ne.el=L.el,ht===null&&Tf(E,L.el),Re&&fn(Re,Z),(F=Ne.props&&Ne.props.onVnodeUpdated)&&fn(()=>In(F,Le,Ne,qe),Z)}else{let Ne;const{el:be,props:Re}=A,{bm:Le,m:qe,parent:ht}=E,F=Ji(A);if(Ci(E,!1),Le&&So(Le),!F&&(Ne=Re&&Re.onVnodeBeforeMount)&&In(Ne,ht,A),Ci(E,!0),be&&ut){const L=()=>{E.subTree=Ys(E),ut(be,E.subTree,E,Z,null)};F?A.type.__asyncLoader().then(()=>!E.isUnmounted&&L()):L()}else{const L=E.subTree=Ys(E);g(null,L,V,K,E,Z,ae),A.el=L.el}if(qe&&fn(qe,Z),!F&&(Ne=Re&&Re.onVnodeMounted)){const L=A;fn(()=>In(Ne,ht,L),Z)}(A.shapeFlag&256||ht&&Ji(ht.vnode)&&ht.vnode.shapeFlag&256)&&E.a&&fn(E.a,Z),E.isMounted=!0,A=V=K=null}},se=E.effect=new ns(ne,()=>xf(ee),E.scope),ee=E.update=()=>se.run();ee.id=E.uid,Ci(E,!0),ee()},me=(E,A,V)=>{A.component=E;const K=E.vnode.props;E.vnode=A,E.next=null,gb(E,A.props,K,V),xb(E,A.children,V),oo(),$l(void 0,E.update),ao()},Ke=(E,A,V,K,Z,ae,pe,ne,se=!1)=>{const ee=E&&E.children,Ne=E?E.shapeFlag:0,be=A.children,{patchFlag:Re,shapeFlag:Le}=A;if(Re>0){if(Re&128){de(ee,be,V,K,Z,ae,pe,ne,se);return}else if(Re&256){re(ee,be,V,K,Z,ae,pe,ne,se);return}}Le&8?(Ne&16&&ue(ee,Z,ae),be!==ee&&c(V,be)):Ne&16?Le&16?de(ee,be,V,K,Z,ae,pe,ne,se):ue(ee,Z,ae,!0):(Ne&8&&c(V,""),Le&16&&R(be,V,K,Z,ae,pe,ne,se))},re=(E,A,V,K,Z,ae,pe,ne,se)=>{E=E||Eo,A=A||Eo;const ee=E.length,Ne=A.length,be=Math.min(ee,Ne);let Re;for(Re=0;ReNe?ue(E,Z,ae,!0,!1,be):R(A,V,K,Z,ae,pe,ne,se,be)},de=(E,A,V,K,Z,ae,pe,ne,se)=>{let ee=0;const Ne=A.length;let be=E.length-1,Re=Ne-1;for(;ee<=be&&ee<=Re;){const Le=E[ee],qe=A[ee]=se?ii(A[ee]):Ln(A[ee]);if(yr(Le,qe))g(Le,qe,V,null,Z,ae,pe,ne,se);else break;ee++}for(;ee<=be&&ee<=Re;){const Le=E[be],qe=A[Re]=se?ii(A[Re]):Ln(A[Re]);if(yr(Le,qe))g(Le,qe,V,null,Z,ae,pe,ne,se);else break;be--,Re--}if(ee>be){if(ee<=Re){const Le=Re+1,qe=LeRe)for(;ee<=be;)Se(E[ee],Z,ae,!0),ee++;else{const Le=ee,qe=ee,ht=new Map;for(ee=qe;ee<=Re;ee++){const Ge=A[ee]=se?ii(A[ee]):Ln(A[ee]);Ge.key!=null&&ht.set(Ge.key,ee)}let F,L=0;const G=Re-qe+1;let te=!1,_e=0;const Fe=new Array(G);for(ee=0;ee=G){Se(Ge,Z,ae,!0);continue}let mt;if(Ge.key!=null)mt=ht.get(Ge.key);else for(F=qe;F<=Re;F++)if(Fe[F-qe]===0&&yr(Ge,A[F])){mt=F;break}mt===void 0?Se(Ge,Z,ae,!0):(Fe[mt-qe]=ee+1,mt>=_e?_e=mt:te=!0,g(Ge,A[mt],V,null,Z,ae,pe,ne,se),L++)}const $e=te?Cb(Fe):Eo;for(F=$e.length-1,ee=G-1;ee>=0;ee--){const Ge=qe+ee,mt=A[Ge],Be=Ge+1{const{el:ae,type:pe,transition:ne,children:se,shapeFlag:ee}=E;if(ee&6){ye(E.component.subTree,A,V,K);return}if(ee&128){E.suspense.move(A,V,K);return}if(ee&64){pe.move(E,A,V,Ze);return}if(pe===Oe){r(ae,A,V);for(let be=0;bene.enter(ae),Z);else{const{leave:be,delayLeave:Re,afterLeave:Le}=ne,qe=()=>r(ae,A,V),ht=()=>{be(ae,()=>{qe(),Le&&Le()})};Re?Re(ae,qe,ht):ht()}else r(ae,A,V)},Se=(E,A,V,K=!1,Z=!1)=>{const{type:ae,props:pe,ref:ne,children:se,dynamicChildren:ee,shapeFlag:Ne,patchFlag:be,dirs:Re}=E;if(ne!=null&&pl(ne,null,V,E,!0),Ne&256){A.ctx.deactivate(E);return}const Le=Ne&1&&Re,qe=!Ji(E);let ht;if(qe&&(ht=pe&&pe.onVnodeBeforeUnmount)&&In(ht,A,E),Ne&6)ce(E.component,V,K);else{if(Ne&128){E.suspense.unmount(V,K);return}Le&&mr(E,null,A,"beforeUnmount"),Ne&64?E.type.remove(E,A,V,Z,Ze,K):ee&&(ae!==Oe||be>0&&be&64)?ue(ee,A,V,!1,!0):(ae===Oe&&be&384||!Z&&Ne&16)&&ue(se,A,V),K&&k(E)}(qe&&(ht=pe&&pe.onVnodeUnmounted)||Le)&&fn(()=>{ht&&In(ht,A,E),Le&&mr(E,null,A,"unmounted")},V)},k=E=>{const{type:A,el:V,anchor:K,transition:Z}=E;if(A===Oe){X(V,K);return}if(A===Qi){S(E);return}const ae=()=>{i(V),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(E.shapeFlag&1&&Z&&!Z.persisted){const{leave:pe,delayLeave:ne}=Z,se=()=>pe(V,ae);ne?ne(E.el,ae,se):se()}else ae()},X=(E,A)=>{let V;for(;E!==A;)V=d(E),i(E),E=V;i(A)},ce=(E,A,V)=>{const{bum:K,scope:Z,update:ae,subTree:pe,um:ne}=E;K&&So(K),Z.stop(),ae&&(ae.active=!1,Se(pe,E,A,V)),ne&&fn(ne,A),fn(()=>{E.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ue=(E,A,V,K=!1,Z=!1,ae=0)=>{for(let pe=ae;peE.shapeFlag&6?Ve(E.component.subTree):E.shapeFlag&128?E.suspense.next():d(E.anchor||E.el),ie=(E,A,V)=>{E==null?A._vnode&&Se(A._vnode,null,null,!0):g(A._vnode||null,E,A,null,null,null,V),fl(),A._vnode=E},Ze={p:g,um:Se,m:ye,r:k,mt:he,mc:R,pc:Ke,pbc:$,n:Ve,o:e};let at,ut;return t&&([at,ut]=t(Ze)),{render:ie,hydrate:at,createApp:Tb(ie,at)}}function Ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rf(e,t,n=!1){const r=e.children,i=t.children;if(Ce(r)&&Ce(i))for(let a=0;a>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}const Eb=e=>e.__isTeleport,ba=e=>e&&(e.disabled||e.disabled===""),Kd=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,hc=(e,t)=>{const n=e&&e.to;return Vt(n)?t?t(n):null:n},Ib={__isTeleport:!0,process(e,t,n,r,i,a,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=ba(t.props);let{shapeFlag:m,children:b,dynamicChildren:T}=t;if(e==null){const S=t.el=v(""),w=t.anchor=v("");h(S,n,r),h(w,n,r);const N=t.target=hc(t.props,p),I=t.targetAnchor=v("");N&&(h(I,N),o=o||Kd(N));const R=(U,$)=>{m&16&&c(b,U,$,i,a,o,s,l)};y?R(n,w):N&&R(N,I)}else{t.el=e.el;const S=t.anchor=e.anchor,w=t.target=e.target,N=t.targetAnchor=e.targetAnchor,I=ba(e.props),R=I?n:w,U=I?S:N;if(o=o||Kd(w),T?(d(e.dynamicChildren,T,R,i,a,o,s),Rf(e,t,!0)):l||f(e,t,R,U,i,a,o,s,!1),y)I||Ts(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=hc(t.props,p);$&&Ts(t,$,null,u,0)}else I&&Ts(t,w,N,u,1)}},remove(e,t,n,r,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!ba(d))&&(a(u),s&16))for(let h=0;h0?Nn||Eo:null,em(),no>0&&Nn&&Nn.push(e),e}function W(e,t,n,r,i,a){return tm(P(e,t,n,r,i,a,!0))}function we(e,t,n,r,i){return tm(C(e,t,n,r,i,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function yr(e,t){return e.type===t.type&&e.key===t.key}function Nb(e){}const Wl="__vInternal",nm=({key:e})=>e!=null?e:null,Zs=({ref:e,ref_key:t,ref_for:n})=>e!=null?Vt(e)||et(e)||De(e)?{i:mn,r:e,k:t,f:!!n}:e:null;function P(e,t=null,n=null,r=0,i=null,a=e===Oe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nm(t),ref:t&&Zs(t),scopeId:Hl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(Af(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=Vt(n)?8:16),no>0&&!o&&Nn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Nn.push(l),l}const C=Rb;function Rb(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Dv)&&(e=yn),fr(e)){const s=Ar(e,t,!0);return n&&Af(s,n),no>0&&!a&&Nn&&(s.shapeFlag&6?Nn[Nn.indexOf(e)]=s:Nn.push(s)),s.patchFlag|=-2,s}if(Db(e)&&(e=e.__vccOpts),t){t=rm(t);let{class:s,style:l}=t;s&&!Vt(s)&&(t.class=ze(s)),Wt(l)&&(pf(l)&&!Ce(l)&&(l=Xt({},l)),t.style=tt(l))}const o=Vt(e)?1:Ev(e)?128:Eb(e)?64:Wt(e)?4:De(e)?2:0;return P(e,t,n,r,i,o,a,!0)}function rm(e){return e?pf(e)||Wl in e?Xt({},e):e:null}function Ar(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:o}=e,s=t?un(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&nm(s),ref:t&&t.ref?n&&i?Ce(i)?i.concat(Zs(t)):[i,Zs(t)]:Zs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ar(e.ssContent),ssFallback:e.ssFallback&&Ar(e.ssFallback),el:e.el,anchor:e.anchor}}function le(e=" ",t=0){return C(Bo,null,e,t)}function Ab(e,t){const n=C(Qi,null,e);return n.staticCount=t,n}function ve(e="",t=!1){return t?(M(),we(yn,null,e)):C(yn,null,e)}function Ln(e){return e==null||typeof e=="boolean"?C(yn):Ce(e)?C(Oe,null,e.slice()):typeof e=="object"?ii(e):C(Bo,null,String(e))}function ii(e){return e.el===null||e.memo?e:Ar(e)}function Af(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Af(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Wl in t)?t._ctx=mn:i===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:mn},n=32):(t=String(t),r&64?(n=16,t=[le(t)]):n=8);e.children=t,e.shapeFlag|=n}function un(...e){const t={};for(let n=0;non||mn,gi=e=>{on=e,e.scope.on()},hi=()=>{on&&on.scope.off(),on=null};function om(e){return e.vnode.shapeFlag&4}let ko=!1;function am(e,t=!1){ko=t;const{props:n,children:r}=e.vnode,i=om(e);mb(e,n,i,t),bb(e,r);const a=i?Fb(e,t):void 0;return ko=!1,a}function Fb(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=vf(new Proxy(e.ctx,uc));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?lm(e):null;gi(e),oo();const a=Cr(r,e,0,[e.props,i]);if(ao(),hi(),lf(a)){if(a.then(hi,hi),t)return a.then(o=>{vc(e,o,t)}).catch(o=>{so(o,e,0)});e.asyncDep=a}else vc(e,a,t)}else sm(e,t)}function vc(e,t,n){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Wt(t)&&(e.setupState=yf(t)),sm(e,n)}let vl,mc;function Mb(e){vl=e,mc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,cb))}}const Lb=()=>!vl;function sm(e,t,n){const r=e.type;if(!e.render){if(!t&&vl&&!r.render){const i=r.template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Xt(Xt({isCustomElement:a,delimiters:s},o),l);r.render=vl(i,u)}}e.render=r.render||ur,mc&&mc(e)}gi(e),oo(),fb(e),ao(),hi()}function Ub(e){return new Proxy(e.attrs,{get(t,n){return $n(e,"get","$attrs"),t[n]}})}function lm(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Ub(e))},slots:e.slots,emit:e.emit,expose:t}}function Kl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(yf(vf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dl)return dl[n](e)}}))}const Bb=/(?:^|[-_])(\w)/g,kb=e=>e.replace(Bb,t=>t.toUpperCase()).replace(/[-_]/g,"");function ml(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function um(e,t,n=!1){let r=ml(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=a=>{for(const o in a)if(a[o]===t)return o};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?kb(r):n?"App":"Anonymous"}function Db(e){return De(e)&&"__vccOpts"in e}const J=(e,t)=>F0(e,t,ko);function Gb(){return null}function Vb(){return null}function $b(e){}function jb(e,t){return null}function Hb(){return cm().slots}function zb(){return cm().attrs}function cm(){const e=Fr();return e.setupContext||(e.setupContext=lm(e))}function Xb(e,t){const n=Ce(e)?e.reduce((r,i)=>(r[i]={},r),{}):e;for(const r in t){const i=n[r];i?Ce(i)||De(i)?n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(n[r]={default:t[r]})}return n}function Wb(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Kb(e){const t=Fr();let n=e();return hi(),lf(n)&&(n=n.catch(r=>{throw gi(t),r})),[n,()=>gi(t)]}function fm(e,t,n){const r=arguments.length;return r===2?Wt(t)&&!Ce(t)?fr(t)?C(e,null,[t]):C(e,t):C(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fr(n)&&(n=[n]),C(e,t,n))}const dm=Symbol(""),Yb=()=>{{const e=Kn(dm);return e||gv("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Zb(){}function Jb(e,t,n,r){const i=n[r];if(i&&hm(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a}function hm(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Nn&&Nn.push(e),!0}const pm="3.2.37",Qb={createComponentInstance:im,setupComponent:am,renderComponentRoot:Ys,setCurrentRenderingInstance:Ma,isVNode:fr,normalizeVNode:Ln},qb=Qb,e1=null,t1=null,n1="http://www.w3.org/2000/svg",Vi=typeof document!="undefined"?document:null,Yd=Vi&&Vi.createElement("template"),r1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Vi.createElementNS(n1,e):Vi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Vi.createTextNode(e),createComment:e=>Vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,a){const o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Yd.innerHTML=r?`${e}`:e;const s=Yd.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function i1(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function o1(e,t,n){const r=e.style,i=Vt(n);if(n&&!i){for(const a in n)gc(r,a,n[a]);if(t&&!Vt(t))for(const a in t)n[a]==null&&gc(r,a,"")}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=a)}}const Zd=/\s*!important$/;function gc(e,t,n){if(Ce(n))n.forEach(r=>gc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=a1(e,t);Zd.test(n)?e.setProperty(wr(r),n.replace(Zd,""),"important"):e[r]=n}}const Jd=["Webkit","Moz","ms"],vu={};function a1(e,t){const n=vu[t];if(n)return n;let r=Vn(t);if(r!=="filter"&&r in e)return vu[t]=r;r=ts(r);for(let i=0;i{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let yc=0;const c1=Promise.resolve(),f1=()=>{yc=0},d1=()=>yc||(c1.then(f1),yc=vm());function kr(e,t,n,r){e.addEventListener(t,n,r)}function h1(e,t,n,r){e.removeEventListener(t,n,r)}function p1(e,t,n,r,i=null){const a=e._vei||(e._vei={}),o=a[t];if(r&&o)o.value=r;else{const[s,l]=v1(t);if(r){const u=a[t]=m1(r,i);kr(e,s,u,l)}else o&&(h1(e,s,o,l),a[t]=void 0)}}const qd=/(?:Once|Passive|Capture)$/;function v1(e){let t;if(qd.test(e)){t={};let n;for(;n=e.match(qd);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[wr(e.slice(2)),t]}function m1(e,t){const n=r=>{const i=r.timeStamp||vm();(u1||i>=n.attached-1)&&Gn(g1(r,n.value),t,5,[r])};return n.value=e,n.attached=d1(),n}function g1(e,t){if(Ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const eh=/^on[a-z]/,y1=(e,t,n,r,i=!1,a,o,s,l)=>{t==="class"?i1(e,r,i):t==="style"?o1(e,n,r):qa(t)?af(t)||p1(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):b1(e,t,r,i))?l1(e,t,r,a,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),s1(e,t,r,i))};function b1(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&eh.test(t)&&De(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||eh.test(t)&&Vt(n)?!1:t in e}function mm(e,t){const n=Ie(e);class r extends Yl{constructor(a){super(n,a,t)}}return r.def=n,r}const x1=e=>mm(e,Om),_1=typeof HTMLElement!="undefined"?HTMLElement:class{};class Yl extends _1{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,tn(()=>{this._connected||(xc(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:i,styles:a}=r,o=!Ce(i),s=i?o?Object.keys(i):i:[];let l;if(o)for(const u in this._props){const c=i[u];(c===Number||c&&c.type===Number)&&(this._props[u]=vi(this._props[u]),(l||(l=Object.create(null)))[u]=!0)}this._numberProps=l;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of s.map(Vn))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(c){this._setProp(u,c)}});this._applyStyles(a),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=vi(n)),this._setProp(Vn(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(wr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(wr(t),n+""):n||this.removeAttribute(wr(t))))}_update(){xc(this._createVNode(),this.shadowRoot)}_createVNode(){const t=C(this._def,Xt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(i,...a)=>{this.dispatchEvent(new CustomEvent(i,{detail:a}))};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Yl){n.parent=r._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function T1(e="$style"){{const t=Fr();if(!t)return xt;const n=t.type.__cssModules;if(!n)return xt;const r=n[e];return r||xt}}function w1(e){const t=Fr();if(!t)return;const n=()=>bc(t.subTree,e(t.proxy));Sv(n),vr(()=>{const r=new MutationObserver(n);r.observe(t.subTree.el.parentNode,{childList:!0}),Ho(()=>r.disconnect())})}function bc(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{bc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)th(e.el,t);else if(e.type===Oe)e.children.forEach(n=>bc(n,t));else if(e.type===Qi){let{el:n,anchor:r}=e;for(;n&&(th(n,t),n!==r);)n=n.nextSibling}}function th(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const ei="transition",Wo="animation",Ti=(e,{slots:t})=>fm(Ef,ym(e),t);Ti.displayName="Transition";const gm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},C1=Ti.props=Xt({},Ef.props,gm),Ei=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},nh=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function ym(e){const t={};for(const z in e)z in gm||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=E1(i),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:b,onLeave:T,onLeaveCancelled:S,onBeforeAppear:w=y,onAppear:N=m,onAppearCancelled:I=b}=t,R=(z,j,B)=>{ri(z,j?c:s),ri(z,j?u:o),B&&B()},U=(z,j)=>{z._isLeaving=!1,ri(z,f),ri(z,h),ri(z,d),j&&j()},$=z=>(j,B)=>{const he=z?N:m,Y=()=>R(j,z,B);Ei(he,[j,Y]),rh(()=>{ri(j,z?l:a),Lr(j,z?c:s),nh(he)||ih(j,r,v,Y)})};return Xt(t,{onBeforeEnter(z){Ei(y,[z]),Lr(z,a),Lr(z,o)},onBeforeAppear(z){Ei(w,[z]),Lr(z,l),Lr(z,u)},onEnter:$(!1),onAppear:$(!0),onLeave(z,j){z._isLeaving=!0;const B=()=>U(z,j);Lr(z,f),xm(),Lr(z,d),rh(()=>{!z._isLeaving||(ri(z,f),Lr(z,h),nh(T)||ih(z,r,g,B))}),Ei(T,[z,B])},onEnterCancelled(z){R(z,!1),Ei(b,[z])},onAppearCancelled(z){R(z,!0),Ei(I,[z])},onLeaveCancelled(z){U(z),Ei(S,[z])}})}function E1(e){if(e==null)return null;if(Wt(e))return[mu(e.enter),mu(e.leave)];{const t=mu(e);return[t,t]}}function mu(e){return vi(e)}function Lr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ri(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function rh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let I1=0;function ih(e,t,n,r){const i=e._endId=++I1,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=bm(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[p]||"").split(", "),i=r(ei+"Delay"),a=r(ei+"Duration"),o=oh(i,a),s=r(Wo+"Delay"),l=r(Wo+"Duration"),u=oh(s,l);let c=null,f=0,d=0;t===ei?o>0&&(c=ei,f=o,d=a.length):t===Wo?u>0&&(c=Wo,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?ei:Wo:null,d=c?c===ei?a.length:l.length:0);const h=c===ei&&/\b(transform|all)(,|$)/.test(n[ei+"Property"]);return{type:c,timeout:f,propCount:d,hasTransform:h}}function oh(e,t){for(;e.lengthah(n)+ah(e[r])))}function ah(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function xm(){return document.body.offsetHeight}const _m=new WeakMap,Tm=new WeakMap,S1={name:"TransitionGroup",props:Xt({},C1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Fr(),r=Cf();let i,a;return os(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!O1(i[0].el,n.vnode.el,o))return;i.forEach(N1),i.forEach(R1);const s=i.filter(A1);xm(),s.forEach(l=>{const u=l.el,c=u.style;Lr(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,ri(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=ot(e),s=ym(o);let l=o.tag||Oe;i=a,a=t.default?zl(t.default()):[];for(let u=0;u{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=bm(r);return i.removeChild(r),a}const yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ce(t)?n=>So(t,n):t};function P1(e){e.target.composing=!0}function sh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Do={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=yi(i);const a=r||i.props&&i.props.type==="number";kr(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=vi(s)),e._assign(s)}),n&&kr(e,"change",()=>{e.value=e.value.trim()}),t||(kr(e,"compositionstart",P1),kr(e,"compositionend",sh),kr(e,"change",sh))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e._assign=yi(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&vi(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Zl={deep:!0,created(e,t,n){e._assign=yi(n),kr(e,"change",()=>{const r=e._modelValue,i=Go(e),a=e.checked,o=e._assign;if(Ce(r)){const s=Ll(r,i),l=s!==-1;if(a&&!l)o(r.concat(i));else if(!a&&l){const u=[...r];u.splice(s,1),o(u)}}else if(io(r)){const s=new Set(r);a?s.add(i):s.delete(i),o(s)}else o(Em(e,a))})},mounted:lh,beforeUpdate(e,t,n){e._assign=yi(n),lh(e,t,n)}};function lh(e,{value:t,oldValue:n},r){e._modelValue=t,Ce(t)?e.checked=Ll(t,r.props.value)>-1:io(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=pi(t,Em(e,!0)))}const Of={created(e,{value:t},n){e.checked=pi(t,n.props.value),e._assign=yi(n),kr(e,"change",()=>{e._assign(Go(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=yi(r),t!==n&&(e.checked=pi(t,r.props.value))}},Cm={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=io(t);kr(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?vi(Go(o)):Go(o));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=yi(r)},mounted(e,{value:t}){uh(e,t)},beforeUpdate(e,t,n){e._assign=yi(n)},updated(e,{value:t}){uh(e,t)}};function uh(e,t){const n=e.multiple;if(!(n&&!Ce(t)&&!io(t))){for(let r=0,i=e.options.length;r-1:a.selected=t.has(o);else if(pi(Go(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Go(e){return"_value"in e?e._value:e.value}function Em(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Im={created(e,t,n){ws(e,t,n,null,"created")},mounted(e,t,n){ws(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ws(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ws(e,t,n,r,"updated")}};function Sm(e,t){switch(e){case"SELECT":return Cm;case"TEXTAREA":return Do;default:switch(t){case"checkbox":return Zl;case"radio":return Of;default:return Do}}}function ws(e,t,n,r,i){const o=Sm(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}function F1(){Do.getSSRProps=({value:e})=>({value:e}),Of.getSSRProps=({value:e},t)=>{if(t.props&&pi(t.props.value,e))return{checked:!0}},Zl.getSSRProps=({value:e},t)=>{if(Ce(e)){if(t.props&&Ll(e,t.props.value)>-1)return{checked:!0}}else if(io(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Im.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Sm(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const M1=["ctrl","shift","alt","meta"],L1={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>M1.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=wr(n.key);if(t.some(i=>i===r||U1[i]===r))return e(n)},Jl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ko(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ko(e,!0),r.enter(e)):r.leave(e,()=>{Ko(e,!1)}):Ko(e,t))},beforeUnmount(e,{value:t}){Ko(e,t)}};function Ko(e,t){e.style.display=t?e._vod:"none"}function B1(){Jl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Nm=Xt({patchProp:y1},r1);let _a,ch=!1;function Rm(){return _a||(_a=Zv(Nm))}function Am(){return _a=ch?_a:Jv(Nm),ch=!0,_a}const xc=(...e)=>{Rm().render(...e)},Om=(...e)=>{Am().hydrate(...e)},Pf=(...e)=>{const t=Rm().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Pm(r);if(!i)return;const a=t._component;!De(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},k1=(...e)=>{const t=Am().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Pm(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function Pm(e){return Vt(e)?document.querySelector(e):e}let fh=!1;const D1=()=>{fh||(fh=!0,F1(),B1())},G1=()=>{};var V1=Object.freeze(Object.defineProperty({__proto__:null,compile:G1,EffectScope:cf,ReactiveEffect:ns,customRef:A0,effect:qy,effectScope:Ky,getCurrentScope:Yy,isProxy:pf,isReactive:di,isReadonly:Lo,isRef:et,isShallow:ul,markRaw:vf,onScopeDispose:Zy,proxyRefs:yf,reactive:Pr,readonly:hf,ref:Te,shallowReactive:jo,shallowReadonly:E0,shallowRef:An,stop:e0,toRaw:ot,toRef:Sn,toRefs:Et,triggerRef:S0,unref:x,camelize:Vn,capitalize:ts,normalizeClass:ze,normalizeProps:qp,normalizeStyle:tt,toDisplayString:Je,toHandlerKey:va,BaseTransition:Ef,Comment:yn,Fragment:Oe,KeepAlive:ob,Static:Qi,Suspense:Y0,Teleport:qv,Text:Bo,callWithAsyncErrorHandling:Gn,callWithErrorHandling:Cr,cloneVNode:Ar,compatUtils:t1,computed:J,createBlock:we,createCommentVNode:ve,createElementBlock:W,createElementVNode:P,createHydrationRenderer:Jv,createPropsRestProxy:Wb,createRenderer:Zv,createSlots:ub,createStaticVNode:Ab,createTextVNode:le,createVNode:C,defineAsyncComponent:rb,defineComponent:Ie,defineEmits:Vb,defineExpose:$b,defineProps:Gb,get devtools(){return yo},getCurrentInstance:Fr,getTransitionRawChildren:zl,guardReactiveProps:rm,h:fm,handleError:so,initCustomFormatter:Zb,inject:Kn,isMemoSame:hm,isRuntimeOnly:Lb,isVNode:fr,mergeDefaults:Xb,mergeProps:un,nextTick:tn,onActivated:Av,onBeforeMount:Fv,onBeforeUnmount:as,onBeforeUpdate:Mv,onDeactivated:Ov,onErrorCaptured:kv,onMounted:vr,onRenderTracked:Bv,onRenderTriggered:Uv,onServerPrefetch:Lv,onUnmounted:Ho,onUpdated:os,openBlock:M,popScopeId:pr,provide:Hi,pushScopeId:hr,queuePostFlushCb:_f,registerRuntimeCompiler:Mb,renderList:Rr,renderSlot:Mt,resolveComponent:wt,resolveDirective:lb,resolveDynamicComponent:gt,resolveFilter:e1,resolveTransitionHooks:Uo,setBlockTracking:pc,setDevtoolsHook:wv,setTransitionHooks:to,ssrContextKey:dm,ssrUtils:qb,toHandlers:Vv,transformVNodeArgs:Nb,useAttrs:zb,useSSRContext:Yb,useSlots:Hb,useTransitionState:Cf,version:pm,warn:gv,watch:Dt,watchEffect:zt,watchPostEffect:Sv,watchSyncEffect:eb,withAsyncContext:Kb,withCtx:Pe,withDefaults:jb,withDirectives:zo,withMemo:Jb,withScopeId:j0,Transition:Ti,TransitionGroup:wm,VueElement:Yl,createApp:Pf,createSSRApp:k1,defineCustomElement:mm,defineSSRCustomElement:x1,hydrate:Om,initDirectivesForSSR:D1,render:xc,useCssModule:T1,useCssVars:w1,vModelCheckbox:Zl,vModelDynamic:Im,vModelRadio:Of,vModelSelect:Cm,vModelText:Do,vShow:Jl,withKeys:$i,withModifiers:ln},Symbol.toStringTag,{value:"Module"}));const $1="Profectus Demo",j1="A demo project made in Profectus",H1="profectus-demo",z1="",X1="",W1="",K1="0.0",Y1="Initial Commit",Z1=!0,J1=!1,Q1=2,q1=!0,ex=null,tx="Logo.png",nx=["main","c"],rx=3600,ix=1,ox=!0,ax="base64";var _t={title:$1,description:j1,id:H1,author:z1,discordName:X1,discordLink:W1,versionNumber:K1,versionTitle:Y1,allowGoBack:Z1,defaultShowSmall:J1,defaultDecimalsShown:Q1,useHeader:q1,banner:ex,logo:tx,initialTabs:nx,maxTickLength:rx,offlineLimit:ix,enablePausing:ox,exportEncoding:ax};const gu=17,sx=9e15,lx=Math.log10(9e15),ux=1/9e15,cx=308,fx=-324,dh=5,dx=function(){const e=[];for(let n=fx+1;n<=cx;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Ii=[2,Math.E,3,4,5,6,7,8,9,10],hx=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],px=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]],D=function(t){return O.fromValue_noAlloc(t)},Xe=function(e,t,n){return O.fromComponents(e,t,n)},st=function(t,n,r){return O.fromComponents_noNormalize(t,n,r)},ti=function(t,n){const r=n+1,i=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,r-i))*Math.pow(10,i-r);return parseFloat(a.toFixed(Math.max(r-i,0)))},yu=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},vx=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const r=e*e;let i=e;return n=n+1/(12*i),i=i*r,n=n+1/(360*i),i=i*r,n=n+1/(1260*i),i=i*r,n=n+1/(1680*i),i=i*r,n=n+1/(1188*i),i=i*r,n=n+691/(360360*i),i=i*r,n=n+7/(1092*i),i=i*r,n=n+3617/(122400*i),Math.exp(n)/t},Fm=.5671432904097838,hh=function(e,t=1e-10){let n,r;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Fm;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let i=0;i<100;++i){if(r=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(r-n).5?1:-1;if(Math.random()*20<1)return st(t,0,1);const n=Math.floor(Math.random()*(e+1));let r=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(r=Math.trunc(r));let i=Math.pow(10,r);return Math.random()>.9&&(i=Math.trunc(i)),Xe(t,n,i)}static affordGeometricSeries_core(e,t,n,r){const i=t.mul(n.pow(r));return Q.floor(e.div(i).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,r){return t.mul(n.pow(r)).mul(Q.sub(1,n.pow(e))).div(Q.sub(1,n))}static affordArithmeticSeries_core(e,t,n,r){const a=t.add(r.mul(n)).sub(n.div(2)),o=a.pow(2);return a.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,r){const i=t.add(r.mul(n));return e.div(2).mul(i.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=sx)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){e=e.replace(",","");const t=e.split("^^^");if(t.length===2){const d=parseFloat(t[0]),h=parseFloat(t[1]),p=t[1].split(";");let v=1;if(p.length===2&&(v=parseFloat(p[1]),isFinite(v)||(v=1)),isFinite(d)&&isFinite(h)){const g=Q.pentate(d,h,v);return this.sign=g.sign,this.layer=g.layer,this.mag=g.mag,this}}const n=e.split("^^");if(n.length===2){const d=parseFloat(n[0]),h=parseFloat(n[1]),p=n[1].split(";");let v=1;if(p.length===2&&(v=parseFloat(p[1]),isFinite(v)||(v=1)),isFinite(d)&&isFinite(h)){const g=Q.tetrate(d,h,v);return this.sign=g.sign,this.layer=g.layer,this.mag=g.mag,this}}const r=e.split("^");if(r.length===2){const d=parseFloat(r[0]),h=parseFloat(r[1]);if(isFinite(d)&&isFinite(h)){const p=Q.pow(d,h);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,this}}e=e.trim().toLowerCase();let i,a,o=e.split("pt");if(o.length===2){i=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let d=parseFloat(o[1]);if(isFinite(d)||(d=1),isFinite(i)&&isFinite(a)){const h=Q.tetrate(i,a,d);return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,this}}if(o=e.split("p"),o.length===2){i=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let d=parseFloat(o[1]);if(isFinite(d)||(d=1),isFinite(i)&&isFinite(a)){const h=Q.tetrate(i,a,d);return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,this}}const s=e.split("e"),l=s.length-1;if(l===0){const d=parseFloat(e);if(isFinite(d))return this.fromNumber(d)}else if(l===1){const d=parseFloat(e);if(isFinite(d)&&d!==0)return this.fromNumber(d)}const u=e.split("e^");if(u.length===2){this.sign=1,u[0].charAt(0)=="-"&&(this.sign=-1);let d="";for(let h=0;h=43&&p<=57||p===101)d+=u[1].charAt(h);else return this.layer=parseFloat(d),this.mag=parseFloat(u[1].substr(h+1)),this.normalize(),this}}if(l<1)return this.sign=0,this.layer=0,this.mag=0,this;const c=parseFloat(s[0]);if(c===0)return this.sign=0,this.layer=0,this.mag=0,this;let f=parseFloat(s[s.length-1]);if(l>=2){const d=parseFloat(s[s.length-2]);isFinite(d)&&(f*=Math.sign(d),f+=yu(d))}if(!isFinite(c))this.sign=s[0]==="-"?-1:1,this.layer=l,this.mag=f;else if(l===1)this.sign=Math.sign(c),this.layer=1,this.mag=f+Math.log10(Math.abs(c));else if(this.sign=Math.sign(c),this.layer=l,l===2){const d=Q.mul(Xe(1,2,f),D(c));return this.sign=d.sign,this.layer=d.layer,this.mag=d.mag,this}else this.mag=f;return this.normalize(),this}fromValue(e){return e instanceof Q||e!=null&&typeof e=="object"&&"sign"in e&&"mag"in e&&"layer"in e?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:ti(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:ti(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=dh?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):ti(this.m,e)+"e"+ti(this.e,e):this.layer===1?ti(this.m,e)+"e"+ti(this.e,e):this.layer<=dh?(this.sign===-1?"-":"")+"e".repeat(this.layer)+ti(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+ti(this.mag,e)}abs(){return st(this.sign===0?0:1,this.layer,this.mag)}neg(){return st(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?Q.dZero:this.layer===0?Xe(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=D(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return st(0,0,0);let n,r;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(Q.cmpabs(this,t)>0?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return D(n.sign*n.mag+r.sign*r.mag);const i=n.layer*Math.sign(n.mag),a=r.layer*Math.sign(r.mag);if(i-a>=2)return n;if(i===0&&a===-1){if(Math.abs(r.mag-Math.log10(n.mag))>gu)return n;{const o=Math.pow(10,Math.log10(n.mag)-r.mag),s=r.sign+n.sign*o;return Xe(Math.sign(s),1,r.mag+Math.log10(Math.abs(s)))}}if(i===1&&a===0){if(Math.abs(n.mag-Math.log10(r.mag))>gu)return n;{const o=Math.pow(10,n.mag-Math.log10(r.mag)),s=r.sign+n.sign*o;return Xe(Math.sign(s),1,Math.log10(r.mag)+Math.log10(Math.abs(s)))}}if(Math.abs(n.mag-r.mag)>gu)return n;{const o=Math.pow(10,n.mag-r.mag),s=r.sign+n.sign*o;return Xe(Math.sign(s),1,r.mag+Math.log10(Math.abs(s)))}}plus(e){return this.add(e)}sub(e){return this.add(D(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=D(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return st(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return st(this.sign*t.sign,0,1);let n,r;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return D(n.sign*r.sign*n.mag*r.mag);if(n.layer>=3||n.layer-r.layer>=2)return Xe(n.sign*r.sign,n.layer,n.mag);if(n.layer===1&&r.layer===0)return Xe(n.sign*r.sign,1,n.mag+Math.log10(r.mag));if(n.layer===1&&r.layer===1)return Xe(n.sign*r.sign,1,n.mag+r.mag);if(n.layer===2&&r.layer===1){const i=Xe(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(Xe(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return Xe(n.sign*r.sign,i.layer+1,i.sign*i.mag)}if(n.layer===2&&r.layer===2){const i=Xe(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(Xe(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return Xe(n.sign*r.sign,i.layer+1,i.sign*i.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=D(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?Q.dNaN:this.layer===0?Xe(this.sign,0,1/this.mag):Xe(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=D(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,r=t.mag>0?t.layer:-t.layer;return n>r?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=D(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=D(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let r=this.mag,i=n.mag;return this.layer>n.layer&&(i=yu(i)),this.layer0?Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Xe(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?Q.dNaN:this.layer>0?Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Xe(this.sign,0,Math.log10(this.mag))}log(e){return e=D(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?Q.dNaN:this.layer===0&&e.layer===0?Xe(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):Q.div(this.log10(),e.log10())}log2(){return this.sign<=0?Q.dNaN:this.layer===0?Xe(this.sign,0,Math.log2(this.mag)):this.layer===1?Xe(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?Xe(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?Q.dNaN:this.layer===0?Xe(this.sign,0,Math.log(this.mag)):this.layer===1?Xe(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?Xe(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):Xe(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=D(e),n=this,r=t;if(n.sign===0)return r.eq(0)?st(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(r.sign===0)return st(1,0,1);if(r.sign===1&&r.layer===0&&r.mag===1)return n;const i=n.absLog10().mul(r).pow10();return this.sign===-1?Math.abs(r.toNumber()%2)%2===1?i.neg():Math.abs(r.toNumber()%2)%2===0?i:Q.dNaN:i}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return Q.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return Xe(1,0,t);if(e.sign===0)return Q.dOne;e=st(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?Xe(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?Xe(-e.sign,e.layer+1,-e.mag):Q.dOne}pow_base(e){return D(e).pow(this)}root(e){const t=D(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?Q.exp(Q.mul(this,Q.ln(this).sub(1))):Q.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(st(1,0,24)))return D(vx(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let r=e,i=12*r,a=1/i,o=t+a;if(o===t||(t=o,r=r*n,i=360*r,a=1/i,o=t-a,o===t))return Q.exp(t);t=o,r=r*n,i=1260*r;let s=1/i;return t=t+s,r=r*n,i=1680*r,s=1/i,t=t-s,Q.exp(t)}else return this.layer===1?Q.exp(Q.mul(this,Q.ln(this).sub(1))):Q.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?Q.dOne:this.layer===0&&this.mag<=709.7?D(Math.exp(this.sign*this.mag)):this.layer===0?Xe(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?Xe(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):Xe(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return D(Math.sqrt(this.sign*this.mag));if(this.layer===1)return Xe(1,2,Math.log10(this.mag)-.3010299956639812);{const e=Q.div(st(this.sign,this.layer-1,this.mag),st(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=st(1,0,1)){if(e===1)return Q.pow(this,t);if(e===0)return new Q(t);if(this.eq(Q.dOne))return Q.dOne;if(this.eq(-1))return Q.pow(this,t);if(e===Number.POSITIVE_INFINITY){const i=this.toNumber();if(i<=1.444667861009766&&i>=.06598803584531254){if(i>1.444667861009099)return new Q(Math.E);const a=Q.ln(this).neg();return a.lambertw().div(a)}else return i>1.444667861009766?new Q(Number.POSITIVE_INFINITY):Q.dNaN}if(this.eq(Q.dZero)){let i=Math.abs((e+1)%2);return i>1&&(i=2-i),new Q(i)}if(e<0)return Q.iteratedlog(t,this,-e);t=D(t);const n=e;e=Math.trunc(e);const r=n-e;if(this.gt(Q.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let i=0;i3)return st(t.sign,t.layer+(e-i-1),t.mag);if(i>1e4)return t}return t}iteratedexp(e=2,t=st(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return Q.tetrate(e,-t,this);e=D(e);let n=D(this);const r=t;t=Math.trunc(t);const i=r-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return i>0&&i<1&&(e.eq(10)?n=n.layeradd10(-i):n=n.layeradd(-i,e)),n}slog(e=10){if(e=D(e),e.lte(Q.dZero)||e.eq(Q.dOne))return Q.dNaN;if(e.lt(Q.dOne))return this.eq(Q.dOne)?Q.dZero:this.eq(Q.dZero)?Q.dNegOne:Q.dNaN;if(this.mag<0||this.eq(Q.dZero))return Q.dNegOne;let t=0,n=D(this);if(n.layer-e.layer>3){const r=n.layer-e.layer-3;t+=r,n.layer-=r}for(let r=0;r<100;++r)if(n.lt(Q.dZero))n=Q.pow(e,n),t-=1;else{if(n.lte(Q.dOne))return D(t+Q.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=Q.log(n,e)}return D(t)}static slog_critical(e,t){return e>10?t-1:Q.critical_section(e,t,px)}static tetrate_critical(e,t){return Q.critical_section(e,t,hx)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let r=0,i=0;for(let s=0;se){const l=(e-Ii[s])/(Ii[s+1]-Ii[s]);r=n[s][Math.floor(t)]*(1-l)+n[s+1][Math.floor(t)]*l,i=n[s][Math.ceil(t)]*(1-l)+n[s+1][Math.ceil(t)]*l;break}const a=t-Math.floor(t);return r*(1-a)+i*a}layeradd10(e){e=Q.fromValue_noAlloc(e).toNumber();const t=D(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let r=0;r<100;++r){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const r=this.slog(t).toNumber()+e;return r>=0?Q.tetrate(t,r):Number.isFinite(r)?r>=-1?Q.log(Q.tetrate(t,r+1),t):Q.log(Q.log(Q.tetrate(t,r+2),t),t):Q.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return D(hh(this.toNumber()));if(this.layer===0)return D(hh(this.sign*this.mag));if(this.layer===1)return ph(this);if(this.layer===2)return ph(this);if(this.layer>=3)return st(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return st(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=st(1,0,1)){t=D(t);const n=e;e=Math.trunc(e);const r=n-e;r!==0&&(t.eq(Q.dOne)?(++e,t=new Q(r)):this.eq(10)?t=t.layeradd10(r):t=t.layeradd(r,this));for(let i=0;i10)return t}return t}sin(){return this.mag<0?this:this.layer===0?D(Math.sin(this.sign*this.mag)):st(0,0,0)}cos(){return this.mag<0?Q.dOne:this.layer===0?D(Math.cos(this.sign*this.mag)):st(0,0,0)}tan(){return this.mag<0?this:this.layer===0?D(Math.tan(this.sign*this.mag)):st(0,0,0)}asin(){return this.mag<0?this:this.layer===0?D(Math.asin(this.sign*this.mag)):st(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?D(Math.acos(this.toNumber())):this.layer===0?D(Math.acos(this.sign*this.mag)):st(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?D(Math.atan(this.sign*this.mag)):D(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return Q.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return Q.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?st(Number.NaN,Number.NaN,Number.NaN):Q.ln(this.add(1).div(D(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(Q.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let O=Q;O.dZero=st(0,0,0);O.dOne=st(1,0,1);O.dNegOne=st(-1,0,1);O.dTwo=st(1,0,2);O.dTen=st(1,0,10);O.dNaN=st(Number.NaN,Number.NaN,Number.NaN);O.dInf=st(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);O.dNegInf=st(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);O.dNumberMax=Xe(1,0,Number.MAX_VALUE);O.dNumberMin=Xe(1,0,Number.MIN_VALUE);const mx=new O(1);function la(e,t,n=!0){let r=O.log10(e).floor(),i=O.div(e,O.pow(10,r));i.toStringWithDecimalPlaces(t)==="10"&&(i=mx,r=r.add(1));const a=r.gte(1e9)?Yn(r,Math.max(Math.max(t,3),_t.defaultDecimalsShown)):r.gte(1e4)?gl(r,0):r.toStringWithDecimalPlaces(0);return n?i.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function gl(e,t){if(e==null)return"NaN";if(e=new O(e),e.mag<.001)return 0 .toFixed(t);const r=e.toStringWithDecimalPlaces(t).split(".");return r[0]=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),r.length==1?r[0]:r[0]+"."+r[1]}function Mm(e,t){return e==null?"NaN":(e=new O(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),_t.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const gx=new O("eeee1000"),yx=new O("e100000"),vh=new O("e1000"),Lm=new O(1e9),bx=new O(1e6),xx=new O(1e3),_x=new O(.98),Tx=new O(.001),Um=new O(0);function Yn(e,t,n){if(t==null&&(t=_t.defaultDecimalsShown),n=n!=null?n:_t.defaultShowSmall,e=new O(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+Yn(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(gx)){const r=e.slog();return r.gte(bx)?"F"+Yn(r.floor()):O.pow(10,r.sub(r.floor())).toStringWithDecimalPlaces(3)+"F"+gl(r.floor(),0)}else{if(e.gte(yx))return la(e,0,!1);if(e.gte(vh))return la(e,0);if(e.gte(Lm))return la(e,t);if(e.gte(xx))return gl(e,0);if(e.gte(Tx)||!n)return Mm(e,t);if(e.eq(Um))return 0 .toFixed(t)}return e=km(e),e.lt(vh)?la(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):Yn(e,t)+"\u207B\xB9"}function Wn(e){return e=new O(e),e.sign<0?"-"+Wn(e.neg()):e.gte(Lm)||e.lte(_x)&&!e.eq(Um)?Yn(e):Yn(e,0)}function Bm(e){return O.lt(e,0)?"-"+Bm(O.neg(e)):O.gt(e,2**51)?Yn(O.div(e,31536e3))+"y":(e=new O(e).toNumber(),e<60?Yn(e)+"s":e<3600?Wn(Math.floor(e/60))+"m "+Yn(e%60)+"s":e<86400?Wn(Math.floor(e/3600))+"h "+Wn(Math.floor(e/60)%60)+"m "+Wn(e%60)+"s":e<31536e3?Wn(Math.floor(e/84600)%365)+"d "+Wn(Math.floor(e/3600)%24)+"h "+Wn(Math.floor(e/60)%60)+"m":Wn(Math.floor(e/31536e3))+"y "+Wn(Math.floor(e/84600)%365)+"d "+Wn(Math.floor(e/3600)%24)+"h")}function wx(e,t,n){e=new O(e);let r=e.toStringWithDecimalPlaces(t);return new O(r).gte(n)&&(r=O.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),r}function Cx(e,t){return Yn(e,t,!0)}function km(e){let t=O.log10(e).ceil();const n=O.div(e,O.pow(10,t));return t=t.neg(),e=new O(10).pow(t).times(n),e}var Ex=Object.freeze(Object.defineProperty({__proto__:null,default:O,exponentialFormat:la,commaFormat:gl,regularFormat:Mm,format:Yn,formatWhole:Wn,formatTime:Bm,toPlaces:wx,formatSmall:Cx,invertOOM:km},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:Ix,commaFormat:Sx,regularFormat:Nx,format:kt,formatWhole:gn,formatTime:Ql,toPlaces:Rx,formatSmall:Ax,invertOOM:Ox}=Ex;window.Decimal=O;window.exponentialFormat=Ix;window.commaFormat=Sx;window.regularFormat=Nx;window.format=kt;window.formatWhole=gn;window.formatTime=Ql;window.toPlaces=Rx;window.formatSmall=Ax;window.invertOOM=Ox;function Dm(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function Xi(e){return typeof e=="function"}var Ct=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(Ct||{});const Ua=Symbol("DoNotCache");function H(e,t){const n=e[t];Xi(n)&&n.length===0&&!n[Ua]?e[t]=J(n.bind(e)):Xi(n)&&(e[t]=n.bind(e),e[t][Ua]=!0)}function Zn(e){return Xi(e)&&!e[Ua]&&(e=J(e)),e}const Jt=Symbol("Component"),nn=Symbol("GatherProps");let Px=0;function _n(e="feature-"){return e+Px++}var nt=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(nt||{});function it(e){return e[Ua]=!0,e}function Yo(e,t=2){return e?0:t}function ft(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function Gm(e,...t){const n=[],r=i=>{Object.keys(i).forEach(a=>{const o=i[a];o&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof O)&&!et(o)&&r(o))})};return r(e),n}const Si={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var Ff=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Ff||{}),Kr={classic:Si,paper:{...Si,variables:{...Si.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...Si,variables:{...Si.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...Si,variables:{...Si.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function mh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fx(e){var t,n;return mh(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(mh(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const qt=Symbol("ProxyState"),bo=Symbol("ProxyPath");function an(e,t={}){const n=t;let r=!1;function i(){return r||(Object.assign(n,e(n)),r=!0),n}return new Proxy(n,{get(a,o){return o===qt?i():i()[o]},set(a,o,s){return i()[o]=s,!0},has(a,o){return o===qt?!0:Reflect.has(i(),o)},ownKeys(){return Reflect.ownKeys(i())},getOwnPropertyDescriptor(a,o){return r||(Object.assign(n,e(n)),r=!0),Object.getOwnPropertyDescriptor(a,o)}})}var Rt=window.state=jo({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const Vm=Pr({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function $m(e){return JSON.stringify(e,(t,n)=>x(n))}const jm={get(e,t){var r;if(t===qt||t===bo)return e[t];const n=e[qt][t];if(t!=="value"&&(Fx(n)||Array.isArray(n))){if(n!==((r=e[t])==null?void 0:r[qt])){const i=[...e[bo],t];e[t]=new Proxy({[qt]:n,[bo]:i},jm)}return e[t]}return n},set(e,t,n,r){if(!Rt.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof O&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const i=e[qt][t];if(!(typeof i=="number"&&isNaN(i)||i instanceof O&&(isNaN(i.sign)||isNaN(i.layer)||isNaN(i.mag))))throw Vm.autosave=!1,Rt.hasNaN=!0,Rt.NaNPath=[...e[bo],t],Rt.NaNReceiver=r,console.error("Attempted to set NaN value",[...e[bo],t],e[qt]),"Attempted to set NaN value. See above for details"}return e[qt][t]=n,!0},ownKeys(e){return Reflect.ownKeys(e[qt])},has(e,t){return Reflect.has(e[qt],t)},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e[qt],t)}};var xe=window.player=new Proxy({[qt]:Vm,[bo]:["player"]},jm);let Hm=()=>({events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}});const sn=Hm();let xo=null,Ta=null;function yl(){const e=Date.now();let t=(e-xe.time)/1e3;xe.time=e;const n=t;if(Rt.lastTenTicks.push(n),Rt.lastTenTicks.length>10&&(Rt.lastTenTicks=Rt.lastTenTicks.slice(1)),!((Ta==null?void 0:Ta.value)&&!xe.keepGoing)&&!Rt.hasNaN&&(t=Math.max(t,0),xe.devSpeed!==0)){if(xe.offlineTime!=null){if(O.gt(xe.offlineTime,_t.offlineLimit*3600)&&(xe.offlineTime=_t.offlineLimit*3600),O.gt(xe.offlineTime,0)&&xe.devSpeed!==0){const r=Math.max(xe.offlineTime/10,t);xe.offlineTime=xe.offlineTime-r,t+=r}else xe.devSpeed===0&&(xe.offlineTime+=t);(!xe.offlineProd||O.lt(xe.offlineTime,0))&&(xe.offlineTime=null)}t=Math.min(t,_t.maxTickLength),xe.devSpeed!=null&&(t*=xe.devSpeed),Number.isFinite(t)||(t=1e308),!O.eq(t,0)&&(xe.timePlayed+=t,Number.isFinite(xe.timePlayed)||(xe.timePlayed=1e308),sn.emit("update",t,n),bt.unthrottled?(requestAnimationFrame(yl),xo!=null&&(clearInterval(xo),xo=null)):xo==null&&(xo=setInterval(yl,50)))}}async function Mx(){Ta=(await sl(()=>Promise.resolve().then(function(){return Ny}),void 0)).hasWon,Dt(Ta,e=>{e&&sn.emit("gameWon")}),bt.unthrottled?requestAnimationFrame(yl):xo=setInterval(yl,50)}var Lx=Object.freeze(Object.defineProperty({__proto__:null,globalBus:sn,startGameLoop:Mx},Symbol.toStringTag,{value:"Module"})),Js=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ux(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zm(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Xm={exports:{}};(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function o(l,u){if(!a[l]){a[l]={};for(var c=0;c>>8,c[f*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),c=0,f=u.length;c>1}else{for(d=1,f=0;f>1}m--,m==0&&(m=Math.pow(2,T),T++),delete p[y]}else for(d=h[y],f=0;f>1;m--,m==0&&(m=Math.pow(2,T),T++),h[g]=b++,y=String(v)}if(y!==""){if(Object.prototype.hasOwnProperty.call(p,y)){if(y.charCodeAt(0)<256){for(f=0;f>1}else{for(d=1,f=0;f>1}m--,m==0&&(m=Math.pow(2,T),T++),delete p[y]}else for(d=h[y],f=0;f>1;m--,m==0&&(m=Math.pow(2,T),T++)}for(d=2,f=0;f>1;for(;;)if(w=w<<1,N==u-1){S.push(c(w));break}else N++;return S.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var f=[],d=4,h=4,p=3,v="",g=[],y,m,b,T,S,w,N,I={val:c(0),position:u,index:1};for(y=0;y<3;y+=1)f[y]=y;for(b=0,S=Math.pow(2,2),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;switch(b){case 0:for(b=0,S=Math.pow(2,8),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;N=n(b);break;case 1:for(b=0,S=Math.pow(2,16),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;N=n(b);break;case 2:return""}for(f[3]=N,m=N,g.push(N);;){if(I.index>l)return"";for(b=0,S=Math.pow(2,p),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;switch(N=b){case 0:for(b=0,S=Math.pow(2,8),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;f[h++]=n(b),N=h-1,d--;break;case 1:for(b=0,S=Math.pow(2,16),w=1;w!=S;)T=I.val&I.position,I.position>>=1,I.position==0&&(I.position=u,I.val=c(I.index++)),b|=(T>0?1:0)*w,w<<=1;f[h++]=n(b),N=h-1,d--;break;case 2:return g.join("")}if(d==0&&(d=Math.pow(2,p),p++),f[N])v=f[N];else if(N===h)v=m+m.charAt(0);else return null;g.push(v),f[h++]=m+v.charAt(0),d--,m=v,d==0&&(d=Math.pow(2,p),p++)}}};return s}();e!=null&&(e.exports=t)})(Xm);var li=Xm.exports;function Wm(e={}){return Object.assign({id:`${_t.id}-0`,name:"Default Save",tabs:_t.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:_t.id,modVersion:_t.versionNumber,layers:{}},e)}function rr(e){const t=li.compressToUTF16($m(e!=null?e:xe[qt]));return localStorage.setItem((e!=null?e:xe[qt]).id,t),t}async function Bx(){Dx();try{let e=localStorage.getItem(bt.active);if(e==null){await Wi(Ro());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=li.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==_t.id){await Wi(Ro());return}t.id=bt.active,await Wi(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await Wi(Ro())}}function Ro(){const e=Qs(),t=Wm({id:e});return rr(t),bt.saves.push(e),t}function Qs(){let e,t=0;do e=`${_t.id}-${t++}`;while(localStorage.getItem(e));return e}async function Wi(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:r}=await sl(()=>Promise.resolve().then(function(){return o_}),void 0),{fixOldSave:i,getInitialLayers:a}=await sl(()=>Promise.resolve().then(function(){return Ny}),void 0);for(const o in t){const s=t[o];s&&n(s)}a(e).forEach(o=>r(o,e)),e=Wm(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==_t.versionNumber&&i(e.modVersion,e),Object.assign(xe,e),bt.active=xe.id}setInterval(()=>{xe.autosave&&rr()},1e3);window.onbeforeunload=()=>{xe.autosave&&rr()};window.save=rr;const kx=window.hardReset=async()=>{await Wi(Ro())},Ba=Pr({active:"",saves:[],showTPS:!0,theme:Ff.Nordic,unthrottled:!1});Dt(Ba,e=>{const t=li.compressToUTF16(JSON.stringify(e));localStorage.setItem(_t.id,t)},{deep:!0});var bt=window.settings=Ba;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Ff.Nordic};sn.emit("loadSettings",e),Object.assign(Ba,e),kx()};function Dx(){try{let e=localStorage.getItem(_t.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=li.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Ba,t)}sn.emit("loadSettings",Ba)}catch{}}const Km=Pr([]);function Ym(e){Km.push(e)}const Zm=Pr([]);function Gx(e){Zm.push(e)}const Vx=Pr([]),$x={class:"table"},qs=Ie({__name:"Column",setup(e){const t=J(()=>Kr[bt.theme].mergeAdjacent);return(n,r)=>(M(),W("div",$x,[P("div",{class:ze(["col",{mergeAdjacent:x(t)}])},[Mt(n.$slots,"default")],2)]))}}),jx={class:"table"},wa=Ie({__name:"Row",setup(e){const t=J(()=>Kr[bt.theme].mergeAdjacent);return(n,r)=>(M(),W("div",jx,[P("div",{class:ze(["row",{mergeAdjacent:x(t)}])},[Mt(n.$slots,"default")],2)]))}});function Jm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}function Ye(e,t="span"){return typeof e=="function"?Ie({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),Ie({template:e})):Ie({render:()=>({})}):e}function Bt(e){if(Jn(e))return typeof e=="function"?e():Ye(e);const t=e[Jt];return C(t,e[nn](),null)}function tr(...e){let t;return C(wa,null,Jm(t=e.map(Bt))?t:{default:()=>[t]})}function Hx(...e){let t;return C(qs,null,Jm(t=e.map(Bt))?t:{default:()=>[t]})}function Er(e){if(Jn(e))return typeof e=="function"?e():typeof e=="string"?C(Oe,null,[e]):C(e,null,null);const t=e[Jt];return C(t,e[nn](),null)}function Jn(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Ua]===!0}function Mf(e,t){const n=Te(null),r=Te(void 0);function i(s){n.value||(n.value=setInterval(o,250)),r.value=s}function a(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(r.value)}return Ho(a),{start:i,stop:a,handleHolding:o}}function Vo(e,t="div"){const n=An();return zt(()=>{n.value=Ye(Ot(e),t)}),n}function lo(e,t="div"){const n=An(null);return zt(()=>{const r=Ot(e);n.value=r==null?null:Ye(r,t)}),n}function zx(e){return J(()=>Ot(e))}function Ot(e){return x(x(e))}function q(...e){return e.includes(Object)||e.push(Object),e}var Qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const Xx=Ie({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var c;const n=Te({}),r=new ResizeObserver(s),i=Te(null);vr(()=>{const f=i.value;f!=null&&r.observe(f)});let a=!0,o=Te((c=i.value)==null?void 0:c.getBoundingClientRect());function s(){i.value!=null&&a&&(a=!1,tn(()=>{var f;o.value=(f=i.value)==null?void 0:f.getBoundingClientRect(),Object.values(n.value).filter(d=>d).forEach(d=>d.rect=d.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}document.fonts.ready.then(s);const l={attributes:!1,childList:!0,subtree:!1};Hi(Lf,(f,d)=>{const h=new MutationObserver(()=>u(f));h.observe(d,l),n.value[f]={element:d,observer:h,rect:d.getBoundingClientRect()},t("updateNodes",n.value),tn(()=>u(f))}),Hi(Uf,f=>{var d;(d=n.value[f])==null||d.observer.disconnect(),n.value[f]=void 0,t("updateNodes",n.value)}),Hi(Bf,n),Hi(kf,o);function u(f){const d=n.value[f];d!=null&&(d.rect=d.element.getBoundingClientRect(),t("updateNodes",n.value))}return(f,d)=>(M(),W(Oe,null,[Mt(f.$slots,"default",{},void 0,!0),P("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var Qm=Qe(Xx,[["__scopeId","data-v-6a08ac80"]]);const Wx=["onPointerdown"],Kx={class:"modal-wrapper"},Yx={class:"modal-container"},Zx={class:"modal-header"},Jx=le(" default header "),Qx={class:"modal-body"},qx=le(" default body "),e_={class:"modal-footer"},t_=P("div",{class:"modal-default-flex-grow"},null,-1),wi=Ie({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const i=Et(e),a=J(()=>i.modelValue||s.value);function o(){n("update:modelValue",!1)}const s=Te(!1),l=Te(null),u=J(()=>{var c,f;return(f=(c=l.value)==null?void 0:c.nodes)!=null?f:null});return t({isOpen:a,nodes:u}),(c,f)=>(M(),we(qv,{to:"#modal-root"},[C(Ti,{name:"modal",onBeforeEnter:f[0]||(f[0]=d=>s.value=!0),onAfterLeave:f[1]||(f[1]=d=>s.value=!1)},{default:Pe(()=>[zo(P("div",un({class:"modal-mask",onPointerdown:ln(o,["self"])},c.$attrs),[P("div",Kx,[P("div",Yx,[P("div",Zx,[Mt(c.$slots,"header",{shown:x(a)},()=>[Jx])]),P("div",Qx,[C(Qm,{ref_key:"contextRef",ref:l},{default:Pe(()=>[Mt(c.$slots,"body",{shown:x(a)},()=>[qx])]),_:3},512)]),P("div",e_,[Mt(c.$slots,"footer",{shown:x(a)},()=>[P("div",{class:"modal-default-footer"},[t_,P("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,Wx),[[Jl,e.modelValue]])]),_:3})]))}}),ka=Symbol("PersistentState"),Da=Symbol("DefaultValue"),bl=Symbol("StackTrace"),qm=Symbol("Deleted");function n_(){var e;return((e=new Error().stack)==null?void 0:e.split(` +`).slice(3,5).map(t=>t.trim()).join(` +`))||""}function Kt(e){const t=et(e)?e:Te(e);return t[ka]=t,t[Da]=et(e)?e.value:e,t[bl]=n_(),t[qm]=!1,ir.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,` +Created at: +`+t[bl]):Ao[ir[ir.length-1]].add(t),t}sn.on("addLayer",(e,t)=>{const n=[],r=(i,a=[])=>{let o=!1;return Object.keys(i).forEach(s=>{const l=i[s];if(l&&typeof l=="object")if(ka in l){if(o=!0,l[qm]){console.warn("Deleted persistent ref present in returned object. Ignoring...",l,` +Created at: +`+l[bl]);return}Ao[e.id].delete(qt in l?l[qt]:l);const u=a.reduce((f,d)=>(d in f||(f[d]={}),f[d]),t),c=u[s];u[s]=l[ka],di(u)?c!=null?u[s]=c:u[s]=l[Da]:c!=null?u[s].value=c:u[s].value=l[Da]}else!(l instanceof O)&&!et(l)&&!n.includes(l)&&(typeof l.type=="symbol"&&n.push(l),r(l,[...a,s])&&(Ce(l)&&!Ce(i)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",qt in i?i[qt]:i,s):o=!0))}),o};r(e),Ao[e.id].forEach(i=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,` +Created at: +`+i[bl])}),Ao[e.id].clear()});const Lf=Symbol("RegisterNode"),Uf=Symbol("UnregisterNode"),Bf=Symbol("Nodes"),kf=Symbol("Bounds"),Rn=jo({});window.layers=Rn;const Ao={},ir=[];function ss(e,t){return an(()=>{const n={},r=n.emitter=Hm();if(n.on=r.on.bind(r),n.emit=r.emit.bind(r),n.nodes=Te({}),n.id=e,ir.push(e),Ao[e]=new Set,n.minimized=Kt(!1),Object.assign(n,t.call(n)),ir[ir.length-1]==null||ir[ir.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen +Stack: ${ir} +Trying to pop ${n.id}`;return ir.pop(),H(n,"color"),H(n,"display"),H(n,"name"),ft(n,"name",n.id),H(n,"minWidth"),ft(n,"minWidth",600),H(n,"minimizable"),ft(n,"minimizable",!0),n})}function eg(e,t){if(console.info("Adding layer",e.id),Rn[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,Rn[e.id]);return}ft(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),Rn[e.id]=e,sn.emit("addLayer",e,t.layers[e.id])}function r_(e){return Rn[e]}function tg(e){console.info("Removing layer",e.id),sn.emit("removeLayer",e),Rn[e.id]=void 0}function i_(e){tg(e),eg(e,xe)}function ng(e){const t=Te(!1);return{openModal:()=>t.value=!0,modal:it(()=>C(wi,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>C("h2",null,[x(e.name)]),body:x(e.display)}))}}sn.on("update",function(t){Object.values(Rn).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(Rn).forEach(n=>{n==null||n.emit("update",t)}),Object.values(Rn).forEach(n=>{n==null||n.emit("postUpdate",t)})});var o_=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Lf,UnregisterNodeInjectionKey:Uf,NodesInjectionKey:Bf,BoundsInjectionKey:kf,layers:Rn,persistentRefs:Ao,addingLayers:ir,createLayer:ss,addLayer:eg,getLayer:r_,removeLayer:tg,reloadLayer:i_,setupLayerModal:ng},Symbol.toStringTag,{value:"Module"}));const a_=Ie({components:{Context:Qm},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:q(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:q(Number,String),required:!0},name:{type:q(String),required:!0},color:q(String),minimizable:q(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:t,index:n,minimized:r,minWidth:i,tab:a}=Et(e),o=Vo(t),s=J(()=>_t.allowGoBack&&n.value>0&&!r.value);function l(){xe.tabs.splice(x(e.index),1/0)}tn(()=>c(r.value,x(i.value))),Dt([r,zx(i)],([f,d])=>c(f,d));function u(f){e.nodes.value=f}function c(f,d){const h=typeof d=="number"||Number.isNaN(parseInt(d))?d+"px":d,p=a.value();p!=null&&(f?(p.style.flexGrow="0",p.style.flexShrink="0",p.style.width="60px",p.style.minWidth=p.style.flexBasis="",p.style.margin="0"):(p.style.flexGrow="",p.style.flexShrink="",p.style.width="",p.style.minWidth=p.style.flexBasis=h,p.style.margin=""))}return{component:o,showGoBack:s,updateNodes:u,unref:x,goBack:l}}});function s_(e,t,n,r,i,a){const o=wt("Context");return M(),W("div",{class:"layer-container",style:tt({"--layer-color":e.unref(e.color)})},[e.showGoBack?(M(),W("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...s)=>e.goBack&&e.goBack(...s))},"\u2190")):ve("",!0),e.minimized.value?(M(),W("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=s=>e.minimized.value=!1)},[P("div",null,Je(e.unref(e.name)),1)])):(M(),W("div",{key:2,class:ze(["layer-tab",{showGoBack:e.showGoBack}])},[C(o,{onUpdateNodes:e.updateNodes},{default:Pe(()=>[(M(),we(gt(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(M(),W("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=s=>e.minimized.value=!0)}," \u25BC ")):ve("",!0)],4)}var l_=Qe(a_,[["render",s_],["__scopeId","data-v-34c9d881"]]);const rg=e=>(hr("data-v-4b4bda40"),e=e(),pr(),e),u_=rg(()=>P("h2",null,"Changelog",-1)),c_=rg(()=>P("details",{open:""},[P("summary",null,[le("v0.0 Initial Commit - "),P("time",null,"2021-09-04")]),le(" This is the first release :D "),P("ul",null,[P("li",{class:"feature"},"Did everything"),P("li",{class:"fix"},"Had some fun"),P("li",{class:"breaking"},"Removed everything"),P("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),f_=Ie({__name:"Changelog",setup(e,{expose:t}){const n=Te(!1);return t({open(){n.value=!0}}),(r,i)=>(M(),we(wi,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a)},{header:Pe(()=>[u_]),body:Pe(()=>[c_]),_:1},8,["modelValue"]))}});var d_=Qe(f_,[["__scopeId","data-v-4b4bda40"]]),h_=Ie({props:{element:Object,display:{type:q(Object,String,Function),required:!0},style:q(Object,String,Array),classes:q(Object),direction:q(String),xoffset:q(String),yoffset:q(String),pinned:Object},setup(e){const{element:t,display:n,pinned:r}=Et(e),i=Te(!1),a=J(()=>(Ot(r)||i.value)&&o.value),o=lo(n),s=An(Ye(it(()=>{const c=Ot(t);return c==null?"":Er(c)})));function l(c){const f=r;c.shiftKey&&f&&(f.value=!f.value,c.stopPropagation(),c.preventDefault())}const u=J(()=>Ot(r)&&Kr[bt.theme].showPin);return{Direction:Ct,isHovered:i,isShown:a,comp:o,elementComp:s,unref:x,togglePinned:l,showPin:u}}});const p_={key:0,class:"material-icons pinned"};function v_(e,t,n,r,i,a){return M(),W("div",{class:ze(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[Mt(e.$slots,"default",{},void 0,!0),e.elementComp?(M(),we(gt(e.elementComp),{key:0})):ve("",!0),C(Ti,{name:"fade"},{default:Pe(()=>{var o;return[e.isShown?(M(),W("div",{key:0,class:ze(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:tt([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(M(),W("span",p_,"push_pin")):ve("",!0),e.comp?(M(),we(gt(e.comp),{key:1})):ve("",!0)],6)):ve("",!0)]}),_:1})],34)}var At=Qe(h_,[["render",v_],["__scopeId","data-v-6102fa3a"]]);const uo=e=>(hr("data-v-7dec2dec"),e=e(),pr(),e),m_={class:"info-modal-header"},g_=["src","alt"],y_={class:"info-modal-title"},b_={key:0},x_={key:0},__={key:0},T_=uo(()=>P("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),w_=uo(()=>P("br",null,null,-1)),C_=uo(()=>P("br",null,null,-1)),E_=["href"],I_=uo(()=>P("span",{class:"material-icons info-modal-discord"},"discord",-1)),S_=uo(()=>P("div",null,[P("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[P("span",{class:"material-icons info-modal-discord"},"discord"),le(" The Paper Pilot Community ")])],-1)),N_=uo(()=>P("div",null,[P("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[P("span",{class:"material-icons info-modal-discord"},"discord"),le(" The Modding Tree ")])],-1)),R_=uo(()=>P("br",null,null,-1));var A_=Ie({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:r,logo:i,author:a,discordName:o,discordLink:s,versionNumber:l,versionTitle:u}=_t,c=Et(n),f=Te(!1),d=J(()=>Ql(xe.timePlayed)),h=J(()=>Ye(it(()=>C(Oe,null,[Zm.map(Bt)]))));t({open(){f.value=!0}});function p(){var v;(v=x(c.changelog))==null||v.open()}return(v,g)=>(M(),we(wi,{modelValue:f.value,"onUpdate:modelValue":g[0]||(g[0]=y=>f.value=y)},{header:Pe(()=>[P("div",m_,[x(i)?(M(),W("img",{key:0,class:"info-modal-logo",src:x(i),alt:x(r)},null,8,g_)):ve("",!0),P("div",y_,[P("h2",null,Je(x(r)),1),P("h4",null,[le(" v"+Je(x(l)),1),x(u)?(M(),W("span",b_,": "+Je(x(u)),1)):ve("",!0)])])])]),body:Pe(({shown:y})=>[y?(M(),W("div",x_,[x(a)?(M(),W("div",__,"By "+Je(x(a)),1)):ve("",!0),T_,w_,P("div",{class:"link",onClick:p},"Changelog"),C_,P("div",null,[x(s)?(M(),W("a",{key:0,href:x(s),class:"info-modal-discord-link"},[I_,le(" "+Je(x(o)),1)],8,E_)):ve("",!0)]),S_,N_,R_,P("div",null,"Time Played: "+Je(x(d)),1),(M(),we(gt(x(h))))])):ve("",!0)]),_:1},8,["modelValue"]))}});var O_=Qe(A_,[["__scopeId","data-v-7dec2dec"]]);function Df(e){return(Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function gh(e){return function(t){if(Array.isArray(t))return _c(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||ig(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ig(e,t){if(e){if(typeof e=="string")return _c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(e,t):void 0}}function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Tc={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=Te(null);return vr(function(){e.autofocus&&n.value.focus()}),os(function(){e.autofocus&&n.value.focus()}),{handleInput:function(r){t.emit("input",r),t.emit("update:modelValue",r.target.value)},handleChange:function(r){t.emit("change",r),t.emit("update:modelValue",r.target.value)},handleFocus:function(r){t.emit("focus",r)},handleBlur:function(r){t.emit("blur",r)},input:n,handleEscape:function(r){n.value.blur(),t.emit("escape",r)}}}},P_={class:"vue-input"},F_=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];Tc.render=function(e,t,n,r,i,a){return M(),W("div",P_,[Mt(e.$slots,"prepend"),P("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return r.handleInput&&r.handleInput.apply(r,arguments)}),onChange:t[1]||(t[1]=function(){return r.handleChange&&r.handleChange.apply(r,arguments)}),onFocus:t[2]||(t[2]=function(){return r.handleFocus&&r.handleFocus.apply(r,arguments)}),onBlur:t[3]||(t[3]=function(){return r.handleBlur&&r.handleBlur.apply(r,arguments)}),onKeyup:t[4]||(t[4]=$i(ln(function(){return r.handleEscape&&r.handleEscape.apply(r,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,F_),Mt(e.$slots,"append")])},Tc.__file="src/components/input.vue";var wc={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return Df(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:Kn("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};wc.render=function(e,t,n,r,i,a){return M(),W("ul",un({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=ln(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return r.handleClick&&r.handleClick.apply(r,arguments)})},r.dataAttrs),[(M(!0),W(Oe,null,Rr(n.modelValue,function(o){return M(),W(Oe,{key:o.key},[o.group?ve("v-if",!0):(M(),W("li",{key:0,class:ze(["vue-tag",{selected:o.selected}])},[Mt(e.$slots,"default",{option:o},function(){return[P("span",null,Je(o.label),1)]})],2))],64)}),128))],16)},wc.__file="src/components/tags.vue";var Cc={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return Df(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:Kn("dataAttrs"),handleClickItem:function(n,r){r.disabled||t.emit("click-item",n,r)},handleMouseenter:function(n,r){t.emit("mouseenter",n,r)}}}},M_=["id","aria-multiselectable","aria-busy","aria-disabled"],L_=["onClick","onMouseenter","id","aria-selected","aria-disabled"];Cc.render=function(e,t,n,r,i,a){return M(),W("ul",un({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=ln(function(){},["prevent"]))},r.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":r.dataAttrs["data-multiple"],"aria-busy":r.dataAttrs["data-loading"],"aria-disabled":r.dataAttrs["data-disabled"]}),[(M(!0),W(Oe,null,Rr(n.modelValue,function(o,s){return M(),W(Oe,{key:o.key},[o.visible&&o.hidden===!1?(M(),W("li",{key:0,onClick:function(l){return r.handleClickItem(l,o)},class:ze(["vue-dropdown-item",{selected:o.selected,disabled:o.disabled,highlighted:o.originalIndex===n.highlightedOriginalIndex,group:o.group}]),onMouseenter:function(l){return r.handleMouseenter(l,o)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(s),"aria-selected":!!o.selected||!!o.disabled&&void 0,"aria-disabled":o.disabled},[Mt(e.$slots,"default",{option:o},function(){return[P("span",null,Je(o.label),1)]})],42,L_)):ve("v-if",!0)],64)}),128))],16,M_)},Cc.__file="src/components/dropdown.vue";var og=function(e,t,n){var r=n.valueBy;return r(e)===r(t)},To=function(e,t,n){var r=n.valueBy;return e.some(function(i){return og(i,t,{valueBy:r})})},Ni=function(e,t,n){var r=n.valueBy;return e.find(function(i){return r(i)===t})},bu=function(e,t,n){var r=n.max,i=n.valueBy;return To(e,t,{valueBy:i})||e.length>=r?e:e.concat(t)},xu=function(e,t,n){var r=n.min,i=n.valueBy;return To(e,t,{valueBy:i})===!1||e.length<=r?e:e.filter(function(a){return og(a,t,{valueBy:i})===!1})},Cs=function(e){return J(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,r){return n[r]},t)}:function(t){return t}})},U_=function(e,t){var n=J(function(){return e.value.reduce(function(o,s){return Object.assign(o,(l={},u=s.originalIndex,c=s,u in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l));var l,u,c},{})}),r=function(o){var s=n.value[o];return s!==void 0&&i(s)!==!1&&(t.value=o,!0)},i=function(o){return!o.disabled&&!o.hidden&&o.visible},a=J(function(){return e.value.some(function(o){return i(o)})});return zt(function(){if(a.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var o,s=ji(e.value.reverse());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(r(l.originalIndex))break}}catch(d){s.e(d)}finally{s.f()}}if(t.value===null||i(e.value[t.value])===!1){var u,c=ji(e.value);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(r(f.originalIndex))break}}catch(d){c.e(d)}finally{c.f()}}}),{pointerForward:function(){if(a.value!==!1&&t.value!==null)for(var o=t.value+1,s=0;o!==t.value&&s++o.value.$el.clientHeight+o.value.$el.scrollTop&&ce++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});Hi("dataAttrs",Ke);var re=J(function(){return U.value.filter(function(k){return k.selected}).filter(function(k){return!k.group})}),de=J(function(){return e.multiple?re.value.length===0?e.placeholder:re.value.length===1?"1 option selected":re.value.length+" options selected":re.value.length===0?e.placeholder:re.value[0].label+""}),ye=J(function(){var k=re.value.map(function(X){return X.originalOption});return e.multiple?k:k[0]||r.value}),Se=Te();return Dt(function(){return[e.openDirection,u.value]},function(){var k,X;Se.value=(X=(k=e.openDirection)!==null&&k!==void 0?k:function(){if(a.value!==void 0&&window!==void 0)return window.innerHeight-a.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&X!==void 0?X:"bottom"},{immediate:!0}),{instance:i,isFocusing:u,wrapper:a,dropdown:o,input:s,focus:c,blur:f,toggle:function(){u.value?f():c()},searchingInputValue:d,handleInputForInput:function(k){t.emit("search:input",k)},handleChangeForInput:function(k){t.emit("search:change",k)},handleFocusForInput:function(k){c()},handleBlurForInput:function(k){f()},optionsWithInfo:U,addOrRemoveOption:function(k,X){e.disabled||(X.group&&e.multiple?T(k,X):S(k,X),w(),e.closeOnSelect===!0&&(u.value=!1),e.clearOnSelect===!0&&d.value&&N())},dataAttrs:Ke,innerPlaceholder:de,selected:ye,highlightedOriginalIndex:R,pointerForward:function(){z(),tn(me)},pointerBackward:function(){j(),tn(me)},pointerFirst:function(){var k,X=ji(n.options.keys());try{for(X.s();!(k=X.n()).done;){var ce=k.value;if(B(ce))break}}catch(ue){X.e(ue)}finally{X.f()}tn(me)},pointerLast:function(){var k,X=ji(gh(n.options.keys()).reverse());try{for(X.s();!(k=X.n()).done;){var ce=k.value;if(B(ce))break}}catch(ue){X.e(ue)}finally{X.f()}tn(me)},typeAhead:function(k){var X,ce;if(!e.searchable){var ue=!1;if(Y.test(k.key)?(he+=k.key.toLowerCase(),ue=!0):k.code==="Space"&&(he+=" "),ue){var Ve,ie=ji(oe.value);try{for(ie.s();!(Ve=ie.n()).done;){var Ze=Ve.value;if(((ce=(X=n.labelBy(n.options[Ze]))===null||X===void 0?void 0:X.toLowerCase())===null||ce===void 0?void 0:ce.startsWith(he))===!0&&B(Ze))break}}catch(at){ie.e(at)}finally{ie.f()}clearTimeout(b),b=setTimeout(function(){he=""},500)}}},pointerSet:B,direction:Se}},components:{VInput:Tc,VTags:wc,VDropdown:Cc}});xl.__VERSION__="2.10.4";var B_=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],k_={class:"vue-select-header"},D_={key:0,class:"vue-input"},G_=["placeholder","autocomplete"],V_=["onClick"],$_=P("span",{class:"icon loading"},[P("div"),P("div"),P("div")],-1),j_={key:0,class:"vue-select-input-wrapper"},H_=P("span",{class:"icon loading"},[P("div"),P("div"),P("div")],-1);xl.render=function(e,t,n,r,i,a){var o=wt("v-tags"),s=wt("v-input"),l=wt("v-dropdown");return M(),W("div",un({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(u){return!e.searchable&&e.blur(u)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=$i(ln(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=$i(ln(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=$i(ln(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=$i(ln(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=$i(ln(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[P("div",k_,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(M(),W("div",D_,[Mt(e.$slots,"label",{selected:e.selected},function(){return[P("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,G_)]})])):ve("v-if",!0),e.multiple&&e.taggable?(M(),W(Oe,{key:1},[C(o,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:Pe(function(u){var c=u.option;return[Mt(e.$slots,"tag",{option:c.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,c)}},function(){return[P("span",null,Je(c.label),1),P("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:ln(function(){return e.addOrRemoveOption(e.$event,c)},["prevent","stop"])},null,8,V_)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),Mt(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[P("span",{class:ze(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=ln(function(){},["prevent","stop"]))},null,34)]})],64)):(M(),W(Oe,{key:2},[e.searchable?(M(),we(s,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(u){return e.searchingInputValue=u}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):ve("v-if",!0),e.loading?Mt(e.$slots,"loading",{key:1},function(){return[$_]}):Mt(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[P("span",{class:ze(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=ln(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(M(),W("div",j_,[zo(C(s,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(u){return e.searchingInputValue=u}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[Jl,e.isFocusing]]),e.loading?Mt(e.$slots,"loading",{key:0},function(){return[H_]}):ve("v-if",!0)])):ve("v-if",!0),C(l,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(u){return e.optionsWithInfo=u}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(u,c){return e.pointerSet(c.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:Pe(function(u){var c=u.option;return[Mt(e.$slots,"dropdown-item",{option:c.originalOption},function(){return[P("span",null,Je(c.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,B_)},xl.__file="src/index.vue";const z_={class:"field"},X_={key:0,class:"field-title"},Gf=Ie({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const n=e,r=lo(Sn(n,"title"),"span"),i=Te((o=n.options.find(s=>s.value===n.modelValue))!=null?o:null);Dt(Sn(n,"modelValue"),s=>{var l;Ot(i)!==s&&(i.value=(l=n.options.find(u=>u.value===s))!=null?l:null)});function a(s){t("update:modelValue",s.value)}return(s,l)=>(M(),W("div",z_,[x(r)?(M(),W("span",X_,[(M(),we(gt(x(r))))])):ve("",!0),C(x(xl),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[l[0]||(l[0]=u=>i.value=u),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const W_={class:"field"},K_=Ie({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=J(()=>Ye(x(n.title)||"
","span")),i=J({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,o)=>(M(),W("label",W_,[zo(P("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=s=>et(i)?i.value=s:null)},null,512),[[Zl,x(i)]]),(M(),we(gt(x(r))))]))}});var Bn=Qe(K_,[["__scopeId","data-v-2b109500"]]);const ag=e=>(hr("data-v-bc13791c"),e=e(),pr(),e),Y_=ag(()=>P("div",{class:"header"},[P("h2",null,"Options")],-1)),Z_=ag(()=>P("hr",null,null,-1));var J_=Ie({__name:"Options",setup(e,{expose:t}){const n=Te(!1);t({open(){n.value=!0}});const r=Object.keys(Kr).map(p=>({label:Dm(p),value:p})),i=J(()=>Ye(it(()=>C(Oe,null,[Km.map(Bt)])))),{showTPS:a,theme:o,unthrottled:s}=Et(bt),{autosave:l,offlineProd:u}=Et(xe),c=J({get(){return xe.devSpeed===0},set(p){xe.devSpeed=p?0:null}}),f=it(()=>C("span",null,[le("Offline Production"),C(At,{display:"Save-specific"},{default:()=>[le("*")]})])),d=it(()=>C("span",null,[le("Autosave"),C(At,{display:"Save-specific"},{default:()=>[le("*")]})])),h=it(()=>C("span",null,[le("Pause game"),C(At,{display:"Save-specific"},{default:()=>[le("*")]})]));return(p,v)=>(M(),we(wi,{modelValue:n.value,"onUpdate:modelValue":v[6]||(v[6]=g=>n.value=g)},{header:Pe(()=>[Y_]),body:Pe(()=>[C(Gf,{title:"Theme",options:x(r),modelValue:x(o),"onUpdate:modelValue":v[0]||(v[0]=g=>et(o)?o.value=g:null)},null,8,["options","modelValue"]),(M(),we(gt(x(i)))),C(Bn,{title:"Show TPS",modelValue:x(a),"onUpdate:modelValue":v[1]||(v[1]=g=>et(a)?a.value=g:null)},null,8,["modelValue"]),Z_,C(Bn,{title:"Unthrottled",modelValue:x(s),"onUpdate:modelValue":v[2]||(v[2]=g=>et(s)?s.value=g:null)},null,8,["modelValue"]),C(Bn,{title:x(f),modelValue:x(u),"onUpdate:modelValue":v[3]||(v[3]=g=>et(u)?u.value=g:null)},null,8,["title","modelValue"]),C(Bn,{title:x(d),modelValue:x(l),"onUpdate:modelValue":v[4]||(v[4]=g=>et(l)?l.value=g:null)},null,8,["title","modelValue"]),x(_t).enablePausing?(M(),we(Bn,{key:0,title:x(h),modelValue:x(c),"onUpdate:modelValue":v[5]||(v[5]=g=>et(c)?c.value=g:null)},null,8,["title","modelValue"])):ve("",!0)]),_:1},8,["modelValue"]))}});var Q_=Qe(J_,[["__scopeId","data-v-bc13791c"]]),sg={exports:{}},q_=zm(V1);/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function nT(e,t){if(e==null)return{};var n=tT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function rT(e){return iT(e)||oT(e)||aT(e)||sT()}function iT(e){if(Array.isArray(e))return Ec(e)}function oT(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aT(e,t){if(!!e){if(typeof e=="string")return Ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ec(e,t)}}function Ec(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function cT(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function or(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&_l(e,t):_l(e,t))||r&&e===n)return e;if(e===n)break}while(e=cT(e))}return null}var xh=/\s+/g;function Ut(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(xh," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(xh," ")}}function Ee(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function qi(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ee(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function cg(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i=a:o=i<=a,!o)return r;if(r===Ir())break;r=ui(r,!1)}return!1}function $o(e,t,n,r){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,a=nT(r,gT);us.pluginEvent.bind(ke)(t,n,Or({dragEl:fe,parentEl:$t,ghostEl:We,rootEl:Pt,nextEl:Li,lastDownEl:tl,cloneEl:jt,cloneHidden:si,dragStarted:ca,putSortable:cn,activeSortable:ke.active,originalEvent:i,oldIndex:wo,oldDraggableIndex:Ia,newIndex:Pn,newDraggableIndex:oi,hideGhostForTarget:mg,unhideGhostForTarget:gg,cloneNowHidden:function(){si=!0},cloneNowShown:function(){si=!1},dispatchSortableEvent:function(s){xn({sortable:n,name:s,originalEvent:i})}},a))};function xn(e){ua(Or({putSortable:cn,cloneEl:jt,targetEl:fe,rootEl:Pt,oldIndex:wo,oldDraggableIndex:Ia,newIndex:Pn,newDraggableIndex:oi},e))}var fe,$t,We,Pt,Li,tl,jt,si,wo,Pn,Ia,oi,Es,cn,_o=!1,Tl=!1,wl=[],Ri,qn,Cu,Eu,Ch,Eh,ca,fo,Sa,Na=!1,Is=!1,nl,dn,Iu=[],Ic=!1,Cl=[],ql=typeof document!="undefined",Ss=lg,Ih=ls||Yr?"cssFloat":"float",yT=ql&&!uT&&!lg&&"draggable"in document.createElement("div"),hg=function(){if(!!ql){if(Yr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),pg=function(t,n){var r=Ee(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=$o(t,0,n),o=$o(t,1,n),s=a&&Ee(a),l=o&&Ee(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ft(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ft(o).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[Ih]==="none"||o&&r[Ih]==="none"&&u+c>i)?"vertical":"horizontal"},bT=function(t,n,r){var i=r?t.left:t.top,a=r?t.right:t.bottom,o=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||a===l||i+o/2===s+u/2},xT=function(t,n){var r;return wl.some(function(i){var a=i[vn].options.emptyInsertThreshold;if(!(!a||Vf(i))){var o=Ft(i),s=t>=o.left-a&&t<=o.right+a,l=n>=o.top-a&&n<=o.bottom+a;if(s&&l)return r=i}}),r},vg=function(t){function n(a,o){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(a==null&&(o||f))return!0;if(a==null||a===!1)return!1;if(o&&a==="clone")return a;if(typeof a=="function")return n(a(s,l,u,c),o)(s,l,u,c);var d=(o?s:l).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var r={},i=t.group;(!i||el(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},mg=function(){!hg&&We&&Ee(We,"display","none")},gg=function(){!hg&&We&&Ee(We,"display","")};ql&&document.addEventListener("click",function(e){if(Tl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Tl=!1,!1},!0);var Ai=function(t){if(fe){t=t.touches?t.touches[0]:t;var n=xT(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[vn]._onDragOver(r)}}},_T=function(t){fe&&fe.parentNode[vn]._isOutsideThisEl(t.target)};function ke(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Qn({},t),e[vn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return pg(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ke.supportPointer!==!1&&"PointerEvent"in window&&!Ca,emptyInsertThreshold:5};us.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);vg(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:yT,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?lt(e,"pointerdown",this._onTapStart):(lt(e,"mousedown",this._onTapStart),lt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(e,"dragover",this),lt(e,"dragenter",this)),wl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Qn(this,pT())}ke.prototype={constructor:ke,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(fo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,fe):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,r=this.el,i=this.options,a=i.preventOnFilter,o=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(RT(r),!fe&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ca&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=or(l,i.draggable,r,!1),!(l&&l.animated)&&tl!==l)){if(wo=Ht(l),Ia=Ht(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){xn({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),wn("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=or(u,f.trim(),r,!1),f)return xn({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),wn("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!or(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,a=i.el,o=i.options,s=a.ownerDocument,l;if(r&&!fe&&r.parentNode===a){var u=Ft(r);if(Pt=a,fe=r,$t=fe.parentNode,Li=fe.nextSibling,tl=r,Es=o.group,ke.dragged=fe,Ri={target:fe,clientX:(n||t).clientX,clientY:(n||t).clientY},Ch=Ri.clientX-u.left,Eh=Ri.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,fe.style["will-change"]="all",l=function(){if(wn("delayEnded",i,{evt:t}),ke.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!bh&&i.nativeDraggable&&(fe.draggable=!0),i._triggerDragStart(t,n),xn({sortable:i,name:"choose",originalEvent:t}),Ut(fe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(c){cg(fe,c.trim(),Su)}),lt(s,"dragover",Ai),lt(s,"mousemove",Ai),lt(s,"touchmove",Ai),lt(s,"mouseup",i._onDrop),lt(s,"touchend",i._onDrop),lt(s,"touchcancel",i._onDrop),bh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,fe.draggable=!0),wn("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ls||Yr))){if(ke.eventCanceled){this._onDrop();return}lt(s,"mouseup",i._disableDelayedDrag),lt(s,"touchend",i._disableDelayedDrag),lt(s,"touchcancel",i._disableDelayedDrag),lt(s,"mousemove",i._delayedDragTouchMoveHandler),lt(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&<(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){fe&&Su(fe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._disableDelayedDrag),rt(t,"touchend",this._disableDelayedDrag),rt(t,"touchcancel",this._disableDelayedDrag),rt(t,"mousemove",this._delayedDragTouchMoveHandler),rt(t,"touchmove",this._delayedDragTouchMoveHandler),rt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(fe,"dragend",this),lt(Pt,"dragstart",this._onDragStart));try{document.selection?rl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(_o=!1,Pt&&fe){wn("dragStarted",this,{evt:n}),this.nativeDraggable&<(document,"dragover",_T);var r=this.options;!t&&Ut(fe,r.dragClass,!1),Ut(fe,r.ghostClass,!0),ke.active=this,t&&this._appendGhost(),xn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(qn){this._lastX=qn.clientX,this._lastY=qn.clientY,mg();for(var t=document.elementFromPoint(qn.clientX,qn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qn.clientX,qn.clientY),t!==n);)n=t;if(fe.parentNode[vn]._isOutsideThisEl(t),n)do{if(n[vn]){var r=void 0;if(r=n[vn]._onDragOver({clientX:qn.clientX,clientY:qn.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);gg()}},_onTouchMove:function(t){if(Ri){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,o=We&&qi(We,!0),s=We&&o&&o.a,l=We&&o&&o.d,u=Ss&&dn&&Th(dn),c=(a.clientX-Ri.clientX+i.x)/(s||1)+(u?u[0]-Iu[0]:0)/(s||1),f=(a.clientY-Ri.clientY+i.y)/(l||1)+(u?u[1]-Iu[1]:0)/(l||1);if(!ke.active&&!_o){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(xn({rootEl:$t,name:"add",toEl:$t,fromEl:Pt,originalEvent:t}),xn({sortable:this,name:"remove",toEl:$t,originalEvent:t}),xn({rootEl:$t,name:"sort",toEl:$t,fromEl:Pt,originalEvent:t}),xn({sortable:this,name:"sort",toEl:$t,originalEvent:t})),cn&&cn.save()):Pn!==wo&&Pn>=0&&(xn({sortable:this,name:"update",toEl:$t,originalEvent:t}),xn({sortable:this,name:"sort",toEl:$t,originalEvent:t})),ke.active&&((Pn==null||Pn===-1)&&(Pn=wo,oi=Ia),xn({sortable:this,name:"end",toEl:$t,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){wn("nulling",this),Pt=fe=$t=We=Li=jt=tl=si=Ri=qn=ca=Pn=oi=wo=Ia=fo=Sa=cn=Es=ke.dragged=ke.ghost=ke.clone=ke.active=null,Cl.forEach(function(t){t.checked=!0}),Cl.length=Cu=Eu=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":fe&&(this._onDragOver(t),TT(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,a=r.length,o=this.options;ir.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function IT(e,t,n,r,i,a,o,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!o){if(s&&nlc+u*a/2:lf-nl)return-Sa}else if(l>c+u*(1-i)/2&&lf-u*a/2)?l>c+u/2?1:-1:0}function ST(e){return Ht(fe)1&&(je.forEach(function(s){a.addAnimationState({target:s,rect:Cn?Ft(s):o}),Tu(s),s.fromRect=o,r.removeAnimationState(s)}),Cn=!1,MT(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,a=n.insertion,o=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(a){if(i&&o._hideClone(),Jo=!1,u.animation&&je.length>1&&(Cn||!i&&!o.options.sort&&!l)){var c=Ft(It,!1,!0,!0);je.forEach(function(d){d!==It&&(wh(d,c),s.appendChild(d))}),Cn=!0}if(!i)if(Cn||As(),je.length>1){var f=Rs;o._showClone(r),o.options.animation&&!Rs&&f&&On.forEach(function(d){o.addAnimationState({target:d,rect:Qo}),d.fromRect=Qo,d.thisAnimationDuration=null})}else o._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,a=n.activeSortable;if(je.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){Qo=Qn({},r);var o=qi(It,!0);Qo.top-=o.f,Qo.left-=o.e}},dragOverAnimationComplete:function(){Cn&&(Cn=!1,As())},drop:function(n){var r=n.originalEvent,i=n.rootEl,a=n.parentEl,o=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(!!r){var f=this.options,d=a.children;if(!ho)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ut(It,f.selectedClass,!~je.indexOf(It)),~je.indexOf(It))je.splice(je.indexOf(It),1),Zo=null,ua({sortable:o,rootEl:i,name:"deselect",targetEl:It,originalEvt:r});else{if(je.push(It),ua({sortable:o,rootEl:i,name:"select",targetEl:It,originalEvt:r}),r.shiftKey&&Zo&&o.el.contains(Zo)){var h=Ht(Zo),p=Ht(It);if(~h&&~p&&h!==p){var v,g;for(p>h?(g=h,v=p):(g=p,v=h+1);g1){var y=Ft(It),m=Ht(It,":not(."+this.options.selectedClass+")");if(!Jo&&f.animation&&(It.thisAnimationDuration=null),c.captureAnimationState(),!Jo&&(f.animation&&(It.fromRect=y,je.forEach(function(T){if(T.thisAnimationDuration=null,T!==It){var S=Cn?Ft(T):y;T.fromRect=S,c.addAnimationState({target:T,rect:S})}})),As(),je.forEach(function(T){d[m]?a.insertBefore(T,d[m]):a.appendChild(T),m++}),l===Ht(It))){var b=!1;je.forEach(function(T){if(T.sortableIndex!==Ht(T)){b=!0;return}}),b&&s("update")}je.forEach(function(T){Tu(T)}),c.animateAll()}er=c}(i===a||u&&u.lastPutMode!=="clone")&&On.forEach(function(T){T.parentNode&&T.parentNode.removeChild(T)})}},nullingGlobal:function(){this.isMultiDrag=ho=!1,On.length=0},destroyGlobal:function(){this._deselectMultiDrag(),rt(document,"pointerup",this._deselectMultiDrag),rt(document,"mouseup",this._deselectMultiDrag),rt(document,"touchend",this._deselectMultiDrag),rt(document,"keydown",this._checkKeyDown),rt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ho!="undefined"&&ho)&&er===this.sortable&&!(n&&or(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;je.length;){var r=je[0];Ut(r,this.options.selectedClass,!1),je.shift(),ua({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qn(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[vn];!r||!r.options.multiDrag||~je.indexOf(n)||(er&&er!==r&&(er.multiDrag._deselectMultiDrag(),er=r),Ut(n,r.options.selectedClass,!0),je.push(n))},deselect:function(n){var r=n.parentNode[vn],i=je.indexOf(n);!r||!r.options.multiDrag||!~i||(Ut(n,r.options.selectedClass,!1),je.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return je.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var o;Cn&&a!==It?o=-1:Cn?o=Ht(a,":not(."+n.options.selectedClass+")"):o=Ht(a),i.push({multiDragElement:a,index:o})}),{items:rT(je),clones:[].concat(On),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function MT(e,t){je.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Nh(e,t){On.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function As(){je.forEach(function(e){e!==It&&e.parentNode&&e.parentNode.removeChild(e)})}ke.mount(new AT);ke.mount(Hf,jf);var LT=Object.freeze(Object.defineProperty({__proto__:null,default:ke,MultiDrag:FT,Sortable:ke,Swap:OT},Symbol.toStringTag,{value:"Module"})),UT=zm(LT);(function(e,t){(function(r,i){e.exports=i(q_,UT)})(typeof self!="undefined"?self:Js,function(n,r){return function(i){var a={};function o(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=i,o.c=a,o.d=function(s,l,u){o.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},o.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,l){if(l&1&&(s=o(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)o.d(u,c,function(f){return s[f]}.bind(null,c));return u},o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,"a",l),l},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.p="",o(o.s="fb15")}({"00ee":function(i,a,o){var s=o("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,a,o){var s=o("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,a,o){var s=o("fc6a"),l=o("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(i,a,o){var s=o("83ab"),l=o("d1e7"),u=o("5c6c"),c=o("fc6a"),f=o("c04e"),d=o("5135"),h=o("0cfb"),p=Object.getOwnPropertyDescriptor;a.f=s?p:function(g,y){if(g=c(g),y=f(y,!0),h)try{return p(g,y)}catch{}if(d(g,y))return u(!l.f.call(g,y),g[y])}},"0cfb":function(i,a,o){var s=o("83ab"),l=o("d039"),u=o("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,a,o){var s=o("23e7"),l=o("d58f").left,u=o("a640"),c=o("ae40"),f=u("reduce"),d=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,a,o){var s=o("c6b6"),l=o("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,a,o){var s=o("da84"),l=o("fdbc"),u=o("17c2"),c=o("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,a,o){var s=o("b727").forEach,l=o("a640"),u=o("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,a,o){var s=o("d066");i.exports=s("document","documentElement")},"1c0b":function(i,a){i.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(i,a,o){var s=o("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var p=!1;try{var v={};v[l]=function(){return{next:function(){return{done:p=!0}}}},d(v)}catch{}return p}},"1d80":function(i,a){i.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(i,a,o){var s=o("d039"),l=o("b622"),u=o("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(i,a,o){var s=o("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var d=s(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(i,a,o){var s=o("da84"),l=o("06cf").f,u=o("9112"),c=o("6eeb"),f=o("ce4e"),d=o("e893"),h=o("94ca");i.exports=function(p,v){var g=p.target,y=p.global,m=p.stat,b,T,S,w,N,I;if(y?T=s:m?T=s[g]||f(g,{}):T=(s[g]||{}).prototype,T)for(S in v){if(N=v[S],p.noTargetGet?(I=l(T,S),w=I&&I.value):w=T[S],b=h(y?S:g+(m?".":"#")+S,p.forced),!b&&w!==void 0){if(typeof N==typeof w)continue;d(N,w)}(p.sham||w&&w.sham)&&u(N,"sham",!0),c(T,S,N,p)}}},"241c":function(i,a,o){var s=o("ca84"),l=o("7839"),u=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},"25f0":function(i,a,o){var s=o("6eeb"),l=o("825a"),u=o("d039"),c=o("ad6d"),f="toString",d=RegExp.prototype,h=d[f],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=f;(p||v)&&s(RegExp.prototype,f,function(){var y=l(this),m=String(y.source),b=y.flags,T=String(b===void 0&&y instanceof RegExp&&!("flags"in d)?c.call(y):b);return"/"+m+"/"+T},{unsafe:!0})},"2ca0":function(i,a,o){var s=o("23e7"),l=o("06cf").f,u=o("50c4"),c=o("5a34"),f=o("1d80"),d=o("ab13"),h=o("c430"),p="".startsWith,v=Math.min,g=d("startsWith"),y=!h&&!g&&!!function(){var m=l(String.prototype,"startsWith");return m&&!m.writable}();s({target:"String",proto:!0,forced:!y&&!g},{startsWith:function(b){var T=String(f(this));c(b);var S=u(v(arguments.length>1?arguments[1]:void 0,T.length)),w=String(b);return p?p.call(T,w,S):T.slice(S,S+w.length)===w}})},"2d00":function(i,a,o){var s=o("da84"),l=o("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,a,o){var s=o("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,a,o){var s=o("f5df"),l=o("3f8c"),u=o("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}},"37e8":function(i,a,o){var s=o("83ab"),l=o("9bf2"),u=o("825a"),c=o("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var p=c(h),v=p.length,g=0,y;v>g;)l.f(d,y=p[g++],h[y]);return d}},"3bbe":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,a,o){var s=o("6547").charAt,l=o("69f3"),u=o("7dd0"),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var p=d(this),v=p.string,g=p.index,y;return g>=v.length?{value:void 0,done:!0}:(y=s(v,g),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(i,a){i.exports={}},4160:function(i,a,o){var s=o("23e7"),l=o("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,a,o){var s=o("da84");i.exports=s},"44ad":function(i,a,o){var s=o("d039"),l=o("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,a,o){var s=o("b622"),l=o("7c73"),u=o("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(d){f[c][d]=!0}},"44e7":function(i,a,o){var s=o("861d"),l=o("c6b6"),u=o("b622"),c=u("match");i.exports=function(f){var d;return s(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},4930:function(i,a,o){var s=o("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,a,o){var s=o("fc6a"),l=o("50c4"),u=o("23cb"),c=function(f){return function(d,h,p){var v=s(d),g=l(v.length),y=u(p,g),m;if(f&&h!=h){for(;g>y;)if(m=v[y++],m!=m)return!0}else for(;g>y;y++)if((f||y in v)&&v[y]===h)return f||y||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,a,o){var s=o("23e7"),l=o("b727").filter,u=o("1dde"),c=o("ae40"),f=u("filter"),d=c("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,a,o){var s=o("0366"),l=o("7b0b"),u=o("9bdd"),c=o("e95a"),f=o("50c4"),d=o("8418"),h=o("35a1");i.exports=function(v){var g=l(v),y=typeof this=="function"?this:Array,m=arguments.length,b=m>1?arguments[1]:void 0,T=b!==void 0,S=h(g),w=0,N,I,R,U,$,z;if(T&&(b=s(b,m>2?arguments[2]:void 0,2)),S!=null&&!(y==Array&&c(S)))for(U=S.call(g),$=U.next,I=new y;!(R=$.call(U)).done;w++)z=T?u(U,b,[R.value,w],!0):R.value,d(I,w,z);else for(N=f(g.length),I=new y(N);N>w;w++)z=T?b(g[w],w):g[w],d(I,w,z);return I.length=w,I}},"4fad":function(i,a,o){var s=o("23e7"),l=o("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,a,o){var s=o("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,a){var o={}.hasOwnProperty;i.exports=function(s,l){return o.call(s,l)}},5319:function(i,a,o){var s=o("d784"),l=o("825a"),u=o("7b0b"),c=o("50c4"),f=o("a691"),d=o("1d80"),h=o("8aa5"),p=o("14c3"),v=Math.max,g=Math.min,y=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,T=function(S){return S===void 0?S:String(S)};s("replace",2,function(S,w,N,I){var R=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,U=I.REPLACE_KEEPS_$0,$=R?"$":"$0";return[function(B,he){var Y=d(this),oe=B==null?void 0:B[S];return oe!==void 0?oe.call(B,Y,he):w.call(String(Y),B,he)},function(j,B){if(!R&&U||typeof B=="string"&&B.indexOf($)===-1){var he=N(w,j,this,B);if(he.done)return he.value}var Y=l(j),oe=String(this),me=typeof B=="function";me||(B=String(B));var Ke=Y.global;if(Ke){var re=Y.unicode;Y.lastIndex=0}for(var de=[];;){var ye=p(Y,oe);if(ye===null||(de.push(ye),!Ke))break;var Se=String(ye[0]);Se===""&&(Y.lastIndex=h(oe,c(Y.lastIndex),re))}for(var k="",X=0,ce=0;ce=X&&(k+=oe.slice(X,Ve)+E,X=Ve+ue.length)}return k+oe.slice(X)}];function z(j,B,he,Y,oe,me){var Ke=he+j.length,re=Y.length,de=b;return oe!==void 0&&(oe=u(oe),de=m),w.call(me,de,function(ye,Se){var k;switch(Se.charAt(0)){case"$":return"$";case"&":return j;case"`":return B.slice(0,he);case"'":return B.slice(Ke);case"<":k=oe[Se.slice(1,-1)];break;default:var X=+Se;if(X===0)return ye;if(X>re){var ce=y(X/10);return ce===0?ye:ce<=re?Y[ce-1]===void 0?Se.charAt(1):Y[ce-1]+Se.charAt(1):ye}k=Y[X-1]}return k===void 0?"":k})}})},5692:function(i,a,o){var s=o("c430"),l=o("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,a,o){var s=o("d066"),l=o("241c"),u=o("7418"),c=o("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(c(d)),p=u.f;return p?h.concat(p(d)):h}},"5a34":function(i,a,o){var s=o("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,a){i.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},"5db7":function(i,a,o){var s=o("23e7"),l=o("a2bf"),u=o("7b0b"),c=o("50c4"),f=o("1c0b"),d=o("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var v=u(this),g=c(v.length),y;return f(p),y=d(v,0),y.length=l(y,v,v,g,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},6547:function(i,a,o){var s=o("a691"),l=o("1d80"),u=function(c){return function(f,d){var h=String(l(f)),p=s(d),v=h.length,g,y;return p<0||p>=v?c?"":void 0:(g=h.charCodeAt(p),g<55296||g>56319||p+1===v||(y=h.charCodeAt(p+1))<56320||y>57343?c?h.charAt(p):g:c?h.slice(p,p+2):(g-55296<<10)+(y-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,a,o){var s=o("861d"),l=o("e8b5"),u=o("b622"),c=u("species");i.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,a,o){var s=o("7f9a"),l=o("da84"),u=o("861d"),c=o("9112"),f=o("5135"),d=o("f772"),h=o("d012"),p=l.WeakMap,v,g,y,m=function(R){return y(R)?g(R):v(R,{})},b=function(R){return function(U){var $;if(!u(U)||($=g(U)).type!==R)throw TypeError("Incompatible receiver, "+R+" required");return $}};if(s){var T=new p,S=T.get,w=T.has,N=T.set;v=function(R,U){return N.call(T,R,U),U},g=function(R){return S.call(T,R)||{}},y=function(R){return w.call(T,R)}}else{var I=d("state");h[I]=!0,v=function(R,U){return c(R,I,U),U},g=function(R){return f(R,I)?R[I]:{}},y=function(R){return f(R,I)}}i.exports={set:v,get:g,has:y,enforce:m,getterFor:b}},"6eeb":function(i,a,o){var s=o("da84"),l=o("9112"),u=o("5135"),c=o("ce4e"),f=o("8925"),d=o("69f3"),h=d.get,p=d.enforce,v=String(String).split("String");(i.exports=function(g,y,m,b){var T=b?!!b.unsafe:!1,S=b?!!b.enumerable:!1,w=b?!!b.noTargetGet:!1;if(typeof m=="function"&&(typeof y=="string"&&!u(m,"name")&&l(m,"name",y),p(m).source=v.join(typeof y=="string"?y:"")),g===s){S?g[y]=m:c(y,m);return}else T?!w&&g[y]&&(S=!0):delete g[y];S?g[y]=m:l(g,y,m)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(i,a,o){var s=o("83ab"),l=o("df75"),u=o("fc6a"),c=o("d1e7").f,f=function(d){return function(h){for(var p=u(h),v=l(p),g=v.length,y=0,m=[],b;g>y;)b=v[y++],(!s||c.call(p,b))&&m.push(d?[b,p[b]]:p[b]);return m}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,a,o){var s=o("44d2");s("flatMap")},7418:function(i,a){a.f=Object.getOwnPropertySymbols},"746f":function(i,a,o){var s=o("428f"),l=o("5135"),u=o("e538"),c=o("9bf2").f;i.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||c(d,f,{value:u.f(f)})}},7839:function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,a,o){var s=o("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,a,o){var s=o("825a"),l=o("37e8"),u=o("7839"),c=o("d012"),f=o("1be4"),d=o("cc12"),h=o("f772"),p=">",v="<",g="prototype",y="script",m=h("IE_PROTO"),b=function(){},T=function(R){return v+y+p+R+v+"/"+y+p},S=function(R){R.write(T("")),R.close();var U=R.parentWindow.Object;return R=null,U},w=function(){var R=d("iframe"),U="java"+y+":",$;return R.style.display="none",f.appendChild(R),R.src=String(U),$=R.contentWindow.document,$.open(),$.write(T("document.F=Object")),$.close(),$.F},N,I=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}I=N?S(N):w();for(var R=u.length;R--;)delete I[g][u[R]];return I()};c[m]=!0,i.exports=Object.create||function(U,$){var z;return U!==null?(b[g]=s(U),z=new b,b[g]=null,z[m]=U):z=I(),$===void 0?z:l(z,$)}},"7dd0":function(i,a,o){var s=o("23e7"),l=o("9ed3"),u=o("e163"),c=o("d2bb"),f=o("d44e"),d=o("9112"),h=o("6eeb"),p=o("b622"),v=o("c430"),g=o("3f8c"),y=o("ae93"),m=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,T=p("iterator"),S="keys",w="values",N="entries",I=function(){return this};i.exports=function(R,U,$,z,j,B,he){l($,U,z);var Y=function(ce){if(ce===j&&de)return de;if(!b&&ce in Ke)return Ke[ce];switch(ce){case S:return function(){return new $(this,ce)};case w:return function(){return new $(this,ce)};case N:return function(){return new $(this,ce)}}return function(){return new $(this)}},oe=U+" Iterator",me=!1,Ke=R.prototype,re=Ke[T]||Ke["@@iterator"]||j&&Ke[j],de=!b&&re||Y(j),ye=U=="Array"&&Ke.entries||re,Se,k,X;if(ye&&(Se=u(ye.call(new R)),m!==Object.prototype&&Se.next&&(!v&&u(Se)!==m&&(c?c(Se,m):typeof Se[T]!="function"&&d(Se,T,I)),f(Se,oe,!0,!0),v&&(g[oe]=I))),j==w&&re&&re.name!==w&&(me=!0,de=function(){return re.call(this)}),(!v||he)&&Ke[T]!==de&&d(Ke,T,de),g[U]=de,j)if(k={values:Y(w),keys:B?de:Y(S),entries:Y(N)},he)for(X in k)(b||me||!(X in Ke))&&h(Ke,X,k[X]);else s({target:U,proto:!0,forced:b||me},k);return k}},"7f9a":function(i,a,o){var s=o("da84"),l=o("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,a,o){var s=o("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,a,o){var s=o("c04e"),l=o("9bf2"),u=o("5c6c");i.exports=function(c,f,d){var h=s(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},"861d":function(i,a){i.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(i,a,o){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(a,l):s,u!==void 0&&(i.exports=u)})(typeof self!="undefined"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(N){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=d.exec(N.stack)||h.exec(N.stack),v=p&&p[1]||!1,g=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),m,b,T,S=document.getElementsByTagName("script");v===y&&(m=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]* - - - - - - - - - - - - - - - - - - - - - - - - + +