/*! For license information please see viewer.js.LICENSE.txt */ (()=>{var e={4184:(e,t)=>{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Button__button{background:#fff;border:1px solid #aaa;border-radius:4px;cursor:pointer;display:inline-block;font:var(--main-font);outline:none;padding:5px 7px;transition:background .3s ease;white-space:nowrap}.Button__button:focus,.Button__button:hover{background:#ffefd7}.Button__button.Button__active{background:orange;color:#000}.Button__button[disabled]{cursor:default}","",{version:3,sources:["webpack://./client/components/Button.css"],names:[],mappings:"AAAA,gBACE,eAAgB,CAChB,qBAAsB,CACtB,iBAAkB,CAClB,cAAe,CACf,oBAAqB,CACrB,qBAAsB,CACtB,YAAa,CACb,eAAgB,CAChB,8BAA+B,CAC/B,kBACF,CAEA,4CAEE,kBACF,CAEA,+BACE,iBAAmB,CACnB,UACF,CAEA,0BACE,cACF",sourcesContent:[".button {\n background: #fff;\n border: 1px solid #aaa;\n border-radius: 4px;\n cursor: pointer;\n display: inline-block;\n font: var(--main-font);\n outline: none;\n padding: 5px 7px;\n transition: background .3s ease;\n white-space: nowrap;\n}\n\n.button:focus,\n.button:hover {\n background: #ffefd7;\n}\n\n.button.active {\n background: #ffa500;\n color: #000;\n}\n\n.button[disabled] {\n cursor: default;\n}\n"],sourceRoot:""}]),a.locals={button:"Button__button",active:"Button__active"};const s=a},2396:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Checkbox__label{display:inline-block}.Checkbox__checkbox,.Checkbox__label{cursor:pointer}.Checkbox__itemText{margin-left:3px;position:relative;top:-2px;vertical-align:middle}","",{version:3,sources:["webpack://./client/components/Checkbox.css"],names:[],mappings:"AAAA,iBAEE,oBACF,CAEA,qCAJE,cAMF,CAEA,oBACE,eAAgB,CAChB,iBAAkB,CAClB,QAAS,CACT,qBACF",sourcesContent:[".label {\n cursor: pointer;\n display: inline-block;\n}\n\n.checkbox {\n cursor: pointer;\n}\n\n.itemText {\n margin-left: 3px;\n position: relative;\n top: -2px;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),a.locals={label:"Checkbox__label",checkbox:"Checkbox__checkbox",itemText:"Checkbox__itemText"};const s=a},3213:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".CheckboxList__container{font:var(--main-font);white-space:nowrap}.CheckboxList__label{font-size:11px;font-weight:700;margin-bottom:7px}.CheckboxList__item+.CheckboxList__item{margin-top:1px}","",{version:3,sources:["webpack://./client/components/CheckboxList.css"],names:[],mappings:"AAAA,yBACE,qBAAsB,CACtB,kBACF,CAEA,qBACE,cAAe,CACf,eAAiB,CACjB,iBACF,CAEA,wCACE,cACF",sourcesContent:[".container {\n font: var(--main-font);\n white-space: nowrap;\n}\n\n.label {\n font-size: 11px;\n font-weight: bold;\n margin-bottom: 7px;\n}\n\n.item + .item {\n margin-top: 1px;\n}\n"],sourceRoot:""}]),a.locals={container:"CheckboxList__container",label:"CheckboxList__label",item:"CheckboxList__item"};const s=a},580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".ContextMenu__container{background:#fff;border:1px solid #aaa;border-radius:4px;font:var(--main-font);list-style:none;opacity:1;padding:0;position:absolute;transition:opacity .2s ease,visibility .2s ease;visibility:visible;white-space:nowrap}.ContextMenu__hidden{opacity:0;visibility:hidden}","",{version:3,sources:["webpack://./client/components/ContextMenu.css"],names:[],mappings:"AAAA,wBAKE,eAAgB,CAChB,qBAAsB,CAFtB,iBAAkB,CAHlB,qBAAsB,CAMtB,eAAgB,CAChB,SAAU,CALV,SAAU,CADV,iBAAkB,CASlB,+CAAiD,CADjD,kBAAmB,CADnB,kBAGF,CAEA,qBACE,SAAU,CACV,iBACF",sourcesContent:[".container {\n font: var(--main-font);\n position: absolute;\n padding: 0;\n border-radius: 4px;\n background: #fff;\n border: 1px solid #aaa;\n list-style: none;\n opacity: 1;\n white-space: nowrap;\n visibility: visible;\n transition: opacity .2s ease, visibility .2s ease;\n}\n\n.hidden {\n opacity: 0;\n visibility: hidden;\n}\n"],sourceRoot:""}]),a.locals={container:"ContextMenu__container",hidden:"ContextMenu__hidden"};const s=a},9270:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".ContextMenuItem__item{cursor:pointer;margin:0;padding:8px 14px;-webkit-user-select:none;user-select:none}.ContextMenuItem__item:hover{background:#ffefd7}.ContextMenuItem__disabled{color:grey;cursor:default}.ContextMenuItem__item.ContextMenuItem__disabled:hover{background:transparent}","",{version:3,sources:["webpack://./client/components/ContextMenuItem.css"],names:[],mappings:"AAAA,uBACE,cAAe,CACf,QAAS,CACT,gBAAiB,CACjB,wBAAiB,CAAjB,gBACF,CAEA,6BACE,kBACF,CAEA,2BAEE,UAAW,CADX,cAEF,CAEA,uDACE,sBACF",sourcesContent:[".item {\n cursor: pointer;\n margin: 0;\n padding: 8px 14px;\n user-select: none;\n}\n\n.item:hover {\n background: #ffefd7;\n}\n\n.disabled {\n cursor: default;\n color: gray;\n}\n\n.item.disabled:hover {\n background: transparent;\n}\n"],sourceRoot:""}]),a.locals={item:"ContextMenuItem__item",disabled:"ContextMenuItem__disabled"};const s=a},1746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Icon__icon{background:no-repeat 50%/contain;display:inline-block}","",{version:3,sources:["webpack://./client/components/Icon.css"],names:[],mappings:"AAAA,YACE,gCAAoC,CACpC,oBACF",sourcesContent:[".icon {\n background: no-repeat center/contain;\n display: inline-block;\n}\n"],sourceRoot:""}]),a.locals={icon:"Icon__icon"};const s=a},697:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),u=n.n(s),l=n(4911),c=n(8752),h=n(4150),f=n(8868),d=a()(i()),p=u()(l.Z),g=u()(c.Z),b=u()(h.Z),v=u()(f.Z);d.push([e.id,".ModuleItem__container{background:no-repeat 0;cursor:pointer;margin-bottom:4px;padding-left:18px;position:relative;white-space:nowrap}.ModuleItem__container.ModuleItem__module{background-image:url("+p+");background-position-x:1px}.ModuleItem__container.ModuleItem__folder{background-image:url("+g+")}.ModuleItem__container.ModuleItem__chunk{background-image:url("+b+")}.ModuleItem__container.ModuleItem__invisible:hover:before{background:url("+v+') no-repeat 0;content:"";height:100%;left:0;position:absolute;top:1px;width:13px}',"",{version:3,sources:["webpack://./client/components/ModuleItem.css"],names:[],mappings:"AAAA,uBACE,sBAAiC,CACjC,cAAe,CACf,iBAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,kBACF,CAEA,0CACE,wDAAkD,CAClD,yBACF,CAEA,0CACE,wDACF,CAEA,yCACE,wDACF,CAEA,0DACE,8DAAqE,CACrE,UAAW,CACX,WAAY,CACZ,MAAO,CAEP,iBAAkB,CADlB,OAAQ,CAER,UACF",sourcesContent:[".container {\n background: no-repeat left center;\n cursor: pointer;\n margin-bottom: 4px;\n padding-left: 18px;\n position: relative;\n white-space: nowrap;\n}\n\n.container.module {\n background-image: url('../assets/icon-module.svg');\n background-position-x: 1px;\n}\n\n.container.folder {\n background-image: url('../assets/icon-folder.svg');\n}\n\n.container.chunk {\n background-image: url('../assets/icon-chunk.svg');\n}\n\n.container.invisible:hover::before {\n background: url('../assets/icon-invisible.svg') no-repeat left center;\n content: \"\";\n height: 100%;\n left: 0;\n top: 1px;\n position: absolute;\n width: 13px;\n}\n"],sourceRoot:""}]),d.locals={container:"ModuleItem__container",module:"ModuleItem__module",folder:"ModuleItem__folder",chunk:"ModuleItem__chunk",invisible:"ModuleItem__invisible"};const m=d},3784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".ModulesList__container{font:var(--main-font)}","",{version:3,sources:["webpack://./client/components/ModulesList.css"],names:[],mappings:"AAAA,wBACE,qBACF",sourcesContent:[".container {\n font: var(--main-font);\n}\n"],sourceRoot:""}]),a.locals={container:"ModulesList__container"};const s=a},2393:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".ModulesTreemap__container{align-items:stretch;display:flex;height:100%;position:relative;width:100%}.ModulesTreemap__map{flex:1}.ModulesTreemap__sidebarGroup{font:var(--main-font);margin-bottom:20px}.ModulesTreemap__showOption{margin-top:5px}.ModulesTreemap__activeSize{font-weight:700}.ModulesTreemap__foundModulesInfo{display:flex;font:var(--main-font);margin:8px 0 0}.ModulesTreemap__foundModulesInfoItem+.ModulesTreemap__foundModulesInfoItem{margin-left:15px}.ModulesTreemap__foundModulesContainer{margin-top:15px;max-height:600px;overflow:auto}.ModulesTreemap__foundModulesChunk+.ModulesTreemap__foundModulesChunk{margin-top:15px}.ModulesTreemap__foundModulesChunkName{cursor:pointer;font:var(--main-font);font-weight:700;margin-bottom:7px}.ModulesTreemap__foundModulesList{margin-left:7px}","",{version:3,sources:["webpack://./client/components/ModulesTreemap.css"],names:[],mappings:"AAAA,2BACE,mBAAoB,CACpB,YAAa,CACb,WAAY,CACZ,iBAAkB,CAClB,UACF,CAEA,qBACE,MACF,CAEA,8BACE,qBAAsB,CACtB,kBACF,CAEA,4BACE,cACF,CAEA,4BACE,eACF,CAEA,kCACE,YAAa,CACb,qBAAsB,CACtB,cACF,CAEA,4EACE,gBACF,CAEA,uCACE,eAAgB,CAChB,gBAAiB,CACjB,aACF,CAEA,sEACE,eACF,CAEA,uCACE,cAAe,CACf,qBAAsB,CACtB,eAAiB,CACjB,iBACF,CAEA,kCACE,eACF",sourcesContent:[".container {\n align-items: stretch;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n}\n\n.map {\n flex: 1;\n}\n\n.sidebarGroup {\n font: var(--main-font);\n margin-bottom: 20px;\n}\n\n.showOption {\n margin-top: 5px;\n}\n\n.activeSize {\n font-weight: bold;\n}\n\n.foundModulesInfo {\n display: flex;\n font: var(--main-font);\n margin: 8px 0 0;\n}\n\n.foundModulesInfoItem + .foundModulesInfoItem {\n margin-left: 15px;\n}\n\n.foundModulesContainer {\n margin-top: 15px;\n max-height: 600px;\n overflow: auto;\n}\n\n.foundModulesChunk + .foundModulesChunk {\n margin-top: 15px;\n}\n\n.foundModulesChunkName {\n cursor: pointer;\n font: var(--main-font);\n font-weight: bold;\n margin-bottom: 7px;\n}\n\n.foundModulesList {\n margin-left: 7px;\n}\n"],sourceRoot:""}]),a.locals={container:"ModulesTreemap__container",map:"ModulesTreemap__map",sidebarGroup:"ModulesTreemap__sidebarGroup",showOption:"ModulesTreemap__showOption",activeSize:"ModulesTreemap__activeSize",foundModulesInfo:"ModulesTreemap__foundModulesInfo",foundModulesInfoItem:"ModulesTreemap__foundModulesInfoItem",foundModulesContainer:"ModulesTreemap__foundModulesContainer",foundModulesChunk:"ModulesTreemap__foundModulesChunk",foundModulesChunkName:"ModulesTreemap__foundModulesChunkName",foundModulesList:"ModulesTreemap__foundModulesList"};const s=a},9976:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Search__container{font:var(--main-font);white-space:nowrap}.Search__label{font-weight:700;margin-bottom:7px}.Search__row{display:flex}.Search__input{border:1px solid #aaa;border-radius:4px;display:block;flex:1;padding:5px}.Search__clear{flex:0 0 auto;line-height:1;margin-left:3px;padding:5px 8px 7px}","",{version:3,sources:["webpack://./client/components/Search.css"],names:[],mappings:"AAAA,mBACE,qBAAsB,CACtB,kBACF,CAEA,eACE,eAAiB,CACjB,iBACF,CAEA,aACE,YACF,CAEA,eACE,qBAAsB,CACtB,iBAAkB,CAClB,aAAc,CACd,MAAO,CACP,WACF,CAEA,eACE,aAAc,CACd,aAAc,CACd,eAAgB,CAChB,mBACF",sourcesContent:[".container {\n font: var(--main-font);\n white-space: nowrap;\n}\n\n.label {\n font-weight: bold;\n margin-bottom: 7px;\n}\n\n.row {\n display: flex;\n}\n\n.input {\n border: 1px solid #aaa;\n border-radius: 4px;\n display: block;\n flex: 1;\n padding: 5px;\n}\n\n.clear {\n flex: 0 0 auto;\n line-height: 1;\n margin-left: 3px;\n padding: 5px 8px 7px;\n}\n"],sourceRoot:""}]),a.locals={container:"Search__container",label:"Search__label",row:"Search__row",input:"Search__input",clear:"Search__clear"};const s=a},4826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Sidebar__container{background:#fff;border:none;border-right:1px solid #aaa;box-sizing:border-box;max-width:calc(50% - 10px);opacity:.95;z-index:1}.Sidebar__container:not(.Sidebar__hidden){min-width:200px}.Sidebar__container:not(.Sidebar__pinned){bottom:0;position:absolute;top:0;transition:transform .2s ease}.Sidebar__container.Sidebar__pinned{position:relative}.Sidebar__container.Sidebar__left{left:0}.Sidebar__container.Sidebar__left.Sidebar__hidden{transform:translateX(calc(-100% + 7px))}.Sidebar__content{box-sizing:border-box;height:100%;overflow-y:auto;padding:25px 20px 20px;width:100%}.Sidebar__empty.Sidebar__pinned .Sidebar__content{padding:0}.Sidebar__pinButton,.Sidebar__toggleButton{cursor:pointer;height:26px;line-height:0;position:absolute;top:10px;width:27px}.Sidebar__pinButton{right:47px}.Sidebar__toggleButton{padding-left:6px;right:15px}.Sidebar__hidden .Sidebar__toggleButton{right:-35px;transition:transform .2s ease}.Sidebar__hidden .Sidebar__toggleButton:hover{transform:translateX(4px)}.Sidebar__resizer{bottom:0;cursor:col-resize;position:absolute;right:0;top:0;width:7px}","",{version:3,sources:["webpack://./client/components/Sidebar.css"],names:[],mappings:"AAEA,oBACE,eAAgB,CAEhB,WAA4B,CAA5B,2BAA4B,CAC5B,qBAAsB,CACtB,0BAA2B,CAC3B,WAAa,CACb,SACF,CAEA,0CACE,eACF,CAEA,0CACE,QAAS,CACT,iBAAkB,CAClB,KAAM,CACN,6BACF,CAEA,oCACE,iBACF,CAEA,kCACE,MACF,CAEA,kDACE,uCACF,CAEA,kBACE,qBAAsB,CACtB,WAAY,CACZ,eAAgB,CAChB,sBAAuB,CACvB,UACF,CAEA,kDACE,SACF,CAEA,2CAEE,cAAe,CACf,WAAY,CACZ,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UACF,CAEA,oBACE,UACF,CAEA,uBACE,gBAAiB,CACjB,UACF,CAEA,wCACE,WAAY,CACZ,6BACF,CAEA,8CACE,yBACF,CAEA,kBACE,QAAS,CACT,iBAAkB,CAClB,iBAAkB,CAClB,OAAQ,CACR,KAAM,CACN,SACF",sourcesContent:["@value toggleTime: 200ms;\n\n.container {\n background: #fff;\n border: none;\n border-right: 1px solid #aaa;\n box-sizing: border-box;\n max-width: calc(50% - 10px);\n opacity: 0.95;\n z-index: 1;\n}\n\n.container:not(.hidden) {\n min-width: 200px;\n}\n\n.container:not(.pinned) {\n bottom: 0;\n position: absolute;\n top: 0;\n transition: transform toggleTime ease;\n}\n\n.container.pinned {\n position: relative;\n}\n\n.container.left {\n left: 0;\n}\n\n.container.left.hidden {\n transform: translateX(calc(-100% + 7px));\n}\n\n.content {\n box-sizing: border-box;\n height: 100%;\n overflow-y: auto;\n padding: 25px 20px 20px;\n width: 100%;\n}\n\n.empty.pinned .content {\n padding: 0;\n}\n\n.pinButton,\n.toggleButton {\n cursor: pointer;\n height: 26px;\n line-height: 0;\n position: absolute;\n top: 10px;\n width: 27px;\n}\n\n.pinButton {\n right: 47px;\n}\n\n.toggleButton {\n padding-left: 6px;\n right: 15px;\n}\n\n.hidden .toggleButton {\n right: -35px;\n transition: transform .2s ease;\n}\n\n.hidden .toggleButton:hover {\n transform: translateX(4px);\n}\n\n.resizer {\n bottom: 0;\n cursor: col-resize;\n position: absolute;\n right: 0;\n top: 0;\n width: 7px;\n}\n"],sourceRoot:""}]),a.locals={toggleTime:".2s",container:"Sidebar__container",hidden:"Sidebar__hidden",pinned:"Sidebar__pinned",left:"Sidebar__left",content:"Sidebar__content",empty:"Sidebar__empty",pinButton:"Sidebar__pinButton",toggleButton:"Sidebar__toggleButton",resizer:"Sidebar__resizer"};const s=a},6897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Switcher__container{font:var(--main-font);white-space:nowrap}.Switcher__label{font-size:11px;font-weight:700;margin-bottom:7px}.Switcher__item+.Switcher__item{margin-left:5px}","",{version:3,sources:["webpack://./client/components/Switcher.css"],names:[],mappings:"AAAA,qBACE,qBAAsB,CACtB,kBACF,CAEA,iBAEE,cAAe,CADf,eAAiB,CAEjB,iBACF,CAEA,gCACE,eACF",sourcesContent:[".container {\n font: var(--main-font);\n white-space: nowrap;\n}\n\n.label {\n font-weight: bold;\n font-size: 11px;\n margin-bottom: 7px;\n}\n\n.item + .item {\n margin-left: 5px;\n}\n"],sourceRoot:""}]),a.locals={container:"Switcher__container",label:"Switcher__label",item:"Switcher__item"};const s=a},7527:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".Tooltip__container{background:#fff;border:1px solid #aaa;border-radius:4px;font:var(--main-font);opacity:.9;padding:5px 10px;position:absolute;transition:opacity .2s ease,visibility .2s ease;visibility:visible;white-space:nowrap}.Tooltip__hidden{opacity:0;visibility:hidden}","",{version:3,sources:["webpack://./client/components/Tooltip.css"],names:[],mappings:"AAAA,oBAKE,eAAgB,CAChB,qBAAsB,CAFtB,iBAAkB,CAHlB,qBAAsB,CAMtB,UAAY,CAJZ,gBAAiB,CADjB,iBAAkB,CAQlB,+CAAiD,CADjD,kBAAmB,CADnB,kBAGF,CAEA,iBACE,SAAU,CACV,iBACF",sourcesContent:[".container {\n font: var(--main-font);\n position: absolute;\n padding: 5px 10px;\n border-radius: 4px;\n background: #fff;\n border: 1px solid #aaa;\n opacity: 0.9;\n white-space: nowrap;\n visibility: visible;\n transition: opacity .2s ease, visibility .2s ease;\n}\n\n.hidden {\n opacity: 0;\n visibility: hidden;\n}\n"],sourceRoot:""}]),a.locals={container:"Tooltip__container",hidden:"Tooltip__hidden"};const s=a},1194:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4015),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":root{--main-font:normal 11px Verdana,sans-serif}#app,body,html{height:100%;margin:0;overflow:hidden;padding:0;width:100%}body.resizing{-webkit-user-select:none!important;user-select:none!important}body.resizing *{pointer-events:none}body.resizing.col{cursor:col-resize!important}","",{version:3,sources:["webpack://./client/viewer.css"],names:[],mappings:"AAAA,MACE,0CACF,CAEA,eAGE,WAAY,CACZ,QAAS,CACT,eAAgB,CAChB,SAAU,CACV,UACF,CAEA,cACE,kCAA4B,CAA5B,0BACF,CAEA,gBACE,mBACF,CAEA,kBACE,2BACF",sourcesContent:[":root {\n --main-font: normal 11px Verdana, sans-serif;\n}\n\n:global html,\n:global body,\n:global #app {\n height: 100%;\n margin: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n}\n\n:global body.resizing {\n user-select: none !important;\n}\n\n:global body.resizing * {\n pointer-events: none;\n}\n\n:global body.resizing.col {\n cursor: col-resize !important;\n}\n"],sourceRoot:""}]);const s=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o{"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},6755:function(e){e.exports=function(){"use strict";var e=/^(b|B)$/,t={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},n={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},r={floor:Math.floor,ceil:Math.ceil};function i(i){var o,a,s,u,l,c,h,f,d,p,g,b,v,m,y,C,_,w,x,A,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},M=[],T=0;if(isNaN(i))throw new TypeError("Invalid number");if(s=!0===S.bits,y=!0===S.unix,b=!0===S.pad,a=S.base||2,v=void 0!==S.round?S.round:y?1:2,h=void 0!==S.locale?S.locale:"",f=S.localeOptions||{},C=void 0!==S.separator?S.separator:"",_=void 0!==S.spacer?S.spacer:y?"":" ",x=S.symbols||{},w=2===a&&S.standard||"jedec",g=S.output||"string",l=!0===S.fullform,c=S.fullforms instanceof Array?S.fullforms:[],o=void 0!==S.exponent?S.exponent:-1,A=r[S.roundingMethod]||Math.round,u=a>2?1e3:1024,(d=(p=Number(i))<0)&&(p=-p),(-1===o||isNaN(o))&&(o=Math.floor(Math.log(p)/Math.log(u)))<0&&(o=0),o>8&&(o=8),"exponent"===g)return o;if(0===p)M[0]=0,m=M[1]=y?"":t[w][s?"bits":"bytes"][o];else{T=p/(2===a?Math.pow(2,10*o):Math.pow(1e3,o)),s&&(T*=8)>=u&&o<8&&(T/=u,o++);var k=Math.pow(10,o>0?v:0);M[0]=A(T*k)/k,M[0]===u&&o<8&&void 0===S.exponent&&(M[0]=1,o++),m=M[1]=10===a&&1===o?s?"kb":"kB":t[w][s?"bits":"bytes"][o],y&&(M[1]="jedec"===w?M[1].charAt(0):o>0?M[1].replace(/B$/,""):M[1],e.test(M[1])&&(M[0]=Math.floor(M[0]),M[1]=""))}if(d&&(M[0]=-M[0]),M[1]=x[M[1]]||M[1],!0===h?M[0]=M[0].toLocaleString():h.length>0?M[0]=M[0].toLocaleString(h,f):C.length>0&&(M[0]=M[0].toString().replace(".",C)),b&&!1===Number.isInteger(M[0])&&v>0){var z=C||".",D=M[0].toString().split(z),j=D[1]||"",L=j.length,B=v-L;M[0]="".concat(D[0]).concat(z).concat(j.padEnd(L+B,"0"))}return l&&(M[1]=c[o]?c[o]:n[w][o]+(s?"bit":"byte")+(1===M[0]?"":"s")),"array"===g?M:"object"===g?{value:M[0],symbol:M[1],exponent:o,unit:m}:M.join(_)}return i.partial=function(e){return function(t){return i(t,e)}},i}()},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n{e.exports=function(e){return e.split("")}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},8674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4259:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r{var r=n(2705),i=n(9932),o=n(1469),a=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},180:(e,t,n)=>{var r=n(4259);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},8805:(e,t,n)=>{var r=n(180),i=n(2689),o=n(3140),a=n(9833);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},9464:(e,t,n)=>{var r=n(8674)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=r},1957:e=>{e.exports=!1},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},3140:(e,t,n)=>{var r=n(4286),i=n(2689),o=n(676);e.exports=function(e){return i(e)?o(e):r(e)}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},676:e=>{var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+s+("(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*"),c="(?:"+[i+n+"?",n,o,a,t].join("|")+")",h=RegExp(r+"(?="+r+")|"+c+l,"g");e.exports=function(e){return e.match(h)||[]}},3279:(e,t,n)=>{var r=n(3218),i=n(7771),o=n(4841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var u,l,c,h,f,d,p=0,g=!1,b=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=u,r=l;return u=l=void 0,p=t,h=e.apply(r,n)}function y(e){return p=e,f=setTimeout(_,t),g?m(e):h}function C(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-p>=c}function _(){var e=i();if(C(e))return w(e);f=setTimeout(_,function(e){var n=t-(e-d);return b?s(n,c-(e-p)):n}(e))}function w(e){return f=void 0,v&&u?m(e):(u=l=void 0,h)}function x(){var e=i(),n=C(e);if(u=arguments,l=this,d=e,n){if(void 0===f)return y(d);if(b)return clearTimeout(f),f=setTimeout(_,t),m(d)}return void 0===f&&(f=setTimeout(_,t)),h}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(b="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=d=l=f=void 0},x.flush=function(){return void 0===f?h:w(i())},x}},7187:(e,t,n)=>{var r=n(9464),i=n(9833),o=/[&<>"']/g,a=RegExp(o.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(o,r):e}},3522:(e,t,n)=>{var r=n(9833),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},1469:e=>{var t=Array.isArray;e.exports=t},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7771:(e,t,n)=>{var r=n(5639);e.exports=function(){return r.Date.now()}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},1700:(e,t,n)=>{var r=n(8805)("toUpperCase");e.exports=r},3379:(e,t,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{"use strict";n.d(t,{Z:()=>r});const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwdjExLjI1YzAgLjQxNC4zMzYuNzUuNzUuNzVoMTAuNWEuNzUuNzUgMCAwIDAgLjc1LS43NVYwSDB6IiBmaWxsPSIjRkM2IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNMCAwcy4xNTYgMyAxLjEyNSAzaDkuNzVDMTEuODQ1IDMgMTIgMCAxMiAwSDB6IiBmaWxsPSIjQ0NBMzUyIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNi43NSAxLjVoLS4zNzVMNiAyLjVsLS4zNzUtMUg1LjI1TDUuODEzIDMgNS4yNSA0LjVoLjM3NUw2IDMuNWwuMzc1IDFoLjM3NUw2LjE4NyAzeiIgZmlsbD0iIzk5N0EzRCIvPjxjaXJjbGUgY3g9Ii43NSIgY3k9Ii43NSIgcj0iMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNS4yNSAzLjc1KSIgZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PGNpcmNsZSBjeD0iLjc1IiBjeT0iLjc1IiByPSIxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1LjI1IC43NSkiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4="},8752:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTExLjcgMS4zMzNINS44NUw0LjU1IDBIMS4zQy41ODUgMCAwIC42IDAgMS4zMzNWNGgxM1YyLjY2N2MwLS43MzMtLjU4NS0xLjMzNC0xLjMtMS4zMzR6IiBmaWxsPSIjRkZBMDAwIi8+PHBhdGggZD0iTTExLjcgMUgxLjNDLjU4NSAxIDAgMS41NzkgMCAyLjI4NnY2LjQyOEMwIDkuNDIxLjU4NSAxMCAxLjMgMTBoMTAuNGMuNzE1IDAgMS4zLS41NzkgMS4zLTEuMjg2VjIuMjg2QzEzIDEuNTc5IDEyLjQxNSAxIDExLjcgMXoiIGZpbGw9IiNGRkNBMjgiLz48L2c+PC9zdmc+"},8868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjMyNy4wNjRMOC40MzMgMS45NTdhNi4wMjUgNi4wMjUgMCAwIDAtMS45NTItLjM0MkMyLjkxMiAxLjYxNS4wMTkgNS4xOTYuMDE5IDUuMTk2czEuMDk4IDEuMzU4IDIuNzc0IDIuNDAxTC45NiA5LjQzMWwuOTM2LjkzNkwxMS4yNjMgMWwtLjkzNi0uOTM2ek00LjA1IDYuMzRhMi42ODYgMi42ODYgMCAwIDEgMy41NzQtMy41NzRMNC4wNSA2LjM0em02LjQ0OC0zLjMzYTEyLjM0NCAxMi4zNDQgMCAwIDEgMi40NDQgMi4xODZzLTIuODkzIDMuNTgtNi40NjEgMy41OGMtLjUzIDAtMS4wNDQtLjA3OC0xLjUzNy0uMjEzbC43ODgtLjc4OEEyLjY4NCAyLjY4NCAwIDAgMCA5LjA2IDQuNDQ4bDEuNDM4LTEuNDM5eiIgZmlsbD0iIzIzMUYyMCIgZmlsbC1vcGFjaXR5PSIuNTk3Ii8+PC9zdmc+"},4911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNjI1IDBBMS42MyAxLjYzIDAgMCAwIDAgMS42MjV2OS43NUExLjYzIDEuNjMgMCAwIDAgMS42MjUgMTNoNy41ODNhMS42MyAxLjYzIDAgMCAwIDEuNjI1LTEuNjI1VjMuNTY3TDcuMjY2IDBIMS42MjV6bTAgMS4wODNINi41djMuMjVoMy4yNXY3LjA0MmEuNTM1LjUzNSAwIDAgMS0uNTQyLjU0MkgxLjYyNWEuNTM1LjUzNSAwIDAgMS0uNTQyLS41NDJ2LTkuNzVjMC0uMzA1LjIzNy0uNTQyLjU0Mi0uNTQyem01Ljk1OC43NjZMOC45ODQgMy4yNWgtMS40di0xLjR6TTMuMjUgNi41djEuMDgzaDQuMzMzVjYuNUgzLjI1em0wIDIuMTY3VjkuNzVINi41VjguNjY3SDMuMjV6IiBmaWxsLW9wYWNpdHk9Ii40MDMiLz48L3N2Zz4="}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,i,o,a={},s=[],u=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function l(e,t){for(var n in t)e[n]=t[n];return e}function c(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,i,o,a=arguments,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o0?f(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(v=A[p])||v&&m.key==v.key&&m.type===v.type)A[p]=void 0;else for(b=0;b3)for(n=[n],o=3;o{};function q(e){return null!==e&&"object"==typeof e}function W(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Z(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function $(e,t){const n="isMobX"+e;return t.prototype[n]=!0,function(e){return q(e)&&!0===e[n]}}function K(e){return e instanceof Map}function Y(e){return e instanceof Set}function J(e){const t=new Set;for(let n in e)t.add(n);return Object.getOwnPropertySymbols(e).forEach((n=>{Object.getOwnPropertyDescriptor(e,n).enumerable&&t.add(n)})),Array.from(t)}function X(e){return e&&e.toString?e.toString():new String(e).toString()}function Q(e){return null===e?null:"object"==typeof e?""+e:e}const ee="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?e=>Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)):Object.getOwnPropertyNames,te=Symbol("mobx administration");class ne{constructor(e="Atom@"+R()){this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=De.NOT_TRACKING}onBecomeObserved(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((e=>e()))}onBecomeUnobserved(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((e=>e()))}reportObserved(){return ht(this)}reportChanged(){lt(),function(e){if(e.lowestObserverState===De.STALE)return;e.lowestObserverState=De.STALE,e.observers.forEach((t=>{t.dependenciesState===De.UP_TO_DATE&&(t.isTracing!==je.NONE&&ft(t,e),t.onBecomeStale()),t.dependenciesState=De.STALE}))}(this),ct()}toString(){return this.name}}const re=$("Atom",ne);function ie(e,t=V,n=V){const r=new ne(e);var i;return t!==V&&Dt("onBecomeObserved",r,t,i),n!==V&&zt(r,n),r}const oe={identity:function(e,t){return e===t},structural:function(e,t){return _n(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return _n(e,t,1)}},ae=Symbol("mobx did run lazy initializers"),se=Symbol("mobx pending decorators"),ue={},le={};function ce(e,t){const n=t?ue:le;return n[e]||(n[e]={configurable:!0,enumerable:t,get(){return he(this),this[e]},set(t){he(this),this[e]=t}})}function he(e){if(!0===e[ae])return;const t=e[se];if(t){Z(e,ae,!0);const n=[...Object.getOwnPropertySymbols(t),...Object.keys(t)];for(const r of n){const n=t[r];n.propertyCreator(e,n.prop,n.descriptor,n.decoratorTarget,n.decoratorArguments)}}}function fe(e,t){return function(){let n;const r=function(r,i,o,a){if(!0===a)return t(r,i,o,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,se)){const e=r[se];Z(r,se,Object.assign({},e))}return r[se][i]={prop:i,propertyCreator:t,descriptor:o,decoratorTarget:r,decoratorArguments:n},ce(i,e)};return de(arguments)?(n=P,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function de(e){return(2===e.length||3===e.length)&&("string"==typeof e[1]||"symbol"==typeof e[1])||4===e.length&&!0===e[3]}function pe(e,t,n){return Ft(e)?e:Array.isArray(e)?Se.array(e,{name:n}):W(e)?Se.object(e,void 0,{name:n}):K(e)?Se.map(e,{name:n}):Y(e)?Se.set(e,{name:n}):e}function ge(e){return e}function be(e){U(e);const t=fe(!0,((t,n,r,i,o)=>{const a=r?r.initializer?r.initializer.call(t):r.value:void 0;fn(t).addObservableProp(n,a,e)})),n=t;return n.enhancer=e,n}const ve={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function me(e){return null==e?ve:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(ve);const ye=be(pe),Ce=be((function(e,t,n){return null==e||vn(e)||tn(e)||an(e)||cn(e)?e:Array.isArray(e)?Se.array(e,{name:n,deep:!1}):W(e)?Se.object(e,void 0,{name:n,deep:!1}):K(e)?Se.map(e,{name:n,deep:!1}):Y(e)?Se.set(e,{name:n,deep:!1}):G(!1)})),_e=be(ge),we=be((function(e,t,n){return _n(e,t)?t:e}));function xe(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?ge:pe}const Ae={box(e,t){arguments.length>2&&Me("box");const n=me(t);return new Je(e,xe(n),n.name,!0,n.equals)},array(e,t){arguments.length>2&&Me("array");const n=me(t);return function(e,t,n="ObservableArray@"+R(),r=!1){const i=new Xt(n,t,r);o=i.values,a=te,s=i,Object.defineProperty(o,a,{enumerable:!1,writable:!1,configurable:!0,value:s});var o,a,s;const u=new Proxy(i.values,Jt);if(i.proxy=u,e&&e.length){const t=Ke(!0);i.spliceWithArray(0,0,e),Ye(t)}return u}(e,xe(n),n.name)},map(e,t){arguments.length>2&&Me("map");const n=me(t);return new on(e,xe(n),n.name)},set(e,t){arguments.length>2&&Me("set");const n=me(t);return new ln(e,xe(n),n.name)},object(e,t,n){"string"==typeof arguments[1]&&Me("object");const r=me(n);if(!1===r.proxy)return Lt({},e,t,r);{const n=Bt(r),i=function(e){const t=new Proxy(e,Vt);return e[te].proxy=t,t}(Lt({},void 0,void 0,r));return Et(i,e,t,n),i}},ref:_e,shallow:Ce,deep:ye,struct:we},Se=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return ye.apply(null,arguments);if(Ft(e))return e;const r=W(e)?Se.object(e,t,n):Array.isArray(e)?Se.array(e,t):K(e)?Se.map(e,t):Y(e)?Se.set(e,t):e;if(r!==e)return r;G(!1)};function Me(e){G(`Expected one or two arguments to observable.${e}. Did you accidentally try to use observable.${e} as decorator?`)}Object.keys(Ae).forEach((e=>Se[e]=Ae[e]));const Te=fe(!1,((e,t,n,r,i)=>{const{get:o,set:a}=n,s=i[0]||{};fn(e).addComputedProp(e,t,Object.assign({get:o,set:a,context:e},s))})),ke=Te({equals:oe.structural}),ze=function(e,t,n){if("string"==typeof t)return Te.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return Te.apply(null,arguments);const r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new Xe(r)};var De,je;ze.struct=ke,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(De||(De={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(je||(je={}));class Le{constructor(e){this.cause=e}}function Be(e){return e instanceof Le}function Ee(e){switch(e.dependenciesState){case De.UP_TO_DATE:return!1;case De.NOT_TRACKING:case De.STALE:return!0;case De.POSSIBLY_STALE:{const t=Ge(!0),n=Fe(),r=e.observing,i=r.length;for(let o=0;o0;ot.computationDepth>0&&t&&G(!1),ot.allowStateChanges||!t&&"strict"!==ot.enforceActions||G(!1)}function Ie(e,t,n){const r=Ge(!0);He(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++ot.runId;const i=ot.trackingDerivation;let o;if(ot.trackingDerivation=e,!0===ot.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(u){o=new Le(u)}return ot.trackingDerivation=i,function(e){const t=e.observing,n=e.observing=e.newObserving;let r=De.UP_TO_DATE,i=0,o=e.unboundDepsCount;for(let a=0;ar&&(r=e.dependenciesState)}n.length=i,e.newObserving=null,o=t.length;for(;o--;){const n=t[o];0===n.diffValue&&st(n,e),n.diffValue=0}for(;i--;){const t=n[i];1===t.diffValue&&(t.diffValue=0,at(t,e))}r!==De.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),Ue(r),o}function Ne(e){const t=e.observing;e.observing=[];let n=t.length;for(;n--;)st(t[n],e);e.dependenciesState=De.NOT_TRACKING}function Pe(e){const t=Fe();try{return e()}finally{Re(t)}}function Fe(){const e=ot.trackingDerivation;return ot.trackingDerivation=null,e}function Re(e){ot.trackingDerivation=e}function Ge(e){const t=ot.allowStateReads;return ot.allowStateReads=e,t}function Ue(e){ot.allowStateReads=e}function He(e){if(e.dependenciesState===De.UP_TO_DATE)return;e.dependenciesState=De.UP_TO_DATE;const t=e.observing;let n=t.length;for(;n--;)t[n].lowestObserverState=De.UP_TO_DATE}let Ve=0,qe=1;const We=Object.getOwnPropertyDescriptor((()=>{}),"name");We&&We.configurable;function Ze(e,t,n){const r=function(){return $e(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function $e(e,t,n,r){const i=function(e,t,n){const r=!1;let i=0;0;const o=Fe();lt();const a=Ke(!0),s=Ge(!0),u={prevDerivation:o,prevAllowStateChanges:a,prevAllowStateReads:s,notifySpy:r,startTime:i,actionId:qe++,parentActionId:Ve};return Ve=u.actionId,u}();try{return t.apply(n,r)}catch(o){throw i.error=o,o}finally{!function(e){Ve!==e.actionId&&G("invalid action stack. did you forget to finish an action?");Ve=e.parentActionId,void 0!==e.error&&(ot.suppressReactionErrors=!0);Ye(e.prevAllowStateChanges),Ue(e.prevAllowStateReads),ct(),Re(e.prevDerivation),e.notifySpy&&!1;ot.suppressReactionErrors=!1}(i)}}function Ke(e){const t=ot.allowStateChanges;return ot.allowStateChanges=e,t}function Ye(e){ot.allowStateChanges=e}class Je extends ne{constructor(e,t,n="ObservableValue@"+R(),r=!0,i=oe.default){super(n),this.enhancer=t,this.name=n,this.equals=i,this.hasUnreportedChange=!1,this.value=t(e,void 0,n)}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}set(e){this.value;if((e=this.prepareNewValue(e))!==ot.UNCHANGED){0,this.setNewValue(e)}}prepareNewValue(e){if(Oe(this),qt(this)){const t=Zt(this,{object:this,type:"update",newValue:e});if(!t)return ot.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?ot.UNCHANGED:e}setNewValue(e){const t=this.value;this.value=e,this.reportChanged(),$t(this)&&Yt(this,{type:"update",object:this,newValue:e,oldValue:t})}get(){return this.reportObserved(),this.dehanceValue(this.value)}intercept(e){return Wt(this,e)}observe(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Kt(this,e)}toJSON(){return this.get()}toString(){return`${this.name}[${this.value}]`}valueOf(){return Q(this.get())}[Symbol.toPrimitive](){return this.valueOf()}}$("ObservableValue",Je);class Xe{constructor(e){this.dependenciesState=De.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=De.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+R(),this.value=new Le(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=je.NONE,U(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+R(),e.set&&(this.setter=Ze(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?oe.structural:oe.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}onBecomeStale(){!function(e){if(e.lowestObserverState!==De.UP_TO_DATE)return;e.lowestObserverState=De.POSSIBLY_STALE,e.observers.forEach((t=>{t.dependenciesState===De.UP_TO_DATE&&(t.dependenciesState=De.POSSIBLY_STALE,t.isTracing!==je.NONE&&ft(t,e),t.onBecomeStale())}))}(this)}onBecomeObserved(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((e=>e()))}onBecomeUnobserved(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((e=>e()))}get(){this.isComputing&&G(`Cycle detected in computation ${this.name}: ${this.derivation}`),0!==ot.inBatch||0!==this.observers.size||this.keepAlive?(ht(this),Ee(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===De.STALE)return;e.lowestObserverState=De.STALE,e.observers.forEach((t=>{t.dependenciesState===De.POSSIBLY_STALE?t.dependenciesState=De.STALE:t.dependenciesState===De.UP_TO_DATE&&(e.lowestObserverState=De.UP_TO_DATE)}))}(this)):Ee(this)&&(this.warnAboutUntrackedRead(),lt(),this.value=this.computeValue(!1),ct());const e=this.value;if(Be(e))throw e.cause;return e}peek(){const e=this.computeValue(!1);if(Be(e))throw e.cause;return e}set(e){if(this.setter){U(!this.isRunningSetter,`The setter of computed value '${this.name}' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?`),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else U(!1,!1)}trackAndCompute(){const e=this.value,t=this.dependenciesState===De.NOT_TRACKING,n=this.computeValue(!0),r=t||Be(e)||Be(n)||!this.equals(e,n);return r&&(this.value=n),r}computeValue(e){let t;if(this.isComputing=!0,ot.computationDepth++,e)t=Ie(this,this.derivation,this.scope);else if(!0===ot.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(u){t=new Le(u)}return ot.computationDepth--,this.isComputing=!1,t}suspend(){this.keepAlive||(Ne(this),this.value=void 0)}observe(e,t){let n,r=!0;return Mt((()=>{let i=this.get();if(!r||t){const t=Fe();e({type:"update",object:this,newValue:i,oldValue:n}),Re(t)}r=!1,n=i}))}warnAboutUntrackedRead(){}toJSON(){return this.get()}toString(){return`${this.name}[${this.derivation.toString()}]`}valueOf(){return Q(this.get())}[Symbol.toPrimitive](){return this.valueOf()}}const Qe=$("ComputedValue",Xe);class et{constructor(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}}const tt={};function nt(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:tt}let rt=!0,it=!1,ot=function(){const e=nt();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(rt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new et).version&&(rt=!1),rt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new et):(setTimeout((()=>{it||G("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new et)}();function at(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function st(e,t){e.observers.delete(t),0===e.observers.size&&ut(e)}function ut(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ot.pendingUnobservations.push(e))}function lt(){ot.inBatch++}function ct(){if(0==--ot.inBatch){bt();const e=ot.pendingUnobservations;for(let t=0;t0&&ut(e),!1)}function ft(e,t){if(console.log(`[mobx.trace] '${e.name}' is invalidated due to a change in: '${t.name}'`),e.isTracing===je.BREAK){const n=[];dt(Ot(e),n,1),new Function(`debugger;\n/*\nTracing '${e.name}'\n\nYou are entering this break point because derivation '${e.name}' is being traced and '${t.name}' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n${e instanceof Xe?e.derivation.toString().replace(/[*]\//g,"/"):""}\n\nThe dependencies for this derivation are:\n\n${n.join("\n")}\n*/\n `)()}}function dt(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(`${new Array(n).join("\t")}${e.name}`),e.dependencies&&e.dependencies.forEach((e=>dt(e,t,n+1))))}class pt{constructor(e="Reaction@"+R(),t,n,r=!1){this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=De.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+R(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=je.NONE}onBecomeStale(){this.schedule()}schedule(){this._isScheduled||(this._isScheduled=!0,ot.pendingReactions.push(this),bt())}isScheduled(){return this._isScheduled}runReaction(){if(!this.isDisposed){if(lt(),this._isScheduled=!1,Ee(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(u){this.reportExceptionInDerivation(u)}}ct()}}track(e){if(this.isDisposed)return;lt();this._isRunning=!0;const t=Ie(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ne(this),Be(t)&&this.reportExceptionInDerivation(t.cause),ct()}reportExceptionInDerivation(e){if(this.errorHandler)return void this.errorHandler(e,this);if(ot.disableErrorBoundaries)throw e;const t=`[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '${this}'`;ot.suppressReactionErrors?console.warn(`[mobx] (error in reaction '${this.name}' suppressed, fix error of causing action below)`):console.error(t,e),ot.globalReactionErrorHandlers.forEach((t=>t(e,this)))}dispose(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(lt(),Ne(this),ct()))}getDisposer(){const e=this.dispose.bind(this);return e[te]=this,e}toString(){return`Reaction[${this.name}]`}trace(e=!1){!function(...e){let t=!1;"boolean"==typeof e[e.length-1]&&(t=e.pop());const n=function(e){switch(e.length){case 0:return ot.trackingDerivation;case 1:return mn(e[0]);case 2:return mn(e[0],e[1])}}(e);if(!n)return G(!1);n.isTracing===je.NONE&&console.log(`[mobx.trace] '${n.name}' tracing enabled`);n.isTracing=t?je.BREAK:je.LOG}(this,e)}}let gt=e=>e();function bt(){ot.inBatch>0||ot.isRunningReactions||gt(vt)}function vt(){ot.isRunningReactions=!0;const e=ot.pendingReactions;let t=0;for(;e.length>0;){100==++t&&(console.error(`Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: ${e[0]}`),e.splice(0));let n=e.splice(0);for(let e=0,t=n.length;ee((()=>t(n)))}function Ct(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function _t(){G(!1)}function wt(e){return function(t,n,r){if(r){if(r.value)return{value:Ze(e,r.value),enumerable:!1,configurable:!0,writable:!0};const{initializer:t}=r;return{enumerable:!1,configurable:!0,writable:!0,initializer(){return Ze(e,t.call(this))}}}return xt(e).apply(this,arguments)}}function xt(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get(){},set(t){Z(this,n,At(e,t))}})}}const At=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?Ze(e.name||"",e):2===arguments.length&&"function"==typeof t?Ze(e,t):1===arguments.length&&"string"==typeof e?wt(e):!0!==r?wt(t).apply(null,arguments):void Z(e,t,Ze(e.name||t,n.value,this))};function St(e,t,n){Z(e,t,Ze(t,n.bind(e)))}function Mt(e,t=F){const n=t&&t.name||e.name||"Autorun@"+R();let r;if(!t.scheduler&&!t.delay)r=new pt(n,(function(){this.track(i)}),t.onError,t.requiresObservable);else{const e=kt(t);let o=!1;r=new pt(n,(()=>{o||(o=!0,e((()=>{o=!1,r.isDisposed||r.track(i)})))}),t.onError,t.requiresObservable)}function i(){e(r)}return r.schedule(),r.getDisposer()}At.bound=function(e,t,n,r){return!0===r?(St(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get(){return St(this,t,n.value||n.initializer.call(this)),this[t]},set:_t}:{enumerable:!1,configurable:!0,set(e){St(this,t,e)},get(){}}};const Tt=e=>e();function kt(e){return e.scheduler?e.scheduler:e.delay?t=>setTimeout(t,e.delay):Tt}function zt(e,t,n){return Dt("onBecomeUnobserved",e,t,n)}function Dt(e,t,n,r){const i="function"==typeof r?mn(t,n):mn(t),o="function"==typeof r?r:n,a=`${e}Listeners`;i[a]?i[a].add(o):i[a]=new Set([o]);return"function"!=typeof i[e]?G(!1):function(){const e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function jt(e){const{enforceActions:t,computedRequiresReaction:n,computedConfigurable:r,disableErrorBoundaries:i,reactionScheduler:o,reactionRequiresObservable:a,observableRequiresReaction:s}=e;if(!0===e.isolateGlobalState&&((ot.pendingReactions.length||ot.inBatch||ot.isRunningReactions)&&G("isolateGlobalState should be called before MobX is running any reactions"),it=!0,rt&&(0==--nt().__mobxInstanceCount&&(nt().__mobxGlobals=void 0),ot=new et)),void 0!==t){let e;switch(t){case!0:case"observed":e=!0;break;case!1:case"never":e=!1;break;case"strict":case"always":e="strict";break;default:G(`Invalid value for 'enforceActions': '${t}', expected 'never', 'always' or 'observed'`)}ot.enforceActions=e,ot.allowStateChanges=!0!==e&&"strict"!==e}void 0!==n&&(ot.computedRequiresReaction=!!n),void 0!==a&&(ot.reactionRequiresObservable=!!a),void 0!==s&&(ot.observableRequiresReaction=!!s,ot.allowStateReads=!ot.observableRequiresReaction),void 0!==r&&(ot.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),ot.disableErrorBoundaries=!!i),o&&yt(o)}function Lt(e,t,n,r){const i=Bt(r=me(r));return he(e),fn(e,r.name,i.enhancer),t&&Et(e,t,n,i),e}function Bt(e){return e.defaultDecorator||(!1===e.deep?_e:ye)}function Et(e,t,n,r){lt();try{const i=ee(t);for(const o of i){const i=Object.getOwnPropertyDescriptor(t,o);0;0;const a=(n&&o in n?n[o]:i.get?Te:r)(e,o,i,!0);a&&Object.defineProperty(e,o,a)}}finally{ct()}}function Ot(e,t){return It(mn(e,t))}function It(e){const t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=function(e){const t=[];return e.forEach((e=>{-1===t.indexOf(e)&&t.push(e)})),t}(e.observing).map(It)),t}function Nt(){this.message="FLOW_CANCELLED"}function Pt(e,t){return null!=e&&(void 0!==t?!!vn(e)&&e[te].values.has(t):vn(e)||!!e[te]||re(e)||mt(e)||Qe(e))}function Ft(e){return 1!==arguments.length&&G(!1),Pt(e)}function Rt(e,t,n){if(2!==arguments.length||cn(e))if(vn(e)){const r=e[te];r.values.get(t)?r.write(t,n):r.addObservableProp(t,n,r.defaultEnhancer)}else if(an(e))e.set(t,n);else if(cn(e))e.add(t);else{if(!tn(e))return G(!1);"number"!=typeof t&&(t=parseInt(t,10)),U(t>=0,`Not a valid index: '${t}'`),lt(),t>=e.length&&(e.length=t+1),e[t]=n,ct()}else{lt();const n=t;try{for(let t in n)Rt(e,t,n[t])}finally{ct()}}}Nt.prototype=Object.create(Error.prototype);function Gt(e,t){lt();try{return e.apply(t)}finally{ct()}}function Ut(e){return e[te]}function Ht(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}const Vt={has(e,t){if(t===te||"constructor"===t||t===ae)return!0;const n=Ut(e);return Ht(t)?n.has(t):t in e},get(e,t){if(t===te||"constructor"===t||t===ae)return e[t];const n=Ut(e),r=n.values.get(t);if(r instanceof ne){const e=r.get();return void 0===e&&n.has(t),e}return Ht(t)&&n.has(t),e[t]},set:(e,t,n)=>!!Ht(t)&&(Rt(e,t,n),!0),deleteProperty(e,t){if(!Ht(t))return!1;return Ut(e).remove(t),!0},ownKeys:e=>(Ut(e).keysAtom.reportObserved(),Reflect.ownKeys(e)),preventExtensions:e=>(G("Dynamic observable objects cannot be frozen"),!1)};function qt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Wt(e,t){const n=e.interceptors||(e.interceptors=[]);return n.push(t),H((()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Zt(e,t){const n=Fe();try{const r=[...e.interceptors||[]];for(let e=0,n=r.length;e0}function Kt(e,t){const n=e.changeListeners||(e.changeListeners=[]);return n.push(t),H((()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Yt(e,t){const n=Fe();let r=e.changeListeners;if(r){r=r.slice();for(let e=0,n=r.length;et===te?e[te]:"length"===t?e[te].getArrayLength():"number"==typeof t?Qt.get.call(e,t):"string"!=typeof t||isNaN(t)?Qt.hasOwnProperty(t)?Qt[t]:e[t]:Qt.get.call(e,parseInt(t)),set:(e,t,n)=>("length"===t&&e[te].setArrayLength(n),"number"==typeof t&&Qt.set.call(e,t,n),"symbol"==typeof t||isNaN(t)?e[t]=n:Qt.set.call(e,parseInt(t),n),!0),preventExtensions:e=>(G("Observable arrays cannot be frozen"),!1)};class Xt{constructor(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new ne(e||"ObservableArray@"+R()),this.enhancer=(n,r)=>t(n,r,e+"[..]")}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}dehanceValues(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e}intercept(e){return Wt(this,e)}observe(e,t=!1){return t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Kt(this,e)}getArrayLength(){return this.atom.reportObserved(),this.values.length}setArrayLength(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);let t=this.values.length;if(e!==t)if(e>t){const n=new Array(e-t);for(let r=0;rr?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=P),qt(this)){const r=Zt(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!r)return P;t=r.removedCount,n=r.added}n=0===n.length?n:n.map((e=>this.enhancer(e,void 0)));const i=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,i),this.dehanceValues(i)}spliceItemsIntoValues(e,t,n){if(n.length<1e4)return this.values.splice(e,t,...n);{const r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),r}}notifyArrayChildUpdate(e,t,n){const r=!this.owned&&!1,i=$t(this),o=i||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),i&&Yt(this,o)}notifyArraySplice(e,t,n){const r=!this.owned&&!1,i=$t(this),o=i||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),i&&Yt(this,o)}}const Qt={intercept(e){return this[te].intercept(e)},observe(e,t=!1){return this[te].observe(e,t)},clear(){return this.splice(0)},replace(e){const t=this[te];return t.spliceWithArray(0,t.values.length,e)},toJS(){return this.slice()},toJSON(){return this.toJS()},splice(e,t,...n){const r=this[te];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray(e);case 2:return r.spliceWithArray(e,t)}return r.spliceWithArray(e,t,n)},spliceWithArray(e,t,n){return this[te].spliceWithArray(e,t,n)},push(...e){const t=this[te];return t.spliceWithArray(t.values.length,0,e),t.values.length},pop(){return this.splice(Math.max(this[te].values.length-1,0),1)[0]},shift(){return this.splice(0,1)[0]},unshift(...e){const t=this[te];return t.spliceWithArray(0,0,e),t.values.length},reverse(){const e=this.slice();return e.reverse.apply(e,arguments)},sort(e){const t=this.slice();return t.sort.apply(t,arguments)},remove(e){const t=this[te],n=t.dehanceValues(t.values).indexOf(e);return n>-1&&(this.splice(n,1),!0)},get(e){const t=this[te];if(t){if(e{"function"==typeof Array.prototype[e]&&(Qt[e]=function(){const t=this[te];t.atom.reportObserved();const n=t.dehanceValues(t.values);return n[e].apply(n,arguments)})})),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach((e=>{"function"==typeof Array.prototype[e]&&(Qt[e]=function(t,n){const r=this[te];r.atom.reportObserved();return r.dehanceValues(r.values)[e](((e,r)=>t.call(n,e,r,this)),n)})})),["reduce","reduceRight"].forEach((e=>{Qt[e]=function(){const t=this[te];t.atom.reportObserved();const n=arguments[0];return arguments[0]=(e,r,i)=>(r=t.dehanceValue(r),n(e,r,i,this)),t.values[e].apply(t.values,arguments)}}));const en=$("ObservableArrayAdministration",Xt);function tn(e){return q(e)&&en(e[te])}var nn;const rn={};class on{constructor(e,t=pe,n="ObservableMap@"+R()){if(this.enhancer=t,this.name=n,this[nn]=rn,this._keysAtom=ie(`${this.name}.keys()`),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}_has(e){return this._data.has(e)}has(e){if(!ot.trackingDerivation)return this._has(e);let t=this._hasMap.get(e);if(!t){const n=t=new Je(this._has(e),ge,`${this.name}.${X(e)}?`,!1);this._hasMap.set(e,n),zt(n,(()=>this._hasMap.delete(e)))}return t.get()}set(e,t){const n=this._has(e);if(qt(this)){const r=Zt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this}delete(e){if(Oe(this._keysAtom),qt(this)){if(!Zt(this,{type:"delete",object:this,name:e}))return!1}if(this._has(e)){const t=!1,n=$t(this),r=n||t?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return Gt((()=>{this._keysAtom.reportChanged(),this._updateHasMapEntry(e,!1);this._data.get(e).setNewValue(void 0),this._data.delete(e)})),n&&Yt(this,r),!0}return!1}_updateHasMapEntry(e,t){let n=this._hasMap.get(e);n&&n.setNewValue(t)}_updateValue(e,t){const n=this._data.get(e);if((t=n.prepareNewValue(t))!==ot.UNCHANGED){const r=!1,i=$t(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;0,n.setNewValue(t),i&&Yt(this,o)}}_addValue(e,t){Oe(this._keysAtom),Gt((()=>{const n=new Je(t,this.enhancer,`${this.name}.${X(e)}`,!1);this._data.set(e,n),t=n.value,this._updateHasMapEntry(e,!0),this._keysAtom.reportChanged()}));const n=!1,r=$t(this),i=r?{type:"add",object:this,name:e,newValue:t}:null;r&&Yt(this,i)}get(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}keys(){return this._keysAtom.reportObserved(),this._data.keys()}values(){const e=this,t=this.keys();return Sn({next(){const{done:n,value:r}=t.next();return{done:n,value:n?void 0:e.get(r)}}})}entries(){const e=this,t=this.keys();return Sn({next(){const{done:n,value:r}=t.next();return{done:n,value:n?void 0:[r,e.get(r)]}}})}[(nn=te,Symbol.iterator)](){return this.entries()}forEach(e,t){for(const[n,r]of this)e.call(t,r,n,this)}merge(e){return an(e)&&(e=e.toJS()),Gt((()=>{const t=Ke(!0);try{W(e)?J(e).forEach((t=>this.set(t,e[t]))):Array.isArray(e)?e.forEach((([e,t])=>this.set(e,t))):K(e)?(e.constructor!==Map&&G("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach(((e,t)=>this.set(t,e)))):null!=e&&G("Cannot initialize map from "+e)}finally{Ye(t)}})),this}clear(){Gt((()=>{Pe((()=>{for(const e of this.keys())this.delete(e)}))}))}replace(e){return Gt((()=>{const t=function(e){if(K(e)||an(e))return e;if(Array.isArray(e))return new Map(e);if(W(e)){const t=new Map;for(const n in e)t.set(n,e[n]);return t}return G(`Cannot convert to map from '${e}'`)}(e),n=new Map;let r=!1;for(const e of this._data.keys())if(!t.has(e)){if(this.delete(e))r=!0;else{const t=this._data.get(e);n.set(e,t)}}for(const[e,i]of t.entries()){const t=this._data.has(e);if(this.set(e,i),this._data.has(e)){const i=this._data.get(e);n.set(e,i),t||(r=!0)}}if(!r)if(this._data.size!==n.size)this._keysAtom.reportChanged();else{const e=this._data.keys(),t=n.keys();let r=e.next(),i=t.next();for(;!r.done;){if(r.value!==i.value){this._keysAtom.reportChanged();break}r=e.next(),i=t.next()}}this._data=n})),this}get size(){return this._keysAtom.reportObserved(),this._data.size}toPOJO(){const e={};for(const[t,n]of this)e["symbol"==typeof t?t:X(t)]=n;return e}toJS(){return new Map(this)}toJSON(){return this.toPOJO()}toString(){return this.name+"[{ "+Array.from(this.keys()).map((e=>`${X(e)}: ${""+this.get(e)}`)).join(", ")+" }]"}observe(e,t){return Kt(this,e)}intercept(e){return Wt(this,e)}}const an=$("ObservableMap",on);var sn;const un={};class ln{constructor(e,t=pe,n="ObservableSet@"+R()){if(this.name=n,this[sn]=un,this._data=new Set,this._atom=ie(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=(e,r)=>t(e,r,n),e&&this.replace(e)}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}clear(){Gt((()=>{Pe((()=>{for(const e of this._data.values())this.delete(e)}))}))}forEach(e,t){for(const n of this)e.call(t,n,n,this)}get size(){return this._atom.reportObserved(),this._data.size}add(e){if(Oe(this._atom),qt(this)){if(!Zt(this,{type:"add",object:this,newValue:e}))return this}if(!this.has(e)){Gt((()=>{this._data.add(this.enhancer(e,void 0)),this._atom.reportChanged()}));const t=!1,n=$t(this),r=n||t?{type:"add",object:this,newValue:e}:null;0,n&&Yt(this,r)}return this}delete(e){if(qt(this)){if(!Zt(this,{type:"delete",object:this,oldValue:e}))return!1}if(this.has(e)){const t=!1,n=$t(this),r=n||t?{type:"delete",object:this,oldValue:e}:null;return Gt((()=>{this._atom.reportChanged(),this._data.delete(e)})),n&&Yt(this,r),!0}return!1}has(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))}entries(){let e=0;const t=Array.from(this.keys()),n=Array.from(this.values());return Sn({next(){const r=e;return e+=1,rt{const t=Ke(!0);try{Array.isArray(e)||Y(e)?(this.clear(),e.forEach((e=>this.add(e)))):null!=e&&G("Cannot initialize set from "+e)}finally{Ye(t)}})),this}observe(e,t){return Kt(this,e)}intercept(e){return Wt(this,e)}toJS(){return new Set(this)}toString(){return this.name+"[ "+Array.from(this).join(", ")+" ]"}[(sn=te,Symbol.iterator)](){return this.values()}}const cn=$("ObservableSet",ln);class hn{constructor(e,t=new Map,n,r){this.target=e,this.values=t,this.name=n,this.defaultEnhancer=r,this.keysAtom=new ne(n+".keys")}read(e){return this.values.get(e).get()}write(e,t){const n=this.target,r=this.values.get(e);if(r instanceof Xe)r.set(t);else{if(qt(this)){const r=Zt(this,{type:"update",object:this.proxy||n,name:e,newValue:t});if(!r)return;t=r.newValue}if((t=r.prepareNewValue(t))!==ot.UNCHANGED){const i=$t(this),o=!1,a=i||o?{type:"update",object:this.proxy||n,oldValue:r.value,name:e,newValue:t}:null;0,r.setNewValue(t),i&&Yt(this,a)}}}has(e){const t=this.pendingKeys||(this.pendingKeys=new Map);let n=t.get(e);if(n)return n.get();{const r=!!this.values.get(e);return n=new Je(r,ge,`${this.name}.${X(e)}?`,!1),t.set(e,n),n.get()}}addObservableProp(e,t,n=this.defaultEnhancer){const{target:r}=this;if(qt(this)){const n=Zt(this,{object:this.proxy||r,name:e,type:"add",newValue:t});if(!n)return;t=n.newValue}const i=new Je(t,n,`${this.name}.${X(e)}`,!1);this.values.set(e,i),t=i.value,Object.defineProperty(r,e,function(e){return dn[e]||(dn[e]={configurable:!0,enumerable:!0,get(){return this[te].read(e)},set(t){this[te].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)}addComputedProp(e,t,n){const{target:r}=this;n.name=n.name||`${this.name}.${X(t)}`,this.values.set(t,new Xe(n)),(e===r||function(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return!n||!1!==n.configurable&&!1!==n.writable}(e,t))&&Object.defineProperty(e,t,function(e){return pn[e]||(pn[e]={configurable:ot.computedConfigurable,enumerable:!1,get(){return gn(this).read(e)},set(t){gn(this).write(e,t)}})}(t))}remove(e){if(!this.values.has(e))return;const{target:t}=this;if(qt(this)){if(!Zt(this,{object:this.proxy||t,name:e,type:"remove"}))return}try{lt();const n=$t(this),r=!1,i=this.values.get(e),o=i&&i.get();if(i&&i.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){const t=this.pendingKeys.get(e);t&&t.set(!1)}delete this.target[e];const a=n||r?{type:"remove",object:this.proxy||t,oldValue:o,name:e}:null;0,n&&Yt(this,a)}finally{ct()}}illegalAccess(e,t){console.warn(`Property '${t}' of '${e}' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner`)}observe(e,t){return Kt(this,e)}intercept(e){return Wt(this,e)}notifyPropertyAddition(e,t){const n=$t(this),r=n?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&Yt(this,r),this.pendingKeys){const t=this.pendingKeys.get(e);t&&t.set(!0)}this.keysAtom.reportChanged()}getKeys(){this.keysAtom.reportObserved();const e=[];for(const[t,n]of this.values)n instanceof Je&&e.push(t);return e}}function fn(e,t="",n=pe){if(Object.prototype.hasOwnProperty.call(e,te))return e[te];W(e)||(t=(e.constructor.name||"ObservableObject")+"@"+R()),t||(t="ObservableObject@"+R());const r=new hn(e,new Map,X(t),n);return Z(e,te,r),r}const dn=Object.create(null),pn=Object.create(null);function gn(e){const t=e[te];return t||(he(e),e[te])}const bn=$("ObservableObjectAdministration",hn);function vn(e){return!!q(e)&&(he(e),bn(e[te]))}function mn(e,t){if("object"==typeof e&&null!==e){if(tn(e))return void 0!==t&&G(!1),e[te].atom;if(cn(e))return e[te];if(an(e)){const n=e;if(void 0===t)return n._keysAtom;const r=n._data.get(t)||n._hasMap.get(t);return r||G(!1),r}if(he(e),t&&!e[te]&&e[t],vn(e)){if(!t)return G(!1);const n=e[te].values.get(t);return n||G(!1),n}if(re(e)||Qe(e)||mt(e))return e}else if("function"==typeof e&&mt(e[te]))return e[te];return G(!1)}function yn(e,t){return e||G("Expecting some object"),void 0!==t?yn(mn(e,t)):re(e)||Qe(e)||mt(e)||an(e)||cn(e)?e:(he(e),e[te]?e[te]:void G(!1))}const Cn=Object.prototype.toString;function _n(e,t,n=-1){return wn(e,t,n)}function wn(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;const o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;const a=Cn.call(e);if(a!==Cn.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=xn(e),t=xn(t);const s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;const n=e.constructor,r=t.constructor;if(n!==r&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];let u=(r=r||[]).length;for(;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!wn(e[u],t[u],n-1,r,i))return!1}else{const o=Object.keys(e);let a;if(u=o.length,Object.keys(t).length!==u)return!1;for(;u--;)if(a=o[u],!An(t,a)||!wn(e[a],t[a],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function xn(e){return tn(e)?e.slice():K(e)||an(e)||Y(e)||cn(e)?Array.from(e.entries()):e}function An(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Sn(e){return e[Symbol.iterator]=Mn,e}function Mn(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");function Tn(e){return"number"==typeof e.parsedSize}function kn(e,t){for(const n of e){if(!1===t(n))return!1;if(n.groups&&!1===kn(n.groups,t))return!1}}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ct,extras:{getDebugName:function(e,t){let n;return n=void 0!==t?mn(e,t):vn(e)||an(e)||cn(e)?yn(e):mn(e),n.name}},$mobx:te});const zn={getItem(e){try{return JSON.parse(window.localStorage.getItem(`wba.${e}`))}catch(t){return null}},setItem(e,t){try{window.localStorage.setItem(`wba.${e}`,JSON.stringify(t))}catch(n){}},removeItem(e){try{window.localStorage.removeItem(`wba.${e}`)}catch(t){}}};var Dn,jn,Ln,Bn,En,On,In,Nn,Pn;const Fn=new(Dn=Se.ref,jn=Se.shallow,Bn=N((Ln=class{constructor(){this.cid=0,this.sizes=new Set(["statSize","parsedSize","gzipSize"]),I(this,"allChunks",Bn,this),I(this,"selectedChunks",En,this),I(this,"searchQuery",On,this),I(this,"defaultSize",In,this),I(this,"selectedSize",Nn,this),I(this,"showConcatenatedModulesContent",Pn,this)}setModules(e){kn(e,(e=>{e.cid=this.cid++})),this.allChunks=e,this.selectedChunks=this.allChunks}get hasParsedSizes(){return this.allChunks.some(Tn)}get activeSize(){const e=this.selectedSize||this.defaultSize;return this.hasParsedSizes&&this.sizes.has(e)?e:"statSize"}get visibleChunks(){const e=this.allChunks.filter((e=>this.selectedChunks.includes(e)));return this.filterModulesForSize(e,this.activeSize)}get allChunksSelected(){return this.visibleChunks.length===this.allChunks.length}get totalChunksSize(){return this.allChunks.reduce(((e,t)=>e+(t[this.activeSize]||0)),0)}get searchQueryRegexp(){const e=this.searchQuery.trim();if(!e)return null;try{return new RegExp(e,"iu")}catch(t){return null}}get isSearching(){return!!this.searchQueryRegexp}get foundModulesByChunk(){if(!this.isSearching)return[];const e=this.searchQueryRegexp;return this.visibleChunks.map((t=>{let n=[];kn(t.groups,(t=>{let r=0;if(e.test(t.label)?r+=3:t.path&&e.test(t.path)&&r++,!r)return;t.groups||(r+=1);(n[r-1]=n[r-1]||[]).push(t)}));const{activeSize:r}=this;return n=n.filter(Boolean).reverse(),n.forEach((e=>e.sort(((e,t)=>t[r]-e[r])))),{chunk:t,modules:[].concat(...n)}})).filter((e=>e.modules.length>0)).sort(((e,t)=>e.modules.length-t.modules.length))}get foundModules(){return this.foundModulesByChunk.reduce(((e,t)=>e.concat(t.modules)),[])}get hasFoundModules(){return this.foundModules.length>0}get hasConcatenatedModules(){let e=!1;return kn(this.visibleChunks,(t=>{if(t.concatenated)return e=!0,!1})),e}get foundModulesSize(){return this.foundModules.reduce(((e,t)=>e+t[this.activeSize]),0)}filterModulesForSize(e,t){return e.reduce(((e,n)=>{if(n[t]){if(n.groups){const e=!n.concatenated||this.showConcatenatedModulesContent;n={...n,groups:e?this.filterModulesForSize(n.groups,t):null}}n.weight=n[t],e.push(n)}return e}),[])}}).prototype,"allChunks",[Dn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),En=N(Ln.prototype,"selectedChunks",[jn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),On=N(Ln.prototype,"searchQuery",[Se],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),In=N(Ln.prototype,"defaultSize",[Se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nn=N(Ln.prototype,"selectedSize",[Se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pn=N(Ln.prototype,"showConcatenatedModulesContent",[Se],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0===zn.getItem("showConcatenatedModulesContent")}}),N(Ln.prototype,"hasParsedSizes",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"hasParsedSizes"),Ln.prototype),N(Ln.prototype,"activeSize",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"activeSize"),Ln.prototype),N(Ln.prototype,"visibleChunks",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"visibleChunks"),Ln.prototype),N(Ln.prototype,"allChunksSelected",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"allChunksSelected"),Ln.prototype),N(Ln.prototype,"totalChunksSize",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"totalChunksSize"),Ln.prototype),N(Ln.prototype,"searchQueryRegexp",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"searchQueryRegexp"),Ln.prototype),N(Ln.prototype,"isSearching",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"isSearching"),Ln.prototype),N(Ln.prototype,"foundModulesByChunk",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"foundModulesByChunk"),Ln.prototype),N(Ln.prototype,"foundModules",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"foundModules"),Ln.prototype),N(Ln.prototype,"hasFoundModules",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"hasFoundModules"),Ln.prototype),N(Ln.prototype,"hasConcatenatedModules",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"hasConcatenatedModules"),Ln.prototype),N(Ln.prototype,"foundModulesSize",[ze],Object.getOwnPropertyDescriptor(Ln.prototype,"foundModulesSize"),Ln.prototype),Ln);var Rn,Gn,Un,Hn=n(6755),Vn=n.n(Hn),qn=0,Wn=[],Zn=e.__b,$n=e.__r,Kn=e.diffed,Yn=e.__c,Jn=e.unmount;function Xn(t,n){e.__h&&e.__h(Gn,t,qn||n),qn=0;var r=Gn.__H||(Gn.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Qn(e){return qn=1,er(lr,e)}function er(e,t,n){var r=Xn(Rn++,2);return r.t=e,r.__c||(r.__=[n?n(t):lr(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Gn),r.__}function tr(t,n){var r=Xn(Rn++,4);!e.__s&&ur(r.__H,n)&&(r.__=t,r.__H=n,Gn.__h.push(r))}function nr(e,t){var n=Xn(Rn++,7);return ur(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function rr(e,t){return qn=8,nr((function(){return e}),t)}function ir(){Wn.forEach((function(n){if(n.__P)try{n.__H.__h.forEach(ar),n.__H.__h.forEach(sr),n.__H.__h=[]}catch(t){n.__H.__h=[],e.__e(t,n.__v)}})),Wn=[]}e.__b=function(e){Gn=null,Zn&&Zn(e)},e.__r=function(e){$n&&$n(e),Rn=0;var t=(Gn=e.__c).__H;t&&(t.__h.forEach(ar),t.__h.forEach(sr),t.__h=[])},e.diffed=function(t){Kn&&Kn(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==Wn.push(n)&&Un===e.requestAnimationFrame||((Un=e.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),or&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);or&&(t=requestAnimationFrame(n))})(ir)),Gn=void 0},e.__c=function(t,n){n.some((function(t){try{t.__h.forEach(ar),t.__h=t.__h.filter((function(e){return!e.__||sr(e)}))}catch(a){n.some((function(e){e.__h&&(e.__h=[])})),n=[],e.__e(a,t.__v)}})),Yn&&Yn(t,n)},e.unmount=function(t){Jn&&Jn(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(ar)}catch(t){e.__e(t,n.__v)}};var or="function"==typeof requestAnimationFrame;function ar(e){var t=Gn;"function"==typeof e.__c&&e.__c(),Gn=t}function sr(e){var t=Gn;e.__c=e.__(),Gn=t}function ur(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function lr(e,t){return"function"==typeof t?t(e):t}function cr(e,t){for(var n in t)e[n]=t[n];return e}function hr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function fr(e){this.props=e}function dr(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:hr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(fr.prototype=new p).isPureReactComponent=!0,fr.prototype.shouldComponentUpdate=function(e,t){return hr(this.props,e)||hr(this.state,t)};var pr=e.__b;e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pr&&pr(e)};var gr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function br(e){function t(t,n){var r=cr({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=gr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var vr=function(e,t){return null==e?null:_(_(e).map(t))},mr={map:vr,forEach:vr,count:function(e){return e?_(e).length:0},only:function(e){var t=_(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:_},yr=e.__e;e.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);yr(e,t,n)};var Cr=e.unmount;function _r(){this.__u=0,this.t=null,this.__b=null}function wr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function xr(){this.u=null,this.o=null}e.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Cr&&Cr(e)},(_r.prototype=new p).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=wr(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},_r.prototype.componentWillUnmount=function(){this.t=[]},_r.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=cr({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&h(d,null,e.fallback);return i&&(i.__h=null),[h(d,null,t.__e?null:e.children),i]};var Ar=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),B(h(Sr,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(xr.prototype=new p).__e=function(e){var t=this,n=wr(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ar(t,e,r)):i()};n?n(o):o()}},xr.prototype.render=function(e){this.u=null,this.o=new Map;var t=_(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},xr.prototype.componentDidUpdate=xr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ar(e,n,t)}))};var Tr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,kr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,zr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};p.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(p.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Dr=e.event;function jr(){}function Lr(){return this.cancelBubble}function Br(){return this.defaultPrevented}e.event=function(e){return Dr&&(e=Dr(e)),e.persist=jr,e.isPropagationStopped=Lr,e.isDefaultPrevented=Br,e.nativeEvent=e};var Er,Or={configurable:!0,get:function(){return this.class}},Ir=e.vnode;e.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var i in r={},n){var o=n[i];"value"===i&&"defaultValue"in n&&null==o||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===o?o="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!zr(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():kr.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[i]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=_(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=_(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(Or.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Or)),e.$$typeof=Tr,Ir&&Ir(e)};var Nr=e.__r;e.__r=function(e){Nr&&Nr(e),Er=e.__c};var Pr={ReactCurrentDispatcher:{current:{readContext:function(e){return Er.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function Fr(e){return!!e&&e.$$typeof===Tr}var Rr=function(e,t){return e(t)};const Gr={useState:Qn,useReducer:er,useEffect:function(t,n){var r=Xn(Rn++,3);!e.__s&&ur(r.__H,n)&&(r.__=t,r.__H=n,Gn.__H.__h.push(r))},useLayoutEffect:tr,useRef:function(e){return qn=5,nr((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){qn=6,tr((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:nr,useCallback:rr,useContext:function(e){var t=Gn.context[e.__c],n=Xn(Rn++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(Gn)),t.props.value):e.__},useDebugValue:function(t,n){e.useDebugValue&&e.useDebugValue(n?n(t):t)},version:"16.8.0",Children:mr,render:function(e,t,n){return null==t.__k&&(t.textContent=""),B(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return E(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(B(null,e),!0)},createPortal:function(e,t){return h(Mr,{__v:e,i:t})},createElement:h,createContext:function(e,t){var n={__c:t="__cC"+o++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(v)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return h.bind(null,e)},cloneElement:function(e){return Fr(e)?O.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:d,isValidElement:Fr,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:p,PureComponent:fr,memo:dr,forwardRef:br,unstable_batchedUpdates:Rr,StrictMode:d,Suspense:_r,SuspenseList:xr,lazy:function(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,i)}return i.displayName="Lazy",i.__f=!0,i},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pr};if(!Qn)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ct)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var Ur=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Hr(){var e=Ur(Qn(0),2)[1];return rr((function(){e((function(e){return e+1}))}),[])}var Vr={};var qr,Wr=(qr="observerBatching","function"==typeof Symbol?Symbol.for(qr):"__$mobx-react "+qr+"__");function Zr(e){e()}var $r=!1;function Kr(){return $r}function Yr(e){return Ot(e)}var Jr,Xr=1e4,Qr=new Set;function ei(){void 0===Jr&&(Jr=setTimeout(ti,1e4))}function ti(){Jr=void 0;var e=Date.now();Qr.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,Qr.delete(t))})),Qr.size>0&&ei()}var ni=!1,ri=[];var ii={};function oi(e){return"observer"+e}function ai(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=ii),Kr())return e();var r,i=function(e){return function(){ni?ri.push(e):e()}}((n.useForceUpdate||Hr)()),o=Gr.useRef(null);if(!o.current){var a=new pt(oi(t),(function(){s.mounted?i():(a.dispose(),o.current=null)})),s=function(e){return{cleanAt:Date.now()+Xr,reaction:e}}(a);o.current=s,r=o,Qr.add(r),ei()}var l=o.current.reaction;return Gr.useDebugValue(l,Yr),Gr.useEffect((function(){var e;return e=o,Qr.delete(e),o.current?o.current.mounted=!0:(o.current={reaction:new pt(oi(t),(function(){i()})),cleanAt:1/0},i()),function(){o.current.reaction.dispose(),o.current=null}}),[]),function(e){ni=!0,ri=[];try{var t=e();ni=!1;var n=ri.length>0?ri:void 0;return Gr.useLayoutEffect((function(){n&&n.forEach((function(e){return e()}))}),[n]),t}finally{ni=!1}}((function(){var t,n;if(l.track((function(){try{t=e()}catch(u){n=u}})),n)throw n;return t}))}var si=function(){return(si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2?r-2:0),o=2;o"}function ji(e){var t=this;if(!0===Kr())return e.call(this);vi(this,Ti,!1),vi(this,ki,!1);var n=Di(this),r=e.bind(this),i=!1,o=new pt(n+".render()",(function(){if(!i&&(i=!0,!0!==t[Mi])){var e=!0;try{vi(t,ki,!0),t[Ti]||p.prototype.forceUpdate.call(t),e=!1}finally{vi(t,ki,!1),e&&o.dispose()}}}));function a(){i=!1;var e=void 0,t=void 0;if(o.track((function(){try{t=function(e,t){const n=Ke(e);let r;try{r=t()}finally{Ye(n)}return r}(!1,r)}catch(u){e=u}})),e)throw e;return t}return o.reactComponent=this,a[Ai]=o,this.render=a,a.call(this)}function Li(e,t){return Kr()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!gi(this.props,e)}function Bi(e,t){var n=pi("reactProp_"+t+"_valueHolder"),r=pi("reactProp_"+t+"_atomHolder");function i(){return this[r]||vi(this,r,ie("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return Ge&&Ue&&(e=Ge(!0)),i.call(this).reportObserved(),Ge&&Ue&&Ue(e),this[n]},set:function(e){this[ki]||gi(this[n],e)?vi(this,n,e):(vi(this,n,e),vi(this,Ti,!0),i.call(this).reportChanged(),vi(this,Ti,!1))}})}var Ei="function"==typeof Symbol&&Symbol.for,Oi=Ei?Symbol.for("react.forward_ref"):br((function(e){return null})).$$typeof,Ii=Ei?Symbol.for("react.memo"):dr((function(e){return null})).$$typeof;function Ni(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Ii&&e.$$typeof===Ii)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(Oi&&e.$$typeof===Oi){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return br((function(){var e=arguments;return h(ci,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(p,e)?zi(e):ui(e)}if(!p)throw new Error("mobx-react requires React to be available");if(!Se)throw new Error("mobx-react requires mobx to be available"); /** * Carrot Search FoamTree HTML5 (demo variant) * v3.5.0, bugfix/3.5.x/e3b91c8e, build FOAMTREE-SOFTWARE5-DIST-3, Jan 18, 2021 * * Carrot Search confidential. * Copyright 2002-2021, Carrot Search s.c, All Rights Reserved. */ !function(){var e,t=function(){var e=window.navigator.userAgent;try{window.localStorage.setItem("ftap5caavc","ftap5caavc"),window.localStorage.removeItem("ftap5caavc");var n=!0}catch(r){n=!1}return{Se:function(){return/webkit/i.test(e)},Lh:function(){return/Mac/.test(e)},Qe:function(){return/iPad|iPod|iPhone/.test(e)},Kh:function(){return/Android/.test(e)},Gh:function(){return"ontouchstart"in window||!!window.DocumentTouch&&document instanceof window.DocumentTouch},Fh:function(){return n},Eh:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},md:function(e,n){return[].forEach&&t.Eh()?e&&e():n&&n()}}}(),n=function(){function e(){return window.performance&&(window.performance.now||window.performance.mozNow||window.performance.msNow||window.performance.oNow||window.performance.webkitNow)||Date.now}var t=e();return{create:function(){return{now:function(){var t=e();return function(){return t.call(window.performance)}}()}},now:function(){return t.call(window.performance)}}}();function r(){function r(){if(!u)throw"AF0";var e=n.now();0!==l&&(o.sd=e-l),l=e,s=s.filter((function(e){return null!==e})),o.frames++;for(var t=0;t=r.repeat&&(s[t]=null)))}s=s.filter((function(e){return null!==e})),u=!1,i(),0!==(e=n.now()-e)&&(o.rd=e),o.totalTime+=e,o.ue=1e3*o.frames/o.totalTime,l=0===s.length?0:n.now()}function i(){0n?16-n:0)}}(),s=[],u=!1,l=0;this.repeat=function(e,t,n){this.cancel(e),s.push({ee:e,context:n,repeat:t}),i()},this.once=function(e,t){this.repeat(e,1,t)},this.cancel=function(e){for(var t=0;t=a;a++)u=2*a*Math.PI/6,l.push({x:100*Math.sin(u),y:100*Math.cos(u)});a={polygonPlainFill:[t,function(e){e.fillStyle="rgb(255, 0, 0)",e.fill()}],polygonPlainStroke:[t,function(e){e.strokeStyle="rgb(128, 0, 0)",e.lineWidth=2,e.closePath(),e.stroke()}],polygonGradientFill:[t,function(e){var t=e.createRadialGradient(0,0,10,0,0,60);t.addColorStop(0,"rgb(255, 0, 0)"),t.addColorStop(1,"rgb(255, 255, 0)"),e.fillStyle=t,e.fill()}],polygonGradientStroke:[t,function(e){var t=e.createLinearGradient(-100,-100,100,100);t.addColorStop(0,"rgb(224, 0, 0)"),t.addColorStop(1,"rgb(32, 0, 0)"),e.strokeStyle=t,e.lineWidth=2,e.closePath(),e.stroke()}],polygonExposureShadow:[t,function(e){e.shadowBlur=50,e.shadowColor="rgba(0, 0, 0, 1)",e.fillStyle="rgba(0, 0, 0, 1)",e.globalCompositeOperation="source-over",e.fill(),e.shadowBlur=0,e.shadowColor="transparent",e.globalCompositeOperation="destination-out",e.fill()}],labelPlainFill:[function(e){e.fillStyle="#000",e.font="24px sans-serif",e.textAlign="center"},function(e){e.fillText("Some text",0,-16),e.fillText("for testing purposes",0,16)}]},u=100/Object.keys(a).length;var c,h=n.now(),f={};for(c in a){var d=a[c],p=n.now(),g=0;do{i.save(),i.translate(Math.random()*o,Math.random()*r);var b=3*Math.random()+.5;for(i.scale(b,b),b=0;bMath.abs(l))&&(u.x=((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/l,u.y=((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/l,!0)}var i,o,a=1,s={x:0,y:0},u=1,l=1,c=1,h={x:0,y:0},f=1,d={x:0,y:0},p={x:0,y:0},g={x:0,y:0},b={x:0,y:0,w:0,o:0},v={x:0,y:0,w:0,o:0,scale:1},m=!0;e.j.subscribe("stage:initialized",(function(e,t,n,r){i=n,o=r,b.x=0,b.y=0,b.w=n,b.o=r,v.x=0,v.y=0,v.w=n,v.o=r,v.scale=1})),e.j.subscribe("stage:resized",(function(e,t,n,r){function a(e){e.x*=l,e.y*=c}function u(e){a(e),e.w*=l,e.o*=c}i=n,o=r;var l=n/e,c=r/t;a(s),a(d),a(h),a(p),a(g),u(b),u(v)})),this.Nb=function(e,r){return t(r,(function(){n(e,h)}),!0)},this.ga=function(e,n){if(1==Math.round(1e4*n)/1e4){n=b.x-d.x;var i=b.y-d.y;return t(1,(function(){}),!0),this.i(-n,-i)}return t(n,(function(){for(var t=!1;!t;){t=Math.random();var n=Math.random(),i=Math.random(),o=Math.random();t=r(e.x+t*e.w,e.y+n*e.o,b.x+t*b.w,b.y+n*b.o,e.x+i*e.w,e.y+o*e.o,b.x+i*b.w,b.y+o*b.o,h)}}),!0)},this.ic=function(e,n){var a=e.w/e.o,s=i/o;if(as?(u=e.w,l=e.w*o/i,a=e.x,s=e.y-.5*(l-e.o)):(a=e.x,s=e.y,u=e.w,l=e.o);return a-=u*n,u*=1+2*n,r(a,s-=l*n,d.x,d.y,a+u,s,d.x+i/f,d.y,h)?t(i/f/u,y.qa,!1):(m=!1,this.i(f*(d.x-a),f*(d.y-s)))},this.i=function(e,t){return e=Math.round(1e4*e)/1e4,t=Math.round(1e4*t)/1e4,g.x+=e/f,g.y+=t/f,0!==e||0!==t},this.reset=function(e){return e&&this.content(0,0,i,o),this.ga({x:b.x+d.x,y:b.y+d.y,w:b.w/f,o:b.o/f},c/u)},this.Fb=function(e){c=Math.min(1,Math.round(1e4*(e||u))/1e4)},this.u=function(){return d.xb.x+b.w?-(d.x+i/f-b.x-b.w)*f:0},this.H=function(){return d.yb.y+b.o?-(d.y+o/f-b.y-b.o)*f:0},this.update=function(e){var t=Math.abs(Math.log(l));6>t?t=2:(t/=4,t+=3*t*(1n&&(n+=1),1n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,t,n){return Math.sqrt(e*e*.241+t*t*.691+n*n*.068)/255}if("rgb"==e.model||"rgba"==e.model)return n(e.r,e.g,e.b);var r=e.l/100,i=e.s/100,o=e.h/360;if(0==e.zj)r=e=o=r;else{var a=2*r-(i=.5>r?r*(1+i):r+i-r*i);r=t(a,i,o+1/3),e=t(a,i,o),o=t(a,i,o-1/3)}return n(255*r,255*e,255*o)},this.wa=function(e){if(y.Ac(e))return e;if(!y.wb(e))return"#000";switch(e.model){case"hsla":return c.sa(e);case"hsl":return c.H(e);case"rgba":return c.ua(e);case"rgb":return c.ta(e);default:return"#000"}},this.ua=function(e){return"rgba("+(.5+e.r|0)+","+(.5+e.g|0)+","+(.5+e.b|0)+","+e.a+")"},this.ta=function(e){return"rgba("+(.5+e.r|0)+","+(.5+e.g|0)+","+(.5+e.b|0)+")"},this.sa=function(e){return"hsla("+(.5+e.h|0)+","+(.5+e.s|0)+"%,"+(.5+e.l|0)+"%,"+e.a+")"},this.H=function(e){return"hsl("+(.5+e.h|0)+","+(.5+e.s|0)+"%,"+(.5+e.l|0)+"%)"},this.i=function(e,t,n){return"hsl("+(.5+e|0)+","+(.5+t|0)+"%,"+(.5+n|0)+"%)"}};function h(){var e,t=!1,n=[],r=this,i=new function(){this.then=function(i){return i&&(t?i.apply(r,e):n.push(i)),this},this.Fg=function(e){return r=e,{then:this.then}}};this.resolve=function(){e=arguments;for(var i=0;iM.i(x,n)&&(window.clearTimeout(w),r(t,s),C=!0)}),400)}}))),o.addEventListener("mouseup",(function(e){var t=r(e,l);S&&(T&&r(e,v),window.clearTimeout(y),C||T||!n(e)||(t={x:t.x,y:t.y},_&&100>M.i(t,_)?r(e,c):r(e,a),_=t,w=window.setTimeout((function(){_=null}),350)),T=S=!1)})),o.addEventListener("mousemove",(function(e){var t=i(e,{});n(e)&&r(e,h,{type:"move"}),x.x=t.x,x.y=t.y,S&&!T&&100(t*=2)?.5*Math.pow(t,e):1-.5*Math.abs(Math.pow(2-t,e))}}function r(e){return function(t){for(var n=0;ne-t&&-1e-6e}}function r(e,t,n){this.Xa=n,this.gb=function(){return e.call(t),!1}}function i(e){var t;this.before=function(n,r){t=r+e},this.gb=function(e,n){return n=(r=a*l-n*t)&&-1e-12<=r)&&(n=((s-=o)*l-n*(u-=e))/r,0<=(r=(s*t-a*u)/r)&&(i||1>=r)&&0<=n&&1>=n))return{x:o+a*n,y:e+t*n}},this.Lb=function(e,t,n,r){var i=e.x;e=e.y;var o=t.x-i;t=t.y-e;var a=n.x;n=n.y;var s=r.x-a,u=o*(r=r.y-n)-s*t;if(!(1e-12>=u&&-1e-12<=u)&&(0<=(r=((a-i)*r-s*(n-e))/u)&&1>=r))return{x:i+o*r,y:e+t*r}},this.wa=function(e,n,r){var i=M.u(n,{}),o=M.u(r,{}),a=o.x-i.x,s=o.y-i.y,u=[];for(o=0;o(t.y-r.y)*(i.x-r.x)-(t.x-r.x)*(i.y-r.y))return!1}return!0},this.Vc=function(e,t,n){var r=e.x,i=t.x;if(e.x>t.x&&(r=t.x,i=e.x),i>n.x+n.w&&(i=n.x+n.w),ri)return!1;var o=e.y,a=t.y,s=t.x-e.x;return 1e-7a&&(r=a,a=o,o=r),a>n.y+n.o&&(a=n.y+n.o),oa?-1:0r?-1:0a*(f.x-i.x)+l*(f.y-i.y)+o*(f.z-i.z)&&e.add(t,f)}for(h=(n=r.Ya).length,s=0;sa*(f.x-i.x)+l*(f.y-i.y)+o*(f.z-i.z)&&e.add(t,f)}var a,s,u=r.length;for(a=0;al*e.x+c*e.y+o*e.z?new t(e,n,r):new t(r,n,e)}function i(e,t,n,r){function i(e,t,n){return(e=e.la)[((t=e[0]==t?0:e[1]==t?1:2)+1)%3]!=n?(t+2)%3:t}t.J[i(t,n,r)]=e,e.J[i(e,r,n)]=t}if(4>u)return 0;var o=r[0],a=r[1],s=r[2],l=r[3],h=n(o,a,s,l),f=n(o,s,l,a),d=n(o,a,l,s),p=n(a,s,l,o);for(i(h,f,s,o),i(h,d,o,a),i(h,p,a,s),i(f,d,l,o),i(f,p,s,l),i(d,p,l,a),c.push(h,f,d,p),o=4;os;s++)h=(l=c[s]).la[0],0>(f=l.Ha).x*(a.x-h.x)+f.y*(a.y-h.y)+f.z*(a.z-h.z)&&e.add(l,a);return 4}())){for(;ls;s++)if(!0===d[s].visible){var p=f,g=s;break e}}}f=[],d=[];var b=p,v=g;do{if(f.push(b),d.push(v),v=(v+1)%3,!1===b.J[v].visible)do{for(a=b.la[v],b=b.J[v],s=0;3>s;s++)b.la[s]==a&&(v=s)}while(!1===b.J[v].visible&&(b!==p||v!==g))}while(b!==p||v!==g);var m=null,y=null;for(a=0;aMath.abs(u)))return{x:((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/u,y:((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/u}}return this.i=function(t,n){for(var r=t[0],i=r.x,o=r.y,a=r.x,s=r.y,u=t.length-1;0(u.x-s.x)*(l.y-s.y)-(l.x-s.x)*(u.y-s.y)))){r=void 0;break e}}i.shift(),r=3>i.length?void 0:i}if(!r)e:{for(i=t.slice(0),r=0;r=g&&-1e-12<=g&&(g=0),d.push(g),0g&&(c=!1)}if(f)i=[];else if(!c){for(p=[],u=0;uc||0>f&&0i.length){r=void 0;break e}}r=i}return r}},this},z=new function(){function e(e){for(var t=e[0].x,n=e[0].y,r=t,i=n,o=1;oi.Ha.z))for(var o=i.J,a=0;as.Ha.z)){var u=i.la,l=u[(a+1)%3].index;u=u[a].index,2c.C.length&&(c.C=null,c.J=null)}}},this.u=function(t,n){var r,i=!1,o=t.length;for(r=0;r(c=M.i(u,l))&&(d=c,s=l);u.wj=s,u.Ze=Math.sqrt(d)}for(r=0;rr&&(r=o,e=i);return e;default:for(i=n[0],r=o=M.i(e,i),t=n.length-1;1<=t;t--){var a=n[t];(o=M.i(e,a))e.lineHeight&&(e.lineHeight=1),e=b.fontFamily;var v=b.fontStyle+" "+b.fontVariant+" "+b.fontWeight,m=b.hb,C=b.Gc,_=v+" "+e;b.te=_;var w={ka:!1,bc:0,fontSize:0};if(i.save(),i.font=v+" 100px "+e,i.textBaseline="middle",i.textAlign="center",function(e,t){t=t.te;var n=s[t];void 0===n&&(n={},s[t]=n),n[" "]=e.measureText(" ").width,n["…"]=e.measureText("…").width}(i,b),u=u.trim(),h.text=u,function(e,t,n,r){for(var i,o,a=0;at&&(S=t),M>>1;for(r=0;r=(c=Math.min(f,c*n.F.o)))){f=r,i=Math.min(i,c),d=Math.min(1,c/Math.max(20,t.Tc.length));do{var b=(f+i)/2,v=Math.min(h.length,Math.floor((c+b*(u-1-2*l))/(b*u))),m=void 0;if(0C)break}void 0!==m?f=g=b:i=b}while(i-f>d);return void 0===g?(s.ka=!1,s.fontSize=0):(s.ka=!0,s.fontSize=g,s.bc=p,s.Ub=a&&b===f),s}s.ka=!1}function o(e,t,n,r,i,o,a,h){var f=e.cb,d=r*(e.lineHeight-1),p=Math.max(e.Ua,.001),g=s[e.te],b=t.Tc;t=t.Qf;var v=i.C,m=i.cd,y=i.Xe,C=i.Ye;switch(e.verticalAlign){case"top":i=m.y+r/2+r*p;var _=1;break;case"bottom":i=m.y-(r*n+d*(n-1))+r/2-r*p,_=-1;break;default:i=m.y-(r*(n-1)/2+d*(n-1)/2),_=1}for(e=i,p=0;p=n-f&&"\n"!=v)m+=w," "===A&&(m+=x),a&&a(i,v);else{if(w>y&&(f!==n-1||!o))return!1;if(f+1>=n)return!!o&&(((n=y-m-_)>_||w>_)&&(0<(n=Math.floor(i.length*n/w))&&a&&a(i.substring(0,n),v)),a&&a("…",void 0),h&&h(f,e,i,v,m),!0);if(f++,h&&h(f,e,i,v,m),e+=r,e+=d,m=w," "===A&&(m+=x),w>(y=c[f])&&(f!==n||!o))return!1}v=A}return h&&h(f,e,void 0,void 0,m),!0}var a={hb:72,Gc:0,lineHeight:1.05,cb:1,Ua:.5,ib:.9,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",verticalAlign:"center"},s={},u=[],l=[],c=[],h={text:"",Tc:void 0,Qf:void 0},f={C:void 0,F:void 0,cd:void 0,Xe:0,Ye:0};return{re:e,de:function(t,n,r,i,o,a,s,u,l,c,h,f){var d=0,p=0;if(r=r.toString().trim(),!f&&l.result&&r===l.Xf&&Math.abs(c-l.Zd)/c<=h){var g=l.result;g.ka&&(d=a.x-l.eg,p=a.y-l.fg,h=l.Qc,n.save(),n.translate(d,p),h.Na(n),n.restore())}return g||((h=l.Qc).clear(),(g=e(t,h,r,i,o,a,s,u)).ka&&h.Na(n),l.Zd=c,l.eg=a.x,l.fg=a.y,l.result=g,l.Xf=r),g.ka?{ka:!0,bc:g.bc,fontSize:g.fontSize,box:{x:g.box.x+d,y:g.box.y+p,w:g.box.w,o:g.box.o},Ub:g.Ub}:{ka:!1}},Zh:function(){return{Zd:0,eg:0,fg:0,result:void 0,Qc:new i,Xf:void 0}},ya:a}}(),L=new function(){function e(e,t){return function(r,i,o,a){function s(e,t,n,r,i){e.C=[{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i},{x:t,y:n+i}]}var u=i.x,l=i.y,c=i.w;if(i=i.o,0!=r.length)if(1==r.length)r[0].x=u+c/2,r[0].y=l+i/2,r[0].nd=0,o&&s(r[0],u,l,c,i);else{r=r.slice(0);for(var h=0,f=0;f=(u=y.I(l.weight,1))){if(!e.Wi)continue;u=.9*o}(l=n(l,!0)).weight=u,l.index=a,l.parent=t,l.level=t.level+1,t.m.push(l),a++}}function n(e,t){var n=new ee;return r(e),n.id=e.__id,n.group=e,t&&(l[e.__id]=n),n}function r(e){y.has(e,"__id")||(Object.defineProperty(e,"__id",{enumerable:!1,configurable:!1,writable:!1,value:u}),u++)}function i(e){for(var t=Number.MAX_VALUE,n=0;nr&&(t=r)}return t===Number.MAX_VALUE&&(t=1),t}function o(e){if(!e.empty()){var t,n=0;for(t=(e=e.m).length-1;0<=t;t--){var r=e[t].weight;nt.weight?-1:e.index-t.index}));for(var t=0;te?1-A.Ch/100*e:1,t.saturation=0>e?1-A.Dh/100*e:1,t.ca=0>e?1+.5*e:1}function n(e){return e=e.ja,Math.max(.001,0===e?1:1+e*(A.Pa-1))}function r(t,n,r,u){var l=o();if(0===t.length&&!l)return(new h).resolve().promise();var v=t.reduce((function(e,t){return e[t.id]=!0,e}),{}),y=[];if(t=[],C.reduce((function(e,t){return e||v[t.id]&&(!t.U||1!==t.ja)||!v[t.id]&&!t.parent.U&&(t.U||-1!==t.ja)}),!1)){var M=[],T={};C.forEach((function(e){v[e.id]&&(e.U||y.push(e),e.U=!0,S.za(e,(function(e){M.push(a(e,1)),T[e.id]=!0})))})),0n&&U(r,e)&&(t=r,n=r.scale)})),t}(h);c&&(c=f?f.group:null,h=f?f.Jb(h,i):h,o.Db=void 0,s=s({type:e,group:c,topmostClosedGroup:c,bottommostOpenGroup:d?d.group:null,x:o.x,y:o.y,xAbsolute:h.x,yAbsolute:h.y,scale:y.I(o.scale,1),secondary:o.lb,touches:y.I(o.touches,1),delta:y.I(o.ed,0),ctrlKey:o.ctrlKey,metaKey:o.metaKey,altKey:o.altKey,shiftKey:o.shiftKey,preventDefault:function(){l=!0},preventOriginalEventDefault:function(){o.Db="prevent"},allowOriginalEventDefault:function(){o.Db="allow"}}),l=l||0<=s.indexOf(!1),f&&f.attribution&&"click"===e&&(l=!1)),l||n&&n({dd:f,ug:d},o)}}function a(e,t){if("flattened"===N.mb)e=function(e){function t(e,n){var r=n.m;if(r){for(var i,o=-Number.MAX_VALUE,a=0;ao&&(i=s,o=s.scale)}var u;return i&&(u=t(e,i)),u||i||n}return n}for(var n=E.length,r=E[0].scale,i=E[0].scale,o=0;oi&&(i=a)}if(r!==i)for(o=0;ot&&!1===o.open&&o.Y&&U(o,e)&&(r=o,t=o.scale)}e=r}return e&&e.description&&(e=e.parent),e}var s,u,l,c,h,f,d,p,C,_,w,A,T,k,z,D,j,L,B,E,O=t.Lh(),I=this,N=e.options,P=!1;e.j.subscribe("stage:initialized",(function(t,n,r,i){s=n,L=r,B=i,function(){function t(e){return function(t){return t.x*=L/s.clientWidth,t.y*=B/s.clientHeight,e(t)}}"external"!==N.Me&&("hammerjs"===N.Me&&y.has(window,"Hammer")&&(G.M(s),G.A("tap",t(I.i),!0),G.A("doubletap",t(I.u),!0),G.A("hold",t(I.sa),!0),G.A("touch",t(I.ua),!0),G.A("release",t(I.wa),!1),G.A("dragstart",t(I.ga),!0),G.A("drag",t(I.H),!0),G.A("dragend",t(I.T),!0),G.A("transformstart",t(I.pb),!0),G.A("transform",t(I.transform),!0),G.A("transformend",t(I.Ka),!0)),D=new v(s),j=new b,D.i(t(I.i)),D.u(t(I.u)),D.sa(t(I.sa)),D.wa(t(I.ua)),D.Ka(t(I.wa)),D.ga(t(I.ga)),D.H(t(I.H)),D.T(t(I.T)),D.ta(t(I.ta)),D.Ja(t(I.ta)),D.ua(t(I.Ja)),j.addEventListener("keyup",(function(t){var n=!1,r=void 0,i=N.xf({keyCode:t.keyCode,preventDefault:function(){n=!0},preventOriginalEventDefault:function(){r="prevent"},allowOriginalEventDefault:function(){r="allow"}});"prevent"===r&&t.preventDefault(),(n=n||0<=i.indexOf(!1))||27===t.keyCode&&e.j.D("interaction:reset")})))}()})),e.j.subscribe("stage:resized",(function(e,t,n,r){L=n,B=r})),e.j.subscribe("stage:disposed",(function(){D.Za(),G.Za(),j.i()})),e.j.subscribe("expose:initialized",(function(e){c=e})),e.j.subscribe("zoom:initialized",(function(e){u=e})),e.j.subscribe("openclose:initialized",(function(e){h=e})),e.j.subscribe("select:initialized",(function(e){f=e})),e.j.subscribe("titlebar:initialized",(function(e){d=e})),e.j.subscribe("timeline:initialized",(function(e){l=e})),e.j.subscribe("model:loaded",(function(e,t){p=e,E=t})),e.j.subscribe("model:childrenAttached",(function(e){E=e})),this.M=function(){},this.ua=i(o("mousedown",!1,(function(){u.Wh()}))),this.wa=i(o("mouseup",!1,void 0)),this.i=i(o("click",!0,(function(e,t){t.lb||t.shiftKey||!(e=e.dd)||(e.attribution?t.ctrlKey?document.location.href=x("iuuqr;..b`ssnurd`sbi/bnl.gn`lusdd"):(t=m.ia(N.Kb),e.be?(u.reset(N.ob,t),e.be=!1):(u.bg(e,N.Yb,N.ob,t),e.be=!0)):f.select({m:[e],Ca:!e.selected,Ba:t.metaKey||t.ctrlKey},!0))}))),this.u=i(o("doubleclick",!0,(function(t,n){var r=t.dd;r&&r.attribution||(n.lb||n.shiftKey?r&&(r.parent.U&&(r=r.parent),t={m:r.parent!==p?[r.parent]:[],Ca:!0,Ba:!1},f.select(t,!0),c.Vb(t,!0,!0,!1)):r&&(t={m:[r],Ca:!0,Ba:!1},r.Va=!0,e.j.D("foamtree:attachChildren",[r]),c.Vb(t,!0,!0,!1)),r&&l.K.A({}).wait(N.Oa/2).call((function(){h.Bb({m:S.uc(p,(function(e){return e.Bd&&!S.Jh(r,e)})),Ca:!1,Ba:!0},!0,!0),r.Bd=!0,h.Bb({m:[r],Ca:!(n.lb||n.shiftKey),Ba:!0},!0,!0)})).start())}))),this.sa=i(o("hold",!0,(function(e,t){(e=(t=!(t.metaKey||t.ctrlKey||t.shiftKey||t.lb))?e.dd:e.ug)&&e!==p&&h.Bb({m:[e],Ca:t,Ba:!0},!0,!1)}))),this.ga=i(o("dragstart",!1,(function(e,t){C=t.x,_=t.y,w=Date.now(),P=!0}))),this.H=i(o("drag",!1,(function(e,t){if(P){e=Date.now(),k=Math.min(1,e-w),w=e,e=t.x-C;var n=t.y-_;u.Uh(e,n),A=e,T=n,C=t.x,_=t.y}}))),this.T=i(o("dragend",!1,(function(){if(P){P=!1;var e=Math.sqrt(A*A+T*T)/k;4<=e?u.Vh(e,A,T):u.$e()}}))),this.pb=i(o("transformstart",!1,(function(e,t){z=1,C=t.x,_=t.y})));var F=1,R=!1;this.transform=i(o("transform",!1,(function(e,t){e=t.scale-.01,u.pg(t,e/z,t.x-C,t.y-_),z=e,C=t.x,_=t.y,F=z,R=R||2F?e.j.D("interaction:reset"):r(),R=!1}))),this.Ja=i(o("mousewheel",!1,function(){var e=y.yg((function(){r()}),300);return function(t,n){1!==(t=N.ij)&&(t=Math.pow(t,n.ed),O?(u.qg(n,t),e()):u.Nb(n,t,N.ob,m.ia(N.Kb)).then(r))}}())),this.ta=i(function(){var t,n=void 0,r={},i=!1,s=o("hover",!1,(function(){n&&(n.ub=!1,0=Math.max(n.Be,5e-5)},this.gd=function(e,t){var r=Math.pow(n.La,e.level),i=n.$a*r;r*=n.jd;for(var o=(e=e.m).length-1;0<=o;o--){var s=e[o];a.ce(s,r);var u=s;u.$=0e}function s(e){var t=c.Sb/(1+c.Sb),n=M.F(e.G,{}),r={x:n.x,y:0},i=n.y,o=n.o,a=c.ie*Math.pow(c.La,e.level-1),s=o*c.he,u=c.qc;"bottom"==u||0<=u&&180>u?(u=Math.PI,i+=o,o=-1):(u=0,o=1);var l=e.G,h=u,f=0,d=1,p=M.u(l,{}),g=p.ha;t*=g;for(var b=0;fb++;){var v=(f+d)/2;r.y=n.y+n.o*v;var m=M.ua(l,r,h);M.u(m[0],p);var y=p.ha-t;if(.01>=Math.abs(y)/g)break;0<(0==h?1:-1)*y?d=v:f=v}M.F(m[0],n),(n.os)&&(r.y=n.oi.O.ha,l=0;!(a(o(i))||s&&32s?(i.o=o-n,e.G=M.H(i),i.y+=o-n,i.o=n,t()):(i.o=n,t(),i.y+=n,i.o=o-n,e.G=M.H(i))}(e)}else t=e.m;a.ac&&t.sort(te),"floating"==a.Tb&&i(t,a.qc,(function(e){return e.description})),i(t,a.$d,(function(e){return e.attribution}));var n=M.F(e.G,{});(s[a.Dc]||L.i)(t,n,!0,a.Ld),e.Ea=!1,e.Z=!0,e.N=!0,e.Fa=!0}function i(e,t,n){for(var r=0;rt?e.unshift(i):e.push(i);break}}}var o,a=e.options,s={squarified:L.u,ordered:L.i};e.j.subscribe("model:loaded",(function(e){o=e})),this.step=function(e,t,n){return this.complete(e),t&&a.Ad(1,!0,n),!0},this.complete=function(e){for(var i=[o];0=G&&(b=_,x=T,h())}(i.scale);var o=!1;S.L(I,(function(e){e.W&&(o=e.vd()||o,e.cc(),e.Ma=U.i(e)||e.Ma)})),o&&(I.N=!0);var a="onSurfaceDirty"===V.Lg;S.fd(I,(function(e){e.parent&&e.parent.Z&&(e.aa.clear(),e.Ma=!0,a||(e.oc=!0,e.Qb.clear())),a&&(e.oc=!0,e.Qb.clear())}));var s=i.scale*i.scale;if(S.fd(I,(function(e){if(e.R){for(var t=e.m,n=0;nMath.abs(t.scale-e.scale)&&(e.scale=Math.min(e.scale,t.scale))}})),e(I,0,"flattened"===V.mb?-1:1),r.sort((function(e,t){return e.sb-t.sb})),l())t=r,n=null;else{var u={},c={},f="none"!=V.ld&&V.$ae?0:e}var n=[{type:"fill",na:f("polygonPlainFill"),Pc:function(t,n){n.fillStyle=c.H(e(t))}},{type:"fill",na:f("polygonGradientFill"),Pc:function(n,r){var i=n.O.r,o=e(n);i=r.createRadialGradient(n.x,n.y,0,n.x,n.y,i*V.Qg);var a=o.l,s=V.Og;i.addColorStop(0,c.i((o.h+V.Ng)%360,t(o.s+V.Pg),t(a+s))),a=o.l,s=V.Sg,i.addColorStop(1,c.i((o.h+V.Rg)%360,t(o.s+V.Tg),t(a+s))),n.aa.Na(r),r.fillStyle=i}},{type:"stroke",na:d(f("polygonPlainStroke"),(function(){return 0=V.mh,"auto"===e.pd?!V.je&&e.description?e.fb=e.parent.fb:(t=(n=e.we).h+(n.s<<9)+(n.l<<16),e.hd!==t&&(n=c.T(n),e.fb=n>(0>e.ja?V.Bh:V.ah)?V.bh:V.lh,e.hd=t)):e.fb=e.pd)}},{Ra:["custom"],na:d(f("contentDecoration"),(function(){return V.xc})),before:function(){},after:function(){},rb:function(){},Wa:function(){},kb:function(e,t){!(0u&&(i=u),s.tb=u,s.wc=1}for(t=0;te?0:100l.ja?v*(l.ja+1):v)*(1-l.wc))*r(C,d,p,"l"),S=r(C,d,p,"a");else w=(A=n.pa).h,x=A.s,A=e(A.l,C,s.Bi,s.Ci),S=n.ve.a;_.h=w,_.s=x,_.l=A,_.a=S,w=l.pa,l.attribution?(w.h=0,w.s=0,w.l="light"==s.ae?90:10,w.a=1):(w.h=_.h,w.s=_.s,w.l=_.l,w.a=_.a),b&&!l.attribution&&(u.groupColor=w,u.labelColor="auto",i.nc(g,l,u,(function(e){e.ratio=C})),l.pa=c.u(u.groupColor),l.pa.a=y.has(u.groupColor,"a")?u.groupColor.a:1,"auto"!==u.labelColor&&(l.pd=c.wa(u.labelColor)))}n.Fa=!1}for(o=a.length-1;0<=o;o--)t(a[o])}}(o)},this}function ee(){this.kc=this.Yd=this.hc=this.Vf=this.w=this.cg=this.weight=this.y=this.x=this.id=0,this.C=this.parent=this.m=null,this.F={x:0,y:0,w:0,o:0},this.J=null,this.qd=this.Ue=void 0,this.Sc=!1,this.wc=this.tb=0,this.ve={h:0,s:0,l:0,a:0,model:"hsla"},this.pa={h:0,s:0,l:0,a:0,model:"hsla"},this.we={h:0,s:0,l:0,model:"hsl"},this.hd=-1,this.pd="auto",this.fb="#000",this.Sf=this.level=this.nd=this.index=0,this.attribution=!1,this.ha=this.Ze=0,this.Y=!1,this.$=null,this.O={x:0,y:0,ha:0,r:0},this.Fd=this.G=null,this.Fc=this.W=this.Sa=this.oc=this.Vd=this.Dd=this.Ma=this.Fa=this.N=this.Z=this.Ea=this.xa=this.R=this.Ia=!1,this.saturation=this.va=this.Da=this.ca=this.opacity=this.scale=1,this.ra=0,this.Hd=1,this.Cb=this.ja=this.yb=0,this.description=this.selected=this.ub=this.Bd=this.open=this.U=!1,this.sb=0,this.Te=this.Ed=this.X=!0,this.oa=void 0,this.Cc=!1,this.Bc=new i,this.aa=new i,this.Qb=new i,this.Mh=j.Zh(),this.Ec=0,this.$c=1,this.Jc=-1,this.empty=function(){return!this.m||0===this.m.length};var e=[];this.mc=function(t){e.push(t)},this.Nc=function(t){y.If(e,t)};var t={scale:1};this.vd=function(){var n=!1;this.scale=1;for(var r=0;re.weight?1:t.weight=c||0>=h)){var f=e.Cc?e.oa.fontSize*e.scale*a.scale():0,d={titleBarText:e.qd,titleBarTextColor:u.Zf,titleBarBackgroundColor:u.Yf,titleBarMaxFontSize:u.Wd,titleBarShown:fi/2)?t:i-l+t,w:h,o:c},s=M.H(t),n.fillStyle=u.Yf,n.fillRect(0,e?0:i-l,r,l),n.fillStyle=u.Zf,j.re({fontFamily:u.Zi||u.fh,fontStyle:u.Aj||u.gh,fontWeight:u.Cj||u.ih,fontVariant:u.Bj||u.hh,hb:u.Wd,Gc:u.$i,cb:0,Ua:0,ib:1},n,p,s,t,{x:t.x+t.w/2,y:t.y+t.o/2},!0,!0).ka||n.clearRect(0,0,r,i))}}}}function re(e){function t(e,t,n){return C=!0,u&&u.stop(),c&&c.stop(),a(p.reset(e),t,n).then((function(){C=!1}))}function n(t){p.update(t),f.N=!0,e.j.D("foamtree:dirty",!0)}function r(e,t){return p.i((0!==p.u()?.35:1)*e,(0!==p.H()?.35:1)*t)}function i(){if(1===g.ratio){var e=Math.round(1e4*p.u())/1e4;0!==e&&(b.Id=e,u=d.K.jc(b).fa({duration:500,P:{x:{start:e,end:0,easing:m.Gb}},ba:function(){p.i(b.x-b.Id,0),n(1),b.Id=b.x}}).start())}}function o(){if(1===g.ratio){var e=Math.round(1e4*p.H())/1e4;0!==e&&(v.Jd=e,c=d.K.jc(v).fa({duration:500,P:{y:{start:e,end:0,easing:m.Gb}},ba:function(){p.i(0,v.y-v.Jd),n(1),v.Jd=v.y}}).start())}}function a(e,t,r){return e?d.K.jc(g).fa({duration:void 0===t?700:t,P:{ratio:{start:0,end:1,easing:r||m.Uf}},ba:function(){n(g.ratio)}}).Ta():(new h).resolve().promise()}function s(e){return function(){return C?(new h).resolve().promise():e.apply(this,arguments)}}var u,c,f,d,p=new l(e),g={ratio:1},b={ke:0,x:0,Id:0},v={le:0,y:0,Jd:0},y=this,C=!1;e.j.subscribe("model:loaded",(function(e){f=e,p.reset(!1),p.update(1)})),e.j.subscribe("timeline:initialized",(function(e){d=e})),this.M=function(){e.j.D("zoom:initialized",this)},this.reset=function(e,n){return p.Fb(1),t(!0,e,n)},this.normalize=s((function(e,n){p.pc(1)?t(!1,e,n):y.$e()})),this.$e=function(){i(),o()},this.bg=s((function(e,t,n,r){return y.ic(e.F,t,n,r)})),this.Nb=s((function(e,t,n,r){return a(p.Nb(e,t),n,r)})),this.ic=s((function(e,t,n,r){return a(p.ic(e,t),n,r)})),this.cj=s((function(e,t){p.ic(e,t)&&n(1)})),this.Uh=s((function(e,t){1===g.ratio&&r(e,t)&&n(1)})),this.qg=s((function(e,t){p.Nb(e,t)&&n(1)})),this.pg=s((function(e,t,i,o){e=0|p.Nb(e,t),(e|=r(i,o))&&n(1)})),this.Vh=s((function(e,t,a){1===g.ratio&&(u=d.K.jc(b).fa({duration:e/.03,P:{ke:{start:t,end:0,easing:m.Gb}},ba:function(){p.i(b.ke,0)&&n(1),i()}}).start(),c=d.K.jc(v).fa({duration:e/.03,P:{le:{start:a,end:0,easing:m.Gb}},ba:function(){r(0,v.le)&&n(1),o()}}).start())})),this.Wh=function(){u&&0===p.u()&&u.stop(),c&&0===p.H()&&c.stop()},this.rc=function(e,t){p.rc(e,t)},this.Fb=function(e){return p.Fb(e)},this.pc=function(e){return p.pc(e)},this.zd=function(){return p.zd()},this.absolute=function(e,t){return p.absolute(e,t)},this.Uc=function(e,t){return p.Uc(e,t)},this.scale=function(){return p.scale()},this.i=function(e){return p.T(e)},this.content=function(e,t,n,r){p.content(e,t,n,r)}}function ie(t,i,o){function a(e){var t=[];return S.L(v,(function(n){e(n)&&t.push(n.group)})),{groups:t}}function s(e,t){var n=_.options,r=n.Mi,i=n.Li;n=n.Od;var o=0i.Ji;return t=I.step((function(t){t.xa=!0,ue.grow(t),ae.i(),W.i(t).then(ae.u),ae.i(),s(t,(function(){this.Ia=!0,e()})).then(ae.u)}),!0,t)||t,l(!0),t&&(o=!1,ae.u()),t}var r,o=!1;return{Yh:function(){I.complete(ue.eb)},Oc:e,Jf:t,xb:function(){return!ae.initial()},stop:function(){x.cancel(n),o=!1,ae.clear()}}}(),ue=function(){function e(e){var t=!e.empty();if(e.xa=!0,t){for(var n=e.m,r=n.length-1;0<=r;r--){var i=n[r];i.w=i.hc}e.Ea=!0}return t}var t=[];return{grow:function(n){var r=_.options,i=r.Wg;0r&&(r=a.x),a.y>i&&(i=a.y)}return{x:t,y:n,w:r-t,h:i-n}}})}),(function(){window.CarrotSearchFoamTree=function(){window.console.error("FoamTree is not supported on this browser.")},window.CarrotSearchFoamTree.supported=!1}))}();const Pi=window.CarrotSearchFoamTree;function Fi(t,n,r,i,o){var a={};for(var s in n)"ref"!=s&&(a[s]=n[s]);var u,l,c={type:t,props:a,key:r,ref:n&&n.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++e.__v,__source:i,__self:o};if("function"==typeof t&&(u=t.defaultProps))for(l in u)void 0===a[l]&&(a[l]=u[l]);return e.vnode&&e.vnode(c),c}class Ri extends p{constructor(e){super(e),this.saveNodeRef=e=>this.node=e,this.resize=()=>{const{props:e}=this;this.treemap.resize(),e.onResize&&e.onResize()},this.treemap=null,this.zoomOutDisabled=!1}componentDidMount(){this.treemap=this.createTreemap(),window.addEventListener("resize",this.resize)}componentWillReceiveProps(e){if(e.data!==this.props.data)this.treemap.set({dataObject:this.getTreemapDataObject(e.data)});else if(e.highlightGroups!==this.props.highlightGroups){const t=[...e.highlightGroups,...this.props.highlightGroups];setTimeout((()=>this.treemap.redraw(!1,t)))}}shouldComponentUpdate(){return!1}componentWillUnmount(){window.removeEventListener("resize",this.resize),this.treemap.dispose()}render(){return Fi("div",{...this.props,ref:this.saveNodeRef})}getTreemapDataObject(e=this.props.data){return{groups:e}}createTreemap(){const e=this,{props:t}=this;return new Pi({element:this.node,layout:"squarified",stacking:"flattened",pixelRatio:window.devicePixelRatio||1,maxGroups:1/0,maxGroupLevelsDrawn:1/0,maxGroupLabelLevelsDrawn:1/0,maxGroupLevelsAttached:1/0,wireframeLabelDrawing:"always",groupMinDiameter:0,groupLabelVerticalPadding:.2,rolloutDuration:0,pullbackDuration:0,fadeDuration:0,groupExposureZoomMargin:.2,zoomMouseWheelDuration:300,openCloseDuration:200,dataObject:this.getTreemapDataObject(),titleBarDecorator(e,t,n){n.titleBarShown=!1},groupColorDecorator(t,n,r){const{highlightGroups:i}=e.props,o=n.group;i&&i.has(o)&&(r.groupColor={model:"rgba",r:255,g:0,b:0,a:.8})},onGroupClick(n){Gi(n),(n.ctrlKey||n.secondary)&&t.onGroupSecondaryClick?t.onGroupSecondaryClick.call(e,n):(e.zoomOutDisabled=!1,this.zoom(n.group))},onGroupDoubleClick:Gi,onGroupHover(n){if(n.group&&(n.group.attribution||n.group===this.get("dataObject")))return n.preventDefault(),void(t.onMouseLeave&&t.onMouseLeave.call(e,n));t.onGroupHover&&t.onGroupHover.call(e,n)},onGroupMouseWheel(t){const{scale:n}=this.get("viewport");if(t.delta<0){if(e.zoomOutDisabled)return Gi(t);n<1&&(e.zoomOutDisabled=!0,Gi(t))}else e.zoomOutDisabled=!1}})}zoomToGroup(e){for(this.zoomOutDisabled=!1;e&&!this.treemap.get("state",e).revealed;)e=this.treemap.get("hierarchy",e).parent;e&&this.treemap.zoom(e)}isGroupRendered(e){const t=this.treemap.get("state",e);return!!t&&t.revealed}update(){this.treemap.update()}}function Gi(e){e.preventDefault()}var Ui=n(4184),Hi=n.n(Ui),Vi=n(3379),qi=n.n(Vi),Wi=n(7527),Zi={insert:"head",singleton:!1};qi()(Wi.Z,Zi);const $i=Wi.Z.locals||{};class Ki extends p{constructor(...e){super(...e),this.mouseCoords={x:0,y:0},this.state={left:0,top:0},this.handleMouseMove=e=>{Object.assign(this.mouseCoords,{x:e.pageX,y:e.pageY}),this.props.visible&&this.updatePosition()},this.saveNode=e=>this.node=e}componentDidMount(){document.addEventListener("mousemove",this.handleMouseMove,!0)}shouldComponentUpdate(e){return this.props.visible||e.visible}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove,!0)}render(){const{children:e,visible:t}=this.props,n=Hi()({[$i.container]:!0,[$i.hidden]:!t});return Fi("div",{ref:this.saveNode,className:n,style:this.getStyle(),children:e})}getStyle(){return{left:this.state.left,top:this.state.top}}updatePosition(){if(!this.props.visible)return;const e={left:this.mouseCoords.x+Ki.marginX,top:this.mouseCoords.y+Ki.marginY},t=this.node.getBoundingClientRect();e.left+t.width>window.innerWidth&&(e.left=window.innerWidth-t.width),e.top+t.height>window.innerHeight&&(e.top=this.mouseCoords.y-Ki.marginY-t.height),this.setState(e)}}Ki.marginX=10,Ki.marginY=30;var Yi=n(3908),Ji={insert:"head",singleton:!1};qi()(Yi.Z,Ji);const Xi=Yi.Z.locals||{};class Qi extends p{shouldComponentUpdate(e,t){return!eo(e,this.props)||!eo(this.state,t)}}function eo(e,t){if(e===t)return!0;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{this.elem.blur(),this.props.onClick(e)},this.saveRef=e=>this.elem=e}render({active:e,toggle:t,className:n,children:r,...i}){const o=Hi()(n,{[Xi.button]:!0,[Xi.active]:e,[Xi.toggle]:t});return Fi("button",{...i,ref:this.saveRef,type:"button",className:o,disabled:this.disabled,onClick:this.handleClick,children:r})}get disabled(){const{props:e}=this;return e.disabled||e.active&&!e.toggle}}class no extends Qi{constructor(...e){super(...e),this.handleClick=()=>{this.props.onClick(this.props.item)}}render({item:e,...t}){return Fi(to,{...t,onClick:this.handleClick,children:e.label})}}var ro=n(6897),io={insert:"head",singleton:!1};qi()(ro.Z,io);const oo=ro.Z.locals||{};class ao extends Qi{render(){const{label:e,items:t,activeItem:n,onSwitch:r}=this.props;return Fi("div",{className:oo.container,children:[Fi("div",{className:oo.label,children:[e,":"]}),Fi("div",{children:t.map((e=>Fi(no,{className:oo.item,item:e,active:e===n,onClick:r},e.label)))})]})}}var so=n(4826),uo={insert:"head",singleton:!1};qi()(so.Z,uo);const lo=so.Z.locals||{};var co=n(1746),ho={insert:"head",singleton:!1};qi()(co.Z,ho);const fo=co.Z.locals||{},po={"arrow-right":{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNyIgaGVpZ2h0PSIxMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNLjgyMiAxMi44MTFhLjQ0NS40NDUgMCAwIDEtLjMyMi4xMzMuNDU2LjQ1NiAwIDAgMS0uMzIyLS43NzhMNS44NDQgNi41LjE3OC44MzNBLjQ1Ni40NTYgMCAwIDEgLjgyMi4xOWw1Ljk5IDUuOTg5YS40NTYuNDU2IDAgMCAxIDAgLjY0NGwtNS45OSA1Ljk5eiIvPjwvc3ZnPg==",size:[7,13]},pin:{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMDEyIDE3Ljk0OWwtMS40OTMtNi4zNzZhMTAuOTM1IDEwLjkzNSAwIDAgMCAyLjk4NS4wMDJMNi4wMTIgMTcuOTV6TTkuMjQ2IDEuODU3YzAgLjUyLS40MTUuOTg1LTEuMDcgMS4zMDhsLS4wMDEgMi42MTZjMS43MjUuNDEgMi45MjIgMS4yOTQgMi45MjIgMi4zMiAwIC40MTYtLjE5NS44MDktLjU0MiAxLjE1Ni0uNjQuNjM5LTEuNzk0IDEuMTI0LTMuMTg3IDEuMzE4LS4wMy4wMDUtLjA2Mi4wMDgtLjA5My4wMTJhOC45MTcgOC45MTcgMCAwIDEtLjcyNS4wNjVsLS4xMi4wMDdhMTAuMTU0IDEwLjE1NCAwIDAgMS0uODk1LS4wMDNjLS4wOTgtLjAwNS0uMTkzLS4wMTMtLjI4OC0uMDItLjA1My0uMDA0LS4xMDYtLjAwNy0uMTU4LS4wMTJhOS4yNDcgOS4yNDcgMCAwIDEtLjM3Mi0uMDQzbC0uMDQ1LS4wMDZDMi41MTQgMTAuMjc4LjkyNiA5LjI4NS45MjYgOC4xMDFjMC0uNDE1LjE5Ni0uODA3LjU0My0xLjE1NC41MTEtLjUxMiAxLjM1Mi0uOTI0IDIuMzgtMS4xNjhWMy4xNjVjLS42NTYtLjMyMy0xLjA3LS43ODktMS4wNy0xLjMwOUMyLjc3OC44ODIgNC4yMjUuMDkyIDYuMDExLjA5MnMzLjIzNC43OSAzLjIzNCAxLjc2NXoiLz48L3N2Zz4=",size:[12,18]}};class go extends Qi{render({className:e}){return Fi("i",{className:Hi()(fo.icon,e),style:this.style})}get style(){const{name:e,size:t,rotate:n}=this.props,r=po[e];if(!r)throw new TypeError(`Can't find "${e}" icon.`);let[i,o]=r.size;if(t){const e=t/Math.max(i,o);i=Math.min(Math.ceil(i*e),t),o=Math.min(Math.ceil(o*e),t)}return{backgroundImage:`url(${r.src})`,width:`${i}px`,height:`${o}px`,transform:n?`rotate(${n}deg)`:""}}}const bo=parseInt(lo.toggleTime);class vo extends p{constructor(...e){super(...e),this.allowHide=!0,this.toggling=!1,this.hideContentTimeout=null,this.width=null,this.state={visible:!0,renderContent:!0},this.handleClick=()=>{this.allowHide=!1},this.handleMouseEnter=()=>{this.toggling||this.props.pinned||(clearTimeout(this.hideTimeoutId),this.toggleVisibility(!0))},this.handleMouseMove=()=>{this.allowHide=!0},this.handleMouseLeave=()=>{!this.allowHide||this.toggling||this.props.pinned||this.toggleVisibility(!1)},this.handleToggleButtonClick=()=>{this.toggleVisibility()},this.handlePinButtonClick=()=>{const e=!this.props.pinned;this.width=e?this.node.getBoundingClientRect().width:null,this.updateNodeWidth(),this.props.onPinStateChange(e)},this.handleResizeStart=e=>{this.resizeInfo={startPageX:e.pageX,initialWidth:this.width},document.body.classList.add("resizing","col"),document.addEventListener("mousemove",this.handleResize,!0),document.addEventListener("mouseup",this.handleResizeEnd,!0)},this.handleResize=e=>{this.width=this.resizeInfo.initialWidth+(e.pageX-this.resizeInfo.startPageX),this.updateNodeWidth()},this.handleResizeEnd=()=>{document.body.classList.remove("resizing","col"),document.removeEventListener("mousemove",this.handleResize,!0),document.removeEventListener("mouseup",this.handleResizeEnd,!0),this.props.onResize()},this.saveNode=e=>this.node=e}componentDidMount(){this.hideTimeoutId=setTimeout((()=>this.toggleVisibility(!1)),3e3)}componentWillUnmount(){clearTimeout(this.hideTimeoutId),clearTimeout(this.hideContentTimeout)}render(){const{position:e,pinned:t,children:n}=this.props,{visible:r,renderContent:i}=this.state,o=Hi()({[lo.container]:!0,[lo.pinned]:t,[lo.left]:"left"===e,[lo.hidden]:!r,[lo.empty]:!i});return Fi("div",{ref:this.saveNode,className:o,onClick:this.handleClick,onMouseLeave:this.handleMouseLeave,children:[r&&Fi(to,{type:"button",title:"Pin",className:lo.pinButton,active:t,toggle:!0,onClick:this.handlePinButtonClick,children:Fi(go,{name:"pin",size:13})}),Fi(to,{type:"button",title:r?"Hide":"Show sidebar",className:lo.toggleButton,onClick:this.handleToggleButtonClick,children:Fi(go,{name:"arrow-right",size:10,rotate:r?180:0})}),t&&r&&Fi("div",{className:lo.resizer,onMouseDown:this.handleResizeStart}),Fi("div",{className:lo.content,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,children:i?n:null})]})}toggleVisibility(e){clearTimeout(this.hideContentTimeout);const{visible:t}=this.state,{onToggle:n,pinned:r}=this.props;if(void 0===e)e=!t;else if(e===t)return;this.setState({visible:e}),this.toggling=!0,setTimeout((()=>{this.toggling=!1}),bo),r&&this.updateNodeWidth(e?this.width:null),e||r?(this.setState({renderContent:e}),n(e)):e||(this.hideContentTimeout=setTimeout((()=>{this.hideContentTimeout=null,this.setState({renderContent:!1}),n(!1)}),bo))}updateNodeWidth(e=this.width){this.node.style.width=e?`${e}px`:""}}vo.defaultProps={pinned:!1,position:"left"};var mo=n(2396),yo={insert:"head",singleton:!1};qi()(mo.Z,yo);const Co=mo.Z.locals||{};class _o extends p{constructor(...e){super(...e),this.handleChange=()=>{this.props.onChange(!this.props.checked)}}render(){const{checked:e,className:t,children:n}=this.props;return Fi("label",{className:Hi()(Co.label,t),children:[Fi("input",{className:Co.checkbox,type:"checkbox",checked:e,onChange:this.handleChange}),Fi("span",{className:Co.itemText,children:n})]})}}var wo=n(3213),xo={insert:"head",singleton:!1};qi()(wo.Z,xo);const Ao=wo.Z.locals||{};class So extends p{constructor(...e){super(...e),this.handleChange=()=>{this.props.onChange(this.props.item)}}render(){return Fi("div",{className:Ao.item,children:Fi(_o,{...this.props,onChange:this.handleChange,children:this.renderLabel()})})}renderLabel(){const{children:e,item:t}=this.props;return e?e(t):t===To.ALL_ITEM?"All":t.label}}const Mo=Symbol("ALL_ITEM");class To extends Qi{constructor(e){super(e),this.handleToggleAllCheck=()=>{const e=this.isAllChecked()?[]:this.props.items;this.setState({checkedItems:e}),this.informAboutChange(e)},this.handleItemCheck=e=>{let t;t=this.isItemChecked(e)?this.state.checkedItems.filter((t=>t!==e)):[...this.state.checkedItems,e],this.setState({checkedItems:t}),this.informAboutChange(t)},this.state={checkedItems:e.checkedItems||e.items}}componentWillReceiveProps(e){if(e.items!==this.props.items){if(this.isAllChecked())this.setState({checkedItems:e.items}),this.informAboutChange(e.items);else if(this.state.checkedItems.length){const t=e.items.filter((e=>this.state.checkedItems.find((t=>t.label===e.label))));this.setState({checkedItems:t}),this.informAboutChange(t)}}else e.checkedItems!==this.props.checkedItems&&this.setState({checkedItems:e.checkedItems})}render(){const{label:e,items:t,renderLabel:n}=this.props;return Fi("div",{className:Ao.container,children:[Fi("div",{className:Ao.label,children:[e,":"]}),Fi("div",{children:[Fi(So,{item:Mo,checked:this.isAllChecked(),onChange:this.handleToggleAllCheck,children:n}),t.map((e=>Fi(So,{item:e,checked:this.isItemChecked(e),onChange:this.handleItemCheck,children:n},e.label)))]})]})}isItemChecked(e){return this.state.checkedItems.includes(e)}isAllChecked(){return this.props.items.length===this.state.checkedItems.length}informAboutChange(e){setTimeout((()=>this.props.onChange(e)))}}To.ALL_ITEM=Mo;var ko=n(9270),zo={insert:"head",singleton:!1};qi()(ko.Z,zo);const Do=ko.Z.locals||{};function jo(){return!1}function Lo({children:e,disabled:t,onClick:n}){return Fi("li",{className:Hi()({[Do.item]:!0,[Do.disabled]:t}),onClick:t?jo:n,children:e})}var Bo=n(580),Eo={insert:"head",singleton:!1};qi()(Bo.Z,Eo);const Oo=Bo.Z.locals||{};class Io extends Qi{constructor(...e){super(...e),this.handleClickHideChunk=()=>{const{chunk:e}=this.props;if(e&&e.label){const t=Fn.selectedChunks.filter((t=>t.label!==e.label));Fn.selectedChunks=t}this.hide()},this.handleClickFilterToChunk=()=>{const{chunk:e}=this.props;if(e&&e.label){const t=Fn.allChunks.filter((t=>t.label===e.label));Fn.selectedChunks=t}this.hide()},this.handleClickShowAllChunks=()=>{Fn.selectedChunks=Fn.allChunks,this.hide()},this.handleDocumentMousedown=e=>{var t,n;e.ctrlKey||2===e.button||(t=e.target,n=this.node,t===n||n.contains(t))||(e.preventDefault(),e.stopPropagation(),this.hide())},this.saveNode=e=>this.node=e}componentDidMount(){this.boundingRect=this.node.getBoundingClientRect()}componentDidUpdate(e){this.props.visible&&!e.visible?document.addEventListener("mousedown",this.handleDocumentMousedown,!0):e.visible&&!this.props.visible&&document.removeEventListener("mousedown",this.handleDocumentMousedown,!0)}render(){const{visible:e}=this.props,t=Hi()({[Oo.container]:!0,[Oo.hidden]:!e}),n=Fn.selectedChunks.length>1;return Fi("ul",{ref:this.saveNode,className:t,style:this.getStyle(),children:[Fi(Lo,{disabled:!n,onClick:this.handleClickHideChunk,children:"Hide chunk"}),Fi(Lo,{disabled:!n,onClick:this.handleClickFilterToChunk,children:"Hide all other chunks"}),Fi("hr",{}),Fi(Lo,{disabled:Fn.allChunksSelected,onClick:this.handleClickShowAllChunks,children:"Show all chunks"})]})}hide(){this.props.onHide&&this.props.onHide()}getStyle(){const{boundingRect:e}=this;if(!e)return;const{coords:t}=this.props,n={left:t.x,top:t.y};return n.left+e.width>window.innerWidth&&(n.left=window.innerWidth-e.width),n.top+e.height>window.innerHeight&&(n.top=t.y-e.height),n}}var No=n(2393),Po={insert:"head",singleton:!1};qi()(No.Z,Po);const Fo=No.Z.locals||{};var Ro=n(3279),Go=n.n(Ro),Uo=n(9976),Ho={insert:"head",singleton:!1};qi()(Uo.Z,Ho);const Vo=Uo.Z.locals||{};class qo extends Qi{constructor(...e){super(...e),this.handleValueChange=Go()((e=>{this.informChange(e.target.value)}),400),this.handleInputBlur=()=>{this.handleValueChange.flush()},this.handleClearClick=()=>{this.clear(),this.focus()},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"Escape":this.clear();break;case"Enter":this.handleValueChange.flush();break;default:t=!1}t&&e.stopPropagation()},this.saveInputNode=e=>this.input=e}componentDidMount(){this.props.autofocus&&this.focus()}componentWillUnmount(){this.handleValueChange.cancel()}render(){const{label:e,query:t}=this.props;return Fi("div",{className:Vo.container,children:[Fi("div",{className:Vo.label,children:[e,":"]}),Fi("div",{className:Vo.row,children:[Fi("input",{ref:this.saveInputNode,className:Vo.input,type:"text",value:t,placeholder:"Enter regexp",onInput:this.handleValueChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeyDown}),Fi(to,{className:Vo.clear,onClick:this.handleClearClick,children:"x"})]})]})}focus(){this.input&&this.input.focus()}clear(){this.handleValueChange.cancel(),this.informChange(""),this.input.value=""}informChange(e){this.props.onQueryChange(e)}}var Wo=n(3784),Zo={insert:"head",singleton:!1};qi()(Wo.Z,Zo);const $o=Wo.Z.locals||{};var Ko=n(1700),Yo=n.n(Ko),Jo=n(7187),Xo=n.n(Jo),Qo=n(3522),ea=n.n(Qo),ta=n(697),na={insert:"head",singleton:!1};qi()(ta.Z,na);const ra=ta.Z.locals||{};class ia extends Qi{constructor(...e){super(...e),this.state={visible:!0},this.handleClick=()=>this.props.onClick(this.props.module),this.handleMouseEnter=()=>{this.props.isVisible&&this.setState({visible:this.isVisible})}}render({module:e,showSize:t}){const n=!this.state.visible;return Fi("div",{className:Hi()(ra.container,ra[this.itemType],{[ra.invisible]:n}),title:n?this.invisibleHint:null,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[Fi("span",{dangerouslySetInnerHTML:{__html:this.titleHtml}}),t&&[" (",Fi("strong",{children:Vn()(e[t])}),")"]]})}get itemType(){const{module:e}=this.props;return e.path?e.groups?"folder":"module":"chunk"}get titleHtml(){let e;const{module:t}=this.props,n=t.path||t.label,r=this.props.highlightedText;if(r){const t=r instanceof RegExp?new RegExp(r.source,"igu"):new RegExp(`(?:${ea()(r)})+`,"iu");let i,o;do{o=i,i=t.exec(n)}while(i);o&&(e=Xo()(n.slice(0,o.index))+`${Xo()(o[0])}`+Xo()(n.slice(o.index+o[0].length)))}return e||(e=Xo()(n)),e}get invisibleHint(){return`${Yo()(this.itemType)} is not rendered in the treemap because it's too small.`}get isVisible(){const{isVisible:e}=this.props;return!e||e(this.props.module)}}class oa extends Qi{constructor(...e){super(...e),this.handleModuleClick=e=>this.props.onModuleClick(e)}render({modules:e,showSize:t,highlightedText:n,isModuleVisible:r,className:i}){return Fi("div",{className:Hi()($o.container,i),children:e.map((e=>Fi(ia,{module:e,showSize:t,highlightedText:n,isVisible:r,onClick:this.handleModuleClick},e.cid)))})}}var aa,sa;const ua=[{label:"Stat",prop:"statSize"},{label:"Parsed",prop:"parsedSize"},{label:"Gzipped",prop:"gzipSize"}];let la=Ni((N((sa=class extends p{constructor(...e){super(...e),this.mouseCoords={x:0,y:0},this.state={selectedChunk:null,selectedMouseCoords:{x:0,y:0},sidebarPinned:!1,showChunkContextMenu:!1,showTooltip:!1,tooltipContent:null},this.renderChunkItemLabel=e=>{const t=e===To.ALL_ITEM,n=t?"All":e.label,r=t?Fn.totalChunksSize:e[Fn.activeSize];return[`${n} (`,Fi("strong",{children:Vn()(r)}),")"]},this.handleConcatenatedModulesContentToggle=e=>{Fn.showConcatenatedModulesContent=e,e?zn.setItem("showConcatenatedModulesContent",!0):zn.removeItem("showConcatenatedModulesContent")},this.handleChunkContextMenuHide=()=>{this.setState({showChunkContextMenu:!1})},this.handleResize=()=>{this.state.showChunkContextMenu&&this.setState({showChunkContextMenu:!1})},this.handleSidebarToggle=()=>{this.state.sidebarPinned&&setTimeout((()=>this.treemap.resize()))},this.handleSidebarPinStateChange=e=>{this.setState({sidebarPinned:e}),setTimeout((()=>this.treemap.resize()))},this.handleSidebarResize=()=>{this.treemap.resize()},this.handleSizeSwitch=e=>{Fn.selectedSize=e.prop},this.handleQueryChange=e=>{Fn.searchQuery=e},this.handleSelectedChunksChange=e=>{Fn.selectedChunks=e},this.handleMouseLeaveTreemap=()=>{this.setState({showTooltip:!1})},this.handleTreemapGroupSecondaryClick=e=>{const{group:t}=e;t&&t.isAsset?this.setState({selectedChunk:t,selectedMouseCoords:{...this.mouseCoords},showChunkContextMenu:!0}):this.setState({selectedChunk:null,showChunkContextMenu:!1})},this.handleTreemapGroupHover=e=>{const{group:t}=e;t?this.setState({showTooltip:!0,tooltipContent:this.getTooltipContent(t)}):this.setState({showTooltip:!1})},this.handleFoundModuleClick=e=>this.treemap.zoomToGroup(e),this.handleMouseMove=e=>{Object.assign(this.mouseCoords,{x:e.pageX,y:e.pageY})},this.isModuleVisible=e=>this.treemap.isGroupRendered(e),this.saveTreemapRef=e=>this.treemap=e}componentDidMount(){document.addEventListener("mousemove",this.handleMouseMove,!0)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove,!0)}render(){const{selectedChunk:e,selectedMouseCoords:t,sidebarPinned:n,showChunkContextMenu:r,showTooltip:i,tooltipContent:o}=this.state;return Fi("div",{className:Fo.container,children:[Fi(vo,{pinned:n,onToggle:this.handleSidebarToggle,onPinStateChange:this.handleSidebarPinStateChange,onResize:this.handleSidebarResize,children:[Fi("div",{className:Fo.sidebarGroup,children:[Fi(ao,{label:"Treemap sizes",items:this.sizeSwitchItems,activeItem:this.activeSizeItem,onSwitch:this.handleSizeSwitch}),Fn.hasConcatenatedModules&&Fi("div",{className:Fo.showOption,children:Fi(_o,{checked:Fn.showConcatenatedModulesContent,onChange:this.handleConcatenatedModulesContentToggle,children:"Show content of concatenated modules"+("statSize"===Fn.activeSize?"":" (inaccurate)")})})]}),Fi("div",{className:Fo.sidebarGroup,children:[Fi(qo,{label:"Search modules",query:Fn.searchQuery,autofocus:!0,onQueryChange:this.handleQueryChange}),Fi("div",{className:Fo.foundModulesInfo,children:this.foundModulesInfo}),Fn.isSearching&&Fn.hasFoundModules&&Fi("div",{className:Fo.foundModulesContainer,children:Fn.foundModulesByChunk.map((({chunk:e,modules:t})=>Fi("div",{className:Fo.foundModulesChunk,children:[Fi("div",{className:Fo.foundModulesChunkName,onClick:()=>this.treemap.zoomToGroup(e),children:e.label}),Fi(oa,{className:Fo.foundModulesList,modules:t,showSize:Fn.activeSize,highlightedText:Fn.searchQueryRegexp,isModuleVisible:this.isModuleVisible,onModuleClick:this.handleFoundModuleClick})]},e.cid)))})]}),this.chunkItems.length>1&&Fi("div",{className:Fo.sidebarGroup,children:Fi(To,{label:"Show chunks",items:this.chunkItems,checkedItems:Fn.selectedChunks,renderLabel:this.renderChunkItemLabel,onChange:this.handleSelectedChunksChange})})]}),Fi(Ri,{ref:this.saveTreemapRef,className:Fo.map,data:Fn.visibleChunks,highlightGroups:this.highlightedModules,weightProp:Fn.activeSize,onMouseLeave:this.handleMouseLeaveTreemap,onGroupHover:this.handleTreemapGroupHover,onGroupSecondaryClick:this.handleTreemapGroupSecondaryClick,onResize:this.handleResize}),Fi(Ki,{visible:i,children:o}),Fi(Io,{visible:r,chunk:e,coords:t,onHide:this.handleChunkContextMenuHide})]})}renderModuleSize(e,t){const n=`${t}Size`,r=e[n],i=ua.find((e=>e.prop===n)).label,o=Fn.activeSize===n;return"number"==typeof r?Fi("div",{className:o?Fo.activeSize:"",children:[i," size: ",Fi("strong",{children:Vn()(r)})]}):null}get sizeSwitchItems(){return Fn.hasParsedSizes?ua:ua.slice(0,1)}get activeSizeItem(){return this.sizeSwitchItems.find((e=>e.prop===Fn.activeSize))}get chunkItems(){const{allChunks:e,activeSize:t}=Fn;let n=[...e];return"statSize"!==t&&(n=n.filter(Tn)),n.sort(((e,n)=>n[t]-e[t])),n}get highlightedModules(){return new Set(Fn.foundModules)}get foundModulesInfo(){return Fn.isSearching?Fn.hasFoundModules?[Fi("div",{className:Fo.foundModulesInfoItem,children:["Count: ",Fi("strong",{children:Fn.foundModules.length})]}),Fi("div",{className:Fo.foundModulesInfoItem,children:["Total size: ",Fi("strong",{children:Vn()(Fn.foundModulesSize)})]})]:"Nothing found"+(Fn.allChunksSelected?"":" in selected chunks"):" "}getTooltipContent(e){return e?Fi("div",{children:[Fi("div",{children:Fi("strong",{children:e.label})}),Fi("br",{}),this.renderModuleSize(e,"stat"),!e.inaccurateSizes&&this.renderModuleSize(e,"parsed"),!e.inaccurateSizes&&this.renderModuleSize(e,"gzip"),e.path&&Fi("div",{children:["Path: ",Fi("strong",{children:e.path})]}),e.isAsset&&Fi("div",{children:[Fi("br",{}),Fi("strong",{children:Fi("em",{children:"Right-click to view options related to this chunk"})})]})]}):null}}).prototype,"sizeSwitchItems",[ze],Object.getOwnPropertyDescriptor(sa.prototype,"sizeSwitchItems"),sa.prototype),N(sa.prototype,"activeSizeItem",[ze],Object.getOwnPropertyDescriptor(sa.prototype,"activeSizeItem"),sa.prototype),N(sa.prototype,"chunkItems",[ze],Object.getOwnPropertyDescriptor(sa.prototype,"chunkItems"),sa.prototype),N(sa.prototype,"highlightedModules",[ze],Object.getOwnPropertyDescriptor(sa.prototype,"highlightedModules"),sa.prototype),N(sa.prototype,"foundModulesInfo",[ze],Object.getOwnPropertyDescriptor(sa.prototype,"foundModulesInfo"),sa.prototype),aa=sa))||aa;var ca=n(1194),ha={insert:"head",singleton:!1};qi()(ca.Z,ha);ca.Z.locals;let fa;try{window.enableWebSocket&&(fa=new WebSocket(`ws://${location.host}`))}catch(da){console.warn("Couldn't connect to analyzer websocket server so you'll have to reload page manually to see updates in the treemap")}window.addEventListener("load",(()=>{Fn.defaultSize=`${window.defaultSizes}Size`,Fn.setModules(window.chartData),B(Fi(la,{}),document.getElementById("app")),fa&&fa.addEventListener("message",(e=>{const t=JSON.parse(e.data);"chartDataUpdated"===t.event&&Fn.setModules(t.data)}))}),!1)})()})(); //# sourceMappingURL=viewer.js.map