!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=511)}([function(e,t,n){"use strict";e.exports=n(505)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(446)),o=l(n(373)),i=l(n(348)),a=l(n(347)),s=l(n(346)),u=l(n(345));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},t.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},t.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},t.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},t.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},function(e,t,n){"use strict";t.__esModule=!0,t.autoDetectRenderer=t.Application=t.Filter=t.SpriteMaskFilter=t.Quad=t.RenderTarget=t.ObjectRenderer=t.WebGLManager=t.Shader=t.CanvasRenderTarget=t.TextureUvs=t.VideoBaseTexture=t.BaseRenderTexture=t.RenderTexture=t.BaseTexture=t.TextureMatrix=t.Texture=t.Spritesheet=t.CanvasGraphicsRenderer=t.GraphicsRenderer=t.GraphicsData=t.Graphics=t.TextMetrics=t.TextStyle=t.Text=t.SpriteRenderer=t.CanvasTinter=t.CanvasSpriteRenderer=t.Sprite=t.TransformBase=t.TransformStatic=t.Transform=t.Container=t.DisplayObject=t.Bounds=t.glCore=t.WebGLRenderer=t.CanvasRenderer=t.ticker=t.utils=t.settings=void 0;var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(9);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(10);Object.defineProperty(t,"glCore",{enumerable:!0,get:function(){return Y(i).default}});var a=n(60);Object.defineProperty(t,"Bounds",{enumerable:!0,get:function(){return Y(a).default}});var s=n(122);Object.defineProperty(t,"DisplayObject",{enumerable:!0,get:function(){return Y(s).default}});var u=n(30);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return Y(u).default}});var l=n(120);Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return Y(l).default}});var c=n(121);Object.defineProperty(t,"TransformStatic",{enumerable:!0,get:function(){return Y(c).default}});var d=n(58);Object.defineProperty(t,"TransformBase",{enumerable:!0,get:function(){return Y(d).default}});var f=n(56);Object.defineProperty(t,"Sprite",{enumerable:!0,get:function(){return Y(f).default}});var h=n(259);Object.defineProperty(t,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return Y(h).default}});var p=n(52);Object.defineProperty(t,"CanvasTinter",{enumerable:!0,get:function(){return Y(p).default}});var y=n(256);Object.defineProperty(t,"SpriteRenderer",{enumerable:!0,get:function(){return Y(y).default}});var v=n(240);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return Y(v).default}});var m=n(106);Object.defineProperty(t,"TextStyle",{enumerable:!0,get:function(){return Y(m).default}});var g=n(105);Object.defineProperty(t,"TextMetrics",{enumerable:!0,get:function(){return Y(g).default}});var b=n(238);Object.defineProperty(t,"Graphics",{enumerable:!0,get:function(){return Y(b).default}});var _=n(104);Object.defineProperty(t,"GraphicsData",{enumerable:!0,get:function(){return Y(_).default}});var x=n(236);Object.defineProperty(t,"GraphicsRenderer",{enumerable:!0,get:function(){return Y(x).default}});var w=n(229);Object.defineProperty(t,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return Y(w).default}});var E=n(228);Object.defineProperty(t,"Spritesheet",{enumerable:!0,get:function(){return Y(E).default}});var S=n(16);Object.defineProperty(t,"Texture",{enumerable:!0,get:function(){return Y(S).default}});var T=n(108);Object.defineProperty(t,"TextureMatrix",{enumerable:!0,get:function(){return Y(T).default}});var O=n(23);Object.defineProperty(t,"BaseTexture",{enumerable:!0,get:function(){return Y(O).default}});var C=n(53);Object.defineProperty(t,"RenderTexture",{enumerable:!0,get:function(){return Y(C).default}});var P=n(113);Object.defineProperty(t,"BaseRenderTexture",{enumerable:!0,get:function(){return Y(P).default}});var M=n(116);Object.defineProperty(t,"VideoBaseTexture",{enumerable:!0,get:function(){return Y(M).default}});var k=n(115);Object.defineProperty(t,"TextureUvs",{enumerable:!0,get:function(){return Y(k).default}});var A=n(112);Object.defineProperty(t,"CanvasRenderTarget",{enumerable:!0,get:function(){return Y(A).default}});var R=n(27);Object.defineProperty(t,"Shader",{enumerable:!0,get:function(){return Y(R).default}});var I=n(28);Object.defineProperty(t,"WebGLManager",{enumerable:!0,get:function(){return Y(I).default}});var D=n(38);Object.defineProperty(t,"ObjectRenderer",{enumerable:!0,get:function(){return Y(D).default}});var j=n(36);Object.defineProperty(t,"RenderTarget",{enumerable:!0,get:function(){return Y(j).default}});var N=n(107);Object.defineProperty(t,"Quad",{enumerable:!0,get:function(){return Y(N).default}});var L=n(110);Object.defineProperty(t,"SpriteMaskFilter",{enumerable:!0,get:function(){return Y(L).default}});var F=n(109);Object.defineProperty(t,"Filter",{enumerable:!0,get:function(){return Y(F).default}});var B=n(103);Object.defineProperty(t,"Application",{enumerable:!0,get:function(){return Y(B).default}});var U=n(102);Object.defineProperty(t,"autoDetectRenderer",{enumerable:!0,get:function(){return U.autoDetectRenderer}});var H=V(n(5)),W=V(n(54)),z=Y(n(7)),X=Y(n(29)),G=Y(n(37));function V(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Y(e){return e&&e.__esModule?e:{default:e}}t.settings=z.default,t.utils=H,t.ticker=W,t.CanvasRenderer=X.default,t.WebGLRenderer=G.default},function(e,t,n){"use strict";t.__esModule=!0,t.premultiplyBlendMode=t.BaseTextureCache=t.TextureCache=t.earcut=t.mixins=t.pluginTarget=t.EventEmitter=t.removeItems=t.isMobile=void 0,t.uid=function(){return++p},t.hex2rgb=function(e,t){return(t=t||[])[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},t.hex2string=function(e){return e=e.toString(16),"#"+(e="000000".substr(0,6-e.length)+e)},t.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},t.getResolutionOfUrl=function(e,t){var n=o.default.RETINA_PREFIX.exec(e);if(n)return parseFloat(n[1]);return void 0!==t?t:1},t.decomposeDataUri=function(e){var t=r.DATA_URI.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,encoding:t[3]?t[3].toLowerCase():void 0,data:t[4]};return},t.getUrlFileExtension=function(e){var t=r.URL_FILE_EXTENSION.exec(e);if(t)return t[1].toLowerCase();return},t.getSvgSize=function(e){var t=r.SVG_SIZE.exec(e),n={};t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7])));return n},t.skipHello=function(){y=!0},t.sayHello=function(e){if(y)return;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+r.VERSION+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","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;"];window.console.log.apply(console,t)}else window.console&&window.console.log("PixiJS "+r.VERSION+" - "+e+" - http://www.pixijs.com/");y=!0},t.isWebGLSupported=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),n=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),r=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,r}catch(e){return!1}},t.sign=function(e){return 0===e?0:e<0?-1:1},t.destroyTextureCache=function(){var e=void 0;for(e in v)v[e].destroy();for(e in m)m[e].destroy()},t.clearTextureCache=function(){var e=void 0;for(e in v)delete v[e];for(e in m)delete m[e]},t.correctBlendMode=function(e,t){return g[t?1:0][e]},t.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var n=e>>16&255,r=e>>8&255,o=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(o=o*t+.5|0)},t.premultiplyRgba=function(e,t,n,r){n=n||new Float32Array(4),r||void 0===r?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n[3]=t,n},t.premultiplyTintToRgba=function(e,t,n,r){(n=n||new Float32Array(4))[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(255&e)/255,(r||void 0===r)&&(n[0]*=t,n[1]*=t,n[2]*=t);return n[3]=t,n};var r=n(3),o=h(n(7)),i=h(n(18)),a=h(n(270)),s=f(n(269)),u=f(n(59)),l=h(n(268)),c=h(n(267)),d=h(n(57));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}var p=0,y=!1;t.isMobile=u,t.removeItems=l.default,t.EventEmitter=i.default,t.pluginTarget=a.default,t.mixins=s,t.earcut=d.default;var v=t.TextureCache=Object.create(null),m=t.BaseTextureCache=Object.create(null);var g=t.premultiplyBlendMode=(0,c.default)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(344);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return d(r).default}});var o=n(138);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return d(o).default}});var i=n(341);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return d(i).default}});var a=n(340);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return d(a).default}});var s=n(338);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return d(s).default}});var u=n(337);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return d(u).default}});var l=n(136);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return d(l).default}});var c=n(330);function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return d(c).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(272)),o=i(n(271));function i(e){return e&&e.__esModule?e:{default:e}}t.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,r.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@([0-9\.]+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1,width:800,height:600,legacy:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,o.default)(),MESH_CANVAS_PADDING:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=t.connectAdvanced=t.createProvider=t.Provider=void 0;var r=n(493),o=s(r),i=s(n(181)),a=s(n(487));function s(e){return e&&e.__esModule?e:{default:e}}t.Provider=o.default,t.createProvider=r.createProvider,t.connectAdvanced=i.default,t.connect=a.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(64);Object.defineProperty(t,"Point",{enumerable:!0,get:function(){return f(r).default}});var o=n(133);Object.defineProperty(t,"ObservablePoint",{enumerable:!0,get:function(){return f(o).default}});var i=n(63);Object.defineProperty(t,"Matrix",{enumerable:!0,get:function(){return f(i).default}});var a=n(132);Object.defineProperty(t,"GroupD8",{enumerable:!0,get:function(){return f(a).default}});var s=n(282);Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return f(s).default}});var u=n(281);Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return f(u).default}});var l=n(280);Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return f(l).default}});var c=n(62);Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return f(c).default}});var d=n(279);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"RoundedRectangle",{enumerable:!0,get:function(){return f(d).default}})},function(e,t,n){"use strict";var r={createContext:n(278),setVertexAttribArrays:n(131),GLBuffer:n(277),GLFramebuffer:n(276),GLShader:n(275),GLTexture:n(130),VertexArrayObject:n(274),shader:n(273)};void 0!==e&&e.exports&&(e.exports=r),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=r)},function(e,t,n){"use strict";var r=Array.isArray;e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=void 0;var r=i(n(332)),o=i(n(172));function i(e){return e&&e.__esModule?e:{default:e}}t.default={simpleCheckForValidColor:function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}}),t===n&&e},toState:function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},isValidHex:function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},getContrastingColor:function(e){if(!e)return"#fff";var t=this.toState(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"}};t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(171),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t,n){"use strict";(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return r.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return(e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u2&&void 0!==arguments[2]?arguments[2]:"canvas";return new t(i.default.fromCanvas(e,n,r))},t.fromVideo=function(e,n){return"string"==typeof e?t.fromVideoUrl(e,n):new t(a.default.fromVideo(e,n))},t.fromVideoUrl=function(e,n){return new t(a.default.fromUrl(e,n))},t.from=function(e){if("string"==typeof e){var n=c.TextureCache[e];return n||(null!==e.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?t.fromVideoUrl(e):t.fromImage(e))}return e instanceof HTMLImageElement?new t(i.default.from(e)):e instanceof HTMLCanvasElement?t.fromCanvas(e,d.default.SCALE_MODE,"HTMLCanvasElement"):e instanceof HTMLVideoElement?t.fromVideo(e):e instanceof i.default?new t(e):e},t.fromLoader=function(e,n,r){var o=new i.default(e,void 0,(0,c.getResolutionOfUrl)(n)),a=new t(o);return o.imageUrl=n,r||(r=n),i.default.addToCache(a.baseTexture,r),t.addToCache(a,r),r!==n&&(i.default.addToCache(a.baseTexture,n),t.addToCache(a,n)),a},t.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),c.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),c.TextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=c.TextureCache[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete c.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var r=0;rthis.baseTexture.width,a=n+o>this.baseTexture.height;if(i||a){var s=i&&a?"and":"or",u="X: "+t+" + "+r+" = "+(t+r)+" > "+this.baseTexture.width,l="Y: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+s+" "+l)}this.valid=r&&o&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=e),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),t}(u.default);function p(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}t.default=h,h.EMPTY=new h(new i.default),p(h.EMPTY),p(h.EMPTY.baseTexture),h.WHITE=function(){var e=document.createElement("canvas");e.width=10,e.height=10;var t=e.getContext("2d");return t.fillStyle="white",t.fillRect(0,0,10,10),new h(new i.default(e))}(),p(h.WHITE),p(h.WHITE.baseTexture)},function(e,t,n){"use strict";var r=n(161),o=n(431),i=n(375),a=n(11);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i1&&void 0!==arguments[1]?arguments[1]:"",u=arguments[2];return Object.keys(t).map(function(l){var c=t[l];if(null===c)return"";if("object"===(void 0===c?"undefined":r(c))){var d=/^@/.test(l)?l:null;return e(c,d?n:n+l,d||u)}var f=l+c+n+u;if(o[f])return o[f];var h=i+a.length.toString(36);return s(function(e,t){return t?t+"{"+e+"}":e}(function(e,t,n){return"."+e+"{"+t.replace(/[A-Z]|^ms/g,"-$&").toLowerCase()+":"+n+"}"}(h+n.replace(/&/g,""),l,c),u)),o[f]=h,h}).join(" ")}(e)}).join(" ").trim()},e.exports.css=function(){return a.sort().join("")},e.exports.reset=function(){for(o={};a.length;)a.pop()},e.exports.prefix=function(e){return i=e},"undefined"!=typeof document){var u=document.head.appendChild(document.createElement("style")).sheet;s=function(e){a.push(e),u.insertRule(e,u.cssRules.length)}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=n(5),i=l(n(7)),a=l(n(18)),s=l(n(119)),u=l(n(55));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return u.uid=(0,o.uid)(),u.touched=0,u.resolution=s||i.default.RESOLUTION,u.width=100,u.height=100,u.realWidth=100,u.realHeight=100,u.scaleMode=void 0!==a?a:i.default.SCALE_MODE,u.hasLoaded=!1,u.isLoading=!1,u.source=null,u.origSource=null,u.imageType=null,u.sourceScale=1,u.premultipliedAlpha=!0,u.imageUrl=null,u.isPowerOfTwo=!1,u.mipmap=i.default.MIPMAP_TEXTURES,u.wrapMode=i.default.WRAP_MODE,u._glTextures={},u._enabled=0,u._virtalBoundId=-1,u._destroyed=!1,u.textureCacheIds=[],n&&u.loadSource(n),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.update=function(){"svg"!==this.imageType&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this._updateDimensions()),this.emit("update",this)},t.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=u.default.isPow2(this.realWidth)&&u.default.isPow2(this.realHeight)},t.prototype.loadSource=function(e){var t=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,t&&this.source&&(this.source.onload=null,this.source.onerror=null);var n=!this.source;if(this.source=e,(e.src&&e.complete||e.getContext)&&e.width&&e.height)this._updateImageType(),"svg"===this.imageType?this._loadSvgSource():this._sourceLoaded(),n&&this.emit("loaded",this);else if(!e.getContext){this.isLoading=!0;var r=this;if(e.onload=function(){r._updateImageType(),e.onload=null,e.onerror=null,r.isLoading&&(r.isLoading=!1,r._sourceLoaded(),"svg"!==r.imageType?r.emit("loaded",r):r._loadSvgSource())},e.onerror=function(){e.onload=null,e.onerror=null,r.isLoading&&(r.isLoading=!1,r.emit("error",r))},e.complete&&e.src){if(e.onload=null,e.onerror=null,"svg"===r.imageType)return void r._loadSvgSource();this.isLoading=!1,e.width&&e.height?(this._sourceLoaded(),t&&this.emit("loaded",this)):t&&this.emit("error",this)}}},t.prototype._updateImageType=function(){if(this.imageUrl){var e=(0,o.decomposeDataUri)(this.imageUrl),t=void 0;if(e&&"image"===e.mediaType){var n=e.subType.split("+")[0];if(!(t=(0,o.getUrlFileExtension)("."+n)))throw new Error("Invalid image type in data URI.")}else(t=(0,o.getUrlFileExtension)(this.imageUrl))||(t="png");this.imageType=t}},t.prototype._loadSvgSource=function(){if("svg"===this.imageType){var e=(0,o.decomposeDataUri)(this.imageUrl);e?this._loadSvgSourceUsingDataUri(e):this._loadSvgSourceUsingXhr()}},t.prototype._loadSvgSourceUsingDataUri=function(e){var t=void 0;if("base64"===e.encoding){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");t=atob(e.data)}else t=e.data;this._loadSvgSourceUsingString(t)},t.prototype._loadSvgSourceUsingXhr=function(){var e=this,t=new XMLHttpRequest;t.onload=function(){if(t.readyState!==t.DONE||200!==t.status)throw new Error("Failed to load SVG using XHR.");e._loadSvgSourceUsingString(t.response)},t.onerror=function(){return e.emit("error",e)},t.open("GET",this.imageUrl,!0),t.send()},t.prototype._loadSvgSourceUsingString=function(e){var n=(0,o.getSvgSize)(e),r=n.width,i=n.height;if(!r||!i)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(r*this.sourceScale),this.realHeight=Math.round(i*this.sourceScale),this._updateDimensions();var a=document.createElement("canvas");a.width=this.realWidth,a.height=this.realHeight,a._pixiId="canvas_"+(0,o.uid)(),a.getContext("2d").drawImage(this.source,0,0,r,i,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=a,t.addToCache(this,a._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},t.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},t.prototype.destroy=function(){this.imageUrl&&(delete o.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.updateSourceImage=function(e){this.source.src=e,this.loadSource(this.source)},t.fromImage=function(e,n,r,i){var a=o.BaseTextureCache[e];if(!a){var u=new Image;void 0===n&&0!==e.indexOf("data:")?u.crossOrigin=(0,s.default)(e):n&&(u.crossOrigin="string"==typeof n?n:"anonymous"),(a=new t(u,r)).imageUrl=e,i&&(a.sourceScale=i),a.resolution=(0,o.getResolutionOfUrl)(e),u.src=e,t.addToCache(a,e)}return a},t.fromCanvas=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";e._pixiId||(e._pixiId=r+"_"+(0,o.uid)());var i=o.BaseTextureCache[e._pixiId];return i||(i=new t(e,n),t.addToCache(i,e._pixiId)),i},t.from=function(e,n,r){if("string"==typeof e)return t.fromImage(e,void 0,n,r);if(e instanceof HTMLImageElement){var i=e.src,a=o.BaseTextureCache[i];return a||((a=new t(e,n)).imageUrl=i,r&&(a.sourceScale=r),a.resolution=(0,o.getResolutionOfUrl)(i),t.addToCache(a,i)),a}return e instanceof HTMLCanvasElement?t.fromCanvas(e,n):e},t.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),o.BaseTextureCache[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),o.BaseTextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=o.BaseTextureCache[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete o.BaseTextureCache[e],t}}else if(e&&e.textureCacheIds){for(var r=0;r1)for(var n=0;nthis.children.length)throw new Error(e+"addChildAt: The index "+t+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),e},t.prototype.swapChildren=function(e,t){if(e!==t){var n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+t+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);(0,a.removeItems)(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(e){var t=arguments.length;if(t>1)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],n=e,r="number"==typeof t?t:this.children.length,o=r-n,i=void 0;if(o>0&&o<=r){i=this.children.splice(n,o);for(var a=0;a196*p*p?(k=O-P,A=C-M,R=Math.sqrt(k*k+A*A),k/=R,A/=R,k*=p,A*=p,l.push(w-k,E-A),l.push(m,g,b,v),l.push(w+k,E+A),l.push(m,g,b,v),l.push(w-k,E-A),l.push(m,g,b,v),f++):(l.push(H,W),l.push(m,g,b,v),l.push(w-(H-w),E-(W-E)),l.push(m,g,b,v))}}_=n[2*(d-2)],x=n[2*(d-2)+1],w=n[2*(d-1)],E=n[2*(d-1)+1],O=-(x-E),C=_-w,R=Math.sqrt(O*O+C*C),O/=R,C/=R,O*=p,C*=p,l.push(w-O,E-C),l.push(m,g,b,v),l.push(w+O,E+C),l.push(m,g,b,v),c.push(h);for(var X=0;X2&&void 0!==arguments[2]?arguments[2]:0,r=Math.random()*(t-e)+e;r=0===n?Math.floor(r):Math.floor(r*Math.pow(10,n))/Math.pow(10,n);return r};t.scale=function(e,t,n,r){void 0===r&&(r=!0);var o=e+(t-e)*n;return r?Math.round(o):o};t.padZeroes=function(e){return e<10?"0"+e:e},t.setPageZoom=function(e){return document.getElementById("root").style.zoom=e,!0},t.interpolatePoints=function(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}},function(e,t,n){"use strict";var r=n(143),o=n(142);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s=0;r--)this.add(e.children[r]);return this},e.prototype.destroy=function(){this.ticking&&s.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},e}();function l(e,t){var n=!1;if(e&&e._textures&&e._textures.length)for(var r=0;r0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?r=200:1223===r&&(r=204),2===(r/100|0)){if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=n,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(n),this.type=e.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var o=new DOMParser;this.data=o.parseFromString(n,"text/xml")}else{var i=document.createElement("div");i.innerHTML=n,this.data=i}this.type=e.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=t.response||n;this.complete()}else this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL)},e.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";t=t||window.location,u||(u=document.createElement("a")),u.href=e;var n=!(e=(0,o.default)(u.href,{strictMode:!0})).port&&""===t.port||e.port===t.port,r=e.protocol?e.protocol+":":"";return e.host===t.hostname&&n&&r===t.protocol?"":"anonymous"},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(){var e=this.url,t="";if(this.isDataUrl){var n=e.indexOf("/");t=e.substring(n+1,e.indexOf(";",n))}else{var r=e.indexOf("?"),o=e.indexOf("#"),i=Math.min(r>-1?r:e.length,o>-1?o:e.length);t=(e=e.substring(0,i)).substring(e.lastIndexOf(".")+1)}return t.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},r(e,[{key:"isDataUrl",get:function(){return this._hasFlag(e.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(e.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(e.STATUS_FLAGS.LOADING)}}]),e}();function d(e,t,n){t&&0===t.indexOf(".")&&(t=t.substring(1)),t&&(e[t]=n)}function f(e){return e.toString().replace("object ","")}t.default=c,c.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},c.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},c.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},c.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},c._loadTypeMap={gif:c.LOAD_TYPE.IMAGE,png:c.LOAD_TYPE.IMAGE,bmp:c.LOAD_TYPE.IMAGE,jpg:c.LOAD_TYPE.IMAGE,jpeg:c.LOAD_TYPE.IMAGE,tif:c.LOAD_TYPE.IMAGE,tiff:c.LOAD_TYPE.IMAGE,webp:c.LOAD_TYPE.IMAGE,tga:c.LOAD_TYPE.IMAGE,svg:c.LOAD_TYPE.IMAGE,"svg+xml":c.LOAD_TYPE.IMAGE,mp3:c.LOAD_TYPE.AUDIO,ogg:c.LOAD_TYPE.AUDIO,wav:c.LOAD_TYPE.AUDIO,mp4:c.LOAD_TYPE.VIDEO,webm:c.LOAD_TYPE.VIDEO},c._xhrTypeMap={xhtml:c.XHR_RESPONSE_TYPE.DOCUMENT,html:c.XHR_RESPONSE_TYPE.DOCUMENT,htm:c.XHR_RESPONSE_TYPE.DOCUMENT,xml:c.XHR_RESPONSE_TYPE.DOCUMENT,tmx:c.XHR_RESPONSE_TYPE.DOCUMENT,svg:c.XHR_RESPONSE_TYPE.DOCUMENT,tsx:c.XHR_RESPONSE_TYPE.DOCUMENT,gif:c.XHR_RESPONSE_TYPE.BLOB,png:c.XHR_RESPONSE_TYPE.BLOB,bmp:c.XHR_RESPONSE_TYPE.BLOB,jpg:c.XHR_RESPONSE_TYPE.BLOB,jpeg:c.XHR_RESPONSE_TYPE.BLOB,tif:c.XHR_RESPONSE_TYPE.BLOB,tiff:c.XHR_RESPONSE_TYPE.BLOB,webp:c.XHR_RESPONSE_TYPE.BLOB,tga:c.XHR_RESPONSE_TYPE.BLOB,json:c.XHR_RESPONSE_TYPE.JSON,text:c.XHR_RESPONSE_TYPE.TEXT,txt:c.XHR_RESPONSE_TYPE.TEXT,ttf:c.XHR_RESPONSE_TYPE.BUFFER,otf:c.XHR_RESPONSE_TYPE.BUFFER},c.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=6*e,n=new Uint16Array(t),r=0,o=0;r0&&t>0,this._frame.width=this.orig.width=e,this._frame.height=this.orig.height=t,n||this.baseTexture.resize(e,t),this._updateUvs()},t.create=function(e,n,r,i){return new t(new o.default(e,n,r,i))},t}(i(n(16)).default);t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.Ticker=t.shared=void 0;var r,o=n(261),i=(r=o)&&r.__esModule?r:{default:r};var a=new i.default;a.autoStart=!0,a.destroy=function(){},t.shared=a,t.Ticker=i.default},function(e,t,n){"use strict";"use restrict";function r(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=r,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var o=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<>>8&255]<<16|o[e>>>16&255]<<8|o[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n=r&&d.x=o&&d.y>16)+(65280&e)+((255&e)<<16)}},{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e,t,n){n=n||2;var r,s,u,l,c,h,y,v=t&&t.length,m=v?t[0]*n:e.length,g=o(e,0,m,n,!0),b=[];if(!g)return b;if(v&&(g=function(e,t,n,r){var a,s,u,l,c,h=[];for(a=0,s=t.length;a80*n){r=u=e[0],s=l=e[1];for(var _=n;_u&&(u=c),h>l&&(l=h);y=0!==(y=Math.max(u-r,l-s))?1/y:0}return a(g,b,n,r,s,y),b}function o(e,t,n,r,o){var i,a;if(o===T(e,t,n,r)>0)for(i=t;i=t;i-=r)a=w(i,e[i],e[i+1],a);return a&&g(a,a.next)&&(E(a),a=a.next),a}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!g(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(E(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function a(e,t,n,r,o,d,f){if(e){!f&&d&&function(e,t,n,r){var o=e;do{null===o.z&&(o.z=h(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,a,s,u,l=1;do{for(n=e,e=null,i=null,a=0;n;){for(a++,r=n,s=0,t=0;t0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,u--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,l*=2}while(a>1)}(o)}(e,r,o,d);for(var p,y,v=e;e.prev!==e.next;)if(p=e.prev,y=e.next,d?u(e,r,o,d):s(e))t.push(p.i/n),t.push(e.i/n),t.push(y.i/n),E(e),e=y.next,v=y.next;else if((e=y)===v){f?1===f?a(e=l(e,t,n),t,n,r,o,d,2):2===f&&c(e,t,n,r,o,d):a(i(e),t,n,r,o,d,1);break}}}function s(e){var t=e.prev,n=e,r=e.next;if(m(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(y(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&m(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function u(e,t,n,r){var o=e.prev,i=e,a=e.next;if(m(o,i,a)>=0)return!1;for(var s=o.xi.x?o.x>a.x?o.x:a.x:i.x>a.x?i.x:a.x,c=o.y>i.y?o.y>a.y?o.y:a.y:i.y>a.y?i.y:a.y,d=h(s,u,t,n,r),f=h(l,c,t,n,r),p=e.prevZ,v=e.nextZ;p&&p.z>=d&&v&&v.z<=f;){if(p!==e.prev&&p!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==e.prev&&v!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=d;){if(p!==e.prev&&p!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=f;){if(v!==e.prev&&v!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(e,t,n){var r=e;do{var o=r.prev,i=r.next.next;!g(o,i)&&b(o,r,r.next,i)&&_(o,i)&&_(i,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(i.i/n),E(r),E(r.next),r=e=i),r=r.next}while(r!==e);return r}function c(e,t,n,r,o,s){var u=e;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&v(u,l)){var c=x(u,l);return u=i(u,u.next),c=i(c,c.next),a(u,t,n,r,o,s),void a(c,t,n,r,o,s)}l=l.next}u=u.next}while(u!==e)}function d(e,t){return e.x-t.x}function f(e,t){if(t=function(e,t){var n,r=t,o=e.x,i=e.y,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>a){if(a=s,s===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&o!==r.x&&y(in.x)&&_(r,e)&&(n=r,f=u),r=r.next;return n}(e,t)){var n=x(t,e);i(n,n.next)}}function h(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function p(e){var t=e,n=e;do{t.x=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(i-s)-(o-a)*(r-s)>=0}function v(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(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&&b(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&_(e,t)&&_(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)}function m(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function g(e,t){return e.x===t.x&&e.y===t.y}function b(e,t,n,r){return!!(g(e,t)&&g(n,r)||g(e,r)&&g(n,t))||m(e,t,n)>0!=m(e,t,r)>0&&m(n,r,e)>0!=m(n,r,t)>0}function _(e,t){return m(e.prev,e,e.next)<0?m(e,t,e.next)>=0&&m(e,e.prev,t)>=0:m(e,t,e.prev)<0||m(e,e.next,t)<0}function x(e,t){var n=new S(e.i,e.x,e.y),r=new S(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function w(e,t,n,r){var o=new S(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function E(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 S(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}function T(e,t,n,r){for(var o=0,i=t,a=n-r;i0&&(r+=e[o-1].length,n.holes.push(r))}return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.worldTransform=new r.Matrix,this.localTransform=new r.Matrix,this._worldID=0,this._parentID=0}return e.prototype.updateLocalTransform=function(){},e.prototype.updateTransform=function(e){var t=e.worldTransform,n=this.worldTransform,r=this.localTransform;n.a=r.a*t.a+r.b*t.c,n.b=r.a*t.b+r.b*t.d,n.c=r.c*t.a+r.d*t.c,n.d=r.c*t.b+r.d*t.d,n.tx=r.tx*t.a+r.ty*t.c+t.tx,n.ty=r.tx*t.b+r.ty*t.d+t.ty,this._worldID++},e}();t.default=o,o.prototype.updateWorldTransform=o.prototype.updateTransform,o.IDENTITY=new o},function(e,t,n){"use strict";var r,o,i,a,s,u,l,c,d,f,h,p,y,v,m,g,b,_,x,w,E,S; /** * isMobile.js v0.4.1 * * A simple library to detect Apple phones and tablets, * Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone), * and any kind of seven inch device, via user agent sniffing. * * @author: Kai Mallea (kmallea@gmail.com) * * @license: http://creativecommons.org/publicdomain/zero/1.0/ */ /** * isMobile.js v0.4.1 * * A simple library to detect Apple phones and tablets, * Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone), * and any kind of seven inch device, via user agent sniffing. * * @author: Kai Mallea (kmallea@gmail.com) * * @license: http://creativecommons.org/publicdomain/zero/1.0/ */ a=void 0,s=/iPhone/i,u=/iPod/i,l=/iPad/i,c=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,d=/Android/i,f=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,p=/Windows Phone/i,y=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,v=/BlackBerry/i,m=/BB10/i,g=/Opera Mini/i,b=/(CriOS|Chrome)(?=.*\bMobile\b)/i,_=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,x=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),w=function(e,t){return e.test(t)},E=function(e){var t=e||navigator.userAgent,n=t.split("[FBAN");if(void 0!==n[1]&&(t=n[0]),void 0!==(n=t.split("Twitter"))[1]&&(t=n[0]),this.apple={phone:w(s,t),ipod:w(u,t),tablet:!w(s,t)&&w(l,t),device:w(s,t)||w(u,t)||w(l,t)},this.amazon={phone:w(f,t),tablet:!w(f,t)&&w(h,t),device:w(f,t)||w(h,t)},this.android={phone:w(f,t)||w(c,t),tablet:!w(f,t)&&!w(c,t)&&(w(h,t)||w(d,t)),device:w(f,t)||w(h,t)||w(c,t)||w(d,t)},this.windows={phone:w(p,t),tablet:w(y,t),device:w(p,t)||w(y,t)},this.other={blackberry:w(v,t),blackberry10:w(m,t),opera:w(g,t),firefox:w(_,t),chrome:w(b,t),device:w(v,t)||w(m,t)||w(g,t)||w(_,t)||w(b,t)},this.seven_inch=w(x,t),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},S=function(){var e=new E;return e.Class=E,e},void 0!==e&&e.exports&&"undefined"==typeof window?e.exports=E:void 0!==e&&e.exports&&"undefined"!=typeof window?e.exports=S():(o=[],r=a.isMobile=S(),void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?r.Rectangle.EMPTY:((e=e||new r.Rectangle(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addQuad=function(e){var t=this.minX,n=this.minY,r=this.maxX,o=this.maxY,i=e[0],a=e[1];t=ir?i:r,o=a>o?a:o,i=e[2],a=e[3],t=ir?i:r,o=a>o?a:o,i=e[4],a=e[5],t=ir?i:r,o=a>o?a:o,i=e[6],a=e[7],t=ir?i:r,o=a>o?a:o,this.minX=t,this.minY=n,this.maxX=r,this.maxY=o},e.prototype.addFrame=function(e,t,n,r,o){var i=e.worldTransform,a=i.a,s=i.b,u=i.c,l=i.d,c=i.tx,d=i.ty,f=this.minX,h=this.minY,p=this.maxX,y=this.maxY,v=a*t+u*n+c,m=s*t+l*n+d;f=vp?v:p,y=m>y?m:y,m=s*r+l*n+d,f=(v=a*r+u*n+c)p?v:p,y=m>y?m:y,m=s*t+l*o+d,f=(v=a*t+u*o+c)p?v:p,y=m>y?m:y,m=s*r+l*o+d,f=(v=a*r+u*o+c)p?v:p,y=m>y?m:y,this.minX=f,this.minY=h,this.maxX=p,this.maxY=y},e.prototype.addVertices=function(e,t,n,r){for(var o=e.worldTransform,i=o.a,a=o.b,s=o.c,u=o.d,l=o.tx,c=o.ty,d=this.minX,f=this.minY,h=this.maxX,p=this.maxY,y=n;yh?g:h,p=b>p?b:p}this.minX=d,this.minY=f,this.maxX=h,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,n=this.minY,r=this.maxX,o=this.maxY;this.minX=e.minXr?e.maxX:r,this.maxY=e.maxY>o?e.maxY:o},e.prototype.addBoundsMask=function(e,t){var n=e.minX>t.minX?e.minX:t.minX,r=e.minY>t.minY?e.minY:t.minY,o=e.maxXu?o:u,this.maxY=i>l?i:l}},e.prototype.addBoundsArea=function(e,t){var n=e.minX>t.x?e.minX:t.x,r=e.minY>t.y?e.minY:t.y,o=e.maxXu?o:u,this.maxY=i>l?i:l}},e}();t.default=o},function(e,t,n){"use strict";var r=null,o={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D"};e.exports=function(e,t){if(!r){var n=Object.keys(o);r={};for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=o.SHAPES.RECT}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},e.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e>=this.x&&e=this.y&&te.x+e.width&&(this.width=e.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>e.y+e.height&&(this.height=e.height-this.y,this.height<0&&(this.height=0))},e.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),o=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.width=n-t,this.y=r,this.height=o-r},r(e,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new e(0,0,0,0)}}]),e}();t.default=i},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.a=t,this.b=n,this.c=r,this.d=o,this.tx=i,this.ty=a,this.array=null}return e.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},e.prototype.set=function(e,t,n,r,o,i){return this.a=e,this.b=t,this.c=n,this.d=r,this.tx=o,this.ty=i,this},e.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));var n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},e.prototype.apply=function(e,t){t=t||new a.default;var n=e.x,r=e.y;return t.x=this.a*n+this.c*r+this.tx,t.y=this.b*n+this.d*r+this.ty,t},e.prototype.applyInverse=function(e,t){t=t||new a.default;var n=1/(this.a*this.d+this.c*-this.b),r=e.x,o=e.y;return t.x=this.d*n*r+-this.c*n*o+(this.ty*this.c-this.tx*this.d)*n,t.y=this.a*n*o+-this.b*n*r+(-this.ty*this.a+this.tx*this.b)*n,t},e.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},e.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},e.prototype.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this.a,o=this.c,i=this.tx;return this.a=r*t-this.b*n,this.b=r*n+this.b*t,this.c=o*t-this.d*n,this.d=o*n+this.d*t,this.tx=i*t-this.ty*n,this.ty=i*n+this.ty*t,this},e.prototype.append=function(e){var t=this.a,n=this.b,r=this.c,o=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*n+e.b*o,this.c=e.c*t+e.d*r,this.d=e.c*n+e.d*o,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*n+e.ty*o+this.ty,this},e.prototype.setTransform=function(e,t,n,r,o,i,a,s,u){return this.a=Math.cos(a+u)*o,this.b=Math.sin(a+u)*o,this.c=-Math.sin(a-s)*i,this.d=Math.cos(a-s)*i,this.tx=e-(n*this.a+r*this.c),this.ty=t-(n*this.b+r*this.d),this},e.prototype.prepend=function(e){var t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){var n=this.a,r=this.c;this.a=n*e.a+this.b*e.c,this.b=n*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},e.prototype.decompose=function(e){var t=this.a,n=this.b,r=this.c,o=this.d,i=-Math.atan2(-r,o),a=Math.atan2(n,t),u=Math.abs(i+a);return u<1e-5||Math.abs(s.PI_2-u)<1e-5?(e.rotation=a,t<0&&o>=0&&(e.rotation+=e.rotation<=0?Math.PI:-Math.PI),e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=i,e.skew.y=a),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(r*r+o*o),e.position.x=this.tx,e.position.y=this.ty,e},e.prototype.invert=function(){var e=this.a,t=this.b,n=this.c,r=this.d,o=this.tx,i=e*r-t*n;return this.a=r/i,this.b=-t/i,this.c=-n/i,this.d=e/i,this.tx=(n*this.ty-r*o)/i,this.ty=-(e*this.ty-t*o)/i,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copy=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},o(e,null,[{key:"IDENTITY",get:function(){return new e}},{key:"TEMP_MATRIX",get:function(){return new e}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n}return e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.copy=function(e){this.set(e.x,e.y)},e.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},e.prototype.set=function(e,t){this.x=e||0,this.y=t||(0!==t?this.x:0)},e}();t.default=r},function(e,t,n){"use strict";var r=n(157);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(11),i=n(42),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=void 0===e?"undefined":r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){"use strict";var r=n(394),o=n(151),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t,n){"use strict";var r=n(414),o=n(407),i=n(405),a=n(404),s=n(403);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=r}},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(13),i=n(438),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?o.Buffer:void 0,l=(u?u.isBuffer:void 0)||i;e.exports=l}).call(this,n(33)(e))},function(e,t,n){"use strict";var r=n(170),o=n(163);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){"use strict";if(Object.defineProperty(t,"__esModule",{value:!0}),t.requestSetting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if("active"===e)return!1;var n=localStorage.getItem(e);return null===n||void 0===n?t:"true"===n||"false"===n?"true"===n:n},t.saveSetting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;localStorage.setItem(e,t)},t.getUserThemes=r,t.saveTheme=function(e,t){var n=r();n[e]=t,localStorage.setItem("themes",JSON.stringify(n))},t.deleteTheme=function(e){var t=r();delete t[e],localStorage.setItem("themes",JSON.stringify(t))},!(t.LOCALSTORAGE_ENABLED="undefined"!=typeof Storage))throw window.notifications.generate("localStorage not supported. Theme unable to function!","error"),"localStorage not supported. Theme unable to function!";function r(){var e=localStorage.getItem("themes");return e=null===e||void 0===e?{}:JSON.parse(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,s,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,s,u],d=0;(l=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u%A, the %o of %B",experimental_stars_enabled:!1,time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,user_switcher_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 0%, 22%, 1)",style_command_icon_color:"hsla(349, 98%, 65%, 1)",style_command_text_color:"hsla(0, 100%, 100%, 1)",style_login_border_color:"hsla(0, 100%, 100%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 100%, 0.22)",style_login_gradient_top_color:"hsla(18, 100%, 61%, 0.66)",style_login_gradient_bottom_color:"hsla(339, 94%, 64%, 1)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},n={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(t)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;n[c]=o.requestSetting(c,t[c])}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return r({},e,{settings:n,cachedSettings:n})};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(77)),i=n(39);t.SettingsReducer=function(e,t){switch(t.type){case"SETTINGS_LOGO_CHANGE":var n=r({},e.settings,{distro:t.path});return r({},e,{settings:n});case"SETTINGS_REJECT":n=r({},e.cachedSettings);return window.notifications.generate("Reverted to previous settings, no changes saved.","success"),(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_APPLY_THEME":n=r({},e.cachedSettings,t.theme);return window.notifications.generate("Loaded "+t.name+" theme. Remember to save!","success"),(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_SAVE":var a=!0,s=!1,u=void 0;try{for(var l,c=Object.keys(e.settings)[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;o.saveSetting(d,e.settings[d])}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}var f=r({},e.settings);return window.notifications.generate("Settings saved.","success"),r({},e,{cachedSettings:f});case"SETTINGS_SET_VALUE":return(n=r({},e.settings))[t.name]=t.value,(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_TOGGLE_ACTIVE":n=r({},e.settings,{active:!e.settings.active});var h=document.getElementById("settings");return!0===n.active?h.className=h.className.replace(" hidden",""):h.className+=" hidden",r({},e,{settings:n});case"SETTINGS_TOGGLE_VALUE":return(n=r({},e.settings))[t.name]=!n[t.name],r({},e,{settings:n});case"SETTINGS_WINDOW_MINIMIZE":var p=document.querySelectorAll(".settings-categories")[0],y=document.querySelectorAll(".settings-section")[0];return-1!==p.className.indexOf("minimize")?(p.className=p.className.replace("minimize",""),y.className=y.className.replace("minimize","")):(p.className=p.className+" minimize",y.className=y.className+" minimize"),e;default:return e}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxItemsPerFrame=t,this.itemsLeft=0}return e.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},e.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},e}();t.default=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(25),a=(o=i)&&o.__esModule?o:{default:o};var s=function(e){function t(n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return s._ready=!0,s.verticesX=o||10,s.verticesY=i||10,s.drawMode=a.default.DRAW_MODES.TRIANGLES,s.refresh(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._refresh=function(){for(var e=this._texture,t=this.verticesX*this.verticesY,n=[],r=[],o=[],i=this.verticesX-1,a=this.verticesY-1,s=e.width/i,u=e.height/a,l=0;l>2,i[1]=(3&o[0])<<4|o[1]>>4,i[2]=(15&o[1])<<2|o[2]>>6,i[3]=63&o[2];var s=n-(e.length-1);switch(s){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64}for(var u=0;ut;)n-=2;return n}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=r[e],n=t.length,i=o,a="",s=void 0,u=0;u=n&&(s=e-u-1),l=l.replace("%value%",t[s]),a+=l,a+="\n"}return i=(i=i.replace("%blur%",a)).replace("%size%",e)};var r={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},o=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n")},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=Math.ceil(e/2),o=r,i="",a=void 0;a=t?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s3&&void 0!==arguments[3]?arguments[3]:e._canvas;r=r||n.wordWrap;var i=n.toFontString(),a=e.measureFont(i),s=o.getContext("2d");s.font=i;for(var u=(r?e.wordWrap(t,n,o):t).split(/(?:\r\n|\r|\n)/),l=new Array(u.length),c=0,d=0;d2&&void 0!==arguments[2]?arguments[2]:e._canvas).getContext("2d"),o="",i=0,a="",s={},u=n.letterSpacing,l=n.wordWrapWidth+n.letterSpacing,c=e.getFromCache(" ",u,s,r),d=t.split(" "),f=0;fl)if(n.breakWords)for(var y=(o.length>0?" "+h:h).split(""),v=0;vl&&(a+=e.addLine(o),o="",i=0),o+=m,i+=g}else o.length>0&&(a+=e.addLine(o),o="",i=0),a+=e.addLine(h),o="",i=0;else p+i>l&&(a+=e.addLine(o),o="",i=0),o.length>0?o+=" "+h:o+=h,i+=p+c}return a+=e.addLine(o,!1)},e.addLine=function(e){return e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?e+"\n":e},e.getFromCache=function(e,t,n,r){var o=n[e];if(void 0===o){var i=e.length*t;o=r.measureText(e).width+i,n[e]=o}return o},e.measureFont=function(t){if(e._fonts[t])return e._fonts[t];var n={},r=e._canvas,o=e._context;o.font=t;var i=Math.ceil(o.measureText("|MÉq").width),a=Math.ceil(o.measureText("M").width),s=2*a;a=1.4*a|0,r.width=i,r.height=s,o.fillStyle="#f00",o.fillRect(0,0,i,s),o.font=t,o.textBaseline="alphabetic",o.fillStyle="#000",o.fillText("|MÉq",0,a);var u=o.getImageData(0,0,i,s).data,l=u.length,c=4*i,d=0,f=0,h=!1;for(d=0;da;--d){for(var y=0;y=0;n--){var r=t[n].trim();/([\"\'])[^\'\"]+\1/.test(r)||(r='"'+r+'"'),t[n]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},r(e,[{key:"align",get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(e){var t=l(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(e){var t=l(e);this._fill!==t&&(this._fill=t,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(e){(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var n=0;n 0.5)"," {"," color = vec4(1.0, 0.0, 0.0, 1.0);"," }"," else"," {"," color = vec4(0.0, 1.0, 0.0, 1.0);"," }"," gl_FragColor = mix(sample, masky, 0.5);"," gl_FragColor *= sample.a;","}"].join("\n")}}]),e}();t.default=c},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=s(n(109)),i=n(9),a=(n(14),s(n(108)));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=new i.Matrix,a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n\n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n"));return n.renderable=!1,a.maskSprite=n,a.maskMatrix=o,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.apply=function(e,t,n){var r=this.maskSprite,o=this.maskSprite.texture;o.valid&&(o.transform||(o.transform=new a.default(o,0)),o.transform.update(),this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.transform.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.transform.uClampFrame,e.applyFilter(this,t,n))},t}(o.default);t.default=u},function(e,t,n){"use strict";function r(e){var t=document.createElement("canvas");t.width=6,t.height=1;var n=t.getContext("2d");return n.fillStyle=e,n.fillRect(0,0,6,1),t}t.__esModule=!0,t.default=function(){if("undefined"==typeof document)return!1;var e=r("#ff00ff"),t=r("#ffff00"),n=document.createElement("canvas");n.width=6,n.height=1;var o=n.getContext("2d");o.globalCompositeOperation="multiply",o.drawImage(e,0,0),o.drawImage(t,2,0);var i=o.getImageData(2,0,1,1);if(!i)return!1;var a=i.data;return 255===a[0]&&0===a[1]&&0===a[2]}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=arguments[2],s=arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,null,a));return u.resolution=s||i.default.RESOLUTION,u.width=Math.ceil(n),u.height=Math.ceil(o),u.realWidth=u.width*u.resolution,u.realHeight=u.height*u.resolution,u.scaleMode=void 0!==a?a:i.default.SCALE_MODE,u.hasLoaded=!0,u._glRenderTargets={},u._canvasRenderTarget=null,u.valid=!1,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.resize=function(e,t){e=Math.ceil(e),t=Math.ceil(t),e===this.width&&t===this.height||(this.valid=e>0&&t>0,this.width=e,this.height=t,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},t.prototype.destroy=function(){e.prototype.destroy.call(this,!0),this.renderer=null},t}(o.default);t.default=s},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n0&&!1===e.paused&&!1===e.ended&&e.readyState>2},t.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},t.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(s.shared.add(this.update,this,u.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},t.prototype._onPlayStop=function(){this._isAutoUpdating&&(s.shared.remove(this.update,this),this._isAutoUpdating=!1)},t.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},t.prototype.destroy=function(){this._isAutoUpdating&&s.shared.remove(this.update,this),this.source&&this.source._pixiId&&(i.default.removeFromCache(this.source._pixiId),delete this.source._pixiId,this.source.pause(),this.source.src="",this.source.load()),e.prototype.destroy.call(this)},t.fromVideo=function(e,n){e._pixiId||(e._pixiId="video_"+(0,a.uid)());var r=a.BaseTextureCache[e._pixiId];return r||(r=new t(e,n),i.default.addToCache(r,e._pixiId)),r},t.fromUrl=function(e,n,r){var o=document.createElement("video");o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline","");var i=Array.isArray(e)?e[0].src||e[0]:e.src||e;if(void 0===r&&0!==i.indexOf("data:")?o.crossOrigin=(0,l.default)(i):r&&(o.crossOrigin="string"==typeof r?r:"anonymous"),Array.isArray(e))for(var a=0;a",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(c),f=["%","/","?",";","#"].concat(d),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(264);function _(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(void 0===e?"undefined":r(e)));var a=e.indexOf("?"),u=-1!==a&&a127?D+="x":D+=I[j];if(!D.match(p)){var L=A.slice(0,P),F=A.slice(P+1),B=I.match(y);B&&(L.push(B[1]),F.unshift(B[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=o.toASCII(this.hostname));var U=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+U,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!v[E])for(P=0,R=d.length;P0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,C=0,P=E.length;P>=0;P--)"."===(T=E[P])?E.splice(P,1):".."===T?(E.splice(P,1),C++):C&&(E.splice(P,1),C--);if(!x&&!w)for(;C--;C)E.unshift("..");!x||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var M,k=""===E[0]||E[0]&&"/"===E[0].charAt(0);S&&(n.hostname=n.host=k?"":E.length?E.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift()));return(x=x||n.host&&E.length)&&!k&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;if(0===e.indexOf("data:"))return"";t=t||window.location,a||(a=document.createElement("a"));a.href=e;var n=!(e=i.default.parse(a.href)).port&&""===t.port||e.port===t.port;if(e.hostname!==t.hostname||!n||e.protocol!==t.protocol)return"anonymous";return""};var r,o=n(118),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2]||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)},t.prototype.toLocal=function(e,t,n,r){return t&&(e=t.toGlobal(e,n,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,n)},t.prototype.renderWebGL=function(e){},t.prototype.renderCanvas=function(e){},t.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},t.prototype.setTransform=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=e,this.position.y=t,this.scale.x=n||1,this.scale.y=r||1,this.rotation=o,this.skew.x=i,this.skew.y=a,this.pivot.x=s,this.pivot.y=u,this},t.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},o(t,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new t),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(e){this.transform.position.x=e}},{key:"y",get:function(){return this.position.y},set:function(e){this.transform.position.y=e}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(e){this.transform.position.copy(e)}},{key:"scale",get:function(){return this.transform.scale},set:function(e){this.transform.scale.copy(e)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copy(e)}},{key:"skew",get:function(){return this.transform.skew},set:function(e){this.transform.skew.copy(e)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e}},{key:"worldVisible",get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0}},{key:"mask",get:function(){return this._mask},set:function(e){this._mask&&(this._mask.renderable=!0,this._mask.isMask=!1),this._mask=e,this._mask&&(this._mask.renderable=!1,this._mask.isMask=!0)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(e){this._filters=e&&e.slice()}}]),t}(i.default);t.default=h,h.prototype.displayObjectUpdateTransform=h.prototype.updateTransform},function(e,t,n){"use strict";var r=function(e){return function(){return this.data[e].value}},o={float:function(e,t,n){e.uniform1f(t,n)},vec2:function(e,t,n){e.uniform2f(t,n[0],n[1])},vec3:function(e,t,n){e.uniform3f(t,n[0],n[1],n[2])},vec4:function(e,t,n){e.uniform4f(t,n[0],n[1],n[2],n[3])},int:function(e,t,n){e.uniform1i(t,n)},ivec2:function(e,t,n){e.uniform2i(t,n[0],n[1])},ivec3:function(e,t,n){e.uniform3i(t,n[0],n[1],n[2])},ivec4:function(e,t,n){e.uniform4i(t,n[0],n[1],n[2],n[3])},bool:function(e,t,n){e.uniform1i(t,n)},bvec2:function(e,t,n){e.uniform2i(t,n[0],n[1])},bvec3:function(e,t,n){e.uniform3i(t,n[0],n[1],n[2])},bvec4:function(e,t,n){e.uniform4i(t,n[0],n[1],n[2],n[3])},mat2:function(e,t,n){e.uniformMatrix2fv(t,!1,n)},mat3:function(e,t,n){e.uniformMatrix3fv(t,!1,n)},mat4:function(e,t,n){e.uniformMatrix4fv(t,!1,n)},sampler2D:function(e,t,n){e.uniform1i(t,n)}},i={float:function(e,t,n){e.uniform1fv(t,n)},vec2:function(e,t,n){e.uniform2fv(t,n)},vec3:function(e,t,n){e.uniform3fv(t,n)},vec4:function(e,t,n){e.uniform4fv(t,n)},int:function(e,t,n){e.uniform1iv(t,n)},ivec2:function(e,t,n){e.uniform2iv(t,n)},ivec3:function(e,t,n){e.uniform3iv(t,n)},ivec4:function(e,t,n){e.uniform4iv(t,n)},bool:function(e,t,n){e.uniform1iv(t,n)},bvec2:function(e,t,n){e.uniform2iv(t,n)},bvec3:function(e,t,n){e.uniform3iv(t,n)},bvec4:function(e,t,n){e.uniform4iv(t,n)},sampler2D:function(e,t,n){e.uniform1iv(t,n)}};function a(e,t){return function(n){this.data[e].value=n;var r=this.data[e].location;1===t.size?o[t.type](this.gl,r,n):i[t.type](this.gl,r,n)}}function s(e,t){for(var n=t,r=0;r0?1:0}!function(){for(var e=0;e<16;e++){var t=[];d.push(t);for(var n=0;n<16;n++)for(var r=f(a[e]*a[n]+u[e]*s[n]),o=f(s[e]*a[n]+l[e]*s[n]),h=f(a[e]*u[n]+u[e]*l[n]),p=f(s[e]*u[n]+l[e]*l[n]),y=0;y<16;y++)if(a[y]===r&&s[y]===o&&u[y]===h&&l[y]===p){t.push(y);break}}for(var v=0;v<16;v++){var m=new i.default;m.set(a[v],s[v],u[v],l[v],0,0),c.push(m)}}();var h={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(e){return a[e]},uY:function(e){return s[e]},vX:function(e){return u[e]},vY:function(e){return l[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return d[e][t]},sub:function(e,t){return d[e][h.inv(t)]},rotate180:function(e){return 4^e},isVertical:function(e){return 2==(3&e)},byDirection:function(e,t){return 2*Math.abs(e)<=Math.abs(t)?t>=0?h.S:h.N:2*Math.abs(t)<=Math.abs(e)?e>0?h.E:h.W:t>0?e>0?h.SE:h.SW:e>0?h.NE:h.NW},matrixAppendRotationInv:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=c[h.inv(t)];o.tx=n,o.ty=r,e.append(o)}};t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._x=r,this._y=o,this.cb=t,this.scope=n}return e.prototype.set=function(e,t){var n=e||0,r=t||(0!==t?n:0);this._x===n&&this._y===r||(this._x=n,this._y=r,this.cb.call(this.scope))},e.prototype.copy=function(e){this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope))},r(e,[{key:"x",get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))}}]),e}();t.default=o},function(e,t,n){"use strict";(function(e){t.__esModule=!0,t.loader=t.prepare=t.particles=t.mesh=t.loaders=t.interaction=t.filters=t.extras=t.extract=t.accessibility=void 0;var r=n(287);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(4);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i,a=n(227),s=(i=a)&&i.__esModule?i:{default:i},u=m(n(226)),l=m(n(224)),c=m(n(100)),d=m(n(214)),f=m(n(207)),h=m(n(205)),p=m(n(201)),y=m(n(196)),v=m(n(191));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}o.utils.mixins.performMixins();var g=h.shared||null;t.accessibility=u,t.extract=l,t.extras=c,t.filters=d,t.interaction=f,t.loaders=h,t.mesh=p,t.particles=y,t.prepare=v,t.loader=g,"function"==typeof s.default&&(0,s.default)(t),e.PIXI=t}).call(this,n(24))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},o=t.pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},i=t.purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a=t.deepPurple={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s=t.indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},u=t.blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},l=t.lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c=t.cyan={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d=t.teal={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},f=t.green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},h=t.lightGreen={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},p=t.lime={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},y=t.yellow={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},v=t.amber={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},m=t.orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},g=t.deepOrange={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b=t.brown={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},_=t.grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},x=t.blueGrey={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},w=t.darkText={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},E=t.lightText={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},S=t.darkIcons={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},T=t.lightIcons={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},O=t.white="#ffffff",C=t.black="#000000";t.default={red:r,pink:o,purple:i,deepPurple:a,indigo:s,blue:u,lightBlue:l,cyan:c,teal:d,green:f,lightGreen:h,lime:p,yellow:y,amber:v,orange:m,deepOrange:g,brown:b,grey:_,blueGrey:x,darkText:w,lightText:E,darkIcons:S,lightIcons:T,white:O,black:C}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var o=Object.assign||function(e){for(var t=1;t=t||n<0||m&&e-y>=d}function x(){var e=o();if(_(e))return w(e);h=setTimeout(x,function(e){var n=t-(e-p);return m?u(n,d-(e-y)):n}(e))}function w(e){return h=void 0,g&&l?b(e):(l=c=void 0,f)}function E(){var e=o(),n=_(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(x,t),v?b(e):f}(p);if(m)return h=setTimeout(x,t),b(p)}return void 0===h&&(h=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,d=(m="maxWait"in n)?s(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==h&&clearTimeout(h),y=0,l=p=c=h=void 0},E.flush=function(){return void 0===h?f:w(o())},E}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=a(n(0)),o=a(n(1)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(342));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.Checkboard=function(e){var t=e.white,n=e.grey,a=e.size,s=e.renderers,u=e.borderRadius,l=e.boxShadow,c=(0,o.default)({default:{grid:{borderRadius:u,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+i.get(t,n,a,s.canvas)+") center left"}}});return r.default.createElement("div",{style:c.grid})};s.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=s},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++of))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var y=-1,v=!0,m=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++y-1&&e%1==0&&e1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),o=a(u,s,e),i=a(u,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),f=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,y,v;return n=I(n),{ok:f,format:e.format||h,r:c(255,d(t.r,0)),g:c(255,d(t.g,0)),b:c(255,d(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=u++}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=d(e,t,n),a=c(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=s>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(h(r));return i}function k(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(h({h:r,s:o,v:i})),i=(i+s)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=I(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=y(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=y(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(B(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*D(this._r,255))+"%",g:l(100*D(this._g,255))+"%",b:l(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*D(this._r,255))+"%, "+l(100*D(this._g,255))+"%, "+l(100*D(this._b,255))+"%)":"rgba("+l(100*D(this._r,255))+"%, "+l(100*D(this._g,255))+"%, "+l(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(R[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},h.fromRatio=function(e,t){if("object"==(void 0===e?"undefined":o(e))){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:f(),g:f(),b:f()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),o=h(t).toRgb(),i=n/100;return h({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,i=h.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},h.mostReadable=function(e,t,n){var r,o,i,a,s=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;lu&&(u=r,s=h(t[l]));return h.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var A=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function I(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,d(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function j(e){return c(1,d(0,e))}function N(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function B(e){return i.round(255*parseFloat(e)).toString(16)}function U(e){return N(e)/255}var H,W,z,X=(W="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",z="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!X.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkbox=void 0;var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.Checkbox=function(e){var t=e.name,n=e.value,r=e.boundFunction,i="option-"+t.replace(" ","-");return o.default.createElement("li",{className:"settings-item"},o.default.createElement("input",{id:i,type:"checkbox",checked:n,onChange:r}),o.default.createElement("label",{htmlFor:i},t,o.default.createElement("div",{className:"fake-checkbox",onChange:r})))};a.propTypes={name:r.default.string.isRequired,value:r.default.bool.isRequired,boundFunction:r.default.func.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextField=void 0;var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.TextField=function(e){var t=e.name,n=e.value,r=e.boundFunction,i="option-"+t.replace(" ","-");return o.default.createElement("li",{className:"settings-item"},o.default.createElement("label",{htmlFor:i},t),o.default.createElement("input",{id:i,type:"text",onInput:r,defaultValue:n}))};a.propTypes={name:r.default.string.isRequired,value:r.default.oneOfType([r.default.string,r.default.number]).isRequired,boundFunction:r.default.func.isRequired},t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){var t={de_DE:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre"," diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["pr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月份","二月份","三月份","四月份","五月份","六月份","七月份","八月份","九月份","十月份","十一月份","十二月份"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},n=t.en_US,o=new function e(o,f,h){var p,y=o||n,v=f||0,m=h||!1,g=0;var b=function(e,t){var n;if(t){if(n=t.getTime(),m){var r=c(t);if(c(t=new Date(n+r+v))!==r){var o=c(t);t=new Date(n+o+v)}}}else{var f=Date.now();f>g?(g=f,p=new Date(g),n=g,m&&(p=new Date(g+c(p)+v))):n=g,t=p}return function e(t,n,r,o){var c="",f=null,h=!1,p=t.length,y=!1;for(var g=0;g9?e:(null==t&&(t="0"),t+e)}function a(e){return e>99?e:e>9?"0"+e:"00"+e}function s(e){return 0===e?12:e>12?e-12:e}function u(e,t){t=t||"sunday";var n=e.getDay();"monday"===t&&(0===n?n=6:n--);var r=Date.UTC(e.getFullYear(),0,1),o=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),i=(Math.floor((o-r)/864e5)+7-n)/7;return Math.floor(i)}function l(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function c(e){return 6e4*(e.getTimezoneOffset()||0)}function d(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}void 0!==e?e.exports=o:(function(){return this||(0,eval)("this")}()).strftime=o,"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWallpaperDirectory=function(){if(!0===window.__debug)return"src/test/wallpapers/";var e=window.config.get_str("branding","background_images");"/usr/share/backgrounds"!=e&&"/usr/share/backgrounds/"!=e||(e="/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/wallpapers/");return e},t.getWallpapers=function(e){if(!0===window.__debug)return["boko.jpg","mountains-2.png","space-1.jpg"];return window.greeterutil.dirlist(e).map(function(e){return e.split("/").pop()})},t.getLogos=function(){if(!0===window.__debug)return[["src/test/logos/archlinux.png","archlinux.png"],["src/test/logos/antergos.png","antergos.png"],["src/test/logos/ubuntu.png","ubuntu.png"]];var e=window.config.get_str("branding","logo"),t=window.greeterutil.dirlist("/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/logos/");return t.push(e),t.map(function(e){return[e,e.split("/").pop()]})},t.getEnvironments=function(){return window.lightdm.sessions.map(function(e){return{name:e.name,value:e.key}})}},function(e,t,n){"use strict";function r(e,t){return window.notifications.generate(e),setTimeout(function(){t()},1e3),!0}Object.defineProperty(t,"__esModule",{value:!0}),t.handleCommand=function(e){if("shutdown"===e&&window.lightdm.can_shutdown)return r("Shutting down",window.lightdm.shutdown);if("hibernate"===e&&window.lightdm.can_hibernate)return r("Hibernating system.",window.lightdm.hibernate);if("reboot"===e&&window.lightdm.can_restart)return r("Rebooting system.",window.lightdm.restart);if("sleep"===e&&window.lightdm.can_suspend)return r("Suspending system.",window.lightdm.suspend);window.notifications.generate(e+" is disabled on this system.","error")},t.findInitialUser=function(){return!0===window.lightdm.lock_hint?window.lightdm.users.filter(function(e){return e.logged_in})[0]:void 0!==window.lightdm.select_user_hint&&null!==window.lightdm.select_user_hint?window.lightdm.users.filter(function(e){return e.username===window.lightdm.select_user_hint})[0]:window.lightdm.users[0]},t.findInitialSession=function(e){var t=void 0===e?void 0:e.session;return this.findSession(t)||this.findSession(window.lightdm.default_session)||window.lightdm.sessions[0]},t.findSession=function(e){if(void 0===e||null===e)return!1;return window.lightdm.sessions.filter(function(t){return t.name.toLowerCase()===e.toLowerCase()||t.key.toLowerCase()===e.toLowerCase()})[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(482);var i=((r=o)&&r.__esModule?r:{default:r}).default.Symbol;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,r.default)(e)||(0,o.default)(n+"() in "+t+" must return a plain object. Instead received "+e+".")};var r=i(n(484)),o=i(n(78));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapMapToPropsConstant=function(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}},t.getDependsOnOwnProps=i,t.wrapMapToPropsFunc=function(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=i(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=i(o),o=r(t,n)),o},r}};var r,o=n(179);(r=o)&&r.__esModule;function i(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t,n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=l.getDisplayName,y=void 0===p?function(e){return"ConnectAdvanced("+e+")"}:p,v=l.methodName,m=void 0===v?"connectAdvanced":v,g=l.renderCountProp,b=void 0===g?void 0:g,_=l.shouldHandleStateChanges,x=void 0===_||_,w=l.storeKey,E=void 0===w?"store":w,S=l.withRef,T=void 0!==S&&S,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(l,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),C=E+"Subscription",P=d++,M=((t={})[E]=u.storeShape,t[C]=u.subscriptionShape,t),k=((n={})[C]=u.subscriptionShape,n);return function(t){(0,i.default)("function"==typeof t,"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",u=y(n),l=c({},O,{getDisplayName:y,methodName:m,renderCountProp:b,shouldHandleStateChanges:x,storeKey:E,withRef:T,displayName:u,wrappedComponentName:n,WrappedComponent:t}),d=function(n){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return a.version=P,a.state={},a.renderCount=0,a.store=e[E]||t[E],a.propsMode=Boolean(e[E]),a.setWrappedInstance=a.setWrappedInstance.bind(a),(0,i.default)(a.store,'Could not find "'+E+'" in either the context or props of "'+u+'". Either wrap the root component in a , or explicitly pass "'+E+'" as a prop to "'+u+'".'),a.initSelector(),a.initSubscription(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[C]=t||this.context[C],e},o.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},o.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},o.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},o.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=h,this.store=null,this.selector.run=h,this.selector.shouldComponentUpdate=!1},o.prototype.getWrappedInstance=function(){return(0,i.default)(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},o.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},o.prototype.initSelector=function(){var t=e(this.store.dispatch,l);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},o.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[C];this.subscription=new s.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},o.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(f)):this.notifyNestedSubs()},o.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},o.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},o.prototype.addExtraProps=function(e){if(!(T||b||this.propsMode&&this.subscription))return e;var t=c({},e);return T&&(t.ref=this.setWrappedInstance),b&&(t[b]=this.renderCount++),this.propsMode&&this.subscription&&(t[C]=this.subscription),t},o.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,a.createElement)(t,this.addExtraProps(e.props))},o}(a.Component);return d.WrappedComponent=t,d.displayName=u,d.childContextTypes=k,d.contextTypes=M,d.propTypes=M,(0,o.default)(d,t)}};var o=l(n(490)),i=l(n(489)),a=n(0),s=l(n(488)),u=n(182);function l(e){return e&&e.__esModule?e:{default:e}}var c=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},s=0;s=this.lifetime)this.recycle();else{var e=this.elapsed/this.lifetime,t=(0,o.scale)(this.options.startScale,this.options.endScale,e,!1);this.sprite.scale.set(t),this.sprite.x+=this.velocity[0],this.sprite.y+=this.velocity[1],this.sprite.alpha=(1-e)/10,this.sprite.tint=this.options.gradientGenerator(e)}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxMilliseconds=t,this.frameStart=0}return e.prototype.beginFrame=function(){this.frameStart=Date.now()},e.prototype.allowedToUpload=function(){return Date.now()-this.frameStartn&&(a=n);var s=e._glBuffers[i.CONTEXT_UID];s||(s=e._glBuffers[i.CONTEXT_UID]=this.generateBuffers(e));var u=t[0]._texture.baseTexture;this.renderer.setBlendMode(o.utils.correctBlendMode(e.blendMode,u.premultipliedAlpha));var l=i.gl,c=e.worldTransform.copy(this.tempMatrix);c.prepend(i._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=c.toArray(!0),this.shader.uniforms.uColor=o.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,u.premultipliedAlpha),this.shader.uniforms.uSampler=i.bindTexture(u);for(var d=!1,f=0,h=0;fr&&(p=r),h>=s.length){if(!e.autoResize)break;s.push(this._generateOneMoreBuffer(e))}var y=s[h];y.uploadDynamic(t,f,p);var v=e._bufferUpdateIDs[f]||0;(d=d||y._updateID0&&void 0!==arguments[0]?arguments[0]:1500,o=arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16384,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return a>16384&&(a=16384),a>n&&(a=n),u._properties=[!1,!0,!1,!1,!1],u._maxSize=n,u._batchSize=a,u._glBuffers={},u._bufferUpdateIDs=[],u._updateID=0,u.interactiveChildren=!1,u.blendMode=i.BLEND_MODES.NORMAL,u.autoResize=s,u.roundPixels=!0,u.baseTexture=null,u.setProperties(o),u._tint=0,u.tintRgb=new Float32Array(4),u.tint=16777215,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.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])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},t.prototype.renderWebGL=function(e){var t=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.hasLoaded||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},t.prototype.onChildrenChange=function(e){for(var t=Math.floor(e/this._batchSize);this._bufferUpdateIDs.length1&&(c=1);var d=Math.sqrt(r*r+o*o),f=this._texture.height/2;r/=d,o/=d,r*=f,o*=f,i[l]=u.x+r,i[l+1]=u.y+o,i[l+2]=u.x-r,i[l+3]=u.y-o,t=u}},t.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n0){var O=T/Math.abs(e.worldTransform.a),C=T/Math.abs(e.worldTransform.d),P=(b+_+x)/3,M=(w+E+S)/3,k=b-P,A=w-M,R=Math.sqrt(k*k+A*A);b=P+k/R*(R+O),w=M+A/R*(R+C),A=E-M,_=P+(k=_-P)/(R=Math.sqrt(k*k+A*A))*(R+O),E=M+A/R*(R+C),A=S-M,x=P+(k=x-P)/(R=Math.sqrt(k*k+A*A))*(R+O),S=M+A/R*(R+C)}o.save(),o.beginPath(),o.moveTo(b,w),o.lineTo(_,E),o.lineTo(x,S),o.closePath(),o.clip();var I=f*v+y*p+h*m-v*p-y*h-f*m,D=b*v+y*x+_*m-v*x-y*_-b*m,j=f*_+b*p+h*x-_*p-b*h-f*x,N=f*v*x+y*_*p+b*h*m-b*v*p-y*h*x-f*_*m,L=w*v+y*S+E*m-v*S-y*E-w*m,F=f*E+w*p+h*S-E*p-w*h-f*S,B=f*v*S+y*E*p+w*h*m-w*v*p-y*h*S-f*E*m;o.transform(D/I,L/I,j/I,F/I,N/I,B/I),o.drawImage(l,0,0,c*u.resolution,d*u.resolution,0,0,c,d),o.restore(),this.renderer.invalidateBlendMode()}},e.prototype.renderMeshFlat=function(e){var t=this.renderer.context,n=e.vertices,r=n.length/2;t.beginPath();for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseUrl=n,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,n){return t._loadResource(e,n)},this._queue=u.queue(this._boundLoadResource,r),this._queue.pause(),this.resources={},this.onProgress=new a.default,this.onError=new a.default,this.onLoad=new a.default,this.onStart=new a.default,this.onComplete=new a.default}return e.prototype.add=function(e,t,n,r){if(Array.isArray(e)){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents()},t.prototype.addEvents=function(){this.interactionDOMElement&&(i.ticker.shared.add(this.update,this,i.UPDATE_PRIORITY.INTERACTION),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]="none"),this.supportsPointerEvents?(window.document.addEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointercancel",this.onPointerCancel,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.eventsAdded=!0)},t.prototype.removeEvents=function(){this.interactionDOMElement&&(i.ticker.shared.remove(this.update,this),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointercancel",this.onPointerCancel,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},t.prototype.update=function(e){if(this._deltaTime+=e,!(this._deltaTime=0;c--){var d=l[c],f=this.processInteractive(e,d,n,r,s);if(f){if(!d.parent)continue;s=!1,f&&(e.target&&(r=!1),a=!0)}}return o&&(r&&!e.target&&!t.hitArea&&t.containsPoint&&t.containsPoint(i)&&(a=!0),t.interactive&&(a&&!e.target&&(e.target=t),n&&n(e,t,!!a))),a},t.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&e.preventDefault();for(var n=t.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n"));return o.alpha=n,o.glShaderKey="alpha",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),t}(i.Filter);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n"));return n.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],n.alpha=1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._loadMatrix=function(e){var t=e;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this._multiply(t,this.uniforms.m,e),t=this._colorMatrix(t)),this.uniforms.m=t},t.prototype._multiply=function(e,t,n){return e[0]=t[0]*n[0]+t[1]*n[5]+t[2]*n[10]+t[3]*n[15],e[1]=t[0]*n[1]+t[1]*n[6]+t[2]*n[11]+t[3]*n[16],e[2]=t[0]*n[2]+t[1]*n[7]+t[2]*n[12]+t[3]*n[17],e[3]=t[0]*n[3]+t[1]*n[8]+t[2]*n[13]+t[3]*n[18],e[4]=t[0]*n[4]+t[1]*n[9]+t[2]*n[14]+t[3]*n[19]+t[4],e[5]=t[5]*n[0]+t[6]*n[5]+t[7]*n[10]+t[8]*n[15],e[6]=t[5]*n[1]+t[6]*n[6]+t[7]*n[11]+t[8]*n[16],e[7]=t[5]*n[2]+t[6]*n[7]+t[7]*n[12]+t[8]*n[17],e[8]=t[5]*n[3]+t[6]*n[8]+t[7]*n[13]+t[8]*n[18],e[9]=t[5]*n[4]+t[6]*n[9]+t[7]*n[14]+t[8]*n[19]+t[9],e[10]=t[10]*n[0]+t[11]*n[5]+t[12]*n[10]+t[13]*n[15],e[11]=t[10]*n[1]+t[11]*n[6]+t[12]*n[11]+t[13]*n[16],e[12]=t[10]*n[2]+t[11]*n[7]+t[12]*n[12]+t[13]*n[17],e[13]=t[10]*n[3]+t[11]*n[8]+t[12]*n[13]+t[13]*n[18],e[14]=t[10]*n[4]+t[11]*n[9]+t[12]*n[14]+t[13]*n[19]+t[14],e[15]=t[15]*n[0]+t[16]*n[5]+t[17]*n[10]+t[18]*n[15],e[16]=t[15]*n[1]+t[16]*n[6]+t[17]*n[11]+t[18]*n[16],e[17]=t[15]*n[2]+t[16]*n[7]+t[17]*n[12]+t[18]*n[17],e[18]=t[15]*n[3]+t[16]*n[8]+t[17]*n[13]+t[18]*n[18],e[19]=t[15]*n[4]+t[16]*n[9]+t[17]*n[14]+t[18]*n[19]+t[19],e},t.prototype._colorMatrix=function(e){var t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},t.prototype.brightness=function(e,t){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,t)},t.prototype.greyscale=function(e,t){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,t)},t.prototype.blackAndWhite=function(e){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],e)},t.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var n=Math.cos(e),r=Math.sin(e),o=1/3,i=(0,Math.sqrt)(o),a=[n+(1-n)*o,o*(1-n)-i*r,o*(1-n)+i*r,0,0,o*(1-n)+i*r,n+o*(1-n),o*(1-n)-i*r,0,0,o*(1-n)-i*r,o*(1-n)+i*r,n+o*(1-n),0,0,0,0,0,1,0];this._loadMatrix(a,t)},t.prototype.contrast=function(e,t){var n=(e||0)+1,r=-.5*(n-1),o=[n,0,0,0,r,0,n,0,0,r,0,0,n,0,r,0,0,0,1,0];this._loadMatrix(o,t)},t.prototype.saturate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],n=2*e/3+1,r=-.5*(n-1),o=[n,r,r,0,0,r,n,r,0,0,r,r,n,0,0,0,0,0,1,0];this._loadMatrix(o,t)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(e){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],e)},t.prototype.sepia=function(e){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],e)},t.prototype.technicolor=function(e){this._loadMatrix([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],e)},t.prototype.polaroid=function(e){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],e)},t.prototype.toBGR=function(e){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],e)},t.prototype.kodachrome=function(e){this._loadMatrix([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],e)},t.prototype.browni=function(e){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],e)},t.prototype.vintage=function(e){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],e)},t.prototype.colorTone=function(e,t,n,r,o){e=e||.2,t=t||.15;var i=((n=n||16770432)>>16&255)/255,a=(n>>8&255)/255,s=(255&n)/255,u=((r=r||3375104)>>16&255)/255,l=(r>>8&255)/255,c=(255&r)/255,d=[.3,.59,.11,0,0,i,a,s,e,0,u,l,c,t,0,i-u,a-l,s-c,0,0];this._loadMatrix(d,o)},t.prototype.night=function(e,t){var n=[-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.predator=function(e,t){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,t)},t.prototype.lsd=function(e){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],e)},t.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},o(t,[{key:"matrix",get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),t}(i.Filter);t.default=a,a.prototype.grayscale=a.prototype.greyscale},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:.5,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random();!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n"));return i.noise=n,i.seed=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"noise",get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e}},{key:"seed",get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e}}]),t}(i.Filter);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));n(14);var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform vec4 filterArea;\n\nvarying vec2 vTextureCoord;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n vec2 inverseVP = 1.0 / resolution.xy;\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n \n --\n \n From:\n https://github.com/mitsuhiko/webgl-meincraft\n \n Copyright (c) 2011 by Armin Ronacher.\n \n Some rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n \n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n \n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n \n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n \n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n \n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n \n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n \n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n vec4 color;\n\n color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n'))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.Filter);t.default=i},function(e,t,n){"use strict";t.__esModule=!0;var r=n(213);Object.defineProperty(t,"FXAAFilter",{enumerable:!0,get:function(){return d(r).default}});var o=n(212);Object.defineProperty(t,"NoiseFilter",{enumerable:!0,get:function(){return d(o).default}});var i=n(211);Object.defineProperty(t,"DisplacementFilter",{enumerable:!0,get:function(){return d(i).default}});var a=n(210);Object.defineProperty(t,"BlurFilter",{enumerable:!0,get:function(){return d(a).default}});var s=n(99);Object.defineProperty(t,"BlurXFilter",{enumerable:!0,get:function(){return d(s).default}});var u=n(95);Object.defineProperty(t,"BlurYFilter",{enumerable:!0,get:function(){return d(u).default}});var l=n(209);Object.defineProperty(t,"ColorMatrixFilter",{enumerable:!0,get:function(){return d(l).default}});var c=n(208);function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"AlphaFilter",{enumerable:!0,get:function(){return d(c).default}})},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));r.DisplayObject.prototype.getGlobalPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new r.Point,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e}},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));r.DisplayObject.prototype.name=null,r.Container.prototype.getChildByName=function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return i._textWidth=0,i._textHeight=0,i._glyphs=[],i._font={tint:void 0!==o.tint?o.tint:16777215,align:o.align||"left",name:null,size:0},i.font=o.font,i._text=n,i._maxWidth=0,i._maxLineHeight=0,i._anchor=new a.default(function(){i.dirty=!0},i,0,0),i.dirty=!1,i.updateText(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.updateText=function(){for(var e=t.fonts[this._font.name],n=this._font.size/e.size,r=new i.Point,o=[],a=[],s=null,u=0,l=0,c=0,d=-1,f=0,h=0,p=0,y=0;y0&&r.x*n>this._maxWidth)i.utils.removeItems(o,d-h,y-d),y=d,d=-1,++h,a.push(f),l=Math.max(l,f),c++,r.x=0,r.y+=e.lineHeight,s=null;else{var m=e.chars[v];m&&(s&&m.kerning[s]&&(r.x+=m.kerning[s]),o.push({texture:m.texture,line:c,charCode:v,position:new i.Point(r.x+m.xOffset,r.y+m.yOffset)}),u=r.x+(m.texture.width+m.xOffset),r.x+=m.xAdvance,p=Math.max(p,m.yOffset+m.texture.height),s=v)}}a.push(u),l=Math.max(l,u);for(var g=[],b=0;b<=c;b++){var _=0;"right"===this._font.align?_=l-a[b]:"center"===this._font.align&&(_=(l-a[b])/2),g.push(_)}for(var x=o.length,w=this.tint,E=0;E=0?e:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(e){this._font.align=e||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copy(e)}},{key:"font",get:function(){return this._font},set:function(e){e&&("string"==typeof e?(e=e.split(" "),this._font.name=1===e.length?e[0]:e.slice(1).join(" "),this._font.size=e.length>=2?parseInt(e[0],10):t.fonts[this._font.name].size):(this._font.name=e.name,this._font.size="number"==typeof e.size?e.size:parseInt(e.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(e){e=e.toString()||" ",this._text!==e&&(this._text=e,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}},{key:"maxLineHeight",get:function(){return this.validate(),this._maxLineHeight}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),t}(i.Container);t.default=c,c.fonts={}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=n(3);n(14);var a=new o.Matrix,s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.shader=null,o.simpleShader=null,o.quad=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new o.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new o.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new o.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},t.prototype.render=function(e){var t=this.renderer,n=this.quad;t.bindVao(n.vao);var r=n.vertices;r[0]=r[6]=e._width*-e.anchor.x,r[1]=r[3]=e._height*-e.anchor.y,r[2]=r[4]=e._width*(1-e.anchor.x),r[5]=r[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((r=n.uvs)[0]=r[6]=-e.anchor.x,r[1]=r[3]=-e.anchor.y,r[2]=r[4]=1-e.anchor.x,r[5]=r[7]=1-e.anchor.y),n.upload();var s=e._texture,u=s.baseTexture,l=e.tileTransform.localTransform,c=e.uvTransform,d=u.isPowerOfTwo&&s.frame.width===u.width&&s.frame.height===u.height;d&&(u._glTextures[t.CONTEXT_UID]?d=u.wrapMode!==i.WRAP_MODES.CLAMP:u.wrapMode===i.WRAP_MODES.CLAMP&&(u.wrapMode=i.WRAP_MODES.REPEAT));var f=d?this.simpleShader:this.shader;t.bindShader(f);var h=s.width,p=s.height,y=e._width,v=e._height;a.set(l.a*h/y,l.b*h/v,l.c*p/y,l.d*p/v,l.tx/y,l.ty/v),a.invert(),d?a.prepend(c.mapCoord):(f.uniforms.uMapCoord=c.mapCoord.toArray(!0),f.uniforms.uClampFrame=c.uClampFrame,f.uniforms.uClampOffset=c.uClampOffset),f.uniforms.uTransform=a.toArray(!0),f.uniforms.uColor=o.utils.premultiplyTintToRgba(e.tint,e.worldAlpha,f.uniforms.uColor,u.premultipliedAlpha),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=t.bindTexture(s),t.setBlendMode(o.utils.correctBlendMode(e.blendMode,u.premultipliedAlpha)),n.vao.draw(this.renderer.gl.TRIANGLES,6,0)},t}(o.ObjectRenderer);t.default=s,o.WebGLRenderer.registerPlugin("tilingSprite",s)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return s.tileTransform=new a.TransformStatic,s._width=o,s._height=i,s._canvasPattern=null,s.uvTransform=n.transform||new a.TextureMatrix(n),s.pluginName="tilingSprite",s.uvRespectAnchor=!1,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture),this.cachedTint=16777215},t.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},t.prototype._renderCanvas=function(e){var t=this._texture;if(t.baseTexture.hasLoaded){var n=e.context,r=this.worldTransform,o=e.resolution,i=t.baseTexture,s=i.resolution,l=this.tilePosition.x/this.tileScale.x%t._frame.width*s,c=this.tilePosition.y/this.tileScale.y%t._frame.height*s;if(this._textureID!==this._texture._updateID||this.cachedTint!==this.tint){this._textureID=this._texture._updateID;var d=new a.CanvasRenderTarget(t._frame.width,t._frame.height,s);16777215!==this.tint?(this.tintedTexture=u.default.getTintedTexture(this,this.tint),d.context.drawImage(this.tintedTexture,0,0)):d.context.drawImage(i.source,-t._frame.x*s,-t._frame.y*s),this.cachedTint=this.tint,this._canvasPattern=d.context.createPattern(d.canvas,"repeat")}n.globalAlpha=this.worldAlpha,n.setTransform(r.a*o,r.b*o,r.c*o,r.d*o,r.tx*o,r.ty*o),e.setBlendMode(this.blendMode),n.fillStyle=this._canvasPattern,n.scale(this.tileScale.x/s,this.tileScale.y/s);var f=this.anchor.x*-this._width,h=this.anchor.y*-this._height;this.uvRespectAnchor?(n.translate(l,c),n.fillRect(-l+f,-c+h,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s)):(n.translate(l+f,c+h),n.fillRect(-l,-c,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s))}},t.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,n=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,n,r)},t.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._x),t||(this._localBoundsRect||(this._localBoundsRect=new a.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,l);var t=this._width,n=this._height,r=-t*this.anchor._x;if(l.x>=r&&l.x=o&&l.y=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*o,this._currentTime+=o;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=t;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())},t.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.cachedTint=16777215,this.onFrameChange&&this.onFrameChange(this.currentFrame)},t.prototype.destroy=function(t){this.stop(),e.prototype.destroy.call(this,t)},t.fromFrames=function(e){for(var n=[],r=0;r=0;n--)this.updateAccessibleObjects(t[n])}},e.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.width/this.renderer.width,n=e.height/this.renderer.height,o=this.div;o.style.left=e.left+"px",o.style.top=e.top+"px",o.style.width=this.renderer.width+"px",o.style.height=this.renderer.height+"px";for(var i=0;ithis.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},e.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width=s+"px",t.style.height=s+"px",t.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=c,t.style.borderStyle="none",t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleTitle||e.accessibleHint||(t.title="displayObject "+this.tabIndex),e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),e._accessibleActive=!0,e._accessibleDiv=t,t.displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},e.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData)},e.prototype._onFocus=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},e.prototype._onFocusOut=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},e.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},e.prototype._onMouseMove=function(){this.deactivate()},e.prototype.destroy=function(){this.div=null;for(var e=0;e1?this._fontStyle="italic":e.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",e.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var t=e.split(" "),n=-1;this._fontSize=26;for(var r=0;r-1&&n2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseTexture=t,this.textures={},this.data=n,this.resolution=this._updateResolution(r||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return r(e,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),e.prototype._updateResolution=function(e){var t=this.data.meta.scale,n=(0,i.getResolutionOfUrl)(e,null);return null===n&&(n=void 0!==t?parseFloat(t):1),1!==n&&(this.baseTexture.resolution=n,this.baseTexture.update()),n},e.prototype.parse=function(t){this._batchIndex=0,this._callback=t,this._frameKeys.length<=e.BATCH_SIZE?(this._processFrames(0),this._parseComplete()):this._nextBatch()},e.prototype._processFrames=function(t){for(var n=t,r=e.BATCH_SIZE,i=this.baseTexture.sourceScale;n-t0&&void 0!==arguments[0]&&arguments[0];for(var t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&this.baseTexture.destroy(),this.baseTexture=null},e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(29),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.render=function(e){var t=this.renderer,n=t.context,r=e.worldAlpha,o=e.transform.worldTransform,i=t.resolution;this._prevTint!==this.tint&&(this.dirty=!0),n.setTransform(o.a*i,o.b*i,o.c*i,o.d*i,o.tx*i,o.ty*i),e.dirty&&(this.updateGraphicsTint(e),e.dirty=!1),t.setBlendMode(e.blendMode);for(var s=0;sP?P:C,n.beginPath(),n.moveTo(E,S+C),n.lineTo(E,S+O-C),n.quadraticCurveTo(E,S+O,E+C,S+O),n.lineTo(E+T-C,S+O),n.quadraticCurveTo(E+T,S+O,E+T,S+O-C),n.lineTo(E+T,S+C),n.quadraticCurveTo(E+T,S,E+T-C,S),n.lineTo(E+C,S),n.quadraticCurveTo(E,S,E,S+C),n.closePath(),(u.fillColor||0===u.fillColor)&&(n.globalAlpha=u.fillAlpha*r,n.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),n.fill()),u.lineWidth&&(n.globalAlpha=u.lineAlpha*r,n.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),n.stroke())}}},e.prototype.updateGraphicsTint=function(e){e._prevTint=e.tint;for(var t=(e.tint>>16&255)/255,n=(e.tint>>8&255)/255,r=(255&e.tint)/255,o=0;o>16&255)/255*t*255<<16)+((a>>8&255)/255*n*255<<8)+(255&a)/255*r*255,i._lineTint=((s>>16&255)/255*t*255<<16)+((s>>8&255)/255*n*255<<8)+(255&s)/255*r*255}},e.prototype.renderPolygon=function(e,t,n){n.moveTo(e[0],e[1]);for(var r=1;r6&&void 0!==arguments[6]?arguments[6]:[],u=0,l=0,c=0,d=0,f=0,h=0,p=0,y=0;p<=20;++p)u=s(e,n,y=p/20),l=s(t,r,y),c=s(n,o,y),d=s(r,i,y),f=s(u,c,y),h=s(l,d,y),a.push(f,h);return a}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=e.shape,o=r.x,s=r.y,u=r.width,l=r.height;if(e.fill){var c=(0,a.hex2rgb)(e.fillColor),d=e.fillAlpha,f=c[0]*d,h=c[1]*d,p=c[2]*d,y=t.points,v=t.indices,m=y.length/6;y.push(o,s),y.push(f,h,p,d),y.push(o+u,s),y.push(f,h,p,d),y.push(o,s+l),y.push(f,h,p,d),y.push(o+u,s+l),y.push(f,h,p,d),v.push(m,m,m+1,m+2,m+3,m+3)}if(e.lineWidth){var g=e.points;e.points=[o,s,o+u,s,o+u,s+l,o,s+l,o,s],(0,i.default)(e,t,n),e.points=g}};var r,o=n(35),i=(r=o)&&r.__esModule?r:{default:r},a=n(5)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){e.points=e.shape.points.slice();var a=e.points;if(e.fill&&a.length>=6){for(var s=[],u=e.holes,l=0;l0&&(0,r.default)(e,t,n)};var r=a(n(35)),o=n(5),i=a(n(57));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(27);var a=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl=t,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=i.default.GLBuffer.createVertexBuffer(t),this.indexBuffer=i.default.GLBuffer.createIndexBuffer(t),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=n,this.vao=new i.default.VertexArrayObject(t,r).addIndex(this.indexBuffer).addAttribute(this.buffer,n.attributes.aVertexPosition,t.FLOAT,!1,24,0).addAttribute(this.buffer,n.attributes.aColor,t.FLOAT,!1,24,8)}return e.prototype.reset=function(){this.points.length=0,this.indices.length=0},e.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},e.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},e}();t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=n(5),i=n(3),a=p(n(38)),s=p(n(37)),u=p(n(235)),l=p(n(234)),c=p(n(233)),d=p(n(232)),f=p(n(231)),h=p(n(230));function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.graphicsDataPool=[],o.primitiveShader=null,o.gl=n.gl,o.CONTEXT_UID=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new l.default(this.gl)},t.prototype.destroy=function(){a.default.prototype.destroy.call(this);for(var e=0;e32e4)&&((r=this.graphicsDataPool.pop()||new u.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState)).nativeLines=n,r.reset(t),e.data.push(r)),r.dirty=!0,r},t}(a.default);t.default=y,s.default.registerPlugin("graphics",y)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,r,o,i,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[],l=0,c=0,d=0,f=0,h=0;u.push(e,t);for(var p=1,y=0;p<=20;++p)d=(c=(l=1-(y=p/20))*l)*l,h=(f=y*y)*y,u.push(d*e+3*c*y*n+3*l*f*o+h*a,d*t+3*c*y*r+3*l*f*i+h*s);return u}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=y(n(30)),i=y(n(53)),a=y(n(16)),s=y(n(104)),u=y(n(56)),l=n(9),c=n(5),d=n(3),f=y(n(60)),h=y(n(237)),p=y(n(29));function y(e){return e&&e.__esModule?e:{default:e}}var v=void 0,m=new l.Matrix,g=new l.Point,b=new Float32Array(4),_=new Float32Array(4),x=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return o.fillAlpha=1,o.lineWidth=0,o.nativeLines=n,o.lineColor=0,o.graphicsData=[],o.tint=16777215,o._prevTint=16777215,o.blendMode=d.BLEND_MODES.NORMAL,o.currentPath=null,o._webGL={},o.isMask=!1,o.boundsPadding=0,o._localBounds=new f.default,o.dirty=0,o.fastRectDirty=-1,o.clearDirty=0,o.boundsDirty=-1,o.cachedSpriteDirty=!1,o._spriteRect=null,o._fastRect=!1,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.clone=function(){var e=new t;e.renderable=this.renderable,e.fillAlpha=this.fillAlpha,e.lineWidth=this.lineWidth,e.lineColor=this.lineColor,e.tint=this.tint,e.blendMode=this.blendMode,e.isMask=this.isMask,e.boundsPadding=this.boundsPadding,e.dirty=0,e.cachedSpriteDirty=this.cachedSpriteDirty;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.lineWidth=e,this.lineColor=t,this.lineAlpha=n,this.currentPath)if(this.currentPath.shape.points.length){var r=new l.Polygon(this.currentPath.shape.points.slice(-2));r.closed=!1,this.drawShape(r)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},t.prototype.moveTo=function(e,t){var n=new l.Polygon([e,t]);return n.closed=!1,this.drawShape(n),this},t.prototype.lineTo=function(e,t){return this.currentPath.shape.points.push(e,t),this.dirty++,this},t.prototype.quadraticCurveTo=function(e,t,n,r){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var o=this.currentPath.shape.points,i=0,a=0;0===o.length&&this.moveTo(0,0);for(var s=o[o.length-2],u=o[o.length-1],l=1;l<=20;++l){var c=l/20;i=s+(e-s)*c,a=u+(t-u)*c,o.push(i+(e+(n-e)*c-i)*c,a+(t+(r-t)*c-a)*c)}return this.dirty++,this},t.prototype.bezierCurveTo=function(e,t,n,r,o,i){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var a=this.currentPath.shape.points,s=a[a.length-2],u=a[a.length-1];return a.length-=2,(0,h.default)(s,u,e,t,n,r,o,i,a),this.dirty++,this},t.prototype.arcTo=function(e,t,n,r,o){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(e,t):this.moveTo(e,t);var i=this.currentPath.shape.points,a=i[i.length-2],s=i[i.length-1]-t,u=a-e,l=r-t,c=n-e,d=Math.abs(s*c-u*l);if(d<1e-8||0===o)i[i.length-2]===e&&i[i.length-1]===t||i.push(e,t);else{var f=s*s+u*u,h=l*l+c*c,p=s*l+u*c,y=o*Math.sqrt(f)/d,v=o*Math.sqrt(h)/d,m=y*p/f,g=v*p/h,b=y*c+v*u,_=y*l+v*s,x=u*(v+m),w=s*(v+m),E=c*(y+g),S=l*(y+g),T=Math.atan2(w-_,x-b),O=Math.atan2(S-_,E-b);this.arc(b+e,_+t,o,T,O,u*l>c*s)}return this.dirty++,this},t.prototype.arc=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(r===o)return this;!i&&o<=r?o+=d.PI_2:i&&r<=o&&(r+=d.PI_2);var a=o-r,s=40*Math.ceil(Math.abs(a)/d.PI_2);if(0===a)return this;var u=e+Math.cos(r)*n,l=t+Math.sin(r)*n,c=this.currentPath?this.currentPath.shape.points:null;c?c[c.length-2]===u&&c[c.length-1]===l||c.push(u,l):(this.moveTo(u,l),c=this.currentPath.shape.points);for(var f=a/(2*s),h=2*f,p=Math.cos(f),y=Math.sin(f),v=s-1,m=v%1/v,g=0;g<=v;++g){var b=f+r+h*(g+m*g),_=Math.cos(b),x=-Math.sin(b);c.push((p*_+y*x)*n+e,(p*-x+y*_)*n+t)}return this.dirty++,this},t.prototype.beginFill=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=e,this.fillAlpha=t,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},t.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},t.prototype.drawRect=function(e,t,n,r){return this.drawShape(new l.Rectangle(e,t,n,r)),this},t.prototype.drawRoundedRect=function(e,t,n,r,o){return this.drawShape(new l.RoundedRectangle(e,t,n,r,o)),this},t.prototype.drawCircle=function(e,t,n){return this.drawShape(new l.Circle(e,t,n)),this},t.prototype.drawEllipse=function(e,t,n,r){return this.drawShape(new l.Ellipse(e,t,n,r)),this},t.prototype.drawPolygon=function(e){var t=e,n=!0;if(t instanceof l.Polygon&&(n=t.closed,t=t.points),!Array.isArray(t)){t=new Array(arguments.length);for(var r=0;r5&&void 0!==arguments[5]?arguments[5]:0;o=o||r/2;for(var a=-1*Math.PI/2+i,s=2*n,u=d.PI_2/s,l=[],c=0;c0)&&(this.lineWidth=0,this.filling=!1,this.boundsDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},t.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===d.SHAPES.RECT&&!this.graphicsData[0].lineWidth},t.prototype._renderWebGL=function(e){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(e):(e.setObjectRenderer(e.plugins.graphics),e.plugins.graphics.render(this))},t.prototype._renderSpriteRect=function(e){var t=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new u.default(new a.default(a.default.WHITE)));var n=this._spriteRect;if(16777215===this.tint)n.tint=this.graphicsData[0].fillColor;else{var r=b,o=_;(0,c.hex2rgb)(this.graphicsData[0].fillColor,r),(0,c.hex2rgb)(this.tint,o),r[0]*=o[0],r[1]*=o[1],r[2]*=o[2],n.tint=(0,c.rgb2hex)(r)}n.alpha=this.graphicsData[0].fillAlpha,n.worldAlpha=this.worldAlpha*n.alpha,n.blendMode=this.blendMode,n._texture._frame.width=t.width,n._texture._frame.height=t.height,n.transform.worldTransform=this.transform.worldTransform,n.anchor.set(-t.x/t.width,-t.y/t.height),n._onAnchorUpdate(),n._renderWebGL(e)},t.prototype._renderCanvas=function(e){!0!==this.isMask&&e.plugins.graphics.render(this)},t.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var e=this._localBounds;this._bounds.addFrame(this.transform,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,g);for(var t=this.graphicsData,n=0;nt?i+s:t,n=ar?a+u:r;else if(f===d.SHAPES.CIRC)i=o.x,a=o.y,s=o.radius+h/2,u=o.radius+h/2,e=i-st?i+s:t,n=a-ur?a+u:r;else if(f===d.SHAPES.ELIP)i=o.x,a=o.y,s=o.width+h/2,u=o.height+h/2,e=i-st?i+s:t,n=a-ur?a+u:r;else for(var p=o.points,y=0,v=0,m=0,g=0,b=0,_=0,x=0,w=0,E=0;E+2t?x+b:t,n=w-_r?w+_:r)}else e=0,t=0,n=0,r=0;var S=this.boundsPadding;this._localBounds.minX=e-S,this._localBounds.maxX=t+S,this._localBounds.minY=n-S,this._localBounds.maxY=r+S},t.prototype.drawShape=function(e){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var t=new s.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,e);return this.graphicsData.push(t),t.type===d.SHAPES.POLY&&(t.shape.closed=t.shape.closed||this.filling,this.currentPath=t),this.dirty++,t},t.prototype.generateCanvasTexture=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getLocalBounds(),r=i.default.create(n.width,n.height,e,t);v||(v=new p.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(m),m.invert(),m.tx-=n.x,m.ty-=n.y,v.render(this,r,!0,m);var o=a.default.fromCanvas(r.baseTexture._canvasRenderTarget.canvas,e,"graphics");return o.baseTexture.resolution=t,o.baseTexture.update(),o},t.prototype.closePath=function(){var e=this.currentPath;return e&&e.shape&&e.shape.close(),this},t.prototype.addHole=function(){var e=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(e.shape),this.currentPath=null,this},t.prototype.destroy=function(t){e.prototype.destroy.call(this,t);for(var n=0;n0&&(n.shadowColor=t.dropShadowColor);for(var p=Math.cos(t.dropShadowAngle)*t.dropShadowDistance,y=Math.sin(t.dropShadowAngle)*t.dropShadowDistance,v=0;v3&&void 0!==arguments[3]&&arguments[3],o=this._style.letterSpacing;if(0!==o)for(var i=String.prototype.split.call(e,""),a=t,s=0,u="";s0&&(t+="\nelse "),n0&&(t+="\nelse "),n1&&void 0!==arguments[1]?arguments[1]:{};return t[r.DRAW_MODES.POINTS]=e.POINTS,t[r.DRAW_MODES.LINES]=e.LINES,t[r.DRAW_MODES.LINE_LOOP]=e.LINE_LOOP,t[r.DRAW_MODES.LINE_STRIP]=e.LINE_STRIP,t[r.DRAW_MODES.TRIANGLES]=e.TRIANGLES,t[r.DRAW_MODES.TRIANGLE_STRIP]=e.TRIANGLE_STRIP,t[r.DRAW_MODES.TRIANGLE_FAN]=e.TRIANGLE_FAN,t};var r=n(3)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t[r.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.ADD]=[e.ONE,e.DST_ALPHA],t[r.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR],t[r.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.DST_ALPHA,e.ONE,e.DST_ALPHA],t[r.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_COLOR],t};var r=n(3)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(246),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=t,this.maxAttribs=t.getParameter(t.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,i.default)(t),this.nativeVaoExtension=t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object")}return e.prototype.push=function(){var e=this.stack[this.stackIndex];e||(e=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var t=0;tthis.checkCountMax&&(this.checkCount=0,this.run()))},e.prototype.run=function(){for(var e=this.renderer.textureManager,t=e._managedTextures,n=!1,r=0;rthis.maxIdle&&(e.destroyTexture(o,!0),t[r]=null,n=!0)}if(n){for(var i=0,a=0;a=0;n--)this.unload(e.children[n])},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(10),i=n(3),a=n(36),s=(r=a)&&r.__esModule?r:{default:r},u=n(5);var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t,this.gl=t.gl,this._managedTextures=[]}return e.prototype.bindTexture=function(){},e.prototype.getTexture=function(){},e.prototype.updateTexture=function(e,t){var n=this.gl,r=!!e._glRenderTargets;if(!e.hasLoaded)return null;var a=this.renderer.boundTextures;if(void 0===t){t=0;for(var u=0;u0&&void 0!==arguments[0]&&arguments[0],t=this.renderer,n=this.managedFilters;t.off("prerender",this.onPrerender,this);for(var r=0;r1)for(var n=1;n-1){var u=s.split(" "),l=u[1],c=u[2],d=1;c.indexOf("[")>-1&&(c=(r=c.split(/\[|]/))[0],d*=Number(r[1])),c.match(t)||(n[c]={value:i(l,d),name:c,type:l})}}return n}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=a(n(28)),i=a(n(110));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.scissor=!1,o.scissorData=null,o.scissorRenderTarget=null,o.enableScissor=!0,o.alphaMaskPool=[],o.alphaMaskIndex=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.pushMask=function(e,t){if(t.texture)this.pushSpriteMask(e,t);else if(this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencilManager.stencilMaskStack.length&&t.isFastRect()){var n=t.worldTransform,r=Math.atan2(n.b,n.a);(r=Math.round(r*(180/Math.PI)))%90?this.pushStencilMask(t):this.pushScissorMask(e,t)}else this.pushStencilMask(t)},t.prototype.popMask=function(e,t){t.texture?this.popSpriteMask(e,t):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(e,t):this.popStencilMask(e,t)},t.prototype.pushSpriteMask=function(e,t){var n=this.alphaMaskPool[this.alphaMaskIndex];n||(n=this.alphaMaskPool[this.alphaMaskIndex]=[new i.default(t)]),n[0].resolution=this.renderer.resolution,n[0].maskSprite=t,e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,n),this.alphaMaskIndex++},t.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},t.prototype.pushStencilMask=function(e){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(e)},t.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},t.prototype.pushScissorMask=function(e,t){t.renderable=!0;var n=this.renderer._activeRenderTarget,r=t.getBounds();r.fit(n.size),t.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var o=this.renderer.resolution;this.renderer.gl.scissor(r.x*o,(n.root?n.size.height-r.y-r.height:r.y)*o,r.width*o,r.height*o),this.scissorRenderTarget=n,this.scissorData=t,this.scissor=!0},t.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var e=this.renderer.gl;e.disable(e.SCISSOR_TEST)},t}(o.default);t.default=s},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=p(n(38)),i=p(n(37)),a=p(n(51)),s=p(n(243)),u=p(n(242)),l=p(n(241)),c=p(n(7)),d=n(5),f=p(n(10)),h=p(n(55));function p(e){return e&&e.__esModule?e:{default:e}}var y=0,v=0,m=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));o.vertSize=5,o.vertByteSize=4*o.vertSize,o.size=c.default.SPRITE_BATCH_SIZE,o.buffers=[];for(var i=1;i<=h.default.nextPow2(o.size);i*=2)o.buffers.push(new l.default(4*i*o.vertByteSize));o.indices=(0,a.default)(o.size),o.shader=null,o.currentIndex=0,o.groups=[];for(var s=0;s=this.size&&this.flush(),e._texture._uvs&&(this.sprites[this.currentIndex++]=e)},t.prototype.flush=function(){if(0!==this.currentIndex){var e=this.renderer.gl,t=this.MAX_TEXTURES,n=h.default.nextPow2(this.currentIndex),r=h.default.log2(n),o=this.buffers[r],i=this.sprites,a=this.groups,s=o.float32View,u=o.uint32View,l=this.boundTextures,p=this.renderer.boundTextures,m=this.renderer.textureGC.count,g=0,b=void 0,_=void 0,x=1,w=0,E=a[0],S=void 0,T=void 0,O=d.premultiplyBlendMode[i[0]._texture.baseTexture.premultipliedAlpha?1:0][i[0].blendMode];E.textureCount=0,E.start=0,E.blend=O,y++;var C=void 0;for(C=0;C0&&void 0!==arguments[0]?arguments[0]:[];(0,a.default)()?(e[o.BLEND_MODES.NORMAL]="source-over",e[o.BLEND_MODES.ADD]="lighter",e[o.BLEND_MODES.MULTIPLY]="multiply",e[o.BLEND_MODES.SCREEN]="screen",e[o.BLEND_MODES.OVERLAY]="overlay",e[o.BLEND_MODES.DARKEN]="darken",e[o.BLEND_MODES.LIGHTEN]="lighten",e[o.BLEND_MODES.COLOR_DODGE]="color-dodge",e[o.BLEND_MODES.COLOR_BURN]="color-burn",e[o.BLEND_MODES.HARD_LIGHT]="hard-light",e[o.BLEND_MODES.SOFT_LIGHT]="soft-light",e[o.BLEND_MODES.DIFFERENCE]="difference",e[o.BLEND_MODES.EXCLUSION]="exclusion",e[o.BLEND_MODES.HUE]="hue",e[o.BLEND_MODES.SATURATION]="saturate",e[o.BLEND_MODES.COLOR]="color",e[o.BLEND_MODES.LUMINOSITY]="luminosity"):(e[o.BLEND_MODES.NORMAL]="source-over",e[o.BLEND_MODES.ADD]="lighter",e[o.BLEND_MODES.MULTIPLY]="source-over",e[o.BLEND_MODES.SCREEN]="source-over",e[o.BLEND_MODES.OVERLAY]="source-over",e[o.BLEND_MODES.DARKEN]="source-over",e[o.BLEND_MODES.LIGHTEN]="source-over",e[o.BLEND_MODES.COLOR_DODGE]="source-over",e[o.BLEND_MODES.COLOR_BURN]="source-over",e[o.BLEND_MODES.HARD_LIGHT]="source-over",e[o.BLEND_MODES.SOFT_LIGHT]="source-over",e[o.BLEND_MODES.DIFFERENCE]="source-over",e[o.BLEND_MODES.EXCLUSION]="source-over",e[o.BLEND_MODES.HUE]="source-over",e[o.BLEND_MODES.SATURATION]="source-over",e[o.BLEND_MODES.COLOR]="source-over",e[o.BLEND_MODES.LUMINOSITY]="source-over");return e[o.BLEND_MODES.NORMAL_NPM]=e[o.BLEND_MODES.NORMAL],e[o.BLEND_MODES.ADD_NPM]=e[o.BLEND_MODES.ADD],e[o.BLEND_MODES.SCREEN_NPM]=e[o.BLEND_MODES.SCREEN],e};var r,o=n(3),i=n(111),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.pushMask=function(e){var t=this.renderer;t.context.save();var n=e.alpha,r=e.transform.worldTransform,o=t.resolution;t.context.setTransform(r.a*o,r.b*o,r.c*o,r.d*o,r.tx*o,r.ty*o),e._texture||(this.renderGraphicsShape(e),t.context.clip()),e.worldAlpha=n},e.prototype.renderGraphicsShape=function(e){var t=this.renderer.context,n=e.graphicsData.length;if(0!==n){t.beginPath();for(var o=0;oS?S:E,t.moveTo(b,_+E),t.lineTo(b,_+w-E),t.quadraticCurveTo(b,_+w,b+E,_+w),t.lineTo(b+x-E,_+w),t.quadraticCurveTo(b+x,_+w,b+x,_+w-E),t.lineTo(b+x,_+E),t.quadraticCurveTo(b+x,_,b+x-E,_),t.lineTo(b+E,_),t.quadraticCurveTo(b,_,b,_+E),t.closePath()}}}},e.prototype.popMask=function(e){e.context.restore(),e.invalidateBlendMode()},e.prototype.destroy=function(){},e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(29)),o=n(3),i=n(9),a=s(n(52));function s(e){return e&&e.__esModule?e:{default:e}}var u=new i.Matrix,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.render=function(e){var t=e._texture,n=this.renderer,r=t._frame.width,s=t._frame.height,l=e.transform.worldTransform,c=0,d=0;if(!(t.orig.width<=0||t.orig.height<=0)&&t.baseTexture.source&&(n.setBlendMode(e.blendMode),t.valid)){n.context.globalAlpha=e.worldAlpha;var f=t.baseTexture.scaleMode===o.SCALE_MODES.LINEAR;n.smoothProperty&&n.context[n.smoothProperty]!==f&&(n.context[n.smoothProperty]=f),t.trim?(c=t.trim.width/2+t.trim.x-e.anchor.x*t.orig.width,d=t.trim.height/2+t.trim.y-e.anchor.y*t.orig.height):(c=(.5-e.anchor.x)*t.orig.width,d=(.5-e.anchor.y)*t.orig.height),t.rotate&&(l.copy(u),l=u,i.GroupD8.matrixAppendRotationInv(l,t.rotate,c,d),c=0,d=0),c-=r/2,d-=s/2,n.roundPixels?(n.context.setTransform(l.a,l.b,l.c,l.d,l.tx*n.resolution|0,l.ty*n.resolution|0),c|=0,d|=0):n.context.setTransform(l.a,l.b,l.c,l.d,l.tx*n.resolution,l.ty*n.resolution);var h=t.baseTexture.resolution;16777215!==e.tint?(e.cachedTint===e.tint&&e.tintedTexture.tintId===e._texture._updateID||(e.cachedTint=e.tint,e.tintedTexture=a.default.getTintedTexture(e,e.tint)),n.context.drawImage(e.tintedTexture,0,0,r*h,s*h,c*n.resolution,d*n.resolution,r*n.resolution,s*n.resolution)):n.context.drawImage(t.baseTexture.source,t._frame.x*h,t._frame.y*h,r*h,s*h,c*n.resolution,d*n.resolution,r*n.resolution,s*n.resolution)}},e.prototype.destroy=function(){this.renderer=null},e}();t.default=l,r.default.registerPlugin("sprite",l)},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fn=t,this.context=n,this.priority=r,this.once=o,this.next=null,this.previous=null,this._destroyed=!1}return e.prototype.match=function(e,t){return t=t||null,this.fn===e&&this.context===t},e.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},e.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},e.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.previous;return this.next=e?null:t,this.previous=null,t},e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:i.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(e,t,n))},e.prototype.addOnce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(e,t,n,!0))},e.prototype._addListener=function(e){var t=this._head.next,n=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}else e.connect(n);return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var n=this._head.next;n;)n=n.match(e,t)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this},e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null},e.prototype.update=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now(),t=void 0;if(e>this.lastTime){(t=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(t=this._maxElapsedMS),this.deltaTime=t*o.default.TARGET_FPMS*this.speed;for(var n=this._head,r=n.next;r;)r=r.emit(this.deltaTime);n.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=e},r(e,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(e){var t=Math.min(Math.max(0,e)/1e3,o.default.TARGET_FPMS);this._maxElapsedMS=1/t}}]),e}();t.default=u},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e){switch(void 0===e?"undefined":r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===(void 0===e?"undefined":r(e))?a(s(e),function(r){var s=encodeURIComponent(o(r))+n;return i(e[r])?a(e[r],function(e){return s+encodeURIComponent(o(e))}).join(t):s+encodeURIComponent(o(e[r]))}).join(t):u?encodeURIComponent(o(u))+n+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0&&l>u&&(l=u);for(var c=0;c=0?(d=y.substr(0,v),f=y.substr(v+1)):(d=y,f=""),h=decodeURIComponent(d),p=decodeURIComponent(f),r(a,h)?o(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(263),t.encode=t.stringify=n(262)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(e,r){var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a){var s="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,l="object"==(void 0===r?"undefined":i(r))&&r;l.global!==l&&l.window!==l&&l.self!==l||(a=l);var c,d,f=2147483647,h=36,p=1,y=26,v=38,m=700,g=72,b=128,_="-",x=/^xn--/,w=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=h-p,O=Math.floor,C=String.fromCharCode;function P(e){throw new RangeError(S[e])}function M(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+M((e=e.replace(E,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=C(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?O(e/m):e>>1,e+=O(e/t);e>T*y>>1;r+=h)e=O(e/T);return O(r+(T+1)*e/(e+v))}function j(e){var t,n,r,o,i,a,s,u,l,c,d,v=[],m=e.length,x=0,w=b,E=g;for((n=e.lastIndexOf(_))<0&&(n=0),r=0;r=128&&P("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=m&&P("invalid-input"),((u=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:h)>=h||u>O((f-x)/a))&&P("overflow"),x+=u*a,!(u<(l=s<=E?p:s>=E+y?y:s-E));s+=h)a>O(f/(c=h-l))&&P("overflow"),a*=c;E=D(x-i,t=v.length+1,0==i),O(x/t)>f-w&&P("overflow"),w+=O(x/t),x%=t,v.splice(x++,0,w)}return R(v)}function N(e){var t,n,r,o,i,a,s,u,l,c,d,v,m,x,w,E=[];for(v=(e=A(e)).length,t=b,n=0,i=g,a=0;a=t&&dO((f-n)/(m=r+1))&&P("overflow"),n+=(s-t)*m,t=s,a=0;af&&P("overflow"),d==t){for(u=n,l=h;!(u<(c=l<=i?p:l>=i+y?y:l-i));l+=h)w=u-c,x=h-c,E.push(C(I(c+w%x,0))),u=O(w/x);E.push(C(I(u,0))),i=D(n,m,r==o),n=0,++r}++n,++t}return E.join("")}if(c={version:"1.4.1",ucs2:{decode:A,encode:R},decode:j,encode:N,toASCII:function(e){return k(e,function(e){return w.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return k(e,function(e){return x.test(e)?j(e.slice(4).toLowerCase()):e})}},"object"==i(n(117))&&n(117))void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o);else if(s&&u)if(e.exports==s)u.exports=c;else for(d in c)c.hasOwnProperty(d)&&(s[d]=c[d]);else a.punycode=c}(void 0)}).call(this,n(33)(e),n(24))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){for(var e=[],t=[],n=0;n<32;n++)e[n]=n,t[n]=n;e[r.BLEND_MODES.NORMAL_NPM]=r.BLEND_MODES.NORMAL,e[r.BLEND_MODES.ADD_NPM]=r.BLEND_MODES.ADD,e[r.BLEND_MODES.SCREEN_NPM]=r.BLEND_MODES.SCREEN,t[r.BLEND_MODES.NORMAL]=r.BLEND_MODES.NORMAL_NPM,t[r.BLEND_MODES.ADD]=r.BLEND_MODES.ADD_NPM,t[r.BLEND_MODES.SCREEN]=r.BLEND_MODES.SCREEN_NPM;var o=[];return o.push(t),o.push(e),o};var r=n(3)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var i=o-(n=t+n>o?o-t:n);for(r=t;r=e.byteLength?r.bufferSubData(this.type,t,e):r.bufferData(this.type,e,this.drawType),this.data=e},o.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},o.createVertexBuffer=function(e,t,n){return new o(e,e.ARRAY_BUFFER,t,n)},o.createIndexBuffer=function(e,t,n){return new o(e,e.ELEMENT_ARRAY_BUFFER,t,n)},o.create=function(e,t,n,r){return new o(e,t,n,r)},o.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t);if(!n)throw new Error("This browser does not support webGL. Try using the canvas renderer");return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3);var o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n,this.width=o,this.height=i,this.radius=a,this.type=r.SHAPES.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){if(t>=this.y+this.radius&&t<=this.y+this.height-this.radius||e>=this.x+this.radius&&e<=this.x+this.width-this.radius)return!0;var n=e-(this.x+this.radius),r=t-(this.y+this.radius),o=this.radius*this.radius;if(n*n+r*r<=o)return!0;if((n=e-(this.x+this.width-this.radius))*n+r*r<=o)return!0;if(n*n+(r=t-(this.y+this.height-this.radius))*r<=o)return!0;if((n=e-(this.x+this.radius))*n+r*r<=o)return!0}return!1},e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(64),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(){for(var t=arguments.length,n=Array(t),r=0;rt!=l>t&&e<(t-s)/(l-s)*(u-a)+a&&(n=!n)}return n},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(62),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n,this.width=r,this.height=o,this.type=a.SHAPES.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var n=(e-this.x)/this.width,r=(t-this.y)/this.height;return(n*=n)+(r*=r)<=1},e.prototype.getBounds=function(){return new i.default(this.x-this.width,this.y-this.height,this.width,this.height)},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(62),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n,this.radius=r,this.type=a.SHAPES.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(e,t){if(this.radius<=0)return!1;var n=this.radius*this.radius,r=this.x-e,o=this.y-t;return(r*=r)+(o*=o)<=n},e.prototype.getBounds=function(){return new i.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},e}();t.default=s},function(e,t,n){"use strict";Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e})},function(e,t,n){"use strict";Math.sign||(Math.sign=function(e){return 0===(e=Number(e))||isNaN(e)?e:e>0?1:-1})},function(e,t,n){"use strict";(function(e){if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!e.performance||!e.performance.now){var t=Date.now();e.performance||(e.performance={}),e.performance.now=function(){return Date.now()-t}}for(var n=Date.now(),r=["ms","moz","webkit","o"],o=0;oi[2]&&(s.lastX=s.x,s.lastY=s.y,s.x+=a[0],s.y+=a[1],(s.x<-10||s.y>window.innerHeight+10)&&(s.alpha=(0,d.randomRange)(.5,1,2),s.x=(0,d.randomRange)(0,window.innerWidth+.2*window.innerWidth),s.y=-20,s.lastX=s.x,s.lastY=s.y,r[0]=[-(0,d.randomRange)(1,2,2),(0,d.randomRange)(2,4,2)],r[2]=t+(0,d.randomRange)(3e3,8e3)))}})}},{key:"render",value:function(){var e=this;return a.default.createPortal(i.default.createElement("div",{className:"",ref:function(t){return e.nodes.screen=t}}),document.getElementById("experimental-mount"))}}]),t}();h.propTypes={settings:s.default.object.isRequired},t.default=(0,l.connect)(function(e){return{settings:e.settings}},null)(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToggler=void 0;var r=a(n(0)),o=a(n(34)),i=n(8);function a(e){return e&&e.__esModule?e:{default:e}}var s=t.SettingsToggler=function(e){return o.default.createPortal(r.default.createElement("div",{className:["settings-toggler"].join(" "),onClick:function(e){e.dispatch({type:"SETTINGS_TOGGLE_ACTIVE"})}.bind(void 0,e)},"≡"),document.getElementById("settings-toggler-mount"))};t.default=(0,i.connect)(function(e){return{}},null)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(201, 48%, 15%)",style_command_icon_color:"hsl(199, 66%, 65%)",style_command_text_color:"hsl(0, 100%, 96%)",style_login_border_color:"hsla(0, 100%, 50%, 0.1)",style_login_border_enabled:!1,style_login_button_color:"hsla(0, 0%, 0%, 0)",style_login_gradient_top_color:"hsl(32, 76%, 76%)",style_login_gradient_bottom_color:"hsl(193, 80%, 71%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},Default:{avatar_enabled:!1,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 0%, 22%, 1)",style_command_icon_color:"hsla(349, 98%, 65%, 1)",style_command_text_color:"hsla(0, 100%, 100%, 1)",style_login_border_color:"hsla(0, 100%, 100%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 100%, 0.22)",style_login_gradient_top_color:"hsla(18, 100%, 61%, 0.66)",style_login_gradient_bottom_color:"hsla(339, 94%, 64%, 1)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},"El Capitan":{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!1,command_text_align:"center",style_command_background_color:"hsla(236, 4%, 12%, 0.8)",style_command_icon_color:"hsl(0, 0%, 0%)",style_command_text_color:"hsl(0, 100%, 96%)",style_login_border_color:"hsla(0, 100%, 50%, 0.1)",style_login_border_enabled:!1,style_login_button_color:"hsl(0, 0%, 0%)",style_login_gradient_top_color:"hsla(0, 76%, 76%, 0.94)",style_login_gradient_bottom_color:"hsl(193, 80%, 71%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},Glass:{avatar_enabled:!1,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 2%, 98%, 0.29)",style_command_icon_color:"hsl(182, 79%, 58%)",style_command_text_color:"hsla(0, 0%, 35%, 0.9)",style_login_border_color:"hsla(0, 0%, 0%, 0)",style_login_border_enabled:!1,style_login_button_color:"hsla(16, 96%, 11%, 0.88)",style_login_gradient_top_color:"hsla(0, 0%, 100%, 0)",style_login_gradient_bottom_color:"hsla(0, 0%, 100%, 0.32)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},Ember:{avatar_enabled:!1,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(0, 80%, 26%)",style_command_icon_color:"hsl(13, 100%, 53%)",style_command_text_color:"hsl(0, 0%, 100%)",style_login_border_color:"hsla(46, 82%, 48%, 0.24)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 85%, 0.22)",style_login_gradient_top_color:"hsl(14, 100%, 53%)",style_login_gradient_bottom_color:"hsl(35, 95%, 56%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},"Material Green":{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",font_scale:"1",date_enabled:!0,date_format:"%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(123, 43%, 39%)",style_command_icon_color:"hsl(88, 50%, 53%)",style_command_text_color:"hsl(0, 0%, 100%)",style_login_border_color:"hsla(0, 0%, 68%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 0%, 0%, 0.49)",style_login_gradient_top_color:"hsl(122, 39%, 49%)",style_login_gradient_bottom_color:"hsl(122, 39%, 49%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},"Material Pink":{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",font_scale:"1",date_enabled:!0,date_format:"%A, the %o of %B",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(336, 78%, 43%)",style_command_icon_color:"hsl(340, 100%, 63%)",style_command_text_color:"hsl(0, 0%, 100%)",style_login_border_color:"hsla(0, 0%, 68%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 0%, 0%, 0.49)",style_login_gradient_top_color:"hsl(340, 82%, 52%)",style_login_gradient_bottom_color:"hsl(340, 82%, 52%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsThemes=void 0;var r=Object.assign||function(e){for(var t=1;t100&&(e.a=100),e.a/=100,t({h:s.h,s:s.s,l:s.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:c.fields,className:"flexbox-fix"},r.default.createElement("div",{style:c.double},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:u.replace("#",""),onChange:d})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.alpha},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*n.a),onChange:d,dragLabel:"true",dragMax:"100"})))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=l(n(0)),o=l(n(2)),i=l(n(1)),a=n(6),s=l(n(304)),u=l(n(303));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Sketch=function(e){var t=e.width,n=e.rgb,o=e.hex,l=e.hsv,c=e.hsl,d=e.onChange,f=e.onSwatchHover,h=e.disableAlpha,p=e.presetColors,y=e.renderers,v=e.className,m=void 0===v?"":v,g=(0,i.default)({default:{picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},{disableAlpha:h});return r.default.createElement("div",{style:g.picker,className:"sketch-picker "+m},r.default.createElement("div",{style:g.saturation},r.default.createElement(a.Saturation,{style:g.Saturation,hsl:c,hsv:l,onChange:d})),r.default.createElement("div",{style:g.controls,className:"flexbox-fix"},r.default.createElement("div",{style:g.sliders},r.default.createElement("div",{style:g.hue},r.default.createElement(a.Hue,{style:g.Hue,hsl:c,onChange:d})),r.default.createElement("div",{style:g.alpha},r.default.createElement(a.Alpha,{style:g.Alpha,rgb:n,hsl:c,renderers:y,onChange:d}))),r.default.createElement("div",{style:g.color},r.default.createElement(a.Checkboard,null),r.default.createElement("div",{style:g.activeColor}))),r.default.createElement(s.default,{rgb:n,hsl:c,hex:o,onChange:d,disableAlpha:h}),r.default.createElement(u.default,{colors:p,onClick:d,onSwatchHover:f}))};c.propTypes={disableAlpha:o.default.bool,width:o.default.oneOfType([o.default.string,o.default.number])},c.defaultProps={disableAlpha:!1,width:200,presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,a.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,i=(0,o.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:i.label},"new"),r.default.createElement("div",{style:i.swatches},r.default.createElement("div",{style:i.new}),r.default.createElement("div",{style:i.current})),r.default.createElement("div",{style:i.label},"current"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopBotton=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopBotton=function(e){var t=e.onClick,n=e.label,i=e.children,a=e.active,s=(0,o.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.default.createElement("div",{style:s.button,onClick:t},n||i)};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(){var e=(0,o.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(12)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,s=e.hsv,u=e.hex,l=(0,o.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,r){e["#"]?i.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||s.h,s:e.s||s.s,v:e.v||s.v,source:"hsv"},r)};return r.default.createElement("div",{style:l.fields},r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"h",value:Math.round(s.h),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"s",value:Math.round(100*s.s),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"v",value:Math.round(100*s.v),onChange:c}),r.default.createElement("div",{style:l.divider}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:c}),r.default.createElement("div",{style:l.divider}),r.default.createElement(a.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"#",value:u.replace("#",""),onChange:c}),r.default.createElement("div",{style:l.fieldSymbols},r.default.createElement("div",{style:l.symbol},"°"),r.default.createElement("div",{style:l.symbol},"%"),r.default.createElement("div",{style:l.symbol},"%")))};t.default=u},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var o=function(){function e(e,t){for(var n=0;n1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&r.props.onChange({h:e.h||r.props.hsl.h,s:Number(e.s&&e.s||r.props.hsl.s),l:Number(e.l&&e.l||r.props.hsl.l),source:"hsl"},t)},r.showHighlight=function(e){e.target.style.background="#eee"},r.hideHighlight=function(e){e.target.style.background="transparent"},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement("svg",{style:t.svg,viewBox:"0 0 24 24",onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight},i.default.createElement("path",{ref:function(t){return e.iconUp=t},fill:"#333",d:"M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}),i.default.createElement("path",{ref:function(t){return e.iconDown=t},fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z"})))))}}]),t}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=c(n(0)),o=c(n(2)),i=c(n(1)),a=n(6),s=c(n(322)),u=c(n(321)),l=c(n(320));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Chrome=function(e){var t=e.onChange,n=e.disableAlpha,o=e.rgb,c=e.hsl,d=e.hsv,f=e.hex,h=e.renderers,p=e.className,y=void 0===p?"":p,v=(0,i.default)({default:{picker:{background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",width:"225px",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},{disableAlpha:n});return r.default.createElement("div",{style:v.picker,className:"chrome-picker "+y},r.default.createElement("div",{style:v.saturation},r.default.createElement(a.Saturation,{style:v.Saturation,hsl:c,hsv:d,pointer:l.default,onChange:t})),r.default.createElement("div",{style:v.body},r.default.createElement("div",{style:v.controls,className:"flexbox-fix"},r.default.createElement("div",{style:v.color},r.default.createElement("div",{style:v.swatch},r.default.createElement("div",{style:v.active}),r.default.createElement(a.Checkboard,{renderers:h}))),r.default.createElement("div",{style:v.toggles},r.default.createElement("div",{style:v.hue},r.default.createElement(a.Hue,{style:v.Hue,hsl:c,pointer:u.default,onChange:t})),r.default.createElement("div",{style:v.alpha},r.default.createElement(a.Alpha,{style:v.Alpha,rgb:o,hsl:c,pointer:u.default,renderers:h,onChange:t})))),r.default.createElement(s.default,{rgb:o,hsl:c,hex:f,onChange:t,disableAlpha:n})))};d.propTypes={disableAlpha:o.default.bool},d.defaultProps={disableAlpha:!1},t.default=(0,a.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=s(n(0)),o=n(1),i=s(o),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,o=e.onSwatchHover,s=e.hover,u=e.active,l=e.circleSize,c=e.circleSpacing,d=(0,i.default)({default:{swatch:{width:l,height:l,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+l/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:s,active:u});return r.default.createElement("div",{style:d.swatch},r.default.createElement(a.Swatch,{style:d.Swatch,color:t,onClick:n,onHover:o,focusStyle:{boxShadow:d.Swatch.boxShadow+", 0 0 5px "+t}}))};u.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,o.handleHover)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=c(n(0)),o=c(n(2)),i=c(n(1)),a=c(n(17)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(135)),u=n(6),l=c(n(324));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Circle=function(e){var t=e.width,n=e.onChange,o=e.onSwatchHover,s=e.colors,u=e.hex,c=e.circleSize,d=e.circleSpacing,f=e.className,h=void 0===f?"":f,p=(0,i.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}}),y=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:p.card,className:"circle-picker "+h},(0,a.default)(s,function(e){return r.default.createElement(l.default,{key:e,color:e,onClick:y,onSwatchHover:o,active:u===e.toLowerCase(),circleSize:c,circleSpacing:d})}))};d.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),circleSize:o.default.number,circleSpacing:o.default.number},d.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[s.red[500],s.pink[500],s.purple[500],s.deepPurple[500],s.indigo[500],s.blue[500],s.lightBlue[500],s.cyan[500],s.teal[500],s.green[500],s.lightGreen[500],s.lime[500],s.yellow[500],s.amber[500],s.orange[500],s.deepOrange[500],s.brown[500],s.blueGrey[500]]},t.default=(0,u.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(17)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,s=e.onSwatchHover,u=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:u.swatches},(0,i.default)(t,function(e){return r.default.createElement(a.Swatch,{key:e,color:e,style:u.swatch,onClick:n,onHover:s,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.default.createElement("div",{style:u.clear}))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=l(n(0)),o=l(n(2)),i=l(n(1)),a=l(n(12)),s=n(6),u=l(n(326));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,l=e.colors,c=e.width,d=e.triangle,f=e.className,h=void 0===f?"":f,p="transparent"===o,y=function(e,n){a.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},v=(0,i.default)({default:{card:{width:c,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:a.default.getContrastingColor(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},{"hide-triangle":"hide"===d});return r.default.createElement("div",{style:v.card,className:"block-picker "+h},r.default.createElement("div",{style:v.triangle}),r.default.createElement("div",{style:v.head},p&&r.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:v.label},o)),r.default.createElement("div",{style:v.body},r.default.createElement(u.default,{colors:l,onClick:y,onSwatchHover:n}),r.default.createElement(s.EditableInput,{style:{input:v.input},value:o,onChange:y})))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["top","hide"])},c.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top"},t.default=(0,s.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.AlphaPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var o,i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var r=arguments.length,i=Array(r),a=0;ai?l=i:c<0?c=0:c>a&&(c=a);var d=100*l/i,f=-100*c/a+100;return{h:n.hsl.h,s:d,v:f,a:n.hsl.a,source:"rgb"}}},function(e,t,n){"use strict";var r=n(15),o=n(42),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){"use strict";var r=n(13);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";var r=n(137),o=n(15),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var o=function(){function e(e,t){for(var n=0;ni)c=0;else{c=360*(-100*l/i+100)/100}if(n.hsl.h!==c)return{h:c,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}else{var d=void 0;if(u<0)d=0;else if(u>o)d=359;else{d=360*(100*u/o)/100}if(n.hsl.h!==d)return{h:d,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}return null}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var o=function(){function e(e,t){for(var n=0;n-1,o=Number(t.replace(/%/g,""));if(!isNaN(o)){var i=n.props.arrowOffset||1;38===e.keyCode&&(null!==n.props.label?n.props.onChange&&n.props.onChange(l({},n.props.label,o+i),e):n.props.onChange&&n.props.onChange(o+i,e),r?n.setState({value:o+i+"%"}):n.setState({value:o+i})),40===e.keyCode&&(null!==n.props.label?n.props.onChange&&n.props.onChange(l({},n.props.label,o-i),e):n.props.onChange&&n.props.onChange(o-i,e),r?n.setState({value:o-i+"%"}):n.setState({value:o-i}))}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(l({},n.props.label,t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.PureComponent||i.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=(0,s.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return a.default.createElement("div",{style:t.wrap},a.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?a.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},o=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,n,i){var a=e+"-"+t+"-"+n+(i?"-server":""),s=o(e,t,n,i);return r[a]?r[a]:(r[a]=s,s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){e.preventDefault();var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(c=l<0?0:l>i?1:Math.round(100*l/i)/100,n.hsl.a!==c)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:c,source:"rgb"}}else{var d=void 0;if(d=u<0?0:u>o?1:Math.round(100*u/o)/100,n.a!==d)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:d,source:"rgb"}}return null}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var o,i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,c=Array(l),d=0;d1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,c=Array(l),d=0;d1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map(function(t){var o=e[t];return o&&(0,r.default)(o,function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])}),t}),n};t.default=s},function(e,t,n){"use strict";var r=n(47);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a-1}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){"use strict";var r=n(45),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){"use strict";e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){"use strict";var r=n(71),o=n(159),i=1,a=2;e.exports=function(e,t,n,s){var u=n.length,l=u,c=!s;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,i.default)(t)?(0,o.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,r.default)(t)&&n.push(t)}),n};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=Object.assign||function(e){for(var t=1;tn;n++){var r=arguments[n];for(var o in r)e[o]=r[o]}return e},bind:function(e,t){return function(){e.apply(t,arguments)}},on:function(e,t,n){if(t&&n)u.addEvent(e,t,n);else if(t)for(var r in t)u.addEvent(e,r,t[r])},off:function(e,t,n){if(t&&n)u.removeEvent(e,t,n);else if(t)for(var r in t)u.removeEvent(e,r,t[r])},limit:function(e,t){return function(e){return e instanceof Array}(t)?e<(t=[+t[0],+t[1]])[0]?e=t[0]:e>t[1]&&(e=t[1]):e=+t,e},addEvent:"attachEvent"in Element.prototype?function(e,t,n){e.attachEvent("on"+t,n)}:function(e,t,n){e.addEventListener(t,n,!1)},removeEvent:"attachEvent"in Element.prototype?function(e,t,n){e.detachEvent("on"+t,n)}:function(e,t,n){e.removeEventListener(t,n)}};return u.assign(e.prototype,{setOption:function(e,t){var n=this;return n.options[e]=t,n.initialize(),n},get:function(){var e=this.dragEvent;return{x:e.x,y:e.y}},set:function(e,t){var n=this,r=n.dragEvent;return r.original={x:r.x,y:r.y},n.move(e,t),n},dragEvent:{started:!1,x:0,y:0},initialize:function(){var e,t=this,r=t.element,o=(t.handle,r.style),i=n(r),a=t.options,l=s.transform,c=t._dimensions={height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop,width:r.offsetWidth};a.useGPU&&l&&("none"===(e=i[l])&&(e=""),o[l]=e+" translate3d(0,0,0)"),a.setPosition&&(o.display="block",o.left=c.left+"px",o.top=c.top+"px",o.bottom=o.right="auto",o.margin=0,o.position="absolute"),a.setCursor&&(o.cursor="move"),t.setLimit(a.limit),u.assign(t.dragEvent,{x:c.left,y:c.top}),u.on(t.handle,t.handlers.start)},start:function(e){var t=this,n=t.getCursor(e),r=t.element;t.useTarget(e.target||e.srcElement)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.dragEvent.oldZindex=r.style.zIndex,r.style.zIndex=1e4,t.setCursor(n),t.setPosition(),t.setZoom(),u.on(document,t.handlers.move))},drag:function(e){var t=this,n=t.dragEvent,r=t.element,o=t._cursor,i=t._dimensions,a=t.options,s=i.zoom,u=t.getCursor(e),l=a.threshold,c=(u.x-o.x)/s+i.left,d=(u.y-o.y)/s+i.top;!n.started&&l&&Math.abs(o.x-u.x)'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=["user-password"];return!0===e.passwordFailed&&t.push("error"),o.default.createElement("input",{id:"password-field",type:"password",placeholder:"*******************",className:t.join(" "),value:e.password,onInput:e.handlePasswordInput})};a.propTypes={password:r.default.string.isRequired,passwordFailed:r.default.bool.isRequired,handlePasswordInput:r.default.func.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(2)),o=a(n(0)),i=a(n(22));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=["dropdown-item"];return!0===e.active&&(t.push("active"),t.push((0,i.default)({"background-color":e.buttonColor}))),o.default.createElement("div",{className:t.join(" "),key:e.session.key,onClick:function(t){t.preventDefault(),e.handleClick(e.session.key)}},e.session.name)};s.propTypes={active:r.default.bool.isRequired,buttonColor:r.default.string.isRequired,session:r.default.object.isRequired,handleClick:r.default.func.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionDropdown=void 0;var r=function(){function e(e,t){for(var n=0;nt.name.toUpperCase()}).sort(function(t,n){return n.key.toLowerCase()===e.props.activeSession.toLowerCase()?1:-1}).map(function(t){return i.default.createElement(s.default,{active:e.props.activeSession===t.key,key:t.key,session:t,buttonColor:e.props.buttonColor,handleClick:e.handleClick.bind(e)})}),n=["dropdown","user-session"];return!0===this.state.dropdownActive&&n.push("active"),i.default.createElement("div",{className:n.join(" "),onMouseLeave:this.handleDropdownLeave.bind(this)},t)}}]),t}();l.propTypes={activeSession:o.default.string.isRequired,setActiveSession:o.default.func.isRequired,buttonColor:o.default.string.isRequired},t.default=(0,a.connect)(function(e){return{activeSession:e.session.key,buttonColor:e.settings.style_login_button_color}},null)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserPanelForm=void 0;var r=l(n(2)),o=l(n(0)),i=l(n(22)),a=n(8),s=l(n(457)),u=l(n(455));function l(e){return e&&e.__esModule?e:{default:e}}var c=n(454),d=t.UserPanelForm=function(e){var t=["user-username"];t.push((0,i.default)({color:e.settings.style_login_username_color}));var n=["submit-button"];return n.push((0,i.default)({color:e.settings.style_login_button_color})),o.default.createElement("form",{className:"login-form",onSubmit:e.handleLoginSubmit},o.default.createElement("div",{className:t.join(" ")},e.activeUser.display_name),o.default.createElement("div",{className:"user-password-container"},o.default.createElement(u.default,{password:e.password,passwordFailed:e.passwordFailed,handlePasswordInput:e.handlePasswordInput})),o.default.createElement("div",{className:"submit-row-container"},o.default.createElement("div",{className:"submit-row"},o.default.createElement("div",{className:"left"},o.default.createElement(s.default,{activeSession:e.activeSession,setActiveSession:e.setActiveSession})),o.default.createElement("div",{className:"right"},o.default.createElement("label",{className:n.join(" ")},o.default.createElement("input",{type:"submit"}),o.default.createElement("div",{dangerouslySetInnerHTML:{__html:c}}))))))};d.propTypes={activeUser:r.default.object,activeSession:r.default.object,settings:r.default.object.isRequired,password:r.default.string.isRequired,passwordFailed:r.default.bool.isRequired,handleLoginSubmit:r.default.func.isRequired,handlePasswordInput:r.default.func.isRequired,setActiveSession:r.default.func.isRequired},t.default=(0,a.connect)(function(e){return{activeUser:e.user,activeSession:e.session,settings:e.settings}},null)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n'},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Item=t.SVGMap=void 0;var r=s(n(2)),o=s(n(0)),i=s(n(22)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SVGMap={hibernate:n(465),reboot:n(464),shutdown:n(463),sleep:n(462)},l=t.Item=function(e){var t=e.command,n=e.handleCommand,r=e.settings,a=t.toLowerCase().split(".")[1]||!1,s=["command",t=t.toLowerCase().split(".")[0],a].filter(function(e){return e}),l=["icon-wrapper"];!1===r.command_icons_enabled&&l.push("hidden");var c=(0,i.default)({color:r.style_command_icon_color});l.push(c);var d=(0,i.default)({color:r.style_command_text_color,"text-align":r.command_text_align});return o.default.createElement("div",{className:s.join(" "),onClick:n.bind(void 0,t,a)},o.default.createElement("div",{className:l.join(" "),dangerouslySetInnerHTML:{__html:u[t]}}),o.default.createElement("div",{className:"text "+d},t))};l.propTypes={command:r.default.string.isRequired,handleCommand:r.default.func.isRequired,settings:r.default.object.isRequired},t.default=(0,a.connect)(function(e){return{settings:e.settings}},null)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var r=a(n(2)),o=a(n(0)),i=a(n(466));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.List=function(e){var t=e.enabledCommands,n=e.handleCommand,r=t.map(function(e){return o.default.createElement(i.default,{key:e,command:e,handleCommand:n})});return o.default.createElement("div",{className:"commands-wrapper"},r)};s.propTypes={enabledCommands:r.default.arrayOf(r.default.string).isRequired,handleCommand:r.default.func.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],r=this.state.switcher,o=this.state.directory;this.cyclerBackground.style.background="url('"+o+e+"')",this.cyclerBackground.style.backgroundSize="cover",this.cyclerForeground.className+=" fadeout",r.currentlyFading=!0,!1!==n&&(this.cyclerPreloader.style.background="url('"+o+n+"')"),setTimeout(function(){t.cyclerForeground.style.background="url('"+o+e+"')",t.cyclerForeground.style.backgroundSize="cover",t.cyclerForeground.className=t.cyclerForeground.className.replace(" fadeout",""),document.body.style.background="url('"+o+e+"')",document.body.style.backgroundSize="cover";var n=t.state.switcher;n.currentlyFading=!1,t.setState({selectedWallpaper:e,switcher:n})},600)}},{key:"generateOptions",value:function(){var e=["options"];return!0===this.state.switcher.active&&e.push("active"),i.default.createElement("div",{className:"options-wrapper"},i.default.createElement("div",{className:e.join(" ")},i.default.createElement("div",{className:"button-reject",onClick:this.rejectWallpaper.bind(this)},"✕"),i.default.createElement("div",{className:"button-accept",onClick:this.acceptWallpaper.bind(this)},"✓")))}},{key:"render",value:function(){var e=this.generateOptions(),t=(0,o.default)({"background-image":"url("+this.props.distroImage+") !important"});return i.default.createElement("div",{className:"distro-wrapper"},i.default.createElement("div",{className:"distro-logo "+t,onClick:this.handleSwitcherActivation.bind(this)}),e)}}]),t}();f.propTypes={distroImage:a.default.string},t.default=(0,s.connect)(function(e){return{distroImage:e.settings.distro}},null)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=n(e,s),l=r(e,s),c=o(e,s);0;return(s.pure?a:i)(u,l,c,e,s)};var r,o=n(472);(r=o)&&r.__esModule;function i(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function a(e,t,n,r,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,s=o.areStatePropsEqual,u=!1,l=void 0,c=void 0,d=void 0,f=void 0,h=void 0;function p(o,u){var p,y,v=!a(u,c),m=!i(o,l);return l=o,c=u,v&&m?(d=e(l,c),t.dependsOnOwnProps&&(f=t(r,c)),h=n(d,f,c)):v?(e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(f=t(r,c)),h=n(d,f,c)):m?(p=e(l,c),y=!s(p,d),d=p,y&&(h=n(d,f,c)),h):h}return function(o,i){return u?p(o,i):(d=e(l=o,c=i),f=t(r,c),h=n(d,f,c),u=!0,h)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMergeProps=a,t.wrapMergePropsFunc=s,t.whenMergePropsIsFunction=u,t.whenMergePropsIsOmitted=l;var r,o=n(179);(r=o)&&r.__esModule;var i=Object.assign||function(e){for(var t=1;t=0;o--){var i=t[o](e);if(i)return i}return function(t,o){throw new Error("Invalid value of type "+(void 0===e?"undefined":r(e))+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function h(e,t){return e===t}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?o.default:t,r=e.mapStateToPropsFactories,c=void 0===r?s.default:r,p=e.mapDispatchToPropsFactories,y=void 0===p?a.default:p,v=e.mergePropsFactories,m=void 0===v?u.default:v,g=e.selectorFactory,b=void 0===g?l.default:g;return function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.pure,s=void 0===a||a,u=o.areStatesEqual,l=void 0===u?h:u,p=o.areOwnPropsEqual,v=void 0===p?i.default:p,g=o.areStatePropsEqual,_=void 0===g?i.default:g,x=o.areMergedPropsEqual,w=void 0===x?i.default:x,E=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=f(e,c,"mapStateToProps"),T=f(t,y,"mapDispatchToProps"),O=f(r,m,"mergeProps");return n(b,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:T,initMergeProps:O,pure:s,areStatesEqual:l,areOwnPropsEqual:v,areStatePropsEqual:_,areMergedPropsEqual:w},E))}}t.default=p()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=null,o={notify:function(){}};var i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=o}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=r,e=r},notify:function(){for(var n=e=t,r=0;r0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",s=function(e){function i(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return a[t]=n.store,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),i.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},i.prototype.render=function(){return o.Children.only(this.props.children)},i}(o.Component);return s.propTypes={store:a.storeShape.isRequired,children:i.default.element.isRequired},s.childContextTypes=((e={})[t]=a.storeShape.isRequired,e[n]=a.subscriptionShape,e),s}t.default=u()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(494),s=(o=a)&&o.__esModule?o:{default:o};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var u=(0,s.default)(i);t.default=u}).call(this,n(24),n(33)(e))},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";e.exports=function(e){try{e.focus()}catch(e){}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"===(void 0===e?"undefined":r(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(498);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(499);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var s=0;s=(a={attributeName:a,attributeNamespace:null,propertyName:i,mutationMethod:null,mustUseProperty:O(s,t.MUST_USE_PROPERTY),hasBooleanValue:O(s,t.HAS_BOOLEAN_VALUE),hasNumericValue:O(s,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:O(s,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:O(s,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:O(s,t.HAS_STRING_BOOLEAN_VALUE)}).hasBooleanValue+a.hasNumericValue+a.hasOverloadedBooleanValue||p("50",i),o.hasOwnProperty(i)&&(a.attributeName=o[i]),r.hasOwnProperty(i)&&(a.attributeNamespace=r[i]),e.hasOwnProperty(i)&&(a.mutationMethod=e[i]),P.properties[i]=a}}},P={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(P.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(void 0===t?"undefined":r(t)){case"boolean":return P.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return P.properties.hasOwnProperty(e)?P.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(P.isReservedProp(e))return!0;var t=P.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:"data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e},isReservedProp:function(e){return T.hasOwnProperty(e)},injection:C},M=P,k=0,A=1,R=2,I=3,D=4,j=5,N=6,L=7,F=8,B=9,U=10,H=1,W=3,z=8,X=9,G=11,V=j,Y=N,q=H,K=z,Z=M.ID_ATTRIBUTE_NAME,$={hasCachedChildNodes:1},J=Math.random().toString(36).slice(2),Q="__reactInternalInstance$"+J,ee="__reactEventHandlers$"+J;function te(e){for(var t;t=e._renderedComponent;)e=t;return e}function ne(e,t){(e=te(e))._hostNode=t,t[Q]=e}function re(e,t){if(!(e._flags&$.hasCachedChildNodes)){var n,r=e._renderedChildren;t=t.firstChild;e:for(n in r)if(r.hasOwnProperty(n)){var o=r[n],i=te(o)._domID;if(0!==i){for(;null!==t;t=t.nextSibling){var a=t,s=i;if(a.nodeType===q&&a.getAttribute(Z)===""+s||a.nodeType===K&&a.nodeValue===" react-text: "+s+" "||a.nodeType===K&&a.nodeValue===" react-empty: "+s+" "){ne(o,t);continue e}}p("32",i)}}e._flags|=$.hasCachedChildNodes}}function oe(e){if(e[Q])return e[Q];for(var t=[];!e[Q];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=e[Q];if(n.tag===V||n.tag===Y)return n;for(;e&&(n=e[Q]);e=t.pop()){var r=n;t.length&&re(n,e)}return r}var ie={getClosestInstanceFromNode:oe,getInstanceFromNode:function(e){var t=e[Q];return t?t.tag===V||t.tag===Y?t:t._hostNode===e?t:null:null!=(t=oe(e))&&t._hostNode===e?t:null},getNodeFromInstance:function(e){if(e.tag===V||e.tag===Y)return e.stateNode;if(void 0===e._hostNode&&p("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||p("34"),e=e._hostParent;for(;t.length;e=t.pop())re(e,e._hostNode);return e._hostNode},precacheChildNodes:re,precacheNode:ne,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Q],e._hostNode=null)},precacheFiberNode:function(e,t){t[Q]=e},getFiberCurrentPropsFromNode:function(e){return e[ee]||null},updateFiberProps:function(e,t){e[ee]=t}},ae={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},se={ReactCurrentOwner:o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner};function ue(e){if("function"==typeof e.getName)return e.getName();if("number"==typeof e.tag){if("string"==typeof(e=e.type))return e;if("function"==typeof e)return e.displayName||e.name}return null}var le=0,ce=1,de=2,fe=4,he=6,pe=8,ye=16,ve=32,me=64,ge=128,be=j,_e=I,xe=D,we=N,Ee=le,Se=de;function Te(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if((t.effectTag&Se)!==Ee)return 1;for(;t.return;)if(((t=t.return).effectTag&Se)!==Ee)return 1}return t.tag===_e?2:3}function Oe(e){2!==Te(e)&&p("188")}function Ce(e){var t=e.alternate;if(!t)return 3===(t=Te(e))&&p("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var a=o.child;a;){if(a===n)return Oe(o),e;if(a===r)return Oe(o),t;a=a.sibling}p("188")}if(n.return!==r.return)n=o,r=i;else{a=!1;for(var s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}a||p("189")}}n.alternate!==r&&p("190")}return n.tag!==_e&&p("188"),n.stateNode.current===n?e:t}var Pe=function(e){return 2===Te(e)},Me=function(e){return!!(e=ae.get(e))&&2===Te(e)},ke=function(e){if(!(e=Ce(e)))return null;for(var t=e;;){if(t.tag===be||t.tag===we)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},Ae=function(e){if(!(e=Ce(e)))return null;for(var t=e;;){if(t.tag===be||t.tag===we)return t;if(t.child&&t.tag!==xe)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},Re={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&p("197"),Ie=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,i,a,s,u){Ie.apply(Re,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,s,u){if(Re.invokeGuardedCallback.apply(this,arguments),Re.hasCaughtError()){var l=Re.clearCaughtError();Re._hasRethrowError||(Re._hasRethrowError=!0,Re._rethrowError=l)}},rethrowCaughtError:function(){return function(){if(Re._hasRethrowError){var e=Re._rethrowError;throw Re._rethrowError=null,Re._hasRethrowError=!1,e}}.apply(Re,arguments)},hasCaughtError:function(){return Re._hasCaughtError},clearCaughtError:function(){if(Re._hasCaughtError){var e=Re._caughtError;return Re._caughtError=null,Re._hasCaughtError=!1,e}p("198")}};function Ie(e,t,n,r,o,i,a,s,u){Re._hasCaughtError=!1,Re._caughtError=null;var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){Re._caughtError=e,Re._hasCaughtError=!0}}var De,je=Re;function Ne(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Le.getNodeFromInstance(r),je.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}var Le={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)&&p("103"),e.currentTarget=t?Le.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;oJe.length&&Je.push(e)}}}},tt=et;function nt(e,t){return null==t&&p("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e,t){e&&(Fe.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))}function at(e){return it(e,!0)}function st(e){return it(e,!1)}function ut(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||"button"!==t&&"input"!==t&&"select"!==t&&"textarea"!==t);default:return!1}}var lt,ct={injection:{injectEventPluginOrder:S.injectEventPluginOrder,injectEventPluginsByName:S.injectEventPluginsByName},getListener:function(e,t){if("number"==typeof e.tag){var n=e.stateNode;if(!n)return null;var o=Fe.getFiberCurrentPropsFromNode(n);if(!o)return null;if(n=o[t],ut(t,e.type,o))return null}else{if("string"==typeof(o=e._currentElement)||"number"==typeof o||!e._rootNodeID)return null;if(n=(e=o.props)[t],ut(t,o.type,e))return null}return n&&"function"!=typeof n&&p("231",t,void 0===n?"undefined":r(n)),n},extractEvents:function(e,t,n,r){for(var o,i=S.plugins,a=0;an||r.hasOverloadedBooleanValue&&!1===n?It.deleteValueForProperty(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else It.setValueForAttribute(e,t,M.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){(function(e){return!!Rt.hasOwnProperty(e)||!At.hasOwnProperty(e)&&(kt.test(e)?Rt[e]=!0:(At[e]=!0,!1))})(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=M.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Dt=It,jt=se.ReactDebugCurrentFrame;function Nt(){return null}var Lt={current:null,phase:null,resetCurrentFiber:function(){jt.getCurrentStack=null,Lt.current=null,Lt.phase=null},setCurrentFiber:function(e,t){jt.getCurrentStack=Nt,Lt.current=e,Lt.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:Nt},Ft=Lt,Bt={getHostProps:function(e,t){var n=t.value,r=t.checked;return a({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Dt.setValueForProperty(e,"checked",n||!1),null!=(n=t.value)?0===n&&""===e.value?e.value="0":"number"===t.type?(n!=(t=parseFloat(e.value)||0)||n==t&&e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))},postMountWrapper:function(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)},restoreControlledState:function(e,t){Bt.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;t=t.length||p("93"),t=t[0]),n=""+t),null==n&&(n=""),r=n),e._wrapperState={initialValue:""+r}},updateWrapper:function(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Zt.updateWrapper(e,t)}},$t=Zt,Jt=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(e,t){t&&(Jt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&p("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&p("60"),"object"===r(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML||p("61")),null!=t.style&&"object"!==r(t.style)&&p("62",""))}function en(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}var tn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=function(e){var t=en(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=en(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}};function nn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rn,on,an=v,sn=(on=function(e,t){if(e.namespaceURI!==an.svg||"innerHTML"in e)e.innerHTML=t;else for((rn=rn||document.createElement("div")).innerHTML=""+t+"",t=rn.firstChild;t.firstChild;)e.appendChild(t.firstChild)},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return on(e,t)})}:on),un=/["'&<>]/,ln=W;function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===ln)return void(n.nodeValue=t)}e.textContent=t}i.canUseDOM&&("textContent"in document.documentElement||(cn=function(e,t){if(e.nodeType===ln)e.nodeValue=t;else{if("boolean"==typeof t||"number"==typeof t)t=""+t;else{t=""+t;var n=un.exec(t);if(n){var r,o="",i=0;for(r=n.index;r<\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e},createTextNode:function(e,t){return(t.nodeType===fn?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(e,t,n,r){var o=nn(t,n);switch(t){case"iframe":case"object":wt.trapBubbledEvent("topLoad","load",e);var i=n;break;case"video":case"audio":for(i in bn)bn.hasOwnProperty(i)&&wt.trapBubbledEvent(i,bn[i],e);i=n;break;case"source":wt.trapBubbledEvent("topError","error",e),i=n;break;case"img":case"image":wt.trapBubbledEvent("topError","error",e),wt.trapBubbledEvent("topLoad","load",e),i=n;break;case"form":wt.trapBubbledEvent("topReset","reset",e),wt.trapBubbledEvent("topSubmit","submit",e),i=n;break;case"details":wt.trapBubbledEvent("topToggle","toggle",e),i=n;break;case"input":Ut.initWrapperState(e,n),i=Ut.getHostProps(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(r,"onChange");break;case"option":Ht(e,n),i=zt(e,n);break;case"select":Vt(e,n),i=Gt(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(r,"onChange");break;case"textarea":$t.initWrapperState(e,n),i=$t.getHostProps(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(r,"onChange");break;default:i=n}Qt(t,i);var a,s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?Mt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&sn(e,l):"children"===a?"string"==typeof l?dn(e,l):"number"==typeof l&&dn(e,""+l):"suppressContentEditableWarning"!==a&&(yn.hasOwnProperty(a)?null!=l&&gn(r,a):o?Dt.setValueForAttribute(e,a,l):null!=l&&Dt.setValueForProperty(e,a,l))}switch(t){case"input":tn.track(e),Ut.postMountWrapper(e,n);break;case"textarea":tn.track(e),$t.postMountWrapper(e,n);break;case"option":Wt(e,n);break;case"select":Yt(e,n);break;default:"function"==typeof i.onClick&&(e.onclick=u)}},diffProperties:function(e,t,n,r,o){var i,a,s=null;switch(t){case"input":n=Ut.getHostProps(e,n),r=Ut.getHostProps(e,r),s=[];break;case"option":n=zt(e,n),r=zt(e,r),s=[];break;case"select":n=Gt(e,n),r=Gt(e,r),s=[];break;case"textarea":n=$t.getHostProps(e,n),r=$t.getHostProps(e,r),s=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=u)}for(i in Qt(t,r),e=null,n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(a in t=n[i])t.hasOwnProperty(a)&&(e||(e={}),e[a]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&(yn.hasOwnProperty(i)?s||(s=[]):(s=s||[]).push(i,null));for(i in r){var l=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&l!==t&&(null!=l||null!=t))if("style"===i)if(t){for(a in t)!t.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(e||(e={}),e[a]="");for(a in l)l.hasOwnProperty(a)&&t[a]!==l[a]&&(e||(e={}),e[a]=l[a])}else e||(s||(s=[]),s.push(i,e)),e=l;else"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,t=t?t.__html:void 0,null!=l&&t!==l&&(s=s||[]).push(i,""+l)):"children"===i?t===l||"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(i,""+l):"suppressContentEditableWarning"!==i&&(yn.hasOwnProperty(i)?(null!=l&&gn(o,i),s||t===l||(s=[])):(s=s||[]).push(i,l))}return e&&(s=s||[]).push("style",e),s},updateProperties:function(e,t,n,r,o){nn(n,r),r=nn(n,o);for(var i=0;it&&(t=8),Pn=t=qn(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=qn(e.priorityLevel,t);)n=e,e=e.next;return n}function $n(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue={first:null,last:null,hasForceUpdate:!1,callbackList:null}),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue={first:null,last:null,hasForceUpdate:!1,callbackList:null}):e=null;var o=Vn=r;n=Yn=e!==r?e:null;var i=Zn(o,t),a=null!==i?i.next:o.first;return null===n?(Kn(o,t,i,a),null):(e=null!==(r=Zn(n,t))?r.next:n.first,Kn(o,t,i,a),a===e&&null!==a||i===r&&null!==i?(null===r&&(n.first=t),null===e&&(n.last=null),null):(Kn(n,t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},r,e),t))}function Jn(e,t,n,r){return"function"==typeof(e=e.partialState)?e.call(t,n,r):e}var Qn=function(e,t,n,r){$n(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},er=function(e,t,n,r){$n(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},tr=function(e,t,n){$n(e,{priorityLevel:n,partialState:null,callback:t,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},nr=function(e){var t=e.updateQueue;return null===t||e.tag!==Xn&&e.tag!==Gn?Hn:null!==t.first?t.first.priorityLevel:Hn},rr=function(e,t,n,r){var o=null===t.element;e=$n(e,t={priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:o,next:null}),o&&(n=Yn,null!==(o=Vn)&&null!==t.next&&(t.next=null,o.last=t),null!==n&&null!==e&&null!==e.next&&(e.next=null,n.last=t))},or=function(e,t,n,r,o,i,s){null!==e&&e.updateQueue===n&&(n=t.updateQueue={first:n.first,last:n.last,callbackList:null,hasForceUpdate:!1}),e=n.callbackList;for(var u=n.hasForceUpdate,l=!0,c=n.first;null!==c&&0>=qn(c.priorityLevel,s);){var d;n.first=c.next,null===n.first&&(n.last=null),c.isReplace?(o=Jn(c,r,o,i),l=!0):(d=Jn(c,r,o,i))&&(o=l?a({},o,d):a(o,d),l=!1),c.isForced&&(u=!0),null===c.callback||c.isTopLevelUnmount&&null!==c.next||((e=null!==e?e:[]).push(c.callback),t.effectTag|=Un),c=c.next}return n.callbackList=e,n.hasForceUpdate=u,null!==n.first||null!==e||u||(t.updateQueue=null),o},ir=function(e,t,n){if(null!==(e=t.callbackList))for(t.callbackList=null,t=0;tsr||(e.current=ar[sr],ar[sr]=null,sr--)},cr=function(e,t){ar[++sr]=e.current,e.current=t},dr=function(){for(;-1e)?e:t},co=function(){return new $r(Hr,null,Kr)},fo=k,ho=A,po=R,yo=j;"function"==typeof Symbol&&Symbol.for?(Qr=Symbol.for("react.coroutine"),eo=Symbol.for("react.yield")):(Qr=60104,eo=60105);var vo={createCoroutine:function(e,t,n){var r=3f?(h=d,d=null):h=d.sibling;var p=m(e,d,a[f],u);if(null===p){null===d&&(d=h);break}t&&d&&null===p.alternate&&n(e,d),r=s(p,r,f),null===c?l=p:c.sibling=p,c=p,d=h}if(f===a.length)return o(e,d),l;if(null===d){for(;ff?(h=d,d=null):h=d.sibling;var b=m(e,d,y.value,u);if(null===b){d||(d=h);break}t&&d&&null===b.alternate&&n(e,d),r=s(b,r,f),null===c?l=b:c.sibling=b,c=b,d=h}if(y.done)return o(e,d),l;if(null===d){for(;!y.done;f++,y=a.next())null!==(y=v(e,y.value,u))&&(r=s(y,r,f),null===c?l=y:c.sibling=y,c=y);return l}for(d=i(e,d);!y.done;f++,y=a.next())null!==(y=g(d,e,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),r=s(y,r,f),null===c?l=y:c.sibling=y,c=y);return t&&d.forEach(function(t){return n(e,t)}),l}return function(e,t,i,s){var l="object"===(void 0===i?"undefined":r(i))&&null!==i;if(l)switch(i.$$typeof){case Ho:e:{var c=i.key;for(l=t;null!==l;){if(l.key===c){if(l.type===i.type){o(e,l.sibling),(t=a(l,s)).ref=zo(l,i),t.pendingProps=i.props,t.return=e,e=t;break e}o(e,l);break}n(e,l),l=l.sibling}(s=Eo(i,e.internalContextTag,s)).ref=zo(t,i),s.return=e,e=s}return u(e);case bo:e:{for(l=i.key;null!==t;){if(t.key===l){if(t.tag===Do){o(e,t.sibling),(t=a(t,s)).pendingProps=i,t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}(i=Oo(i,e.internalContextTag,s)).return=e,e=i}return u(e);case _o:e:{if(null!==t){if(t.tag===jo){o(e,t.sibling),(t=a(t,s)).type=i.value,t.return=e,e=t;break e}o(e,t)}(t=Co(i,e.internalContextTag,s)).type=i.value,t.return=e,e=t}return u(e);case xo:e:{for(l=i.key;null!==t;){if(t.key===l){if(t.tag===Io&&t.stateNode.containerInfo===i.containerInfo&&t.stateNode.implementation===i.implementation){o(e,t.sibling),(t=a(t,s)).pendingProps=i.children||[],t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}(i=Po(i,e.internalContextTag,s)).return=e,e=i}return u(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==t&&t.tag===Ro?(o(e,t.sibling),(t=a(t,s)).pendingProps=i,t.return=e,e=t):(o(e,t),(i=To(i,e.internalContextTag,s)).return=e,e=i),u(e);if(Mo(i))return b(e,t,i,s);if(Wo(i))return _(e,t,i,s);if(l&&Xo(e,i),void 0===i)switch(e.tag){case Ao:case ko:p("152",(i=e.type).displayName||i.name||"Component")}return o(e,t)}}var Vo={reconcileChildFibers:Go(!0,!0),reconcileChildFibersInPlace:Go(!1,!0),mountChildFibersInPlace:Go(!1,!1),cloneChildFibers:function(e,t){if(null!==e&&t.child!==e.child&&p("153"),null!==t.child){e=t.child;var n=wo(e,e.pendingWorkPriority);for(n.pendingProps=e.pendingProps,t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wo(e,e.pendingWorkPriority)).pendingProps=e.pendingProps,n.return=t;n.sibling=null}}},Yo=fe,qo=Fr,Ko=Tr,Zo=Or,$o=Sr,Jo=Pr,Qo=Qn,ei=er,ti=tr,ni=or,ri=Cr,oi=Me;var ii=Vo.mountChildFibersInPlace,ai=Vo.reconcileChildFibers,si=Vo.reconcileChildFibersInPlace,ui=Vo.cloneChildFibers,li=or,ci=Or,di=Sr,fi=Cr,hi=Dr,pi=Rr,yi=jr,vi=k,mi=A,gi=R,bi=I,_i=j,xi=N,wi=D,Ei=L,Si=F,Ti=B,Oi=U,Ci=Dn,Pi=Bn,Mi=ce,ki=de,Ai=ye,Ri=me,Ii=ge,Di=se.ReactCurrentOwner;function ji(e,t,n,o,i){function a(e,t,n){s(e,t,n,t.pendingWorkPriority)}function s(e,t,n,r){t.child=null===e?ii(t,t.child,n,r):e.child===t.child?ai(t,t.child,n,r):si(t,t.child,n,r)}function u(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=Ii)}function d(e,t,n,r){if(u(e,t),!n)return r&&yi(t,!1),h(e,t);n=t.stateNode,Di.current=t;var o=n.render();return t.effectTag|=Mi,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&yi(t,!0),t.child}function f(e){var t=e.stateNode;t.pendingContext?pi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pi(e,t.context,!1),_(e,t.containerInfo)}function h(e,t){return ui(e,t),t.child}function y(e,t){switch(t.tag){case bi:f(t);break;case gi:hi(t);break;case wi:_(t,t.stateNode.containerInfo)}return null}var v=e.shouldSetTextContent,m=e.useSyncScheduling,g=e.shouldDeprioritizeSubtree,b=t.pushHostContext,_=t.pushHostContainer,x=n.enterHydrationState,w=n.resetHydrationState,E=n.tryToClaimNextHydratableInstance,S=(e=function(e,t,n,r){function o(e,t){t.updater=i,e.stateNode=t,ae.set(t,e)}var i={isMounted:oi,enqueueSetState:function(n,r,o){n=ae.get(n);var i=t(n,!1);Qo(n,r,void 0===o?null:o,i),e(n,i)},enqueueReplaceState:function(n,r,o){n=ae.get(n);var i=t(n,!1);ei(n,r,void 0===o?null:o,i),e(n,i)},enqueueForceUpdate:function(n,r){n=ae.get(n);var o=t(n,!1);ti(n,void 0===r?null:r,o),e(n,o)}};return{adoptClassInstance:o,constructClassInstance:function(e,t){var n=e.type,r=$o(e),i=Jo(e),a=i?Zo(e,r):l;return o(e,t=new n(t,a)),i&&Ko(e,r,a),t},mountClassInstance:function(e,t){var n=e.alternate,r=e.stateNode,o=r.state||null,a=e.pendingProps;a||p("158");var s=$o(e);r.props=a,r.state=o,r.refs=l,r.context=Zo(e,s),In.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=qo),"function"==typeof r.componentWillMount&&(s=r.state,r.componentWillMount(),s!==r.state&&i.enqueueReplaceState(r,r.state,null),null!==(s=e.updateQueue)&&(r.state=ni(n,e,s,r,o,a,t))),"function"==typeof r.componentDidMount&&(e.effectTag|=Yo)},updateClassInstance:function(e,t,o){var a=t.stateNode;a.props=t.memoizedProps,a.state=t.memoizedState;var s=t.memoizedProps,u=t.pendingProps;u||null==(u=s)&&p("159");var l=a.context,d=$o(t);if(d=Zo(t,d),"function"!=typeof a.componentWillReceiveProps||s===u&&l===d||(l=a.state,a.componentWillReceiveProps(u,d),a.state!==l&&i.enqueueReplaceState(a,a.state,null)),l=t.memoizedState,o=null!==t.updateQueue?ni(e,t,t.updateQueue,a,l,u,o):l,!(s!==u||l!==o||ri()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=Yo),!1;var f=u;if(null===s||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)f=!0;else{var h=t.stateNode,y=t.type;f="function"==typeof h.shouldComponentUpdate?h.shouldComponentUpdate(f,o,d):!(y.prototype&&y.prototype.isPureReactComponent&&c(s,f)&&c(l,o))}return f?("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(u,o,d),"function"==typeof a.componentDidUpdate&&(t.effectTag|=Yo)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=Yo),n(t,u),r(t,o)),a.props=u,a.state=o,a.context=d,f}}}(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t})).adoptClassInstance,T=e.constructClassInstance,O=e.mountClassInstance,C=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===Ci||t.pendingWorkPriority>n)return y(0,t);switch(t.tag){case vi:null!==e&&p("155");var o=t.type,i=t.pendingProps,s=di(t);return o=o(i,s=ci(t,s)),t.effectTag|=Mi,"object"===(void 0===o?"undefined":r(o))&&null!==o&&"function"==typeof o.render?(t.tag=gi,i=hi(t),S(t,o),O(t,n),t=d(e,t,!0,i)):(t.tag=mi,a(e,t,o),t.memoizedProps=i,t=t.child),t;case mi:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,fi())null===n&&(n=o);else if(null===n||o===n){t=h(e,t);break e}o=di(t),i=i(n,o=ci(t,o)),t.effectTag|=Mi,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case gi:return i=hi(t),o=void 0,null===e?t.stateNode?p("153"):(T(t,t.pendingProps),O(t,n),o=!0):o=C(e,t,n),d(e,t,o,i);case bi:return f(t),null!==(o=t.updateQueue)?(i=t.memoizedState)===(o=li(e,t,o,null,i,null,n))?(w(),t=h(e,t)):(i=o.element,null!==e&&null!==e.child||!x(t)?(w(),a(e,t,i)):(t.effectTag|=ki,t.child=ii(t,t.child,i,n)),t.memoizedState=o,t=t.child):(w(),t=h(e,t)),t;case _i:b(t),null===e&&E(t),i=t.type;var l=t.memoizedProps;return null===(o=t.pendingProps)&&(null===(o=l)&&p("154")),s=null!==e?e.memoizedProps:null,fi()||null!==o&&l!==o?(l=o.children,v(i,o)?l=null:s&&v(i,s)&&(t.effectTag|=Ai),u(e,t),n!==Pi&&!m&&g(i,o)?(t.pendingWorkPriority=Pi,t=null):(a(e,t,l),t.memoizedProps=o,t=t.child)):t=h(e,t),t;case xi:return null===e&&E(t),null===(e=t.pendingProps)&&(e=t.memoizedProps),t.memoizedProps=e,null;case Si:t.tag=Ei;case Ei:return n=t.pendingProps,fi()?null===n&&(null===(n=e&&e.memoizedProps)&&p("154")):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),i=n.children,o=t.pendingWorkPriority,t.stateNode=null===e?ii(t,t.stateNode,i,o):e.child===t.child?ai(t,t.stateNode,i,o):si(t,t.stateNode,i,o),t.memoizedProps=n,t.stateNode;case Ti:return null;case wi:e:{if(_(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,i=t.pendingProps,fi())null===i&&(null==(i=e&&e.memoizedProps)&&p("154"));else if(null===i||t.memoizedProps===i){t=h(e,t);break e}null===e?t.child=si(t,t.child,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case Oi:e:{if(n=t.pendingProps,fi())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=h(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:p("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case gi:hi(t);break;case bi:f(t);break;default:p("157")}return t.effectTag|=Ri,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===Ci||t.pendingWorkPriority>n?y(0,t):(t.firstEffect=null,t.lastEffect=null,s(e,t,null,n),t.tag===gi&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}var Ni=Vo.reconcileChildFibers,Li=kr,Fi=Ar,Bi=k,Ui=A,Hi=R,Wi=I,zi=j,Xi=N,Gi=D,Vi=L,Yi=F,qi=B,Ki=U,Zi=de,$i=ge,Ji=fe,Qi=Bn;var ea=null,ta=null;function na(e){return function(t){try{return e(t)}catch(e){}}}var ra=function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.supportsFiber)return!0;try{var n=t.inject(e);ea=na(function(e){return t.onCommitFiberRoot(n,e)}),ta=na(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0},oa=R,ia=I,aa=j,sa=N,ua=D,la=L,ca=ir,da=function(e){"function"==typeof ta&&ta(e)},fa=de,ha=fe,pa=ve,ya=ye;var va=ur,ma=lr,ga=cr,ba={};var _a=j,xa=N,wa=I,Ea=pe,Sa=de,Ta=io;var Oa=kr,Ca=dr,Pa=se.ReactCurrentOwner,Ma=to,ka=lo,Aa=function(e){"function"==typeof ea&&ea(e)},Ra=Dn,Ia=jn,Da=Nn,ja=Ln,Na=Fn,La=Bn,Fa=Fr,Ba=ce,Ua=de,Ha=fe,Wa=he,za=pe,Xa=ye,Ga=ve,Va=me,Ya=ge,qa=I,Ka=j,Za=D,$a=R,Ja=nr,Qa=Nr;function es(e){function t(){for(;null!==G&&G.current.pendingWorkPriority===Ra;){G.isScheduled=!1;var e=G.nextScheduledRoot;if(G.nextScheduledRoot=null,G===V)return V=G=null,W=Ra,null;G=e}e=G;for(var t=null,n=Ra;null!==e;)e.current.pendingWorkPriority!==Ra&&(n===Ra||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(W=n,Ca(),Qa(),x(),H=Ma(t.current,n),t!==re&&(ne=0,re=t)):(W=Ra,re=H=null)}function n(n){Q=!0,X=null;var r=n.stateNode;if(r.current===n&&p("177"),W!==Ia&&W!==Da||ne++,Pa.current=null,n.effectTag>Ba)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var o=n.firstEffect}else o=n;else o=n.firstEffect;for(D(),z=o;null!==z;){var i=!1,a=void 0;try{for(;null!==z;){var s=z.effectTag;if(s&Xa&&e.resetTextContent(z.stateNode),s&Ya){var u=z.alternate;null!==u&&A(u)}switch(s&~(Ga|Va|Xa|Ya|Ba)){case Ua:O(z),z.effectTag&=~Ua;break;case Wa:O(z),z.effectTag&=~Ua,P(z.alternate,z);break;case Ha:P(z.alternate,z);break;case za:ee=!0,C(z),ee=!1}z=z.nextEffect}}catch(e){i=!0,a=e}i&&(null===z&&p("178"),c(z,a),null!==z&&(z=z.nextEffect))}for(j(),r.current=n,z=o;null!==z;){r=!1,o=void 0;try{for(;null!==z;){var l=z.effectTag;if(l&(Ha|Ga)&&M(z.alternate,z),l&Ya&&k(z),l&Va)switch(i=z,a=void 0,null!==q&&(a=q.get(i),q.delete(i),null==a&&null!==i.alternate&&(i=i.alternate,a=q.get(i),q.delete(i))),null==a&&p("184"),i.tag){case $a:i.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case qa:null===$&&($=a.error);break;default:p("157")}var d=z.nextEffect;z.nextEffect=null,z=d}}catch(e){r=!0,o=e}r&&(null===z&&p("178"),c(z,o),null!==z&&(z=z.nextEffect))}Q=!1,"function"==typeof Aa&&Aa(n.stateNode),Z&&(Z.forEach(v),Z=null),t()}function r(e){for(;;){var t=T(e.alternate,e,W),n=e.return,r=e.sibling,o=e;if(!(o.pendingWorkPriority!==Ra&&o.pendingWorkPriority>W)){for(var i=Ja(o),a=o.child;null!==a;)i=ka(i,a.pendingWorkPriority),a=a.sibling;o.pendingWorkPriority=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),e.effectTag>Ba&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){X=e;break}e=n}return null}function o(e){var t=E(e.alternate,e,W);return null===t&&(t=r(e)),Pa.current=null,t}function i(e){var t=S(e.alternate,e,W);return null===t&&(t=r(e)),Pa.current=null,t}function a(e){l(La,e)}function s(){if(null!==q&&0e)){N=W;e:for(;;){if(W<=Da)for(;null!==H&&!(null===(H=o(H))&&(null===X&&p("179"),N=Da,n(X),N=W,s(),W===Ra||W>e||W>Da)););else if(null!==r)for(;null!==H&&!F;)if(1e||WDa&&!Y&&(R(a),Y=!0),e=$,J=F=L=!1,re=K=q=$=null,ne=0,null!==e)throw e}function c(e,t){var n=Pa.current=null,r=!1,o=!1,i=null;if(e.tag===qa)n=e,d(e)&&(J=!0);else for(var a=e.return;null!==a&&null===n;){if(a.tag===$a?"function"==typeof a.stateNode.componentDidCatch&&(r=!0,i=ue(a),n=a,o=!0):a.tag===qa&&(n=a),d(a)){if(ee||null!==Z&&(Z.has(a)||null!==a.alternate&&Z.has(a.alternate)))return null;n=null,o=!1}a=a.return}if(null!==n){null===K&&(K=new Set),K.add(n);var s="";a=e;do{e:switch(a.tag){case fo:case ho:case po:case yo:var u=a._debugOwner,l=a._debugSource,c=ue(a),f=null;u&&(f=ue(u)),u=l,c="\n in "+(c||"Unknown")+(u?" (at "+u.fileName.replace(/^.*[\\\/]/,"")+":"+u.lineNumber+")":f?" (created by "+f+")":"");break e;default:c=""}s+=c,a=a.return}while(a);a=s,e=ue(e),null===q&&(q=new Map),t={componentName:e,componentStack:a,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:i,willRetry:o},q.set(n,t);try{console.error(t.error)}catch(e){console.error(e)}return Q?(null===Z&&(Z=new Set),Z.add(n)):v(n),n}return null===$&&($=t),null}function d(e){return null!==K&&(K.has(e)||null!==e.alternate&&K.has(e.alternate))}function f(e,t){return h(e,t)}function h(e,t){ne>te&&(J=!0,p("185")),!L&&t<=W&&(H=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===Ra||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===Ra||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==qa)break;var r=e.stateNode;if(t===Ra||r.isScheduled||(r.isScheduled=!0,V?V.nextScheduledRoot=r:G=r,V=r),!L)switch(t){case Ia:l(U?Ia:Da,null);break;case Da:B||p("186");break;default:Y||(R(a),Y=!0)}}e=e.return}}function y(e,t){var n=N;return n===Ra&&(n=!I||e.internalContextTag&Fa||t?Na:Ia),n===Ia&&(L||B)?Da:n}function v(e){h(e,Da)}var m=function(e){function t(e){return e===ba&&p("174"),e}var n=e.getChildHostContext,r=e.getRootHostContext,o=va(ba),i=va(ba),a=va(ba);return{getHostContext:function(){return t(o.current)},getRootHostContainer:function(){return t(a.current)},popHostContainer:function(e){ma(o,e),ma(i,e),ma(a,e)},popHostContext:function(e){i.current===e&&(ma(o,e),ma(i,e))},pushHostContainer:function(e,t){ga(a,t,e),t=r(t),ga(i,e,e),ga(o,t,e)},pushHostContext:function(e){var r=t(a.current),s=t(o.current);s!==(r=n(s,e.type,r))&&(ga(i,e,e),ga(o,r,e))},resetHostContainer:function(){o.current=ba,a.current=ba}}}(e),g=function(e){function t(e,t){var n=Ta();n.stateNode=t,n.return=e,n.effectTag=Ea,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case _a:return i(t,e.type,e.pendingProps);case xa:return a(t,e.pendingProps);default:return!1}}function r(e){for(e=e.return;null!==e&&e.tag!==_a&&e.tag!==wa;)e=e.return;h=e}var o=e.shouldSetTextContent,i=e.canHydrateInstance,a=e.canHydrateTextInstance,s=e.getNextHydratableSibling,u=e.getFirstHydratableChild,l=e.hydrateInstance,c=e.hydrateTextInstance,d=e.didNotHydrateInstance,f=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(i&&a&&s&&u&&l&&c&&d&&f&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){p("175")},prepareToHydrateHostTextInstance:function(){p("176")},popHydrationState:function(){return!1}};var h=null,y=null,v=!1;return{enterHydrationState:function(e){return y=u(e.stateNode.containerInfo),h=e,v=!0},resetHydrationState:function(){y=h=null,v=!1},tryToClaimNextHydratableInstance:function(e){if(v){var r=y;if(r){if(!n(e,r)){if(!(r=s(r))||!n(e,r))return e.effectTag|=Sa,v=!1,void(h=e);t(h,y)}e.stateNode=r,h=e,y=u(r)}else e.effectTag|=Sa,v=!1,h=e}},prepareToHydrateHostInstance:function(e,t,n){return t=l(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return c(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==h)return!1;if(!v)return r(e),v=!0,!1;var n=e.type;if(e.tag!==_a||"head"!==n&&"body"!==n&&!o(n,e.memoizedProps))for(n=y;n;)t(e,n),n=s(n);return r(e),y=h?s(e.stateNode):null,!0}}}(e),b=m.popHostContainer,_=m.popHostContext,x=m.resetHostContainer,w=ji(e,m,g,f,y),E=w.beginWork,S=w.beginFailedWork,T=function(e,t,n){var r=e.createInstance,o=e.createTextInstance,i=e.appendInitialChild,a=e.finalizeInitialChildren,s=e.prepareUpdate,u=t.getRootHostContainer,l=t.popHostContext,c=t.getHostContext,d=t.popHostContainer,f=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,y=n.popHydrationState;return{completeWork:function(e,t,n){var v=t.pendingProps;switch(null===v?v=t.memoizedProps:t.pendingWorkPriority===Qi&&n!==Qi||(t.pendingProps=null),t.tag){case Ui:return null;case Hi:return Li(t),null;case Wi:return d(t),Fi(t),(v=t.stateNode).pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),null!==e&&null!==e.child||(y(t),t.effectTag&=~Zi),null;case zi:l(t),n=u();var m=t.type;if(null!==e&&null!=t.stateNode){var g=e.memoizedProps,b=t.stateNode,_=c();v=s(b,m,g,v,n,_),(t.updateQueue=v)&&(t.effectTag|=Ji),e.ref!==t.ref&&(t.effectTag|=$i)}else{if(!v)return null===t.stateNode&&p("166"),null;if(e=c(),y(t))f(t,n,e)&&(t.effectTag|=Ji);else{e=r(m,v,n,e,t);e:for(g=t.child;null!==g;){if(g.tag===zi||g.tag===Xi)i(e,g.stateNode);else if(g.tag!==Gi&&null!==g.child){g=g.child;continue}if(g===t)break e;for(;null===g.sibling;){if(null===g.return||g.return===t)break e;g=g.return}g=g.sibling}a(e,m,v,n)&&(t.effectTag|=Ji),t.stateNode=e}null!==t.ref&&(t.effectTag|=$i)}return null;case Xi:if(e&&null!=t.stateNode)e.memoizedProps!==v&&(t.effectTag|=Ji);else{if("string"!=typeof v)return null===t.stateNode&&p("166"),null;e=u(),n=c(),y(t)?h(t)&&(t.effectTag|=Ji):t.stateNode=o(v,e,n,t)}return null;case Vi:(v=t.memoizedProps)||p("165"),t.tag=Yi,n=[];e:for((m=t.stateNode)&&(m.return=t);null!==m;){if(m.tag===zi||m.tag===Xi||m.tag===Gi)p("164");else if(m.tag===qi)n.push(m.type);else if(null!==m.child){m.child.return=m,m=m.child;continue}for(;null===m.sibling;){if(null===m.return||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}return v=(m=v.handler)(v.props,n),t.child=Ni(t,null!==e?e.child:null,v,t.pendingWorkPriority),t.child;case Yi:return t.tag=Vi,null;case qi:case Ki:return null;case Gi:return t.effectTag|=Ji,d(t),null;case Bi:p("167");default:p("156")}}}}(e,m,g).completeWork,O=(m=function(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function r(e){return e.tag===aa||e.tag===ia||e.tag===ua}function o(e){for(var t=e;;)if(a(t),null!==t.child&&t.tag!==ua)t.child.return=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function i(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&p("160"),n.tag){case aa:r=n.stateNode,i=!1;break e;case ia:case ua:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===aa||t.tag===sa)o(t),i?m(r,t.stateNode):v(r,t.stateNode);else if(t.tag===ua?r=t.stateNode.containerInfo:a(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;(t=t.return).tag===ua&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function a(e){switch("function"==typeof da&&da(e),e.tag){case oa:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case aa:n(e);break;case la:o(e.stateNode);break;case ua:i(e)}}var s=e.commitMount,u=e.commitUpdate,l=e.resetTextContent,c=e.commitTextUpdate,d=e.appendChild,f=e.appendChildToContainer,h=e.insertBefore,y=e.insertInContainerBefore,v=e.removeChild,m=e.removeChildFromContainer,g=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(r(t)){var n=t;break e}t=t.return}p("160"),n=void 0}var o=t=void 0;switch(n.tag){case aa:t=n.stateNode,o=!1;break;case ia:case ua:t=n.stateNode.containerInfo,o=!0;break;default:p("161")}n.effectTag&ya&&(l(t),n.effectTag&=~ya);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||r(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==aa&&n.tag!==sa;){if(n.effectTag&fa)continue t;if(null===n.child||n.tag===ua)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&fa)){n=n.stateNode;break e}}for(var i=e;;){if(i.tag===aa||i.tag===sa)n?o?y(t,i.stateNode,n):h(t,i.stateNode,n):o?f(t,i.stateNode):d(t,i.stateNode);else if(i.tag!==ua&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){i(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case oa:break;case aa:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&u(n,i,o,e,r,t)}break;case sa:null===t.stateNode&&p("162"),n=t.memoizedProps,c(t.stateNode,null!==e?e.memoizedProps:n,n);break;case ia:case ua:break;default:p("163")}},commitLifeCycles:function(e,t){switch(t.tag){case oa:var n=t.stateNode;if(t.effectTag&ha)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var r=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(r,e)}t.effectTag&pa&&null!==t.updateQueue&&ca(t,t.updateQueue,n);break;case ia:null!==(e=t.updateQueue)&&ca(t,e,t.child&&t.child.stateNode);break;case aa:n=t.stateNode,null===e&&t.effectTag&ha&&s(n,t.type,t.memoizedProps,t);break;case sa:case ua:break;default:p("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case aa:t(g(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}(e,c)).commitPlacement,C=m.commitDeletion,P=m.commitWork,M=m.commitLifeCycles,k=m.commitAttachRef,A=m.commitDetachRef,R=e.scheduleDeferredCallback,I=e.useSyncScheduling,D=e.prepareForCommit,j=e.resetAfterCommit,N=Ra,L=!1,F=!1,B=!1,U=!1,H=null,W=Ra,z=null,X=null,G=null,V=null,Y=!1,q=null,K=null,Z=null,$=null,J=!1,Q=!1,ee=!1,te=1e3,ne=0,re=null;return{scheduleUpdate:f,getPriorityContext:y,batchedUpdates:function(e,t){var n=B;B=!0;try{return e(t)}finally{B=n,L||B||l(Da,null)}},unbatchedUpdates:function(e){var t=U,n=B;U=B,B=!1;try{return e()}finally{B=n,U=t}},flushSync:function(e){var t=B,n=N;B=!0,N=Ia;try{return e()}finally{B=t,N=n,L&&p("187"),l(Da,null)}},deferredUpdates:function(e){var t=N;N=Na;try{return e()}finally{N=t}}}}function ts(){p("196")}function ns(e){return e?"number"==typeof(e=ae.get(e)).tag?ts(e):e._processChildContext(e._context):l}ns._injectFiber=function(e){ts=e};var rs=rr,os=Lr,is=Mr,as=Ir,ss=j,us=ke,ls=Ae;ns._injectFiber(function(e){var t=os(e);return is(e)?as(e,t,!1):t});var cs=W;function ds(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fs(e,t){var n,r=ds(e);for(e=0;r;){if(r.nodeType===cs){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ds(r)}}var hs=null;function ps(){return!hs&&i.canUseDOM&&(hs="textContent"in document.documentElement?"textContent":"innerText"),hs}var ys=function(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,i=t.focusOffset,a=t.getRangeAt(0);try{a.startContainer.nodeType,a.endContainer.nodeType}catch(e){return null}t=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset?0:a.toString().length;var s=a.cloneRange();return s.selectNodeContents(e),s.setEnd(a.startContainer,a.startOffset),a=(e=s.startContainer===s.endContainer&&s.startOffset===s.endOffset?0:s.toString().length)+t,(t=document.createRange()).setStart(n,r),t.setEnd(o,i),{start:(n=t.collapsed)?a:e,end:n?e:a}},vs=function(e,t){if(window.getSelection){var n=window.getSelection(),r=e[ps()].length,o=Math.min(t.start,r);if(t=void 0===t.end?o:Math.min(t.end,r),!n.extend&&o>t&&(r=t,t=o,o=r),r=fs(e,o),e=fs(e,t),r&&e){var i=document.createRange();i.setStart(r.node,r.offset),n.removeAllRanges(),o>t?(n.addRange(i),n.extend(e.node,e.offset)):(i.setEnd(e.node,e.offset),n.addRange(i))}}},ms=H,gs={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=h();return{focusedElem:e,selectionRange:gs.hasSelectionCapabilities(e)?gs.getSelection(e):null}},restoreSelection:function(e){var t=h(),n=e.focusedElem;if(e=e.selectionRange,t!==n&&d(document.documentElement,n)){for(gs.hasSelectionCapabilities(n)&&gs.setSelection(n,e),t=[],e=n;e=e.parentNode;)e.nodeType===ms&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(f(n),n=0;nthis.eventPool.length&&this.eventPool.push(e)}function zs(e){e.eventPool=[],e.getPooled=Hs,e.release=Ws}function Xs(e,t,n,r){return Us.call(this,e,t,n,r)}function Gs(e,t,n,r){return Us.call(this,e,t,n,r)}a(Us.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=parseInt(Zs.version(),10))}var $s=Vs,Js=i.canUseDOM&&(!qs||Ks&&8=Ks),Qs=String.fromCharCode(32),eu={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},tu=!1;function nu(e,t){switch(e){case"topKeyUp":return-1!==Ys.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function ru(e){return"object"===(void 0===(e=e.detail)?"undefined":r(e))&&"data"in e?e.data:null}var ou=!1;var iu={eventTypes:eu,extractEvents:function(e,t,n,r){var o;if(qs)e:{switch(e){case"topCompositionStart":var i=eu.compositionStart;break e;case"topCompositionEnd":i=eu.compositionEnd;break e;case"topCompositionUpdate":i=eu.compositionUpdate;break e}i=void 0}else ou?nu(e,n)&&(i=eu.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(i=eu.compositionStart);return i?(Js&&(ou||i!==eu.compositionStart?i===eu.compositionEnd&&ou&&(o=Ls.getData()):ou=Ls.initialize(r)),i=Xs.getPooled(i,t,n,r),o?i.data=o:null!==(o=ru(n))&&(i.data=o),Ds.accumulateTwoPhaseDispatches(i),o=i):o=null,(e=$s?function(e,t){switch(e){case"topCompositionEnd":return ru(t);case"topKeyPress":return 32!==t.which?null:(tu=!0,Qs);case"topTextInput":return(e=t.data)===Qs&&tu?null:e;default:return null}}(e,n):function(e,t){if(ou)return"topCompositionEnd"===e||!qs&&nu(e,t)?(e=Ls.getData(),Ls.reset(),ou=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Ru={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},Iu=null,Du=null,ju=null,Nu=!1,Lu=wt.isListeningToAllDependencies;function Fu(e,t){if(Nu||null==Iu||Iu!==h())return null;var n=Iu;return"selectionStart"in n&&bs.hasSelectionCapabilities(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,ju&&c(ju,n)?null:(ju=n,(e=Us.getPooled(Ru.select,Du,e,t)).type="select",e.target=Iu,Ds.accumulateTwoPhaseDispatches(e),e)}var Bu={eventTypes:Ru,extractEvents:function(e,t,n,r){var o=r.window===r?r.document:r.nodeType===ku?r:r.ownerDocument;if(!o||!Lu("onSelect",o))return null;switch(o=t?ie.getNodeFromInstance(t):window,e){case"topFocus":(su(o)||"true"===o.contentEditable)&&(Iu=o,Du=t,ju=null);break;case"topBlur":ju=Du=Iu=null;break;case"topMouseDown":Nu=!0;break;case"topContextMenu":case"topMouseUp":return Nu=!1,Fu(n,r);case"topSelectionChange":if(Au)break;case"topKeyDown":case"topKeyUp":return Fu(n,r)}return null}};function Uu(e,t,n,r){return Us.call(this,e,t,n,r)}function Hu(e,t,n,r){return Us.call(this,e,t,n,r)}function Wu(e,t,n,r){return Us.call(this,e,t,n,r)}function zu(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}Us.augmentClass(Uu,{animationName:null,elapsedTime:null,pseudoElement:null}),Us.augmentClass(Hu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eu.augmentClass(Wu,{relatedTarget:null});var Xu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function Vu(e,t,n,r){return Us.call(this,e,t,n,r)}function Yu(e,t,n,r){return Us.call(this,e,t,n,r)}function qu(e,t,n,r){return Us.call(this,e,t,n,r)}function Ku(e,t,n,r){return Us.call(this,e,t,n,r)}function Zu(e,t,n,r){return Us.call(this,e,t,n,r)}Eu.augmentClass(Vu,{key:function(e){if(e.key){var t=Xu[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=zu(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Gu[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ou,charCode:function(e){return"keypress"===e.type?zu(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?zu(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cu.augmentClass(Yu,{dataTransfer:null}),Eu.augmentClass(qu,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ou}),Us.augmentClass(Ku,{propertyName:null,elapsedTime:null,pseudoElement:null}),Cu.augmentClass(Zu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var $u={},Ju={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t="top"+t]},$u[e]=n,Ju[t]=n});var Qu={eventTypes:$u,extractEvents:function(e,t,n,r){var o=Ju[e];if(!o)return null;switch(e){case"topAbort":case"topCancel":case"topCanPlay":case"topCanPlayThrough":case"topClose":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topToggle":case"topVolumeChange":case"topWaiting":var i=Us;break;case"topKeyPress":if(0===zu(n))return null;case"topKeyDown":case"topKeyUp":i=Vu;break;case"topBlur":case"topFocus":i=Wu;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=Cu;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=Yu;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=qu;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=Uu;break;case"topTransitionEnd":i=Ku;break;case"topScroll":i=Eu;break;case"topWheel":i=Zu;break;case"topCopy":case"topCut":case"topPaste":i=Hu}return i||p("86",e),e=i.getPooled(o,t,n,r),Ds.accumulateTwoPhaseDispatches(e),e}};tt.setHandleTopLevel(wt.handleTopLevel),ct.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Fe.injection.injectComponentTree(ie),ct.injection.injectEventPluginsByName({SimpleEventPlugin:Qu,EnterLeaveEventPlugin:Mu,ChangeEventPlugin:wu,SelectEventPlugin:Bu,BeforeInputEventPlugin:iu});var el=M.injection.MUST_USE_PROPERTY,tl=M.injection.HAS_BOOLEAN_VALUE,nl=M.injection.HAS_NUMERIC_VALUE,rl=M.injection.HAS_POSITIVE_NUMERIC_VALUE,ol=M.injection.HAS_STRING_BOOLEAN_VALUE,il={Properties:{allowFullScreen:tl,allowTransparency:ol,async:tl,autoPlay:tl,capture:tl,checked:el|tl,cols:rl,contentEditable:ol,controls:tl,default:tl,defer:tl,disabled:tl,download:M.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:ol,formNoValidate:tl,hidden:tl,loop:tl,multiple:el|tl,muted:el|tl,noValidate:tl,open:tl,playsInline:tl,readOnly:tl,required:tl,reversed:tl,rows:rl,rowSpan:nl,scoped:tl,seamless:tl,selected:el|tl,size:rl,start:nl,span:rl,spellCheck:ol,style:0,itemScope:tl,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:ol},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},al=M.injection.HAS_STRING_BOOLEAN_VALUE,sl="http://www.w3.org/1999/xlink",ul="http://www.w3.org/XML/1998/namespace",ll={Properties:{autoReverse:al,externalResourcesRequired:al,preserveAlpha:al},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:sl,xlinkArcrole:sl,xlinkHref:sl,xlinkRole:sl,xlinkShow:sl,xlinkTitle:sl,xlinkType:sl,xmlBase:ul,xmlLang:ul,xmlSpace:ul}},cl=/[\-\:]([a-z])/g;function dl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(cl,dl);ll.Properties[t]=0,ll.DOMAttributeNames[t]=e}),M.injection.injectDOMPropertyConfig(il),M.injection.injectDOMPropertyConfig(ll);var fl=ra,hl=H,pl=W,yl=z,vl=X,ml=G,gl=M.ROOT_ATTRIBUTE_NAME,bl=g,_l=_n.createElement,xl=_n.createTextNode,wl=_n.setInitialProperties,El=_n.diffProperties,Sl=_n.updateProperties,Tl=_n.diffHydratedProperties,Ol=_n.diffHydratedText,Cl=_n.warnForDeletedHydratableElement,Pl=_n.warnForDeletedHydratableText,Ml=_n.warnForInsertedHydratedElement,kl=_n.warnForInsertedHydratedText,Al=ie.precacheFiberNode,Rl=ie.updateFiberProps;ze.injection.injectFiberControlledHostComponent(_n),Es._injectFiber(function(e){return Nl.findHostInstance(e)});var Il=null,Dl=null;function jl(e){return!(!e||e.nodeType!==hl&&e.nodeType!==vl&&e.nodeType!==ml&&(e.nodeType!==yl||" react-mount-point-unstable "!==e.nodeValue))}var Nl=function(e){var t=e.getPublicInstance,n=(e=es(e)).scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=co();return e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null},t.stateNode=e},updateContainer:function(e,t,o,i){var a=t.current;o=ns(o),null===t.context?t.context=o:t.pendingContext=o,t=i,i=r(a,In.enableAsyncSubtreeAPI&&null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent),rs(a,e={element:e},void 0===t?null:t,i),n(a,i)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case ss:return t(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){return null===(e=us(e))?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return null===(e=ls(e))?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===vl)e=(e=e.documentElement)?e.namespaceURI:bl(null,"");else{var t=e.nodeType===yl?e.parentNode:e;e=t.namespaceURI||null,t=t.tagName,e=bl(e,t)}return e},getChildHostContext:function(e,t){return bl(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){Il=wt.isEnabled(),Dl=bs.getSelectionInformation(),wt.setEnabled(!1)},resetAfterCommit:function(){bs.restoreSelection(Dl),Dl=null,wt.setEnabled(Il),Il=null},createInstance:function(e,t,n,r,o){return e=_l(e,t,n,r),Al(o,e),Rl(e,t),e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){wl(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return El(e,t,n,r,o)},commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){Rl(e,o),Sl(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===r(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=""},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=xl(e,t),Al(r,e),e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===yl?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===yl?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===yl?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===hl&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return""!==t&&e.nodeType===pl},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==hl&&e.nodeType!==pl;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==hl&&e.nodeType!==pl;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,i){return Al(i,e),Rl(e,n),Tl(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return Al(n,e),Ol(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?Cl(e,t):Pl(e,t)},didNotFindHydratableInstance:function(e,t,n){Ml(e,t,n)},didNotFindHydratableTextInstance:function(e,t){kl(e,t)},scheduleDeferredCallback:Rn.rIC,useSyncScheduling:!0});function Ll(e,t,n,r,o){jl(n)||p("200");var i=n._reactRootContainer;if(i)Nl.updateContainer(t,i,e,o);else{if(!r&&!function(e){return!(!(e=e?e.nodeType===vl?e.documentElement:e.firstChild:null)||e.nodeType!==hl||!e.hasAttribute(gl))}(n))for(r=void 0;r=n.lastChild;)n.removeChild(r);var a=Nl.createContainer(n);i=n._reactRootContainer=a,Nl.unbatchedUpdates(function(){Nl.updateContainer(t,a,e,o)})}return Nl.getPublicRootInstance(i)}function Fl(e,t){var n=2S.length&&S.push(e)}function C(e,t,n,o){var i=void 0===e?"undefined":r(e);if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===w)return n(o,e,""===t?"."+P(e,0):t),1;var a=0;if(t=""===t?".":t+":",Array.isArray(e))for(var u=0;u=0&&c.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),m(t,e.attrs),p(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=l++;n=u||(u=v(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){y(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return f(n,t),function(e){for(var r=[],o=0;odiv{height:100%}.user-panel .login-panel-main{position:relative;z-index:2;height:100%}.user-panel .login-panel-main.fadeout{animation:login-fade-out .5s ease forwards;z-index:1}.user-panel .login-panel-main.fadein{animation:login-fade-in .2s ease-out forwards}.user-panel .login-panel-main .avatar-container{height:50%;padding-top:20px;padding-bottom:75px}.user-panel .login-panel-main .avatar-container .avatar-background{background:url("src/img/avatar-background.png") no-repeat 50%;margin:0 auto;height:155px;width:154px;transform:translateX(-10px);transition:all 1s}.user-panel .login-panel-main .avatar-container .avatar-background.avatar-background-hidden{background:transparent}.user-panel .login-panel-main .avatar-container .avatar-mask{border-radius:100%;overflow:hidden;height:125px;width:125px;transform:translate(20px,15px)}.user-panel .login-panel-main .avatar-container .user-avatar{margin:0 auto;height:125px;width:125px}.user-panel .login-panel-main .login-form{height:45%;display:block}.user-panel .login-panel-main .login-form .user-username{text-align:center;text-transform:capitalize;font-size:2.66em;font-style:italic;font-weight:700}.user-panel .login-panel-main .login-form .user-password-container{margin:15px auto;width:200px}.user-panel .login-panel-main .login-form .user-password{color:#fff;background:none;outline:none;border:none;border-bottom:2px solid rgba(0,0,0,.06);font-size:14pt;font-weight:700;letter-spacing:2px;padding-left:.5em;padding-right:.5em;width:100%;transition:opacity 1s,border-bottom .15s ease}.user-panel .login-panel-main .login-form .user-password:active,.user-panel .login-panel-main .login-form .user-password:focus{border-bottom:2px solid hsla(0,0%,100%,.8)}.user-panel .login-panel-main .login-form .user-password::-webkit-input-placeholder{color:hsla(0,0%,100%,.4)}.user-panel .login-panel-main .login-form .user-password.error{animation:error-shake .6s forwards}.user-panel .login-panel-main .login-form .user-password.error,.user-panel .login-panel-main .login-form .user-password.error:active,.user-panel .login-panel-main .login-form .user-password.error:focus{border-bottom:2px solid rgba(175,3,3,.6)}.user-panel .login-panel-main .login-form .user-password.error::-webkit-input-placeholder{color:#af0303}.user-panel .login-panel-main .login-form .submit-row{margin:0 auto;width:200px;position:absolute;left:162.5px}.user-panel .login-panel-main .login-form .submit-row .left,.user-panel .login-panel-main .login-form .submit-row .right{display:inline-block;float:left}.user-panel .login-panel-main .login-form .submit-row .left{width:80%}.user-panel .login-panel-main .login-form .submit-row .left .dropdown{font-size:.75em;width:95%}.user-panel .login-panel-main .login-form .submit-row .left .dropdown:hover{cursor:pointer}.user-panel .login-panel-main .login-form .submit-row .right{width:20%}.user-panel .login-panel-main .login-form .submit-row .right .submit-button{box-shadow:0 2px 3px rgba(0,0,0,.05)}.user-panel .login-panel-main .login-form .submit-row .right .submit-button:hover{cursor:pointer}.user-panel .login-panel-main .login-form .submit-row .right .submit-button:hover polygon{transform:scale(1.1) translateX(2px)}.user-panel .login-panel-main .login-form .submit-row .right .submit-button>div{position:relative;left:8px}.user-panel .login-panel-main .login-form .submit-row .right .submit-button input[type=submit]{display:none}.user-panel .login-panel-main .login-form .submit-row .right .submit-button svg{background-color:currentColor;height:30px;filter:drop-shadow(0 2px 1px rgba(0,0,0,.1));border-radius:4px}.user-panel .login-panel-main .login-form .submit-row .right .submit-button svg circle{r:0}.user-panel .login-panel-main .login-form .submit-row .right .submit-button svg polygon{stroke:rgba(42,19,15,.05);stroke-width:1px;transform:scale(1) translateX(0);transform-origin:center;transition:all .2s cubic-bezier(.64,.15,.18,.52)}.user-panel .login-panel-main .login-form .submit-row-container{position:relative}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item{color:#525252;display:none;padding:8px 10px;transition:background-position-y .2s ease}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item:not(.active):hover{background:#fff}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item:not(.active){background:hsla(0,0%,100%,.9)}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item.active{color:#fff;display:block;background-image:url("src/img/dropdown-caret.png");background-repeat:no-repeat;background-position:90% 50%;position:relative;font-family:Open Sans;font-weight:700;font-style:italic;line-height:1.2em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:30px;border-radius:2px;box-shadow:0 2px 3px rgba(0,0,0,.05);text-shadow:1px 1px 1px rgba(0,0,0,.12)}.user-panel .login-panel-main .login-form .left .dropdown.active .dropdown-item{display:block}.user-panel .login-panel-main .login-form .left .dropdown.active .dropdown-item.active{background-position:90% 65%}.user-panel .login-panel-switcher{display:block;opacity:0;position:relative;top:-100%;z-index:1;height:100%}.user-panel .login-panel-switcher.active{animation:.2s switcher-fade-in ease-out forwards;animation-delay:.15s;z-index:2}.user-panel .login-panel-switcher.fadeout{animation:.2s switcher-fade-out ease-out forwards}.user-panel .login-panel-switcher ul{list-style-type:none;transform-style:preserve-3d;padding-top:100px;height:95%}.user-panel .login-panel-switcher li{display:inline-block;padding-top:25px;width:33.33%;transition:-webkit-filter .2s,opacity .3s}.user-panel .login-panel-switcher li .avatar-background{background:url("src/img/avatar-background.png") no-repeat 50%;margin:0 auto;height:155px;width:154px;transform:translateX(-10px);transition:all 1s}.user-panel .login-panel-switcher li .avatar-background.avatar-background-hidden{background:transparent}.user-panel .login-panel-switcher li .avatar-mask{border-radius:100%;overflow:hidden;height:125px;width:125px;transform:translate(20px,15px)}.user-panel .login-panel-switcher li .avatar-name{text-align:center}.user-panel .login-panel-switcher li .avatar-name .username{font-size:16pt;font-weight:700}.user-panel .login-panel-switcher li .avatar-name .real-name{font-size:12pt;font-style:italic}.user-panel .login-panel-switcher li .user-avatar{margin:0 auto;height:125px;width:125px}.user-panel .login-panel-switcher li:not(.active){display:none;-webkit-filter:blur(1px)}.user-panel .login-panel-switcher li:not(.active):hover{cursor:pointer;opacity:.9;-webkit-filter:blur(.5px)}.user-panel .login-panel-switcher li.active{transform:translateZ(10px)}.user-panel .login-panel-switcher li.next,.user-panel .login-panel-switcher li.previous{display:inline-block;opacity:.8}.user-panel .login-panel-switcher li.previous{transform:translate3d(50px,0,-10px) scale(.9)}.user-panel .login-panel-switcher li.next{transform:translate3d(-50px,0,-10px) scale(.9)}.user-panel .login-panel-switcher .header{font-size:11pt;font-style:italic;text-align:center;letter-spacing:1px;position:absolute;height:5%;width:100%}.user-panel .login-panel-switcher .header em{font-weight:700}.user-panel .login-panel-main .bottom,.user-panel .login-panel-switcher .bottom{padding-top:15px;height:5%}.user-panel .login-panel-main .bottom .left,.user-panel .login-panel-switcher .bottom .left{color:#fff;float:left;font-size:.75em;letter-spacing:1px;font-weight:700;width:30%}.user-panel .login-panel-main .bottom .left:hover,.user-panel .login-panel-switcher .bottom .left:hover{cursor:pointer}.command-panel{color:#fff;height:100%}.command-panel .distro-logo{background:url("src/img/logos/archlinux.png") no-repeat 50%;margin:0 auto;height:125px;width:125px;transition:opacity .4s}.command-panel .distro-logo:hover{cursor:pointer}.command-panel .distro-logo:active{opacity:.8}.command-panel .distro-wrapper{padding-top:35px;height:52%}.command-panel .distro-wrapper .options{position:relative;top:-100px;opacity:0}.command-panel .distro-wrapper .options.active{animation:drop-in-options .2s forwards;animation-timing-function:ease-out}.command-panel .distro-wrapper .options .button-accept,.command-panel .distro-wrapper .options .button-reject{background:rgba(0,0,0,.2);position:relative;opacity:.4;text-align:center;margin-top:10px;padding:7px 8px;height:30px;width:30px;border-radius:100%}.command-panel .distro-wrapper .options .button-accept:hover,.command-panel .distro-wrapper .options .button-reject:hover{cursor:pointer;opacity:1}.command-panel .distro-wrapper .options .button-accept{float:right;left:-15%}.command-panel .distro-wrapper .options .button-accept:hover{background:#6e9200}.command-panel .distro-wrapper .options .button-reject{float:left;left:15%}.command-panel .distro-wrapper .options .button-reject:hover{background:#b93300}.command-panel .distro-wrapper .options-wrapper{overflow:hidden;height:45px;width:100%}.command-panel .command{display:flex;margin-bottom:25px;transition:all .5s}.command-panel .command:hover{cursor:pointer;opacity:.6}.command-panel .commands-wrapper{height:43%}.command-panel .command .icon-wrapper,.command-panel .command .text{display:inline-block}.command-panel .command .icon-wrapper{margin-right:10px;width:30px}.command-panel .command .icon-wrapper svg{height:20px;width:30px}.command-panel .command .icon-wrapper svg>*{fill:currentColor}.command-panel .command .text{font-size:1.33em;letter-spacing:2px;text-transform:uppercase;vertical-align:2px;width:100%}.command-panel .bottom{height:5%;padding-top:15px}.command-panel .bottom .left,.command-panel .bottom .right{float:left;font-size:.75em;font-weight:700;letter-spacing:1px}.command-panel .bottom .left{color:hsla(0,0%,100%,.65);overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;width:70%}.command-panel .bottom .right{text-align:right;opacity:0;width:30%;transition:opacity 1s}.command-panel .bottom .clock.loaded{opacity:1}.settings{display:flex;position:absolute;width:600px;opacity:1}.settings>div{display:flex;flex-wrap:wrap;width:100%}.settings .settings-categories{width:17%}.settings .settings-section{display:flex;flex-direction:column;width:83%}.settings .settings-section .save-dialogue{display:flex;justify-content:flex-end}.settings .settings-categories ul li{color:#9c9c9c;background:#e0e0e0;font-weight:700;font-variant:small-caps;padding:15px 25px;transition:color .3s ease,background-color .3s ease}.settings .settings-categories ul li:hover{cursor:pointer;color:#4d4d4d;background:#e8e8e8}.settings .settings-categories ul li.active,.settings .settings-categories ul li.active:hover{color:#4d4d4d;background:#fafafa}.settings .settings-handle{background:#222;height:25px;width:100%}.settings .settings-handle:hover{cursor:-webkit-grab}.settings .settings-handle:active,.settings .settings-handle:active:hover{cursor:-webkit-grabbing!important}.settings .settings-handle ul{display:flex;justify-content:flex-end;overflow:hidden;height:100%;width:100%}.settings .settings-handle ul li{color:#000;font-weight:700;padding:5px 15px;height:100%}.settings .settings-handle ul li:hover{cursor:pointer}.settings .settings-handle ul li.settings-minimize{color:#fff;background:#424242}.settings .settings-handle ul li.settings-close{background:#de3838}.settings .settings-section{background:#fafafa}.settings .settings-section ul h4{font-weight:700}.settings .settings-section ul hr{background:#ececec;color:#ececec;border:1px solid #ececec}.settings .settings-section ul li{list-style-type:none;margin-bottom:10px}.settings .settings-section ul li+h4{margin-top:35px}.settings .settings-section ul li input[type=checkbox]{position:absolute;left:-9999px}.settings .settings-section ul li input[type=text]{display:inline-block;padding:5px;margin-top:15px;margin-left:15px;width:50%;border:1px solid #e0e0e0}.settings .settings-section ul li label:hover{cursor:pointer}.settings .settings-section ul li input[type=checkbox]+label .fake-checkbox{color:#4e1d1d;display:inline-block;background:#f2d9d9;font-weight:700;padding:10px;margin-left:10px;position:relative;top:5px;height:15px;width:15px;border:1px solid #e8e8e8;border-radius:4px}.settings .settings-section ul li input[type=checkbox]+label .fake-checkbox:hover{cursor:pointer}.settings .settings-section ul li input[type=checkbox]:checked+label .fake-checkbox{color:#2d4e1d;background:#e1f2d9}.settings .settings-section ul li input[type=checkbox]+label .fake-checkbox:after{display:inline-block;content:"\\D7";font-size:1.4em;position:absolute;top:-.05rem;left:.25rem}.settings .settings-section ul li input[type=checkbox]:checked+label .fake-checkbox:after{display:inline-block;content:"\\2714";font-size:1em;position:absolute;top:.1rem;left:.2rem}.settings .settings-section label+select{margin-left:10px;width:50%}.settings .settings-section select{padding:5px}.settings-section .save-dialogue{background:#f3f3f3;border-top:1px solid #eee;padding:10px 15px}.settings-section .save-dialogue button{outline:none;border:none;padding:5px 8px 8px;margin-left:10px;border-radius:2px}.settings-section .save-dialogue button:hover{cursor:pointer}.settings-section .save-dialogue button.settings-reject{color:#581212;background:#f35e5e}.settings-section .save-dialogue button.settings-save{color:#145a07;background:#84ff93}.settings-toggler{color:#222;background:#fff;opacity:0;font-weight:700;font-size:4em;text-align:center;position:fixed;bottom:25px;left:25px;padding-top:8px;height:85px;width:85px;border-radius:100px;user-select:none;transition:opacity .3s ease}.settings-toggler:hover{cursor:pointer;opacity:1}.settings-general{display:flex;padding:25px}.settings-general .left{padding:15px;width:40%}.settings-general .right{padding:15px;width:60%}.settings-general .left{border-right:2px solid #eee}.settings-general .left h6{font-size:.8em;font-weight:700;margin-top:30px}.settings-general .left li{list-style-type:none}.settings-general .left select{margin:15px 0 0;padding:5px;width:100%}.settings-general .left select:hover,.settings-general .left select option:hover{cursor:pointer}.settings-general .left .preview-logo img{display:block;margin:0 auto}.settings-general .right{height:400px;overflow-y:scroll}.settings-style{display:flex;padding:25px}.settings-style .left,.settings-style .right{padding:25px;width:100%}.settings-style .right .color-group{display:flex;flex-wrap:wrap;justify-content:space-between}.settings-style .right .swatch-container{display:flex;justify-content:space-between;width:100%}.settings-style .right .swatch-container .swatch{display:flex;flex-wrap:wrap}.settings-style .right .swatch-container .swatch .swatch-bg{flex-grow:1}.settings-style .left{border-right:2px solid #eee}.settings-style .left li{display:flex;align-items:center}.settings-style .left li label{flex-grow:2;width:100%}.settings-style .left ul li input[type=text]{flex-shrink:2;margin-top:0}.settings-style .right .color-group .settings-color:last-of-type{margin-bottom:35px}.settings-style .right .settings-item.settings-color{margin-top:15px;width:48%}.settings-style .right .settings-item.settings-color label{display:block;overflow:hidden;font-size:.8em;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;width:100%}.settings-style .right .settings-item.settings-color .swatch-container{position:relative;margin-top:10px}.settings-style .right .settings-item.settings-color .swatch-container input[type=text]{display:inline-block;margin-left:0;margin-top:0;width:46%}.settings-style .right .settings-item.settings-color .swatch-container .swatch{border:5px solid #fff;height:35px;width:100%;box-shadow:1px 1px 3px rgba(0,0,0,.15);transition:box-shadow 1s ease}.settings-style .right .settings-item.settings-color .swatch-container .swatch:hover{cursor:pointer;box-shadow:1px 1px 3px rgba(0,0,0,.35)}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg{flex-grow:1;position:relative;top:-12.5px;height:12.5px;width:1%;z-index:1}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg-black{background:#000}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg-white{background:#fff}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg-gray{background:gray}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-fg{height:25px;width:100%;z-index:2}.settings-style .right .settings-item.settings-color .swatch-container.active .chrome-picker{position:absolute;left:90px;z-index:4}.settings-style .right .settings-item.settings-color .swatch-container.active .colorpicker-background{position:fixed;top:25px;right:0;bottom:0;left:100px;height:100vh;width:100vw;z-index:3}.settings-themes{max-height:450px;overflow-y:scroll}.settings-themes .theme{margin:15px 0;padding:10px}.settings-themes .theme ul{display:flex;list-style-type:none;margin-top:10px}.settings-themes .theme li.theme-color-block{display:inline-block;border:2.5px solid #fff;margin:5px;height:50px;width:50px;box-shadow:0 2px 3px rgba(0,0,0,.05);transform:translateY(0);transition:transform .25s ease-in,box-shadow .25s ease-in,border .25s ease-in}.settings-themes .theme li.theme-color-block:hover{border:2.5px solid #222;cursor:pointer;box-shadow:0 2px 3px rgba(0,0,0,.4);transform:translateY(-3px)}.settings-themes .theme .upper button{color:#222;background:#eee;outline:none;border:none;padding:5px 8px 8px;margin-left:10px;border-radius:2px}.settings-themes .theme .upper button:hover{cursor:pointer}.settings-themes .theme .upper button.delete{color:#581212;background:#f35e5e}.settings-themes .theme .upper .theme-name{display:inline-block;font-weight:700;margin-right:15px}.settings-themes .theme-saver{background:#eee;border-bottom:1px solid #eaeaea;padding:15px}.settings-themes .theme-saver p{margin-bottom:12px}.settings-themes .theme-saver input{border:1px solid #e0e0e0;margin-right:5px;padding:5px}.settings-themes .theme-saver button{color:#222;outline:none;border:none;padding:5px 8px 8px;margin-left:10px;border-radius:2px}.settings-themes .theme-saver button:hover{cursor:pointer}.minimize{height:0!important;overflow:hidden!important}',""])},function(e,t,n){var r=n(509);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(507)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f,n(510);var r=d(n(0)),o=d(n(34)),i=n(183),a=n(8),s=d(n(471)),u=d(n(186)),l=n(185),c=n(81);function d(e){return e&&e.__esModule?e:{default:e}}function f(){var e=(0,l.getDefaultState)();e=(0,c.addAdditionalSettings)(e);var t=void 0;t=window.__REDUX_DEVTOOLS_EXTENSION__?(0,i.createStore)(l.PrimaryReducer,e,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()):(0,i.createStore)(l.PrimaryReducer,e),o.default.render(r.default.createElement(a.Provider,{store:t},r.default.createElement(s.default,null)),document.getElementById("login-window-mount"))}window.onload=function(e){window.notifications=new u.default;var t=function(){f(),document.getElementById("password-field").focus()};!1===window.__debug&&void 0===window.lightdm?document.addEventListener("GreeterReady",function(){t()}):t()}}]); //# sourceMappingURL=Aether.js.map