diff --git a/build/2.css b/build/2.css index 5e4dfde..050e3ec 100644 --- a/build/2.css +++ b/build/2.css @@ -1 +1 @@ -.icon14{height:14px;padding-bottom:2px}.icon16{height:16px}.icon20{height:20px}.icon24{height:24px}.bigger{font-size:14px}.name{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.name .subname:before{content:"\a ";white-space:pre}.name .subname{font-size:13px;padding-bottom:4px;display:inherit}@media only screen and (min-width:975px){.collection{margin-top:5px;margin-right:5px;margin-left:5px}}@media only screen and (min-width:975px){.collection>.left{font-family:Roboto,Arial,sans-serif;float:left;width:30%}.collection>.right{font-family:Roboto,Arial,sans-serif;float:right;width:70%}.collection #side-menu{position:relative}.collection #buttons{margin:0 0 2% 1%}.collection #buttons,.collection .button,.collection input[type=button],.collection input[type=text]{border-radius:5px;border-color:transparent;text-align:center;outline:none}.collection input[type=text]{margin-bottom:2px}.collection .centeredCheckBox,.collection input[type=text]{width:220px}.collection .text-entry{display:flex;justify-content:center;align-items:center}.collection .text-entry input:focus{outline:none}.collection .card{text-align:left;display:flex;border:1px solid #aeaeae}.collection .card .left,.collection .card .right,.collection .card .stats{padding-top:4px}.collection .card .bigger{text-align:center;font-weight:700}.collection .card .energy{display:flex;width:20px!important}.collection .card .left{vertical-align:text-top;float:left;width:210px;padding-left:4px}.collection .card .right{float:left;width:calc(100% - 322px);border-left:2px solid #aeaeae;padding-left:4px;padding-right:4px;padding-bottom:6px;white-space:pre-line}.collection .creature .right{width:calc(100% - 366px)}.collection .creature .stats{vertical-align:text-top;float:left;text-align:right;width:40px}.collection .SearchForm{padding-top:3px;font-family:Roboto,Arial,sans-serif}.collection .searchName{display:flex;justify-content:center;align-items:center;padding:2%;font-size:16pt}.collection .centeredCheckBox{margin:0 auto;text-align:left}.collection .centeredSpacing{display:flex;justify-content:space-between}.collection .setBox{width:80%;float:right}.collection #sets{width:80%}.collection .centeredButtons{display:flex;justify-content:center;align-items:center}.collection #search{width:25%;margin:2%;border-radius:5px;border-color:transparent;text-align:center}.collection .minMax{display:flex;justify-content:space-between;margin:0 auto;width:50%;text-align:right}.collection .brainwashed{border-radius:3px;background-color:#dcdddf;color:#000!important}.collection .chieftain,.collection .flavortext{font-style:italic}.collection .mull input{margin-left:0;margin-top:1px}.collection .Collapsible__contentInner input,.collection .mull input{vertical-align:middle}.collection .Collapsible__contentInner .centeredCheckBox{width:50%}.collection .tribes{width:96%;text-align:center}.collection .and,.collection .disciplines{text-align:center}.collection .and{vertical-align:text-bottom;width:15%;border-radius:5px;border-color:transparent;margin:2%}}.collection .disciplines input{width:30px;height:14px;text-align:center;margin-top:2px}.collection .mcbp input{width:24px;height:14px;padding:unset;text-align:center;margin-top:2px}.collection .card .icon14,.collection .card .icon16,.collection .card .icon20,.collection .card .icon24{vertical-align:middle}.collection .thumb{width:100px;height:98px}.collection .card .thumb{float:left}.collection .attack .bp{vertical-align:middle}.collection .Collapsible{margin-bottom:5px;margin-top:5px;width:96%}.collection .Collapsible__trigger{background-color:#333;display:block;position:relative;padding-top:5px;padding-bottom:5px;text-indent:5px;font-weight:700;white-space:pre}.collection .Collapsible__trigger:hover{background-color:red}.collection .Collapsible__trigger:after{content:"^";position:absolute;right:10px;top:10px;display:block;transition:transform .4s}.collection .Collapsible__trigger.is-open:after{transform:rotate(180deg);right:5px;top:5px}.collection .Collapsible__trigger.is-disabled{opacity:.5;background-color:grey}.collection .Collapsible__contentInner{margin-top:5px}.collection .card_img{position:absolute;width:100%;z-index:2;left:-11px}.collection .card_img .hidden{display:none;max-height:0}.collection .card_img img{max-width:250px;max-height:350px}.collection .entries{text-align:left;width:100%}.collection .entries input[type=button]{margin:0 0 2% 1%}.collection .list-nav-top{display:flex}.collection .extended .fullcard{max-width:250px;max-height:350px}.collection hr{width:96%;margin-inline-start:0}.collection .none{display:inline}.collection .none>span{top:-3px;position:relative}.collection label{user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-touch-callout:none;-o-user-select:none;-moz-user-select:none} \ No newline at end of file +.icon14{height:14px;padding-bottom:2px}.icon16{height:16px}.icon20{height:20px}.icon24{height:24px}.bigger{font-size:14px}.name{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.name .subname:before{content:"\a ";white-space:pre}.name .subname{font-size:13px;padding-bottom:4px;display:inherit}@media only screen and (max-width:975px){.collection{padding-left:5px}.collection .card.creature .text_brainwashed{font-weight:700}.collection .card.creature .right{white-space:pre-line}}@media only screen and (min-width:975px){.collection{margin-top:5px;margin-right:5px;margin-left:5px}.collection>.left{font-family:Roboto,Arial,sans-serif;float:left;width:30%}.collection>.right{font-family:Roboto,Arial,sans-serif;float:right;width:70%}.collection #side-menu{position:relative}.collection #buttons{margin:0 0 2% 1%}.collection #buttons,.collection .button,.collection input[type=button],.collection input[type=text]{border-radius:5px;border-color:transparent;text-align:center;outline:none}.collection input[type=text]{margin-bottom:2px}.collection .centeredCheckBox,.collection input[type=text]{width:220px}.collection .text-entry{display:flex;justify-content:center;align-items:center}.collection .text-entry input:focus{outline:none}.collection .card{text-align:left;display:flex;border:1px solid #aeaeae}.collection .card .left,.collection .card .right,.collection .card .stats{padding-top:4px}.collection .card .bigger{text-align:center;font-weight:700}.collection .card .energy{display:flex;width:20px!important}.collection .card .left{vertical-align:text-top;float:left;width:210px;padding-left:4px}.collection .card .right{float:left;width:calc(100% - 322px);border-left:2px solid #aeaeae;padding-left:4px;padding-right:4px;padding-bottom:6px;white-space:pre-line}.collection .creature .right{width:calc(100% - 366px)}.collection .creature .stats{vertical-align:text-top;float:left;text-align:right;width:40px}.collection .SearchForm{padding-top:3px;font-family:Roboto,Arial,sans-serif}.collection .searchName{display:flex;justify-content:center;align-items:center;padding:2%;font-size:16pt}.collection .centeredCheckBox{margin:0 auto;text-align:left}.collection .centeredSpacing{display:flex;justify-content:space-between}.collection .setBox{width:80%;float:right}.collection #sets{width:80%}.collection .centeredButtons{display:flex;justify-content:center;align-items:center}.collection #search{width:25%;margin:2%;border-radius:5px;border-color:transparent;text-align:center}.collection .minMax{display:flex;justify-content:space-between;margin:0 auto;width:50%;text-align:right}.collection .text_brainwashed{display:none}.collection .brainwashed{border-radius:3px;background-color:#dcdddf;color:#000!important}.collection .chieftain,.collection .flavortext{font-style:italic}.collection .mull input{margin-left:0;margin-top:1px}.collection .Collapsible__contentInner input,.collection .mull input{vertical-align:middle}.collection .Collapsible__contentInner .centeredCheckBox{width:50%}.collection .tribes{width:96%;text-align:center}.collection .and,.collection .disciplines{text-align:center}.collection .and{vertical-align:text-bottom;width:15%;border-radius:5px;border-color:transparent;margin:2%}}.collection .disciplines input{width:30px;height:14px;text-align:center;margin-top:2px}.collection .mcbp input{width:24px;height:14px;padding:unset;text-align:center;margin-top:2px}.collection .card .icon14,.collection .card .icon16,.collection .card .icon20,.collection .card .icon24{vertical-align:middle}.collection .thumb{width:100px;height:98px}.collection .card .thumb{float:left}.collection .attack .bp{vertical-align:middle}.collection .Collapsible{margin-bottom:5px;margin-top:5px;width:96%}.collection .Collapsible__trigger{background-color:#333;display:block;position:relative;padding-top:5px;padding-bottom:5px;text-indent:5px;font-weight:700;white-space:pre}.collection .Collapsible__trigger:hover{background-color:red}.collection .Collapsible__trigger:after{content:"^";position:absolute;right:10px;top:10px;display:block;transition:transform .4s}.collection .Collapsible__trigger.is-open:after{transform:rotate(180deg);right:5px;top:5px}.collection .Collapsible__trigger.is-disabled{opacity:.5;background-color:grey}.collection .Collapsible__contentInner{margin-top:5px}.collection .card_img{position:absolute;width:100%;z-index:2;left:-11px}.collection .card_img .hidden{display:none;max-height:0}.collection .card_img img{max-width:250px;max-height:350px}.collection .entries{text-align:left;width:100%}.collection .entries input[type=button]{margin:0 0 2% 1%}.collection .list-nav-top{display:flex}.collection .extended .fullcard{max-width:250px;max-height:350px}.collection hr{width:96%;margin-inline-start:0}.collection .none{display:inline}.collection .none>span{top:-3px;position:relative}.collection label{user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-touch-callout:none;-o-user-select:none;-moz-user-select:none} \ No newline at end of file diff --git a/build/2.js b/build/2.js index 0e33239..ea6e01d 100644 --- a/build/2.js +++ b/build/2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1043:function(e,t,a){},1046:function(e,t,a){"use strict";a.r(t);var n,i,r,l,s=a(169),c=a.n(s),o=a(102),m=a.n(o),u=a(82),g=a.n(u),p=a(63),d=a.n(p),h=a(166),x=a.n(h),f=a(167),b=a.n(f),y=a(817),$=a.n(y),E=a(168),v=a.n(E),w=a(64),k=a.n(w),C=(a(816),a(0)),N=a.n(C),q=a(109),I=a(3),O=a(128),j=a(55),_=Object(O.a)((function(e,t,a){return t}))(n=Object(O.b)(n=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?N.a.createElement("div",{className:"card attack"},N.a.createElement("img",{className:"thumb",src:q.a.base_image+(t.gsx$thumb||q.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),N.a.createElement("div",{className:"left"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.m,{set:t.gsx$set,rarity:t.gsx$rarity}),N.a.createElement("br",null),N.a.createElement("span",null,N.a.createElement(j.b,{bp:t.gsx$bp})," Attack - ",t.gsx$bp),N.a.createElement("br",null),N.a.createElement("div",null,N.a.createElement("span",{className:"bp bigger"},t.gsx$base)," | ",N.a.createElement(j.f,{element:"fire",value:t.gsx$fire}),t.gsx$fire," ",N.a.createElement(j.f,{element:"air",value:t.gsx$air}),t.gsx$air," ",N.a.createElement(j.f,{element:"earth",value:t.gsx$earth}),t.gsx$earth," ",N.a.createElement(j.f,{element:"water",value:t.gsx$water}),t.gsx$water)),N.a.createElement("br",null),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):N.a.createElement("div",{className:"card attack"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||n)||n,B=Object(O.a)((function(e,t,a){return t}))(i=Object(O.b)(i=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?N.a.createElement("div",{className:"card battlegear"},N.a.createElement("img",{className:"thumb",style:{float:"left"},src:q.a.base_image+(t.gsx$thumb||q.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),N.a.createElement("div",{className:"left"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.m,{set:t.gsx$set,rarity:t.gsx$rarity}),N.a.createElement("br",null),N.a.createElement("span",null,N.a.createElement(j.c,null)," Battlegear",t.gsx$types.length>0?" - "+t.gsx$types:null)),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):N.a.createElement("div",{className:"card battlegear"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||i)||i,S=Object(O.a)((function(e,t,a){return t}))(r=Object(O.b)(r=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){for(var e=this,t=this.props.card,a=[],n=0;n=0})," ",N.a.createElement(j.f,{element:"air",value:t.gsx$elements.toLowerCase().indexOf("air")>=0})," ",N.a.createElement(j.f,{element:"earth",value:t.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",N.a.createElement(j.f,{element:"water",value:t.gsx$elements.toLowerCase().indexOf("water")>=0})),N.a.createElement("span",null,a)),N.a.createElement("br",null),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),N.a.createElement(j.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&N.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",N.a.createElement("br",null)),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext)),N.a.createElement("br",null),N.a.createElement("div",{className:"stats"},N.a.createElement("div",{className:"energy"},t.gsx$courage,N.a.createElement(j.d,{discipline:"courage"})),N.a.createElement("div",{className:"energy"},t.gsx$power,N.a.createElement(j.d,{discipline:"power"})),N.a.createElement("div",{className:"energy"},t.gsx$wisdom,N.a.createElement(j.d,{discipline:"wisdom"})),N.a.createElement("div",{className:"energy"},t.gsx$speed,N.a.createElement(j.d,{discipline:"speed"})),N.a.createElement("div",{className:"energy",style:{fontWeight:"bold"}},t.gsx$energy))):N.a.createElement("div",{className:"card creature"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement("span",null,t.gsx$courage," ",N.a.createElement(j.d,{discipline:"courage"}))," ",N.a.createElement("span",null,t.gsx$power," ",N.a.createElement(j.d,{discipline:"power"}))," ",N.a.createElement("span",null,t.gsx$wisdom," ",N.a.createElement(j.d,{discipline:"wisdom"}))," ",N.a.createElement("span",null,t.gsx$speed," ",N.a.createElement(j.d,{discipline:"speed"}))," ",N.a.createElement("span",{style:{fontWeight:"bold"}},t.gsx$energy),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),N.a.createElement(j.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&N.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",N.a.createElement("br",null)),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||r)||r,F=Object(O.a)((function(e,t,a){return t}))(l=Object(O.b)(l=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?N.a.createElement("div",{className:"card location"},N.a.createElement("img",{className:"thumb",style:{float:"left",width:"100px",height:"98px"},src:q.a.base_image+(t.gsx$thumb||q.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),N.a.createElement("div",{className:"left"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.m,{set:t.gsx$set,rarity:t.gsx$rarity}),N.a.createElement("br",null),N.a.createElement("span",null,N.a.createElement(j.i,null)," Location",t.gsx$types.length>0?" - "+t.gsx$types:null),N.a.createElement("br",null),N.a.createElement(j.g,{initiative:t.gsx$initiative})),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):N.a.createElement("div",{className:"card location"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||l)||l,L=a(1039),A=function(){function e(t,a,n){g()(this,e),this.pitch=void 0,this.octave=void 0,this.duration=void 0,this.time=void 0,this.duration=t,this.pitch=n.pitch,this.octave=n.octave,this.time=a}return d()(e,[{key:"note",get:function(){return{time:this.time+"/4n",pitch:this.pitch+this.octave.toString(),duration:this.duration+"/4n"}}}]),e}(),M=function(){function e(){g()(this,e),this.synth=void 0,this.part=void 0,this.transport=void 0,this.synth=(new L.b).toDestination(),this.part=new L.a,L.c.bpm.value=240}return d()(e,null,[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),d()(e,[{key:"play",value:function(e){var t=this;L.c.stop(),this.part.dispose();try{var a=G(e);this.part=new L.a((function(e,a){t.synth.triggerAttackRelease(a.pitch,a.duration,e)}),a.map((function(e){return e.note}))).start(),L.c.start()}catch(e){return void console.log(e)}}}]),e}();M.instance=void 0;var R,T,z,P,U,H,D,G=function(e){var t=[],a=0;return e.split(" ").forEach((function(e){var n=e.match(/(?:[1-8]{1})/);if(null===n)throw new Error("invalid_input");var i=parseInt(n[0]),r=e.split(/(?:[1-8]{1})/)[1];t.push(new A(i,a,J(r,t))),a+=i})),t},J=function(e,t){var a=function(){if(0===t.length)return 4;var a=t.length,n=Y(e),i=Y(t[a-1].pitch),r=W(i,n);return r<3?0===r?t[a-1].octave:i>5?n<3?t[a-1].octave+1:t[a-1].octave:i<3&&n>5?t[a-1].octave-1:t[a-1].octave:Q(n,a,t)}();return{pitch:e,octave:a}},Q=function e(t,a,n){if(a<2)return n[a-1].octave;var i=Y(n[a-1].pitch),r=Y(n[a-2].pitch);return r>i?i3.5?a-1:a>4.5?a-2:a>5.5?a-3:a>6.5?a-4:a},Y=function(e){var t;switch(e.charAt(0).toUpperCase()){case"A":t=1;break;case"B":t=2;break;case"C":t=3;break;case"D":t=4;break;case"E":t=5;break;case"F":t=6;break;case"G":t=7;break;default:t=3}return e.length>1&&("b"===e.charAt(1).toLowerCase()?t-=.5:"#"===e.charAt(1)&&(t+=.5)),t},V=M.getInstance(),K=function(e){return N.a.createElement(N.a.Fragment,null,N.a.createElement("input",{type:"button",value:"Play",onClick:function(){V.play(e.notes)}}))},X=a(60),Z=Object(O.a)((function(e,t,a){return t}))(R=Object(O.b)(R=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.card,n=(t.history,[]);if(0==a.gsx$cost)n.push(N.a.createElement(j.j,{tribe:a.gsx$tribe,key:0,amount:"0"}));else if("x"==a.gsx$cost.toLowerCase())n.push(N.a.createElement(j.j,{tribe:a.gsx$tribe,key:0,amount:"x"}));else if(a.gsx$cost>5)n.push(N.a.createElement(j.j,{tribe:a.gsx$tribe,key:0,amount:a.gsx$cost}));else for(var i=0;i=0&&(a.input.energy.min=l[0]),l[1]>=0&&(a.input.energy.max=l[1])}if(t.hasOwnProperty("mcbp")){var s=t.mcbp.split(",");s[0]>=0&&(a.input.mcbp.min=s[0]),s[1]>=0&&(a.input.mcbp.max=s[1])}},a.reset=function(e){e.preventDefault(),e.stopPropagation(),a.cleanInput()},a.handleChange=function(e,t){var n=e.target,i="checkbox"===n.type?n.checked:n.value,r=n.name;t?a.input[t][r]=i:a.input[r]=i},a.search=function(e){e&&(e.preventDefault(),e.stopPropagation(),a.updateQuery());var t=function(e){var t=new oe.a("filter.db").addCollection("filter"),a=t.addDynamicView("filter");a.applySimpleSort("gsx$name");var n,i=q.a.cards.attacks.chain(),r=q.a.cards.battlegear.chain(),l=q.a.cards.creatures.chain(),s=q.a.cards.locations.chain(),c=q.a.cards.mugic.chain();if(i=i.where((function(e){return""!=e.gsx$set})),r=r.where((function(e){return""!=e.gsx$set})),l=l.where((function(e){return""!=e.gsx$set})),s=s.where((function(e){return""!=e.gsx$set})),c=c.where((function(e){return""!=e.gsx$set})),e.name.length>0){var o=me(e.name);i=i.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),r=r.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),l=l.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),s=s.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),c=c.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]})}if(e.text.length>0){var m=e.text.split(",").filter(Boolean).map((function(e){return{$regex:me(e)}})),u=me(e.text),g=(n=[{gsx$tags:{$or:m}},{gsx$ability:{$regex:u}}],e.flavor&&(n.push({gsx$flavortext:{$or:m}}),n.push({gsx$artist:{$or:m}})),n);i=i.find({$or:g}),r=r.find({$or:g}),l=l.find({$or:g.concat([{gsx$brainwashed:{$regex:u}}])}),s=s.find({$or:g}),c=c.find({$or:g})}if(e.subtypes.length>0){var p=e.subtypes.split(",").filter(Boolean).map((function(e){return{$regex:me(e)}}));l=l.find({gsx$types:{$or:p}}),s=s.find({$or:[{gsx$initiative:{$or:p}},{gsx$types:{$or:p}}]}),i=i.limit(0),r=r.find({gsx$types:{$or:p}}),c=c.limit(0)}var d=[];for(var h in e.tribes)e.tribes[h]&&d.push({$regex:new RegExp(h,"i")});if(d.length>0&&(l=l.find({gsx$tribe:{$or:d}}),c=c.find({gsx$tribe:{$or:d}}),i=i.limit(0),r=r.limit(0),s=s.limit(0)),e.elements.none){if(e.elements.and){i=i.where((function(t){return e.elements.fire?""!=t.gsx$fire:""==t.gsx$fire})).where((function(t){return e.elements.air?""!=t.gsx$air:""==t.gsx$air})).where((function(t){return e.elements.earth?""!=t.gsx$earth:""==t.gsx$earth})).where((function(t){return e.elements.water?""!=t.gsx$water:""==t.gsx$water}));var x="";["fire","air","earth","water"].forEach((function(t){e.elements[t]&&(x+=t+", ")})),""!==x&&(l=l.find({gsx$elements:{$regex:new RegExp("^"+x.substring(0,x.length-2)+"s*$","i")}}))}else i=i.where((function(e){return""==e.gsx$fire})).where((function(e){return""==e.gsx$air})).where((function(e){return""==e.gsx$earth})).where((function(e){return""==e.gsx$water})),l=l.where((function(e){return""==e.gsx$elements}));r=r.limit(0),s=s.limit(0),c=c.limit(0)}else{var f=[],b=[];for(var y in e.elements){var $;if("none"!==y&&"and"!==y)if(e.elements[y])f.push({$regex:new RegExp(y,"i")}),b.push((($={})["gsx$"+y]={$gte:0},$))}f.length>0&&(e.elements.and?(l=l.find({gsx$elements:{$and:f}}),i=i.find({$and:b})):(l=l.find({gsx$elements:{$or:f}}),i=i.find({$or:b})),r=r.limit(0),s=s.limit(0),c=c.limit(0))}e.disciplines.courage>0&&(l=l.find({gsx$courage:{$gte:e.disciplines.courage}})),e.disciplines.power>0&&(l=l.find({gsx$power:{$gte:e.disciplines.power}})),e.disciplines.wisdom>0&&(l=l.find({gsx$wisdom:{$gte:e.disciplines.wisdom}})),e.disciplines.speed>0&&(l=l.find({gsx$speed:{$gte:e.disciplines.speed}})),e.energy.min>0&&(l=l.find({gsx$energy:{$gte:e.energy.min}})),e.energy.max>0&&e.energy.max>=e.energy.min&&(l=l.find({gsx$energy:{$lte:e.energy.max}})),(e.energy.min>0||e.energy.max>0||e.disciplines.courage>0||e.disciplines.power>0||e.disciplines.wisdom>0||e.disciplines.speed>0)&&(i=i.limit(0),r=r.limit(0),s=s.limit(0),c=c.limit(0)),""!==e.mcbp.min&&e.mcbp.min>=0&&(i=i.find({gsx$bp:{$gte:e.mcbp.min}}),l=l.find({gsx$mugicability:{$gte:e.mcbp.min}}),c=c.find({gsx$cost:{$gte:e.mcbp.min}})),""!==e.mcbp.max&&e.mcbp.max>=0&&e.mcbp.max>=e.mcbp.min&&(i=i.find({gsx$bp:{$lte:e.mcbp.max}}),l=l.find({gsx$mugicability:{$lte:e.mcbp.max}}),c=c.find({gsx$cost:{$lte:e.mcbp.max}})),(e.mcbp.max>0||e.mcbp.min>0)&&(r=r.limit(0),s=s.limit(0)),e.mull.unique&&(i=i.find({gsx$unique:{$gt:0}}),r=r.find({gsx$unique:{$gt:0}}),l=l.find({gsx$unique:{$gt:0}}),s=s.find({gsx$unique:{$gt:0}}),c=c.find({gsx$unique:{$gt:0}})),e.mull.loyal&&(i=i.limit(0),r=r.find({gsx$loyal:{$gt:0}}),l=l.find({gsx$loyal:{$gt:0}}),c=c.limit(0),s=s.limit(0)),e.mull.legendary&&(i=i.find({gsx$legendary:{$gt:0}}),r=r.find({gsx$legendary:{$gt:0}}),l=l.find({gsx$legendary:{$gt:0}}),s=s.find({gsx$legendary:{$gt:0}}),c=c.find({gsx$legendary:{$gt:0}})),e.mull.mixed&&(i=i.limit(0),l=l.find({gsx$loyal:{$lte:0}}),r=r.find({gsx$loyal:{$lte:0}}),c=c.limit(0),s=s.limit(0));var E=[];for(var v in e.sets)e.sets[v]&&E.push({$eq:v.toUpperCase()});if(0===E.length){var w=Object.keys(e.sets);for(var k in e.sets.proto||w.splice(w.indexOf("proto")),w)E.push({$eq:w[k].toUpperCase()})}E.length>0&&(i=i.find({gsx$set:{$or:E}}),r=r.find({gsx$set:{$or:E}}),l=l.find({gsx$set:{$or:E}}),s=s.find({gsx$set:{$or:E}}),c=c.find({gsx$set:{$or:E}}));var C=[];for(var N in e.rarity)e.rarity[N]&&C.push({$eq:N.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")});C.length>0&&(i=i.find({gsx$rarity:{$or:C}}),r=r.find({gsx$rarity:{$or:C}}),l=l.find({gsx$rarity:{$or:C}}),s=s.find({gsx$rarity:{$or:C}}),c=c.find({gsx$rarity:{$or:C}}));var I=!(e.types.attack|e.types.battlegear|e.types.creature|e.types.location|e.types.mugic);if(I||e.types.attack){var O=i.data();O.forEach((function(e){delete e.$loki})),t.insert(O)}if(I||e.types.battlegear){var j=r.data();j.forEach((function(e){delete e.$loki})),t.insert(j)}if(I||e.types.creature){var _=l.data();_.forEach((function(e){delete e.$loki})),t.insert(_)}if(I||e.types.location){var B=s.data();B.forEach((function(e){delete e.$loki})),t.insert(B)}if(I||e.types.mugic){var S=c.data();S.forEach((function(e){delete e.$loki})),t.insert(S)}return a.data()}(a.input);t.length>0?a.props.handleContent(t):a.props.handleContent([{text:"No Results Found"}])},a.search=a.search.bind($()(a)),a.handleChange=a.handleChange.bind($()(a)),a.reset=a.reset.bind($()(a)),a.handleTriggerClick=a.handleTriggerClick.bind($()(a)),a.props.handleContent([{text:"Loading..."}]),a.cleanInput(),a.parseQuery(),a.fetchCollapsed(),a}var a;return v()(t,e),d()(t,[{key:"updateQuery",value:(a=re()(ne.a.mark((function e(){var t,a,n=this;return ne.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t="",a=function(e){var t="";return Object.keys(n.input[e]).forEach((function(a){1==n.input[e][a]&&(t+=a+",")})),t.length>0?e+"="+t.replace(/\,$/,"&"):""},this.list.forEach((function(e){return t+=a(e)})),this.input.name&&(t+="name="+encodeURIComponent(this.input.name)+"&"),this.input.text&&(t+="text="+encodeURIComponent(this.input.text)+"&"),this.input.subtypes&&(t+="subtypes="+encodeURIComponent(this.input.subtypes)+"&"),this.input.disciplines.courage>0&&(t+="courage="+this.input.disciplines.courage+"&"),this.input.disciplines.power>0&&(t+="power="+this.input.disciplines.power+"&"),this.input.disciplines.wisdom>0&&(t+="wisdom="+this.input.disciplines.wisdom+"&"),this.input.disciplines.speed>0&&(t+="speed="+this.input.disciplines.speed+"&"),""==this.input.energy.min&&""==this.input.energy.max||(t+="energy=",""!=this.input.energy.min&&this.input.energy.min>=0&&(t+=this.input.energy.min),t+=",",""!=this.input.energy.max&&this.input.energy.max>=0&&(t+=this.input.energy.max),t+="&"),""==this.input.mcbp.min&&""==this.input.mcbp.max||(t+="mcbp=",""!=this.input.mcbp.min&&this.input.mcbp.min>=0&&(t+=this.input.mcbp.min),t+=",",""!=this.input.mcbp.max&&this.input.mcbp.max>=0&&(t+=this.input.mcbp.max),t+="&"),t=t.replace(/\&$/,""),this.props.history.push("/collection/?"+t);case 14:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;if(0==this.loaded)return q.a.LoadDB([{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){e.loaded=!0,e.search()})),N.a.createElement(j.h,null);var t=function(t,a,n){var i=[];return Object.keys(e.input[t]).forEach((function(r,l){i.push(N.a.createElement("label",{style:{display:a},key:l},N.a.createElement("input",{type:"checkbox",name:r,checked:e.input[t][r],onChange:function(a){return e.handleChange(a,t)}}),n(r)))})),i},a=t("sets","block",(function(e){return q.a.sets[e.toUpperCase()]})),n=t("types","block",(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),i=t("rarity","block",(function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")})),r=t("tribes","inline",(function(e){return N.a.createElement("span",null,N.a.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/"+e+".png"}))})),l=t("elements","inline",(function(e){return N.a.createElement("span",null,N.a.createElement("img",{className:"icon20",src:"/src/img/icons/elements/"+e+".png"})," ")})).slice(0,-2),s=[];return Object.keys(this.input.disciplines).forEach((function(t,a){s.push(N.a.createElement("label",{key:a,className:"disciplines"},N.a.createElement("input",{type:"text",name:t,value:e.input.disciplines[t],onChange:function(t){return e.handleChange(t,"disciplines")}})," ",N.a.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/"+t+".png"})," "))})),N.a.createElement("div",{className:"SearchForm"},N.a.createElement("form",{onSubmit:this.search},N.a.createElement("div",{className:"centeredButtons"},N.a.createElement("input",{id:"search",type:"submit",value:"Search"}),N.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset})),N.a.createElement("div",{className:"text-entry"},N.a.createElement("input",{type:"text",name:"name",placeholder:"Card Name",value:this.input.name,onChange:this.handleChange})),N.a.createElement("div",{className:"text-entry"},N.a.createElement("input",{type:"text",name:"text",placeholder:"Card Text",value:this.input.text,onChange:this.handleChange})),N.a.createElement("div",{className:"text-entry"},N.a.createElement("input",{type:"text",name:"subtypes",placeholder:"Subtypes | Initiative",value:this.input.subtypes,onChange:this.handleChange})),N.a.createElement("div",{className:"centeredCheckBox"},N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"flavor",value:!this.input.flavor,onChange:function(t){e.input.flavor=!t.target.checked}}),"Ignore Flavortext & Artist")),N.a.createElement("br",null),N.a.createElement("div",{className:"centeredCheckBox centeredSpacing"},N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"unique",checked:this.input.mull.unique,onChange:function(t){return e.handleChange(t,"mull")}}),"Unique"),N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"loyal",checked:this.input.mull.loyal,onChange:function(t){return e.handleChange(t,"mull")}}),"Loyal"),N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"legendary",checked:this.input.mull.legendary,onChange:function(t){return e.handleChange(t,"mull")}}),"Legendary")),N.a.createElement("div",{className:"centeredCheckBox"},N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"mixed",checked:this.input.mull.mixed,onChange:function(t){return e.handleChange(t,"mull")}}),"Non-Loyal")),N.a.createElement("hr",null),N.a.createElement("div",{className:"tribes"},r),N.a.createElement("hr",null),N.a.createElement("div",{className:"tribes"},l,N.a.createElement("label",{className:"none"},N.a.createElement("input",{type:"checkbox",name:"none",checked:this.input.elements.none,onChange:function(t){return e.handleChange(t,"elements")}}),N.a.createElement("span",null,"None"))),N.a.createElement("div",{className:"centeredButtons"},N.a.createElement("input",{type:"button",value:this.input.elements.none?"none":"or",className:"and",disabled:!this.input.elements.and,onClick:function(t){e.input.elements.and=!1}}),N.a.createElement("input",{type:"button",value:this.input.elements.none?"only":"and",className:"and",disabled:this.input.elements.and,onClick:function(t){e.input.elements.and=!0}})),N.a.createElement("hr",null),N.a.createElement(ke,{type:"disciplines",title:"Disciplines",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"disciplines"},s)),N.a.createElement(ke,{type:"energy",title:"Energy",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"minMax"},N.a.createElement("label",{className:"mcbp"},"Min ",N.a.createElement("input",{type:"text",name:"min",value:this.input.energy.min,onChange:function(t){return e.handleChange(t,"energy")}})),N.a.createElement("label",{className:"mcbp"},"Max ",N.a.createElement("input",{type:"text",name:"max",value:this.input.energy.max,onChange:function(t){return e.handleChange(t,"energy")}})))),N.a.createElement(ke,{type:"bpmc",title:"Build Points\nMugic Counters/Cost",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"minMax"},N.a.createElement("label",{className:"mcbp"},"Min ",N.a.createElement("input",{type:"text",name:"min",value:this.input.mcbp.min,onChange:function(t){return e.handleChange(t,"mcbp")}})),N.a.createElement("label",{className:"mcbp"},"Max ",N.a.createElement("input",{type:"text",name:"max",value:this.input.mcbp.max,onChange:function(t){return e.handleChange(t,"mcbp")}})))),N.a.createElement(ke,{type:"types",title:"Card Type",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"centeredCheckBox"},n)),N.a.createElement(ke,{type:"rarity",title:"Rarity",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"centeredCheckBox"},i)),N.a.createElement(ke,{type:"sets",title:"Sets",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"setBox"},N.a.createElement("div",{className:"centeredCheckBox",id:"sets"},a))),N.a.createElement("div",{className:"centeredButtons"},N.a.createElement("input",{id:"search",type:"submit",value:"Search"}),N.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset}))))}}]),t}(N.a.Component),U=k()(P.prototype,"loaded",[I.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=k()(P.prototype,"input",[I.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=k()(P.prototype,"collapsed",[I.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=P))||z)||z,ke=function(e){function t(e){var a;g()(this,t),(a=x()(this,b()(t).call(this,e))).open=!1,a.trigger="";var n=e.collapsed,i=e.type;return a.open=n[i],a.trigger=e.title,a}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.children,n=e.onClick;return N.a.createElement(se.a,{trigger:this.trigger,open:this.open,onOpen:function(){return n(t)},onClose:function(){return n(t)}},a)}}]),t}(N.a.Component);a(1043);a.d(t,"default",(function(){return Ne}));var Ce=Object(I.n)({style:{},get fixed(){return this.style},get isFixed(){return 0!==Object.entries(this.style).length},setFixed:function(e){if(window.matchMedia("(min-width: 975px)").matches){var t=document.getElementById("player").getBoundingClientRect().left+4,a=document.querySelector(".collection > .left").getBoundingClientRect().width+2;this.style={position:"fixed",top:0,left:"".concat(t,"px"),overflowY:"auto",height:"".concat(e,"px"),width:"".concat(a,"px")}}},removeFixed:function(){this.style={}}},{setFixed:I.f,removeFixed:I.f},{deep:!1}),Ne=Object(O.a)((function(e,t,a){return t}))(de=Object(O.b)((he=function(e){function t(){var e;g()(this,t),e=x()(this,b()(t).call(this)),m()(e,"loaded",xe,$()(e)),m()(e,"n",fe,$()(e)),m()(e,"p",be,$()(e)),m()(e,"ext",ye,$()(e)),m()(e,"content",$e,$()(e)),m()(e,"card_img",Ee,$()(e)),m()(e,"fixedStyles",ve,$()(e)),e.handleScroll=function(e){if(e.preventDefault(),window.pageYOffset>=235){var t=document.documentElement,a="scrollHeight",n="clientHeight",i=document.getElementById("side-menu"),r=document.querySelector(".collection > .right"),l=t[a]-window.innerHeight-t.scrollTop;if(l<=90){var s=t[n]-(90-l);Ce.setFixed(s)}else(i[a]>t[n]||i[n]!==t[n])&&Ce.setFixed(window.innerHeight);!function(e){if(r[n]1?N.a.createElement("button",{id:"buttons",onClick:function(){e.p--,window.scrollTo(0,0)}},"prev"):N.a.createElement("button",{id:"buttons",disabled:!0},"prev")," ",e.p0?" - "+t.gsx$types:null)),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):N.a.createElement("div",{className:"card battlegear"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||i)||i,S=Object(O.a)((function(e,t,a){return t}))(r=Object(O.b)(r=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){for(var e=this,t=this.props.card,a=[],n=0;n=0})," ",N.a.createElement(j.f,{element:"air",value:t.gsx$elements.toLowerCase().indexOf("air")>=0})," ",N.a.createElement(j.f,{element:"earth",value:t.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",N.a.createElement(j.f,{element:"water",value:t.gsx$elements.toLowerCase().indexOf("water")>=0})),N.a.createElement("span",null,a)),N.a.createElement("br",null),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),t.gsx$brainwashed&&N.a.createElement(N.a.Fragment,null,N.a.createElement("div",{className:"text_brainwashed"},"Brainwashed"),N.a.createElement(j.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed})),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&N.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",N.a.createElement("br",null)),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext)),N.a.createElement("br",null),N.a.createElement("div",{className:"stats"},N.a.createElement("div",{className:"energy"},t.gsx$courage,N.a.createElement(j.d,{discipline:"courage"})),N.a.createElement("div",{className:"energy"},t.gsx$power,N.a.createElement(j.d,{discipline:"power"})),N.a.createElement("div",{className:"energy"},t.gsx$wisdom,N.a.createElement(j.d,{discipline:"wisdom"})),N.a.createElement("div",{className:"energy"},t.gsx$speed,N.a.createElement(j.d,{discipline:"speed"})),N.a.createElement("div",{className:"energy",style:{fontWeight:"bold"}},t.gsx$energy))):N.a.createElement("div",{className:"card creature"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement("span",null,t.gsx$courage," ",N.a.createElement(j.d,{discipline:"courage"}))," ",N.a.createElement("span",null,t.gsx$power," ",N.a.createElement(j.d,{discipline:"power"}))," ",N.a.createElement("span",null,t.gsx$wisdom," ",N.a.createElement(j.d,{discipline:"wisdom"}))," ",N.a.createElement("span",null,t.gsx$speed," ",N.a.createElement(j.d,{discipline:"speed"}))," ",N.a.createElement("span",{style:{fontWeight:"bold"}},t.gsx$energy),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),t.gsx$brainwashed&&N.a.createElement(N.a.Fragment,null,N.a.createElement("div",{className:"text_brainwashed"},"Brainwashed"),N.a.createElement(j.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed})),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&N.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",N.a.createElement("br",null)),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||r)||r,F=Object(O.a)((function(e,t,a){return t}))(l=Object(O.b)(l=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?N.a.createElement("div",{className:"card location"},N.a.createElement("img",{className:"thumb",style:{float:"left",width:"100px",height:"98px"},src:q.a.base_image+(t.gsx$thumb||q.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),N.a.createElement("div",{className:"left"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.m,{set:t.gsx$set,rarity:t.gsx$rarity}),N.a.createElement("br",null),N.a.createElement("span",null,N.a.createElement(j.i,null)," Location",t.gsx$types.length>0?" - "+t.gsx$types:null),N.a.createElement("br",null),N.a.createElement(j.g,{initiative:t.gsx$initiative})),N.a.createElement("div",{className:"right"},N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):N.a.createElement("div",{className:"card location"},N.a.createElement("img",{className:"fullcard",src:q.a.base_image+(t.gsx$image||q.a.card_back)}),N.a.createElement("div",{className:"right"},N.a.createElement(j.k,{name:t.gsx$name}),N.a.createElement("br",null),N.a.createElement(j.a,{ability:t.gsx$ability}),N.a.createElement(j.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&N.a.createElement(N.a.Fragment,null,N.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),N.a.createElement("br",null)),N.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(N.a.Component))||l)||l,L=a(1039),A=function(){function e(t,a,n){g()(this,e),this.pitch=void 0,this.octave=void 0,this.duration=void 0,this.time=void 0,this.duration=t,this.pitch=n.pitch,this.octave=n.octave,this.time=a}return d()(e,[{key:"note",get:function(){return{time:this.time+"/4n",pitch:this.pitch+this.octave.toString(),duration:this.duration+"/4n"}}}]),e}(),M=function(){function e(){g()(this,e),this.synth=void 0,this.part=void 0,this.transport=void 0,this.synth=(new L.b).toDestination(),this.part=new L.a,L.c.bpm.value=240}return d()(e,null,[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),d()(e,[{key:"play",value:function(e){var t=this;L.c.stop(),this.part.dispose();try{var a=G(e);this.part=new L.a((function(e,a){t.synth.triggerAttackRelease(a.pitch,a.duration,e)}),a.map((function(e){return e.note}))).start(),L.c.start()}catch(e){return void console.log(e)}}}]),e}();M.instance=void 0;var R,T,z,P,U,H,D,G=function(e){var t=[],a=0;return e.split(" ").forEach((function(e){var n=e.match(/(?:[1-8]{1})/);if(null===n)throw new Error("invalid_input");var i=parseInt(n[0]),r=e.split(/(?:[1-8]{1})/)[1];t.push(new A(i,a,J(r,t))),a+=i})),t},J=function(e,t){var a=function(){if(0===t.length)return 4;var a=t.length,n=Y(e),i=Y(t[a-1].pitch),r=W(i,n);return r<3?0===r?t[a-1].octave:i>5?n<3?t[a-1].octave+1:t[a-1].octave:i<3&&n>5?t[a-1].octave-1:t[a-1].octave:Q(n,a,t)}();return{pitch:e,octave:a}},Q=function e(t,a,n){if(a<2)return n[a-1].octave;var i=Y(n[a-1].pitch),r=Y(n[a-2].pitch);return r>i?i3.5?a-1:a>4.5?a-2:a>5.5?a-3:a>6.5?a-4:a},Y=function(e){var t;switch(e.charAt(0).toUpperCase()){case"A":t=1;break;case"B":t=2;break;case"C":t=3;break;case"D":t=4;break;case"E":t=5;break;case"F":t=6;break;case"G":t=7;break;default:t=3}return e.length>1&&("b"===e.charAt(1).toLowerCase()?t-=.5:"#"===e.charAt(1)&&(t+=.5)),t},V=M.getInstance(),K=function(e){return N.a.createElement(N.a.Fragment,null,N.a.createElement("input",{type:"button",value:"Play",onClick:function(){V.play(e.notes)}}))},X=a(60),Z=Object(O.a)((function(e,t,a){return t}))(R=Object(O.b)(R=function(e){function t(){return g()(this,t),x()(this,b()(t).apply(this,arguments))}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.card,n=(t.history,[]);if(0==a.gsx$cost)n.push(N.a.createElement(j.j,{tribe:a.gsx$tribe,key:0,amount:"0"}));else if("x"==a.gsx$cost.toLowerCase())n.push(N.a.createElement(j.j,{tribe:a.gsx$tribe,key:0,amount:"x"}));else if(a.gsx$cost>5)n.push(N.a.createElement(j.j,{tribe:a.gsx$tribe,key:0,amount:a.gsx$cost}));else for(var i=0;i=0&&(a.input.energy.min=l[0]),l[1]>=0&&(a.input.energy.max=l[1])}if(t.hasOwnProperty("mcbp")){var s=t.mcbp.split(",");s[0]>=0&&(a.input.mcbp.min=s[0]),s[1]>=0&&(a.input.mcbp.max=s[1])}},a.reset=function(e){e.preventDefault(),e.stopPropagation(),a.cleanInput()},a.handleChange=function(e,t){var n=e.target,i="checkbox"===n.type?n.checked:n.value,r=n.name;t?a.input[t][r]=i:a.input[r]=i},a.search=function(e){e&&(e.preventDefault(),e.stopPropagation(),a.updateQuery());var t=function(e){var t=new oe.a("filter.db").addCollection("filter"),a=t.addDynamicView("filter");a.applySimpleSort("gsx$name");var n,i=q.a.cards.attacks.chain(),r=q.a.cards.battlegear.chain(),l=q.a.cards.creatures.chain(),s=q.a.cards.locations.chain(),c=q.a.cards.mugic.chain();if(i=i.where((function(e){return""!=e.gsx$set})),r=r.where((function(e){return""!=e.gsx$set})),l=l.where((function(e){return""!=e.gsx$set})),s=s.where((function(e){return""!=e.gsx$set})),c=c.where((function(e){return""!=e.gsx$set})),e.name.length>0){var o=me(e.name);i=i.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),r=r.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),l=l.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),s=s.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]}),c=c.find({$or:[{gsx$name:{$regex:o}},{gsx$tags:{$regex:o}}]})}if(e.text.length>0){var m=e.text.split(",").filter(Boolean).map((function(e){return{$regex:me(e)}})),u=me(e.text),g=(n=[{gsx$tags:{$or:m}},{gsx$ability:{$regex:u}}],e.flavor&&(n.push({gsx$flavortext:{$or:m}}),n.push({gsx$artist:{$or:m}})),n);i=i.find({$or:g}),r=r.find({$or:g}),l=l.find({$or:g.concat([{gsx$brainwashed:{$regex:u}}])}),s=s.find({$or:g}),c=c.find({$or:g})}if(e.subtypes.length>0){var p=e.subtypes.split(",").filter(Boolean).map((function(e){return{$regex:me(e)}}));l=l.find({gsx$types:{$or:p}}),s=s.find({$or:[{gsx$initiative:{$or:p}},{gsx$types:{$or:p}}]}),i=i.limit(0),r=r.find({gsx$types:{$or:p}}),c=c.limit(0)}var d=[];for(var h in e.tribes)e.tribes[h]&&d.push({$regex:new RegExp(h,"i")});if(d.length>0&&(l=l.find({gsx$tribe:{$or:d}}),c=c.find({gsx$tribe:{$or:d}}),i=i.limit(0),r=r.limit(0),s=s.limit(0)),e.elements.none){if(e.elements.and){i=i.where((function(t){return e.elements.fire?""!=t.gsx$fire:""==t.gsx$fire})).where((function(t){return e.elements.air?""!=t.gsx$air:""==t.gsx$air})).where((function(t){return e.elements.earth?""!=t.gsx$earth:""==t.gsx$earth})).where((function(t){return e.elements.water?""!=t.gsx$water:""==t.gsx$water}));var x="";["fire","air","earth","water"].forEach((function(t){e.elements[t]&&(x+=t+", ")})),""!==x&&(l=l.find({gsx$elements:{$regex:new RegExp("^"+x.substring(0,x.length-2)+"s*$","i")}}))}else i=i.where((function(e){return""==e.gsx$fire})).where((function(e){return""==e.gsx$air})).where((function(e){return""==e.gsx$earth})).where((function(e){return""==e.gsx$water})),l=l.where((function(e){return""==e.gsx$elements}));r=r.limit(0),s=s.limit(0),c=c.limit(0)}else{var f=[],b=[];for(var y in e.elements){var $;if("none"!==y&&"and"!==y)if(e.elements[y])f.push({$regex:new RegExp(y,"i")}),b.push((($={})["gsx$"+y]={$gte:0},$))}f.length>0&&(e.elements.and?(l=l.find({gsx$elements:{$and:f}}),i=i.find({$and:b})):(l=l.find({gsx$elements:{$or:f}}),i=i.find({$or:b})),r=r.limit(0),s=s.limit(0),c=c.limit(0))}e.disciplines.courage>0&&(l=l.find({gsx$courage:{$gte:e.disciplines.courage}})),e.disciplines.power>0&&(l=l.find({gsx$power:{$gte:e.disciplines.power}})),e.disciplines.wisdom>0&&(l=l.find({gsx$wisdom:{$gte:e.disciplines.wisdom}})),e.disciplines.speed>0&&(l=l.find({gsx$speed:{$gte:e.disciplines.speed}})),e.energy.min>0&&(l=l.find({gsx$energy:{$gte:e.energy.min}})),e.energy.max>0&&e.energy.max>=e.energy.min&&(l=l.find({gsx$energy:{$lte:e.energy.max}})),(e.energy.min>0||e.energy.max>0||e.disciplines.courage>0||e.disciplines.power>0||e.disciplines.wisdom>0||e.disciplines.speed>0)&&(i=i.limit(0),r=r.limit(0),s=s.limit(0),c=c.limit(0)),""!==e.mcbp.min&&e.mcbp.min>=0&&(i=i.find({gsx$bp:{$gte:e.mcbp.min}}),l=l.find({gsx$mugicability:{$gte:e.mcbp.min}}),c=c.find({gsx$cost:{$gte:e.mcbp.min}})),""!==e.mcbp.max&&e.mcbp.max>=0&&e.mcbp.max>=e.mcbp.min&&(i=i.find({gsx$bp:{$lte:e.mcbp.max}}),l=l.find({gsx$mugicability:{$lte:e.mcbp.max}}),c=c.find({gsx$cost:{$lte:e.mcbp.max}})),(e.mcbp.max>0||e.mcbp.min>0)&&(r=r.limit(0),s=s.limit(0)),e.mull.unique&&(i=i.find({gsx$unique:{$gt:0}}),r=r.find({gsx$unique:{$gt:0}}),l=l.find({gsx$unique:{$gt:0}}),s=s.find({gsx$unique:{$gt:0}}),c=c.find({gsx$unique:{$gt:0}})),e.mull.loyal&&(i=i.limit(0),r=r.find({gsx$loyal:{$gt:0}}),l=l.find({gsx$loyal:{$gt:0}}),c=c.limit(0),s=s.limit(0)),e.mull.legendary&&(i=i.find({gsx$legendary:{$gt:0}}),r=r.find({gsx$legendary:{$gt:0}}),l=l.find({gsx$legendary:{$gt:0}}),s=s.find({gsx$legendary:{$gt:0}}),c=c.find({gsx$legendary:{$gt:0}})),e.mull.mixed&&(i=i.limit(0),l=l.find({gsx$loyal:{$lte:0}}),r=r.find({gsx$loyal:{$lte:0}}),c=c.limit(0),s=s.limit(0));var E=[];for(var v in e.sets)e.sets[v]&&E.push({$eq:v.toUpperCase()});if(0===E.length){var w=Object.keys(e.sets);for(var k in e.sets.proto||w.splice(w.indexOf("proto")),w)E.push({$eq:w[k].toUpperCase()})}E.length>0&&(i=i.find({gsx$set:{$or:E}}),r=r.find({gsx$set:{$or:E}}),l=l.find({gsx$set:{$or:E}}),s=s.find({gsx$set:{$or:E}}),c=c.find({gsx$set:{$or:E}}));var C=[];for(var N in e.rarity)e.rarity[N]&&C.push({$eq:N.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")});C.length>0&&(i=i.find({gsx$rarity:{$or:C}}),r=r.find({gsx$rarity:{$or:C}}),l=l.find({gsx$rarity:{$or:C}}),s=s.find({gsx$rarity:{$or:C}}),c=c.find({gsx$rarity:{$or:C}}));var I=!(e.types.attack|e.types.battlegear|e.types.creature|e.types.location|e.types.mugic);if(I||e.types.attack){var O=i.data();O.forEach((function(e){delete e.$loki})),t.insert(O)}if(I||e.types.battlegear){var j=r.data();j.forEach((function(e){delete e.$loki})),t.insert(j)}if(I||e.types.creature){var _=l.data();_.forEach((function(e){delete e.$loki})),t.insert(_)}if(I||e.types.location){var B=s.data();B.forEach((function(e){delete e.$loki})),t.insert(B)}if(I||e.types.mugic){var S=c.data();S.forEach((function(e){delete e.$loki})),t.insert(S)}return a.data()}(a.input);t.length>0?a.props.handleContent(t):a.props.handleContent([{text:"No Results Found"}])},a.search=a.search.bind($()(a)),a.handleChange=a.handleChange.bind($()(a)),a.reset=a.reset.bind($()(a)),a.handleTriggerClick=a.handleTriggerClick.bind($()(a)),a.props.handleContent([{text:"Loading..."}]),a.cleanInput(),a.parseQuery(),a.fetchCollapsed(),a}var a;return v()(t,e),d()(t,[{key:"updateQuery",value:(a=re()(ne.a.mark((function e(){var t,a,n=this;return ne.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t="",a=function(e){var t="";return Object.keys(n.input[e]).forEach((function(a){1==n.input[e][a]&&(t+=a+",")})),t.length>0?e+"="+t.replace(/\,$/,"&"):""},this.list.forEach((function(e){return t+=a(e)})),this.input.name&&(t+="name="+encodeURIComponent(this.input.name)+"&"),this.input.text&&(t+="text="+encodeURIComponent(this.input.text)+"&"),this.input.subtypes&&(t+="subtypes="+encodeURIComponent(this.input.subtypes)+"&"),this.input.disciplines.courage>0&&(t+="courage="+this.input.disciplines.courage+"&"),this.input.disciplines.power>0&&(t+="power="+this.input.disciplines.power+"&"),this.input.disciplines.wisdom>0&&(t+="wisdom="+this.input.disciplines.wisdom+"&"),this.input.disciplines.speed>0&&(t+="speed="+this.input.disciplines.speed+"&"),""==this.input.energy.min&&""==this.input.energy.max||(t+="energy=",""!=this.input.energy.min&&this.input.energy.min>=0&&(t+=this.input.energy.min),t+=",",""!=this.input.energy.max&&this.input.energy.max>=0&&(t+=this.input.energy.max),t+="&"),""==this.input.mcbp.min&&""==this.input.mcbp.max||(t+="mcbp=",""!=this.input.mcbp.min&&this.input.mcbp.min>=0&&(t+=this.input.mcbp.min),t+=",",""!=this.input.mcbp.max&&this.input.mcbp.max>=0&&(t+=this.input.mcbp.max),t+="&"),t=t.replace(/\&$/,""),this.props.history.push("/collection/?"+t);case 14:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;if(0==this.loaded)return q.a.LoadDB([{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){e.loaded=!0,e.search()})),N.a.createElement(j.h,null);var t=function(t,a,n){var i=[];return Object.keys(e.input[t]).forEach((function(r,l){i.push(N.a.createElement("label",{style:{display:a},key:l},N.a.createElement("input",{type:"checkbox",name:r,checked:e.input[t][r],onChange:function(a){return e.handleChange(a,t)}}),n(r)))})),i},a=t("sets","block",(function(e){return q.a.sets[e.toUpperCase()]})),n=t("types","block",(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),i=t("rarity","block",(function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")})),r=t("tribes","inline",(function(e){return N.a.createElement("span",null,N.a.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/"+e+".png"}))})),l=t("elements","inline",(function(e){return N.a.createElement("span",null,N.a.createElement("img",{className:"icon20",src:"/src/img/icons/elements/"+e+".png"})," ")})).slice(0,-2),s=[];return Object.keys(this.input.disciplines).forEach((function(t,a){s.push(N.a.createElement("label",{key:a,className:"disciplines"},N.a.createElement("input",{type:"text",name:t,value:e.input.disciplines[t],onChange:function(t){return e.handleChange(t,"disciplines")}})," ",N.a.createElement("img",{className:"icon20",style:{verticalAlign:"bottom"},src:"/src/img/icons/disciplines/"+t+".png"})," "))})),N.a.createElement("div",{className:"SearchForm"},N.a.createElement("form",{onSubmit:this.search},N.a.createElement("div",{className:"centeredButtons"},N.a.createElement("input",{id:"search",type:"submit",value:"Search"}),N.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset})),N.a.createElement("div",{className:"text-entry"},N.a.createElement("input",{type:"text",name:"name",placeholder:"Card Name",value:this.input.name,onChange:this.handleChange})),N.a.createElement("div",{className:"text-entry"},N.a.createElement("input",{type:"text",name:"text",placeholder:"Card Text",value:this.input.text,onChange:this.handleChange})),N.a.createElement("div",{className:"text-entry"},N.a.createElement("input",{type:"text",name:"subtypes",placeholder:"Subtypes | Initiative",value:this.input.subtypes,onChange:this.handleChange})),N.a.createElement("div",{className:"centeredCheckBox"},N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"flavor",value:!this.input.flavor,onChange:function(t){e.input.flavor=!t.target.checked}}),"Ignore Flavortext & Artist")),N.a.createElement("br",null),N.a.createElement("div",{className:"centeredCheckBox centeredSpacing"},N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"unique",checked:this.input.mull.unique,onChange:function(t){return e.handleChange(t,"mull")}}),"Unique"),N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"loyal",checked:this.input.mull.loyal,onChange:function(t){return e.handleChange(t,"mull")}}),"Loyal"),N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"legendary",checked:this.input.mull.legendary,onChange:function(t){return e.handleChange(t,"mull")}}),"Legendary")),N.a.createElement("div",{className:"centeredCheckBox"},N.a.createElement("label",{className:"mull"},N.a.createElement("input",{type:"checkbox",name:"mixed",checked:this.input.mull.mixed,onChange:function(t){return e.handleChange(t,"mull")}}),"Non-Loyal")),N.a.createElement("hr",null),N.a.createElement("div",{className:"tribes"},r),N.a.createElement("hr",null),N.a.createElement("div",{className:"tribes"},l,N.a.createElement("label",{className:"none"},N.a.createElement("input",{type:"checkbox",name:"none",checked:this.input.elements.none,onChange:function(t){return e.handleChange(t,"elements")}}),N.a.createElement("span",null,"None"))),N.a.createElement("div",{className:"centeredButtons"},N.a.createElement("input",{type:"button",value:this.input.elements.none?"none":"or",className:"and",disabled:!this.input.elements.and,onClick:function(t){e.input.elements.and=!1}}),N.a.createElement("input",{type:"button",value:this.input.elements.none?"only":"and",className:"and",disabled:this.input.elements.and,onClick:function(t){e.input.elements.and=!0}})),N.a.createElement("hr",null),N.a.createElement(ke,{type:"disciplines",title:"Disciplines",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"disciplines"},s)),N.a.createElement(ke,{type:"energy",title:"Energy",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"minMax"},N.a.createElement("label",{className:"mcbp"},"Min ",N.a.createElement("input",{type:"text",name:"min",value:this.input.energy.min,onChange:function(t){return e.handleChange(t,"energy")}})),N.a.createElement("label",{className:"mcbp"},"Max ",N.a.createElement("input",{type:"text",name:"max",value:this.input.energy.max,onChange:function(t){return e.handleChange(t,"energy")}})))),N.a.createElement(ke,{type:"bpmc",title:"Build Points\nMugic Counters/Cost",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"minMax"},N.a.createElement("label",{className:"mcbp"},"Min ",N.a.createElement("input",{type:"text",name:"min",value:this.input.mcbp.min,onChange:function(t){return e.handleChange(t,"mcbp")}})),N.a.createElement("label",{className:"mcbp"},"Max ",N.a.createElement("input",{type:"text",name:"max",value:this.input.mcbp.max,onChange:function(t){return e.handleChange(t,"mcbp")}})))),N.a.createElement(ke,{type:"types",title:"Card Type",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"centeredCheckBox"},n)),N.a.createElement(ke,{type:"rarity",title:"Rarity",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"centeredCheckBox"},i)),N.a.createElement(ke,{type:"sets",title:"Sets",collapsed:this.collapsed,onClick:this.handleTriggerClick},N.a.createElement("div",{className:"setBox"},N.a.createElement("div",{className:"centeredCheckBox",id:"sets"},a))),N.a.createElement("div",{className:"centeredButtons"},N.a.createElement("input",{id:"search",type:"submit",value:"Search"}),N.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset}))))}}]),t}(N.a.Component),U=k()(P.prototype,"loaded",[I.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=k()(P.prototype,"input",[I.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=k()(P.prototype,"collapsed",[I.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=P))||z)||z,ke=function(e){function t(e){var a;g()(this,t),(a=x()(this,b()(t).call(this,e))).open=!1,a.trigger="";var n=e.collapsed,i=e.type;return a.open=n[i],a.trigger=e.title,a}return v()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.children,n=e.onClick;return N.a.createElement(se.a,{trigger:this.trigger,open:this.open,onOpen:function(){return n(t)},onClose:function(){return n(t)}},a)}}]),t}(N.a.Component),Ce=(a(1043),Object(I.n)({style:{},get fixed(){return this.style},get isFixed(){return 0!==Object.entries(this.style).length},setFixed:function(e){if(window.matchMedia("(min-width: 975px)").matches){var t=document.getElementById("player").getBoundingClientRect().left+4,a=document.querySelector(".collection > .left").getBoundingClientRect().width+2;this.style={position:"fixed",top:0,left:"".concat(t,"px"),overflowY:"auto",height:"".concat(e,"px"),width:"".concat(a,"px")}}},removeFixed:function(){this.style={}}},{setFixed:I.f,removeFixed:I.f},{deep:!1})),Ne=Object(O.a)((function(e,t,a){return t}))(de=Object(O.b)((he=function(e){function t(){var e;g()(this,t),e=x()(this,b()(t).call(this)),m()(e,"loaded",xe,$()(e)),m()(e,"n",fe,$()(e)),m()(e,"p",be,$()(e)),m()(e,"ext",ye,$()(e)),m()(e,"content",$e,$()(e)),m()(e,"card_img",Ee,$()(e)),m()(e,"fixedStyles",ve,$()(e)),e.handleScroll=function(e){if(e.preventDefault(),window.pageYOffset>=235){var t=document.documentElement,a="scrollHeight",n="clientHeight",i=document.getElementById("side-menu"),r=document.querySelector(".collection > .right"),l=t[a]-window.innerHeight-t.scrollTop;if(l<=90){var s=t[n]-(90-l);Ce.setFixed(s)}else(i[a]>t[n]||i[n]!==t[n])&&Ce.setFixed(window.innerHeight);!function(e){if(r[n]1?N.a.createElement("button",{id:"buttons",onClick:function(){e.p--,window.scrollTo(0,0)}},"prev"):N.a.createElement("button",{id:"buttons",disabled:!0},"prev")," ",e.p-1||a.gsx$exclusive.includes("Starter"))return e(t);if(c.push(a.gsx$name),"Creatures"!=a.gsx$type)l.push(y.a.createElement("div",{key:i++,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+(a.gsx$image||I.a.card_back),'")')}}));else{var n=o(a.gsx$courage),r=o(a.gsx$power),s=o(a.gsx$wisdom),u=o(a.gsx$speed),m=(p=a.gsx$energy,(d=parseInt(p)-5)<0&&(d=0),5*Math.floor(3*Math.random())+d);l.push(y.a.createElement("div",{key:i++,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+(a.gsx$image||I.a.card_back),'")')}},y.a.createElement("div",{className:"stats"},y.a.createElement("span",{key:"courage"},n),y.a.createElement("span",{key:"power"},r),y.a.createElement("span",{key:"wisdom"},s),y.a.createElement("span",{key:"speed"},u),y.a.createElement("span",{key:"energy"},m))))}var p,d}else l.push(y.a.createElement("div",{key:i++,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+I.a.card_back,'")')}}))},m=function(e,t){s.applyFind({gsx$set:r}).applyFind({gsx$rarity:e});for(var a=s.data(),n=0;n-1?(m("Common",6),m("Rare",2),m(p(),1)):(m("Common",4),m("Uncommon",3),m("Rare",1),m(p(),1)),c=[];return t.filter.removeDynamicView("set"),l}},B=j()(A.prototype,"filter",[M.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A),L=H.generate,Y=H.setupDB,Q=function(e){var t=Object(E.useState)(!1),a=J()(t,2),n=a[0],r=a[1],l=Object(E.useState)(""),c=J()(l,2),i=c[0],s=c[1],o=Object(E.useState)([]),u=J()(o,2),m=u[0],p=u[1],d=Object(E.useState)([]),f=J()(d,2),g=f[0],h=f[1],b=Object(E.useState)(1),v=J()(b,2),k=v[0],$=v[1];if(Object(E.useEffect)((function(){I.a.LoadDB([{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){Y(),r(!0)}));for(var e=[],t=0;t<9;t++)e.push(y.a.createElement("div",{key:t,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+I.a.card_back,'")')}}));h(e);var a=[],n=1;for(var l in I.a.sets)if(a.push(y.a.createElement("option",{key:n++,value:l},I.a.sets[l])),"PE1"===l)break;p(a)}),[]),0==n)return y.a.createElement(U.h,null);return y.a.createElement("div",{className:"packsim"},y.a.createElement(N.a,x()({as:P.b},z.a.link,{to:"/EnterTheCode/"}),"Enter The Code"),y.a.createElement("br",null),y.a.createElement("br",null),y.a.createElement("form",{onSubmit:function(e){event.preventDefault(),event.stopPropagation(),h(L({packs:k,set:i}))}},y.a.createElement("label",null,"Packs:",y.a.createElement("input",{name:"packs",type:"number",value:k,min:"1",max:"24",style:{width:"32px",padding:"0px"},onChange:function(e){e.target.value>24&&(e.target.value=24),$(e.target.value)}})),y.a.createElement("select",{name:"set",value:i,onChange:function(e){s(e.target.value)}},y.a.createElement("option",{defaultValue:"selected",hidden:!0,style:{fontStyle:"italic"}},"Select a Set"),m),y.a.createElement("br",null),y.a.createElement("br",null),y.a.createElement("input",{disabled:!i,type:"submit",value:"Open Packs"})),y.a.createElement("br",null),y.a.createElement("br",null),y.a.createElement("div",{className:"pack"},g))};a.d(t,"default",(function(){return W}));var W=Object(b.a)((function(e,t,a){return t}))(F=Object(b.b)(F=function(e){function t(){return s()(this,t),p()(this,f()(t).apply(this,arguments))}return h()(t,e),u()(t,[{key:"render",value:function(){return y.a.createElement(X,this.props)}}]),t}(y.a.Component))||F)||F;function X(e){var t=e.match;return y.a.createElement("div",{className:"pack"},y.a.createElement(v.b,{exact:!0,path:t.url,component:T}),y.a.createElement(v.b,{path:"".concat(t.url,"/PackSimulator"),component:Q}))}}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1040:function(e,t,a){},1047:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return W}));var n,r,l,c,i=a(82),s=a.n(i),o=a(63),u=a.n(o),m=a(166),p=a.n(m),d=a(167),f=a.n(d),g=a(168),h=a.n(g),E=a(0),y=a.n(E),b=a(128),v=a(60),k=a(169),x=a.n(k),$=a(102),w=a.n($),S=a(817),C=a.n(S),O=a(64),j=a.n(O),M=(a(816),a(3)),P=a(83),R=a(1035),N=a.n(R),D=a(1036),_=a.n(D),I=a(109),U=a(55),z=a(171),V=(a(1040),Object.create(z.a));V.input={width:"1.2em",height:"1.4em",font:"inherit",textAlign:"center",margin:"0.05em",backgroundColor:"rgba(0,0,0,0)",color:"white"},V.inputGroup={alignItems:"center"},V.hyphen={background:"white",height:"0.1em",width:".5em",display:"inline-block"};var A,B,F,T=Object(b.a)((function(e,t,a){return t}))(n=Object(b.b)((r=function(e){function t(){var e,a;s()(this,t);for(var n=arguments.length,r=new Array(n),i=0;i-1||a.gsx$exclusive.includes("Starter"))return e(t);if(c.push(a.gsx$name),"Creatures"!=a.gsx$type)l.push(y.a.createElement("div",{key:i++,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+(a.gsx$image||I.a.card_back),'")')}}));else{var n=o(a.gsx$courage),r=o(a.gsx$power),s=o(a.gsx$wisdom),u=o(a.gsx$speed),m=(p=a.gsx$energy,(d=parseInt(p)-5)<0&&(d=0),5*Math.floor(3*Math.random())+d);l.push(y.a.createElement("div",{key:i++,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+(a.gsx$image||I.a.card_back),'")')}},y.a.createElement("div",{className:"stats"},y.a.createElement("span",{key:"courage"},n),y.a.createElement("span",{key:"power"},r),y.a.createElement("span",{key:"wisdom"},s),y.a.createElement("span",{key:"speed"},u),y.a.createElement("span",{key:"energy"},m))))}var p,d}else l.push(y.a.createElement("div",{key:i++,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+I.a.card_back,'")')}}))},m=function(e,t){s.applyFind({gsx$set:r}).applyFind({gsx$rarity:e});for(var a=s.data(),n=0;n-1?(m("Common",6),m("Rare",2),m(p(),1)):(m("Common",4),m("Uncommon",3),m("Rare",1),m(p(),1)),c=[];return t.filter.removeDynamicView("set"),l}},B=j()(A.prototype,"filter",[M.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A),L=H.generate,Y=H.setupDB,Q=function(e){var t=Object(E.useState)(!1),a=J()(t,2),n=a[0],r=a[1],l=Object(E.useState)(""),c=J()(l,2),i=c[0],s=c[1],o=Object(E.useState)([]),u=J()(o,2),m=u[0],p=u[1],d=Object(E.useState)([]),f=J()(d,2),g=f[0],h=f[1],b=Object(E.useState)(1),v=J()(b,2),k=v[0],$=v[1];if(Object(E.useEffect)((function(){I.a.LoadDB([{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){Y(),r(!0)}));for(var e=[],t=0;t<9;t++)e.push(y.a.createElement("div",{key:t,className:"card",style:{backgroundImage:'url("'.concat(I.a.base_image+I.a.card_back,'")')}}));h(e);var a=[],n=1;for(var l in I.a.sets)if(a.push(y.a.createElement("option",{key:n++,value:l},I.a.sets[l])),"PE1"===l)break;p(a)}),[]),0==n)return y.a.createElement(U.h,null);return y.a.createElement("div",{className:"packsim"},y.a.createElement(N.a,x()({as:P.b},z.a.link,{to:"/EnterTheCode/"}),"Enter The Code"),y.a.createElement("br",null),y.a.createElement("br",null),y.a.createElement("form",{onSubmit:function(e){event.preventDefault(),event.stopPropagation(),h(L({packs:k,set:i}))}},y.a.createElement("label",null,"Packs:",y.a.createElement("input",{name:"packs",type:"number",value:k,min:"1",max:"24",style:{width:"32px",padding:"0px"},onChange:function(e){e.target.value>24&&(e.target.value=24),$(e.target.value)}})),y.a.createElement("select",{name:"set",value:i,onChange:function(e){s(e.target.value)}},y.a.createElement("option",{defaultValue:"selected",hidden:!0,style:{fontStyle:"italic"}},"Select a Set"),m),y.a.createElement("br",null),y.a.createElement("br",null),y.a.createElement("input",{disabled:!i,type:"submit",value:"Open Packs"})),y.a.createElement("br",null),y.a.createElement("br",null),y.a.createElement("div",{className:"pack"},g))},W=Object(b.a)((function(e,t,a){return t}))(F=Object(b.b)(F=function(e){function t(){return s()(this,t),p()(this,f()(t).apply(this,arguments))}return h()(t,e),u()(t,[{key:"render",value:function(){return y.a.createElement(X,this.props)}}]),t}(y.a.Component))||F)||F;function X(e){var t=e.match;return y.a.createElement("div",{className:"pack"},y.a.createElement(v.b,{exact:!0,path:t.url,component:T}),y.a.createElement(v.b,{path:"".concat(t.url,"/PackSimulator"),component:Q}))}}}]); \ No newline at end of file diff --git a/build/5.js b/build/5.js index 01f3186..ef0f911 100644 --- a/build/5.js +++ b/build/5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1042:function(e,t,a){},1045:function(e,t,a){"use strict";a.r(t);var n,r,l,c,i,s,o,m,u,g,p,d,E,h,f,x=a(82),b=a.n(x),v=a(63),$=a.n(v),y=a(166),w=a.n(y),k=a(167),C=a.n(k),R=a(168),N=a.n(R),O=a(169),I=a.n(O),F=a(0),L=a.n(F),U=a(3),_=a(128),j=a(60),B=a(83),A=a(109),M=a(102),S=a.n(M),D=a(817),q=a.n(D),V=a(64),z=a.n(V),H=(a(816),n=function(e){function t(){var e,a;b()(this,t);for(var n=arguments.length,l=new Array(n),c=0;ci&&(c=0,u++,n+1s&&(n=0,l=0,u=0))},a.render=function(){var t=a.width/o,c=a.height/m,i=e.width/2-t/2,s=e.height/2-c/2;a.context.clearRect(i,s,t,c),a.context.drawImage(r,i,s,t,c,i,s,t,c),a.context.drawImage(a.image,t*n,c*l,t,c,i,s,t,c)},a}({context:e.getContext("2d"),width:448,height:448,image:l,w_frames:7,h_frames:7,frames:47,ticksPerFrame:4}),l.addEventListener("load",(function e(){t.coin&&(window.requestAnimationFrame(e),t.coin.update(),t.coin.render())})),l.src=A.a.base_image+"0B6oyUfwoM3u1cC1vaGVkU1J1ZzQ"}}},{key:"render",value:function(){return L.a.createElement(F.Fragment,null,L.a.createElement("canvas",{ref:this.updateCanvas.bind(this),height:"600px"}))}}]),t}(L.a.Component),r=z()(n.prototype,"coin",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),n),T=a(1035),P=a.n(T),Q=a(170),W=a.n(Q),J=a(101),Y=a(55),G=Object(_.a)((function(e,t,a){return t}))(s=Object(_.b)((o=function(e){function t(e){var a;return b()(this,t),a=w()(this,C()(t).call(this,e)),S()(a,"input",m,q()(a)),S()(a,"query",u,q()(a)),a.search=function(e){e.preventDefault(),e.stopPropagation(),a.props.history.push("/portal/Search/?"+encodeURIComponent(a.query)),a.input=a.query},a.query=a.input=decodeURIComponent(a.props.location.search.substr(1)),a}return N()(t,e),$()(t,[{key:"render",value:function(){var e=this;return L.a.createElement("div",{className:"search"},L.a.createElement("form",{onSubmit:this.search},L.a.createElement("input",{type:"text",value:this.query,autoFocus:!0,onChange:function(t){return e.query=t.target.value}}),L.a.createElement("button",{type:"submit"},L.a.createElement(Y.n,null))),L.a.createElement(Z,{string:this.input}))}}]),t}(L.a.Component),m=z()(o.prototype,"input",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=z()(o.prototype,"query",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=o))||s)||s,Z=Object(_.a)((function(e,t,a){return t}))(l=Object(_.b)((c=function(e){function t(){var e;return b()(this,t),e=w()(this,C()(t).call(this)),S()(e,"loaded",i,q()(e)),e.filter=new W.a("filter.db"),e}return N()(t,e),$()(t,[{key:"render",value:function(){var e=this;if(0==this.loaded)return A.a.LoadDB([{portal:"attacks"},{portal:"battlegear"},{portal:"creatures"},{portal:"locations"},{portal:"mugic"},{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){e.loaded=!0})),L.a.createElement("span",null,"Loading...");var t=this.props.string;if(""==t)return L.a.createElement("div",{style:{minHeight:"50px"}});var a=function(e,t){var a="/portal";switch(e.gsx$type){case"Attacks":a+="/Attacks/"+encodeURIComponent(e.gsx$name);break;case"Battlegear":a+="/Battlegear/"+encodeURIComponent(e.gsx$name);break;case"Creatures":a+="/Creatures/"+encodeURIComponent(e.gsx$name);break;case"Locations":a+="/Locations/"+encodeURIComponent(e.gsx$name);break;case"Mugic":a+="/Mugic/"+encodeURIComponent(e.gsx$name)}return L.a.createElement("div",{key:t},L.a.createElement(P.a,I()({as:B.b},J.a.link,{to:a}),e.gsx$name),L.a.createElement("br",null))},n=this.filter.addCollection("filter"),r=n.addDynamicView("filter");r.applySimpleSort("gsx$name");var l,c=A.a.portal.attacks.chain(),i=A.a.portal.battlegear.chain(),s=A.a.portal.creatures.chain(),o=A.a.portal.locations.chain(),m=A.a.portal.mugic.chain();c=c.find({$or:[{gsx$attributes:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),i=i.find({$or:[{gsx$attributes:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),s=s.find({$or:[{gsx$appearance:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$specialabilities:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),o=o.find({$or:[{gsx$localfeatures:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),m=m.find({$or:[{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),(l=c.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=i.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=s.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=o.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=m.data()).forEach((function(e){delete e.$loki})),n.insert(l);var u,g=r.data().map(a);this.filter.removeCollection("filter");var p=[].concat(A.a.portal.attacks.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.battlegear.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.creatures.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.locations.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.mugic.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.cards.attacks.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.battlegear.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.locations.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.mugic.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data()).sort((function(e,t){return(e=e.gsx$name.toLowerCase())<(t=t.gsx$name.toLowerCase())?-1:e>t?1:0})).map(a);if(0==g.length){var d=[].concat(A.a.cards.attacks.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.battlegear.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.creatures.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.locations.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.mugic.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data()).sort((function(e,t){return(e=e.gsx$name.toLowerCase())<(t=t.gsx$name.toLowerCase())?-1:e>t?1:0})).map(a);d.length>0?(u="Art contributed by ".concat(t,":"),g=d):u="No Results Found"}else u="Results containing ".concat(t,":");return L.a.createElement("div",{className:"results"},L.a.createElement("hr",null),p.length>0&&L.a.createElement(L.a.Fragment,null,L.a.createElement("div",null,"Entries"),p,L.a.createElement("hr",null)),L.a.createElement("div",null,u),g)}}]),t}(L.a.Component),i=z()(c.prototype,"loaded",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=c))||l)||l,X=Object(_.a)((function(e,t,a){return t}))(g=Object(_.b)((p=function(e){function t(e){var a;return b()(this,t),a=w()(this,C()(t).call(this,e)),S()(a,"loaded",d,q()(a)),a.type=e.type.toLowerCase(),a}return N()(t,e),$()(t,[{key:"scrollLeft",value:function(e){document.getElementsByClassName("bottom_nav")[0].scrollLeft=e}},{key:"render",value:function(){var e=this;if(0==this.loaded)return A.a.LoadDB([{cards:this.type},{portal:this.type}]).then((function(){e.loaded=!0})),L.a.createElement(Y.h,null);var t=function(t,a,n,r){return a?L.a.createElement("div",{key:n,className:"nav_item"},L.a.createElement(P.a,I()({as:B.b,to:r||"/portal/".concat(e.props.type,"/").concat(t.gsx$name)},J.a.link),L.a.createElement("span",null,t.gsx$name.split(",")[0]),L.a.createElement("br",null),L.a.createElement("img",{className:"thumb",src:A.a.base_image+a.gsx$thumb}))):L.a.createElement("div",{key:n})},a=!0,n="",r=L.a.createElement("div",null),l=[],c=this.props.location.pathname.split("/");if(""==c[c.length-1]&&c.pop(),"creatures"==this.type||"mugic"==this.type){var i=c.length>=4&&A.a.tribes.includes(c[3])?c[3]:null;i?c.length>4&&(a=!1,r=L.a.createElement(j.b,{path:"".concat(this.props.match.url,"/").concat(i,"/:card"),component:this.props.component})):c.length>3&&(a=!1,r=L.a.createElement(j.b,{path:"".concat(this.props.match.url,"/:card"),component:this.props.component})),n=i?"".concat(i," ").concat(this.props.type):this.props.type,l=(i?A.a.portal[this.type].chain().find({gsx$tribe:i}).simplesort("gsx$name").data():A.a.portal[this.type].chain().simplesort("gsx$name").data()).map((function(a,n){var r=A.a.cards[e.type].findOne({gsx$name:a.gsx$name}),l=i?"/portal/".concat(e.props.type,"/").concat(a.gsx$tribe,"/").concat(encodeURIComponent(a.gsx$name)):"/portal/".concat(e.props.type,"/").concat(encodeURIComponent(a.gsx$name));return t(a,r,n,l)}))}else c.length>3&&(a=!1,r=L.a.createElement(j.b,{path:"".concat(this.props.match.url,"/:card"),component:this.props.component})),n=this.props.type,l=A.a.portal[this.type].data.sort((function(e,t){return e.gsx$name>t.gsx$name?1:-1})).map((function(a,n){var r=A.a.cards[e.type].findOne({gsx$name:a.gsx$name});return t(a,r,n)}));return a?L.a.createElement("div",{className:"entry ".concat(this.type," base_path")},L.a.createElement("div",{className:"cat_title"},n),L.a.createElement("div",{className:"entry_nav"},l)):L.a.createElement("div",{className:"entry ".concat(this.type)},L.a.createElement("div",{className:"entry_content"},r),L.a.createElement("div",{className:"cat_title"},n),L.a.createElement("div",{className:"entry_nav"},l))}}]),t}(L.a.Component),d=z()(p.prototype,"loaded",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=p))||g)||g;function K(e){var t=e.name.split(",");return L.a.createElement(L.a.Fragment,null,L.a.createElement("span",null,t[0]),t.length>1&&L.a.createElement("span",{className:"bigger"},L.a.createElement("br",null),t[1].trim()))}function ee(e){var t=[];return e.artist.split(/(?=, )/).forEach((function(e,a){t.push(L.a.createElement(B.b,{key:a,to:"/portal/Search/?".concat(e.replace(", ",""))},e))})),L.a.createElement("div",{className:"artist"},t)}var te,ae=Object(_.a)((function(e,t,a){return t}))(E=Object(_.b)((h=function(e){function t(){var e,a;b()(this,t);for(var n=arguments.length,r=new Array(n),l=0;l=5?decodeURIComponent(e[4]):4==e.length?decodeURIComponent(e[3]):void 0,a=A.a.portal.creatures.findOne({gsx$name:t});if(!a)return L.a.createElement(Y.l,{location:this.props.location});for(var n=a.gsx$tribe,r=A.a.cards.creatures.findOne({gsx$name:t}),l=a.gsx$location.split(/[;]+\s*/).map((function(e,t){return L.a.createElement("p",{key:t},L.a.createElement(P.a,I()({as:B.b},J.a.link,{to:"/portal/Locations/"+e}),L.a.createElement("span",null,e)))})),c=a.gsx$battlegear.split(/[;]+\s*/).map((function(e,t){return L.a.createElement("p",{key:t},L.a.createElement(P.a,I()({as:B.b},J.a.link,{to:"/portal/Battlegear/"+e}),L.a.createElement("span",null,e)))})),i=[],s=0;s=0})," ",L.a.createElement(Y.f,{element:"air",value:r.gsx$elements.toLowerCase().indexOf("air")>=0})," ",L.a.createElement(Y.f,{element:"earth",value:r.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",L.a.createElement(Y.f,{element:"water",value:r.gsx$elements.toLowerCase().indexOf("water")>=0}))),L.a.createElement("hr",null),L.a.createElement("div",null,L.a.createElement("strong",null,"Flavortext:"),L.a.createElement("br",null),r.gsx$flavortext),L.a.createElement("hr",null),L.a.createElement("div",null,L.a.createElement("strong",null,"Mugic Ability: "),i))})}}]),t}(L.a.Component))||te)||te,pe=Object(_.a)((function(e,t,a){return t}))(re=Object(_.b)(re=function(e){function t(){return b()(this,t),w()(this,C()(t).apply(this,arguments))}return N()(t,e),$()(t,[{key:"render",value:function(){var e=this.props.location.pathname.split("/");""==e[e.length-1]&&e.pop();var t=e.length>=5?decodeURIComponent(e[4]):4==e.length?decodeURIComponent(e[3]):void 0,a=A.a.portal.mugic.findOne({gsx$name:t}),n=A.a.cards.mugic.findOne({gsx$name:t}),r=function(){var e=[];if(0==n.gsx$cost)e.push(L.a.createElement("span",{key:0},"0"));else if("x"==n.gsx$cost.toLowerCase())e.push(L.a.createElement("span",{key:0},"X"));else for(var t=0;ti&&(c=0,u++,n+1s&&(n=0,l=0,u=0))},a.render=function(){var t=a.width/o,c=a.height/m,i=e.width/2-t/2,s=e.height/2-c/2;a.context.clearRect(i,s,t,c),a.context.drawImage(r,i,s,t,c,i,s,t,c),a.context.drawImage(a.image,t*n,c*l,t,c,i,s,t,c)},a}({context:e.getContext("2d"),width:448,height:448,image:l,w_frames:7,h_frames:7,frames:47,ticksPerFrame:4}),l.addEventListener("load",(function e(){t.coin&&(window.requestAnimationFrame(e),t.coin.update(),t.coin.render())})),l.src=A.a.base_image+"0B6oyUfwoM3u1cC1vaGVkU1J1ZzQ"}}},{key:"render",value:function(){return L.a.createElement(F.Fragment,null,L.a.createElement("canvas",{ref:this.updateCanvas.bind(this),height:"600px"}))}}]),t}(L.a.Component),r=z()(n.prototype,"coin",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),n),T=a(1035),P=a.n(T),Q=a(170),W=a.n(Q),J=a(101),Y=a(55),G=Object(_.a)((function(e,t,a){return t}))(s=Object(_.b)((o=function(e){function t(e){var a;return b()(this,t),a=w()(this,C()(t).call(this,e)),S()(a,"input",m,q()(a)),S()(a,"query",u,q()(a)),a.search=function(e){e.preventDefault(),e.stopPropagation(),a.props.history.push("/portal/Search/?"+encodeURIComponent(a.query)),a.input=a.query},a.query=a.input=decodeURIComponent(a.props.location.search.substr(1)),a}return N()(t,e),$()(t,[{key:"render",value:function(){var e=this;return L.a.createElement("div",{className:"search"},L.a.createElement("form",{onSubmit:this.search},L.a.createElement("input",{type:"text",value:this.query,autoFocus:!0,onChange:function(t){return e.query=t.target.value}}),L.a.createElement("button",{type:"submit"},L.a.createElement(Y.n,null))),L.a.createElement(Z,{string:this.input}))}}]),t}(L.a.Component),m=z()(o.prototype,"input",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=z()(o.prototype,"query",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=o))||s)||s,Z=Object(_.a)((function(e,t,a){return t}))(l=Object(_.b)((c=function(e){function t(){var e;return b()(this,t),e=w()(this,C()(t).call(this)),S()(e,"loaded",i,q()(e)),e.filter=new W.a("filter.db"),e}return N()(t,e),$()(t,[{key:"render",value:function(){var e=this;if(0==this.loaded)return A.a.LoadDB([{portal:"attacks"},{portal:"battlegear"},{portal:"creatures"},{portal:"locations"},{portal:"mugic"},{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){e.loaded=!0})),L.a.createElement("span",null,"Loading...");var t=this.props.string;if(""==t)return L.a.createElement("div",{style:{minHeight:"50px"}});var a=function(e,t){var a="/portal";switch(e.gsx$type){case"Attacks":a+="/Attacks/"+encodeURIComponent(e.gsx$name);break;case"Battlegear":a+="/Battlegear/"+encodeURIComponent(e.gsx$name);break;case"Creatures":a+="/Creatures/"+encodeURIComponent(e.gsx$name);break;case"Locations":a+="/Locations/"+encodeURIComponent(e.gsx$name);break;case"Mugic":a+="/Mugic/"+encodeURIComponent(e.gsx$name)}return L.a.createElement("div",{key:t},L.a.createElement(P.a,I()({as:B.b},J.a.link,{to:a}),e.gsx$name),L.a.createElement("br",null))},n=this.filter.addCollection("filter"),r=n.addDynamicView("filter");r.applySimpleSort("gsx$name");var l,c=A.a.portal.attacks.chain(),i=A.a.portal.battlegear.chain(),s=A.a.portal.creatures.chain(),o=A.a.portal.locations.chain(),m=A.a.portal.mugic.chain();c=c.find({$or:[{gsx$attributes:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),i=i.find({$or:[{gsx$attributes:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),s=s.find({$or:[{gsx$appearance:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$specialabilities:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),o=o.find({$or:[{gsx$localfeatures:{$regex:new RegExp(t,"i")}},{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),m=m.find({$or:[{gsx$background:{$regex:new RegExp(t,"i")}},{gsx$details:{$regex:new RegExp(t,"i")}}]}),(l=c.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=i.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=s.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=o.data()).forEach((function(e){delete e.$loki})),n.insert(l),(l=m.data()).forEach((function(e){delete e.$loki})),n.insert(l);var u,g=r.data().map(a);this.filter.removeCollection("filter");var p=[].concat(A.a.portal.attacks.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.battlegear.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.creatures.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.locations.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.portal.mugic.find({gsx$name:{$regex:new RegExp(t,"i")}}),A.a.cards.attacks.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.battlegear.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.locations.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.mugic.chain().find({gsx$name:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data()).sort((function(e,t){return(e=e.gsx$name.toLowerCase())<(t=t.gsx$name.toLowerCase())?-1:e>t?1:0})).map(a);if(0==g.length){var d=[].concat(A.a.cards.attacks.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.battlegear.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.creatures.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.locations.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data(),A.a.cards.mugic.chain().find({gsx$artist:{$regex:new RegExp(t,"i")}}).where((function(e){return""!=e.gsx$splash})).data()).sort((function(e,t){return(e=e.gsx$name.toLowerCase())<(t=t.gsx$name.toLowerCase())?-1:e>t?1:0})).map(a);d.length>0?(u="Art contributed by ".concat(t,":"),g=d):u="No Results Found"}else u="Results containing ".concat(t,":");return L.a.createElement("div",{className:"results"},L.a.createElement("hr",null),p.length>0&&L.a.createElement(L.a.Fragment,null,L.a.createElement("div",null,"Entries"),p,L.a.createElement("hr",null)),L.a.createElement("div",null,u),g)}}]),t}(L.a.Component),i=z()(c.prototype,"loaded",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=c))||l)||l,X=Object(_.a)((function(e,t,a){return t}))(g=Object(_.b)((p=function(e){function t(e){var a;return b()(this,t),a=w()(this,C()(t).call(this,e)),S()(a,"loaded",d,q()(a)),a.type=e.type.toLowerCase(),a}return N()(t,e),$()(t,[{key:"scrollLeft",value:function(e){document.getElementsByClassName("bottom_nav")[0].scrollLeft=e}},{key:"render",value:function(){var e=this;if(0==this.loaded)return A.a.LoadDB([{cards:this.type},{portal:this.type}]).then((function(){e.loaded=!0})),L.a.createElement(Y.h,null);var t=function(t,a,n,r){return a?L.a.createElement("div",{key:n,className:"nav_item"},L.a.createElement(P.a,I()({as:B.b,to:r||"/portal/".concat(e.props.type,"/").concat(t.gsx$name)},J.a.link),L.a.createElement("span",null,t.gsx$name.split(",")[0]),L.a.createElement("br",null),L.a.createElement("img",{className:"thumb",src:A.a.base_image+a.gsx$thumb}))):L.a.createElement("div",{key:n})},a=!0,n="",r=L.a.createElement("div",null),l=[],c=this.props.location.pathname.split("/");if(""==c[c.length-1]&&c.pop(),"creatures"==this.type||"mugic"==this.type){var i=c.length>=4&&A.a.tribes.includes(c[3])?c[3]:null;i?c.length>4&&(a=!1,r=L.a.createElement(j.b,{path:"".concat(this.props.match.url,"/").concat(i,"/:card"),component:this.props.component})):c.length>3&&(a=!1,r=L.a.createElement(j.b,{path:"".concat(this.props.match.url,"/:card"),component:this.props.component})),n=i?"".concat(i," ").concat(this.props.type):this.props.type,l=(i?A.a.portal[this.type].chain().find({gsx$tribe:i}).simplesort("gsx$name").data():A.a.portal[this.type].chain().simplesort("gsx$name").data()).map((function(a,n){var r=A.a.cards[e.type].findOne({gsx$name:a.gsx$name}),l=i?"/portal/".concat(e.props.type,"/").concat(a.gsx$tribe,"/").concat(encodeURIComponent(a.gsx$name)):"/portal/".concat(e.props.type,"/").concat(encodeURIComponent(a.gsx$name));return t(a,r,n,l)}))}else c.length>3&&(a=!1,r=L.a.createElement(j.b,{path:"".concat(this.props.match.url,"/:card"),component:this.props.component})),n=this.props.type,l=A.a.portal[this.type].data.sort((function(e,t){return e.gsx$name>t.gsx$name?1:-1})).map((function(a,n){var r=A.a.cards[e.type].findOne({gsx$name:a.gsx$name});return t(a,r,n)}));return a?L.a.createElement("div",{className:"entry ".concat(this.type," base_path")},L.a.createElement("div",{className:"cat_title"},n),L.a.createElement("div",{className:"entry_nav"},l)):L.a.createElement("div",{className:"entry ".concat(this.type)},L.a.createElement("div",{className:"entry_content"},r),L.a.createElement("div",{className:"cat_title"},n),L.a.createElement("div",{className:"entry_nav"},l))}}]),t}(L.a.Component),d=z()(p.prototype,"loaded",[U.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=p))||g)||g;function K(e){var t=e.name.split(",");return L.a.createElement(L.a.Fragment,null,L.a.createElement("span",null,t[0]),t.length>1&&L.a.createElement("span",{className:"bigger"},L.a.createElement("br",null),t[1].trim()))}function ee(e){var t=[];return e.artist.split(/(?=, )/).forEach((function(e,a){t.push(L.a.createElement(B.b,{key:a,to:"/portal/Search/?".concat(e.replace(", ",""))},e))})),L.a.createElement("div",{className:"artist"},t)}var te,ae=Object(_.a)((function(e,t,a){return t}))(E=Object(_.b)((h=function(e){function t(){var e,a;b()(this,t);for(var n=arguments.length,r=new Array(n),l=0;l=5?decodeURIComponent(e[4]):4==e.length?decodeURIComponent(e[3]):void 0,a=A.a.portal.creatures.findOne({gsx$name:t});if(!a)return L.a.createElement(Y.l,{location:this.props.location});for(var n=a.gsx$tribe,r=A.a.cards.creatures.findOne({gsx$name:t}),l=a.gsx$location.split(/[;]+\s*/).map((function(e,t){return L.a.createElement("p",{key:t},L.a.createElement(P.a,I()({as:B.b},J.a.link,{to:"/portal/Locations/"+e}),L.a.createElement("span",null,e)))})),c=a.gsx$battlegear.split(/[;]+\s*/).map((function(e,t){return L.a.createElement("p",{key:t},L.a.createElement(P.a,I()({as:B.b},J.a.link,{to:"/portal/Battlegear/"+e}),L.a.createElement("span",null,e)))})),i=[],s=0;s=0})," ",L.a.createElement(Y.f,{element:"air",value:r.gsx$elements.toLowerCase().indexOf("air")>=0})," ",L.a.createElement(Y.f,{element:"earth",value:r.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",L.a.createElement(Y.f,{element:"water",value:r.gsx$elements.toLowerCase().indexOf("water")>=0}))),L.a.createElement("hr",null),L.a.createElement("div",null,L.a.createElement("strong",null,"Flavortext:"),L.a.createElement("br",null),r.gsx$flavortext),L.a.createElement("hr",null),L.a.createElement("div",null,L.a.createElement("strong",null,"Mugic Ability: "),i))})}}]),t}(L.a.Component))||te)||te,pe=Object(_.a)((function(e,t,a){return t}))(re=Object(_.b)(re=function(e){function t(){return b()(this,t),w()(this,C()(t).apply(this,arguments))}return N()(t,e),$()(t,[{key:"render",value:function(){var e=this.props.location.pathname.split("/");""==e[e.length-1]&&e.pop();var t=e.length>=5?decodeURIComponent(e[4]):4==e.length?decodeURIComponent(e[3]):void 0,a=A.a.portal.mugic.findOne({gsx$name:t}),n=A.a.cards.mugic.findOne({gsx$name:t}),r=function(){var e=[];if(0==n.gsx$cost)e.push(L.a.createElement("span",{key:0},"0"));else if("x"==n.gsx$cost.toLowerCase())e.push(L.a.createElement("span",{key:0},"X"));else for(var t=0;t=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var t=[],e=0;e2&&Y("box");var n=B(e);return new xt(t,G(n),n.name,!0,n.equals)},array:function(t,e){arguments.length>2&&Y("array");var n=B(e);return ke(t,G(n),n.name)},map:function(t,e){arguments.length>2&&Y("map");var n=B(e);return new Me(t,G(n),n.name)},set:function(t,e){arguments.length>2&&Y("set");var n=B(e);return new Ne(t,G(n),n.name)},object:function(t,e,n){"string"==typeof arguments[1]&&Y("object");var r=B(n);if(!1===r.proxy)return re({},t,e,r);var o=oe(r),i=re({},void 0,void 0,r),a=me(i);return ie(a,t,e,o),a},ref:$,shallow:W,deep:U,struct:H},Q=function(t,e,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return U.apply(null,arguments);if(le(t))return t;var r=m(t)?Q.object(t,e,n):Array.isArray(t)?Q.array(t,e):_(t)?Q.map(t,e):w(t)?Q.set(t,e):t;if(r!==t)return r;p(!1)};function Y(t){p("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(K).forEach((function(t){return Q[t]=K[t]}));var X,J,Z=N(!1,(function(t,e,n,r,o){var a=n.get,s=n.set,u=o[0]||{};Ve(t).addComputedProp(t,e,i({get:a,set:s,context:t},u))})),tt=Z({equals:A.structural}),et=function(t,e,n){if("string"==typeof e)return Z.apply(null,arguments);if(null!==t&&"object"==typeof t&&1===arguments.length)return Z.apply(null,arguments);var r="object"==typeof e?e:{};return r.get=t,r.set="function"==typeof e?e:r.set,r.name=r.name||t.name||"",new Ot(r)};et.struct=tt,function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"}(X||(X={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(J||(J={}));var nt=function(t){this.cause=t};function rt(t){return t instanceof nt}function ot(t){switch(t.dependenciesState){case X.UP_TO_DATE:return!1;case X.NOT_TRACKING:case X.STALE:return!0;case X.POSSIBLY_STALE:for(var e=ft(!0),n=ct(),r=t.observing,o=r.length,i=0;i0;jt.computationDepth>0&&e&&p(!1),jt.allowStateChanges||!e&&"strict"!==jt.enforceActions||p(!1)}function at(t,e,n){var r=ft(!0);ht(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++jt.runId;var o,i=jt.trackingDerivation;if(jt.trackingDerivation=t,!0===jt.disableErrorBoundaries)o=e.call(n);else try{o=e.call(n)}catch(t){o=new nt(t)}return jt.trackingDerivation=i,function(t){for(var e=t.observing,n=t.observing=t.newObserving,r=X.UP_TO_DATE,o=0,i=t.unboundDepsCount,a=0;ar&&(r=s.dependenciesState)}n.length=o,t.newObserving=null,i=e.length;for(;i--;){0===(s=e[i]).diffValue&&Dt(s,t),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,Pt(s,t))}r!==X.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}(t),pt(r),o}function st(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)Dt(e[n],t);t.dependenciesState=X.NOT_TRACKING}function ut(t){var e=ct();try{return t()}finally{lt(e)}}function ct(){var t=jt.trackingDerivation;return jt.trackingDerivation=null,t}function lt(t){jt.trackingDerivation=t}function ft(t){var e=jt.allowStateReads;return jt.allowStateReads=t,e}function pt(t){jt.allowStateReads=t}function ht(t){if(t.dependenciesState!==X.UP_TO_DATE){t.dependenciesState=X.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=X.UP_TO_DATE}}var dt=0,yt=1,vt=Object.getOwnPropertyDescriptor((function(){}),"name");vt&&vt.configurable;function mt(t,e,n){var r=function(){return gt(t,e,n||this,arguments)};return r.isMobxAction=!0,r}function gt(t,e,n,r){var o=function(t,e,n){var r=0;var o=ct();It();var i=_t(!0),a=ft(!0),s={prevDerivation:o,prevAllowStateChanges:i,prevAllowStateReads:a,notifySpy:!1,startTime:r,actionId:yt++,parentActionId:dt};return dt=s.actionId,s}();try{return e.apply(n,r)}catch(t){throw o.error=t,t}finally{!function(t){dt!==t.actionId&&p("invalid action stack. did you forget to finish an action?");dt=t.parentActionId,void 0!==t.error&&(jt.suppressReactionErrors=!0);wt(t.prevAllowStateChanges),pt(t.prevAllowStateReads),Rt(),lt(t.prevDerivation),t.notifySpy&&!1;jt.suppressReactionErrors=!1}(o)}}function bt(t,e){var n,r=_t(t);try{n=e()}finally{wt(r)}return n}function _t(t){var e=jt.allowStateChanges;return jt.allowStateChanges=t,e}function wt(t){jt.allowStateChanges=t}var xt=function(t){function e(e,n,r,o,i){void 0===r&&(r="ObservableValue@"+f()),void 0===o&&(o=!0),void 0===i&&(i=A.default);var a=t.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(e,void 0,r),a}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.prototype.set=function(t){this.value;if((t=this.prepareNewValue(t))!==jt.UNCHANGED){0,this.setNewValue(t)}},e.prototype.prepareNewValue=function(t){if(it(this),ge(this)){var e=_e(this,{object:this,type:"update",newValue:t});if(!e)return jt.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value,this.name),this.equals(this.value,t)?jt.UNCHANGED:t},e.prototype.setNewValue=function(t){var e=this.value;this.value=t,this.reportChanged(),we(this)&&Oe(this,{type:"update",object:this,newValue:t,oldValue:e})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(t){return be(this,t)},e.prototype.observe=function(t,e){return e&&t({object:this,type:"update",newValue:this.value,oldValue:void 0}),xe(this,t)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return S(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(T),Ot=(b("ObservableValue",xt),function(){function t(t){this.dependenciesState=X.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=X.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+f(),this.value=new nt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=J.NONE,h(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+f(),t.set&&(this.setter=mt(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?A.structural:A.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){if(t.lowestObserverState!==X.UP_TO_DATE)return;t.lowestObserverState=X.POSSIBLY_STALE,t.observers.forEach((function(e){e.dependenciesState===X.UP_TO_DATE&&(e.dependenciesState=X.POSSIBLY_STALE,e.isTracing!==J.NONE&&Ft(e,t),e.onBecomeStale())}))}(this)},t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(t){return t()}))},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(t){return t()}))},t.prototype.get=function(){this.isComputing&&p("Cycle detected in computation "+this.name+": "+this.derivation),0!==jt.inBatch||0!==this.observers.size||this.keepAlive?(Nt(this),ot(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===X.STALE)return;t.lowestObserverState=X.STALE,t.observers.forEach((function(e){e.dependenciesState===X.POSSIBLY_STALE?e.dependenciesState=X.STALE:e.dependenciesState===X.UP_TO_DATE&&(t.lowestObserverState=X.UP_TO_DATE)}))}(this)):ot(this)&&(this.warnAboutUntrackedRead(),It(),this.value=this.computeValue(!1),Rt());var t=this.value;if(rt(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(rt(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){h(!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,t)}finally{this.isRunningSetter=!1}}else h(!1,!1)},t.prototype.trackAndCompute=function(){var t=this.value,e=this.dependenciesState===X.NOT_TRACKING,n=this.computeValue(!0),r=e||rt(t)||rt(n)||!this.equals(t,n);return r&&(this.value=n),r},t.prototype.computeValue=function(t){var e;if(this.isComputing=!0,jt.computationDepth++,t)e=at(this,this.derivation,this.scope);else if(!0===jt.disableErrorBoundaries)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new nt(t)}return jt.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(st(this),this.value=void 0)},t.prototype.observe=function(t,e){var n=this,r=!0,o=void 0;return Xt((function(){var i=n.get();if(!r||e){var a=ct();t({type:"update",object:n,newValue:i,oldValue:o}),lt(a)}r=!1,o=i}))},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return S(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}()),St=b("ComputedValue",Ot),kt=function(){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},Tt={};function Ct(){return"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:Tt}var Et=!0,At=!1,jt=function(){var t=Ct();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Et=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new kt).version&&(Et=!1),Et?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new kt):(setTimeout((function(){At||p("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new kt)}();function Pt(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function Dt(t,e){t.observers.delete(e),0===t.observers.size&&Mt(t)}function Mt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,jt.pendingUnobservations.push(t))}function It(){jt.inBatch++}function Rt(){if(0==--jt.inBatch){Lt();for(var t=jt.pendingUnobservations,e=0;e0&&Mt(t),!1)}function Ft(t,e){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+e.name+"'"),t.isTracing===J.BREAK){var n=[];!function t(e,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return t(e,n,r+1)}))}(ae(t),n,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+e.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"+(t instanceof Ot?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var qt=function(){function t(t,e,n,r){void 0===t&&(t="Reaction@"+f()),void 0===r&&(r=!1),this.name=t,this.onInvalidate=e,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=X.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+f(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=J.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,jt.pendingReactions.push(this),Lt())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(It(),this._isScheduled=!1,ot(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(t){this.reportExceptionInDerivation(t)}}Rt()}},t.prototype.track=function(t){if(!this.isDisposed){It();0,this._isRunning=!0;var e=at(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&st(this),rt(e)&&this.reportExceptionInDerivation(e.cause),Rt()}},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)this.errorHandler(t,this);else{if(jt.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";jt.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,t),jt.globalReactionErrorHandlers.forEach((function(n){return n(t,e)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(It(),st(this),Rt()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[k]=this,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(t){void 0===t&&(t=!1),function(){for(var t=[],e=0;e0||jt.isRunningReactions||Vt(zt)}function zt(){jt.isRunningReactions=!0;for(var t=jt.pendingReactions,e=0;t.length>0;){100==++e&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var n=t.splice(0),r=0,o=n.length;r",t):2===arguments.length&&"function"==typeof e?mt(t,e):1===arguments.length&&"string"==typeof t?Ht(t):!0!==r?Ht(e).apply(null,arguments):void g(t,e,mt(t.name||e,n.value,this))};function Qt(t,e){"string"==typeof t||t.name;return gt(0,"function"==typeof t?t:e,this,void 0)}function Yt(t,e,n){g(t,e,mt(e,n.bind(t)))}function Xt(t,e){void 0===e&&(e=l);var n,r=e&&e.name||t.name||"Autorun@"+f();if(!e.scheduler&&!e.delay)n=new qt(r,(function(){this.track(a)}),e.onError,e.requiresObservable);else{var o=Zt(e),i=!1;n=new qt(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),e.onError,e.requiresObservable)}function a(){t(n)}return n.schedule(),n.getDisposer()}Kt.bound=function(t,e,n,r){return!0===r?(Yt(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Yt(this,e,n.value||n.initializer.call(this)),this[e]},set:$t}:{enumerable:!1,configurable:!0,set:function(t){Yt(this,e,t)},get:function(){}}};var Jt=function(t){return t()};function Zt(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Jt}function te(t,e,n){return ee("onBecomeUnobserved",t,e,n)}function ee(t,e,n,r){var o="function"==typeof r?$e(e,n):$e(e),i="function"==typeof r?r:n,a=t+"Listeners";return o[a]?o[a].add(i):o[a]=new Set([i]),"function"!=typeof o[t]?p(!1):function(){var t=o[a];t&&(t.delete(i),0===t.size&&delete o[a])}}function ne(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,o=t.disableErrorBoundaries,i=t.reactionScheduler,a=t.reactionRequiresObservable,s=t.observableRequiresReaction;if(!0===t.isolateGlobalState&&((jt.pendingReactions.length||jt.inBatch||jt.isRunningReactions)&&p("isolateGlobalState should be called before MobX is running any reactions"),At=!0,Et&&(0==--Ct().__mobxInstanceCount&&(Ct().__mobxGlobals=void 0),jt=new kt)),void 0!==e){var u=void 0;switch(e){case!0:case"observed":u=!0;break;case!1:case"never":u=!1;break;case"strict":case"always":u="strict";break;default:p("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}jt.enforceActions=u,jt.allowStateChanges=!0!==u&&"strict"!==u}void 0!==n&&(jt.computedRequiresReaction=!!n),void 0!==a&&(jt.reactionRequiresObservable=!!a),void 0!==s&&(jt.observableRequiresReaction=!!s,jt.allowStateReads=!jt.observableRequiresReaction),void 0!==r&&(jt.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),jt.disableErrorBoundaries=!!o),i&&Ut(i)}function re(t,e,n,r){var o=oe(r=B(r));return R(t),Ve(t,r.name,o.enhancer),e&&ie(t,e,n,o),t}function oe(t){return t.defaultDecorator||(!1===t.deep?$:U)}function ie(t,e,n,r){var o,i;It();try{var s=x(e);try{for(var u=a(s),c=u.next();!c.done;c=u.next()){var l=c.value,f=Object.getOwnPropertyDescriptor(e,l);0;var p=(n&&l in n?n[l]:f.get?Z:r)(t,l,f,!0);p&&Object.defineProperty(t,l,p)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}finally{Rt()}}function ae(t,e){return se($e(t,e))}function se(t){var e,n,r={name:t.name};return t.observing&&t.observing.length>0&&(r.dependencies=(e=t.observing,n=[],e.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n).map(se)),r}function ue(){this.message="FLOW_CANCELLED"}function ce(t,e){return null!=t&&(void 0!==e?!!We(t)&&t[k].values.has(e):We(t)||!!t[k]||C(t)||Bt(t)||St(t))}function le(t){return 1!==arguments.length&&p(!1),ce(t)}function fe(t,e,n,r){return"function"==typeof n?function(t,e,n,r){return He(t,e).observe(n,r)}(t,e,n,r):function(t,e,n){return He(t).observe(e,n)}(t,e,n)}ue.prototype=Object.create(Error.prototype);function pe(t){switch(t.length){case 0:return jt.trackingDerivation;case 1:return $e(t[0]);case 2:return $e(t[0],t[1])}}function he(t,e){void 0===e&&(e=void 0),It();try{return t.apply(e)}finally{Rt()}}function de(t){return t[k]}function ye(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t}var ve={has:function(t,e){if(e===k||"constructor"===e||e===j)return!0;var n=de(t);return ye(e)?n.has(e):e in t},get:function(t,e){if(e===k||"constructor"===e||e===j)return t[e];var n=de(t),r=n.values.get(e);if(r instanceof T){var o=r.get();return void 0===o&&n.has(e),o}return ye(e)&&n.has(e),t[e]},set:function(t,e,n){return!!ye(e)&&(function t(e,n,r){if(2!==arguments.length||Fe(e))if(We(e)){var o=e[k],i=o.values.get(n);i?o.write(n,r):o.addObservableProp(n,r,o.defaultEnhancer)}else if(Ie(e))e.set(n,r);else if(Fe(e))e.add(n);else{if(!je(e))return p(!1);"number"!=typeof n&&(n=parseInt(n,10)),h(n>=0,"Not a valid index: '"+n+"'"),It(),n>=e.length&&(e.length=n+1),e[n]=r,Rt()}else{It();var a=n;try{for(var s in a)t(e,s,a[s])}finally{Rt()}}}(t,e,n),!0)},deleteProperty:function(t,e){return!!ye(e)&&(de(t).remove(e),!0)},ownKeys:function(t){return de(t).keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return p("Dynamic observable objects cannot be frozen"),!1}};function me(t){var e=new Proxy(t,ve);return t[k].proxy=e,e}function ge(t){return void 0!==t.interceptors&&t.interceptors.length>0}function be(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),d((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function _e(t,e){var n=ct();try{for(var r=u(t.interceptors||[]),o=0,i=r.length;o0}function xe(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),d((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function Oe(t,e){var n=ct(),r=t.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?t.map(this.dehancer):t},t.prototype.intercept=function(t){return be(this,t)},t.prototype.observe=function(t,e){return void 0===e&&(e=!1),e&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),xe(this,t)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(t){if("number"!=typeof t||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t!==e)if(t>e){for(var n=new Array(t-e),r=0;ro?t=o:t<0&&(t=Math.max(0,o+t)),e=1===arguments.length?o-t:null==e?0:Math.max(0,Math.min(e,o-t)),void 0===n&&(n=c),ge(this)){var i=_e(this,{object:this.proxy,type:"splice",index:t,removedCount:e,added:n});if(!i)return c;e=i.removedCount,n=i.added}n=0===n.length?n:n.map((function(t){return r.enhancer(t,void 0)}));var a=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,a),this.dehanceValues(a)},t.prototype.spliceItemsIntoValues=function(t,e,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([t,e],n));var o=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),o},t.prototype.notifyArrayChildUpdate=function(t,e,n){var r=!this.owned&&!1,o=we(this),i=o||r?{object:this.proxy,type:"update",index:t,newValue:e,oldValue:n}:null;this.atom.reportChanged(),o&&Oe(this,i)},t.prototype.notifyArraySplice=function(t,e,n){var r=!this.owned&&!1,o=we(this),i=o||r?{object:this.proxy,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;this.atom.reportChanged(),o&&Oe(this,i)},t}(),Ce={intercept:function(t){return this[k].intercept(t)},observe:function(t,e){return void 0===e&&(e=!1),this[k].observe(t,e)},clear:function(){return this.splice(0)},replace:function(t){var e=this[k];return e.spliceWithArray(0,e.values.length,t)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(t,e){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(t){var e=this[k];if(e){if(t=0&&r++}e=Qe(e),n=Qe(n);var u="[object Array]"===s;if(!u){if("object"!=typeof e||"object"!=typeof n)return!1;var c=e.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var f=(o=o||[]).length;for(;f--;)if(o[f]===e)return i[f]===n;if(o.push(e),i.push(n),u){if((f=e.length)!==n.length)return!1;for(;f--;)if(!t(e[f],n[f],r-1,o,i))return!1}else{var p=Object.keys(e),h=void 0;if(f=p.length,Object.keys(n).length!==f)return!1;for(;f--;)if(h=p[f],!Ye(n,h)||!t(e[h],n[h],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(t,e,n)}function Qe(t){return je(t)?t.slice():_(t)||Ie(t)||w(t)||Fe(t)?Array.from(t.entries()):t}function Ye(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Xe(t){return t[Symbol.iterator]=Je,t}function Je(){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.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Wt,extras:{getDebugName:function(t,e){return(void 0!==e?$e(t,e):We(t)||Ie(t)||Fe(t)?He(t):$e(t)).name}},$mobx:k})}).call(this,n(206),n(159))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7);const o=(t,e)=>{Object(r.a)(t,e,"channelCount"),Object(r.a)(t,e,"channelCountMode"),Object(r.a)(t,e,"channelInterpretation")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));const r=-34028234663852886e22,o=-r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>t.context===e},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>{const r=e[n];void 0!==r&&r!==t[n]&&(t[n]=r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>{const r=e[n];void 0!==r&&r!==t[n].value&&(t[n].value=r)}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(23);const i=t=>Object(o.a)(r.c,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","InvalidStateError")}catch(t){return t.code=11,t.name="InvalidStateError",t}}},function(t,e,n){var r=n(110)("wks"),o=n(66),i=n(9).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(23);const i=t=>Object(o.a)(r.b,t)},function(t,e,n){t.exports=!n(10)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(11),o=n(172),i=n(56),a=Object.defineProperty;e.f=n(20)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","NotSupportedError")}catch(t){return t.code=9,t.name="NotSupportedError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>{const n=t.get(e);if(void 0===n)throw new Error("A value with the given key could not be found.");return n}},function(t,e,n){var r=n(52);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(t.connect=e.connect.bind(e),t.disconnect=e.disconnect.bind(e),t)},function(t,e,n){var r=n(9),o=n(30),i=n(29),a=n(66)("src"),s=n(824),u=(""+s).split("toString");n(18).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e,n){var r=n(1),o=n(10),i=n(52),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(21),o=n(65);t.exports=n(20)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(103),o=n(52);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"inputs"in t},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(16);function o(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,o=t.length;r=0;p--){var h=a[p];"."===h?i(a,p):".."===h?(i(a,p),f++):f&&(i(a,p),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=s(e),o=s(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(28);function l(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function p(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function h(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,o){var i;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(i=Object(r.a)({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=y(t,e,p(),_.location);l.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(_.entries[_.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=_.index+t;return e>=0&&e<_.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return _}},function(t,e,n){"use strict";var r=n(10);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=t.decodeAudioData(e.buffer,()=>{});return void 0!==n&&(n.catch(()=>{}),!0)}catch(t){}return!1}},function(t,e,n){t.exports=n(203)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","IndexSizeError")}catch(t){return t.code=1,t.name="IndexSizeError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>{for(const e of t)if(n(e)){if(r)return!1;throw Error("The set contains at least one similar element.")}return t.add(e),!0}},function(t,e,n){var r=n(41);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(104),o=n(65),i=n(31),a=n(56),s=n(29),u=n(172),c=Object.getOwnPropertyDescriptor;e.f=n(20)?c:function(t,e){if(t=i(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(1),o=n(18),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(40),o=n(103),i=n(24),a=n(17),s=n(188);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,p=5==t||f,h=e||s;return function(e,s,d){for(var y,v,m=i(e),g=o(m),b=r(s,d,3),_=a(g.length),w=0,x=n?h(e,_):u?h(e,0):void 0;_>w;w++)if((p||w in g)&&(v=b(y=g[w],w,m),t))if(n)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:x.push(y)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(54);const i=t=>{if(r.a.has(t))throw new Error("The AudioNode is already stored.");r.a.add(t),Object(o.a)(t).forEach(t=>t(!0))}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"AudioContext",(function(){return to})),n.d(e,"AudioWorkletNode",(function(){return so})),n.d(e,"OfflineAudioContext",(function(){return lo})),n.d(e,"isAnyAudioContext",(function(){return fo})),n.d(e,"isAnyAudioNode",(function(){return po})),n.d(e,"isAnyAudioParam",(function(){return ho})),n.d(e,"isAnyOfflineAudioContext",(function(){return yo}));var r=n(49),o=n(163),i=n(663),a=n(664),s=n(807),u=n(665),c=n(666),l=n(667),f=n(668),p=n(669),h=n(670),d=n(671),y=n(672),v=n(673),m=n(804),g=n(674),b=n(675),_=n(676),w=n(810),x=n(677),O=n(678),S=n(679),k=n(680),T=n(681),C=n(682),E=n(683),A=n(684),j=n(685),P=n(686),D=n(687),M=n(688),I=n(689),R=n(690),N=n(691),F=n(692),q=n(693),V=n(694),L=n(811),z=n(695),B=n(696),U=n(697),W=n(812),$=n(698),H=n(699),G=n(700),K=n(701),Q=n(702),Y=n(703),X=n(704),J=n(705),Z=n(706),tt=n(707),et=n(708),nt=n(709),rt=n(710),ot=n(711),it=n(813),at=n(712),st=n(713),ut=n(38),ct=n(100),lt=n(14),ft=n(714),pt=n(715),ht=n(716),dt=n(717),yt=n(718),vt=n(719),mt=n(720),gt=n(721),bt=n(722),_t=n(723),wt=(n(724),n(725)),xt=n(726),Ot=n(727),St=n(728),kt=n(729),Tt=n(730),Ct=n(731),Et=n(808),At=n(732),jt=n(809),Pt=n(733),Dt=n(734),Mt=n(735),It=n(736),Rt=n(814),Nt=n(805),Ft=n(737),qt=n(738),Vt=n(815),Lt=n(739),zt=n(740),Bt=n(741),Ut=n(742),Wt=n(743),$t=n(744),Ht=n(745),Gt=n(746),Kt=n(747),Qt=n(748),Yt=n(749),Xt=n(750),Jt=n(751),Zt=n(752),te=n(753),ee=n(754),ne=n(755),re=n(756),oe=n(757),ie=n(758),ae=n(759),se=n(760),ue=n(22),ce=n(761),le=n(762),fe=n(763),pe=n(764),he=n(765),de=n(766),ye=n(767),ve=n(768),me=n(769),ge=n(770),be=n(771),_e=n(772),we=n(773),xe=n(774),Oe=(n(775),n(776)),Se=n(777),ke=n(778),Te=n(779),Ce=(n(780),n(781),n(782),n(783),n(784)),Ee=n(785),Ae=n(786),je=(n(787),n(788),n(789),n(790),n(791),n(792)),Pe=(n(793),n(164)),De=n(794),Me=n(795),Ie=n(796),Re=n(797),Ne=n(798),Fe=n(799),qe=n(800),Ve=n(801),Le=n(2),ze=n(96),Be=n(97),Ue=n(19),We=n(79),$e=n(13),He=n(80),Ge=n(23),Ke=n(39),Qe=n(62),Ye=n(165),Xe=n(50),Je=n(107),Ze=n(95),tn=n(36),en=(n(802),n(803)),nn=n(81);n(207),n(291);const rn=Object(k.a)(new Map,new WeakMap),on=Object(Ie.a)(),an=Object(Jt.a)(on),sn=Object(bt.a)(an),un=Object(Pt.a)(on),cn=Object(rt.a)(sn,un,an),ln=Object(Mt.a)(cn),fn=Object(Et.a)(rn,ut.a,ln),pn=Object(et.a)(Ue.a),hn=Object(ve.a)(Ue.a,pn,Xe.a),dn=Object(c.a)(fn,$e.a,hn),yn=new WeakMap,vn=Object(ot.a)(Le.g),mn=new WeakMap,gn=Object(Y.a)(nn.a),bn=Object(vt.a)(on),_n=Object(mt.a)(on),wn=Object(m.a)(Object(i.a)(Le.b),yn,rn,Object(st.a)(Le.h,Be.a,Ue.a,$e.a,He.a,Qe.a),ut.a,ct.a,ue.a,Object(z.a)(ze.a,Le.h,Ue.a,$e.a,He.a,vn,Qe.a,sn),Object(W.a)(mn,Ue.a,Ge.a),gn,vn,bn,_n,sn),xn=Object(u.a)(wn,dn,ut.a,fn,vn,sn),On=new WeakSet,Sn=Object(At.a)(on),kn=Object(R.a)(new Uint32Array(1)),Tn=Object(Re.a)(kn,ut.a),Cn=Object(Ne.a)(kn),En=Object(l.a)(On,rn,ue.a,Sn,an,Object(xe.a)(Sn),Tn,Cn),An=Object(Ce.a)(ln),jn=Object(Ee.a)(ln),Pn=Object(Ae.a)(ln),Dn=Object(qe.a)(ln),Mn=Object(me.a)(pn,We.a,Xe.a),In=Object(j.a)(Mn),Rn=Object(jt.a)(rn,ln,Object(Oe.a)(ln),Object(Se.a)(an),Object(ke.a)(ln),Object(Te.a)(ln),An,jn,Pn,en.a,Object(Fe.a)(Je.a),Dn),Nn=Object(ye.a)(Object(nt.a)(We.a),Mn),Fn=Object(p.a)(In,Rn,$e.a,Nn,hn),qn=Object(g.a)(Object(a.a)(Le.d),mn,Le.e,b.a,r.createCancelAndHoldAutomationEvent,r.createCancelScheduledValuesAutomationEvent,r.createExponentialRampToValueAutomationEvent,r.createLinearRampToValueAutomationEvent,r.createSetTargetAutomationEvent,r.createSetValueAutomationEvent,r.createSetValueCurveAutomationEvent,un),Vn=Object(f.a)(wn,Fn,qn,lt.a,Rn,vn,sn,nn.a),Ln=Object(Ht.a)(ln),zn=Object(d.a)(wn,y.a,ut.a,lt.a,Object(Dt.a)(Ln,Je.a),vn,sn,hn),Bn=Object(Ft.a)(ln),Un=Object(S.a)(In,Bn,$e.a,Nn,hn),Wn=Object(O.a)(wn,qn,Un,ct.a,Bn,vn,sn),$n=Object(Ct.a)(Ke.a,bn),Hn=Object(Ve.a)(lt.a,ln,$n),Gn=Object(qt.a)(ln,Hn),Kn=Object(C.a)(Gn,$e.a,hn),Qn=Object(T.a)(wn,Kn,Gn,vn,sn),Yn=Object(Vt.a)(ln),Xn=Object(A.a)(Yn,$e.a,hn),Jn=Object(E.a)(wn,Xn,Yn,vn,sn),Zn=Object(zt.a)(Rn,Ln,$n),tr=Object(Lt.a)(rn,ln,Zn,An,Pn),er=Object(I.a)(In,tr,$e.a,Nn,hn),nr=Object(M.a)(wn,qn,er,tr,vn,sn,nn.a),rr=Object(Ut.a)(ln,Ln,$n),or=Object(Bt.a)(ln,rr,ue.a,Je.a),ir=Object(F.a)(or,$e.a,hn),ar=Object(N.a)(wn,ir,or,vn,sn),sr=Object(Wt.a)(ln),ur=Object(U.a)(In,sr,$e.a,Nn,hn),cr=Object(B.a)(wn,qn,ur,sr,vn,sn),lr=Object($t.a)(ln,ue.a),fr=Object(G.a)(In,lr,$e.a,Nn,hn),pr=Object(H.a)(wn,qn,fr,lr,ue.a,vn,sn),hr=Object(tt.a)(In,Ln,$e.a,Nn,hn),dr=Object(Z.a)(wn,qn,hr,Ln,vn,sn),yr=Object(re.a)(ln),vr=Object(Kt.a)(ct.a,lt.a,yr,ue.a),mr=Object(ge.a)(rn,Ln,yr,Object(je.a)(Ln,an)),gr=Object(at.a)(Rn,ln,$e.a,an,hn,mr),br=Object(Gt.a)(ln,vr),_r=Object(it.a)(wn,br,gr,vn,sn),wr=Object(v.a)(qn,Gn,tr,yr,sn),xr=Object(kt.a)(zn,wr,gn,nn.a),Or=Object(Zt.a)(rn,ln,An,jn,Pn,Dn),Sr=Object(fe.a)(In,Or,$e.a,Nn,hn),kr=Object(le.a)(wn,qn,lt.a,Or,Sr,vn,sn,nn.a),Tr=Object(D.a)(Rn),Cr=Object(se.a)(Tr,lt.a,ln,Ln,Ye.a,$n),Er=Object(ae.a)(Tr,lt.a,ln,Cr,Ye.a,$n,Je.a),Ar=Object(ee.a)(ze.a,lt.a,ln,Gn,Ln,yr,Er,ue.a,Be.a,$n),jr=Object(te.a)(ln,Ar),Pr=Object(he.a)(In,jr,$e.a,Nn,hn),Dr=Object(pe.a)(wn,qn,jr,Pr,vn,sn),Mr=Object(ne.a)(cn),Ir=Object(de.a)(Mr,vn,new WeakSet),Rr=Object(ie.a)(Gn,Yn,Ln,Er,ue.a,$n),Nr=Object(oe.a)(ln,Rr,ue.a),Fr=Object(we.a)(In,Nr,$e.a,Nn,hn),qr=Object(_e.a)(wn,qn,Nr,Fr,vn,sn),Vr=Object(Me.a)(Er,$e.a,hn),Lr=Object(De.a)(wn,lt.a,Er,Vr,vn,sn),zr=Object(_t.a)(on),Br=Object(X.a)(on),Ur=zr?Object(s.a)(o.a,ue.a,Object(Q.a)(on),Br,Object(J.a)(o.a),cn,vn,new WeakMap,new WeakMap):void 0,Wr=Object(yt.a)(un),$r=Object(gt.a)(Wr,sn),Hr=Object(L.a)(On,rn,V.a,K.a,new WeakSet,vn,$r,sn,an,Ze.a,tn.a,Tn,Cn),Gr=Object(x.a)(Ur,xn,En,Vn,Wn,Qn,Jn,nr,ar,Hr,cr,pr,dr,_r,xr,kr,Dr,Ir,qr,Lr),Kr=Object(Qt.a)(ln),Qr=Object(wt.a)(wn,Kr,ue.a,vn,sn),Yr=Object(Yt.a)(ln),Xr=Object(xt.a)(wn,Yr,ue.a,vn,sn),Jr=Object(Xt.a)(lt.a,ln),Zr=Object(Ot.a)(wn,Jr,ue.a,vn,sn),to=Object(h.a)(Gr,lt.a,ue.a,Pe.a,Qr,Xr,Zr,un),eo=Object(P.a)(ut.a),no=Object($.a)(ut.a),ro=Object(Nt.a)(yn,eo,ut.a,lt.a,Gn,Yn,tr,Ln,yr,ue.a,no,Br,$n),oo=Object(Rt.a)(lt.a,ln,ro,ue.a,sn),io=Object(It.a)(on),ao=Object(w.a)(In,eo,Rn,Gn,Yn,tr,Ln,no,Br,$e.a,io,an,Nn,hn,mr),so=zr?Object(_.a)(wn,qn,ao,oo,dr,vn,sn,io,nn.a):void 0,uo=(Object(St.a)(lt.a,ue.a,Pe.a,xr,un),Object(q.a)(ue.a,an)),co=Object(be.a)(On,rn,pn,mr,Ze.a,Tn,Cn),lo=(Object(Tt.a)(rn,lt.a,uo,xr,co),Object(ce.a)(Gr,rn,lt.a,uo,co)),fo=Object(ft.a)(Le.g,Wr),po=Object(pt.a)(Le.c,bn),ho=Object(ht.a)(Le.e,_n),yo=Object(dt.a)(Le.g,sn)},function(t,e,n){!function(t,e,n,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(t,e,n){return{endTime:e,insertTime:n,type:"exponentialRampToValue",value:t}},i=function(t,e,n){return{endTime:e,insertTime:n,type:"linearRampToValue",value:t}},a=function(t,e){return{startTime:e,type:"setValue",value:t}},s=function(t,e,n){return{duration:n,startTime:e,type:"setValueCurve",values:t}},u=function(t,e,n){var r=n.startTime,o=n.target,i=n.timeConstant;return o+(e-o)*Math.exp((r-t)/i)},c=function(t){return"exponentialRampToValue"===t.type},l=function(t){return"linearRampToValue"===t.type},f=function(t){return c(t)||l(t)},p=function(t){return"setValue"===t.type},h=function(t){return"setValueCurve"===t.type},d=function t(e,n,r,o){var i=e[n];return void 0===i?o:f(i)||p(i)?i.value:h(i)?i.values[i.values.length-1]:u(r,t(e,n-1,i.startTime,o),i)},y=function(t,e,n,r,o){return void 0===n?[r.insertTime,o]:f(n)?[n.endTime,n.value]:p(n)?[n.startTime,n.value]:h(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,d(t,e-1,n.startTime,o)]},v=function(t){return"cancelAndHold"===t.type},m=function(t){return"cancelScheduledValues"===t.type},g=function(t){return v(t)||m(t)?t.cancelTime:c(t)||l(t)?t.endTime:t.startTime},b=function(t,e,n,r){var o=r.endTime,i=r.value;return n===i?i:0=e})),r=this._automationEvents[n];if(-1!==n&&(this._automationEvents=this._automationEvents.slice(0,n)),v(t)){var u=this._automationEvents[this._automationEvents.length-1];if(void 0!==r&&f(r)){if(x(u))throw new Error("The internal list is malformed.");var p=h(u)?u.startTime+u.duration:g(u),d=h(u)?u.values[u.values.length-1]:u.value,y=c(r)?b(e,p,d,r):_(e,p,d,r),w=c(r)?o(y,e,this._currenTime):i(y,e,this._currenTime);this._automationEvents.push(w)}void 0!==u&&x(u)&&this._automationEvents.push(a(this.getValue(e),e)),void 0!==u&&h(u)&&u.startTime+u.duration>e&&(this._automationEvents[this._automationEvents.length-1]=s(new Float32Array([6,7]),u.startTime,e-u.startTime))}}else{var O=this._automationEvents.findIndex((function(t){return g(t)>e})),S=-1===O?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[O-1];if(void 0!==S&&h(S)&&g(S)+S.duration>e)return!1;var k=c(t)?o(t.value,t.endTime,this._currenTime):l(t)?i(t.value,e,this._currenTime):t;if(-1===O)this._automationEvents.push(k);else{if(h(t)&&e+t.duration>g(this._automationEvents[O]))return!1;this._automationEvents.splice(O,0,k)}}return!0}},{key:"flush",value:function(t){var e=this._automationEvents.findIndex((function(e){return g(e)>t}));if(e>1){var n=this._automationEvents.slice(e-1),r=n[0];x(r)&&n.unshift(a(d(this._automationEvents,e-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=n}}},{key:"getValue",value:function(t){if(0===this._automationEvents.length)return this._defaultValue;var n=this._automationEvents[this._automationEvents.length-1],r=this._automationEvents.findIndex((function(e){return g(e)>t})),o=this._automationEvents[r],i=g(n)<=t?n:this._automationEvents[r-1];if(void 0!==i&&x(i)&&(void 0===o||!f(o)||o.insertTime>t))return u(t,d(this._automationEvents,r-2,i.startTime,this._defaultValue),i);if(void 0!==i&&p(i)&&(void 0===o||!f(o)))return i.value;if(void 0!==i&&h(i)&&(void 0===o||!f(o)||i.startTime+i.duration>t))return tr.h.has(t)},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(20)){var r=n(67),o=n(9),i=n(10),a=n(1),s=n(121),u=n(154),c=n(40),l=n(88),f=n(65),p=n(30),h=n(89),d=n(42),y=n(17),v=n(199),m=n(69),g=n(56),b=n(29),_=n(105),w=n(12),x=n(24),O=n(146),S=n(70),k=n(72),T=n(71).f,C=n(148),E=n(66),A=n(15),j=n(45),P=n(111),D=n(106),M=n(150),I=n(86),R=n(114),N=n(87),F=n(149),q=n(190),V=n(21),L=n(43),z=V.f,B=L.f,U=o.RangeError,W=o.TypeError,$=o.Uint8Array,H=Array.prototype,G=u.ArrayBuffer,K=u.DataView,Q=j(0),Y=j(2),X=j(3),J=j(4),Z=j(5),tt=j(6),et=P(!0),nt=P(!1),rt=M.values,ot=M.keys,it=M.entries,at=H.lastIndexOf,st=H.reduce,ut=H.reduceRight,ct=H.join,lt=H.sort,ft=H.slice,pt=H.toString,ht=H.toLocaleString,dt=A("iterator"),yt=A("toStringTag"),vt=E("typed_constructor"),mt=E("def_constructor"),gt=s.CONSTR,bt=s.TYPED,_t=s.VIEW,wt=j(1,(function(t,e){return Tt(D(t,t[mt]),e)})),xt=i((function(){return 1===new $(new Uint16Array([1]).buffer)[0]})),Ot=!!$&&!!$.prototype.set&&i((function(){new $(1).set({})})),St=function(t,e){var n=d(t);if(n<0||n%e)throw U("Wrong offset!");return n},kt=function(t){if(w(t)&&bt in t)return t;throw W(t+" is not a typed array!")},Tt=function(t,e){if(!(w(t)&&vt in t))throw W("It is not a typed array constructor!");return new t(e)},Ct=function(t,e){return Et(D(t,t[mt]),e)},Et=function(t,e){for(var n=0,r=e.length,o=Tt(t,r);r>n;)o[n]=e[n++];return o},At=function(t,e,n){z(t,e,{get:function(){return this._d[n]}})},jt=function(t){var e,n,r,o,i,a,s=x(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,p=C(s);if(null!=p&&!O(p)){for(a=p.call(s),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=y(s.length),o=Tt(this,n);n>e;e++)o[e]=f?l(s[e],e):s[e];return o},Pt=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Dt=!!$&&i((function(){ht.call(new $(1))})),Mt=function(){return ht.apply(Dt?ft.call(kt(this)):kt(this),arguments)},It={copyWithin:function(t,e){return q.call(kt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(kt(this),arguments)},filter:function(t){return Ct(this,Y(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(kt(this),arguments)},lastIndexOf:function(t){return at.apply(kt(this),arguments)},map:function(t){return wt(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(kt(this),arguments)},reduceRight:function(t){return ut.apply(kt(this),arguments)},reverse:function(){for(var t,e=kt(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return lt.call(kt(this),t)},subarray:function(t,e){var n=kt(this),r=n.length,o=m(t,r);return new(D(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,y((void 0===e?r:m(e,r))-o))}},Rt=function(t,e){return Ct(this,ft.call(kt(this),t,e))},Nt=function(t){kt(this);var e=St(arguments[1],1),n=this.length,r=x(t),o=y(r.length),i=0;if(o+e>n)throw U("Wrong length!");for(;i255?255:255&r),o.v[h](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};b?(d=n((function(t,n,r,o){l(t,d,c,"_d");var i,a,s,u,f=0,h=0;if(w(n)){if(!(n instanceof G||"ArrayBuffer"==(u=_(n))||"SharedArrayBuffer"==u))return bt in n?Et(d,n):jt.call(d,n);i=n,h=St(r,e);var m=n.byteLength;if(void 0===o){if(m%e)throw U("Wrong length!");if((a=m-h)<0)throw U("Wrong length!")}else if((a=y(o)*e)+h>m)throw U("Wrong length!");s=a/e}else s=v(n),i=new G(a=s*e);for(p(t,"_d",{b:i,o:h,l:a,e:s,v:new K(i)});fObject(o.a)(r.i,t)},,function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(66)("meta"),o=n(12),i=n(29),a=n(21).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(10)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(1006)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(54);const i=t=>{if(!r.a.has(t))throw new Error("The AudioNode is not stored.");r.a.delete(t),Object(o.a)(t).forEach(t=>t(!1))}},function(t,e,n){"use strict";var r=n(33),o=n(0),i=n.n(o),a=n(76),s=n.n(a),u=n(34),c=n(161),l=n.n(c),f=n(661),p=n.n(f);function h(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var d=i.a.createContext||function(t,e){var n,r,i="__create-react-context-"+p()()+"__",a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=h(e.props.value),e}l()(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[i]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},r.render=function(){return this.props.children},n}(o.Component);a.childContextTypes=((n={})[i]=s.a.object.isRequired,n);var u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}l()(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?1073741823:e},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?1073741823:t},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(o.Component);return u.contextTypes=((r={})[i]=s.a.object,r),{Provider:a,Consumer:u}},y=n(28),v=n(16),m=n(162),g=n.n(m),b=(n(158),n(47)),_=n(662),w=n.n(_);n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return x})),n.d(e,"f",(function(){return P})),n.d(e,"g",(function(){return V}));var x=function(t){var e=d();return e.displayName=t,e}("Router"),O=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(x.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},e}(i.a.Component);i.a.Component;var S=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(i.a.Component);var k={},T=0;function C(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(k[t])return k[t];var e=g.a.compile(t);return T<1e4&&(k[t]=e,T++),e}(t)(e,{pretty:!0})}function E(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return i.a.createElement(x.Consumer,null,(function(t){t||Object(y.a)(!1);var r=t.history,a=t.staticContext,s=o?r.push:r.replace,c=Object(u.c)(e?"string"==typeof n?C(n,e.params):Object(v.a)({},n,{pathname:C(n.pathname,e.params)}):n);return a?(s(c),null):i.a.createElement(S,{onMount:function(){s(c)},onUpdate:function(t,e){var n=Object(u.c)(e.to);Object(u.f)(n,Object(v.a)({},c,{key:n.key}))||s(c)},to:n})}))}var A={},j=0;function P(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=A[n]||(A[n]={});if(r[t])return r[t];var o=[],i={regexp:g()(t,o,e),keys:o};return j<1e4&&(r[t]=i,j++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var l=u[0],f=u.slice(1),p=t===l;return i&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var D=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(x.Consumer,null,(function(e){e||Object(y.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?P(n.pathname,t.props):e.match,o=Object(v.a)({},e,{location:n,match:r}),a=t.props,s=a.children,u=a.component,c=a.render;return Array.isArray(s)&&0===s.length&&(s=null),i.a.createElement(x.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?i.a.createElement(u,o):c?c(o):null:"function"==typeof s?s(o):null)}))},e}(i.a.Component);function M(t){return"/"===t.charAt(0)?t:"/"+t}function I(t,e){if(!t)return e;var n=M(t);return 0!==e.pathname.indexOf(n)?e:Object(v.a)({},e,{pathname:e.pathname.substr(n.length)})}function R(t){return"string"==typeof t?t:Object(u.e)(t)}function N(t){return function(){Object(y.a)(!1)}}function F(){}i.a.Component;var q=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(x.Consumer,null,(function(e){e||Object(y.a)(!1);var n,r,o=t.props.location||e.location;return i.a.Children.forEach(t.props.children,(function(t){if(null==r&&i.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?P(o.pathname,Object(v.a)({},t.props,{path:a})):e.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},e}(i.a.Component);function V(t){var e="withRouter("+(t.displayName||t.name)+")",n=function(e){var n=e.wrappedComponentRef,r=Object(b.a)(e,["wrappedComponentRef"]);return i.a.createElement(x.Consumer,null,(function(e){return e||Object(y.a)(!1),i.a.createElement(t,Object(v.a)({},r,e,{ref:n}))}))};return n.displayName=e,n.WrappedComponent=t,w()(n,t)}i.a.useContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(77);const o=t=>Object(r.a)(t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=t=>r.a.has(t)},function(t,e){function n(t,e){for(var n=0;ndocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(174),o=n(133).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(29),o=n(24),i=n(132)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(15)("unscopables"),o=Array.prototype;null==o[r]&&n(30)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.childInteractiveProps=e.defaultTapTimeCutoff=e.queueTime=e.knownProps=e.knownRoleTags=e.nonBlurrableTags=e.statePropOptionKeys=e.stateProps=e.iStates=e.otherEvents=e.touchEvents=e.mouseEvents=e.passiveEventSupport=e.deviceHasMouse=e.deviceHasTouch=e.deviceType=void 0;var r=Object.assign||function(t){for(var e=1;e"context"in t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"context"in t},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(23);const i=t=>Object(o.a)(r.d,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(23);const i=t=>Object(o.a)(r.e,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r={value:t};return Object.defineProperties(n,{currentTarget:r,target:r}),"function"==typeof e?e.call(t,n):e.handleEvent.call(t,n)}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m}));var r=n(60),o=n(33),i=n(0),a=n.n(i),s=n(34),u=(n(76),n(16)),c=n(47),l=n(28),f=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o{var e;t.getChannelData=(e=t.getChannelData,n=>{try{return e.call(t,n)}catch(t){if(12===t.code)throw Object(r.a)();throw t}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,o)=>{if("number"==typeof o&&o<0||r<0||n<0)throw new RangeError("The parameters can't be negative.");e.call(t,n,r,o)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.stop=(e=t.stop,(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");e.call(t,n)})}},function(t,e){function n(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}},function(t,e,n){"use strict";e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=e||{},a=t.split(i),u=o.decode||r,c=0;c{try{t.copyToChannel(new Float32Array(1),0,-1)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(32);const o=(t,e,n,o)=>{if(Object(r.a)(e)){const r=e.inputs[o];return t.connect(r,n,0),[r,n,0]}return t.connect(e,n,o),[e,n,o]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(32);const o=(t,e,n,o)=>{Object(r.a)(e)?t.disconnect(e.inputs[o],n,0):t.disconnect(e,n,o)}},function(t,e,n){"use strict";function r(t,e,n,r,o){if("function"==typeof t.copyFromChannel)0===e[n].byteLength&&(e[n]=new Float32Array(128)),t.copyFromChannel(e[n],r,o);else{const i=t.getChannelData(r);if(0===e[n].byteLength)e[n]=i.slice(o,o+128);else{const t=new Float32Array(i.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);e[n].set(t)}}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>{const n=[];for(let r=0;r{try{return new DOMException("","InvalidAccessError")}catch(t){return t.code=15,t.name="InvalidAccessError",t}}},,function(t,e){t.exports=function(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}},function(t,e,n){var r=n(51);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(51),o=n(15)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(11),o=n(41),i=n(15)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>{let o=Object.getPrototypeOf(t);for(;!o.hasOwnProperty(e);)o=Object.getPrototypeOf(o);const{get:i,set:a}=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,{get:n(i),set:r(a)})}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(47),a=n(16);function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var u=n(33),c=n(659),l=n.n(c);function f(t,e){if(!t){var n=new Error("loadable: "+e);throw n.framesToPop=1,n.name="Invariant Violation",n}}var p=o.a.createContext();var h=function(t){return t};function d(t){var e=t.resolve,n=void 0===e?h:e,r=t.render,c=t.onLoad;function l(t,e){void 0===e&&(e={});var l=function(t){return"function"==typeof t?{requireAsync:t}:t}(t),h={};function d(t){return e.cacheKey?e.cacheKey(t):l.resolve?l.resolve(t):null}var y,v=function(t){function o(n){var r;return(r=t.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:d(n)},r.promise=null,f(!n.__chunkExtractor||l.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===e.ssr||(l.requireAsync(n).catch((function(){})),r.loadSync(),n.__chunkExtractor.addChunk(l.chunkName(n))),s(r)):(!1!==e.ssr&&l.isReady&&l.isReady(n)&&r.loadSync(),r)}Object(u.a)(o,t),o.getDerivedStateFromProps=function(t,e){var n=d(t);return Object(a.a)({},e,{cacheKey:n,loading:e.loading||e.cacheKey!==n})};var p=o.prototype;return p.componentDidMount=function(){this.mounted=!0,this.state.loading?this.loadAsync():this.state.error||this.triggerOnLoad()},p.componentDidUpdate=function(t,e){e.cacheKey!==this.state.cacheKey&&(this.promise=null,this.loadAsync())},p.componentWillUnmount=function(){this.mounted=!1},p.safeSetState=function(t,e){this.mounted&&this.setState(t,e)},p.triggerOnLoad=function(){var t=this;c&&setTimeout((function(){c(t.state.result,t.props)}))},p.loadSync=function(){if(this.state.loading)try{var t=l.requireSync(this.props),e=n(t,{Loadable:g});this.state.result=e,this.state.loading=!1}catch(t){this.state.error=t}},p.getCacheKey=function(){return d(this.props)||JSON.stringify(this.props)},p.getCache=function(){return h[this.getCacheKey()]},p.setCache=function(t){h[this.getCacheKey()]=t},p.loadAsync=function(){var t=this;if(!this.promise){var r=this.props,o=(r.__chunkExtractor,r.forwardedRef,Object(i.a)(r,["__chunkExtractor","forwardedRef"]));this.promise=l.requireAsync(o).then((function(r){var o=n(r,{Loadable:g});e.suspense&&t.setCache(o),t.safeSetState({result:n(r,{Loadable:g}),loading:!1},(function(){return t.triggerOnLoad()}))})).catch((function(e){t.safeSetState({error:e,loading:!1})}))}return this.promise},p.render=function(){var t=this.props,n=t.forwardedRef,o=t.fallback,s=(t.__chunkExtractor,Object(i.a)(t,["forwardedRef","fallback","__chunkExtractor"])),u=this.state,c=u.error,l=u.loading,f=u.result;if(e.suspense){var p=this.getCache();if(!p)throw this.loadAsync();return r({loading:!1,fallback:null,result:p,options:e,props:Object(a.a)({},s,{ref:n})})}if(c)throw c;var h=o||e.fallback||null;return l?h:r({loading:l,fallback:h,result:f,options:e,props:Object(a.a)({},s,{ref:n})})},o}(o.a.Component),m=(y=v,function(t){return o.a.createElement(p.Consumer,null,(function(e){return o.a.createElement(y,Object.assign({__chunkExtractor:e},t))}))}),g=o.a.forwardRef((function(t,e){return o.a.createElement(m,Object.assign({forwardedRef:e},t))}));return g.preload=function(t){l.requireAsync(t)},g.load=function(t){return l.requireAsync(t)},g}return{loadable:l,lazy:function(t,e){return l(t,Object(a.a)({},e,{suspense:!0}))}}}var y=d({resolve:function(t,e){var n=e.Loadable,r=t.__esModule?t.default:t.default||t;return l()(n,r,{preload:!0}),r},render:function(t){var e=t.result,n=t.props;return o.a.createElement(e,n)}}),v=y.loadable,m=y.lazy,g=d({onLoad:function(t,e){t&&e.forwardedRef&&("function"==typeof e.forwardedRef?e.forwardedRef(t):e.forwardedRef.current=t)},render:function(t){var e=t.result,n=t.loading,r=t.props;return!n&&r.children?r.children(e):null}}),b=g.loadable,_=g.lazy;var w=v;w.lib=b,m.lib=_;e.a=w},,function(t,e,n){var r=n(18),o=n(9),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(67)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(31),o=n(17),i=n(69);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(51);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(15)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(11);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(105),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(192);var r=n(26),o=n(30),i=n(10),a=n(52),s=n(15),u=n(151),c=s("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=s(t),h=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!e})):void 0;if(!h||!d||"replace"===t&&!l||"split"===t&&!f){var y=/./[p],v=n(a,p,""[t],(function(t,e,n,r,o){return e.exec===u?h&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],g=v[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},function(t,e,n){var r=n(40),o=n(187),i=n(146),a=n(11),s=n(17),u=n(148),c={},l={};(e=t.exports=function(t,e,n,f,p){var h,d,y,v,m=p?function(){return t}:u(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>b;b++)if((v=e?g(a(d=t[b])[0],d[1]):g(t[b]))===c||v===l)return v}else for(y=m.call(t);!(d=y.next()).done;)if((v=o(y,g,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(9).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),o=n(1),i=n(26),a=n(89),s=n(57),u=n(118),c=n(88),l=n(12),f=n(10),p=n(114),h=n(84),d=n(137);t.exports=function(t,e,n,y,v,m){var g=r[t],b=g,_=v?"set":"add",w=b&&b.prototype,x={},O=function(t){var e=w[t];i(w,t,"delete"==t||"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,k=S[_](m?{}:-0,1)!=S,T=f((function(){S.has(1)})),C=p((function(t){new b(t)})),E=!m&&f((function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)}));C||((b=e((function(e,n){c(e,b,t);var r=d(new g,e,b);return null!=n&&u(n,v,r[_],r),r}))).prototype=w,w.constructor=b),(T||E)&&(O("delete"),O("has"),v&&O("get")),(E||k)&&O(_),m&&w.clear&&delete w.clear}else b=y.getConstructor(e,t,v,_),a(b.prototype,n),s.NEED=!0;return h(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=g),x),m||y.setStrong(b,t,v),b}},function(t,e,n){for(var r,o=n(9),i=n(30),a=n(66),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[p[f++]])?(i(r.prototype,s,!0),i(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;cvoid 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((n,r)=>t.call(e,n,r,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>{"function"==typeof t.copyToChannel?0!==e[n].byteLength&&t.copyToChannel(e[n],r,o):0!==e[n].byteLength&&t.getChannelData(r).set(e[n],o)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l)=>{const f=c.length;let p=s;for(let s=0;snull===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e)))))},function(t,e,n){"use strict";var r=n(3),o=n(0),i=n.n(o),a=n(58);if(!o.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.q)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var s=!1;function u(){return s}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function f(t){return t.current?Object(r.j)(t.current):""}var p=[];function h(){var t=l(Object(o.useState)(0),2)[1];return Object(o.useCallback)((function(){t((function(t){return t+1}))}),[])}var d={};function y(t,e,n){if(void 0===e&&(e="observed"),void 0===n&&(n=d),u())return t();var i=(n.useForceUpdate||h)(),a=Object(o.useRef)(null);a.current||(a.current=new r.b("observer("+e+")",(function(){i()})));var s,c,l=function(){a.current&&!a.current.isDisposed&&(a.current.dispose(),a.current=null)};if(Object(o.useDebugValue)(a,f),function(t){Object(o.useEffect)((function(){return t}),p)}((function(){l()})),a.current.track((function(){try{s=t()}catch(t){c=t}})),c)throw l(),c;return s}function v(t,e){if(u())return t;var n,r,i,a=c({forwardRef:!1},e),s=t.displayName||t.name,l=function(e,n){return y((function(){return t(e,n)}),s)};return l.displayName=s,n=a.forwardRef?Object(o.memo)(Object(o.forwardRef)(l)):Object(o.memo)(l),r=t,i=n,Object.keys(r).forEach((function(t){r.hasOwnProperty(t)&&!m[t]&&Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})),n.displayName=s,n}var m={$$typeof:!0,render:!0,compare:!0,type:!0};function g(t){var e=t.children,n=t.render,r=e||n;return"function"!=typeof r?null:y(r)}function b(t,e,n,r,o){var i="children"===e?"render":"children",a="function"==typeof t[e],s="function"==typeof t[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof t[e]+"` supplied to `"+n+"`, expected `function`.")}g.propTypes={children:b,render:b},g.displayName="Observer";n.d(e,"a",(function(){return K})),n.d(e,"b",(function(){return U}));var _=0;var w={};function x(t){return w[t]||(w[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+_+")";return _++,e}(t)),w[t]}function O(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i",a=t.bind(this),s=!1,c=new r.b(i+".render()",(function(){if(!s&&(s=!0,!0!==e[M])){var t=!0;try{T(e,R,!0),e[I]||o.Component.prototype.forceUpdate.call(e),t=!1}finally{T(e,R,!1),t&&c.dispose()}}}));function l(){s=!1;var t=void 0,e=void 0;if(c.track((function(){try{e=Object(r.c)(!1,a)}catch(e){t=e}})),t)throw t;return e}return c.reactComponent=this,l[D]=c,this.render=l,l.call(this)}function q(t,e){return u()&&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!==e||!O(this.props,t)}function V(t,e){var n=x("reactProp_"+e+"_valueHolder"),o=x("reactProp_"+e+"_atomHolder");function i(){return this[o]||T(this,o,Object(r.i)("reactive "+e)),this[o]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return r.e&&r.d&&(t=Object(r.e)(!0)),i.call(this).reportObserved(),r.e&&r.d&&Object(r.d)(t),this[n]},set:function(t){this[R]||O(this[n],t)?T(this,n,t):(T(this,n,t),T(this,I,!0),i.call(this).reportChanged(),T(this,I,!1))}})}var L="function"==typeof Symbol&&Symbol.for,z=L?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&Object(o.forwardRef)((function(t){return null})).$$typeof,B=L?Symbol.for("react.memo"):"function"==typeof o.memo&&Object(o.memo)((function(t){return null})).$$typeof;function U(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),B&&t.$$typeof===B)throw new Error("Mobx observer: You are trying to use 'observer' on function component wrapped to either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(z&&t.$$typeof===z){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(o.forwardRef)((function(){var t=arguments;return Object(o.createElement)(g,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(o.Component,t)?N(t):v(t)}function W(){return(W=Object.assign||function(t){for(var e=1;e0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(42),o=n(52);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(67),o=n(1),i=n(26),a=n(30),s=n(86),u=n(186),c=n(84),l=n(72),f=n(15)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,y,v,m){u(n,e,d);var g,b,_,w=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==y,S=!1,k=t.prototype,T=k[f]||k["@@iterator"]||y&&k[y],C=T||w(y),E=y?O?w("entries"):C:void 0,A="Array"==e&&k.entries||T;if(A&&(_=l(A.call(new t)))!==Object.prototype&&_.next&&(c(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),O&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),r&&!m||!p&&!S&&k[f]||a(k,f,C),s[e]=C,s[x]=h,y)if(g={values:O?C:w("values"),keys:v?C:w("keys"),entries:E},m)for(b in g)b in k||i(k,b,g[b]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,n){var r=n(144),o=n(52);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(12),o=n(51),i=n(15)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(15)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(86),o=n(15)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(21),o=n(65);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(105),o=n(15)("iterator"),i=n(86);t.exports=n(18).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(24),o=n(69),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(73),o=n(191),i=n(86),a=n(31);t.exports=n(142)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(115),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(e=u.lastIndex),r=a.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;on;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(51)(f)?r=function(t){f.nextTick(a(g,t,1))}:y&&y.now?r=function(t){y.now(a(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){"use strict";var r=n(9),o=n(20),i=n(67),a=n(121),s=n(30),u=n(89),c=n(10),l=n(88),f=n(42),p=n(17),h=n(199),d=n(71).f,y=n(21).f,v=n(149),m=n(84),g=r.ArrayBuffer,b=r.DataView,_=r.Math,w=r.RangeError,x=r.Infinity,O=g,S=_.abs,k=_.pow,T=_.floor,C=_.log,E=_.LN2,A=o?"_b":"buffer",j=o?"_l":"byteLength",P=o?"_o":"byteOffset";function D(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,u=(1<>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for((t=S(t))!=t||t===x?(o=t!=t?1:0,r=u):(r=T(C(t)/E),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*p,a}function M(t,e,n){var r,o=8*n-e-1,i=(1<>1,s=o-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-x:x;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function I(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function N(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return D(t,52,8)}function V(t){return D(t,23,4)}function L(t,e,n){y(t.prototype,e,{get:function(){return this[n]}})}function z(t,e,n,r){var o=h(+n);if(o+e>t[j])throw w("Wrong index!");var i=t[A]._b,a=o+t[P],s=i.slice(a,a+e);return r?s:s.reverse()}function B(t,e,n,r,o,i){var a=h(+n);if(a+e>t[j])throw w("Wrong index!");for(var s=t[A]._b,u=a+t[P],c=r(+o),l=0;lH;)(U=$[H++])in g||s(g,U,O[U]);i||(W.constructor=g)}var G=new b(new g(2)),K=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(b.prototype,{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else g=function(t){l(this,g,"ArrayBuffer");var e=h(t);this._b=v.call(new Array(e),0),this[j]=e},b=function(t,e,n){l(this,b,"DataView"),l(t,g,"DataView");var r=t[j],o=f(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:p(n))>r)throw w("Wrong length!");this[A]=t,this[P]=o,this[j]=n},o&&(L(g,"byteLength","_l"),L(b,"buffer","_b"),L(b,"byteLength","_l"),L(b,"byteOffset","_o")),u(b.prototype,{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return I(z(this,4,t,arguments[1]))},getUint32:function(t){return I(z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return M(z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return M(z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){B(this,1,t,R,e)},setUint8:function(t,e){B(this,1,t,R,e)},setInt16:function(t,e){B(this,2,t,N,e,arguments[2])},setUint16:function(t,e){B(this,2,t,N,e,arguments[2])},setInt32:function(t,e){B(this,4,t,F,e,arguments[2])},setUint32:function(t,e){B(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){B(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){B(this,8,t,q,e,arguments[2])}});m(g,"ArrayBuffer"),m(b,"DataView"),s(b.prototype,a.VIEW,!0),e.ArrayBuffer=g,e.DataView=b},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(205)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";t.exports=n(1009)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyOfNext=function(t,e){var n=function t(e){s===Number.MAX_SAFE_INTEGER&&(s=0);return s++,void 0===a[e][s]?s:t(e)}(t);return a[t][n]=i[t].push({id:n,callback:e})-1,n},e.cancelNotifyOfNext=function(t,e){"undefined"!==a[t][e]&&(i[t][a[t][e]].callback=u,delete a[t][e])},e.notifyOfAll=function(t,e){t.forEach((function(t){o[t]=e}))};var r=n(75),o={},i={},a={},s=0;var u=function(){};function c(t){o[t.type](t)}function l(t){if(0!==i[t.type].length){t.persist=u;var e=[],n={};i[t.type].forEach((function(r){"reNotifyOfNext"===r.callback(t)&&(n[r.id]=e.push(r)-1)})),i[t.type]=e,a[t.type]=n}}function f(t){c(t),l(t)}function p(t,e,n,o){i[e]=[],a[e]={},t.addEventListener(e,n,r.passiveEventSupport?{capture:o,passive:"click"!==e}:o)}if(r.deviceHasTouch&&(p(window,"click",c,!0),Object.keys(r.touchEvents).forEach((function(t){p(document,t,"touchstart"===t?f:c,!0)}))),r.deviceHasMouse){Object.keys(r.mouseEvents).forEach((function(t){p(document,t,"mouseenter"===t?f:c,!("mouseenter"===t||"mouseleave"===t))})),p(document,"dragstart",l,!0),r.passiveEventSupport&&p(document,"scroll",l,!0),i.mutation=[],a.mutation={};var h=(0,r.dummyEvent)("mutation");(window.MutationObserver?new MutationObserver(l.bind(null,h)):{observe:function(){}}).observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach((function(t){p(window,t,l,!1)})),p(document,"keydown",c,!0)},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){var r=n(1018);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return s(i(t,e))},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=o.exec(t));){var f=n[0],p=n[1],h=n.index;if(s+=t.slice(a,h),a=h+f.length,p)s+=p[1];else{var d=t[a],y=n[2],v=n[3],m=n[4],g=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=y&&null!=d&&d!==y,x="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,k=m||g;r.push({name:v||i++,prefix:y||"",delimiter:S,optional:O,repeat:x,partial:w,asterisk:!!_,pattern:k?c(k):_?".*":"[^"+u(S)+"]+?"})}}return a{try{return new DOMException("","AbortError")}catch(t){return t.code=20,t.name="AbortError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","UnknownError")}catch(t){return t.name="UnknownError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{if(null===t)return!1;const e=t.length;return e%2!=0?0!==t[Math.floor(e/2)]:t[e/2-1]+t[e/2]!==0}},function(t,e,n){var r=n(1014),o=n(817);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){var r=n(1015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e=10)return t;for(o in t)"string"==typeof t[o]&&0===t[o].indexOf("[%lktxp]")?(i=t[o].substring(8),n.hasOwnProperty(i)&&(t[o]=n[i])):"object"==typeof t[o]&&(t[o]=e.resolveTransformObject(t[o],n,r));return t},resolveTransformParams:function(t,n){var r,o,i=[];if(void 0===n)return t;for(r=0;ro)&&n:r==r&&o!=o||(o!=o||r==r)&&(te)&&(t==e?n:(r=t.toString())<(o=e.toString())||r==o&&n))}function u(t,e,n){var r,o,i,a;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t==t?9:0}switch(e){case void 0:case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=e==e?9:0}if(9!==i||9!==a)return i===a?n:i>a}return r=Number(t),o=Number(e),r==r&&o==o?r>o||!(re||!(t(o=e.toString())||r==o&&n))}function c(t,e,n){return i.aeq(t,e)?0:i.lt(t,e,!1)?n?1:-1:i.gt(t,e,!1)?n?-1:1:0}function l(t,e,n,r,o){var i,a=o||0,s=e[a],u=!1;if("object"==typeof t&&s in t&&(i=t[s]),a+1>=e.length)u=n(i,r);else if(Array.isArray(i))for(var c=0,f=i.length;ce},$jgte:function(t,e){return t>=e},$jlt:function(t,e){return t=e[0]&&t<=e[1]},$in:function(t,e){return-1!==e.indexOf(t)},$nin:function(t,e){return-1===e.indexOf(t)},$keyin:function(t,e){return t in e},$nkeyin:function(t,e){return!(t in e)},$definedin:function(t,e){return void 0!==e[t]},$undefinedin:function(t,e){return void 0===e[t]},$regex:function(t,e){return e.test(t)},$containsString:function(t,e){return"string"==typeof t&&-1!==t.indexOf(e)},$containsNone:function(t,e){return!h.$containsAny(t,e)},$containsAny:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.some(n):n(e))},$contains:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.every(n):n(e))},$elemMatch:function(t,e){return!!Array.isArray(t)&&t.some((function(t){return Object.keys(e).every((function(n){var r=e[n];return"object"==typeof r&&r||(r={$eq:r}),-1!==n.indexOf(".")?l(t,n.split("."),p,e[n]):p(t[n],r)}))}))},$type:function(t,e){var n=typeof t;return"object"===n&&(Array.isArray(t)?n="array":t instanceof Date&&(n="date")),"object"!=typeof e?n===e:p(n,e)},$finite:function(t,e){return e===isFinite(t)},$size:function(t,e){return!!Array.isArray(t)&&("object"!=typeof e?t.length===e:p(t.length,e))},$len:function(t,e){return"string"==typeof t&&("object"!=typeof e?t.length===e:p(t.length,e))},$where:function(t,e){return!0===e(t)},$not:function(t,e){return!p(t,e)},$and:function(t,e){for(var n=0,r=e.length;n=0||"$loki"==s||"meta"==s)o[s]=e[s];else{var u=a(t[s],e[s]);void 0!==u&&u!={}&&(o[s]=u)}}return 0===Object.keys(o).length?void 0:o}return t===e?void 0:e}function s(){r.changes=[]}this.observerCallback=function(e){var n="function"==typeof Set?new Set:[];n.add||(n.add=function(t){return-1===this.indexOf(t)&&this.push(t),this}),e.forEach((function(t){n.add(t.object)})),n.forEach((function(e){if(!t.call(e,"$loki"))return r.removeAutoUpdateObserver(e);try{r.update(e)}catch(t){}}))},this.getChangeDelta=function(t,e){return e?a(e,t):JSON.parse(JSON.stringify(t))},this.getObjectDelta=a,this.getChanges=function(){return r.changes},this.flushChanges=s,this.setChangesApi=function(t){r.disableChangesApi=!t,t||(r.disableDeltaChangesApi=!1)},this.on("delete",(function(t){r.disableChangesApi||r.createChange(r.name,"R",t)})),this.on("warning",(function(t){r.lokiConsoleWrapper.warn(t)})),s()}function T(t){return-1!==t.indexOf(".")}function C(t){return parseFloat(t,10)}function E(t,e){return t+e}function A(t,e){return t-e}function j(t){return t.reduce(E,0)/t.length}function P(t,e,n){if(!1===n)return t[e];for(var r=e.split("."),o=t;r.length>0;)o=o[r.shift()];return o}function D(t,e,n){for(var r,o,i=0,a=t.length;i>1,0===(r=n.apply(null,[e,t[o]])))return{found:!0,index:o};r<0?a=o:i=o+1}return{found:!1,index:a}}function M(t){return function(e,n){return D(e,n,t)}}function I(){}function R(t){this.field=t,this.keyMap={},this.lokiMap={}}function N(t){this.index={},this.field=t}return m.prototype.events={},m.prototype.asyncListeners=!1,m.prototype.on=function(t,e){var n,r=this;return Array.isArray(t)?(t.forEach((function(t){r.on(t,e)})),e):((n=this.events[t])||(n=this.events[t]=[]),n.push(e),e)},m.prototype.emit=function(t){var e=this,n=Array.prototype.slice.call(arguments,1);if(!t||!this.events[t])throw new Error("No event "+t+" defined");this.events[t].forEach((function(t){e.asyncListeners?setTimeout((function(){t.apply(e,n)}),1):t.apply(e,n)}))},m.prototype.addListener=m.prototype.on,m.prototype.removeListener=function(t,e){var n=this;if(Array.isArray(t))t.forEach((function(t){n.removeListener(t,e)}));else if(this.events[t]){var r=this.events[t];r.splice(r.indexOf(e),1)}},g.prototype=new m,g.prototype.constructor=g,g.prototype.getIndexedAdapter=function(){return n(1011)},g.prototype.configureOptions=function(t,e){var n={fs:w,localStorage:x,memory:b};if(this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,void 0!==t){if(this.options=t,this.options.hasOwnProperty("persistenceMethod")&&"function"==typeof n[t.persistenceMethod]&&(this.persistenceMethod=t.persistenceMethod,this.persistenceAdapter=new n[t.persistenceMethod]),this.options.hasOwnProperty("adapter")&&(this.persistenceMethod="adapter",this.persistenceAdapter=t.adapter,this.options.adapter=null,this.isIncremental="incremental"===this.persistenceAdapter.mode),t.autoload&&e){var r=this;setTimeout((function(){r.loadDatabase(t,t.autoloadCallback)}),1)}this.options.hasOwnProperty("autosaveInterval")&&(this.autosaveDisable(),this.autosaveInterval=parseInt(this.options.autosaveInterval,10)),this.options.hasOwnProperty("autosave")&&this.options.autosave&&(this.autosaveDisable(),this.autosave=!0,this.options.hasOwnProperty("autosaveCallback")?this.autosaveEnable(t,t.autosaveCallback):this.autosaveEnable()),this.options.hasOwnProperty("throttledSaves")&&(this.throttledSaves=this.options.throttledSaves)}this.options.hasOwnProperty("serializationMethod")||(this.options.serializationMethod="normal"),this.options.hasOwnProperty("destructureDelimiter")||(this.options.destructureDelimiter="$<\n"),null===this.persistenceAdapter&&(this.persistenceMethod={NODEJS:"fs",BROWSER:"localStorage",CORDOVA:"localStorage",MEMORY:"memory"}[this.ENV],this.persistenceMethod&&(this.persistenceAdapter=new n[this.persistenceMethod]))},g.prototype.copy=function(t){var e,n,r=new g(this.filename,{env:"NA"});if(t=t||{},r.loadJSONObject(this,{retainDirtyFlags:!0}),t.hasOwnProperty("removeNonSerializable")&&!0===t.removeNonSerializable)for(r.autosaveHandle=null,r.persistenceAdapter=null,e=r.collections.length,n=0;n0)throw new Error("disableMeta option cannot be passed as true when ttl is enabled")}for(n=0;n=0)return this.serializeCollection({delimited:t.delimited,delimiter:t.delimiter,collectionIndex:t.partition});for((i=new g(this.filename)).loadJSONObject(this),e=0;er&&(u=!0):(o=JSON.parse(i[s]),n.collections[a].data.push(o)),i[s++]=null;return n},g.prototype.deserializeCollection=function(t,e){var n,r,o=[];for((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.delimited?(o=t.split(e.delimiter)).pop():o=t,r=o.length,n=0;n=i&&(c=!0)),o>=this.options.pageSize&&(l=!0),l&&!c||(u+=this.options.delimiter,o+=a),c||l)return void this.adapter.saveDatabase(r,u,f)},w.prototype.loadDatabase=function(t,e){var n=this;this.fs.stat(t,(function(r,o){!r&&o.isFile()?n.fs.readFile(t,{encoding:"utf8"},(function(t,n){e(t?new Error(t):n)})):e(null)}))},w.prototype.saveDatabase=function(t,e,n){var r=this,o=t+"~";this.fs.writeFile(o,e,(function(e){e?n(new Error(e)):r.fs.rename(o,t,n)}))},w.prototype.deleteDatabase=function(t,e){this.fs.unlink(t,(function(t){t?e(new Error(t)):e()}))},x.prototype.loadDatabase=function(t,e){v()?e(localStorage.getItem(t)):e(new Error("localStorage is not available"))},x.prototype.saveDatabase=function(t,e,n){v()?(localStorage.setItem(t,e),n(null)):n(new Error("localStorage is not available"))},x.prototype.deleteDatabase=function(t,e){v()?(localStorage.removeItem(t),e(null)):e(new Error("localStorage is not available"))},g.prototype.throttledSaveDrain=function(t,e){var n=this,r=(new Date).getTime();if(this.throttledSaves||t(!0),(e=e||{}).hasOwnProperty("recursiveWait")||(e.recursiveWait=!0),e.hasOwnProperty("recursiveWaitLimit")||(e.recursiveWaitLimit=!1),e.hasOwnProperty("recursiveWaitLimitDuration")||(e.recursiveWaitLimitDuration=2e3),e.hasOwnProperty("started")||(e.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!e.recursiveWait)return void this.throttledCallbacks.push(t);this.throttledCallbacks.push((function(){return n.throttledSavePending?e.recursiveWaitLimit&&r-e.started>e.recursiveWaitLimitDuration?void t(!1):void n.throttledSaveDrain(t,e):void t(!0)}))}else t(!0)},g.prototype.loadDatabaseInternal=function(t,e){var n=e||function(t,e){if(t)throw t},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,(function(e){if("string"==typeof e){var o=!1;try{r.loadJSON(e,t||{}),o=!0}catch(t){n(t)}o&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!e)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(e instanceof Error)return void n(e);if("object"==typeof e)return r.loadJSONObject(e,t||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+e)}})):n(new Error("persistenceAdapter not configured"))},g.prototype.loadDatabase=function(t,e){var n=this;this.throttledSaves?this.throttledSaveDrain((function(r){if(r)return n.throttledSavePending=!0,void n.loadDatabaseInternal(t,(function(t){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof e&&e(t)}));"function"==typeof e&&e(new Error("Unable to pause save throttling long enough to read database"))}),t):this.loadDatabaseInternal(t,e)},g.prototype.saveDatabaseInternal=function(t){var e=t||function(t){if(t)throw t},n=this;if(this.persistenceAdapter)if("reference"!==this.persistenceAdapter.mode&&this.autosaveClearFlags(),"incremental"===this.persistenceAdapter.mode){var r=this.copy({removeNonSerializable:!0}),o=this.collections.map((function(t){return t.dirtyIds}));this.collections.forEach((function(t){t.dirtyIds=[]})),this.persistenceAdapter.saveDatabase(this.filename,r,(function(t){t&&n.collections.forEach((function(t,e){t.dirtyIds=t.dirtyIds.concat(o[e])})),e(t)}))}else"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),(function(t){n.autosaveClearFlags(),e(t)})):this.persistenceAdapter.saveDatabase(this.filename,this.serialize(),(function(t){e(t)}));else e(new Error("persistenceAdapter not configured"))},g.prototype.saveDatabase=function(t){if(this.throttledSaves)if(this.throttledSavePending)this.throttledCallbacks.push(t);else{var e=this.throttledCallbacks;this.throttledCallbacks=[],e.unshift(t),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal((function(t){n.throttledSavePending=!1,e.forEach((function(e){"function"==typeof e&&setTimeout((function(){e(t)}),1)})),n.throttledCallbacks.length>0&&n.saveDatabase()}))}else this.saveDatabaseInternal(t)},g.prototype.save=g.prototype.saveDatabase,g.prototype.deleteDatabase=function(t,e){var n=e||function(t,e){if(t)throw t};"function"!=typeof t||e||(n=t),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,(function(t){n(t)})):n(new Error("persistenceAdapter not configured"))},g.prototype.autosaveDirty=function(){for(var t=0;t0&&(this.filteredrows=[]),this.filterInitialized=!1,this},O.prototype.toJSON=function(){var t=this.copy();return t.collection=null,t},O.prototype.limit=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(0,t),e.filterInitialized=!0,e},O.prototype.offset=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(t),e.filterInitialized=!0,e},O.prototype.copy=function(){var t=new O(this.collection);return this.filteredrows.length>0&&(t.filteredrows=this.filteredrows.slice()),t.filterInitialized=this.filterInitialized,t},O.prototype.branch=O.prototype.copy,O.prototype.transform=function(t,n){var r,o,i=this;if("string"==typeof t&&this.collection.transforms.hasOwnProperty(t)&&(t=this.collection.transforms[t]),"object"!=typeof t||!Array.isArray(t))throw new Error("Invalid transform");for(void 0!==n&&(t=e.resolveTransformParams(t,n)),r=0;rn[t]?1:e[t]1)return this.find({$and:m},r)}if(!i||"getAll"===p)return r&&(this.filterInitialized?this.filteredrows=this.filteredrows.slice(0,1):(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0)),this;if("$and"===i||"$or"===i)return this[i](a),r&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===a||"object"!=typeof a||a instanceof Date)u="$eq",c=a;else{if("object"!=typeof a)throw new Error("Do not know what you want to do.");for(f in a)if(t.call(a,f)){u=f,c=a[f];break}}"$regex"!==u&&"object"!=typeof c||(c=function t(e,n){if("$regex"===e)Array.isArray(n)?n=new RegExp(n[0],n[1]):n instanceof RegExp||(n=new RegExp(n));else if("object"==typeof n)for(var r in n)"$regex"!==r&&"object"!=typeof n[r]||(n[r]=t(r,n[r]));return n}(u,c));var b=-1!==i.indexOf(".");!this.filterInitialized&&this.collection.binaryIndices[i]&&d[u]&&(!0!==this.collection.adaptiveBinaryIndices&&this.collection.ensureIndex(i),y=!0,g=this.collection.binaryIndices[i]);var _,w=h[u],x=this.collection.data,O=0,S=0,k=0;if(this.filterInitialized){if(S=(_=this.filteredrows).length,b){for(i=i.split("."),O=0;O=0?(this.filterPipeline[e]=t,this.reapplyFilters()):(this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(t),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent(),this)},S.prototype.applyFind=function(t,e){return this.applyFilter({type:"find",val:t,uid:e}),this},S.prototype.applyWhere=function(t,e){return this.applyFilter({type:"where",val:t,uid:e}),this},S.prototype.removeFilter=function(t){var e=this._indexOfFilterWithId(t);if(e<0)throw new Error("Dynamic view does not contain a filter with ID: "+t);return this.filterPipeline.splice(e,1),this.reapplyFilters(),this},S.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},S.prototype.data=function(t){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(t)},S.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var t=this;setTimeout((function(){t.rebuildPending&&(t.rebuildPending=!1,t.emit("rebuild",t))}),this.options.minRebuildInterval)}},S.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var t=this;"active"===this.options.sortPriority?setTimeout((function(){t.performSortPhase()}),this.options.minRebuildInterval):this.queueRebuildEvent()}},S.prototype.performSortPhase=function(t){(this.sortDirty||this.resultsdirty)&&(t=t||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria?this.resultset.compoundsort(this.sortCriteria):this.sortCriteriaSimple&&this.resultset.simplesort(this.sortCriteriaSimple.propname,this.sortCriteriaSimple.options),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),t.suppressRebuildEvent||this.emit("rebuild",this))},S.prototype.evaluateDocument=function(t,e){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var n,r=this.resultset.filteredrows,o=e?-1:r.indexOf(+t),i=r.length,a=new O(this.collection);a.filteredrows=[t],a.filterInitialized=!0;for(var s=0,u=this.filterPipeline.length;s0&&(this.resultset.filteredrows=this.resultset.filteredrows.filter((function(t,e){return!i[e]})),this.options.persistent&&(this.resultdata=this.resultdata.filter((function(t,e){return!i[e]}))),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var l=function(t){return function(e){return e1)&&(n.randomSamplingFactor=.1);var r,o,i,a,s,u=!0;if(!this.binaryIndices.hasOwnProperty(t))throw new Error("called checkIndex on property without an index: "+t);if(this.adaptiveBinaryIndices||this.ensureIndex(t),(a=(s=this.binaryIndices[t].values).length)!==this.data.length)return n.repair&&this.ensureIndex(t,!0),!1;if(0===a)return!0;var c=-1!==t.indexOf(".");if(1===a)u=0===s[0];else if(n.randomSampling){if(h.$lte(e.getIn(this.data[s[0]],t,c),e.getIn(this.data[s[1]],t,c))||(u=!1),h.$lte(e.getIn(this.data[s[a-2]],t,c),e.getIn(this.data[s[a-1]],t,c))||(u=!1),u)for(o=Math.floor((a-1)*n.randomSamplingFactor),r=0;r0)&&(this.adaptiveBinaryIndices=!1);try{for(r=0;r0,l=this;try{for(this.startTransaction(),r=0;r0||s>0||u>0){if(e>0)for(n=0;n1)for(r=0;r>1;if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))throw new TypeError("Passed id is not an integer");for(;r[i]>1]p[i];i++)u++;l.values[o]-=u}return}t=t[0]}if(null===(c=this.getBinaryIndexPosition(t,e)))return null;if(l.values.splice(c,1),!0!==n)for(r=l.values.length,o=0;ot&&l.values[o]--},k.prototype.calculateRangeStart=function(t,n,r,o){var a=this.data,s=this.binaryIndices[t].values,u=0,c=s.length-1,l=0;if(0===s.length)return-1;for(e.getIn(a[s[u]],t,o),e.getIn(a[s[c]],t,o);u>1,i.lt(e.getIn(a[s[l]],t,o),n,!1)?u=l+1:c=l;var f=u;return i.aeq(n,e.getIn(a[s[f]],t,o))?f:i.lt(n,e.getIn(a[s[f]],t,o),!1)?r?f:f-1:r?f+1:f},k.prototype.calculateRangeEnd=function(t,n,r){var o=this.data,a=this.binaryIndices[t].values,s=0,u=a.length-1,c=0;if(0===a.length)return-1;for(e.getIn(o[a[s]],t,r),e.getIn(o[a[u]],t,r);s>1,i.lt(n,e.getIn(o[a[c]],t,r),!1)?u=c:s=c+1;var l=u;return i.aeq(n,e.getIn(o[a[l]],t,r))?l:i.gt(n,e.getIn(o[a[l]],t,r),!1)?l+1:i.aeq(n,e.getIn(o[a[l-1]],t,r))?l-1:l},k.prototype.calculateRange=function(t,n,r){var o,a,s,u=this.data,c=this.binaryIndices[n].values,l=c.length-1;if(0===u.length)return[0,-1];var f=-1!==n.indexOf("."),p=e.getIn(u[c[0]],n,f),h=e.getIn(u[c[l]],n,f);switch(t){case"$eq":case"$aeq":case"$dteq":if(i.lt(r,p,!1)||i.gt(r,h,!1))return[0,-1];break;case"$gt":if(i.gt(r,h,!0))return[0,-1];if(i.gt(p,r,!1))return[0,l];break;case"$gte":if(i.gt(r,h,!1))return[0,-1];if(i.gt(p,r,!0))return[0,l];break;case"$lt":if(i.lt(r,p,!0))return[0,-1];if(i.lt(h,r,!1))return[0,l];break;case"$lte":if(i.lt(r,p,!1))return[0,-1];if(i.lt(h,r,!0))return[0,l];break;case"$between":return i.gt(r[0],h,!1)||i.lt(r[1],p,!1)?[0,-1]:((o=this.calculateRangeStart(n,r[0],!1,f))<0&&o++,(s=this.calculateRangeEnd(n,r[1],f))>l&&s--,i.gt(e.getIn(u[c[o]],n,f),r[0],!0)||o++,i.lt(e.getIn(u[c[s]],n,f),r[1],!0)||s--,sP(this.data[n],t,o)&&(e=P(this.data[n],t,o),i.index=this.data[n].$loki):(e=P(this.data[n],t,o),i.index=this.data[n].$loki);return i.value=e,i},k.prototype.extractNumerical=function(t){return this.extract(t).map(C).filter(Number).filter((function(t){return!isNaN(t)}))},k.prototype.avg=function(t){return j(this.extractNumerical(t))},k.prototype.stdDev=function(t){return e=this.extractNumerical(t),n=j(e),r=j(e.map((function(t){var e=t-n;return e*e}))),Math.sqrt(r);var e,n,r},k.prototype.mode=function(t){var e,n,r,o={},i=this.extract(t);for(n in i.forEach((function(t){o[t]?o[t]+=1:o[t]=1})),o)e?ee?1:0},setSort:function(t){this.bs=new M(t)},bs:function(){return new M(this.sort)},set:function(t,e){var n=this.bs(this.keys,t);n.found?this.values[n.index]=e:(this.keys.splice(n.index,0,t),this.values.splice(n.index,0,e))},get:function(t){return this.values[D(this.keys,t,this.sort).index]}},R.prototype.keyMap={},R.prototype.lokiMap={},R.prototype.set=function(t){var e=t[this.field];if(null!=e){if(this.keyMap[e])throw new Error("Duplicate key for property "+this.field+": "+e);this.keyMap[e]=t,this.lokiMap[t.$loki]=e}},R.prototype.get=function(t){return this.keyMap[t]},R.prototype.byId=function(t){return this.keyMap[this.lokiMap[t]]},R.prototype.update=function(t,e){if(this.lokiMap[t.$loki]!==e[this.field]){var n=this.lokiMap[t.$loki];this.set(e),this.keyMap[n]=void 0}else this.keyMap[t[this.field]]=e},R.prototype.remove=function(t){var e=this.keyMap[t];if(null==e)throw new Error("Key is not in unique index: "+this.field);this.keyMap[t]=void 0,this.lokiMap[e.$loki]=void 0},R.prototype.clear=function(){this.keyMap={},this.lokiMap={}},N.prototype={set:function(t,e){this.index[t]?this.index[t].push(e):this.index[t]=[e]},remove:function(t,e){var n=this.index[t];for(var r in n)n[r]==e&&n.splice(r,1);n.length<1&&(this.index[t]=void 0)},get:function(t){return this.index[t]},clear:function(t){this.index={}}},g.LokiOps=h,g.Collection=k,g.KeyValueStore=I,g.LokiMemoryAdapter=b,g.LokiPartitioningAdapter=_,g.LokiLocalStorageAdapter=x,g.LokiFsAdapter=w,g.persistenceAdapters={fs:w,localStorage:x},g.aeq=a,g.lt=s,g.gt=u,g.Comparators=i,g}()})?i.apply(e,a):i)||(t.exports=s)}).call(this,n(159),n(206))},,function(t,e,n){t.exports=!n(20)&&!n(10)((function(){return 7!=Object.defineProperty(n(130)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(9),o=n(18),i=n(67),a=n(131),s=n(21).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(29),o=n(31),i=n(111)(!1),a=n(132)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(21),o=n(11),i=n(68);t.exports=n(20)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(31),o=n(71).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(20),o=n(68),i=n(112),a=n(104),s=n(24),u=n(103),c=Object.assign;t.exports=!c||n(10)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,p=a.f;c>l;)for(var h,d=u(arguments[l++]),y=f?o(d).concat(f(d)):o(d),v=y.length,m=0;v>m;)h=y[m++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(41),o=n(12),i=n(180),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(9).parseFloat,o=n(85).trim;t.exports=1/r(n(136)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(51);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(12),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(70),o=n(65),i=n(84),a={};n(30)(a,n(15)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(11);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(914);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(41),o=n(24),i=n(103),a=n(17);t.exports=function(t,e,n,s,u){r(e);var c=o(t),l=i(c),f=a(c.length),p=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(p in l){s=l[p],p+=h;break}if(p+=h,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=h)p in l&&(s=e(s,l[p],p,c));return s}},function(t,e,n){"use strict";var r=n(24),o=n(69),i=n(17);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),s=o(t,a),u=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(151);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(20)&&"g"!=/./g.flags&&n(21).f(RegExp.prototype,"flags",{configurable:!0,get:n(115)})},function(t,e,n){"use strict";var r,o,i,a,s=n(67),u=n(9),c=n(40),l=n(105),f=n(1),p=n(12),h=n(41),d=n(88),y=n(118),v=n(106),m=n(153).set,g=n(934)(),b=n(195),_=n(935),w=n(119),x=n(196),O=u.TypeError,S=u.process,k=S&&S.versions,T=k&&k.v8||"",C=u.Promise,E="process"==l(S),A=function(){},j=o=b.f,P=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n(15)("species")]=function(t){t(A,A)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(O("Promise-chain cycle")):(i=D(n))?i.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){m.call(u,(function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=_((function(){E?S.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=E||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,(function(){var e;E?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=D(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,M(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};P||(C=function(t){d(this,C,"Promise","_h"),h(t),r.call(this);try{t(c(q,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(C.prototype,{then:function(t,e){var n=j(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(F,t,1)},b.f=j=function(t){return t===C||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!P,{Promise:C}),n(84)(C,"Promise"),n(87)("Promise"),a=n(18).Promise,f(f.S+f.F*!P,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!P),"Promise",{resolve:function(t){return x(s&&this===a?C:this,t)}}),f(f.S+f.F*!(P&&n(114)((function(t){C.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;y(t,!1,(function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,o=_((function(){y(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(41);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(11),o=n(12),i=n(195);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(21).f,o=n(70),i=n(89),a=n(40),s=n(88),u=n(118),c=n(142),l=n(191),f=n(87),p=n(20),h=n(57).fastKey,d=n(74),y=p?"_s":"size",v=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,null!=r&&u(r,n,t[c],t)}));return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[y]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return d(this,e)[y]}}),l},def:function(t,e,n){var r,o,i=v(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[y]++,"F"!==o&&(t._i[o]=i)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(89),o=n(57).getWeak,i=n(11),a=n(12),s=n(88),u=n(118),c=n(45),l=n(29),f=n(74),p=c(5),h=c(6),d=0,y=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},m=function(t,e){return p(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?y(t).set(e,n):r[t._i]=n,t},ufstore:y}},function(t,e,n){var r=n(42),o=n(17);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(71),o=n(112),i=n(11),a=n(9).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(17),o=n(138),i=n(52);t.exports=function(t,e,n,a){var s=String(i(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,p=o.call(c,Math.ceil(f/c.length));return p.length>f&&(p=p.slice(0,f)),a?p+s:s+p}},function(t,e,n){var r=n(20),o=n(68),i=n(31),a=n(104).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function l(){}function f(){}function p(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(O([])));y&&y!==e&&n.call(y,o)&&(h=y);var v=p.prototype=l.prototype=Object.create(h);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var s=u(t[r],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n(e,n,r)=>{const o=[];for(let t=0;t(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},o=(t,e,n,o,i,a)=>class extends t{constructor(t,n=r){const s=i(t),u={...r,...n},c=o(s,u);super(t,!1,c,a(s)?e():null),this._nativeAnalyserNode=c}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(t){this._nativeAnalyserNode.fftSize=t}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(t){const e=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=t,!(t>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=e,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(t){const e=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=t,!(this._nativeAnalyserNode.maxDecibels>t))throw this._nativeAnalyserNode.minDecibels=e,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(t){this._nativeAnalyserNode.smoothingTimeConstant=t}getByteFrequencyData(t){this._nativeAnalyserNode.getByteFrequencyData(t)}getByteTimeDomainData(t){this._nativeAnalyserNode.getByteTimeDomainData(t)}getFloatFrequencyData(t){this._nativeAnalyserNode.getFloatFrequencyData(t)}getFloatTimeDomainData(t){this._nativeAnalyserNode.getFloatTimeDomainData(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,fftSize:u.fftSize,maxDecibels:u.maxDecibels,minDecibels:u.minDecibels,smoothingTimeConstant:u.smoothingTimeConstant};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(95),o=n(90);const i={numberOfChannels:1},a=(t,e,n,a,s,u,c,l)=>{let f=null;return class p{constructor(p){if(null===s)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:y}={...i,...p};null===f&&(f=new s(1,1,44100));const v=null!==a&&e(u,u)?new a({length:h,numberOfChannels:d,sampleRate:y}):f.createBuffer(d,h,y);if(0===v.numberOfChannels)throw n();return"function"!=typeof v.copyFromChannel?(c(v),Object(o.a)(v)):e(r.a,()=>Object(r.a)(v))||l(v),t.add(v),v}static[Symbol.hasInstance](e){return null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)===p.prototype||t.has(e)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(46),i=n(59);const a={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},s=(t,e,n,s,u,c,l,f)=>class extends t{constructor(t,o=a){const i=c(t),s={...a,...o},f=u(i,s),p=l(i),h=p?e():null;super(t,!1,f,h),this._audioBufferSourceNodeRenderer=h,this._isBufferNullified=!1,this._isBufferSet=null!==o.buffer&&void 0!==o.buffer,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=n(this,p,f.playbackRate,r.b,r.a)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(t){try{this._nativeAudioBufferSourceNode.buffer=t}catch(e){if(null!==t||17!==e.code)throw e;if(null!==this._nativeAudioBufferSourceNode.buffer){const t=this._nativeAudioBufferSourceNode.buffer,e=t.numberOfChannels;for(let n=0;n{this._nativeAudioBufferSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeAudioBufferSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeAudioBufferSourceNode.stop(t),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={buffer:p.buffer,channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,loop:p.loop,loopEnd:p.loopEnd,loopStart:p.loopStart,playbackRate:p.playbackRate.value};p=e(l,t),null!==s&&p.start(...s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.playbackRate,p.playbackRate,f):await o(l,c.playbackRate,p.playbackRate,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(123);const o=(t,e,n,o,i,a,s,u)=>class extends t{constructor(t={}){if(null===u)throw new Error("Missing the native AudioContext constructor.");const e=new u(t);if(null===e)throw o();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&e.sampleRate!==t.sampleRate)throw n();super(e,2);const{latencyHint:i}=t,{sampleRate:a}=e;if(this._baseLatency="number"==typeof e.baseLatency?e.baseLatency:"balanced"===i?512/a:"interactive"===i||void 0===i?256/a:"playback"===i?1024/a:128*Math.max(2,Math.min(128,Math.round(i*a/128)))/a,this._nativeAudioContext=e,this._state=null,"running"===e.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),e.removeEventListener("statechange",t)};e.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw e()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}createMediaElementSource(t){return new i(this,{mediaElement:t})}createMediaStreamSource(t){return new a(this,{mediaStream:t})}createMediaStreamTrackSource(t){return new s(this,{mediaStreamTrack:t})}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(t=>{if(void 0===t||15===t.code)throw e();throw t})}suspend(){return this._nativeAudioContext.suspend().catch(t=>{if(void 0===t)throw e();throw t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s)=>class extends t{constructor(t,n){const r=i(t),u=a(r),c=o(r,n,u);super(t,!1,c,u?e(s):null),this._isNodeOfNativeOfflineAudioContext=u,this._nativeAudioDestinationNode=c}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(t>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=t}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=t}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{let e=null;return{render:(n,r,o)=>(null===e&&(e=(async(e,n,r)=>{const o=n.destination;return await t(e,n,o,r),o})(n,r,o)),e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const o=(t,e,n,o,i)=>(a,s)=>{const u=s.listener,{forwardX:c,forwardY:l,forwardZ:f,positionX:p,positionY:h,positionZ:d,upX:y,upY:v,upZ:m}=void 0===u.forwardX?(()=>{const c=e(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),l=i(s),f=o(s,256,9,0),p=(e,o)=>{const i=n(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:o});return i.connect(c,0,e),i.start(),Object.defineProperty(i.offset,"defaultValue",{get:()=>o}),t({context:a},l,i.offset,r.b,r.a)};let h=[0,0,-1,0,1,0],d=[0,0,0];return f.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0],t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];e.some((t,e)=>t!==h[e])&&(u.setOrientation(...e),h=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==d[e])&&(u.setPosition(...n),d=n)},c.connect(f),{forwardX:p(0,0),forwardY:p(1,0),forwardZ:p(2,-1),positionX:p(6,0),positionY:p(7,0),positionZ:p(8,0),upX:p(3,0),upY:p(4,1),upZ:p(5,0)}})():u;return{get forwardX(){return c},get forwardY(){return l},get forwardZ(){return f},get positionX(){return p},get positionY(){return h},get positionZ(){return d},get upX(){return y},get upY(){return v},get upZ(){return m}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(49);const o=(t,e,n,o,i,a,s,u,c,l,f,p)=>(h,d,y,v=null,m=null)=>{const g=new r.AutomationEventList(y.defaultValue),b=d?o(g):null,_={get defaultValue(){return y.defaultValue},get maxValue(){return null===v?y.maxValue:v},get minValue(){return null===m?y.minValue:m},get value(){return y.value},set value(t){y.value=t,_.setValueAtTime(t,h.context.currentTime)},cancelAndHoldAtTime(t){if("function"==typeof y.cancelAndHoldAtTime)null===b&&g.flush(h.context.currentTime),g.add(i(t)),y.cancelAndHoldAtTime(t);else{const e=Array.from(g).pop();null===b&&g.flush(h.context.currentTime),g.add(i(t));const n=Array.from(g).pop();y.cancelScheduledValues(t),e!==n&&void 0!==n&&("exponentialRampToValue"===n.type?y.exponentialRampToValueAtTime(n.value,n.endTime):"linearRampToValue"===n.type?y.linearRampToValueAtTime(n.value,n.endTime):"setValue"===n.type?y.setValueAtTime(n.value,n.startTime):"setValueCurve"===n.type&&y.setValueCurveAtTime(n.values,n.startTime,n.duration))}return _},cancelScheduledValues:t=>(null===b&&g.flush(h.context.currentTime),g.add(a(t)),y.cancelScheduledValues(t),_),exponentialRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(s(t,e)),y.exponentialRampToValueAtTime(t,e),_),linearRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(u(t,e)),y.linearRampToValueAtTime(t,e),_),setTargetAtTime:(t,e,n)=>(null===b&&g.flush(h.context.currentTime),g.add(c(t,e,n)),y.setTargetAtTime(t,e,n),_),setValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(l(t,e)),y.setValueAtTime(t,e),_),setValueCurveAtTime(t,e,n){if(null!==p&&"webkitAudioContext"===p.name){const r=e+n,o=h.context.sampleRate,i=Math.ceil(e*o),a=Math.floor(r*o),s=a-i,u=new Float32Array(s);for(let r=0;r({replay(e){for(const n of t)if("exponentialRampToValue"===n.type){const{endTime:t,value:r}=n;e.exponentialRampToValueAtTime(r,t)}else if("linearRampToValue"===n.type){const{endTime:t,value:r}=n;e.linearRampToValueAtTime(r,t)}else if("setTarget"===n.type){const{startTime:t,target:r,timeConstant:o}=n;e.setTargetAtTime(r,t,o)}else if("setValue"===n.type){const{startTime:t,value:r}=n;e.setValueAtTime(r,t)}else{if("setValueCurve"!==n.type)throw new Error("Can't apply an unknown automation.");{const{duration:t,startTime:r,values:o}=n;e.setValueCurveAtTime(o,r,t)}}}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),o=n(124);const i={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,outputChannelCount:void 0,parameterData:{},processorOptions:{}},a=t=>{const e=[];for(let n=0;nclass extends t{constructor(t,p,h=i){const d=c(t),y=l(d),v=(t=>({...t,outputChannelCount:void 0!==t.outputChannelCount?t.outputChannelCount:1===t.numberOfInputs&&1===t.numberOfOutputs?[t.channelCount]:a(t.numberOfOutputs)}))({...i,...h}),m=r.j.get(d),g=void 0===m?void 0:m.get(p),b=s(d,y?null:t.baseLatency,f,p,g,v);super(t,!0,b,y?n(p,v,g):null);const _=[];if(b.parameters.forEach((t,n)=>{const r=e(this,y,t);_.push([n,r])}),this._nativeAudioWorkletNode=b,this._numberOfOutputs=0===h.numberOfOutputs?0:this._nativeAudioWorkletNode.numberOfOutputs,this._onprocessorerror=null,this._parameters=new o.a(_),"closed"!==t.state){const e=new u(t,{gain:0});try{this.connect(e).connect(t.destination)}catch(t){if("IndexSizeError"!==t.name)throw t}}}get numberOfOutputs(){return this._numberOfOutputs}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(t){const e="function"==typeof t?p(this,t):null;this._nativeAudioWorkletNode.onprocessorerror=e;const n=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=null!==n&&n===e?t:n}get parameters(){return null===this._parameters?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l,f,p,h,d,y,v,m,g,b)=>class extends d{constructor(e,n){super(e,n),this._nativeContext=e,this._audioWorklet=void 0===t?void 0:{addModule:(e,n)=>t(this,e,n)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new o(this)}createBuffer(t,e,r){return new n({length:e,numberOfChannels:t,sampleRate:r})}createBufferSource(){return new r(this)}createChannelMerger(t=6){return new i(this,{numberOfInputs:t})}createChannelSplitter(t=6){return new a(this,{numberOfOutputs:t})}createConstantSource(){return new s(this)}createConvolver(){return new u(this)}createDelay(t=1){return new l(this,{maxDelayTime:t})}createDynamicsCompressor(){return new f(this)}createGain(){return new p(this)}createIIRFilter(t,e){return new h(this,{feedback:e,feedforward:t})}createOscillator(){return new y(this)}createPanner(){return new v(this)}createPeriodicWave(t,e,n={disableNormalization:!1}){return new m(this,{...n,imag:e,real:t})}createStereoPanner(){return new g(this)}createWaveShaper(){return new b(this)}decodeAudioData(t,e,n){return c(this._nativeContext,t).then(t=>("function"==typeof e&&e(t),t)).catch(t=>{throw"function"==typeof n&&n(t),t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},i=(t,e,n,i,a,s,u)=>class extends t{constructor(t,i=o){const c=s(t),l={...o,...i},f=a(c,l),p=u(c);super(t,!1,f,p?n():null),this._Q=e(this,p,f.Q,r.b,r.a),this._detune=e(this,p,f.detune,1200*Math.log2(r.b),-1200*Math.log2(r.b)),this._frequency=e(this,p,f.frequency,t.sampleRate/2,0),this._gain=e(this,p,f.gain,40*Math.log10(r.b),-40*Math.log10(r.b)),this._nativeBiquadFilterNode=f}get Q(){return this._Q}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get type(){return this._nativeBiquadFilterNode.type}set type(t){this._nativeBiquadFilterNode.type=t}getFrequencyResponse(t,e,n){if(this._nativeBiquadFilterNode.getFrequencyResponse(t,e,n),t.length!==e.length||e.length!==n.length)throw i()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(u,t)}return a.set(u,l),f?(await t(u,s.Q,l.Q,c),await t(u,s.detune,l.detune,c),await t(u,s.frequency,l.frequency,c),await t(u,s.gain,l.gain,c)):(await o(u,s.Q,l.Q,c),await o(u,s.detune,l.detune,c),await o(u,s.frequency,l.frequency,c),await o(u,s.gain,l.gain,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r)=>{const o=e.get(n);if(void 0!==o)return o;const i=t.get(n);if(void 0!==i)return i;try{const o=r();return o instanceof Promise?(t.set(n,o),o.catch(()=>!1).then(r=>(t.delete(n),e.set(n,r),r))):(e.set(n,o),o)}catch(t){return e.set(n,!1),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a};super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfInputs:u.numberOfInputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...r,...a});super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfOutputs:u.numberOfOutputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(n,e,r,o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(78);const o=t=>(e,n,o=0,i=0)=>{const a=e[o];if(void 0===a)throw t();return Object(r.a)(n)?a.connect(n,0,i):a.connect(n,0)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e),o=e.createBuffer(1,2,e.sampleRate);return r.buffer=o,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(46),i=n(59);const a={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},s=(t,e,n,s,u,c,l)=>class extends t{constructor(t,o=a){const i=u(t),l={...a,...o},f=s(i,l),p=c(i),h=p?n():null;super(t,!1,f,h),this._constantSourceNodeRenderer=h,this._nativeConstantSourceNode=f,this._offset=e(this,p,f.offset,r.b,r.a),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeConstantSourceNode.onended=e;const n=this._nativeConstantSourceNode.onended;this._onended=null!==n&&n===e?t:n}start(t=0){if(this._nativeConstantSourceNode.start(t),null!==this._constantSourceNodeRenderer)this._constantSourceNodeRenderer.start=t;else{Object(o.a)(this);const t=()=>{this._nativeConstantSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeConstantSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeConstantSourceNode.stop(t),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,offset:p.offset.value};p=e(l,t),null!==s&&p.start(s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.offset,p.offset,f):await o(l,c.offset,p.offset,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>(t[0]=e,t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a},c=n(s,u);super(t,!1,c,i(s)?e():null),this._isBufferNullified=!1,this._nativeConvolverNode=c}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(t){if(this._nativeConvolverNode.buffer=t,null===t&&null!==this._nativeConvolverNode.buffer){const t=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=t.createBuffer(1,1,t.sampleRate),this._isBufferNullified=!0}else this._isBufferNullified=!1}get normalize(){return this._nativeConvolverNode.normalize}set normalize(t){this._nativeConvolverNode.normalize=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,o)}catch(e){if("IndexSizeError"===e.name||"SyntaxError"===e.name)throw t();throw e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","DataCloneError")}catch(t){return t.code=25,t.name="DataCloneError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(61);const o=(t,e,n,o,i,a,s,u)=>(c,l)=>{const f=e.get(c);if(void 0===f)throw new Error("Missing the expected cycle count.");const p=a(c.context),h=u(p);if(f===l){if(e.delete(c),!h&&s(c)){const e=o(c),{outputs:a}=n(c);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);t(e,r,n[1],n[2])}else{const t=i(n[0]);e.connect(t,n[1])}}}else e.set(c,f-l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=o(u,c),f=a(u);super(t,!1,l,f?n(c.maxDelayTime):null),this._delayTime=e(this,f,l.delayTime,c.maxDelayTime,0)}get delayTime(){return this._delayTime}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>a=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(r.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,delayTime:f.delayTime.value,maxDelayTime:a};f=e(c,t)}return s.set(c,f),p?await t(c,u.delayTime,f.delayTime,l):await o(c,u.delayTime,f.delayTime,l),await i(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(78);const o=(t,e,n)=>{const r=e[n];if(void 0===r)throw t();return r},i=t=>(e,n,i,a=0)=>void 0===n?e.forEach(t=>t.disconnect()):"number"==typeof n?o(t,e,n).disconnect():Object(r.a)(n)?void 0===i?e.forEach(t=>t.disconnect(n)):void 0===a?o(t,e,i).disconnect(n,0):o(t,e,i).disconnect(n,0,a):void 0===i?e.forEach(t=>t.disconnect(n)):o(t,e,i).disconnect(n,0)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},o=(t,e,n,o,i,a,s)=>class extends t{constructor(t,i=r){const u=a(t),c={...r,...i},l=o(u,c),f=s(u);super(t,!1,l,f?n():null),this._attack=e(this,f,l.attack,1,0),this._knee=e(this,f,l.knee,40,0),this._nativeDynamicsCompressorNode=l,this._ratio=e(this,f,l.ratio,20,1),this._release=e(this,f,l.release,1,0),this._threshold=e(this,f,l.threshold,0,-100)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(t){const e=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=t,t>2)throw this._nativeDynamicsCompressorNode.channelCount=e,i()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(t){const e=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=t,"max"===t)throw this._nativeDynamicsCompressorNode.channelCountMode=e,i()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(u,t)}return a.set(u,l),f?(await t(u,s.attack,l.attack,c),await t(u,s.knee,l.knee,c),await t(u,s.ratio,l.ratio,c),await t(u,s.release,l.release,c),await t(u,s.threshold,l.threshold,c)):(await o(u,s.attack,l.attack,c),await o(u,s.knee,l.knee,c),await o(u,s.ratio,l.ratio,c),await o(u,s.release,l.release,c),await o(u,s.threshold,l.threshold,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","EncodingError")}catch(t){return t.code=0,t.name="EncodingError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>new Promise((n,r)=>{if(null===t)return void r(new SyntaxError);const o=t.document.head;if(null===o)r(new SyntaxError);else{const i=t.document.createElement("script"),a=new Blob([e],{type:"application/javascript"}),s=URL.createObjectURL(a),u=t.onerror,c=()=>{t.onerror=u,URL.revokeObjectURL(s)};t.onerror=(t,e,n,o,i)=>e===s||e===location.href&&1===n&&1===o?(c(),r(i),!1):null!==u?u(t,e,n,o,i):void 0,i.onerror=()=>{c(),r(new SyntaxError)},i.onload=()=>{c(),n()},i.src=s,i.type="module",o.appendChild(i)}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(e,n,r){if(null!==n){let o=this._listeners.get(n);void 0===o&&(o=t(this,n),"function"==typeof n&&this._listeners.set(n,o)),this._nativeEventTarget.addEventListener(e,o,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,e,n){const r=null===e?void 0:this._listeners.get(e);this._nativeEventTarget.removeEventListener(t,void 0===r?null:r,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(e*n)},currentTime:{configurable:!0,get:()=>e}});try{return r()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>async e=>{try{const t=await fetch(e);if(t.ok)return t.text()}catch(t){}throw t()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=i(c,l),p=s(c);super(t,!1,f,p?n():null),this._gain=e(this,p,f.gain,r.b,r.a)}get gain(){return this._gain}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(u,t)}return a.set(u,l),f?await t(u,s.gain,l.gain,c):await o(u,s.gain,l.gain,c),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n)=>o=>{if("closed"===o.state&&null!==e&&"webkitAudioContext"!==e.name){if(!t(o)){const t=r.f.get(o);if(void 0!==t)return t;const n=new e;return r.f.set(o,n),n}{const t=r.f.get(o);if(void 0!==t)return t;if(null!==n){const t=new n(1,1,44100);return r.f.set(o,t),t}}}return null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14);const o=t=>e=>{const n=t.get(e);if(void 0===n)throw Object(r.a)();return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(126),o=n(6);const i=(t,e,n,i,a,s)=>(u,c)=>{const l=new WeakMap;let f=null;const p=async(p,h,d)=>{let y=n(p),v=null;const m=Object(o.a)(y,h);if(void 0===h.createIIRFilter?v=t(h):m||(y=e(h,t=>t.createIIRFilter(c,u))),l.set(h,null===v?y:v),null!==v){if(null===f){if(null===i)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new i(p.context.destination.channelCount,p.context.length,h.sampleRate);f=(async()=>(await a(p,t,t.destination,d),((t,e,n,o)=>{const i=n.length,a=o.length,s=Math.min(i,a);if(1!==n[0]){for(let t=0;ts=>(u,c)=>{const l=t.get(u);if(void 0===l){if(!s&&a(u)){const t=o(u),{outputs:a}=n(u);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);e(t,r,n[1],n[2])}else{const e=i(n[0]);t.disconnect(e,n[1])}}t.set(u,c)}else t.set(u,l+c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioNode&&e instanceof t.AudioNode},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioParam&&e instanceof t.AudioParam},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null!==t&&t.isSecureContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=async(t,e,n,r,o,i,a,s,u,c,l,f,p)=>{if(t(e,e)&&t(n,n)&&t(o,o)&&t(i,i)&&t(s,s)&&t(u,u)&&t(c,c)&&t(l,l)){return(await Promise.all([t(r,r),t(a,a),t(f,f),t(p,p)])).every(t=>t)}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>class extends t{constructor(t,i){const a=r(t);if(o(a))throw n();const s=e(a,i);super(t,!0,s,null),this._mediaElement=i.mediaElement,this._nativeMediaElementAudioSourceNode=s}get mediaElement(){return void 0===this._nativeMediaElementAudioSourceNode.mediaElement?this._mediaElement:this._nativeMediaElementAudioSourceNode.mediaElement}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>class extends t{constructor(t,i){const a=r(t);if(o(a))throw n();const s=e(a,i);super(t,!0,s,null),this._nativeMediaStreamAudioSourceNode=s}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>class extends t{constructor(t,i){const a=r(t);if(o(a))throw n();super(t,!0,e(a,i),null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(123);const o=(t,e,n,o,i)=>class extends o{constructor(t={}){if(null===i)throw new Error("Missing the native AudioContext constructor.");const o=new i(t);if(null===o)throw n();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&o.sampleRate!==t.sampleRate)throw e();super(o,2);const{latencyHint:a}=t,{sampleRate:s}=o;if(this._baseLatency="number"==typeof o.baseLatency?o.baseLatency:"balanced"===a?512/s:"interactive"===a||void 0===a?256/s:"playback"===a?1024/s:128*Math.max(2,Math.min(128,Math.round(a*s/128)))/s,this._nativeAudioContext=o,this._state=null,"running"===o.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),o.removeEventListener("statechange",t)};o.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw t()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(e=>{if(void 0===e||15===e.code)throw t();throw e})}suspend(){return this._nativeAudioContext.suspend().catch(e=>{if(void 0===e)throw t();throw e})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n,o)=>class extends n{constructor(n,o){super(n),this._nativeContext=n,r.g.set(this,n);const i=n.sampleRate;Object.defineProperty(n,"sampleRate",{get:()=>i}),this._destination=new t(this,o),this._listener=e(this,n),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(t){const e="function"==typeof t?o(this,t):null;this._nativeContext.onstatechange=e;const n=this._nativeContext.onstatechange;this._onstatechange=null!==n&&n===e?t:n}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(36);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends i{constructor(e){const{length:i,numberOfChannels:a,sampleRate:s}={...o,...e},u=n(a,i,s);t(r.a,()=>Object(r.a)(u))||u.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(u.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(u,a),this._length=i,this._nativeOfflineAudioContext=u,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(e()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=new Set;var a,s;return n.connect=(a=n.connect,(o,s=0,u=0)=>{const c=0===i.size;if(e(o))return a.call(n,o,s,u),t(i,[o,s,u],t=>t[0]===o&&t[1]===s&&t[2]===u,!0),c&&r(),o;a.call(n,o,s),t(i,[o,s],t=>t[0]===o&&t[1]===s,!0),c&&r()}),n.disconnect=(s=n.disconnect,(t,r,a)=>{const u=i.size>0;if(void 0===t)s.apply(n),i.clear();else if("number"==typeof t){s.call(n,t);for(const e of i)e[1]===t&&i.delete(e)}else{e(t)?s.call(n,t,r,a):s.call(n,t,r);for(const e of i)e[0]!==t||void 0!==r&&e[1]!==r||void 0!==a&&e[2]!==a||i.delete(e)}const c=0===i.size;u&&c&&o()}),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=n.destination;if(i.channelCount!==r)try{i.channelCount=r}catch(t){}o&&"explicit"!==i.channelCountMode&&(i.channelCountMode="explicit"),0===i.maxChannelCount&&Object.defineProperty(i,"maxChannelCount",{value:r});const a=t(n,{channelCount:r,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(a,"channelCount",t=>()=>t.call(a),t=>e=>{t.call(a,e);try{i.channelCount=e}catch(t){if(e>i.maxChannelCount)throw t}}),e(a,"channelCountMode",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelCountMode=e}),e(a,"channelInterpretation",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelInterpretation=e}),Object.defineProperty(a,"maxChannelCount",{get:()=>i.maxChannelCount}),a.connect(i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e);return n(null!==r?r:e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=t=>(e,n)=>{const a=t(e,t=>t.createBiquadFilter());return Object(i.a)(a,n),Object(r.a)(a,n,"Q"),Object(r.a)(a,n,"detune"),Object(r.a)(a,n,"frequency"),Object(r.a)(a,n,"gain"),Object(o.a)(a,n,"type"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o)=>{const i=t(n,t=>t.createChannelMerger(o.numberOfInputs));Object(r.a)(i,o),1!==i.channelCount&&"explicit"!==i.channelCountMode&&e(n,i);try{i.channelCount=void 0===o.numberOfInputs?6:o.numberOfInputs,e(n,i)}catch(t){}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),o=n(4),i=n(91),a=n(92);const s=(t,e,n,s,u)=>(c,l)=>{if(void 0===c.createConstantSource)return n(c,l);const f=e(c,t=>t.createConstantSource());return Object(o.a)(f,l),Object(r.a)(f,l,"offset"),t(s,()=>s(c))||Object(i.a)(f),t(u,()=>u(c))||Object(a.a)(f),f}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);const o=(t,e,n)=>(o,{offset:i,...a})=>{const s=o.createBuffer(1,2,o.sampleRate),u=t(o),c=e(o,{...a,gain:i}),l=s.getChannelData(0);l[0]=1,l[1]=1,u.buffer=s,u.loop=!0;const f={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(t){c.channelCount=t},get channelCountMode(){return c.channelCountMode},set channelCountMode(t){c.channelCountMode=t},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(t){c.channelInterpretation=t},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return u.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return u.onended},set onended(t){u.onended=t},addEventListener:(...t)=>u.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>u.dispatchEvent(t[0]),removeEventListener:(...t)=>u.removeEventListener(t[0],t[1],t[2]),start(t=0){u.start.call(u,t)},stop(t=0){u.stop.call(u,t)}};return n(Object(r.a)(f,c),()=>u.connect(c),()=>u.disconnect(c))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i)=>(a,s)=>{const u=t(a,t=>t.createConvolver());try{u.channelCount=1}catch(t){return e(a,s)}if(Object(o.a)(u,s),s.disableNormalization===u.normalize&&(u.normalize=!s.disableNormalization),Object(r.a)(u,s,"buffer"),s.channelCount>2)throw n();if(i(u,"channelCount",t=>()=>t.call(u),t=>e=>{if(e>2)throw n();return t.call(u,e)}),"max"===s.channelCountMode)throw n();return i(u,"channelCountMode",t=>()=>t.call(u),t=>e=>{if("max"===e)throw n();return t.call(u,e)}),u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(25);const i=(t,e,n)=>(i,{buffer:a,channelCount:s,channelCountMode:u,channelInterpretation:c,disableNormalization:l})=>{const f=t(i,t=>t.createConvolver());Object(r.a)(f,{channelCount:Math.max(s,2),channelCountMode:"max"===u?u:"clamped-max",channelInterpretation:c});const p=e(i,{channelCount:s,channelCountMode:u,channelInterpretation:c,gain:1}),h={get buffer(){return f.buffer},set buffer(t){f.buffer=t},get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){t>2&&(f.channelCount=t),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){"max"===t&&(f.channelCountMode=t),p.channelCountMode=t},get channelInterpretation(){return f.channelInterpretation},set channelInterpretation(t){f.channelInterpretation=t,p.channelInterpretation=t},get context(){return f.context},get inputs(){return[f]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return f.numberOfOutputs},get normalize(){return f.normalize},set normalize(t){f.normalize=t},addEventListener:(...t)=>f.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>f.dispatchEvent(t[0]),removeEventListener:(...t)=>f.removeEventListener(t[0],t[1],t[2])};l===h.normalize&&(h.normalize=!l),a!==h.buffer&&(h.buffer=a);return n(Object(o.a)(h,p),()=>f.connect(p),()=>f.disconnect(p))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createDelay(n.maxDelayTime));return Object(o.a)(i,n),Object(r.a)(i,n,"delayTime"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e)=>(n,i)=>{const a=t(n,t=>t.createDynamicsCompressor());if(Object(o.a)(a,i),i.channelCount>2)throw e();if("max"===i.channelCountMode)throw e();return Object(r.a)(a,i,"attack"),Object(r.a)(a,i,"knee"),Object(r.a)(a,i,"ratio"),Object(r.a)(a,i,"release"),Object(r.a)(a,i,"threshold"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createGain());return Object(o.a)(i,n),Object(r.a)(i,n,"gain"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o,i)=>{if(void 0===n.createIIRFilter)return e(n,o,i);const a=t(n,t=>t.createIIRFilter(i.feedforward,i.feedback));return Object(r.a)(a,i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(127),o=n(126),i=n(25);function a(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function s(t,e){let n=[0,0];for(let i=t.length-1;i>=0;i-=1)o=e,n=[(r=n)[0]*o[0]-r[1]*o[1],r[0]*o[1]+r[1]*o[0]],n[0]+=t[i];var r,o;return n}const u=(t,e,n,u)=>(c,l,{channelCount:f,channelCountMode:p,channelInterpretation:h,feedback:d,feedforward:y})=>{const v=Object(r.a)(l,c.sampleRate),m=d.length,g=y.length,b=Math.min(m,g);if(0===d.length||d.length>20)throw u();if(0===d[0])throw e();if(0===y.length||y.length>20)throw u();if(0===y[0])throw e();if(1!==d[0]){for(let t=0;t{const e=t.inputBuffer,n=t.outputBuffer,r=e.numberOfChannels;for(let t=0;t_.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>_.dispatchEvent(t[0]),getFrequencyResponse(e,n,r){if(e.length!==n.length||n.length!==r.length)throw t();const o=e.length;for(let t=0;t_.removeEventListener(t[0],t[1],t[2])};return Object(i.a)(k,_)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>t(e,t=>t.createMediaElementSource(n.mediaElement))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{mediaStream:n})=>{const r=n.getAudioTracks(),o=t(e,t=>{const e=r.sort((t,e)=>t.ide.id?1:0).slice(0,1);return t.createMediaStreamSource(new MediaStream(e))});return Object.defineProperty(o,"mediaStream",{value:n}),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,{mediaStreamTrack:r})=>"function"==typeof n.createMediaStreamTrackSource?e(n,t=>t.createMediaStreamTrackSource(r)):e(n,e=>{const n=new MediaStream([r]),o=e.createMediaStreamSource(n);if("audio"!==r.kind)throw t();return o})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(7),i=n(4),a=n(91),s=n(92);const u=(t,e,n,u,c,l)=>(f,p)=>{const h=e(f,t=>t.createOscillator());return Object(i.a)(h,p),Object(r.a)(h,p,"detune"),Object(r.a)(h,p,"frequency"),void 0!==p.periodicWave?h.setPeriodicWave(p.periodicWave):Object(o.a)(h,p,"type"),t(n,()=>n(f))||Object(a.a)(h),t(u,()=>u(f))||l(h,f),t(c,()=>c(f))||Object(s.a)(h),h}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=(t,e)=>(n,a)=>{const s=t(n,t=>t.createPanner());return void 0===s.orientationX?e(n,a):(Object(i.a)(s,a),Object(r.a)(s,a,"orientationX"),Object(r.a)(s,a,"orientationY"),Object(r.a)(s,a,"orientationZ"),Object(r.a)(s,a,"positionX"),Object(r.a)(s,a,"positionY"),Object(r.a)(s,a,"positionZ"),Object(o.a)(s,a,"coneInnerAngle"),Object(o.a)(s,a,"coneOuterAngle"),Object(o.a)(s,a,"coneOuterGain"),Object(o.a)(s,a,"distanceModel"),Object(o.a)(s,a,"maxDistance"),Object(o.a)(s,a,"panningModel"),Object(o.a)(s,a,"refDistance"),Object(o.a)(s,a,"rolloffFactor"),s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(25);const i=(t,e,n,i,a,s,u,c,l,f)=>(p,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:y,distanceModel:v,maxDistance:m,orientationX:g,orientationY:b,orientationZ:_,panningModel:w,positionX:x,positionY:O,positionZ:S,refDistance:k,rolloffFactor:T,...C})=>{const E=n(p,t=>t.createPanner());if(C.channelCount>2)throw c();if("max"===C.channelCountMode)throw c();Object(r.a)(E,C);const A={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},j=i(p,{...A,channelInterpretation:"speakers",numberOfInputs:6}),P=a(p,{...C,gain:1}),D=a(p,{...A,gain:1}),M=a(p,{...A,gain:0}),I=a(p,{...A,gain:0}),R=a(p,{...A,gain:0}),N=a(p,{...A,gain:0}),F=a(p,{...A,gain:0}),q=s(p,256,6,0),V=u(p,{...A,curve:new Float32Array([1,1]),oversample:"none"});let L=[1,0,0],z=[0,0,0];q.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0]];e.some((t,e)=>t!==L[e])&&(E.setOrientation(...e),L=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==z[e])&&(E.setPosition(...n),z=n)},Object.defineProperty(M.gain,"defaultValue",{get:()=>0}),Object.defineProperty(I.gain,"defaultValue",{get:()=>0}),Object.defineProperty(R.gain,"defaultValue",{get:()=>0}),Object.defineProperty(N.gain,"defaultValue",{get:()=>0}),Object.defineProperty(F.gain,"defaultValue",{get:()=>0});const B={get bufferSize(){},get channelCount(){return E.channelCount},set channelCount(t){if(t>2)throw c();P.channelCount=t,E.channelCount=t},get channelCountMode(){return E.channelCountMode},set channelCountMode(t){if("max"===t)throw c();P.channelCountMode=t,E.channelCountMode=t},get channelInterpretation(){return E.channelInterpretation},set channelInterpretation(t){P.channelInterpretation=t,E.channelInterpretation=t},get coneInnerAngle(){return E.coneInnerAngle},set coneInnerAngle(t){E.coneInnerAngle=t},get coneOuterAngle(){return E.coneOuterAngle},set coneOuterAngle(t){E.coneOuterAngle=t},get coneOuterGain(){return E.coneOuterGain},set coneOuterGain(t){if(t<0||t>1)throw e();E.coneOuterGain=t},get context(){return E.context},get distanceModel(){return E.distanceModel},set distanceModel(t){E.distanceModel=t},get inputs(){return[P]},get maxDistance(){return E.maxDistance},set maxDistance(t){if(t<0)throw new RangeError;E.maxDistance=t},get numberOfInputs(){return E.numberOfInputs},get numberOfOutputs(){return E.numberOfOutputs},get orientationX(){return D.gain},get orientationY(){return M.gain},get orientationZ(){return I.gain},get panningModel(){return E.panningModel},set panningModel(t){if(E.panningModel=t,E.panningModel!==t&&"HRTF"===t)throw c()},get positionX(){return R.gain},get positionY(){return N.gain},get positionZ(){return F.gain},get refDistance(){return E.refDistance},set refDistance(t){if(t<0)throw new RangeError;E.refDistance=t},get rolloffFactor(){return E.rolloffFactor},set rolloffFactor(t){if(t<0)throw new RangeError;E.rolloffFactor=t},addEventListener:(...t)=>P.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>P.dispatchEvent(t[0]),removeEventListener:(...t)=>P.removeEventListener(t[0],t[1],t[2])};h!==B.coneInnerAngle&&(B.coneInnerAngle=h),d!==B.coneOuterAngle&&(B.coneOuterAngle=d),y!==B.coneOuterGain&&(B.coneOuterGain=y),v!==B.distanceModel&&(B.distanceModel=v),m!==B.maxDistance&&(B.maxDistance=m),g!==B.orientationX.value&&(B.orientationX.value=g),b!==B.orientationY.value&&(B.orientationY.value=b),_!==B.orientationZ.value&&(B.orientationZ.value=_),w!==B.panningModel&&(B.panningModel=w),x!==B.positionX.value&&(B.positionX.value=x),O!==B.positionY.value&&(B.positionY.value=O),S!==B.positionZ.value&&(B.positionZ.value=S),k!==B.refDistance&&(B.refDistance=k),T!==B.rolloffFactor&&(B.rolloffFactor=T);return f(Object(o.a)(B,E),()=>{P.connect(E),t(P,V,0,0),V.connect(D).connect(j),V.connect(M).connect(j),V.connect(I).connect(j),V.connect(R).connect(j),V.connect(N).connect(j),V.connect(F).connect(j),j.connect(q)},()=>{P.disconnect(E),l(P,V,0,0),V.disconnect(D),D.disconnect(j),V.disconnect(M),M.disconnect(j),V.disconnect(I),I.disconnect(j),V.disconnect(R),R.disconnect(j),V.disconnect(N),N.disconnect(j),V.disconnect(F),F.disconnect(j),j.disconnect(q)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{disableNormalization:n,imag:r,real:o})=>{const i=t(e),a=new Float32Array(r),s=new Float32Array(o);return null!==i?i.createPeriodicWave(s,a,{disableNormalization:n}):e.createPeriodicWave(s,a,{disableNormalization:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(e,t=>t.createScriptProcessor(n,r,o))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e,n)=>(i,a)=>t(i,t=>{const s=a.channelCountMode;if("clamped-max"===s)throw n();if(void 0===i.createStereoPanner)return e(i,a);const u=t.createStereoPanner();return Object(o.a)(u,a),Object(r.a)(u,a,"pan"),Object.defineProperty(u,"channelCountMode",{get:()=>s,set:t=>{if(t!==s)throw n()}}),u})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);const o=(t,e,n,o,i,a)=>{const s=new Float32Array([1,1]),u=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},l={...c,oversample:"none"},f=(t,r,a,f,p)=>{if(1===r)return((t,e,r,i)=>{const a=new Float32Array(16385),f=new Float32Array(16385);for(let t=0;t<16385;t+=1){const e=t/16384*u;a[t]=Math.cos(e),f[t]=Math.sin(e)}const p=n(t,{...c,gain:0}),h=o(t,{...l,curve:a}),d=o(t,{...l,curve:s}),y=n(t,{...c,gain:0}),v=o(t,{...l,curve:f});return{connectGraph(){e.connect(p),e.connect(d.inputs[0]),e.connect(y),d.connect(r),r.connect(h.inputs[0]),r.connect(v.inputs[0]),h.connect(p.gain),v.connect(y.gain),p.connect(i,0,0),y.connect(i,0,1)},disconnectGraph(){e.disconnect(p),e.disconnect(d.inputs[0]),e.disconnect(y),d.disconnect(r),r.disconnect(h.inputs[0]),r.disconnect(v.inputs[0]),h.disconnect(p.gain),v.disconnect(y.gain),p.disconnect(i,0,0),y.disconnect(i,0,1)}}})(t,a,f,p);if(2===r)return((t,r,i,a)=>{const f=new Float32Array(16385),p=new Float32Array(16385),h=new Float32Array(16385),d=new Float32Array(16385),y=Math.floor(8192.5);for(let t=0;t<16385;t+=1)if(t>y){const e=(t-y)/(16384-y)*u;f[t]=Math.cos(e),p[t]=Math.sin(e),h[t]=0,d[t]=1}else{const e=t/(16384-y)*u;f[t]=1,p[t]=0,h[t]=Math.cos(e),d[t]=Math.sin(e)}const v=e(t,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),m=n(t,{...c,gain:0}),g=o(t,{...l,curve:f}),b=n(t,{...c,gain:0}),_=o(t,{...l,curve:p}),w=o(t,{...l,curve:s}),x=n(t,{...c,gain:0}),O=o(t,{...l,curve:h}),S=n(t,{...c,gain:0}),k=o(t,{...l,curve:d});return{connectGraph(){r.connect(v),r.connect(w.inputs[0]),v.connect(m,1),v.connect(b,1),v.connect(x,1),v.connect(S,1),w.connect(i),i.connect(g.inputs[0]),i.connect(_.inputs[0]),i.connect(O.inputs[0]),i.connect(k.inputs[0]),g.connect(m.gain),_.connect(b.gain),O.connect(x.gain),k.connect(S.gain),m.connect(a,0,0),x.connect(a,0,0),b.connect(a,0,1),S.connect(a,0,1)},disconnectGraph(){r.disconnect(v),r.disconnect(w.inputs[0]),v.disconnect(m,1),v.disconnect(b,1),v.disconnect(x,1),v.disconnect(S,1),w.disconnect(i),i.disconnect(g.inputs[0]),i.disconnect(_.inputs[0]),i.disconnect(O.inputs[0]),i.disconnect(k.inputs[0]),g.disconnect(m.gain),_.disconnect(b.gain),O.disconnect(x.gain),k.disconnect(S.gain),m.disconnect(a,0,0),x.disconnect(a,0,0),b.disconnect(a,0,1),S.disconnect(a,0,1)}}})(t,a,f,p);throw i()};return(e,{channelCount:o,channelCountMode:s,pan:u,...c})=>{if("max"===s)throw i();const l=t(e,{...c,channelCount:1,channelCountMode:s,numberOfInputs:2}),p=n(e,{...c,channelCount:o,channelCountMode:s,gain:1}),h=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:u});let{connectGraph:d,disconnectGraph:y}=f(e,o,p,h,l);Object.defineProperty(h.gain,"defaultValue",{get:()=>0});const v={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){p.channelCount!==t&&(m&&y(),({connectGraph:d,disconnectGraph:y}=f(e,t,p,h,l)),m&&d()),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){if("clamped-max"===t||"max"===t)throw i();p.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){p.channelInterpretation=t},get context(){return p.context},get inputs(){return[p]},get numberOfInputs(){return p.numberOfInputs},get numberOfOutputs(){return p.numberOfOutputs},get pan(){return h.gain},addEventListener:(...t)=>p.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>p.dispatchEvent(t[0]),removeEventListener:(...t)=>p.removeEventListener(t[0],t[1],t[2])};let m=!1;return a(Object(r.a)(v,l),()=>{d(),m=!0},()=>{y(),m=!1})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i,a,s,u)=>(c,l)=>{const f=n(c,t=>t.createWaveShaper());try{return f.curve=new Float32Array([1]),i(c,l)}catch(t){}Object(o.a)(f,l);const p=l.curve;if(null!==p&&p.length<2)throw e();Object(r.a)(f,l,"curve"),Object(r.a)(f,l,"oversample");let h=null,d=!1;u(f,"curve",t=>()=>t.call(f),e=>n=>(e.call(f,n),d&&(a(n)&&null===h?h=t(c,f):a(n)||null===h||(h(),h=null)),n));return s(f,()=>{d=!0,a(f.curve)&&(h=t(c,f))},()=>{d=!1,null!==h&&(h(),h=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(25);const i=(t,e,n,i,a,s)=>(u,{curve:c,oversample:l,...f})=>{const p=n(u,t=>t.createWaveShaper()),h=n(u,t=>t.createWaveShaper());Object(r.a)(p,f),Object(r.a)(h,f);const d=i(u,{...f,gain:1}),y=i(u,{...f,gain:-1}),v=i(u,{...f,gain:1}),m=i(u,{...f,gain:-1});let g=null,b=!1,_=null;const w={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){d.channelCount=t,y.channelCount=t,p.channelCount=t,v.channelCount=t,h.channelCount=t,m.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){d.channelCountMode=t,y.channelCountMode=t,p.channelCountMode=t,v.channelCountMode=t,h.channelCountMode=t,m.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){d.channelInterpretation=t,y.channelInterpretation=t,p.channelInterpretation=t,v.channelInterpretation=t,h.channelInterpretation=t,m.channelInterpretation=t},get context(){return p.context},get curve(){return _},set curve(n){if(null!==c&&c.length<2)throw e();if(null===n)p.curve=n,h.curve=n;else{const t=n.length,e=new Float32Array(t+2-t%2),r=new Float32Array(t+2-t%2);e[0]=n[0],r[0]=-n[t-1];const o=Math.ceil((t+1)/2),i=(t+1)/2-1;for(let a=1;ad.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>d.dispatchEvent(t[0]),removeEventListener:(...t)=>d.removeEventListener(t[0],t[1],t[2])};c!==w.curve&&(w.curve=c),l!==w.oversample&&(w.oversample=l);return s(Object(o.a)(w,v),()=>{d.connect(p).connect(v),d.connect(y).connect(h).connect(m).connect(v),b=!0,a(_)&&(g=t(u,d))},()=>{d.disconnect(p),p.disconnect(v),d.disconnect(y),y.disconnect(h),h.disconnect(m),m.disconnect(v),b=!1,null!==g&&(g(),g=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(36);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends t{constructor(t,n,a){let s;if("number"==typeof t&&void 0!==n&&void 0!==a)s={length:n,numberOfChannels:t,sampleRate:a};else{if("object"!=typeof t)throw new Error("The given parameters are not valid.");s=t}const{length:u,numberOfChannels:c,sampleRate:l}={...o,...s},f=i(c,u,l);e(r.a,()=>Object(r.a)(f))||f.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(f.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(f,c),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(n()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(46),o=n(59);const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,type:"sine"},a=(t,e,n,a,s,u,c,l)=>class extends t{constructor(t,n=i){const r=u(t),o={...i,...n},l=a(r,o),f=c(r),p=f?s():null,h=t.sampleRate/2;super(t,!1,l,p),this._detune=e(this,f,l.detune,153600,-153600),this._frequency=e(this,f,l.frequency,h,-h),this._nativeOscillatorNode=l,this._onended=null,this._oscillatorNodeRenderer=p,null!==this._oscillatorNodeRenderer&&void 0!==o.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=o.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeOscillatorNode.onended=e;const n=this._nativeOscillatorNode.onended;this._onended=null!==n&&n===e?t:n}get type(){return this._nativeOscillatorNode.type}set type(t){if(this._nativeOscillatorNode.type=t,"custom"===t)throw n();null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(t){this._nativeOscillatorNode.setPeriodicWave(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=t)}start(t=0){if(this._nativeOscillatorNode.start(t),null!==this._oscillatorNodeRenderer)this._oscillatorNodeRenderer.start=t;else{Object(r.a)(this);const t=()=>{this._nativeOscillatorNode.removeEventListener("ended",t),setTimeout(()=>Object(o.a)(this),1e3)};this._nativeOscillatorNode.addEventListener("ended",t)}}stop(t=0){this._nativeOscillatorNode.stop(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null,c=null;return{set periodicWave(t){s=t},set start(t){u=t},set stop(t){c=t},render(l,f,p){const h=a.get(f);return void 0!==h?Promise.resolve(h):(async(l,f,p)=>{let h=n(l);const d=Object(r.a)(h,f);if(!d){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,detune:h.detune.value,frequency:h.frequency.value,periodicWave:null===s?void 0:s,type:h.type};h=e(f,t),null!==u&&h.start(u),null!==c&&h.stop(c)}return a.set(f,h),d?(await t(f,l.detune,h.detune,p),await t(f,l.frequency,h.frequency,p)):(await o(f,l.detune,h.detune,p),await o(f,l.frequency,h.frequency,p)),await i(l,f,h,p),h})(l,f,p)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=n(c,l),p=s(c);super(t,!1,f,p?i():null),this._nativePannerNode=f,this._orientationX=e(this,p,f.orientationX,r.b,r.a),this._orientationY=e(this,p,f.orientationY,r.b,r.a),this._orientationZ=e(this,p,f.orientationZ,r.b,r.a),this._positionX=e(this,p,f.positionX,r.b,r.a),this._positionY=e(this,p,f.positionY,r.b,r.a),this._positionZ=e(this,p,f.positionZ,r.b,r.a)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(t){this._nativePannerNode.coneInnerAngle=t}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(t){this._nativePannerNode.coneOuterAngle=t}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(t){this._nativePannerNode.coneOuterGain=t}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(t){this._nativePannerNode.distanceModel=t}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(t){this._nativePannerNode.maxDistance=t}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(t){this._nativePannerNode.panningModel=t}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(t){this._nativePannerNode.refDistance=t}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(t){this._nativePannerNode.rolloffFactor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n,i,a)=>()=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(o.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,coneInnerAngle:f.coneInnerAngle,coneOuterAngle:f.coneOuterAngle,coneOuterGain:f.coneOuterGain,distanceModel:f.distanceModel,maxDistance:f.maxDistance,orientationX:f.orientationX.value,orientationY:f.orientationY.value,orientationZ:f.orientationZ.value,panningModel:f.panningModel,positionX:f.positionX.value,positionY:f.positionY.value,positionZ:f.positionZ.value,refDistance:f.refDistance,rolloffFactor:f.rolloffFactor};f=e(c,t)}return s.set(c,f),p?(await t(c,u.orientationX,f.orientationX,l),await t(c,u.orientationY,f.orientationY,l),await t(c,u.orientationZ,f.orientationZ,l),await t(c,u.positionX,f.positionX,l),await t(c,u.positionY,f.positionY,l),await t(c,u.positionZ,f.positionZ,l)):(await i(c,u.orientationX,f.orientationX,l),await i(c,u.orientationY,f.orientationY,l),await i(c,u.orientationZ,f.orientationZ,l),await i(c,u.positionX,f.positionX,l),await i(c,u.positionY,f.positionY,l),await i(c,u.positionZ,f.positionZ,l)),Object(r.a)(f)?await a(u,c,f.inputs[0],l):await a(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={disableNormalization:!1},o=(t,e,n)=>class o{constructor(o,i){const a=e(o),s={...r,...i},u=t(a,s);return n.add(u),u}static[Symbol.hasInstance](t){return null!==t&&"object"==typeof t&&Object.getPrototypeOf(t)===o.prototype||n.has(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o,i)=>(t(r).replay(o),e(r,n,o,i))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=t(r),u=[...a,r];await Promise.all(s.activeInputs.map((t,a)=>Array.from(t).filter(([t])=>!u.includes(t)).map(async([t,s])=>{const c=e(t),l=await c.render(t,o,u);n(t)||r===r.context.destination&&n(r)||l.connect(i,s,a)})).reduce((t,e)=>[...t,...e],[]))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=e(r);await Promise.all(Array.from(s.activeInputs).map(async([e,r])=>{const s=t(e),u=await s.render(e,o,a);n(e)||u.connect(i,r)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(36);const o=(t,e,n,o)=>i=>t(r.a,()=>Object(r.a)(i))?Promise.resolve(t(o,o)).then(t=>{if(!t){const t=n(i,512,0,1);i.oncomplete=()=>{t.onaudioprocess=null,t.disconnect()},t.onaudioprocess=()=>i.currentTime,t.connect(i.destination)}return i.startRendering()}):new Promise(t=>{const n=e(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});i.oncomplete=e=>{n.disconnect(),t(e.renderedBuffer)},n.connect(i.destination),i.startRendering()})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(90);const o=(t,e,n,o,i,a,s)=>(u,c)=>n(u).render(u,c,[]).then(()=>o(c)).then(n=>("function"!=typeof n.copyFromChannel?(a(n),Object(r.a)(n)):e(i,()=>i(n))||s(n),t.add(n),n))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=n(u,c),f=a(u);super(t,!1,l,f?o():null),this._pan=e(this,f,l.pan,1,-1)}get pan(){return this._pan}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n,i,a)=>()=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(o.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,pan:f.pan.value};f=e(c,t)}return s.set(c,f),p?await t(c,u.pan,f.pan,l):await i(c,u.pan,f.pan,l),Object(r.a)(f)?await a(u,c,f.inputs[0],l):await a(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createBuffer(1,1,44100);if(void 0===e.copyToChannel)return!0;const n=new Float32Array(2);try{e.copyFromChannel(n,0,0)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.start()}catch(t){return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100),n=e.createBuffer(1,1,e.sampleRate),r=e.createBufferSource();return n.getChannelData(0)[0]=1,r.buffer=n,r.start(0,0,0),r.connect(e.destination),new Promise(t=>{e.oncomplete=({renderedBuffer:e})=>{t(0===e.getChannelData(0)[0])},e.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource()),r=e.createBuffer(1,1,44100);n.buffer=r;try{n.start(0,1)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.stop()}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;if(void 0!==t.prototype&&void 0!==t.prototype.close)return!0;const e=new t,n=void 0!==e.close;try{e.close()}catch(t){}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);return new Promise(t=>{let n=!0;const r=r=>{n&&(n=!1,e.startRendering(),t(r instanceof TypeError))};let o;try{o=e.decodeAudioData(null,()=>{},r)}catch(t){r(t)}void 0!==o&&o.catch(r)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;let e;try{e=new t({latencyHint:"balanced"})}catch(t){return!1}return e.close(),!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createGain(),n=e.connect(e)===e;return e.disconnect(e),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.start(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=e.createBuffer(1,1,44100),r=t(e,t=>t.createBufferSource());r.buffer=n,r.start(),r.stop();try{return r.stop(),!0}catch(t){return!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.stop(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>async()=>{if(null===t)return!0;if(null===e)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(){this.port.postMessage(0)}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,3200),o=URL.createObjectURL(n);let i=!1;try{await r.audioWorklet.addModule(o);const e=r.createGain(),n=new t(r,"a",{numberOfOutputs:0});n.port.onmessage=()=>i=!0,e.connect(n),await r.startRendering()}catch(t){}finally{URL.revokeObjectURL(o)}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100);return void 0===n.createConstantSource||t(n,t=>t.createConstantSource()).offset.maxValue!==Number.POSITIVE_INFINITY}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createConvolver();n.buffer=e.createBuffer(1,1,e.sampleRate);try{n.buffer=e.createBuffer(1,1,e.sampleRate)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>null!==t&&t.hasOwnProperty("isSecureContext")},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t;try{return e.createMediaStreamSource(new MediaStream),!1}catch(t){return!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(t=>{n.oncomplete=()=>{r.disconnect(),t(0!==n.currentTime)},n.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);if(void 0===e.createStereoPanner)return Promise.resolve(!0);if(void 0===e.createConstantSource)return Promise.resolve(!0);const n=e.createConstantSource(),r=e.createStereoPanner();return n.channelCount=1,n.offset.value=1,r.channelCount=1,n.start(),n.connect(r).connect(e.destination),e.startRendering().then(t=>1!==t.getChannelData(0)[0])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},o=(t,e,n,o,i,a)=>class extends t{constructor(t,e=r){const s=i(t),u={...r,...e},c=n(s,u);super(t,!0,c,a(s)?o():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=c}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(t){if(null===t)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(t.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=t}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(t){this._nativeWaveShaperNode.oversample=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>"undefined"==typeof window?null:window},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{n.copyFromChannel=(r,o,i=0)=>{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+a{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+ae=>{var n,r;e.copyFromChannel=(n=e.copyFromChannel,(r,o,i=0)=>{const a=t(i),s=t(o);if(a{const a=t(i),s=t(o);if(a(e,n)=>{const r=n.createBuffer(1,1,n.sampleRate);null===e.buffer&&(e.buffer=r),t(e,"buffer",t=>()=>{const n=t.call(e);return n===r?null:n},t=>n=>t.call(e,null===n?r:n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);const o=t=>(e,n)=>{const o=t(n,t=>t.createGain());e.connect(o);const i=(a=e.disconnect,()=>{a.call(e,o),e.removeEventListener("ended",i)});var a;e.addEventListener("ended",i),Object(r.a)(e,o),e.stop=(t=>{let n=!1;return(r=0)=>{if(n)try{t.call(e,r)}catch(t){o.gain.setValueAtTime(0,r)}else t.call(e,r),n=!0}})(e.stop)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,o)=>{o.channelCount=1,o.channelCountMode="explicit",Object.defineProperty(o,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(o,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const i=e(r,t=>t.createBufferSource());n(o,()=>{const t=o.numberOfInputs;for(let e=0;ei.disconnect(o))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>new Promise(t=>{const e=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:e})=>t(null!==e),r.postMessage(e,[e])})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,o)=>{const i=t.buffer,a=null===i?r:Math.min(i.duration,r);null!==i&&a>i.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,a,o)})}},function(t,e,n){"use strict";var r=n(2),o=n(77),i=n(61);const a=t=>"port"in t;var s=n(96),u=n(54);const c=(t,e)=>{if(!Object(u.a)(t).delete(e))throw new Error("Missing the expected event listener.")};var l=n(97),f=n(19),p=n(79),h=n(13),d=n(80),y=n(23),v=n(39),m=n(62),g=n(50);const b=t=>!r.a.has(t),_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(0===n.length)throw Error("No element was found.");const[r]=n;return t.delete(r),r};var w=n(46),x=n(59);const O=(t,e)=>{!a(t)&&e.every(t=>0===t.size)&&Object(x.a)(t)},S=t=>new Promise(e=>{const n=t.createScriptProcessor(256,1,1),r=t.createGain(),o=t.createBuffer(1,2,44100),i=o.getChannelData(0);i[0]=1,i[1]=1;const a=t.createBufferSource();a.buffer=o,a.loop=!0,a.connect(n).connect(t.destination),a.connect(r),a.disconnect(r),n.onaudioprocess=r=>{const o=r.inputBuffer.getChannelData(0);Array.prototype.some.call(o,t=>1===t)?e(!0):e(!1),a.stop(),n.onaudioprocess=null,a.disconnect(n),n.disconnect(t.destination)},a.start()}),k=(t,e)=>{const n=new Map;for(const e of t)for(const t of e){const e=n.get(t);n.set(t,void 0===e?1:e+1)}n.forEach((t,n)=>e(n,t))};var T=n(78);n.d(e,"a",(function(){return q}));const C=(t,e,[n,r,o],i)=>{Object(v.a)(t[r],[e,n,o],t=>t[0]===e&&t[1]===n,i)},E=(t,e,[n,r],o)=>{Object(v.a)(t,[e,n,r],t=>t[0]===e&&t[1]===n,o)},A=(t,e,[n,r,o],i)=>{const a=t.get(n);void 0===a?t.set(n,new Set([[r,e,o]])):Object(v.a)(a,[r,e,o],t=>t[0]===r&&t[1]===e,i)},j=(t,[e,n,r],o)=>{const i=t.get(e);void 0===i?t.set(e,new Set([[n,r]])):Object(v.a)(i,[n,r],t=>t[0]===n,o)},P=(t,e,n,r)=>{const o=Object(y.a)(t,e),i=_(o,t=>t[0]===n&&t[1]===r);return 0===o.size&&t.delete(e),i},D=(t,e,n)=>{const r=Object(y.a)(t,e),o=_(r,t=>t[0]===n);return 0===r.size&&t.delete(e),o},M=(t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),{outputs:a}=Object(f.a)(t),c=Object(u.a)(t),p=a=>{const u=Object(h.a)(e),c=Object(h.a)(t);if(a){const a=P(i,t,n,r);C(o,t,a,!1),Object(g.a)(t)||Object(s.a)(c,u,n,r),b(e)&&Object(w.a)(e)}else{const a=((t,e,n,r)=>_(t[r],t=>t[0]===e&&t[1]===n))(o,t,n,r);A(i,r,a,!1),Object(g.a)(t)||Object(l.a)(c,u,n,r),Object(m.a)(e)&&O(e,o)}};return!!Object(v.a)(a,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)&&(c.add(p),Object(m.a)(t)?C(o,t,[n,r,p],!0):A(i,r,[t,n,p],!0),!0)},I=(t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),{outputs:i}=Object(f.a)(t),a=Object(u.a)(t),s=i=>{const a=Object(h.a)(t),s=Object(d.a)(e);if(i){const e=D(o,t,n);E(r,t,e,!1),Object(g.a)(t)||a.connect(s,n)}else{const e=((t,e,n)=>_(t,t=>t[0]===e&&t[1]===n))(r,t,n);j(o,e,!1),Object(g.a)(t)||a.disconnect(s,n)}};return!!Object(v.a)(i,[e,n],t=>t[0]===e&&t[1]===n,!0)&&(a.add(s),Object(m.a)(t)?E(r,t,[n,s],!0):j(o,[t,n,s],!0),!0)},R=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},N=(t,e,n,r)=>{const[o,i]=((t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),a=R(o[r],t,n);if(null===a){return[P(i,t,n,r)[2],!1]}return[a[2],!0]})(t,e,n,r);if(null!==o&&(c(t,o),i&&!Object(g.a)(t)&&Object(l.a)(Object(h.a)(t),Object(h.a)(e),n,r)),Object(m.a)(e)){const{activeInputs:t}=Object(f.a)(e);O(e,t)}},F=(t,e,n)=>{const[r,o]=((t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),i=R(r,t,n);if(null===i){return[D(o,t,n)[1],!1]}return[i[2],!0]})(t,e,n);null!==r&&(c(t,r),o&&!Object(g.a)(t)&&Object(h.a)(t).disconnect(Object(d.a)(e),n))},q=(t,e,n,u,c,l,y,m,g,_,x,O,A,j)=>class extends _{constructor(e,o,i,a){super(i),this._context=e,this._nativeAudioNode=i;const s=x(e);j(s)||!0===n(S,()=>S(s))||(t=>{const e=new Map;var n,r;t.connect=(n=t.connect.bind(t),(t,r=0,o=0)=>{const i=Object(T.a)(t)?n(t,r,o):n(t,r),a=e.get(t);return void 0===a?e.set(t,[{input:o,output:r}]):a.every(t=>t.input!==o||t.output!==r)&&a.push({input:o,output:r}),i}),t.disconnect=(r=t.disconnect,(n,o,i)=>{if(r.apply(t),void 0===n)e.clear();else if("number"==typeof n)for(const[t,r]of e){const o=r.filter(t=>t.output!==n);0===o.length?e.delete(t):e.set(t,o)}else if(e.has(n))if(void 0===o)e.delete(n);else{const t=e.get(n);if(void 0!==t){const r=t.filter(t=>t.output!==o&&(t.input!==i||void 0===i));0===r.length?e.delete(n):e.set(n,r)}}for(const[n,r]of e)r.forEach(e=>{Object(T.a)(n)?t.connect(n,e.output,e.input):t.connect(n,e.output)})})})(i),r.c.set(this,i),r.i.set(this,new Set),o&&Object(w.a)(this),t(this,a,i)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(t){this._nativeAudioNode.channelCount=t}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(t){this._nativeAudioNode.channelCountMode=t}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(t){this._nativeAudioNode.channelInterpretation=t}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(t,n=0,r=0){const i=x(this._context),c=j(i);if(O(t)||A(t))throw l();if(Object(o.a)(t)){const o=Object(h.a)(t);try{const u=Object(s.a)(this._nativeAudioNode,o,n,r);if(c||b(this)?this._nativeAudioNode.disconnect(...u):b(t)&&Object(w.a)(t),a(t)){const t=e.get(o);if(void 0===t){const t=i.createGain();t.connect(u[0],0,u[2]),e.set(o,new Map([[r,t]]))}else if(void 0===t.get(r)){const e=i.createGain();e.connect(u[0],0,u[2]),t.set(r,e)}}}catch(t){if(12===t.code)throw l();throw t}if(c?((t,e,n,r)=>{const{outputs:o}=Object(f.a)(t);if(Object(v.a)(o,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)){const{activeInputs:o}=Object(f.a)(e);return C(o,t,[n,r,null],!0),!0}return!1})(this,t,n,r):M(this,t,n,r)){const e=g([this],t);k(e,u(c))}return t}const m=Object(d.a)(t);if("playbackRate"===m.name)throw y();try{this._nativeAudioNode.connect(m,n),(c||b(this))&&this._nativeAudioNode.disconnect(m,n)}catch(t){if(12===t.code)throw l();throw t}if(c?((t,e,n)=>{const{outputs:r}=Object(f.a)(t);if(Object(v.a)(r,[e,n],t=>t[0]===e&&t[1]===n,!0)){const{activeInputs:r}=Object(p.a)(e);return E(r,t,[n,null],!0),!0}return!1})(this,t,n):I(this,t,n)){const e=g([this],t);k(e,u(c))}}disconnect(t,e,n){let r;if(void 0===t)r=(t=>{const e=Object(f.a)(t),n=[];for(const r of e.outputs)Object(i.a)(r)?N(t,...r):F(t,...r),n.push(r[0]);return e.outputs.clear(),n})(this);else if("number"==typeof t){if(t<0||t>=this.numberOfOutputs)throw c();r=((t,e)=>{const n=Object(f.a)(t),r=[];for(const o of n.outputs)o[1]===e&&(Object(i.a)(o)?N(t,...o):F(t,...o),r.push(o[0]),n.outputs.delete(o));return r})(this,t)}else{if(void 0!==e&&(e<0||e>=this.numberOfOutputs))throw c();if(Object(o.a)(t)&&void 0!==n&&(n<0||n>=t.numberOfInputs))throw c();if(r=((t,e,n,r)=>{const o=Object(f.a)(t);return Array.from(o.outputs).filter(t=>!(t[0]!==e||void 0!==n&&t[1]!==n||void 0!==r&&t[2]!==r)).map(e=>(Object(i.a)(e)?N(t,...e):F(t,...e),o.outputs.delete(e),e[0]))})(this,t,e,n),0===r.length)throw l()}for(const t of r){const e=g([this],t);k(e,m)}}}},function(t,e,n){"use strict";var r=n(5),o=n(127),i=n(98),a=n(125),s=n(2);const u=async(t,e)=>new t(await(t=>new Promise((e,n)=>{const{port1:r,port2:o}=new MessageChannel;r.onmessage=({data:t})=>{r.close(),o.close(),e(t)},r.onmessageerror=({data:t})=>{r.close(),o.close(),n(t)},o.postMessage(t)}))(e));var c=n(99),l=n(124);n.d(e,"a",(function(){return f}));const f=(t,e,n,f,p,h,d,y,v,m,g,b,_)=>(w,x,O,S)=>{if(0===S.numberOfInputs&&0===S.numberOfOutputs)throw m();if(void 0!==S.outputChannelCount){if(S.outputChannelCount.some(t=>t<1))throw m();if(S.outputChannelCount.length!==S.numberOfOutputs)throw n()}if("explicit"!==S.channelCountMode)throw m();const k=S.channelCount*S.numberOfInputs,T=S.outputChannelCount.reduce((t,e)=>t+e,0),C=void 0===O.parameterDescriptors?0:O.parameterDescriptors.length;if(k+C>6||T>6)throw m();const E=new MessageChannel,A=[],j=[];for(let t=0;tvoid 0===t?0:t},maxValue:{get:()=>void 0===e?r.b:e},minValue:{get:()=>void 0===n?r.a:n}}),P.push(i)}const D=p(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+C)}),M=Object(o.a)(x,w.sampleRate),I=v(w,M,k+C,Math.max(1,T)),R=h(w,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),N=[];for(let t=0;t{const n=P[e];return n.connect(D,0,k+e),n.start(0),[t,n.offset]}));D.connect(I);let q=S.channelInterpretation,V=null;const L=0===S.numberOfOutputs?[I]:N,z={get bufferSize(){return M},get channelCount(){return S.channelCount},set channelCount(t){throw f()},get channelCountMode(){return S.channelCountMode},set channelCountMode(t){throw f()},get channelInterpretation(){return q},set channelInterpretation(t){for(const e of A)e.channelInterpretation=t;q=t},get context(){return I.context},get inputs(){return A},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(t){"function"==typeof V&&z.removeEventListener("processorerror",V),V="function"==typeof t?t:null,"function"==typeof V&&z.addEventListener("processorerror",V)},get parameters(){return F},get port(){return E.port2},addEventListener:(...t)=>I.addEventListener(t[0],t[1],t[2]),connect:e.bind(null,L),disconnect:g.bind(null,L),dispatchEvent:(...t)=>I.dispatchEvent(t[0]),removeEventListener:(...t)=>I.removeEventListener(t[0],t[1],t[2])},B=new Map;var U,W;E.port1.addEventListener=(U=E.port1.addEventListener,(...t)=>{if("message"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=B.get(t[1]);void 0!==n?t[1]=n:(t[1]=t=>{b(w.currentTime,w.sampleRate,()=>e(t))},B.set(e,t[1]))}}return U.call(E.port1,t[0],t[1],t[2])}),E.port1.removeEventListener=(W=E.port1.removeEventListener,(...t)=>{if("message"===t[0]){const e=B.get(t[1]);void 0!==e&&(B.delete(t[1]),t[1]=e)}return W.call(E.port1,t[0],t[1],t[2])});let $=null;Object.defineProperty(E.port1,"onmessage",{get:()=>$,set:t=>{"function"==typeof $&&E.port1.removeEventListener("message",$),$="function"==typeof t?t:null,"function"==typeof $&&(E.port1.addEventListener("message",$),E.port1.start())}}),O.prototype.port=E.port1;let H=null;((t,e,n,r)=>{let o=s.k.get(t);void 0===o&&(o=new WeakMap,s.k.set(t,o));const i=u(n,r);return o.set(e,i),i})(w,z,O,S).then(t=>H=t);const G=Object(c.a)(S.numberOfInputs,S.channelCount),K=Object(c.a)(S.numberOfOutputs,S.outputChannelCount),Q=void 0===O.parameterDescriptors?[]:O.parameterDescriptors.reduce((t,{name:e})=>({...t,[e]:new Float32Array(128)}),{});let Y=!0;const X=()=>{S.numberOfOutputs>0&&I.disconnect(R);for(let t=0,e=0;t{if(null!==H)for(let r=0;r{Object(i.a)(e,Q,t,k+n,r)});for(let t=0;t{const r=t.get(z);return void 0===r||void 0===r.get(n)?[new Float32Array(0)]:e}),o=b(w.currentTime+r/w.sampleRate,w.sampleRate,()=>H.process(e,K,Q));Y=o;for(let t=0,e=0;t{if(Y){S.numberOfOutputs>0&&I.connect(R);for(let t=0,e=0;t{Y&&X(),J=!1})}},function(t,e,n){"use strict";var r=n(94);function o(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var i=n(122),a=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?r.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e=0&&this.changeListeners.splice(e,1)},t}();e.a=a},function(t,e,n){"use strict";var r=n(2);const o={construct:()=>o},i=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,a=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),o=r.match(i);for(;null!==o;){const t=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(t,new URL(t,e).toString());n.push(a),r=r.slice(o[0].length).replace(/^[\s]+/,""),o=r.match(i)}return[n.join(";"),r]};n.d(e,"a",(function(){return c}));const s=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},u=t=>{if(!(t=>{try{new new Proxy(t,o)}catch(t){return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},c=(t,e,n,o,i,c,l,f,p)=>(h,d,y={credentials:"omit"})=>{const v=l(h),m=new URL(d,location.href).toString();if(void 0!==v.audioWorklet)return i(d).then(t=>{const[e,n]=a(t,m),r=new Blob([`${e};(registerProcessor=>{${n}\n})((n,p)=>registerProcessor(n,class extends p{constructor(o){const{hasNoOutput,...q}=o.parameterData;if(hasNoOutput===1){super({...o,numberOfOutputs:0,outputChannelCount:[],parameterData:q});this._h=true}else{super(o);this._h=false}}process(i,o,p){return super.process(i,(this._h)?[]:o,p)}}))`],{type:"application/javascript; charset=utf-8"}),o=URL.createObjectURL(r),i=c(v);return(null!==i?i:v).audioWorklet.addModule(o,y).then(()=>URL.revokeObjectURL(o)).catch(t=>{throw URL.revokeObjectURL(o),t})});const g=p.get(h);if(void 0!==g&&g.has(d))return Promise.resolve();const b=f.get(h);if(void 0!==b){const t=b.get(d);if(void 0!==t)return t}const _=i(d).then(t=>{const[e,r]=a(t,m);return n(`${e};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${r}\n})})(window,'_AWGS')`)}).then(()=>{const t=window._AWGS.pop();if(void 0===t)throw new SyntaxError;o(v.currentTime,v.sampleRate,()=>t(class{},void 0,(t,n)=>{if(""===t.trim())throw e();const o=r.j.get(v);if(void 0!==o){if(o.has(t))throw e();u(n),s(n.parameterDescriptors),o.set(t,n)}else u(n),s(n.parameterDescriptors),r.j.set(v,new Map([[t,n]]))},v.sampleRate,void 0,void 0))}).catch(e=>{if("SyntaxError"===e.name)throw t();throw e});return void 0===b?f.set(h,new Map([[d,_]])):b.set(d,_),_.then(()=>{const t=p.get(h);void 0===t?p.set(h,new Set([d])):t.add(d)}).catch(()=>{}).then(()=>{const t=f.get(h);void 0!==t&&t.delete(d)}),_}},function(t,e,n){"use strict";var r=n(7),o=n(4);const i=t=>"function"==typeof t.getFloatTimeDomainData;n.d(e,"a",(function(){return a}));const a=(t,e,n)=>(a,s)=>{const u=n(a,t=>t.createAnalyser());if(Object(o.a)(u,s),!(s.maxDecibels>s.minDecibels))throw e();return Object(r.a)(u,s,"fftSize"),Object(r.a)(u,s,"maxDecibels"),Object(r.a)(u,s,"minDecibels"),Object(r.a)(u,s,"smoothingTimeConstant"),t(i,()=>i(u))||(t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let t=0;t(g,b={})=>{const _=e(g,t=>t.createBufferSource());return Object(i.a)(_,b),Object(r.a)(_,b,"playbackRate"),Object(o.a)(_,b,"buffer"),Object(o.a)(_,b,"loop"),Object(o.a)(_,b,"loopEnd"),Object(o.a)(_,b,"loopStart"),t(n,()=>n(g))||(t=>{t.start=(e=>{let n=!1;return(r=0,o=0,i)=>{if(n)throw Object(a.a)();e.call(t,r,o,i),n=!0}})(t.start)})(_),t(c,c)||((t,e)=>{let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;var o,i;t.start=(o=t.start,i=t.stop,(a=0,s=0,u=Number.POSITIVE_INFINITY)=>{if(o.call(t,a,s),u>=0&&u(i=0)=>{r=Math.max(i,e.currentTime),o.call(t,Math.min(n,r))})(t.stop)})(_,g),t(l,()=>l(g))||y(_),t(f,()=>f(g))||v(_,g),t(p,()=>p(g))||Object(s.a)(_),t(h,()=>h(g))||m(_,g),t(d,()=>d(g))||Object(u.a)(_),_}},function(t,e,n){"use strict";var r=n(98),o=n(125),i=n(99),a=n(19),s=n(2),u=n(13),c=n(23);var l=n(6);n.d(e,"a",(function(){return p}));const f=async(t,e,n,l,f,p)=>{const h=null===e?128*Math.ceil(t.context.length/128):e.length,d=l.channelCount*l.numberOfInputs,y=l.outputChannelCount.reduce((t,e)=>t+e,0),v=0===y?null:n.createBuffer(y,h,n.sampleRate);if(void 0===f)throw new Error("Missing the processor constructor.");const m=Object(a.a)(t),g=await((t,e)=>{const n=Object(c.a)(s.k,t),r=Object(u.a)(e);return Object(c.a)(n,r)})(n,t),b=Object(i.a)(l.numberOfInputs,l.channelCount),_=Object(i.a)(l.numberOfOutputs,l.outputChannelCount),w=Array.from(t.parameters.keys()).reduce((t,e)=>({...t,[e]:new Float32Array(128)}),{});for(let i=0;i0&&null!==e)for(let t=0;t{Object(r.a)(e,w,t,d+n,i)});for(let t=0;t0===m.activeInputs[e].size?[new Float32Array(0)]:t),e=p(i/n.sampleRate,n.sampleRate,()=>g.process(t,_,w));if(null!==v)for(let t=0,e=0;t(m,g,b)=>{const _=new WeakMap;let w=null;return{render(x,O,S){const k=_.get(O);return void 0!==k?Promise.resolve(k):(async(x,O,S)=>{let k=c(x),T=null;const C=Object(l.a)(k,O);if(null===p){const t=g.outputChannelCount.reduce((t,e)=>t+e,0),n=o(O,{channelCount:Math.max(1,t),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,t)}),i=[];for(let t=0;t{const s=new h(n,128*Math.ceil(x.context.length/128),O.sampleRate),u=[],c=[];for(let t=0;t{const e=i(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:t.value});return await d(s,t,e.offset,S),e})),f=r(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,t+e)});for(let t=0;ty(x,s,t,S))),v(s)};w=f(x,0===n?null:await s(),O,g,b,u)}const t=await w,e=n(O),[s,c,l]=T;null!==t&&(e.buffer=t,e.start(0)),e.connect(s);for(let t=0,e=0;t(d,y)=>{const v=s(d)?d:a(d);if(i.has(y)){const t=n();return Promise.reject(t)}try{i.add(y)}catch(t){}if(e(f,()=>f(v))){return("closed"===v.state&&null!==c&&u(v)?new c(1,1,v.sampleRate):v).decodeAudioData(y).catch(t=>{if(t instanceof DOMException&&"NotSupportedError"===t.name)throw new TypeError;throw t}).then(n=>(e(l,()=>l(n))||h(n),t.add(n),n))}return new Promise((e,n)=>{const i=()=>{try{(t=>{const{port1:e}=new MessageChannel;e.postMessage(t,[t])})(y)}catch(t){}},a=t=>{n(t),i()};try{v.decodeAudioData(y,n=>{"function"!=typeof n.copyFromChannel&&(p(n),Object(r.a)(n)),t.add(n),i(),e(n)},t=>{a(null===t?o():t)})}catch(t){a(t)}})}},function(t,e,n){"use strict";var r=n(77);n.d(e,"a",(function(){return o}));const o=(t,e,n)=>function o(i,a){const s=Object(r.a)(a)?a:n(t,a);if((t=>"delayTime"in t)(s))return[];if(i[0]===s)return[i];if(i.includes(s))return[];const{outputs:u}=e(s);return Array.from(u).map(t=>o([...i,s],t[0])).reduce((t,e)=>t.concat(e),[])}},function(t,e,n){"use strict";var r=n(100);n.d(e,"a",(function(){return i}));const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},i=(t,e,n,i,a)=>class extends t{constructor(t,s){const u=i(t),c=a(u),l={...o,...s},f=e(u,c?null:t.baseLatency,l);super(t,!1,f,c?n(l.feedback,l.feedforward):null),(t=>{var e;t.getFrequencyResponse=(e=t.getFrequencyResponse,(n,o,i)=>{if(n.length!==o.length||o.length!==i.length)throw Object(r.a)();return e.call(t,n,o,i)})})(f),this._nativeIIRFilterNode=f}getFrequencyResponse(t,e,n){return this._nativeIIRFilterNode.getFrequencyResponse(t,e,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>(i,a,s,u,c,l)=>{if(null!==s)try{const n=e(i,t=>o(t)&&0!==l.numberOfInputs&&0===l.numberOfOutputs?new s(t,u,{...l,numberOfOutputs:1,outputChannelCount:[1],parameterData:{...l.parameterData,hasNoOutput:1}}):new s(t,u,l)),r=new Map;let a=null;return Object.defineProperties(n,{channelCount:{get:()=>l.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>a,set:t=>{"function"==typeof a&&n.removeEventListener("processorerror",a),a="function"==typeof t?t:null,"function"==typeof a&&n.addEventListener("processorerror",a)}}}),n.addEventListener=(p=n.addEventListener,(...t)=>{if("processorerror"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=r.get(t[1]);void 0!==n?t[1]=n:(t[1]=n=>{e(new ErrorEvent(t[0],{...n,error:new Error}))},r.set(e,t[1]))}}return p.call(n,t[0],t[1],t[2])}),n.removeEventListener=(f=n.removeEventListener,(...t)=>{if("processorerror"===t[0]){const e=r.get(t[1]);void 0!==e&&(r.delete(t[1]),t[1]=e)}return f.call(n,t[0],t[1],t[2])}),n}catch(t){if(11===t.code)throw r();throw t}var f,p;if(void 0===c)throw r();return(t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}})(l),n(i,a,c,l)}},function(t,e,n){"use strict";var r=n(4),o=n(14);n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{const i=t(e,t=>t.createChannelSplitter(n.numberOfOutputs));return Object(r.a)(i,n),(t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw Object(o.a)()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:t=>{if("explicit"!==t)throw Object(o.a)()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:t=>{if("discrete"!==t)throw Object(o.a)()}})})(i),i}},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(1031),o=n(1032),i=n(1033);t.exports=function(t,e){return r(t)||o(t,e)||i()}},,function(t,e,n){"use strict";n(821);var r,o=(r=n(992))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(822),n(965),n(967),n(970),n(972),n(974),n(976),n(978),n(980),n(982),n(984),n(986),n(988),n(203)},function(t,e,n){n(823),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(904),n(905),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(150),n(928),n(192),n(929),n(193),n(930),n(931),n(932),n(933),n(194),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),t.exports=n(18)},function(t,e,n){"use strict";var r=n(9),o=n(29),i=n(20),a=n(1),s=n(26),u=n(57).KEY,c=n(10),l=n(110),f=n(84),p=n(66),h=n(15),d=n(131),y=n(173),v=n(825),m=n(113),g=n(11),b=n(12),_=n(24),w=n(31),x=n(56),O=n(65),S=n(70),k=n(176),T=n(43),C=n(112),E=n(21),A=n(68),j=T.f,P=E.f,D=k.f,M=r.Symbol,I=r.JSON,R=I&&I.stringify,N=h("_hidden"),F=h("toPrimitive"),q={}.propertyIsEnumerable,V=l("symbol-registry"),L=l("symbols"),z=l("op-symbols"),B=Object.prototype,U="function"==typeof M&&!!C.f,W=r.QObject,$=!W||!W.prototype||!W.prototype.findChild,H=i&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=j(B,e);r&&delete B[e],P(t,e,n),r&&t!==B&&P(B,e,r)}:P,G=function(t){var e=L[t]=S(M.prototype);return e._k=t,e},K=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Q=function(t,e,n){return t===B&&Q(z,e,n),g(t),e=x(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,N)||P(t,N,O(1,{})),t[N][e]=!0),H(t,e,n)):P(t,e,n)},Y=function(t,e){g(t);for(var n,r=v(e=w(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},X=function(t){var e=q.call(this,t=x(t,!0));return!(this===B&&o(L,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=x(e,!0),t!==B||!o(L,e)||o(z,e)){var n=j(t,e);return!n||!o(L,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=D(w(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==N||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===B,r=D(n?z:w(t)),i=[],a=0;r.length>a;)!o(L,e=r[a++])||n&&!o(B,e)||i.push(L[e]);return i};U||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(z,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,O(1,n))};return i&&$&&H(B,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",(function(){return this._k})),T.f=J,E.f=Q,n(71).f=k.f=Z,n(104).f=X,C.f=tt,i&&!n(67)&&s(B,"propertyIsEnumerable",X,!0),d.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=A(h.store),ot=0;rt.length>ot;)y(rt[ot++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=M(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=c((function(){C.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return C.f(_(t))}}),I&&a(a.S+a.F*(!U||c((function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,R.apply(I,r)}}),M.prototype[F]||n(30)(M.prototype,F,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(110)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(68),o=n(112),i=n(104);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(70)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperty:n(21).f})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperties:n(175)})},function(t,e,n){var r=n(31),o=n(43).f;n(44)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(24),o=n(72);n(44)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(24),o=n(68);n(44)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(44)("getOwnPropertyNames",(function(){return n(176).f}))},function(t,e,n){var r=n(12),o=n(57).onFreeze;n(44)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(57).onFreeze;n(44)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(57).onFreeze;n(44)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12);n(44)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(44)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(44)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(177)})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(178)})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(135).set})},function(t,e,n){"use strict";var r=n(105),o={};o[n(15)("toStringTag")]="z",o+""!="[object z]"&&n(26)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(179)})},function(t,e,n){var r=n(21).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(20)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(12),o=n(72),i=n(15)("hasInstance"),a=Function.prototype;i in a||n(21).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(1),o=n(181);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(1),o=n(182);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(9),o=n(29),i=n(51),a=n(137),s=n(56),u=n(10),c=n(71).f,l=n(43).f,f=n(21).f,p=n(85).trim,h=r.Number,d=h,y=h.prototype,v="Number"==i(n(70)(y)),m="trim"in String.prototype,g=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;co)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(v?u((function(){y.valueOf.call(n)})):"Number"!=i(n))?a(new d(g(e)),n,h):g(e)};for(var b,_=n(20)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(d,b=_[w])&&!o(h,b)&&f(h,b,l(d,b));h.prototype=y,y.constructor=h,n(26)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(1),o=n(42),i=n(183),a=n(138),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(10)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,u=i(this,l),c=o(t),y="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?y+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):y+v}})},function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(183),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),o=n(9).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(184)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),o=n(184),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),o=n(182);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(1),o=n(181);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(1),o=n(185),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(1),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(1),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),o=n(139);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(1),o=n(140);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(868)})},function(t,e,n){var r=n(139),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return os||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(1),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,s=arguments.length,u=0;a0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(t,e,n){var r=n(1),o=Math.imul;r(r.S+r.F*n(10)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(185)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(139)})},function(t,e,n){var r=n(1),o=n(140),i=Math.exp;r(r.S+r.F*n(10)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),o=n(140),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(1),o=n(69),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(1),o=n(31),i=n(17);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(1),o=n(141)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(143),a="".endsWith;r(r.P+r.F*n(145)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},function(t,e,n){"use strict";var r=n(1),o=n(143);r(r.P+r.F*n(145)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(1);r(r.P,"String",{repeat:n(138)})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(143),a="".startsWith;r(r.P+r.F*n(145)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(27)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(27)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(27)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(27)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(27)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(27)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(27)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(27)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(27)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(27)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(27)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(27)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(27)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(1),o=n(24),i=n(56);r(r.P+r.F*n(10)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(1),o=n(903);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(10),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(26)(r,"toString",(function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(15)("toPrimitive"),o=Date.prototype;r in o||n(30)(o,r,n(906))},function(t,e,n){"use strict";var r=n(11),o=n(56);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(113)})},function(t,e,n){"use strict";var r=n(40),o=n(1),i=n(24),a=n(187),s=n(146),u=n(17),c=n(147),l=n(148);o(o.S+o.F*!n(114)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,m=0,g=l(p);if(v&&(y=r(y,d>2?arguments[2]:void 0,2)),null==g||h==Array&&s(g))for(n=new h(e=u(p.length));e>m;m++)c(n,m,v?y(p[m],m):p[m]);else for(f=g.call(p),n=new h;!(o=f.next()).done;m++)c(n,m,v?a(f,y,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(1),o=n(147);r(r.S+r.F*n(10)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),o=n(31),i=[].join;r(r.P+r.F*(n(103)!=Object||!n(35)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),o=n(134),i=n(51),a=n(69),s=n(17),u=[].slice;r(r.P+r.F*n(10)((function(){o&&u.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=s(c-o),f=new Array(l),p=0;p1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(190)}),n(73)("copyWithin")},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(149)}),n(73)("fill")},function(t,e,n){"use strict";var r=n(1),o=n(45)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("find")},function(t,e,n){"use strict";var r=n(1),o=n(45)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)(i)},function(t,e,n){n(87)("Array")},function(t,e,n){var r=n(9),o=n(137),i=n(21).f,a=n(71).f,s=n(144),u=n(115),c=r.RegExp,l=c,f=c.prototype,p=/a/g,h=/a/g,d=new c(p)!==p;if(n(20)&&(!d||n(10)((function(){return h[n(15)("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(d?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?u.call(t):e),n?this:f,c)};for(var y=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=a(l),m=0;v.length>m;)y(v[m++]);f.constructor=c,c.prototype=f,n(26)(r,"RegExp",c)}n(87)("RegExp")},function(t,e,n){"use strict";n(193);var r=n(11),o=n(115),i=n(20),a=/./.toString,s=function(t){n(26)(RegExp.prototype,"toString",t,!0)};n(10)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(t,e,n){"use strict";var r=n(11),o=n(17),i=n(152),a=n(116);n(117)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,p=[],h=0;null!==(f=a(u,c));){var d=String(f[0]);p[h]=d,""===d&&(u.lastIndex=i(c,o(u.lastIndex),l)),h++}return 0===h?null:p}]}))},function(t,e,n){"use strict";var r=n(11),o=n(24),i=n(17),a=n(42),s=n(152),u=n(116),c=Math.max,l=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(117)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var v=f.global;if(v){var m=f.unicode;f.lastIndex=0}for(var g=[];;){var b=u(f,p);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(f.lastIndex=s(p,i(f.lastIndex),m))}for(var _,w="",x=0,O=0;O=x&&(w+=p.slice(x,k)+j,x=k+S.length)}return w+p.slice(x)}];function y(t,e,r,i,a,s){var u=r+t.length,c=i.length,l=h;return void 0!==a&&(a=o(a),l=p),n.call(s,l,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var p=f(l/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}s=i[l-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(11),o=n(178),i=n(116);n(117)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var l=i(s,u);return o(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(144),o=n(11),i=n(106),a=n(152),s=n(17),u=n(116),c=n(151),l=n(10),f=Math.min,p=[].push,h=!l((function(){RegExp(4294967295,"y")}));n(117)("split",2,(function(t,e,n,l){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,l+"g");(i=c.call(d,o))&&!((a=d.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index=h));)d.lastIndex===i.index&&d.lastIndex++;return f===o.length?!s&&d.test("")||u.push(""):u.push(o.slice(f)),u.length>h?u.slice(0,h):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):d.call(String(o),n,r)},function(t,e){var r=l(d,t,this,e,d!==n);if(r.done)return r.value;var c=o(t),p=String(this),y=i(c,RegExp),v=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(h?"y":"g"),g=new y(h?c:"^(?:"+c.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===u(g,p)?[p]:[];for(var _=0,w=0,x=[];w0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(197),o=n(74);t.exports=n(120)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(9),i=n(45)(0),a=n(26),s=n(57),u=n(177),c=n(198),l=n(12),f=n(74),p=n(74),h=!o.ActiveXObject&&"ActiveXObject"in o,d=s.getWeak,y=Object.isExtensible,v=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?v(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(120)("WeakMap",m,g,c,!0,!0);p&&h&&(u((r=c.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(198),o=n(74);n(120)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),o=n(121),i=n(154),a=n(11),s=n(69),u=n(17),c=n(12),l=n(9).ArrayBuffer,f=n(106),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&l.isView,y=p.prototype.slice,v=o.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(10)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),i=new(f(this,p))(u(o-r)),c=new h(this),l=new h(i),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(43),o=n(72),i=n(29),a=n(1),s=n(12),u=n(11);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(43),o=n(1),i=n(11);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(1),o=n(72),i=n(11);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),o=n(11),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(200)})},function(t,e,n){var r=n(1),o=n(11),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(21),o=n(43),i=n(72),a=n(29),s=n(1),u=n(65),c=n(11),l=n(12);s(s.S,"Reflect",{set:function t(e,n,s){var f,p,h=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(l(p=i(e)))return t(p,n,s,h);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(h))return!1;if(f=o.f(h,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(h,n,f)}else r.f(h,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(h,s),!0)}})},function(t,e,n){var r=n(1),o=n(135);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(966),t.exports=n(18).Array.includes},function(t,e,n){"use strict";var r=n(1),o=n(111)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("includes")},function(t,e,n){n(968),t.exports=n(18).Array.flatMap},function(t,e,n){"use strict";var r=n(1),o=n(969),i=n(24),a=n(17),s=n(41),u=n(188);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return s(t),e=a(r.length),n=u(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(73)("flatMap")},function(t,e,n){"use strict";var r=n(113),o=n(12),i=n(17),a=n(40),s=n(15)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,f,p,h){for(var d,y,v=l,m=0,g=!!p&&a(p,h,3);m0)v=t(e,n,d,i(d.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}m++}return v}},function(t,e,n){n(971),t.exports=n(18).String.padStart},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(119),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(973),t.exports=n(18).String.padEnd},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(119),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(975),t.exports=n(18).String.trimLeft},function(t,e,n){"use strict";n(85)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(977),t.exports=n(18).String.trimRight},function(t,e,n){"use strict";n(85)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(979),t.exports=n(131).f("asyncIterator")},function(t,e,n){n(173)("asyncIterator")},function(t,e,n){n(981),t.exports=n(18).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(1),o=n(200),i=n(31),a=n(43),s=n(147);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})},function(t,e,n){n(983),t.exports=n(18).Object.values},function(t,e,n){var r=n(1),o=n(202)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(985),t.exports=n(18).Object.entries},function(t,e,n){var r=n(1),o=n(202)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(194),n(987),t.exports=n(18).Promise.finally},function(t,e,n){"use strict";var r=n(1),o=n(18),i=n(9),a=n(106),s=n(196);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(989),n(990),n(991),t.exports=n(18)},function(t,e,n){var r=n(9),o=n(1),i=n(119),a=[].slice,s=/MSIE .\./.test(i),u=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(1),o=n(153);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(150),o=n(68),i=n(26),a=n(9),s=n(30),u=n(86),c=n(15),l=c("iterator"),f=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),y=0;yj.length&&j.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return r(o,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=s(t),h=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!e})):void 0;if(!h||!d||"replace"===t&&!l||"split"===t&&!f){var y=/./[p],v=n(a,p,""[t],(function(t,e,n,r,o){return e.exec===u?h&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],g=v[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},function(t,e,n){var r=n(40),o=n(187),i=n(146),a=n(11),s=n(17),u=n(148),c={},l={};(e=t.exports=function(t,e,n,f,p){var h,d,y,v,m=p?function(){return t}:u(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>b;b++)if((v=e?g(a(d=t[b])[0],d[1]):g(t[b]))===c||v===l)return v}else for(y=m.call(t);!(d=y.next()).done;)if((v=o(y,g,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(9).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),o=n(1),i=n(26),a=n(89),s=n(57),u=n(118),c=n(88),l=n(12),f=n(10),p=n(114),h=n(84),d=n(137);t.exports=function(t,e,n,y,v,m){var g=r[t],b=g,_=v?"set":"add",w=b&&b.prototype,x={},O=function(t){var e=w[t];i(w,t,"delete"==t||"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,k=S[_](m?{}:-0,1)!=S,T=f((function(){S.has(1)})),C=p((function(t){new b(t)})),E=!m&&f((function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)}));C||((b=e((function(e,n){c(e,b,t);var r=d(new g,e,b);return null!=n&&u(n,v,r[_],r),r}))).prototype=w,w.constructor=b),(T||E)&&(O("delete"),O("has"),v&&O("get")),(E||k)&&O(_),m&&w.clear&&delete w.clear}else b=y.getConstructor(e,t,v,_),a(b.prototype,n),s.NEED=!0;return h(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=g),x),m||y.setStrong(b,t,v),b}},function(t,e,n){for(var r,o=n(9),i=n(30),a=n(66),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[p[f++]])?(i(r.prototype,s,!0),i(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;cvoid 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((n,r)=>t.call(e,n,r,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>{"function"==typeof t.copyToChannel?0!==e[n].byteLength&&t.copyToChannel(e[n],r,o):0!==e[n].byteLength&&t.getChannelData(r).set(e[n],o)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l)=>{const f=c.length;let p=s;for(let s=0;snull===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e)))))},function(t,e,n){"use strict";n.d(e,"a",(function(){return K})),n.d(e,"b",(function(){return U}));var r=n(3),o=n(0),i=n.n(o),a=n(58);if(!o.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.q)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var s=!1;function u(){return s}var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function f(t){return t.current?Object(r.j)(t.current):""}var p=[];function h(){var t=l(Object(o.useState)(0),2)[1];return Object(o.useCallback)((function(){t((function(t){return t+1}))}),[])}var d={};function y(t,e,n){if(void 0===e&&(e="observed"),void 0===n&&(n=d),u())return t();var i=(n.useForceUpdate||h)(),a=Object(o.useRef)(null);a.current||(a.current=new r.b("observer("+e+")",(function(){i()})));var s,c,l=function(){a.current&&!a.current.isDisposed&&(a.current.dispose(),a.current=null)};if(Object(o.useDebugValue)(a,f),function(t){Object(o.useEffect)((function(){return t}),p)}((function(){l()})),a.current.track((function(){try{s=t()}catch(t){c=t}})),c)throw l(),c;return s}function v(t,e){if(u())return t;var n,r,i,a=c({forwardRef:!1},e),s=t.displayName||t.name,l=function(e,n){return y((function(){return t(e,n)}),s)};return l.displayName=s,n=a.forwardRef?Object(o.memo)(Object(o.forwardRef)(l)):Object(o.memo)(l),r=t,i=n,Object.keys(r).forEach((function(t){r.hasOwnProperty(t)&&!m[t]&&Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})),n.displayName=s,n}var m={$$typeof:!0,render:!0,compare:!0,type:!0};function g(t){var e=t.children,n=t.render,r=e||n;return"function"!=typeof r?null:y(r)}function b(t,e,n,r,o){var i="children"===e?"render":"children",a="function"==typeof t[e],s="function"==typeof t[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof t[e]+"` supplied to `"+n+"`, expected `function`.")}g.propTypes={children:b,render:b},g.displayName="Observer";var _=0;var w={};function x(t){return w[t]||(w[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+_+")";return _++,e}(t)),w[t]}function O(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i",a=t.bind(this),s=!1,c=new r.b(i+".render()",(function(){if(!s&&(s=!0,!0!==e[M])){var t=!0;try{T(e,R,!0),e[I]||o.Component.prototype.forceUpdate.call(e),t=!1}finally{T(e,R,!1),t&&c.dispose()}}}));function l(){s=!1;var t=void 0,e=void 0;if(c.track((function(){try{e=Object(r.c)(!1,a)}catch(e){t=e}})),t)throw t;return e}return c.reactComponent=this,l[D]=c,this.render=l,l.call(this)}function q(t,e){return u()&&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!==e||!O(this.props,t)}function V(t,e){var n=x("reactProp_"+e+"_valueHolder"),o=x("reactProp_"+e+"_atomHolder");function i(){return this[o]||T(this,o,Object(r.i)("reactive "+e)),this[o]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return r.e&&r.d&&(t=Object(r.e)(!0)),i.call(this).reportObserved(),r.e&&r.d&&Object(r.d)(t),this[n]},set:function(t){this[R]||O(this[n],t)?T(this,n,t):(T(this,n,t),T(this,I,!0),i.call(this).reportChanged(),T(this,I,!1))}})}var L="function"==typeof Symbol&&Symbol.for,z=L?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&Object(o.forwardRef)((function(t){return null})).$$typeof,B=L?Symbol.for("react.memo"):"function"==typeof o.memo&&Object(o.memo)((function(t){return null})).$$typeof;function U(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),B&&t.$$typeof===B)throw new Error("Mobx observer: You are trying to use 'observer' on function component wrapped to either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(z&&t.$$typeof===z){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(o.forwardRef)((function(){var t=arguments;return Object(o.createElement)(g,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(o.Component,t)?N(t):v(t)}function W(){return(W=Object.assign||function(t){for(var e=1;e0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(42),o=n(52);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(67),o=n(1),i=n(26),a=n(30),s=n(86),u=n(186),c=n(84),l=n(72),f=n(15)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,y,v,m){u(n,e,d);var g,b,_,w=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==y,S=!1,k=t.prototype,T=k[f]||k["@@iterator"]||y&&k[y],C=T||w(y),E=y?O?w("entries"):C:void 0,A="Array"==e&&k.entries||T;if(A&&(_=l(A.call(new t)))!==Object.prototype&&_.next&&(c(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),O&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),r&&!m||!p&&!S&&k[f]||a(k,f,C),s[e]=C,s[x]=h,y)if(g={values:O?C:w("values"),keys:v?C:w("keys"),entries:E},m)for(b in g)b in k||i(k,b,g[b]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,n){var r=n(144),o=n(52);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(12),o=n(51),i=n(15)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(15)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(86),o=n(15)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(21),o=n(65);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(105),o=n(15)("iterator"),i=n(86);t.exports=n(18).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(24),o=n(69),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(73),o=n(191),i=n(86),a=n(31);t.exports=n(142)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(115),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(e=u.lastIndex),r=a.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;on;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(51)(f)?r=function(t){f.nextTick(a(g,t,1))}:y&&y.now?r=function(t){y.now(a(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){"use strict";var r=n(9),o=n(20),i=n(67),a=n(121),s=n(30),u=n(89),c=n(10),l=n(88),f=n(42),p=n(17),h=n(199),d=n(71).f,y=n(21).f,v=n(149),m=n(84),g=r.ArrayBuffer,b=r.DataView,_=r.Math,w=r.RangeError,x=r.Infinity,O=g,S=_.abs,k=_.pow,T=_.floor,C=_.log,E=_.LN2,A=o?"_b":"buffer",j=o?"_l":"byteLength",P=o?"_o":"byteOffset";function D(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,u=(1<>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for((t=S(t))!=t||t===x?(o=t!=t?1:0,r=u):(r=T(C(t)/E),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*p,a}function M(t,e,n){var r,o=8*n-e-1,i=(1<>1,s=o-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-x:x;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function I(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function N(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return D(t,52,8)}function V(t){return D(t,23,4)}function L(t,e,n){y(t.prototype,e,{get:function(){return this[n]}})}function z(t,e,n,r){var o=h(+n);if(o+e>t[j])throw w("Wrong index!");var i=t[A]._b,a=o+t[P],s=i.slice(a,a+e);return r?s:s.reverse()}function B(t,e,n,r,o,i){var a=h(+n);if(a+e>t[j])throw w("Wrong index!");for(var s=t[A]._b,u=a+t[P],c=r(+o),l=0;lH;)(U=$[H++])in g||s(g,U,O[U]);i||(W.constructor=g)}var G=new b(new g(2)),K=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(b.prototype,{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else g=function(t){l(this,g,"ArrayBuffer");var e=h(t);this._b=v.call(new Array(e),0),this[j]=e},b=function(t,e,n){l(this,b,"DataView"),l(t,g,"DataView");var r=t[j],o=f(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:p(n))>r)throw w("Wrong length!");this[A]=t,this[P]=o,this[j]=n},o&&(L(g,"byteLength","_l"),L(b,"buffer","_b"),L(b,"byteLength","_l"),L(b,"byteOffset","_o")),u(b.prototype,{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return I(z(this,4,t,arguments[1]))},getUint32:function(t){return I(z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return M(z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return M(z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){B(this,1,t,R,e)},setUint8:function(t,e){B(this,1,t,R,e)},setInt16:function(t,e){B(this,2,t,N,e,arguments[2])},setUint16:function(t,e){B(this,2,t,N,e,arguments[2])},setInt32:function(t,e){B(this,4,t,F,e,arguments[2])},setUint32:function(t,e){B(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){B(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){B(this,8,t,q,e,arguments[2])}});m(g,"ArrayBuffer"),m(b,"DataView"),s(b.prototype,a.VIEW,!0),e.ArrayBuffer=g,e.DataView=b},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(205)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";t.exports=n(1009)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyOfNext=function(t,e){var n=function t(e){s===Number.MAX_SAFE_INTEGER&&(s=0);return s++,void 0===a[e][s]?s:t(e)}(t);return a[t][n]=i[t].push({id:n,callback:e})-1,n},e.cancelNotifyOfNext=function(t,e){"undefined"!==a[t][e]&&(i[t][a[t][e]].callback=u,delete a[t][e])},e.notifyOfAll=function(t,e){t.forEach((function(t){o[t]=e}))};var r=n(75),o={},i={},a={},s=0;var u=function(){};function c(t){o[t.type](t)}function l(t){if(0!==i[t.type].length){t.persist=u;var e=[],n={};i[t.type].forEach((function(r){"reNotifyOfNext"===r.callback(t)&&(n[r.id]=e.push(r)-1)})),i[t.type]=e,a[t.type]=n}}function f(t){c(t),l(t)}function p(t,e,n,o){i[e]=[],a[e]={},t.addEventListener(e,n,r.passiveEventSupport?{capture:o,passive:"click"!==e}:o)}if(r.deviceHasTouch&&(p(window,"click",c,!0),Object.keys(r.touchEvents).forEach((function(t){p(document,t,"touchstart"===t?f:c,!0)}))),r.deviceHasMouse){Object.keys(r.mouseEvents).forEach((function(t){p(document,t,"mouseenter"===t?f:c,!("mouseenter"===t||"mouseleave"===t))})),p(document,"dragstart",l,!0),r.passiveEventSupport&&p(document,"scroll",l,!0),i.mutation=[],a.mutation={};var h=(0,r.dummyEvent)("mutation");(window.MutationObserver?new MutationObserver(l.bind(null,h)):{observe:function(){}}).observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach((function(t){p(window,t,l,!1)})),p(document,"keydown",c,!0)},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){var r=n(1018);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return s(i(t,e))},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=o.exec(t));){var f=n[0],p=n[1],h=n.index;if(s+=t.slice(a,h),a=h+f.length,p)s+=p[1];else{var d=t[a],y=n[2],v=n[3],m=n[4],g=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=y&&null!=d&&d!==y,x="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,k=m||g;r.push({name:v||i++,prefix:y||"",delimiter:S,optional:O,repeat:x,partial:w,asterisk:!!_,pattern:k?c(k):_?".*":"[^"+u(S)+"]+?"})}}return a{try{return new DOMException("","AbortError")}catch(t){return t.code=20,t.name="AbortError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","UnknownError")}catch(t){return t.name="UnknownError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{if(null===t)return!1;const e=t.length;return e%2!=0?0!==t[Math.floor(e/2)]:t[e/2-1]+t[e/2]!==0}},function(t,e,n){var r=n(1014),o=n(817);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){var r=n(1015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e=10)return t;for(o in t)"string"==typeof t[o]&&0===t[o].indexOf("[%lktxp]")?(i=t[o].substring(8),n.hasOwnProperty(i)&&(t[o]=n[i])):"object"==typeof t[o]&&(t[o]=e.resolveTransformObject(t[o],n,r));return t},resolveTransformParams:function(t,n){var r,o,i=[];if(void 0===n)return t;for(r=0;ro)&&n:r==r&&o!=o||(o!=o||r==r)&&(te)&&(t==e?n:(r=t.toString())<(o=e.toString())||r==o&&n))}function u(t,e,n){var r,o,i,a;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t==t?9:0}switch(e){case void 0:case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=e==e?9:0}if(9!==i||9!==a)return i===a?n:i>a}return r=Number(t),o=Number(e),r==r&&o==o?r>o||!(re||!(t(o=e.toString())||r==o&&n))}function c(t,e,n){return i.aeq(t,e)?0:i.lt(t,e,!1)?n?1:-1:i.gt(t,e,!1)?n?-1:1:0}function l(t,e,n,r,o){var i,a=o||0,s=e[a],u=!1;if("object"==typeof t&&s in t&&(i=t[s]),a+1>=e.length)u=n(i,r);else if(Array.isArray(i))for(var c=0,f=i.length;ce},$jgte:function(t,e){return t>=e},$jlt:function(t,e){return t=e[0]&&t<=e[1]},$in:function(t,e){return-1!==e.indexOf(t)},$nin:function(t,e){return-1===e.indexOf(t)},$keyin:function(t,e){return t in e},$nkeyin:function(t,e){return!(t in e)},$definedin:function(t,e){return void 0!==e[t]},$undefinedin:function(t,e){return void 0===e[t]},$regex:function(t,e){return e.test(t)},$containsString:function(t,e){return"string"==typeof t&&-1!==t.indexOf(e)},$containsNone:function(t,e){return!h.$containsAny(t,e)},$containsAny:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.some(n):n(e))},$contains:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.every(n):n(e))},$elemMatch:function(t,e){return!!Array.isArray(t)&&t.some((function(t){return Object.keys(e).every((function(n){var r=e[n];return"object"==typeof r&&r||(r={$eq:r}),-1!==n.indexOf(".")?l(t,n.split("."),p,e[n]):p(t[n],r)}))}))},$type:function(t,e){var n=typeof t;return"object"===n&&(Array.isArray(t)?n="array":t instanceof Date&&(n="date")),"object"!=typeof e?n===e:p(n,e)},$finite:function(t,e){return e===isFinite(t)},$size:function(t,e){return!!Array.isArray(t)&&("object"!=typeof e?t.length===e:p(t.length,e))},$len:function(t,e){return"string"==typeof t&&("object"!=typeof e?t.length===e:p(t.length,e))},$where:function(t,e){return!0===e(t)},$not:function(t,e){return!p(t,e)},$and:function(t,e){for(var n=0,r=e.length;n=0||"$loki"==s||"meta"==s)o[s]=e[s];else{var u=a(t[s],e[s]);void 0!==u&&u!={}&&(o[s]=u)}}return 0===Object.keys(o).length?void 0:o}return t===e?void 0:e}function s(){r.changes=[]}this.observerCallback=function(e){var n="function"==typeof Set?new Set:[];n.add||(n.add=function(t){return-1===this.indexOf(t)&&this.push(t),this}),e.forEach((function(t){n.add(t.object)})),n.forEach((function(e){if(!t.call(e,"$loki"))return r.removeAutoUpdateObserver(e);try{r.update(e)}catch(t){}}))},this.getChangeDelta=function(t,e){return e?a(e,t):JSON.parse(JSON.stringify(t))},this.getObjectDelta=a,this.getChanges=function(){return r.changes},this.flushChanges=s,this.setChangesApi=function(t){r.disableChangesApi=!t,t||(r.disableDeltaChangesApi=!1)},this.on("delete",(function(t){r.disableChangesApi||r.createChange(r.name,"R",t)})),this.on("warning",(function(t){r.lokiConsoleWrapper.warn(t)})),s()}function T(t){return-1!==t.indexOf(".")}function C(t){return parseFloat(t,10)}function E(t,e){return t+e}function A(t,e){return t-e}function j(t){return t.reduce(E,0)/t.length}function P(t,e,n){if(!1===n)return t[e];for(var r=e.split("."),o=t;r.length>0;)o=o[r.shift()];return o}function D(t,e,n){for(var r,o,i=0,a=t.length;i>1,0===(r=n.apply(null,[e,t[o]])))return{found:!0,index:o};r<0?a=o:i=o+1}return{found:!1,index:a}}function M(t){return function(e,n){return D(e,n,t)}}function I(){}function R(t){this.field=t,this.keyMap={},this.lokiMap={}}function N(t){this.index={},this.field=t}return m.prototype.events={},m.prototype.asyncListeners=!1,m.prototype.on=function(t,e){var n,r=this;return Array.isArray(t)?(t.forEach((function(t){r.on(t,e)})),e):((n=this.events[t])||(n=this.events[t]=[]),n.push(e),e)},m.prototype.emit=function(t){var e=this,n=Array.prototype.slice.call(arguments,1);if(!t||!this.events[t])throw new Error("No event "+t+" defined");this.events[t].forEach((function(t){e.asyncListeners?setTimeout((function(){t.apply(e,n)}),1):t.apply(e,n)}))},m.prototype.addListener=m.prototype.on,m.prototype.removeListener=function(t,e){var n=this;if(Array.isArray(t))t.forEach((function(t){n.removeListener(t,e)}));else if(this.events[t]){var r=this.events[t];r.splice(r.indexOf(e),1)}},g.prototype=new m,g.prototype.constructor=g,g.prototype.getIndexedAdapter=function(){return n(1011)},g.prototype.configureOptions=function(t,e){var n={fs:w,localStorage:x,memory:b};if(this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,void 0!==t){if(this.options=t,this.options.hasOwnProperty("persistenceMethod")&&"function"==typeof n[t.persistenceMethod]&&(this.persistenceMethod=t.persistenceMethod,this.persistenceAdapter=new n[t.persistenceMethod]),this.options.hasOwnProperty("adapter")&&(this.persistenceMethod="adapter",this.persistenceAdapter=t.adapter,this.options.adapter=null,this.isIncremental="incremental"===this.persistenceAdapter.mode),t.autoload&&e){var r=this;setTimeout((function(){r.loadDatabase(t,t.autoloadCallback)}),1)}this.options.hasOwnProperty("autosaveInterval")&&(this.autosaveDisable(),this.autosaveInterval=parseInt(this.options.autosaveInterval,10)),this.options.hasOwnProperty("autosave")&&this.options.autosave&&(this.autosaveDisable(),this.autosave=!0,this.options.hasOwnProperty("autosaveCallback")?this.autosaveEnable(t,t.autosaveCallback):this.autosaveEnable()),this.options.hasOwnProperty("throttledSaves")&&(this.throttledSaves=this.options.throttledSaves)}this.options.hasOwnProperty("serializationMethod")||(this.options.serializationMethod="normal"),this.options.hasOwnProperty("destructureDelimiter")||(this.options.destructureDelimiter="$<\n"),null===this.persistenceAdapter&&(this.persistenceMethod={NODEJS:"fs",BROWSER:"localStorage",CORDOVA:"localStorage",MEMORY:"memory"}[this.ENV],this.persistenceMethod&&(this.persistenceAdapter=new n[this.persistenceMethod]))},g.prototype.copy=function(t){var e,n,r=new g(this.filename,{env:"NA"});if(t=t||{},r.loadJSONObject(this,{retainDirtyFlags:!0}),t.hasOwnProperty("removeNonSerializable")&&!0===t.removeNonSerializable)for(r.autosaveHandle=null,r.persistenceAdapter=null,e=r.collections.length,n=0;n0)throw new Error("disableMeta option cannot be passed as true when ttl is enabled")}for(n=0;n=0)return this.serializeCollection({delimited:t.delimited,delimiter:t.delimiter,collectionIndex:t.partition});for((i=new g(this.filename)).loadJSONObject(this),e=0;er&&(u=!0):(o=JSON.parse(i[s]),n.collections[a].data.push(o)),i[s++]=null;return n},g.prototype.deserializeCollection=function(t,e){var n,r,o=[];for((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.delimited?(o=t.split(e.delimiter)).pop():o=t,r=o.length,n=0;n=i&&(c=!0)),o>=this.options.pageSize&&(l=!0),l&&!c||(u+=this.options.delimiter,o+=a),c||l)return void this.adapter.saveDatabase(r,u,f)},w.prototype.loadDatabase=function(t,e){var n=this;this.fs.stat(t,(function(r,o){!r&&o.isFile()?n.fs.readFile(t,{encoding:"utf8"},(function(t,n){e(t?new Error(t):n)})):e(null)}))},w.prototype.saveDatabase=function(t,e,n){var r=this,o=t+"~";this.fs.writeFile(o,e,(function(e){e?n(new Error(e)):r.fs.rename(o,t,n)}))},w.prototype.deleteDatabase=function(t,e){this.fs.unlink(t,(function(t){t?e(new Error(t)):e()}))},x.prototype.loadDatabase=function(t,e){v()?e(localStorage.getItem(t)):e(new Error("localStorage is not available"))},x.prototype.saveDatabase=function(t,e,n){v()?(localStorage.setItem(t,e),n(null)):n(new Error("localStorage is not available"))},x.prototype.deleteDatabase=function(t,e){v()?(localStorage.removeItem(t),e(null)):e(new Error("localStorage is not available"))},g.prototype.throttledSaveDrain=function(t,e){var n=this,r=(new Date).getTime();if(this.throttledSaves||t(!0),(e=e||{}).hasOwnProperty("recursiveWait")||(e.recursiveWait=!0),e.hasOwnProperty("recursiveWaitLimit")||(e.recursiveWaitLimit=!1),e.hasOwnProperty("recursiveWaitLimitDuration")||(e.recursiveWaitLimitDuration=2e3),e.hasOwnProperty("started")||(e.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!e.recursiveWait)return void this.throttledCallbacks.push(t);this.throttledCallbacks.push((function(){return n.throttledSavePending?e.recursiveWaitLimit&&r-e.started>e.recursiveWaitLimitDuration?void t(!1):void n.throttledSaveDrain(t,e):void t(!0)}))}else t(!0)},g.prototype.loadDatabaseInternal=function(t,e){var n=e||function(t,e){if(t)throw t},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,(function(e){if("string"==typeof e){var o=!1;try{r.loadJSON(e,t||{}),o=!0}catch(t){n(t)}o&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!e)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(e instanceof Error)return void n(e);if("object"==typeof e)return r.loadJSONObject(e,t||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+e)}})):n(new Error("persistenceAdapter not configured"))},g.prototype.loadDatabase=function(t,e){var n=this;this.throttledSaves?this.throttledSaveDrain((function(r){if(r)return n.throttledSavePending=!0,void n.loadDatabaseInternal(t,(function(t){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof e&&e(t)}));"function"==typeof e&&e(new Error("Unable to pause save throttling long enough to read database"))}),t):this.loadDatabaseInternal(t,e)},g.prototype.saveDatabaseInternal=function(t){var e=t||function(t){if(t)throw t},n=this;if(this.persistenceAdapter)if("reference"!==this.persistenceAdapter.mode&&this.autosaveClearFlags(),"incremental"===this.persistenceAdapter.mode){var r=this.copy({removeNonSerializable:!0}),o=this.collections.map((function(t){return t.dirtyIds}));this.collections.forEach((function(t){t.dirtyIds=[]})),this.persistenceAdapter.saveDatabase(this.filename,r,(function(t){t&&n.collections.forEach((function(t,e){t.dirtyIds=t.dirtyIds.concat(o[e])})),e(t)}))}else"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),(function(t){n.autosaveClearFlags(),e(t)})):this.persistenceAdapter.saveDatabase(this.filename,this.serialize(),(function(t){e(t)}));else e(new Error("persistenceAdapter not configured"))},g.prototype.saveDatabase=function(t){if(this.throttledSaves)if(this.throttledSavePending)this.throttledCallbacks.push(t);else{var e=this.throttledCallbacks;this.throttledCallbacks=[],e.unshift(t),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal((function(t){n.throttledSavePending=!1,e.forEach((function(e){"function"==typeof e&&setTimeout((function(){e(t)}),1)})),n.throttledCallbacks.length>0&&n.saveDatabase()}))}else this.saveDatabaseInternal(t)},g.prototype.save=g.prototype.saveDatabase,g.prototype.deleteDatabase=function(t,e){var n=e||function(t,e){if(t)throw t};"function"!=typeof t||e||(n=t),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,(function(t){n(t)})):n(new Error("persistenceAdapter not configured"))},g.prototype.autosaveDirty=function(){for(var t=0;t0&&(this.filteredrows=[]),this.filterInitialized=!1,this},O.prototype.toJSON=function(){var t=this.copy();return t.collection=null,t},O.prototype.limit=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(0,t),e.filterInitialized=!0,e},O.prototype.offset=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(t),e.filterInitialized=!0,e},O.prototype.copy=function(){var t=new O(this.collection);return this.filteredrows.length>0&&(t.filteredrows=this.filteredrows.slice()),t.filterInitialized=this.filterInitialized,t},O.prototype.branch=O.prototype.copy,O.prototype.transform=function(t,n){var r,o,i=this;if("string"==typeof t&&this.collection.transforms.hasOwnProperty(t)&&(t=this.collection.transforms[t]),"object"!=typeof t||!Array.isArray(t))throw new Error("Invalid transform");for(void 0!==n&&(t=e.resolveTransformParams(t,n)),r=0;rn[t]?1:e[t]1)return this.find({$and:m},r)}if(!i||"getAll"===p)return r&&(this.filterInitialized?this.filteredrows=this.filteredrows.slice(0,1):(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0)),this;if("$and"===i||"$or"===i)return this[i](a),r&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===a||"object"!=typeof a||a instanceof Date)u="$eq",c=a;else{if("object"!=typeof a)throw new Error("Do not know what you want to do.");for(f in a)if(t.call(a,f)){u=f,c=a[f];break}}"$regex"!==u&&"object"!=typeof c||(c=function t(e,n){if("$regex"===e)Array.isArray(n)?n=new RegExp(n[0],n[1]):n instanceof RegExp||(n=new RegExp(n));else if("object"==typeof n)for(var r in n)"$regex"!==r&&"object"!=typeof n[r]||(n[r]=t(r,n[r]));return n}(u,c));var b=-1!==i.indexOf(".");!this.filterInitialized&&this.collection.binaryIndices[i]&&d[u]&&(!0!==this.collection.adaptiveBinaryIndices&&this.collection.ensureIndex(i),y=!0,g=this.collection.binaryIndices[i]);var _,w=h[u],x=this.collection.data,O=0,S=0,k=0;if(this.filterInitialized){if(S=(_=this.filteredrows).length,b){for(i=i.split("."),O=0;O=0?(this.filterPipeline[e]=t,this.reapplyFilters()):(this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(t),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent(),this)},S.prototype.applyFind=function(t,e){return this.applyFilter({type:"find",val:t,uid:e}),this},S.prototype.applyWhere=function(t,e){return this.applyFilter({type:"where",val:t,uid:e}),this},S.prototype.removeFilter=function(t){var e=this._indexOfFilterWithId(t);if(e<0)throw new Error("Dynamic view does not contain a filter with ID: "+t);return this.filterPipeline.splice(e,1),this.reapplyFilters(),this},S.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},S.prototype.data=function(t){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(t)},S.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var t=this;setTimeout((function(){t.rebuildPending&&(t.rebuildPending=!1,t.emit("rebuild",t))}),this.options.minRebuildInterval)}},S.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var t=this;"active"===this.options.sortPriority?setTimeout((function(){t.performSortPhase()}),this.options.minRebuildInterval):this.queueRebuildEvent()}},S.prototype.performSortPhase=function(t){(this.sortDirty||this.resultsdirty)&&(t=t||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria?this.resultset.compoundsort(this.sortCriteria):this.sortCriteriaSimple&&this.resultset.simplesort(this.sortCriteriaSimple.propname,this.sortCriteriaSimple.options),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),t.suppressRebuildEvent||this.emit("rebuild",this))},S.prototype.evaluateDocument=function(t,e){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var n,r=this.resultset.filteredrows,o=e?-1:r.indexOf(+t),i=r.length,a=new O(this.collection);a.filteredrows=[t],a.filterInitialized=!0;for(var s=0,u=this.filterPipeline.length;s0&&(this.resultset.filteredrows=this.resultset.filteredrows.filter((function(t,e){return!i[e]})),this.options.persistent&&(this.resultdata=this.resultdata.filter((function(t,e){return!i[e]}))),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var l=function(t){return function(e){return e1)&&(n.randomSamplingFactor=.1);var r,o,i,a,s,u=!0;if(!this.binaryIndices.hasOwnProperty(t))throw new Error("called checkIndex on property without an index: "+t);if(this.adaptiveBinaryIndices||this.ensureIndex(t),(a=(s=this.binaryIndices[t].values).length)!==this.data.length)return n.repair&&this.ensureIndex(t,!0),!1;if(0===a)return!0;var c=-1!==t.indexOf(".");if(1===a)u=0===s[0];else if(n.randomSampling){if(h.$lte(e.getIn(this.data[s[0]],t,c),e.getIn(this.data[s[1]],t,c))||(u=!1),h.$lte(e.getIn(this.data[s[a-2]],t,c),e.getIn(this.data[s[a-1]],t,c))||(u=!1),u)for(o=Math.floor((a-1)*n.randomSamplingFactor),r=0;r0)&&(this.adaptiveBinaryIndices=!1);try{for(r=0;r0,l=this;try{for(this.startTransaction(),r=0;r0||s>0||u>0){if(e>0)for(n=0;n1)for(r=0;r>1;if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))throw new TypeError("Passed id is not an integer");for(;r[i]>1]p[i];i++)u++;l.values[o]-=u}return}t=t[0]}if(null===(c=this.getBinaryIndexPosition(t,e)))return null;if(l.values.splice(c,1),!0!==n)for(r=l.values.length,o=0;ot&&l.values[o]--},k.prototype.calculateRangeStart=function(t,n,r,o){var a=this.data,s=this.binaryIndices[t].values,u=0,c=s.length-1,l=0;if(0===s.length)return-1;for(e.getIn(a[s[u]],t,o),e.getIn(a[s[c]],t,o);u>1,i.lt(e.getIn(a[s[l]],t,o),n,!1)?u=l+1:c=l;var f=u;return i.aeq(n,e.getIn(a[s[f]],t,o))?f:i.lt(n,e.getIn(a[s[f]],t,o),!1)?r?f:f-1:r?f+1:f},k.prototype.calculateRangeEnd=function(t,n,r){var o=this.data,a=this.binaryIndices[t].values,s=0,u=a.length-1,c=0;if(0===a.length)return-1;for(e.getIn(o[a[s]],t,r),e.getIn(o[a[u]],t,r);s>1,i.lt(n,e.getIn(o[a[c]],t,r),!1)?u=c:s=c+1;var l=u;return i.aeq(n,e.getIn(o[a[l]],t,r))?l:i.gt(n,e.getIn(o[a[l]],t,r),!1)?l+1:i.aeq(n,e.getIn(o[a[l-1]],t,r))?l-1:l},k.prototype.calculateRange=function(t,n,r){var o,a,s,u=this.data,c=this.binaryIndices[n].values,l=c.length-1;if(0===u.length)return[0,-1];var f=-1!==n.indexOf("."),p=e.getIn(u[c[0]],n,f),h=e.getIn(u[c[l]],n,f);switch(t){case"$eq":case"$aeq":case"$dteq":if(i.lt(r,p,!1)||i.gt(r,h,!1))return[0,-1];break;case"$gt":if(i.gt(r,h,!0))return[0,-1];if(i.gt(p,r,!1))return[0,l];break;case"$gte":if(i.gt(r,h,!1))return[0,-1];if(i.gt(p,r,!0))return[0,l];break;case"$lt":if(i.lt(r,p,!0))return[0,-1];if(i.lt(h,r,!1))return[0,l];break;case"$lte":if(i.lt(r,p,!1))return[0,-1];if(i.lt(h,r,!0))return[0,l];break;case"$between":return i.gt(r[0],h,!1)||i.lt(r[1],p,!1)?[0,-1]:((o=this.calculateRangeStart(n,r[0],!1,f))<0&&o++,(s=this.calculateRangeEnd(n,r[1],f))>l&&s--,i.gt(e.getIn(u[c[o]],n,f),r[0],!0)||o++,i.lt(e.getIn(u[c[s]],n,f),r[1],!0)||s--,sP(this.data[n],t,o)&&(e=P(this.data[n],t,o),i.index=this.data[n].$loki):(e=P(this.data[n],t,o),i.index=this.data[n].$loki);return i.value=e,i},k.prototype.extractNumerical=function(t){return this.extract(t).map(C).filter(Number).filter((function(t){return!isNaN(t)}))},k.prototype.avg=function(t){return j(this.extractNumerical(t))},k.prototype.stdDev=function(t){return e=this.extractNumerical(t),n=j(e),r=j(e.map((function(t){var e=t-n;return e*e}))),Math.sqrt(r);var e,n,r},k.prototype.mode=function(t){var e,n,r,o={},i=this.extract(t);for(n in i.forEach((function(t){o[t]?o[t]+=1:o[t]=1})),o)e?ee?1:0},setSort:function(t){this.bs=new M(t)},bs:function(){return new M(this.sort)},set:function(t,e){var n=this.bs(this.keys,t);n.found?this.values[n.index]=e:(this.keys.splice(n.index,0,t),this.values.splice(n.index,0,e))},get:function(t){return this.values[D(this.keys,t,this.sort).index]}},R.prototype.keyMap={},R.prototype.lokiMap={},R.prototype.set=function(t){var e=t[this.field];if(null!=e){if(this.keyMap[e])throw new Error("Duplicate key for property "+this.field+": "+e);this.keyMap[e]=t,this.lokiMap[t.$loki]=e}},R.prototype.get=function(t){return this.keyMap[t]},R.prototype.byId=function(t){return this.keyMap[this.lokiMap[t]]},R.prototype.update=function(t,e){if(this.lokiMap[t.$loki]!==e[this.field]){var n=this.lokiMap[t.$loki];this.set(e),this.keyMap[n]=void 0}else this.keyMap[t[this.field]]=e},R.prototype.remove=function(t){var e=this.keyMap[t];if(null==e)throw new Error("Key is not in unique index: "+this.field);this.keyMap[t]=void 0,this.lokiMap[e.$loki]=void 0},R.prototype.clear=function(){this.keyMap={},this.lokiMap={}},N.prototype={set:function(t,e){this.index[t]?this.index[t].push(e):this.index[t]=[e]},remove:function(t,e){var n=this.index[t];for(var r in n)n[r]==e&&n.splice(r,1);n.length<1&&(this.index[t]=void 0)},get:function(t){return this.index[t]},clear:function(t){this.index={}}},g.LokiOps=h,g.Collection=k,g.KeyValueStore=I,g.LokiMemoryAdapter=b,g.LokiPartitioningAdapter=_,g.LokiLocalStorageAdapter=x,g.LokiFsAdapter=w,g.persistenceAdapters={fs:w,localStorage:x},g.aeq=a,g.lt=s,g.gt=u,g.Comparators=i,g}()})?i.apply(e,a):i)||(t.exports=s)}).call(this,n(159),n(206))},,function(t,e,n){t.exports=!n(20)&&!n(10)((function(){return 7!=Object.defineProperty(n(130)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(9),o=n(18),i=n(67),a=n(131),s=n(21).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(29),o=n(31),i=n(111)(!1),a=n(132)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(21),o=n(11),i=n(68);t.exports=n(20)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(31),o=n(71).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(20),o=n(68),i=n(112),a=n(104),s=n(24),u=n(103),c=Object.assign;t.exports=!c||n(10)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,p=a.f;c>l;)for(var h,d=u(arguments[l++]),y=f?o(d).concat(f(d)):o(d),v=y.length,m=0;v>m;)h=y[m++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(41),o=n(12),i=n(180),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(9).parseFloat,o=n(85).trim;t.exports=1/r(n(136)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(51);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(12),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(70),o=n(65),i=n(84),a={};n(30)(a,n(15)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(11);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(914);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(41),o=n(24),i=n(103),a=n(17);t.exports=function(t,e,n,s,u){r(e);var c=o(t),l=i(c),f=a(c.length),p=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(p in l){s=l[p],p+=h;break}if(p+=h,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=h)p in l&&(s=e(s,l[p],p,c));return s}},function(t,e,n){"use strict";var r=n(24),o=n(69),i=n(17);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),s=o(t,a),u=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(151);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(20)&&"g"!=/./g.flags&&n(21).f(RegExp.prototype,"flags",{configurable:!0,get:n(115)})},function(t,e,n){"use strict";var r,o,i,a,s=n(67),u=n(9),c=n(40),l=n(105),f=n(1),p=n(12),h=n(41),d=n(88),y=n(118),v=n(106),m=n(153).set,g=n(934)(),b=n(195),_=n(935),w=n(119),x=n(196),O=u.TypeError,S=u.process,k=S&&S.versions,T=k&&k.v8||"",C=u.Promise,E="process"==l(S),A=function(){},j=o=b.f,P=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n(15)("species")]=function(t){t(A,A)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(O("Promise-chain cycle")):(i=D(n))?i.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){m.call(u,(function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=_((function(){E?S.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=E||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,(function(){var e;E?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=D(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,M(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};P||(C=function(t){d(this,C,"Promise","_h"),h(t),r.call(this);try{t(c(q,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(C.prototype,{then:function(t,e){var n=j(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(F,t,1)},b.f=j=function(t){return t===C||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!P,{Promise:C}),n(84)(C,"Promise"),n(87)("Promise"),a=n(18).Promise,f(f.S+f.F*!P,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!P),"Promise",{resolve:function(t){return x(s&&this===a?C:this,t)}}),f(f.S+f.F*!(P&&n(114)((function(t){C.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;y(t,!1,(function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,o=_((function(){y(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(41);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(11),o=n(12),i=n(195);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(21).f,o=n(70),i=n(89),a=n(40),s=n(88),u=n(118),c=n(142),l=n(191),f=n(87),p=n(20),h=n(57).fastKey,d=n(74),y=p?"_s":"size",v=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,null!=r&&u(r,n,t[c],t)}));return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[y]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return d(this,e)[y]}}),l},def:function(t,e,n){var r,o,i=v(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[y]++,"F"!==o&&(t._i[o]=i)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(89),o=n(57).getWeak,i=n(11),a=n(12),s=n(88),u=n(118),c=n(45),l=n(29),f=n(74),p=c(5),h=c(6),d=0,y=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},m=function(t,e){return p(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?y(t).set(e,n):r[t._i]=n,t},ufstore:y}},function(t,e,n){var r=n(42),o=n(17);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(71),o=n(112),i=n(11),a=n(9).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(17),o=n(138),i=n(52);t.exports=function(t,e,n,a){var s=String(i(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,p=o.call(c,Math.ceil(f/c.length));return p.length>f&&(p=p.slice(0,f)),a?p+s:s+p}},function(t,e,n){var r=n(20),o=n(68),i=n(31),a=n(104).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function l(){}function f(){}function p(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(O([])));y&&y!==e&&n.call(y,o)&&(h=y);var v=p.prototype=l.prototype=Object.create(h);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n(e,n,r)=>{const o=[];for(let t=0;t(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},o=(t,e,n,o,i,a)=>class extends t{constructor(t,n=r){const s=i(t),u={...r,...n},c=o(s,u);super(t,!1,c,a(s)?e():null),this._nativeAnalyserNode=c}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(t){this._nativeAnalyserNode.fftSize=t}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(t){const e=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=t,!(t>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=e,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(t){const e=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=t,!(this._nativeAnalyserNode.maxDecibels>t))throw this._nativeAnalyserNode.minDecibels=e,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(t){this._nativeAnalyserNode.smoothingTimeConstant=t}getByteFrequencyData(t){this._nativeAnalyserNode.getByteFrequencyData(t)}getByteTimeDomainData(t){this._nativeAnalyserNode.getByteTimeDomainData(t)}getFloatFrequencyData(t){this._nativeAnalyserNode.getFloatFrequencyData(t)}getFloatTimeDomainData(t){this._nativeAnalyserNode.getFloatTimeDomainData(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,fftSize:u.fftSize,maxDecibels:u.maxDecibels,minDecibels:u.minDecibels,smoothingTimeConstant:u.smoothingTimeConstant};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(95),o=n(90);const i={numberOfChannels:1},a=(t,e,n,a,s,u,c,l)=>{let f=null;return class p{constructor(p){if(null===s)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:y}={...i,...p};null===f&&(f=new s(1,1,44100));const v=null!==a&&e(u,u)?new a({length:h,numberOfChannels:d,sampleRate:y}):f.createBuffer(d,h,y);if(0===v.numberOfChannels)throw n();return"function"!=typeof v.copyFromChannel?(c(v),Object(o.a)(v)):e(r.a,()=>Object(r.a)(v))||l(v),t.add(v),v}static[Symbol.hasInstance](e){return null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)===p.prototype||t.has(e)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(46),i=n(59);const a={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},s=(t,e,n,s,u,c,l,f)=>class extends t{constructor(t,o=a){const i=c(t),s={...a,...o},f=u(i,s),p=l(i),h=p?e():null;super(t,!1,f,h),this._audioBufferSourceNodeRenderer=h,this._isBufferNullified=!1,this._isBufferSet=null!==o.buffer&&void 0!==o.buffer,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=n(this,p,f.playbackRate,r.b,r.a)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(t){try{this._nativeAudioBufferSourceNode.buffer=t}catch(e){if(null!==t||17!==e.code)throw e;if(null!==this._nativeAudioBufferSourceNode.buffer){const t=this._nativeAudioBufferSourceNode.buffer,e=t.numberOfChannels;for(let n=0;n{this._nativeAudioBufferSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeAudioBufferSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeAudioBufferSourceNode.stop(t),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={buffer:p.buffer,channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,loop:p.loop,loopEnd:p.loopEnd,loopStart:p.loopStart,playbackRate:p.playbackRate.value};p=e(l,t),null!==s&&p.start(...s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.playbackRate,p.playbackRate,f):await o(l,c.playbackRate,p.playbackRate,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(123);const o=(t,e,n,o,i,a,s,u)=>class extends t{constructor(t={}){if(null===u)throw new Error("Missing the native AudioContext constructor.");const e=new u(t);if(null===e)throw o();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&e.sampleRate!==t.sampleRate)throw n();super(e,2);const{latencyHint:i}=t,{sampleRate:a}=e;if(this._baseLatency="number"==typeof e.baseLatency?e.baseLatency:"balanced"===i?512/a:"interactive"===i||void 0===i?256/a:"playback"===i?1024/a:128*Math.max(2,Math.min(128,Math.round(i*a/128)))/a,this._nativeAudioContext=e,this._state=null,"running"===e.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),e.removeEventListener("statechange",t)};e.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw e()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}createMediaElementSource(t){return new i(this,{mediaElement:t})}createMediaStreamSource(t){return new a(this,{mediaStream:t})}createMediaStreamTrackSource(t){return new s(this,{mediaStreamTrack:t})}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(t=>{if(void 0===t||15===t.code)throw e();throw t})}suspend(){return this._nativeAudioContext.suspend().catch(t=>{if(void 0===t)throw e();throw t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s)=>class extends t{constructor(t,n){const r=i(t),u=a(r),c=o(r,n,u);super(t,!1,c,u?e(s):null),this._isNodeOfNativeOfflineAudioContext=u,this._nativeAudioDestinationNode=c}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(t>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=t}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=t}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{let e=null;return{render:(n,r,o)=>(null===e&&(e=(async(e,n,r)=>{const o=n.destination;return await t(e,n,o,r),o})(n,r,o)),e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const o=(t,e,n,o,i)=>(a,s)=>{const u=s.listener,{forwardX:c,forwardY:l,forwardZ:f,positionX:p,positionY:h,positionZ:d,upX:y,upY:v,upZ:m}=void 0===u.forwardX?(()=>{const c=e(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),l=i(s),f=o(s,256,9,0),p=(e,o)=>{const i=n(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:o});return i.connect(c,0,e),i.start(),Object.defineProperty(i.offset,"defaultValue",{get:()=>o}),t({context:a},l,i.offset,r.b,r.a)};let h=[0,0,-1,0,1,0],d=[0,0,0];return f.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0],t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];e.some((t,e)=>t!==h[e])&&(u.setOrientation(...e),h=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==d[e])&&(u.setPosition(...n),d=n)},c.connect(f),{forwardX:p(0,0),forwardY:p(1,0),forwardZ:p(2,-1),positionX:p(6,0),positionY:p(7,0),positionZ:p(8,0),upX:p(3,0),upY:p(4,1),upZ:p(5,0)}})():u;return{get forwardX(){return c},get forwardY(){return l},get forwardZ(){return f},get positionX(){return p},get positionY(){return h},get positionZ(){return d},get upX(){return y},get upY(){return v},get upZ(){return m}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(49);const o=(t,e,n,o,i,a,s,u,c,l,f,p)=>(h,d,y,v=null,m=null)=>{const g=new r.AutomationEventList(y.defaultValue),b=d?o(g):null,_={get defaultValue(){return y.defaultValue},get maxValue(){return null===v?y.maxValue:v},get minValue(){return null===m?y.minValue:m},get value(){return y.value},set value(t){y.value=t,_.setValueAtTime(t,h.context.currentTime)},cancelAndHoldAtTime(t){if("function"==typeof y.cancelAndHoldAtTime)null===b&&g.flush(h.context.currentTime),g.add(i(t)),y.cancelAndHoldAtTime(t);else{const e=Array.from(g).pop();null===b&&g.flush(h.context.currentTime),g.add(i(t));const n=Array.from(g).pop();y.cancelScheduledValues(t),e!==n&&void 0!==n&&("exponentialRampToValue"===n.type?y.exponentialRampToValueAtTime(n.value,n.endTime):"linearRampToValue"===n.type?y.linearRampToValueAtTime(n.value,n.endTime):"setValue"===n.type?y.setValueAtTime(n.value,n.startTime):"setValueCurve"===n.type&&y.setValueCurveAtTime(n.values,n.startTime,n.duration))}return _},cancelScheduledValues:t=>(null===b&&g.flush(h.context.currentTime),g.add(a(t)),y.cancelScheduledValues(t),_),exponentialRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(s(t,e)),y.exponentialRampToValueAtTime(t,e),_),linearRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(u(t,e)),y.linearRampToValueAtTime(t,e),_),setTargetAtTime:(t,e,n)=>(null===b&&g.flush(h.context.currentTime),g.add(c(t,e,n)),y.setTargetAtTime(t,e,n),_),setValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(l(t,e)),y.setValueAtTime(t,e),_),setValueCurveAtTime(t,e,n){if(null!==p&&"webkitAudioContext"===p.name){const r=e+n,o=h.context.sampleRate,i=Math.ceil(e*o),a=Math.floor(r*o),s=a-i,u=new Float32Array(s);for(let r=0;r({replay(e){for(const n of t)if("exponentialRampToValue"===n.type){const{endTime:t,value:r}=n;e.exponentialRampToValueAtTime(r,t)}else if("linearRampToValue"===n.type){const{endTime:t,value:r}=n;e.linearRampToValueAtTime(r,t)}else if("setTarget"===n.type){const{startTime:t,target:r,timeConstant:o}=n;e.setTargetAtTime(r,t,o)}else if("setValue"===n.type){const{startTime:t,value:r}=n;e.setValueAtTime(r,t)}else{if("setValueCurve"!==n.type)throw new Error("Can't apply an unknown automation.");{const{duration:t,startTime:r,values:o}=n;e.setValueCurveAtTime(o,r,t)}}}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),o=n(124);const i={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,outputChannelCount:void 0,parameterData:{},processorOptions:{}},a=t=>{const e=[];for(let n=0;nclass extends t{constructor(t,p,h=i){const d=c(t),y=l(d),v=(t=>({...t,outputChannelCount:void 0!==t.outputChannelCount?t.outputChannelCount:1===t.numberOfInputs&&1===t.numberOfOutputs?[t.channelCount]:a(t.numberOfOutputs)}))({...i,...h}),m=r.j.get(d),g=void 0===m?void 0:m.get(p),b=s(d,y?null:t.baseLatency,f,p,g,v);super(t,!0,b,y?n(p,v,g):null);const _=[];if(b.parameters.forEach((t,n)=>{const r=e(this,y,t);_.push([n,r])}),this._nativeAudioWorkletNode=b,this._numberOfOutputs=0===h.numberOfOutputs?0:this._nativeAudioWorkletNode.numberOfOutputs,this._onprocessorerror=null,this._parameters=new o.a(_),"closed"!==t.state){const e=new u(t,{gain:0});try{this.connect(e).connect(t.destination)}catch(t){if("IndexSizeError"!==t.name)throw t}}}get numberOfOutputs(){return this._numberOfOutputs}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(t){const e="function"==typeof t?p(this,t):null;this._nativeAudioWorkletNode.onprocessorerror=e;const n=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=null!==n&&n===e?t:n}get parameters(){return null===this._parameters?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l,f,p,h,d,y,v,m,g,b)=>class extends d{constructor(e,n){super(e,n),this._nativeContext=e,this._audioWorklet=void 0===t?void 0:{addModule:(e,n)=>t(this,e,n)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new o(this)}createBuffer(t,e,r){return new n({length:e,numberOfChannels:t,sampleRate:r})}createBufferSource(){return new r(this)}createChannelMerger(t=6){return new i(this,{numberOfInputs:t})}createChannelSplitter(t=6){return new a(this,{numberOfOutputs:t})}createConstantSource(){return new s(this)}createConvolver(){return new u(this)}createDelay(t=1){return new l(this,{maxDelayTime:t})}createDynamicsCompressor(){return new f(this)}createGain(){return new p(this)}createIIRFilter(t,e){return new h(this,{feedback:e,feedforward:t})}createOscillator(){return new y(this)}createPanner(){return new v(this)}createPeriodicWave(t,e,n={disableNormalization:!1}){return new m(this,{...n,imag:e,real:t})}createStereoPanner(){return new g(this)}createWaveShaper(){return new b(this)}decodeAudioData(t,e,n){return c(this._nativeContext,t).then(t=>("function"==typeof e&&e(t),t)).catch(t=>{throw"function"==typeof n&&n(t),t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},i=(t,e,n,i,a,s,u)=>class extends t{constructor(t,i=o){const c=s(t),l={...o,...i},f=a(c,l),p=u(c);super(t,!1,f,p?n():null),this._Q=e(this,p,f.Q,r.b,r.a),this._detune=e(this,p,f.detune,1200*Math.log2(r.b),-1200*Math.log2(r.b)),this._frequency=e(this,p,f.frequency,t.sampleRate/2,0),this._gain=e(this,p,f.gain,40*Math.log10(r.b),-40*Math.log10(r.b)),this._nativeBiquadFilterNode=f}get Q(){return this._Q}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get type(){return this._nativeBiquadFilterNode.type}set type(t){this._nativeBiquadFilterNode.type=t}getFrequencyResponse(t,e,n){if(this._nativeBiquadFilterNode.getFrequencyResponse(t,e,n),t.length!==e.length||e.length!==n.length)throw i()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(u,t)}return a.set(u,l),f?(await t(u,s.Q,l.Q,c),await t(u,s.detune,l.detune,c),await t(u,s.frequency,l.frequency,c),await t(u,s.gain,l.gain,c)):(await o(u,s.Q,l.Q,c),await o(u,s.detune,l.detune,c),await o(u,s.frequency,l.frequency,c),await o(u,s.gain,l.gain,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r)=>{const o=e.get(n);if(void 0!==o)return o;const i=t.get(n);if(void 0!==i)return i;try{const o=r();return o instanceof Promise?(t.set(n,o),o.catch(()=>!1).then(r=>(t.delete(n),e.set(n,r),r))):(e.set(n,o),o)}catch(t){return e.set(n,!1),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a};super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfInputs:u.numberOfInputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...r,...a});super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfOutputs:u.numberOfOutputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(n,e,r,o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(78);const o=t=>(e,n,o=0,i=0)=>{const a=e[o];if(void 0===a)throw t();return Object(r.a)(n)?a.connect(n,0,i):a.connect(n,0)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e),o=e.createBuffer(1,2,e.sampleRate);return r.buffer=o,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(46),i=n(59);const a={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},s=(t,e,n,s,u,c,l)=>class extends t{constructor(t,o=a){const i=u(t),l={...a,...o},f=s(i,l),p=c(i),h=p?n():null;super(t,!1,f,h),this._constantSourceNodeRenderer=h,this._nativeConstantSourceNode=f,this._offset=e(this,p,f.offset,r.b,r.a),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeConstantSourceNode.onended=e;const n=this._nativeConstantSourceNode.onended;this._onended=null!==n&&n===e?t:n}start(t=0){if(this._nativeConstantSourceNode.start(t),null!==this._constantSourceNodeRenderer)this._constantSourceNodeRenderer.start=t;else{Object(o.a)(this);const t=()=>{this._nativeConstantSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeConstantSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeConstantSourceNode.stop(t),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,offset:p.offset.value};p=e(l,t),null!==s&&p.start(s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.offset,p.offset,f):await o(l,c.offset,p.offset,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>(t[0]=e,t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a},c=n(s,u);super(t,!1,c,i(s)?e():null),this._isBufferNullified=!1,this._nativeConvolverNode=c}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(t){if(this._nativeConvolverNode.buffer=t,null===t&&null!==this._nativeConvolverNode.buffer){const t=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=t.createBuffer(1,1,t.sampleRate),this._isBufferNullified=!0}else this._isBufferNullified=!1}get normalize(){return this._nativeConvolverNode.normalize}set normalize(t){this._nativeConvolverNode.normalize=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,o)}catch(e){if("IndexSizeError"===e.name||"SyntaxError"===e.name)throw t();throw e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","DataCloneError")}catch(t){return t.code=25,t.name="DataCloneError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(61);const o=(t,e,n,o,i,a,s,u)=>(c,l)=>{const f=e.get(c);if(void 0===f)throw new Error("Missing the expected cycle count.");const p=a(c.context),h=u(p);if(f===l){if(e.delete(c),!h&&s(c)){const e=o(c),{outputs:a}=n(c);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);t(e,r,n[1],n[2])}else{const t=i(n[0]);e.connect(t,n[1])}}}else e.set(c,f-l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=o(u,c),f=a(u);super(t,!1,l,f?n(c.maxDelayTime):null),this._delayTime=e(this,f,l.delayTime,c.maxDelayTime,0)}get delayTime(){return this._delayTime}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>a=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(r.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,delayTime:f.delayTime.value,maxDelayTime:a};f=e(c,t)}return s.set(c,f),p?await t(c,u.delayTime,f.delayTime,l):await o(c,u.delayTime,f.delayTime,l),await i(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(78);const o=(t,e,n)=>{const r=e[n];if(void 0===r)throw t();return r},i=t=>(e,n,i,a=0)=>void 0===n?e.forEach(t=>t.disconnect()):"number"==typeof n?o(t,e,n).disconnect():Object(r.a)(n)?void 0===i?e.forEach(t=>t.disconnect(n)):void 0===a?o(t,e,i).disconnect(n,0):o(t,e,i).disconnect(n,0,a):void 0===i?e.forEach(t=>t.disconnect(n)):o(t,e,i).disconnect(n,0)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},o=(t,e,n,o,i,a,s)=>class extends t{constructor(t,i=r){const u=a(t),c={...r,...i},l=o(u,c),f=s(u);super(t,!1,l,f?n():null),this._attack=e(this,f,l.attack,1,0),this._knee=e(this,f,l.knee,40,0),this._nativeDynamicsCompressorNode=l,this._ratio=e(this,f,l.ratio,20,1),this._release=e(this,f,l.release,1,0),this._threshold=e(this,f,l.threshold,0,-100)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(t){const e=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=t,t>2)throw this._nativeDynamicsCompressorNode.channelCount=e,i()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(t){const e=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=t,"max"===t)throw this._nativeDynamicsCompressorNode.channelCountMode=e,i()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(u,t)}return a.set(u,l),f?(await t(u,s.attack,l.attack,c),await t(u,s.knee,l.knee,c),await t(u,s.ratio,l.ratio,c),await t(u,s.release,l.release,c),await t(u,s.threshold,l.threshold,c)):(await o(u,s.attack,l.attack,c),await o(u,s.knee,l.knee,c),await o(u,s.ratio,l.ratio,c),await o(u,s.release,l.release,c),await o(u,s.threshold,l.threshold,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","EncodingError")}catch(t){return t.code=0,t.name="EncodingError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>new Promise((n,r)=>{if(null===t)return void r(new SyntaxError);const o=t.document.head;if(null===o)r(new SyntaxError);else{const i=t.document.createElement("script"),a=new Blob([e],{type:"application/javascript"}),s=URL.createObjectURL(a),u=t.onerror,c=()=>{t.onerror=u,URL.revokeObjectURL(s)};t.onerror=(t,e,n,o,i)=>e===s||e===location.href&&1===n&&1===o?(c(),r(i),!1):null!==u?u(t,e,n,o,i):void 0,i.onerror=()=>{c(),r(new SyntaxError)},i.onload=()=>{c(),n()},i.src=s,i.type="module",o.appendChild(i)}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(e,n,r){if(null!==n){let o=this._listeners.get(n);void 0===o&&(o=t(this,n),"function"==typeof n&&this._listeners.set(n,o)),this._nativeEventTarget.addEventListener(e,o,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,e,n){const r=null===e?void 0:this._listeners.get(e);this._nativeEventTarget.removeEventListener(t,void 0===r?null:r,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(e*n)},currentTime:{configurable:!0,get:()=>e}});try{return r()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>async e=>{try{const t=await fetch(e);if(t.ok)return t.text()}catch(t){}throw t()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=i(c,l),p=s(c);super(t,!1,f,p?n():null),this._gain=e(this,p,f.gain,r.b,r.a)}get gain(){return this._gain}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(u,t)}return a.set(u,l),f?await t(u,s.gain,l.gain,c):await o(u,s.gain,l.gain,c),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n)=>o=>{if("closed"===o.state&&null!==e&&"webkitAudioContext"!==e.name){if(!t(o)){const t=r.f.get(o);if(void 0!==t)return t;const n=new e;return r.f.set(o,n),n}{const t=r.f.get(o);if(void 0!==t)return t;if(null!==n){const t=new n(1,1,44100);return r.f.set(o,t),t}}}return null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14);const o=t=>e=>{const n=t.get(e);if(void 0===n)throw Object(r.a)();return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(126),o=n(6);const i=(t,e,n,i,a,s)=>(u,c)=>{const l=new WeakMap;let f=null;const p=async(p,h,d)=>{let y=n(p),v=null;const m=Object(o.a)(y,h);if(void 0===h.createIIRFilter?v=t(h):m||(y=e(h,t=>t.createIIRFilter(c,u))),l.set(h,null===v?y:v),null!==v){if(null===f){if(null===i)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new i(p.context.destination.channelCount,p.context.length,h.sampleRate);f=(async()=>(await a(p,t,t.destination,d),((t,e,n,o)=>{const i=n.length,a=o.length,s=Math.min(i,a);if(1!==n[0]){for(let t=0;ts=>(u,c)=>{const l=t.get(u);if(void 0===l){if(!s&&a(u)){const t=o(u),{outputs:a}=n(u);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);e(t,r,n[1],n[2])}else{const e=i(n[0]);t.disconnect(e,n[1])}}t.set(u,c)}else t.set(u,l+c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioNode&&e instanceof t.AudioNode},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioParam&&e instanceof t.AudioParam},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null!==t&&t.isSecureContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=async(t,e,n,r,o,i,a,s,u,c,l,f,p)=>{if(t(e,e)&&t(n,n)&&t(o,o)&&t(i,i)&&t(s,s)&&t(u,u)&&t(c,c)&&t(l,l)){return(await Promise.all([t(r,r),t(a,a),t(f,f),t(p,p)])).every(t=>t)}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>class extends t{constructor(t,i){const a=r(t);if(o(a))throw n();const s=e(a,i);super(t,!0,s,null),this._mediaElement=i.mediaElement,this._nativeMediaElementAudioSourceNode=s}get mediaElement(){return void 0===this._nativeMediaElementAudioSourceNode.mediaElement?this._mediaElement:this._nativeMediaElementAudioSourceNode.mediaElement}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>class extends t{constructor(t,i){const a=r(t);if(o(a))throw n();const s=e(a,i);super(t,!0,s,null),this._nativeMediaStreamAudioSourceNode=s}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>class extends t{constructor(t,i){const a=r(t);if(o(a))throw n();super(t,!0,e(a,i),null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(123);const o=(t,e,n,o,i)=>class extends o{constructor(t={}){if(null===i)throw new Error("Missing the native AudioContext constructor.");const o=new i(t);if(null===o)throw n();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&o.sampleRate!==t.sampleRate)throw e();super(o,2);const{latencyHint:a}=t,{sampleRate:s}=o;if(this._baseLatency="number"==typeof o.baseLatency?o.baseLatency:"balanced"===a?512/s:"interactive"===a||void 0===a?256/s:"playback"===a?1024/s:128*Math.max(2,Math.min(128,Math.round(a*s/128)))/s,this._nativeAudioContext=o,this._state=null,"running"===o.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),o.removeEventListener("statechange",t)};o.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw t()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(e=>{if(void 0===e||15===e.code)throw t();throw e})}suspend(){return this._nativeAudioContext.suspend().catch(e=>{if(void 0===e)throw t();throw e})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n,o)=>class extends n{constructor(n,o){super(n),this._nativeContext=n,r.g.set(this,n);const i=n.sampleRate;Object.defineProperty(n,"sampleRate",{get:()=>i}),this._destination=new t(this,o),this._listener=e(this,n),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(t){const e="function"==typeof t?o(this,t):null;this._nativeContext.onstatechange=e;const n=this._nativeContext.onstatechange;this._onstatechange=null!==n&&n===e?t:n}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(36);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends i{constructor(e){const{length:i,numberOfChannels:a,sampleRate:s}={...o,...e},u=n(a,i,s);t(r.a,()=>Object(r.a)(u))||u.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(u.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(u,a),this._length=i,this._nativeOfflineAudioContext=u,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(e()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=new Set;var a,s;return n.connect=(a=n.connect,(o,s=0,u=0)=>{const c=0===i.size;if(e(o))return a.call(n,o,s,u),t(i,[o,s,u],t=>t[0]===o&&t[1]===s&&t[2]===u,!0),c&&r(),o;a.call(n,o,s),t(i,[o,s],t=>t[0]===o&&t[1]===s,!0),c&&r()}),n.disconnect=(s=n.disconnect,(t,r,a)=>{const u=i.size>0;if(void 0===t)s.apply(n),i.clear();else if("number"==typeof t){s.call(n,t);for(const e of i)e[1]===t&&i.delete(e)}else{e(t)?s.call(n,t,r,a):s.call(n,t,r);for(const e of i)e[0]!==t||void 0!==r&&e[1]!==r||void 0!==a&&e[2]!==a||i.delete(e)}const c=0===i.size;u&&c&&o()}),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=n.destination;if(i.channelCount!==r)try{i.channelCount=r}catch(t){}o&&"explicit"!==i.channelCountMode&&(i.channelCountMode="explicit"),0===i.maxChannelCount&&Object.defineProperty(i,"maxChannelCount",{value:r});const a=t(n,{channelCount:r,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(a,"channelCount",t=>()=>t.call(a),t=>e=>{t.call(a,e);try{i.channelCount=e}catch(t){if(e>i.maxChannelCount)throw t}}),e(a,"channelCountMode",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelCountMode=e}),e(a,"channelInterpretation",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelInterpretation=e}),Object.defineProperty(a,"maxChannelCount",{get:()=>i.maxChannelCount}),a.connect(i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e);return n(null!==r?r:e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=t=>(e,n)=>{const a=t(e,t=>t.createBiquadFilter());return Object(i.a)(a,n),Object(r.a)(a,n,"Q"),Object(r.a)(a,n,"detune"),Object(r.a)(a,n,"frequency"),Object(r.a)(a,n,"gain"),Object(o.a)(a,n,"type"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o)=>{const i=t(n,t=>t.createChannelMerger(o.numberOfInputs));Object(r.a)(i,o),1!==i.channelCount&&"explicit"!==i.channelCountMode&&e(n,i);try{i.channelCount=void 0===o.numberOfInputs?6:o.numberOfInputs,e(n,i)}catch(t){}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),o=n(4),i=n(91),a=n(92);const s=(t,e,n,s,u)=>(c,l)=>{if(void 0===c.createConstantSource)return n(c,l);const f=e(c,t=>t.createConstantSource());return Object(o.a)(f,l),Object(r.a)(f,l,"offset"),t(s,()=>s(c))||Object(i.a)(f),t(u,()=>u(c))||Object(a.a)(f),f}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);const o=(t,e,n)=>(o,{offset:i,...a})=>{const s=o.createBuffer(1,2,o.sampleRate),u=t(o),c=e(o,{...a,gain:i}),l=s.getChannelData(0);l[0]=1,l[1]=1,u.buffer=s,u.loop=!0;const f={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(t){c.channelCount=t},get channelCountMode(){return c.channelCountMode},set channelCountMode(t){c.channelCountMode=t},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(t){c.channelInterpretation=t},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return u.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return u.onended},set onended(t){u.onended=t},addEventListener:(...t)=>u.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>u.dispatchEvent(t[0]),removeEventListener:(...t)=>u.removeEventListener(t[0],t[1],t[2]),start(t=0){u.start.call(u,t)},stop(t=0){u.stop.call(u,t)}};return n(Object(r.a)(f,c),()=>u.connect(c),()=>u.disconnect(c))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i)=>(a,s)=>{const u=t(a,t=>t.createConvolver());try{u.channelCount=1}catch(t){return e(a,s)}if(Object(o.a)(u,s),s.disableNormalization===u.normalize&&(u.normalize=!s.disableNormalization),Object(r.a)(u,s,"buffer"),s.channelCount>2)throw n();if(i(u,"channelCount",t=>()=>t.call(u),t=>e=>{if(e>2)throw n();return t.call(u,e)}),"max"===s.channelCountMode)throw n();return i(u,"channelCountMode",t=>()=>t.call(u),t=>e=>{if("max"===e)throw n();return t.call(u,e)}),u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(25);const i=(t,e,n)=>(i,{buffer:a,channelCount:s,channelCountMode:u,channelInterpretation:c,disableNormalization:l})=>{const f=t(i,t=>t.createConvolver());Object(r.a)(f,{channelCount:Math.max(s,2),channelCountMode:"max"===u?u:"clamped-max",channelInterpretation:c});const p=e(i,{channelCount:s,channelCountMode:u,channelInterpretation:c,gain:1}),h={get buffer(){return f.buffer},set buffer(t){f.buffer=t},get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){t>2&&(f.channelCount=t),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){"max"===t&&(f.channelCountMode=t),p.channelCountMode=t},get channelInterpretation(){return f.channelInterpretation},set channelInterpretation(t){f.channelInterpretation=t,p.channelInterpretation=t},get context(){return f.context},get inputs(){return[f]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return f.numberOfOutputs},get normalize(){return f.normalize},set normalize(t){f.normalize=t},addEventListener:(...t)=>f.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>f.dispatchEvent(t[0]),removeEventListener:(...t)=>f.removeEventListener(t[0],t[1],t[2])};l===h.normalize&&(h.normalize=!l),a!==h.buffer&&(h.buffer=a);return n(Object(o.a)(h,p),()=>f.connect(p),()=>f.disconnect(p))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createDelay(n.maxDelayTime));return Object(o.a)(i,n),Object(r.a)(i,n,"delayTime"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e)=>(n,i)=>{const a=t(n,t=>t.createDynamicsCompressor());if(Object(o.a)(a,i),i.channelCount>2)throw e();if("max"===i.channelCountMode)throw e();return Object(r.a)(a,i,"attack"),Object(r.a)(a,i,"knee"),Object(r.a)(a,i,"ratio"),Object(r.a)(a,i,"release"),Object(r.a)(a,i,"threshold"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createGain());return Object(o.a)(i,n),Object(r.a)(i,n,"gain"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o,i)=>{if(void 0===n.createIIRFilter)return e(n,o,i);const a=t(n,t=>t.createIIRFilter(i.feedforward,i.feedback));return Object(r.a)(a,i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(127),o=n(126),i=n(25);function a(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function s(t,e){let n=[0,0];for(let i=t.length-1;i>=0;i-=1)o=e,n=[(r=n)[0]*o[0]-r[1]*o[1],r[0]*o[1]+r[1]*o[0]],n[0]+=t[i];var r,o;return n}const u=(t,e,n,u)=>(c,l,{channelCount:f,channelCountMode:p,channelInterpretation:h,feedback:d,feedforward:y})=>{const v=Object(r.a)(l,c.sampleRate),m=d.length,g=y.length,b=Math.min(m,g);if(0===d.length||d.length>20)throw u();if(0===d[0])throw e();if(0===y.length||y.length>20)throw u();if(0===y[0])throw e();if(1!==d[0]){for(let t=0;t{const e=t.inputBuffer,n=t.outputBuffer,r=e.numberOfChannels;for(let t=0;t_.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>_.dispatchEvent(t[0]),getFrequencyResponse(e,n,r){if(e.length!==n.length||n.length!==r.length)throw t();const o=e.length;for(let t=0;t_.removeEventListener(t[0],t[1],t[2])};return Object(i.a)(k,_)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>t(e,t=>t.createMediaElementSource(n.mediaElement))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{mediaStream:n})=>{const r=n.getAudioTracks(),o=t(e,t=>{const e=r.sort((t,e)=>t.ide.id?1:0).slice(0,1);return t.createMediaStreamSource(new MediaStream(e))});return Object.defineProperty(o,"mediaStream",{value:n}),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,{mediaStreamTrack:r})=>"function"==typeof n.createMediaStreamTrackSource?e(n,t=>t.createMediaStreamTrackSource(r)):e(n,e=>{const n=new MediaStream([r]),o=e.createMediaStreamSource(n);if("audio"!==r.kind)throw t();return o})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(7),i=n(4),a=n(91),s=n(92);const u=(t,e,n,u,c,l)=>(f,p)=>{const h=e(f,t=>t.createOscillator());return Object(i.a)(h,p),Object(r.a)(h,p,"detune"),Object(r.a)(h,p,"frequency"),void 0!==p.periodicWave?h.setPeriodicWave(p.periodicWave):Object(o.a)(h,p,"type"),t(n,()=>n(f))||Object(a.a)(h),t(u,()=>u(f))||l(h,f),t(c,()=>c(f))||Object(s.a)(h),h}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=(t,e)=>(n,a)=>{const s=t(n,t=>t.createPanner());return void 0===s.orientationX?e(n,a):(Object(i.a)(s,a),Object(r.a)(s,a,"orientationX"),Object(r.a)(s,a,"orientationY"),Object(r.a)(s,a,"orientationZ"),Object(r.a)(s,a,"positionX"),Object(r.a)(s,a,"positionY"),Object(r.a)(s,a,"positionZ"),Object(o.a)(s,a,"coneInnerAngle"),Object(o.a)(s,a,"coneOuterAngle"),Object(o.a)(s,a,"coneOuterGain"),Object(o.a)(s,a,"distanceModel"),Object(o.a)(s,a,"maxDistance"),Object(o.a)(s,a,"panningModel"),Object(o.a)(s,a,"refDistance"),Object(o.a)(s,a,"rolloffFactor"),s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(25);const i=(t,e,n,i,a,s,u,c,l,f)=>(p,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:y,distanceModel:v,maxDistance:m,orientationX:g,orientationY:b,orientationZ:_,panningModel:w,positionX:x,positionY:O,positionZ:S,refDistance:k,rolloffFactor:T,...C})=>{const E=n(p,t=>t.createPanner());if(C.channelCount>2)throw c();if("max"===C.channelCountMode)throw c();Object(r.a)(E,C);const A={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},j=i(p,{...A,channelInterpretation:"speakers",numberOfInputs:6}),P=a(p,{...C,gain:1}),D=a(p,{...A,gain:1}),M=a(p,{...A,gain:0}),I=a(p,{...A,gain:0}),R=a(p,{...A,gain:0}),N=a(p,{...A,gain:0}),F=a(p,{...A,gain:0}),q=s(p,256,6,0),V=u(p,{...A,curve:new Float32Array([1,1]),oversample:"none"});let L=[1,0,0],z=[0,0,0];q.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0]];e.some((t,e)=>t!==L[e])&&(E.setOrientation(...e),L=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==z[e])&&(E.setPosition(...n),z=n)},Object.defineProperty(M.gain,"defaultValue",{get:()=>0}),Object.defineProperty(I.gain,"defaultValue",{get:()=>0}),Object.defineProperty(R.gain,"defaultValue",{get:()=>0}),Object.defineProperty(N.gain,"defaultValue",{get:()=>0}),Object.defineProperty(F.gain,"defaultValue",{get:()=>0});const B={get bufferSize(){},get channelCount(){return E.channelCount},set channelCount(t){if(t>2)throw c();P.channelCount=t,E.channelCount=t},get channelCountMode(){return E.channelCountMode},set channelCountMode(t){if("max"===t)throw c();P.channelCountMode=t,E.channelCountMode=t},get channelInterpretation(){return E.channelInterpretation},set channelInterpretation(t){P.channelInterpretation=t,E.channelInterpretation=t},get coneInnerAngle(){return E.coneInnerAngle},set coneInnerAngle(t){E.coneInnerAngle=t},get coneOuterAngle(){return E.coneOuterAngle},set coneOuterAngle(t){E.coneOuterAngle=t},get coneOuterGain(){return E.coneOuterGain},set coneOuterGain(t){if(t<0||t>1)throw e();E.coneOuterGain=t},get context(){return E.context},get distanceModel(){return E.distanceModel},set distanceModel(t){E.distanceModel=t},get inputs(){return[P]},get maxDistance(){return E.maxDistance},set maxDistance(t){if(t<0)throw new RangeError;E.maxDistance=t},get numberOfInputs(){return E.numberOfInputs},get numberOfOutputs(){return E.numberOfOutputs},get orientationX(){return D.gain},get orientationY(){return M.gain},get orientationZ(){return I.gain},get panningModel(){return E.panningModel},set panningModel(t){if(E.panningModel=t,E.panningModel!==t&&"HRTF"===t)throw c()},get positionX(){return R.gain},get positionY(){return N.gain},get positionZ(){return F.gain},get refDistance(){return E.refDistance},set refDistance(t){if(t<0)throw new RangeError;E.refDistance=t},get rolloffFactor(){return E.rolloffFactor},set rolloffFactor(t){if(t<0)throw new RangeError;E.rolloffFactor=t},addEventListener:(...t)=>P.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>P.dispatchEvent(t[0]),removeEventListener:(...t)=>P.removeEventListener(t[0],t[1],t[2])};h!==B.coneInnerAngle&&(B.coneInnerAngle=h),d!==B.coneOuterAngle&&(B.coneOuterAngle=d),y!==B.coneOuterGain&&(B.coneOuterGain=y),v!==B.distanceModel&&(B.distanceModel=v),m!==B.maxDistance&&(B.maxDistance=m),g!==B.orientationX.value&&(B.orientationX.value=g),b!==B.orientationY.value&&(B.orientationY.value=b),_!==B.orientationZ.value&&(B.orientationZ.value=_),w!==B.panningModel&&(B.panningModel=w),x!==B.positionX.value&&(B.positionX.value=x),O!==B.positionY.value&&(B.positionY.value=O),S!==B.positionZ.value&&(B.positionZ.value=S),k!==B.refDistance&&(B.refDistance=k),T!==B.rolloffFactor&&(B.rolloffFactor=T);return f(Object(o.a)(B,E),()=>{P.connect(E),t(P,V,0,0),V.connect(D).connect(j),V.connect(M).connect(j),V.connect(I).connect(j),V.connect(R).connect(j),V.connect(N).connect(j),V.connect(F).connect(j),j.connect(q)},()=>{P.disconnect(E),l(P,V,0,0),V.disconnect(D),D.disconnect(j),V.disconnect(M),M.disconnect(j),V.disconnect(I),I.disconnect(j),V.disconnect(R),R.disconnect(j),V.disconnect(N),N.disconnect(j),V.disconnect(F),F.disconnect(j),j.disconnect(q)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{disableNormalization:n,imag:r,real:o})=>{const i=t(e),a=new Float32Array(r),s=new Float32Array(o);return null!==i?i.createPeriodicWave(s,a,{disableNormalization:n}):e.createPeriodicWave(s,a,{disableNormalization:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(e,t=>t.createScriptProcessor(n,r,o))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e,n)=>(i,a)=>t(i,t=>{const s=a.channelCountMode;if("clamped-max"===s)throw n();if(void 0===i.createStereoPanner)return e(i,a);const u=t.createStereoPanner();return Object(o.a)(u,a),Object(r.a)(u,a,"pan"),Object.defineProperty(u,"channelCountMode",{get:()=>s,set:t=>{if(t!==s)throw n()}}),u})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);const o=(t,e,n,o,i,a)=>{const s=new Float32Array([1,1]),u=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},l={...c,oversample:"none"},f=(t,r,a,f,p)=>{if(1===r)return((t,e,r,i)=>{const a=new Float32Array(16385),f=new Float32Array(16385);for(let t=0;t<16385;t+=1){const e=t/16384*u;a[t]=Math.cos(e),f[t]=Math.sin(e)}const p=n(t,{...c,gain:0}),h=o(t,{...l,curve:a}),d=o(t,{...l,curve:s}),y=n(t,{...c,gain:0}),v=o(t,{...l,curve:f});return{connectGraph(){e.connect(p),e.connect(d.inputs[0]),e.connect(y),d.connect(r),r.connect(h.inputs[0]),r.connect(v.inputs[0]),h.connect(p.gain),v.connect(y.gain),p.connect(i,0,0),y.connect(i,0,1)},disconnectGraph(){e.disconnect(p),e.disconnect(d.inputs[0]),e.disconnect(y),d.disconnect(r),r.disconnect(h.inputs[0]),r.disconnect(v.inputs[0]),h.disconnect(p.gain),v.disconnect(y.gain),p.disconnect(i,0,0),y.disconnect(i,0,1)}}})(t,a,f,p);if(2===r)return((t,r,i,a)=>{const f=new Float32Array(16385),p=new Float32Array(16385),h=new Float32Array(16385),d=new Float32Array(16385),y=Math.floor(8192.5);for(let t=0;t<16385;t+=1)if(t>y){const e=(t-y)/(16384-y)*u;f[t]=Math.cos(e),p[t]=Math.sin(e),h[t]=0,d[t]=1}else{const e=t/(16384-y)*u;f[t]=1,p[t]=0,h[t]=Math.cos(e),d[t]=Math.sin(e)}const v=e(t,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),m=n(t,{...c,gain:0}),g=o(t,{...l,curve:f}),b=n(t,{...c,gain:0}),_=o(t,{...l,curve:p}),w=o(t,{...l,curve:s}),x=n(t,{...c,gain:0}),O=o(t,{...l,curve:h}),S=n(t,{...c,gain:0}),k=o(t,{...l,curve:d});return{connectGraph(){r.connect(v),r.connect(w.inputs[0]),v.connect(m,1),v.connect(b,1),v.connect(x,1),v.connect(S,1),w.connect(i),i.connect(g.inputs[0]),i.connect(_.inputs[0]),i.connect(O.inputs[0]),i.connect(k.inputs[0]),g.connect(m.gain),_.connect(b.gain),O.connect(x.gain),k.connect(S.gain),m.connect(a,0,0),x.connect(a,0,0),b.connect(a,0,1),S.connect(a,0,1)},disconnectGraph(){r.disconnect(v),r.disconnect(w.inputs[0]),v.disconnect(m,1),v.disconnect(b,1),v.disconnect(x,1),v.disconnect(S,1),w.disconnect(i),i.disconnect(g.inputs[0]),i.disconnect(_.inputs[0]),i.disconnect(O.inputs[0]),i.disconnect(k.inputs[0]),g.disconnect(m.gain),_.disconnect(b.gain),O.disconnect(x.gain),k.disconnect(S.gain),m.disconnect(a,0,0),x.disconnect(a,0,0),b.disconnect(a,0,1),S.disconnect(a,0,1)}}})(t,a,f,p);throw i()};return(e,{channelCount:o,channelCountMode:s,pan:u,...c})=>{if("max"===s)throw i();const l=t(e,{...c,channelCount:1,channelCountMode:s,numberOfInputs:2}),p=n(e,{...c,channelCount:o,channelCountMode:s,gain:1}),h=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:u});let{connectGraph:d,disconnectGraph:y}=f(e,o,p,h,l);Object.defineProperty(h.gain,"defaultValue",{get:()=>0});const v={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){p.channelCount!==t&&(m&&y(),({connectGraph:d,disconnectGraph:y}=f(e,t,p,h,l)),m&&d()),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){if("clamped-max"===t||"max"===t)throw i();p.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){p.channelInterpretation=t},get context(){return p.context},get inputs(){return[p]},get numberOfInputs(){return p.numberOfInputs},get numberOfOutputs(){return p.numberOfOutputs},get pan(){return h.gain},addEventListener:(...t)=>p.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>p.dispatchEvent(t[0]),removeEventListener:(...t)=>p.removeEventListener(t[0],t[1],t[2])};let m=!1;return a(Object(r.a)(v,l),()=>{d(),m=!0},()=>{y(),m=!1})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i,a,s,u)=>(c,l)=>{const f=n(c,t=>t.createWaveShaper());try{return f.curve=new Float32Array([1]),i(c,l)}catch(t){}Object(o.a)(f,l);const p=l.curve;if(null!==p&&p.length<2)throw e();Object(r.a)(f,l,"curve"),Object(r.a)(f,l,"oversample");let h=null,d=!1;u(f,"curve",t=>()=>t.call(f),e=>n=>(e.call(f,n),d&&(a(n)&&null===h?h=t(c,f):a(n)||null===h||(h(),h=null)),n));return s(f,()=>{d=!0,a(f.curve)&&(h=t(c,f))},()=>{d=!1,null!==h&&(h(),h=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(25);const i=(t,e,n,i,a,s)=>(u,{curve:c,oversample:l,...f})=>{const p=n(u,t=>t.createWaveShaper()),h=n(u,t=>t.createWaveShaper());Object(r.a)(p,f),Object(r.a)(h,f);const d=i(u,{...f,gain:1}),y=i(u,{...f,gain:-1}),v=i(u,{...f,gain:1}),m=i(u,{...f,gain:-1});let g=null,b=!1,_=null;const w={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){d.channelCount=t,y.channelCount=t,p.channelCount=t,v.channelCount=t,h.channelCount=t,m.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){d.channelCountMode=t,y.channelCountMode=t,p.channelCountMode=t,v.channelCountMode=t,h.channelCountMode=t,m.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){d.channelInterpretation=t,y.channelInterpretation=t,p.channelInterpretation=t,v.channelInterpretation=t,h.channelInterpretation=t,m.channelInterpretation=t},get context(){return p.context},get curve(){return _},set curve(n){if(null!==c&&c.length<2)throw e();if(null===n)p.curve=n,h.curve=n;else{const t=n.length,e=new Float32Array(t+2-t%2),r=new Float32Array(t+2-t%2);e[0]=n[0],r[0]=-n[t-1];const o=Math.ceil((t+1)/2),i=(t+1)/2-1;for(let a=1;ad.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>d.dispatchEvent(t[0]),removeEventListener:(...t)=>d.removeEventListener(t[0],t[1],t[2])};c!==w.curve&&(w.curve=c),l!==w.oversample&&(w.oversample=l);return s(Object(o.a)(w,v),()=>{d.connect(p).connect(v),d.connect(y).connect(h).connect(m).connect(v),b=!0,a(_)&&(g=t(u,d))},()=>{d.disconnect(p),p.disconnect(v),d.disconnect(y),y.disconnect(h),h.disconnect(m),m.disconnect(v),b=!1,null!==g&&(g(),g=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(36);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends t{constructor(t,n,a){let s;if("number"==typeof t&&void 0!==n&&void 0!==a)s={length:n,numberOfChannels:t,sampleRate:a};else{if("object"!=typeof t)throw new Error("The given parameters are not valid.");s=t}const{length:u,numberOfChannels:c,sampleRate:l}={...o,...s},f=i(c,u,l);e(r.a,()=>Object(r.a)(f))||f.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(f.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(f,c),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(n()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(46),o=n(59);const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,type:"sine"},a=(t,e,n,a,s,u,c,l)=>class extends t{constructor(t,n=i){const r=u(t),o={...i,...n},l=a(r,o),f=c(r),p=f?s():null,h=t.sampleRate/2;super(t,!1,l,p),this._detune=e(this,f,l.detune,153600,-153600),this._frequency=e(this,f,l.frequency,h,-h),this._nativeOscillatorNode=l,this._onended=null,this._oscillatorNodeRenderer=p,null!==this._oscillatorNodeRenderer&&void 0!==o.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=o.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeOscillatorNode.onended=e;const n=this._nativeOscillatorNode.onended;this._onended=null!==n&&n===e?t:n}get type(){return this._nativeOscillatorNode.type}set type(t){if(this._nativeOscillatorNode.type=t,"custom"===t)throw n();null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(t){this._nativeOscillatorNode.setPeriodicWave(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=t)}start(t=0){if(this._nativeOscillatorNode.start(t),null!==this._oscillatorNodeRenderer)this._oscillatorNodeRenderer.start=t;else{Object(r.a)(this);const t=()=>{this._nativeOscillatorNode.removeEventListener("ended",t),setTimeout(()=>Object(o.a)(this),1e3)};this._nativeOscillatorNode.addEventListener("ended",t)}}stop(t=0){this._nativeOscillatorNode.stop(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null,c=null;return{set periodicWave(t){s=t},set start(t){u=t},set stop(t){c=t},render(l,f,p){const h=a.get(f);return void 0!==h?Promise.resolve(h):(async(l,f,p)=>{let h=n(l);const d=Object(r.a)(h,f);if(!d){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,detune:h.detune.value,frequency:h.frequency.value,periodicWave:null===s?void 0:s,type:h.type};h=e(f,t),null!==u&&h.start(u),null!==c&&h.stop(c)}return a.set(f,h),d?(await t(f,l.detune,h.detune,p),await t(f,l.frequency,h.frequency,p)):(await o(f,l.detune,h.detune,p),await o(f,l.frequency,h.frequency,p)),await i(l,f,h,p),h})(l,f,p)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=n(c,l),p=s(c);super(t,!1,f,p?i():null),this._nativePannerNode=f,this._orientationX=e(this,p,f.orientationX,r.b,r.a),this._orientationY=e(this,p,f.orientationY,r.b,r.a),this._orientationZ=e(this,p,f.orientationZ,r.b,r.a),this._positionX=e(this,p,f.positionX,r.b,r.a),this._positionY=e(this,p,f.positionY,r.b,r.a),this._positionZ=e(this,p,f.positionZ,r.b,r.a)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(t){this._nativePannerNode.coneInnerAngle=t}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(t){this._nativePannerNode.coneOuterAngle=t}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(t){this._nativePannerNode.coneOuterGain=t}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(t){this._nativePannerNode.distanceModel=t}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(t){this._nativePannerNode.maxDistance=t}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(t){this._nativePannerNode.panningModel=t}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(t){this._nativePannerNode.refDistance=t}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(t){this._nativePannerNode.rolloffFactor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n,i,a)=>()=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(o.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,coneInnerAngle:f.coneInnerAngle,coneOuterAngle:f.coneOuterAngle,coneOuterGain:f.coneOuterGain,distanceModel:f.distanceModel,maxDistance:f.maxDistance,orientationX:f.orientationX.value,orientationY:f.orientationY.value,orientationZ:f.orientationZ.value,panningModel:f.panningModel,positionX:f.positionX.value,positionY:f.positionY.value,positionZ:f.positionZ.value,refDistance:f.refDistance,rolloffFactor:f.rolloffFactor};f=e(c,t)}return s.set(c,f),p?(await t(c,u.orientationX,f.orientationX,l),await t(c,u.orientationY,f.orientationY,l),await t(c,u.orientationZ,f.orientationZ,l),await t(c,u.positionX,f.positionX,l),await t(c,u.positionY,f.positionY,l),await t(c,u.positionZ,f.positionZ,l)):(await i(c,u.orientationX,f.orientationX,l),await i(c,u.orientationY,f.orientationY,l),await i(c,u.orientationZ,f.orientationZ,l),await i(c,u.positionX,f.positionX,l),await i(c,u.positionY,f.positionY,l),await i(c,u.positionZ,f.positionZ,l)),Object(r.a)(f)?await a(u,c,f.inputs[0],l):await a(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={disableNormalization:!1},o=(t,e,n)=>class o{constructor(o,i){const a=e(o),s={...r,...i},u=t(a,s);return n.add(u),u}static[Symbol.hasInstance](t){return null!==t&&"object"==typeof t&&Object.getPrototypeOf(t)===o.prototype||n.has(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o,i)=>(t(r).replay(o),e(r,n,o,i))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=t(r),u=[...a,r];await Promise.all(s.activeInputs.map((t,a)=>Array.from(t).filter(([t])=>!u.includes(t)).map(async([t,s])=>{const c=e(t),l=await c.render(t,o,u);n(t)||r===r.context.destination&&n(r)||l.connect(i,s,a)})).reduce((t,e)=>[...t,...e],[]))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=e(r);await Promise.all(Array.from(s.activeInputs).map(async([e,r])=>{const s=t(e),u=await s.render(e,o,a);n(e)||u.connect(i,r)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(36);const o=(t,e,n,o)=>i=>t(r.a,()=>Object(r.a)(i))?Promise.resolve(t(o,o)).then(t=>{if(!t){const t=n(i,512,0,1);i.oncomplete=()=>{t.onaudioprocess=null,t.disconnect()},t.onaudioprocess=()=>i.currentTime,t.connect(i.destination)}return i.startRendering()}):new Promise(t=>{const n=e(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});i.oncomplete=e=>{n.disconnect(),t(e.renderedBuffer)},n.connect(i.destination),i.startRendering()})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(90);const o=(t,e,n,o,i,a,s)=>(u,c)=>n(u).render(u,c,[]).then(()=>o(c)).then(n=>("function"!=typeof n.copyFromChannel?(a(n),Object(r.a)(n)):e(i,()=>i(n))||s(n),t.add(n),n))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=n(u,c),f=a(u);super(t,!1,l,f?o():null),this._pan=e(this,f,l.pan,1,-1)}get pan(){return this._pan}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n,i,a)=>()=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(o.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,pan:f.pan.value};f=e(c,t)}return s.set(c,f),p?await t(c,u.pan,f.pan,l):await i(c,u.pan,f.pan,l),Object(r.a)(f)?await a(u,c,f.inputs[0],l):await a(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createBuffer(1,1,44100);if(void 0===e.copyToChannel)return!0;const n=new Float32Array(2);try{e.copyFromChannel(n,0,0)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.start()}catch(t){return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100),n=e.createBuffer(1,1,e.sampleRate),r=e.createBufferSource();return n.getChannelData(0)[0]=1,r.buffer=n,r.start(0,0,0),r.connect(e.destination),new Promise(t=>{e.oncomplete=({renderedBuffer:e})=>{t(0===e.getChannelData(0)[0])},e.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource()),r=e.createBuffer(1,1,44100);n.buffer=r;try{n.start(0,1)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.stop()}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;if(void 0!==t.prototype&&void 0!==t.prototype.close)return!0;const e=new t,n=void 0!==e.close;try{e.close()}catch(t){}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);return new Promise(t=>{let n=!0;const r=r=>{n&&(n=!1,e.startRendering(),t(r instanceof TypeError))};let o;try{o=e.decodeAudioData(null,()=>{},r)}catch(t){r(t)}void 0!==o&&o.catch(r)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;let e;try{e=new t({latencyHint:"balanced"})}catch(t){return!1}return e.close(),!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createGain(),n=e.connect(e)===e;return e.disconnect(e),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.start(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=e.createBuffer(1,1,44100),r=t(e,t=>t.createBufferSource());r.buffer=n,r.start(),r.stop();try{return r.stop(),!0}catch(t){return!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.stop(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>async()=>{if(null===t)return!0;if(null===e)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(){this.port.postMessage(0)}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,3200),o=URL.createObjectURL(n);let i=!1;try{await r.audioWorklet.addModule(o);const e=r.createGain(),n=new t(r,"a",{numberOfOutputs:0});n.port.onmessage=()=>i=!0,e.connect(n),await r.startRendering()}catch(t){}finally{URL.revokeObjectURL(o)}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100);return void 0===n.createConstantSource||t(n,t=>t.createConstantSource()).offset.maxValue!==Number.POSITIVE_INFINITY}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createConvolver();n.buffer=e.createBuffer(1,1,e.sampleRate);try{n.buffer=e.createBuffer(1,1,e.sampleRate)}catch(t){return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>null!==t&&t.hasOwnProperty("isSecureContext")},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t;try{return e.createMediaStreamSource(new MediaStream),!1}catch(t){return!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(t=>{n.oncomplete=()=>{r.disconnect(),t(0!==n.currentTime)},n.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);if(void 0===e.createStereoPanner)return Promise.resolve(!0);if(void 0===e.createConstantSource)return Promise.resolve(!0);const n=e.createConstantSource(),r=e.createStereoPanner();return n.channelCount=1,n.offset.value=1,r.channelCount=1,n.start(),n.connect(r).connect(e.destination),e.startRendering().then(t=>1!==t.getChannelData(0)[0])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},o=(t,e,n,o,i,a)=>class extends t{constructor(t,e=r){const s=i(t),u={...r,...e},c=n(s,u);super(t,!0,c,a(s)?o():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=c}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(t){if(null===t)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(t.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=t}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(t){this._nativeWaveShaperNode.oversample=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>"undefined"==typeof window?null:window},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{n.copyFromChannel=(r,o,i=0)=>{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+a{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+ae=>{var n,r;e.copyFromChannel=(n=e.copyFromChannel,(r,o,i=0)=>{const a=t(i),s=t(o);if(a{const a=t(i),s=t(o);if(a(e,n)=>{const r=n.createBuffer(1,1,n.sampleRate);null===e.buffer&&(e.buffer=r),t(e,"buffer",t=>()=>{const n=t.call(e);return n===r?null:n},t=>n=>t.call(e,null===n?r:n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);const o=t=>(e,n)=>{const o=t(n,t=>t.createGain());e.connect(o);const i=(a=e.disconnect,()=>{a.call(e,o),e.removeEventListener("ended",i)});var a;e.addEventListener("ended",i),Object(r.a)(e,o),e.stop=(t=>{let n=!1;return(r=0)=>{if(n)try{t.call(e,r)}catch(t){o.gain.setValueAtTime(0,r)}else t.call(e,r),n=!0}})(e.stop)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,o)=>{o.channelCount=1,o.channelCountMode="explicit",Object.defineProperty(o,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(o,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const i=e(r,t=>t.createBufferSource());n(o,()=>{const t=o.numberOfInputs;for(let e=0;ei.disconnect(o))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>new Promise(t=>{const e=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:e})=>t(null!==e),r.postMessage(e,[e])})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,o)=>{const i=t.buffer,a=null===i?r:Math.min(i.duration,r);null!==i&&a>i.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,a,o)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return q}));var r=n(2),o=n(77),i=n(61);const a=t=>"port"in t;var s=n(96),u=n(54);const c=(t,e)=>{if(!Object(u.a)(t).delete(e))throw new Error("Missing the expected event listener.")};var l=n(97),f=n(19),p=n(79),h=n(13),d=n(80),y=n(23),v=n(39),m=n(62),g=n(50);const b=t=>!r.a.has(t),_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(0===n.length)throw Error("No element was found.");const[r]=n;return t.delete(r),r};var w=n(46),x=n(59);const O=(t,e)=>{!a(t)&&e.every(t=>0===t.size)&&Object(x.a)(t)},S=t=>new Promise(e=>{const n=t.createScriptProcessor(256,1,1),r=t.createGain(),o=t.createBuffer(1,2,44100),i=o.getChannelData(0);i[0]=1,i[1]=1;const a=t.createBufferSource();a.buffer=o,a.loop=!0,a.connect(n).connect(t.destination),a.connect(r),a.disconnect(r),n.onaudioprocess=r=>{const o=r.inputBuffer.getChannelData(0);Array.prototype.some.call(o,t=>1===t)?e(!0):e(!1),a.stop(),n.onaudioprocess=null,a.disconnect(n),n.disconnect(t.destination)},a.start()}),k=(t,e)=>{const n=new Map;for(const e of t)for(const t of e){const e=n.get(t);n.set(t,void 0===e?1:e+1)}n.forEach((t,n)=>e(n,t))};var T=n(78);const C=(t,e,[n,r,o],i)=>{Object(v.a)(t[r],[e,n,o],t=>t[0]===e&&t[1]===n,i)},E=(t,e,[n,r],o)=>{Object(v.a)(t,[e,n,r],t=>t[0]===e&&t[1]===n,o)},A=(t,e,[n,r,o],i)=>{const a=t.get(n);void 0===a?t.set(n,new Set([[r,e,o]])):Object(v.a)(a,[r,e,o],t=>t[0]===r&&t[1]===e,i)},j=(t,[e,n,r],o)=>{const i=t.get(e);void 0===i?t.set(e,new Set([[n,r]])):Object(v.a)(i,[n,r],t=>t[0]===n,o)},P=(t,e,n,r)=>{const o=Object(y.a)(t,e),i=_(o,t=>t[0]===n&&t[1]===r);return 0===o.size&&t.delete(e),i},D=(t,e,n)=>{const r=Object(y.a)(t,e),o=_(r,t=>t[0]===n);return 0===r.size&&t.delete(e),o},M=(t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),{outputs:a}=Object(f.a)(t),c=Object(u.a)(t),p=a=>{const u=Object(h.a)(e),c=Object(h.a)(t);if(a){const a=P(i,t,n,r);C(o,t,a,!1),Object(g.a)(t)||Object(s.a)(c,u,n,r),b(e)&&Object(w.a)(e)}else{const a=((t,e,n,r)=>_(t[r],t=>t[0]===e&&t[1]===n))(o,t,n,r);A(i,r,a,!1),Object(g.a)(t)||Object(l.a)(c,u,n,r),Object(m.a)(e)&&O(e,o)}};return!!Object(v.a)(a,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)&&(c.add(p),Object(m.a)(t)?C(o,t,[n,r,p],!0):A(i,r,[t,n,p],!0),!0)},I=(t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),{outputs:i}=Object(f.a)(t),a=Object(u.a)(t),s=i=>{const a=Object(h.a)(t),s=Object(d.a)(e);if(i){const e=D(o,t,n);E(r,t,e,!1),Object(g.a)(t)||a.connect(s,n)}else{const e=((t,e,n)=>_(t,t=>t[0]===e&&t[1]===n))(r,t,n);j(o,e,!1),Object(g.a)(t)||a.disconnect(s,n)}};return!!Object(v.a)(i,[e,n],t=>t[0]===e&&t[1]===n,!0)&&(a.add(s),Object(m.a)(t)?E(r,t,[n,s],!0):j(o,[t,n,s],!0),!0)},R=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},N=(t,e,n,r)=>{const[o,i]=((t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),a=R(o[r],t,n);if(null===a){return[P(i,t,n,r)[2],!1]}return[a[2],!0]})(t,e,n,r);if(null!==o&&(c(t,o),i&&!Object(g.a)(t)&&Object(l.a)(Object(h.a)(t),Object(h.a)(e),n,r)),Object(m.a)(e)){const{activeInputs:t}=Object(f.a)(e);O(e,t)}},F=(t,e,n)=>{const[r,o]=((t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),i=R(r,t,n);if(null===i){return[D(o,t,n)[1],!1]}return[i[2],!0]})(t,e,n);null!==r&&(c(t,r),o&&!Object(g.a)(t)&&Object(h.a)(t).disconnect(Object(d.a)(e),n))},q=(t,e,n,u,c,l,y,m,g,_,x,O,A,j)=>class extends _{constructor(e,o,i,a){super(i),this._context=e,this._nativeAudioNode=i;const s=x(e);j(s)||!0===n(S,()=>S(s))||(t=>{const e=new Map;var n,r;t.connect=(n=t.connect.bind(t),(t,r=0,o=0)=>{const i=Object(T.a)(t)?n(t,r,o):n(t,r),a=e.get(t);return void 0===a?e.set(t,[{input:o,output:r}]):a.every(t=>t.input!==o||t.output!==r)&&a.push({input:o,output:r}),i}),t.disconnect=(r=t.disconnect,(n,o,i)=>{if(r.apply(t),void 0===n)e.clear();else if("number"==typeof n)for(const[t,r]of e){const o=r.filter(t=>t.output!==n);0===o.length?e.delete(t):e.set(t,o)}else if(e.has(n))if(void 0===o)e.delete(n);else{const t=e.get(n);if(void 0!==t){const r=t.filter(t=>t.output!==o&&(t.input!==i||void 0===i));0===r.length?e.delete(n):e.set(n,r)}}for(const[n,r]of e)r.forEach(e=>{Object(T.a)(n)?t.connect(n,e.output,e.input):t.connect(n,e.output)})})})(i),r.c.set(this,i),r.i.set(this,new Set),o&&Object(w.a)(this),t(this,a,i)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(t){this._nativeAudioNode.channelCount=t}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(t){this._nativeAudioNode.channelCountMode=t}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(t){this._nativeAudioNode.channelInterpretation=t}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(t,n=0,r=0){const i=x(this._context),c=j(i);if(O(t)||A(t))throw l();if(Object(o.a)(t)){const o=Object(h.a)(t);try{const u=Object(s.a)(this._nativeAudioNode,o,n,r);if(c||b(this)?this._nativeAudioNode.disconnect(...u):b(t)&&Object(w.a)(t),a(t)){const t=e.get(o);if(void 0===t){const t=i.createGain();t.connect(u[0],0,u[2]),e.set(o,new Map([[r,t]]))}else if(void 0===t.get(r)){const e=i.createGain();e.connect(u[0],0,u[2]),t.set(r,e)}}}catch(t){if(12===t.code)throw l();throw t}if(c?((t,e,n,r)=>{const{outputs:o}=Object(f.a)(t);if(Object(v.a)(o,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)){const{activeInputs:o}=Object(f.a)(e);return C(o,t,[n,r,null],!0),!0}return!1})(this,t,n,r):M(this,t,n,r)){const e=g([this],t);k(e,u(c))}return t}const m=Object(d.a)(t);if("playbackRate"===m.name)throw y();try{this._nativeAudioNode.connect(m,n),(c||b(this))&&this._nativeAudioNode.disconnect(m,n)}catch(t){if(12===t.code)throw l();throw t}if(c?((t,e,n)=>{const{outputs:r}=Object(f.a)(t);if(Object(v.a)(r,[e,n],t=>t[0]===e&&t[1]===n,!0)){const{activeInputs:r}=Object(p.a)(e);return E(r,t,[n,null],!0),!0}return!1})(this,t,n):I(this,t,n)){const e=g([this],t);k(e,u(c))}}disconnect(t,e,n){let r;if(void 0===t)r=(t=>{const e=Object(f.a)(t),n=[];for(const r of e.outputs)Object(i.a)(r)?N(t,...r):F(t,...r),n.push(r[0]);return e.outputs.clear(),n})(this);else if("number"==typeof t){if(t<0||t>=this.numberOfOutputs)throw c();r=((t,e)=>{const n=Object(f.a)(t),r=[];for(const o of n.outputs)o[1]===e&&(Object(i.a)(o)?N(t,...o):F(t,...o),r.push(o[0]),n.outputs.delete(o));return r})(this,t)}else{if(void 0!==e&&(e<0||e>=this.numberOfOutputs))throw c();if(Object(o.a)(t)&&void 0!==n&&(n<0||n>=t.numberOfInputs))throw c();if(r=((t,e,n,r)=>{const o=Object(f.a)(t);return Array.from(o.outputs).filter(t=>!(t[0]!==e||void 0!==n&&t[1]!==n||void 0!==r&&t[2]!==r)).map(e=>(Object(i.a)(e)?N(t,...e):F(t,...e),o.outputs.delete(e),e[0]))})(this,t,e,n),0===r.length)throw l()}for(const t of r){const e=g([this],t);k(e,m)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(5),o=n(127),i=n(98),a=n(125),s=n(2);const u=async(t,e)=>new t(await(t=>new Promise((e,n)=>{const{port1:r,port2:o}=new MessageChannel;r.onmessage=({data:t})=>{r.close(),o.close(),e(t)},r.onmessageerror=({data:t})=>{r.close(),o.close(),n(t)},o.postMessage(t)}))(e));var c=n(99),l=n(124);const f=(t,e,n,f,p,h,d,y,v,m,g,b,_)=>(w,x,O,S)=>{if(0===S.numberOfInputs&&0===S.numberOfOutputs)throw m();if(void 0!==S.outputChannelCount){if(S.outputChannelCount.some(t=>t<1))throw m();if(S.outputChannelCount.length!==S.numberOfOutputs)throw n()}if("explicit"!==S.channelCountMode)throw m();const k=S.channelCount*S.numberOfInputs,T=S.outputChannelCount.reduce((t,e)=>t+e,0),C=void 0===O.parameterDescriptors?0:O.parameterDescriptors.length;if(k+C>6||T>6)throw m();const E=new MessageChannel,A=[],j=[];for(let t=0;tvoid 0===t?0:t},maxValue:{get:()=>void 0===e?r.b:e},minValue:{get:()=>void 0===n?r.a:n}}),P.push(i)}const D=p(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+C)}),M=Object(o.a)(x,w.sampleRate),I=v(w,M,k+C,Math.max(1,T)),R=h(w,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),N=[];for(let t=0;t{const n=P[e];return n.connect(D,0,k+e),n.start(0),[t,n.offset]}));D.connect(I);let q=S.channelInterpretation,V=null;const L=0===S.numberOfOutputs?[I]:N,z={get bufferSize(){return M},get channelCount(){return S.channelCount},set channelCount(t){throw f()},get channelCountMode(){return S.channelCountMode},set channelCountMode(t){throw f()},get channelInterpretation(){return q},set channelInterpretation(t){for(const e of A)e.channelInterpretation=t;q=t},get context(){return I.context},get inputs(){return A},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(t){"function"==typeof V&&z.removeEventListener("processorerror",V),V="function"==typeof t?t:null,"function"==typeof V&&z.addEventListener("processorerror",V)},get parameters(){return F},get port(){return E.port2},addEventListener:(...t)=>I.addEventListener(t[0],t[1],t[2]),connect:e.bind(null,L),disconnect:g.bind(null,L),dispatchEvent:(...t)=>I.dispatchEvent(t[0]),removeEventListener:(...t)=>I.removeEventListener(t[0],t[1],t[2])},B=new Map;var U,W;E.port1.addEventListener=(U=E.port1.addEventListener,(...t)=>{if("message"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=B.get(t[1]);void 0!==n?t[1]=n:(t[1]=t=>{b(w.currentTime,w.sampleRate,()=>e(t))},B.set(e,t[1]))}}return U.call(E.port1,t[0],t[1],t[2])}),E.port1.removeEventListener=(W=E.port1.removeEventListener,(...t)=>{if("message"===t[0]){const e=B.get(t[1]);void 0!==e&&(B.delete(t[1]),t[1]=e)}return W.call(E.port1,t[0],t[1],t[2])});let $=null;Object.defineProperty(E.port1,"onmessage",{get:()=>$,set:t=>{"function"==typeof $&&E.port1.removeEventListener("message",$),$="function"==typeof t?t:null,"function"==typeof $&&(E.port1.addEventListener("message",$),E.port1.start())}}),O.prototype.port=E.port1;let H=null;((t,e,n,r)=>{let o=s.k.get(t);void 0===o&&(o=new WeakMap,s.k.set(t,o));const i=u(n,r);return o.set(e,i),i})(w,z,O,S).then(t=>H=t);const G=Object(c.a)(S.numberOfInputs,S.channelCount),K=Object(c.a)(S.numberOfOutputs,S.outputChannelCount),Q=void 0===O.parameterDescriptors?[]:O.parameterDescriptors.reduce((t,{name:e})=>({...t,[e]:new Float32Array(128)}),{});let Y=!0;const X=()=>{S.numberOfOutputs>0&&I.disconnect(R);for(let t=0,e=0;t{if(null!==H)for(let r=0;r{Object(i.a)(e,Q,t,k+n,r)});for(let t=0;t{const r=t.get(z);return void 0===r||void 0===r.get(n)?[new Float32Array(0)]:e}),o=b(w.currentTime+r/w.sampleRate,w.sampleRate,()=>H.process(e,K,Q));Y=o;for(let t=0,e=0;t{if(Y){S.numberOfOutputs>0&&I.connect(R);for(let t=0,e=0;t{Y&&X(),J=!1})}},function(t,e,n){"use strict";var r=n(94);function o(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var i=n(122),a=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?r.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e=0&&this.changeListeners.splice(e,1)},t}();e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2);const o={construct:()=>o},i=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,a=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),o=r.match(i);for(;null!==o;){const t=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(t,new URL(t,e).toString());n.push(a),r=r.slice(o[0].length).replace(/^[\s]+/,""),o=r.match(i)}return[n.join(";"),r]},s=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},u=t=>{if(!(t=>{try{new new Proxy(t,o)}catch(t){return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},c=(t,e,n,o,i,c,l,f,p)=>(h,d,y={credentials:"omit"})=>{const v=l(h),m=new URL(d,location.href).toString();if(void 0!==v.audioWorklet)return i(d).then(t=>{const[e,n]=a(t,m),r=new Blob([`${e};(registerProcessor=>{${n}\n})((n,p)=>registerProcessor(n,class extends p{constructor(o){const{hasNoOutput,...q}=o.parameterData;if(hasNoOutput===1){super({...o,numberOfOutputs:0,outputChannelCount:[],parameterData:q});this._h=true}else{super(o);this._h=false}}process(i,o,p){return super.process(i,(this._h)?[]:o,p)}}))`],{type:"application/javascript; charset=utf-8"}),o=URL.createObjectURL(r),i=c(v);return(null!==i?i:v).audioWorklet.addModule(o,y).then(()=>URL.revokeObjectURL(o)).catch(t=>{throw URL.revokeObjectURL(o),t})});const g=p.get(h);if(void 0!==g&&g.has(d))return Promise.resolve();const b=f.get(h);if(void 0!==b){const t=b.get(d);if(void 0!==t)return t}const _=i(d).then(t=>{const[e,r]=a(t,m);return n(`${e};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${r}\n})})(window,'_AWGS')`)}).then(()=>{const t=window._AWGS.pop();if(void 0===t)throw new SyntaxError;o(v.currentTime,v.sampleRate,()=>t(class{},void 0,(t,n)=>{if(""===t.trim())throw e();const o=r.j.get(v);if(void 0!==o){if(o.has(t))throw e();u(n),s(n.parameterDescriptors),o.set(t,n)}else u(n),s(n.parameterDescriptors),r.j.set(v,new Map([[t,n]]))},v.sampleRate,void 0,void 0))}).catch(e=>{if("SyntaxError"===e.name)throw t();throw e});return void 0===b?f.set(h,new Map([[d,_]])):b.set(d,_),_.then(()=>{const t=p.get(h);void 0===t?p.set(h,new Set([d])):t.add(d)}).catch(()=>{}).then(()=>{const t=f.get(h);void 0!==t&&t.delete(d)}),_}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(7),o=n(4);const i=t=>"function"==typeof t.getFloatTimeDomainData,a=(t,e,n)=>(a,s)=>{const u=n(a,t=>t.createAnalyser());if(Object(o.a)(u,s),!(s.maxDecibels>s.minDecibels))throw e();return Object(r.a)(u,s,"fftSize"),Object(r.a)(u,s,"maxDecibels"),Object(r.a)(u,s,"minDecibels"),Object(r.a)(u,s,"smoothingTimeConstant"),t(i,()=>i(u))||(t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let t=0;t(g,b={})=>{const _=e(g,t=>t.createBufferSource());return Object(i.a)(_,b),Object(r.a)(_,b,"playbackRate"),Object(o.a)(_,b,"buffer"),Object(o.a)(_,b,"loop"),Object(o.a)(_,b,"loopEnd"),Object(o.a)(_,b,"loopStart"),t(n,()=>n(g))||(t=>{t.start=(e=>{let n=!1;return(r=0,o=0,i)=>{if(n)throw Object(a.a)();e.call(t,r,o,i),n=!0}})(t.start)})(_),t(c,c)||((t,e)=>{let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;var o,i;t.start=(o=t.start,i=t.stop,(a=0,s=0,u=Number.POSITIVE_INFINITY)=>{if(o.call(t,a,s),u>=0&&u(i=0)=>{r=Math.max(i,e.currentTime),o.call(t,Math.min(n,r))})(t.stop)})(_,g),t(l,()=>l(g))||y(_),t(f,()=>f(g))||v(_,g),t(p,()=>p(g))||Object(s.a)(_),t(h,()=>h(g))||m(_,g),t(d,()=>d(g))||Object(u.a)(_),_}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(98),o=n(125),i=n(99),a=n(19),s=n(2),u=n(13),c=n(23);var l=n(6);const f=async(t,e,n,l,f,p)=>{const h=null===e?128*Math.ceil(t.context.length/128):e.length,d=l.channelCount*l.numberOfInputs,y=l.outputChannelCount.reduce((t,e)=>t+e,0),v=0===y?null:n.createBuffer(y,h,n.sampleRate);if(void 0===f)throw new Error("Missing the processor constructor.");const m=Object(a.a)(t),g=await((t,e)=>{const n=Object(c.a)(s.k,t),r=Object(u.a)(e);return Object(c.a)(n,r)})(n,t),b=Object(i.a)(l.numberOfInputs,l.channelCount),_=Object(i.a)(l.numberOfOutputs,l.outputChannelCount),w=Array.from(t.parameters.keys()).reduce((t,e)=>({...t,[e]:new Float32Array(128)}),{});for(let i=0;i0&&null!==e)for(let t=0;t{Object(r.a)(e,w,t,d+n,i)});for(let t=0;t0===m.activeInputs[e].size?[new Float32Array(0)]:t),e=p(i/n.sampleRate,n.sampleRate,()=>g.process(t,_,w));if(null!==v)for(let t=0,e=0;t(m,g,b)=>{const _=new WeakMap;let w=null;return{render(x,O,S){const k=_.get(O);return void 0!==k?Promise.resolve(k):(async(x,O,S)=>{let k=c(x),T=null;const C=Object(l.a)(k,O);if(null===p){const t=g.outputChannelCount.reduce((t,e)=>t+e,0),n=o(O,{channelCount:Math.max(1,t),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,t)}),i=[];for(let t=0;t{const s=new h(n,128*Math.ceil(x.context.length/128),O.sampleRate),u=[],c=[];for(let t=0;t{const e=i(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:t.value});return await d(s,t,e.offset,S),e})),f=r(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,t+e)});for(let t=0;ty(x,s,t,S))),v(s)};w=f(x,0===n?null:await s(),O,g,b,u)}const t=await w,e=n(O),[s,c,l]=T;null!==t&&(e.buffer=t,e.start(0)),e.connect(s);for(let t=0,e=0;t(d,y)=>{const v=s(d)?d:a(d);if(i.has(y)){const t=n();return Promise.reject(t)}try{i.add(y)}catch(t){}if(e(f,()=>f(v))){return("closed"===v.state&&null!==c&&u(v)?new c(1,1,v.sampleRate):v).decodeAudioData(y).catch(t=>{if(t instanceof DOMException&&"NotSupportedError"===t.name)throw new TypeError;throw t}).then(n=>(e(l,()=>l(n))||h(n),t.add(n),n))}return new Promise((e,n)=>{const i=()=>{try{(t=>{const{port1:e}=new MessageChannel;e.postMessage(t,[t])})(y)}catch(t){}},a=t=>{n(t),i()};try{v.decodeAudioData(y,n=>{"function"!=typeof n.copyFromChannel&&(p(n),Object(r.a)(n)),t.add(n),i(),e(n)},t=>{a(null===t?o():t)})}catch(t){a(t)}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(77);const o=(t,e,n)=>function o(i,a){const s=Object(r.a)(a)?a:n(t,a);if((t=>"delayTime"in t)(s))return[];if(i[0]===s)return[i];if(i.includes(s))return[];const{outputs:u}=e(s);return Array.from(u).map(t=>o([...i,s],t[0])).reduce((t,e)=>t.concat(e),[])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(100);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},i=(t,e,n,i,a)=>class extends t{constructor(t,s){const u=i(t),c=a(u),l={...o,...s},f=e(u,c?null:t.baseLatency,l);super(t,!1,f,c?n(l.feedback,l.feedforward):null),(t=>{var e;t.getFrequencyResponse=(e=t.getFrequencyResponse,(n,o,i)=>{if(n.length!==o.length||o.length!==i.length)throw Object(r.a)();return e.call(t,n,o,i)})})(f),this._nativeIIRFilterNode=f}getFrequencyResponse(t,e,n){return this._nativeIIRFilterNode.getFrequencyResponse(t,e,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>(i,a,s,u,c,l)=>{if(null!==s)try{const n=e(i,t=>o(t)&&0!==l.numberOfInputs&&0===l.numberOfOutputs?new s(t,u,{...l,numberOfOutputs:1,outputChannelCount:[1],parameterData:{...l.parameterData,hasNoOutput:1}}):new s(t,u,l)),r=new Map;let a=null;return Object.defineProperties(n,{channelCount:{get:()=>l.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>a,set:t=>{"function"==typeof a&&n.removeEventListener("processorerror",a),a="function"==typeof t?t:null,"function"==typeof a&&n.addEventListener("processorerror",a)}}}),n.addEventListener=(p=n.addEventListener,(...t)=>{if("processorerror"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=r.get(t[1]);void 0!==n?t[1]=n:(t[1]=n=>{e(new ErrorEvent(t[0],{...n,error:new Error}))},r.set(e,t[1]))}}return p.call(n,t[0],t[1],t[2])}),n.removeEventListener=(f=n.removeEventListener,(...t)=>{if("processorerror"===t[0]){const e=r.get(t[1]);void 0!==e&&(r.delete(t[1]),t[1]=e)}return f.call(n,t[0],t[1],t[2])}),n}catch(t){if(11===t.code)throw r();throw t}var f,p;if(void 0===c)throw r();return(t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}})(l),n(i,a,c,l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(14);const i=t=>(e,n)=>{const i=t(e,t=>t.createChannelSplitter(n.numberOfOutputs));return Object(r.a)(i,n),(t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw Object(o.a)()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:t=>{if("explicit"!==t)throw Object(o.a)()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:t=>{if("discrete"!==t)throw Object(o.a)()}})})(i),i}},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(1031),o=n(1032),i=n(1033);t.exports=function(t,e){return r(t)||o(t,e)||i()}},,function(t,e,n){"use strict";n(821);var r,o=(r=n(992))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(822),n(965),n(967),n(970),n(972),n(974),n(976),n(978),n(980),n(982),n(984),n(986),n(988),n(203)},function(t,e,n){n(823),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(904),n(905),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(150),n(928),n(192),n(929),n(193),n(930),n(931),n(932),n(933),n(194),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),t.exports=n(18)},function(t,e,n){"use strict";var r=n(9),o=n(29),i=n(20),a=n(1),s=n(26),u=n(57).KEY,c=n(10),l=n(110),f=n(84),p=n(66),h=n(15),d=n(131),y=n(173),v=n(825),m=n(113),g=n(11),b=n(12),_=n(24),w=n(31),x=n(56),O=n(65),S=n(70),k=n(176),T=n(43),C=n(112),E=n(21),A=n(68),j=T.f,P=E.f,D=k.f,M=r.Symbol,I=r.JSON,R=I&&I.stringify,N=h("_hidden"),F=h("toPrimitive"),q={}.propertyIsEnumerable,V=l("symbol-registry"),L=l("symbols"),z=l("op-symbols"),B=Object.prototype,U="function"==typeof M&&!!C.f,W=r.QObject,$=!W||!W.prototype||!W.prototype.findChild,H=i&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=j(B,e);r&&delete B[e],P(t,e,n),r&&t!==B&&P(B,e,r)}:P,G=function(t){var e=L[t]=S(M.prototype);return e._k=t,e},K=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Q=function(t,e,n){return t===B&&Q(z,e,n),g(t),e=x(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,N)||P(t,N,O(1,{})),t[N][e]=!0),H(t,e,n)):P(t,e,n)},Y=function(t,e){g(t);for(var n,r=v(e=w(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},X=function(t){var e=q.call(this,t=x(t,!0));return!(this===B&&o(L,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=x(e,!0),t!==B||!o(L,e)||o(z,e)){var n=j(t,e);return!n||!o(L,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=D(w(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==N||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===B,r=D(n?z:w(t)),i=[],a=0;r.length>a;)!o(L,e=r[a++])||n&&!o(B,e)||i.push(L[e]);return i};U||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(z,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,O(1,n))};return i&&$&&H(B,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",(function(){return this._k})),T.f=J,E.f=Q,n(71).f=k.f=Z,n(104).f=X,C.f=tt,i&&!n(67)&&s(B,"propertyIsEnumerable",X,!0),d.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=A(h.store),ot=0;rt.length>ot;)y(rt[ot++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=M(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=c((function(){C.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return C.f(_(t))}}),I&&a(a.S+a.F*(!U||c((function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,R.apply(I,r)}}),M.prototype[F]||n(30)(M.prototype,F,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(110)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(68),o=n(112),i=n(104);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(70)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperty:n(21).f})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperties:n(175)})},function(t,e,n){var r=n(31),o=n(43).f;n(44)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(24),o=n(72);n(44)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(24),o=n(68);n(44)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(44)("getOwnPropertyNames",(function(){return n(176).f}))},function(t,e,n){var r=n(12),o=n(57).onFreeze;n(44)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(57).onFreeze;n(44)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(57).onFreeze;n(44)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12);n(44)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(44)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(44)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(177)})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(178)})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(135).set})},function(t,e,n){"use strict";var r=n(105),o={};o[n(15)("toStringTag")]="z",o+""!="[object z]"&&n(26)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(179)})},function(t,e,n){var r=n(21).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(20)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(12),o=n(72),i=n(15)("hasInstance"),a=Function.prototype;i in a||n(21).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(1),o=n(181);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(1),o=n(182);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(9),o=n(29),i=n(51),a=n(137),s=n(56),u=n(10),c=n(71).f,l=n(43).f,f=n(21).f,p=n(85).trim,h=r.Number,d=h,y=h.prototype,v="Number"==i(n(70)(y)),m="trim"in String.prototype,g=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;co)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(v?u((function(){y.valueOf.call(n)})):"Number"!=i(n))?a(new d(g(e)),n,h):g(e)};for(var b,_=n(20)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(d,b=_[w])&&!o(h,b)&&f(h,b,l(d,b));h.prototype=y,y.constructor=h,n(26)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(1),o=n(42),i=n(183),a=n(138),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(10)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,u=i(this,l),c=o(t),y="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?y+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):y+v}})},function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(183),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),o=n(9).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(184)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),o=n(184),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),o=n(182);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(1),o=n(181);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(1),o=n(185),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(1),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(1),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),o=n(139);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(1),o=n(140);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(868)})},function(t,e,n){var r=n(139),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return os||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(1),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,s=arguments.length,u=0;a0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(t,e,n){var r=n(1),o=Math.imul;r(r.S+r.F*n(10)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(185)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(139)})},function(t,e,n){var r=n(1),o=n(140),i=Math.exp;r(r.S+r.F*n(10)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),o=n(140),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(1),o=n(69),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(1),o=n(31),i=n(17);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(1),o=n(141)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(143),a="".endsWith;r(r.P+r.F*n(145)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},function(t,e,n){"use strict";var r=n(1),o=n(143);r(r.P+r.F*n(145)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(1);r(r.P,"String",{repeat:n(138)})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(143),a="".startsWith;r(r.P+r.F*n(145)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(27)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(27)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(27)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(27)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(27)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(27)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(27)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(27)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(27)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(27)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(27)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(27)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(27)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(1),o=n(24),i=n(56);r(r.P+r.F*n(10)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(1),o=n(903);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(10),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(26)(r,"toString",(function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(15)("toPrimitive"),o=Date.prototype;r in o||n(30)(o,r,n(906))},function(t,e,n){"use strict";var r=n(11),o=n(56);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(113)})},function(t,e,n){"use strict";var r=n(40),o=n(1),i=n(24),a=n(187),s=n(146),u=n(17),c=n(147),l=n(148);o(o.S+o.F*!n(114)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,m=0,g=l(p);if(v&&(y=r(y,d>2?arguments[2]:void 0,2)),null==g||h==Array&&s(g))for(n=new h(e=u(p.length));e>m;m++)c(n,m,v?y(p[m],m):p[m]);else for(f=g.call(p),n=new h;!(o=f.next()).done;m++)c(n,m,v?a(f,y,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(1),o=n(147);r(r.S+r.F*n(10)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),o=n(31),i=[].join;r(r.P+r.F*(n(103)!=Object||!n(35)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),o=n(134),i=n(51),a=n(69),s=n(17),u=[].slice;r(r.P+r.F*n(10)((function(){o&&u.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=s(c-o),f=new Array(l),p=0;p1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(190)}),n(73)("copyWithin")},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(149)}),n(73)("fill")},function(t,e,n){"use strict";var r=n(1),o=n(45)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("find")},function(t,e,n){"use strict";var r=n(1),o=n(45)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)(i)},function(t,e,n){n(87)("Array")},function(t,e,n){var r=n(9),o=n(137),i=n(21).f,a=n(71).f,s=n(144),u=n(115),c=r.RegExp,l=c,f=c.prototype,p=/a/g,h=/a/g,d=new c(p)!==p;if(n(20)&&(!d||n(10)((function(){return h[n(15)("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(d?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?u.call(t):e),n?this:f,c)};for(var y=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=a(l),m=0;v.length>m;)y(v[m++]);f.constructor=c,c.prototype=f,n(26)(r,"RegExp",c)}n(87)("RegExp")},function(t,e,n){"use strict";n(193);var r=n(11),o=n(115),i=n(20),a=/./.toString,s=function(t){n(26)(RegExp.prototype,"toString",t,!0)};n(10)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(t,e,n){"use strict";var r=n(11),o=n(17),i=n(152),a=n(116);n(117)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,p=[],h=0;null!==(f=a(u,c));){var d=String(f[0]);p[h]=d,""===d&&(u.lastIndex=i(c,o(u.lastIndex),l)),h++}return 0===h?null:p}]}))},function(t,e,n){"use strict";var r=n(11),o=n(24),i=n(17),a=n(42),s=n(152),u=n(116),c=Math.max,l=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(117)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var v=f.global;if(v){var m=f.unicode;f.lastIndex=0}for(var g=[];;){var b=u(f,p);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(f.lastIndex=s(p,i(f.lastIndex),m))}for(var _,w="",x=0,O=0;O=x&&(w+=p.slice(x,k)+j,x=k+S.length)}return w+p.slice(x)}];function y(t,e,r,i,a,s){var u=r+t.length,c=i.length,l=h;return void 0!==a&&(a=o(a),l=p),n.call(s,l,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var p=f(l/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}s=i[l-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(11),o=n(178),i=n(116);n(117)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var l=i(s,u);return o(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(144),o=n(11),i=n(106),a=n(152),s=n(17),u=n(116),c=n(151),l=n(10),f=Math.min,p=[].push,h=!l((function(){RegExp(4294967295,"y")}));n(117)("split",2,(function(t,e,n,l){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,l+"g");(i=c.call(d,o))&&!((a=d.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index=h));)d.lastIndex===i.index&&d.lastIndex++;return f===o.length?!s&&d.test("")||u.push(""):u.push(o.slice(f)),u.length>h?u.slice(0,h):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):d.call(String(o),n,r)},function(t,e){var r=l(d,t,this,e,d!==n);if(r.done)return r.value;var c=o(t),p=String(this),y=i(c,RegExp),v=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(h?"y":"g"),g=new y(h?c:"^(?:"+c.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===u(g,p)?[p]:[];for(var _=0,w=0,x=[];w0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(197),o=n(74);t.exports=n(120)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(9),i=n(45)(0),a=n(26),s=n(57),u=n(177),c=n(198),l=n(12),f=n(74),p=n(74),h=!o.ActiveXObject&&"ActiveXObject"in o,d=s.getWeak,y=Object.isExtensible,v=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?v(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(120)("WeakMap",m,g,c,!0,!0);p&&h&&(u((r=c.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(198),o=n(74);n(120)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),o=n(121),i=n(154),a=n(11),s=n(69),u=n(17),c=n(12),l=n(9).ArrayBuffer,f=n(106),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&l.isView,y=p.prototype.slice,v=o.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(10)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),i=new(f(this,p))(u(o-r)),c=new h(this),l=new h(i),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(43),o=n(72),i=n(29),a=n(1),s=n(12),u=n(11);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(43),o=n(1),i=n(11);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(1),o=n(72),i=n(11);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),o=n(11),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(200)})},function(t,e,n){var r=n(1),o=n(11),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(21),o=n(43),i=n(72),a=n(29),s=n(1),u=n(65),c=n(11),l=n(12);s(s.S,"Reflect",{set:function t(e,n,s){var f,p,h=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(l(p=i(e)))return t(p,n,s,h);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(h))return!1;if(f=o.f(h,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(h,n,f)}else r.f(h,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(h,s),!0)}})},function(t,e,n){var r=n(1),o=n(135);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(966),t.exports=n(18).Array.includes},function(t,e,n){"use strict";var r=n(1),o=n(111)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("includes")},function(t,e,n){n(968),t.exports=n(18).Array.flatMap},function(t,e,n){"use strict";var r=n(1),o=n(969),i=n(24),a=n(17),s=n(41),u=n(188);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return s(t),e=a(r.length),n=u(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(73)("flatMap")},function(t,e,n){"use strict";var r=n(113),o=n(12),i=n(17),a=n(40),s=n(15)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,f,p,h){for(var d,y,v=l,m=0,g=!!p&&a(p,h,3);m0)v=t(e,n,d,i(d.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}m++}return v}},function(t,e,n){n(971),t.exports=n(18).String.padStart},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(119),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(973),t.exports=n(18).String.padEnd},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(119),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(975),t.exports=n(18).String.trimLeft},function(t,e,n){"use strict";n(85)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(977),t.exports=n(18).String.trimRight},function(t,e,n){"use strict";n(85)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(979),t.exports=n(131).f("asyncIterator")},function(t,e,n){n(173)("asyncIterator")},function(t,e,n){n(981),t.exports=n(18).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(1),o=n(200),i=n(31),a=n(43),s=n(147);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})},function(t,e,n){n(983),t.exports=n(18).Object.values},function(t,e,n){var r=n(1),o=n(202)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(985),t.exports=n(18).Object.entries},function(t,e,n){var r=n(1),o=n(202)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(194),n(987),t.exports=n(18).Promise.finally},function(t,e,n){"use strict";var r=n(1),o=n(18),i=n(9),a=n(106),s=n(196);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(989),n(990),n(991),t.exports=n(18)},function(t,e,n){var r=n(9),o=n(1),i=n(119),a=[].slice,s=/MSIE .\./.test(i),u=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(1),o=n(153);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(150),o=n(68),i=n(26),a=n(9),s=n(30),u=n(86),c=n(15),l=c("iterator"),f=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),y=0;yj.length&&j.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return r(o,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c