From: Guillaume Pellerin Date: Fri, 6 Feb 2026 14:44:05 +0000 (+0100) Subject: remove conf notification on save X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5931a9946b75dff55558d8d782c8ea53a4e1195d;p=teleforma.git remove conf notification on save --- diff --git a/app/settings.py b/app/settings.py index be381fc8..2bab98e9 100644 --- a/app/settings.py +++ b/app/settings.py @@ -382,7 +382,7 @@ CHANNEL_LAYERS = { # channel access point from django if DEBUG: - CHANNEL_URL = "http://channels:8000" + CHANNEL_URL = "http://127.0.0.1:9004" else: CHANNEL_URL = "/var/run/app/asgi.sock" diff --git a/env/dev.yml b/env/dev.yml index 971a86cb..e12595e0 100644 --- a/env/dev.yml +++ b/env/dev.yml @@ -42,7 +42,7 @@ services: - ./teleforma/:/srv/src/teleforma/teleforma - ./var/log/app:/var/log/app ports: - - "9002:8000" + - "9004:8000" links: - db - redis diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 78a7a466..0c1f61ec 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -514,6 +514,8 @@ class Conference(models.Model): response = client.post("http://localhost" + reverse('teleforma-live-conference-notify'), data={'id': self.id}, timeout=120.0) assert response.status_code == 200 + self.notified_live = True + self.save() def save(self, *args, **kwargs): if not self.public_id: @@ -668,7 +670,7 @@ class Conference(models.Model): indexes = [ models.Index(fields=['course', 'course_type', 'period', 'streaming', '-date_begin' ]), - ] + ] def get_absolute_url(self): if self.streaming: @@ -680,14 +682,6 @@ class Conference(models.Model): kwargs={'pk': media.id, 'period_id': self.period.id}) -def notif_conference(sender, instance, *args, **kwargs): - if not instance.notified_live: - instance.notify_sync() - instance.notified_live = True - instance.save() - -post_save.connect(notif_conference, sender=Conference) - class StreamingServer(models.Model): diff --git a/teleforma/static/teleforma/dist/app.js b/teleforma/static/teleforma/dist/app.js index d8cd8b53..0f87347c 100644 --- a/teleforma/static/teleforma/dist/app.js +++ b/teleforma/static/teleforma/dist/app.js @@ -10,7 +10,7 @@ var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){ * (c) 2015-present Evan You * @license MIT */ -function E(e){return E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){return O(e)||C(e)||j()}function O(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(H.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"===typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return T({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return F(this,e)}});var o=e.__decorators__;o&&(o.forEach((function(e){return e(t)})),delete e.__decorators__);var a=Object.getPrototypeOf(e.prototype),i=a instanceof r["a"]?a.constructor:r["a"],s=i.extend(t);return q(s,e,i),B()&&I(s,e),s}var $={prototype:!0,arguments:!0,callee:!0,caller:!0};function q(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!$[r]){var o=Object.getOwnPropertyDescriptor(e,r);if(!o||o.configurable){var a=Object.getOwnPropertyDescriptor(t,r);if(!N){if("cid"===r)return;var i=Object.getOwnPropertyDescriptor(n,r);if(!D(a.value)&&i&&i.value===a.value)return}0,Object.defineProperty(e,r,a)}}}))}function V(e){return"function"===typeof e?U(e):function(t){return U(t,e)}}V.registerHooks=function(e){H.push.apply(H,R(e))};var z=V;"undefined"!==typeof Reflect&&Reflect.getMetadata;var X=n("91b2"),Y=n.n(X),G=(n("4768"),function(e){_(n,e);var t=M(n);function n(){var e;return h(this,n),e=t.apply(this,arguments),e.socket=null,e.rooms=[{roomId:"global",roomName:"",avatar:"",users:[]}],e.messagesLoaded=!1,e.messages=[],e.currentUserId=null,e}return g(n,[{key:"created",value:function(){var e="",t=document.getElementById("room-info");t&&(e=t.textContent);var n=null;if(!e)throw"No room info provided";n=JSON.parse(e),this.rooms=[{roomId:n.room_name,roomName:n.room_title,avatar:"",users:[{_id:1,username:"Fake user 1",avatar:"assets/imgs/doe.png",status:{state:"online",lastChanged:"today, 14:30"}},{_id:2,username:"Fake user 2",avatar:"assets/imgs/snow.png",status:{state:"online",lastChanged:"14 July, 20:00"}},{_id:3,username:"Fake user 3",avatar:"assets/imgs/snow.png",status:{state:"online",lastChanged:"14 July, 20:00"}}]}],this.connect(n.room_name),this.currentUserId=n.user_id}},{key:"connect",value:function(e){var t="wss";"https:"!=window.location.protocol&&(t="ws"),this.socket=new WebSocket(t+"://"+window.location.host+"/ws/chat/"+e+"/"),this.fetchMessages(),this.socket.onclose=function(){console.log("Chat socket closed")}}},{key:"fetchMessages",value:function(){var e=p(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.socket.onmessage=function(e){var n=JSON.parse(e.data),r=n.type;if("initial"!=r||!t.messagesLoaded){var o=n.messages;if(t.messages=[].concat(f(t.messages),f(o)),"initial"==r){t.messagesLoaded=!0;var a=document.querySelector(".vac-container-scroll");t.$nextTick((function(){a&&(a.scrollTop=a.scrollHeight)}))}}};case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"sendMessage",value:function(e){var t=e.content,n=e.replyMessage;this.socket.send(JSON.stringify({message:t,replyTo:n?n._id:null}))}}]),n}(r["a"]));G=A([z({components:{ChatWindow:Y.a}})],G);var W=G,K=W;n("8d5c");function Z(e,t,n,r,o,a,i,s){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var Q=Z(K,o,a,!1,null,null,null),J=Q.exports,ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"notifications",tabindex:"0"},on:{focus:e.open,focusout:e.close}},[n("div",{staticClass:"bell"},[n("img",{staticClass:"bell-image",attrs:{src:"/static/teleforma/images/bell.svg",alt:"Notifications",title:"Notifications"}}),e.numberOfUnread>0?n("span",{staticClass:"bell-count"},[e._v(e._s(e.numberOfUnread))]):e._e()]),e.opened?n("div",{staticClass:"notifications-list"},[n("ul",e._l(e.messages,(function(e){return n("NotificationMessage",{key:e._id,attrs:{id:e._id,content:e.content,url:e.url,viewed:e.viewed,"creation-date":e.created}})})),1)]):e._e()])},te=[],ne=(n("c740"),n("4de4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{on:{click:function(t){return e.onClick()},mouseup:function(t){return"button"in t&&1!==t.button?null:e.onMiddleClick()}}},[n("span",{class:{unviewed:!e.viewed,text:!0}},[e._v(e._s(e.content))]),n("span",{staticClass:"date"},[e._v(e._s(e.relativeCreationDate)+" ")])])}),re=[];n("a9e3");function oe(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ae(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function ie(e){ae(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function se(e){ae(1,arguments);var t=ie(e);return t.setHours(0,0,0,0),t}var ce=864e5;function le(e,t){ae(2,arguments);var n=se(e),r=se(t),o=n.getTime()-oe(n),a=r.getTime()-oe(r);return Math.round((o-a)/ce)}function ue(e){return ae(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function fe(e){if(ae(1,arguments),!ue(e)&&"number"!==typeof e)return!1;var t=ie(e);return!isNaN(Number(t))}var de={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pe=function(e,t,n){var r,o=de[e];return r="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},he=pe;function me(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var ge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ve={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},be={date:me({formats:ge,defaultWidth:"full"}),time:me({formats:ve,defaultWidth:"full"}),dateTime:me({formats:_e,defaultWidth:"full"})},ye=be,we={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xe=function(e,t,n,r){return we[e]},Se=xe;function ke(e){return function(t,n){var r,o=n||{},a=o.context?String(o.context):"standalone";if("formatting"===a&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=o.width?String(o.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var c=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[c]}var u=e.argumentCallback?e.argumentCallback(t):t;return r[u]}}var Me={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ee={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Te={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Re={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Oe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ce=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},je={ordinalNumber:Ce,era:ke({values:Me,defaultWidth:"wide"}),quarter:ke({values:Ae,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ke({values:Ee,defaultWidth:"wide"}),day:ke({values:Te,defaultWidth:"wide"}),dayPeriod:ke({values:Re,defaultWidth:"wide",formattingValues:Oe,defaultFormattingWidth:"wide"})},Be=je;function Ie(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?Le(c,(function(e){return e.test(s)})):Pe(c,(function(e){return e.test(s)}));i=e.valueCallback?e.valueCallback(l):l,i=n.valueCallback?n.valueCallback(i):i;var u=t.slice(s.length);return{value:i,rest:u}}}function Pe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Le(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(o.length);return{value:i,rest:s}}}var De=/^(\d+)(th|st|nd|rd)?/i,Fe=/\d+/i,He={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ue={any:[/^b/i,/^(a|c)/i]},$e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qe={any:[/1/i,/2/i,/3/i,/4/i]},Ve={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ze={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Xe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},We={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ke={ordinalNumber:Ne({matchPattern:De,parsePattern:Fe,valueCallback:function(e){return parseInt(e,10)}}),era:Ie({matchPatterns:He,defaultMatchWidth:"wide",parsePatterns:Ue,defaultParseWidth:"any"}),quarter:Ie({matchPatterns:$e,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ie({matchPatterns:Ve,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),day:Ie({matchPatterns:Xe,defaultMatchWidth:"wide",parsePatterns:Ye,defaultParseWidth:"any"}),dayPeriod:Ie({matchPatterns:Ge,defaultMatchWidth:"any",parsePatterns:We,defaultParseWidth:"any"})},Ze=Ke,Qe={code:"en-US",formatDistance:he,formatLong:ye,formatRelative:Se,localize:Be,match:Ze,options:{weekStartsOn:0,firstWeekContainsDate:1}},Je=Qe;function et(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function tt(e,t){ae(2,arguments);var n=ie(e).getTime(),r=et(t);return new Date(n+r)}function nt(e,t){ae(2,arguments);var n=et(t);return tt(e,-n)}var rt=864e5;function ot(e){ae(1,arguments);var t=ie(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/rt)+1}function at(e){ae(1,arguments);var t=1,n=ie(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function st(e){ae(1,arguments);var t=it(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=at(n);return r}var ct=6048e5;function lt(e){ae(1,arguments);var t=ie(e),n=at(t).getTime()-st(t).getTime();return Math.round(n/ct)+1}function ut(e,t){ae(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:et(o),i=null==n.weekStartsOn?a:et(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ie(e),c=s.getUTCDay(),l=(c=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=new Date(0);l.setUTCFullYear(r+1,0,c),l.setUTCHours(0,0,0,0);var u=ut(l,t),f=new Date(0);f.setUTCFullYear(r,0,c),f.setUTCHours(0,0,0,0);var d=ut(f,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function dt(e,t){ae(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:et(o),i=null==n.firstWeekContainsDate?a:et(n.firstWeekContainsDate),s=ft(e,t),c=new Date(0);c.setUTCFullYear(s,0,i),c.setUTCHours(0,0,0,0);var l=ut(c,t);return l}var pt=6048e5;function ht(e,t){ae(1,arguments);var n=ie(e),r=ut(n,t).getTime()-dt(n,t).getTime();return Math.round(r/pt)+1}function mt(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();while(r.length0?n:1-n;return mt("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):mt(n+1,2)},d:function(e,t){return mt(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return mt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return mt(e.getUTCHours(),t.length)},m:function(e,t){return mt(e.getUTCMinutes(),t.length)},s:function(e,t){return mt(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return mt(o,t.length)}},vt=gt,_t={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bt={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return vt.y(e,t)},Y:function(e,t,n,r){var o=ft(e,r),a=o>0?o:1-o;if("YY"===t){var i=a%100;return mt(i,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):mt(a,t.length)},R:function(e,t){var n=it(e);return mt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return mt(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return mt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return mt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return vt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return mt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=ht(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):mt(o,t.length)},I:function(e,t,n){var r=lt(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):mt(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):vt.d(e,t)},D:function(e,t,n){var r=ot(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):mt(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return mt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return mt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return mt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?_t.noon:0===o?_t.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?_t.evening:o>=12?_t.afternoon:o>=4?_t.morning:_t.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vt.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):vt.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):mt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):mt(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):vt.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):vt.s(e,t)},S:function(e,t){return vt.S(e,t)},X:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return wt(a);case"XXXX":case"XX":return xt(a);case"XXXXX":case"XXX":default:return xt(a,":")}},x:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"x":return wt(a);case"xxxx":case"xx":return xt(a);case"xxxxx":case"xxx":default:return xt(a,":")}},O:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yt(a,":");case"OOOO":default:return"GMT"+xt(a,":")}},z:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yt(a,":");case"zzzz":default:return"GMT"+xt(a,":")}},t:function(e,t,n,r){var o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return mt(a,t.length)},T:function(e,t,n,r){var o=r._originalDate||e,a=o.getTime();return mt(a,t.length)}};function yt(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+mt(a,2)}function wt(e,t){if(e%60===0){var n=e>0?"-":"+";return n+mt(Math.abs(e)/60,2)}return xt(e,t)}function xt(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),a=mt(Math.floor(o/60),2),i=mt(o%60,2);return r+a+n+i}var St=bt;function kt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Mt(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function At(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return kt(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",kt(o,t)).replace("{{time}}",Mt(a,t))}var Et={p:Mt,P:At},Tt=Et,Rt=["D","DD"],Ot=["YY","YYYY"];function Ct(e){return-1!==Rt.indexOf(e)}function jt(e){return-1!==Ot.indexOf(e)}function Bt(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var It=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lt=/^'([^]*?)'?$/,Nt=/''/g,Dt=/[a-zA-Z]/;function Ft(e,t,n){ae(2,arguments);var r=String(t),o=n||{},a=o.locale||Je,i=a.options&&a.options.firstWeekContainsDate,s=null==i?1:et(i),c=null==o.firstWeekContainsDate?s:et(o.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=a.options&&a.options.weekStartsOn,u=null==l?0:et(l),f=null==o.weekStartsOn?u:et(o.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var d=ie(e);if(!fe(d))throw new RangeError("Invalid time value");var p=oe(d),h=nt(d,p),m={firstWeekContainsDate:c,weekStartsOn:f,locale:a,_originalDate:d},g=r.match(Pt).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=Tt[t];return n(e,a.formatLong,m)}return e})).join("").match(It).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Ht(n);var i=St[r];if(i)return!o.useAdditionalWeekYearTokens&&jt(n)&&Bt(n,t,e),!o.useAdditionalDayOfYearTokens&&Ct(n)&&Bt(n,t,e),i(h,n,a.localize,m);if(r.match(Dt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return g}function Ht(e){return e.match(Lt)[1].replace(Nt,"'")}function Ut(e,t,n){ae(2,arguments);var r=ie(e),o=ie(t),a=n||{},i=a.locale,s=void 0===i?Je:i,c=a.weekStartsOn,l=void 0===c?0:c;if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");if(!s.formatRelative)throw new RangeError("locale must contain formatRelative property");var u,f=le(r,o);if(isNaN(f))throw new RangeError("Invalid time value");u=f<-6?"other":f<-1?"lastWeek":f<0?"yesterday":f<1?"today":f<2?"tomorrow":f<7?"nextWeek":"other";var d=nt(r,oe(r)),p=nt(o,oe(o)),h=s.formatRelative(u,d,p,{locale:s,weekStartsOn:l});return Ft(r,h,{locale:s,weekStartsOn:l})}var $t={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},qt=function(e,t,n){var r,o=$t[e];return r="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},Vt=qt,zt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Xt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Yt={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gt={date:me({formats:zt,defaultWidth:"full"}),time:me({formats:Xt,defaultWidth:"full"}),dateTime:me({formats:Yt,defaultWidth:"full"})},Wt=Gt,Kt={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},Zt=function(e,t,n,r){return Kt[e]},Qt=Zt,Jt={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},en={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},tn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},nn={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},rn={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},on=function(e,t){var n=Number(e),r=null===t||void 0===t?void 0:t.unit;if(0===n)return"0";var o,a=["year","week","hour","minute","second"];return o=1===n?r&&a.includes(r)?"ère":"er":"ème",n+o},an={ordinalNumber:on,era:ke({values:Jt,defaultWidth:"wide"}),quarter:ke({values:en,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ke({values:tn,defaultWidth:"wide"}),day:ke({values:nn,defaultWidth:"wide"}),dayPeriod:ke({values:rn,defaultWidth:"wide"})},sn=an,cn=/^(\d+)(ième|ère|ème|er|e)?/i,ln=/\d+/i,un={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},fn={any:[/^av/i,/^ap/i]},dn={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},pn={any:[/1/i,/2/i,/3/i,/4/i]},hn={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},mn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},gn={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},vn={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},_n={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},bn={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},yn={ordinalNumber:Ne({matchPattern:cn,parsePattern:ln,valueCallback:function(e){return parseInt(e)}}),era:Ie({matchPatterns:un,defaultMatchWidth:"wide",parsePatterns:fn,defaultParseWidth:"any"}),quarter:Ie({matchPatterns:dn,defaultMatchWidth:"wide",parsePatterns:pn,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ie({matchPatterns:hn,defaultMatchWidth:"wide",parsePatterns:mn,defaultParseWidth:"any"}),day:Ie({matchPatterns:gn,defaultMatchWidth:"wide",parsePatterns:vn,defaultParseWidth:"any"}),dayPeriod:Ie({matchPatterns:_n,defaultMatchWidth:"any",parsePatterns:bn,defaultParseWidth:"any"})},wn=yn,xn={code:"fr",formatDistance:Vt,formatLong:Wt,formatRelative:Qt,localize:sn,match:wn,options:{weekStartsOn:1,firstWeekContainsDate:4}},Sn=xn,kn=n("bc3a"),Mn=n.n(kn),An=r["a"].extend({props:{id:Number,content:String,url:String,viewed:Boolean,creationDate:String}}),En=function(e){_(n,e);var t=M(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"setAsViewed",value:function(){var e=p(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!1!==this.$props.viewed){e.next=3;break}return e.next=3,Mn.a.post("/notification",{id:this.$props.id,viewed:!0});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onClick",value:function(){var e=p(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.setAsViewed(),this.$props.url&&(window.location.href=this.$props.url);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onMiddleClick",value:function(){var e=p(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.setAsViewed(),this.$props.url&&window.open(this.$props.url,"_blank");case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"relativeCreationDate",get:function(){return Ut(new Date(this.$props.creationDate),new Date,{locale:Sn})}}]),n}(An);En=A([z],En);var Tn=En,Rn=Tn,On=(n("a58e"),Z(Rn,ne,re,!1,null,"3f1187ff",null)),Cn=On.exports,jn=function(e){_(n,e);var t=M(n);function n(){var e;return h(this,n),e=t.apply(this,arguments),e.socket=null,e.messagesLoaded=!1,e.messages=[],e.currentUserId=null,e.opened=!1,e}return g(n,[{key:"created",value:function(){var e=document.getElementById("user_id");e&&(this.currentUserId=parseInt(e.getAttribute("value"),10),this.connect())}},{key:"connect",value:function(){var e="wss";"https:"!=window.location.protocol&&(e="ws"),this.socket=new WebSocket(e+"://"+window.location.host+"/ws/notification/"+this.currentUserId+"/"),this.fetchMessages(),this.socket.onclose=function(){console.log("Chat socket closed")}}},{key:"fetchMessages",value:function(){var e=p(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.socket.onmessage=function(e){var n=JSON.parse(e.data),r=n.type;if("initial"!==r||!t.messagesLoaded){var o=n.messages,a=null;"new"===r&&1===o.length&&(a=t.messages.findIndex((function(e){return e._id===o[0]._id}))),t.messages=null!==a&&-1!==a?[].concat(f(t.messages.slice(0,a)),[o[0]],f(t.messages.slice(a+1))):[].concat(f(o),f(t.messages)),"initial"===r&&(t.messagesLoaded=!0)}};case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"open",value:function(){this.opened=!0}},{key:"close",value:function(){this.opened=!1}},{key:"numberOfUnread",get:function(){return this.messages.filter((function(e){return!e.viewed})).length}}]),n}(r["a"]);jn=A([z({components:{NotificationMessage:Cn}})],jn);var Bn=jn,In=Bn,Pn=(n("9340"),Z(In,ee,te,!1,null,"d06c11f4",null)),Ln=Pn.exports;Mn.a.defaults.xsrfHeaderName="X-CSRFTOKEN",Mn.a.defaults.xsrfCookieName="csrftoken",Mn.a.defaults.withCredentials=!0,r["a"].config.productionTip=!1,document.getElementById("chat")&&new r["a"]({render:function(e){return e(J)}}).$mount("#chat"),document.getElementById("notifications")&&new r["a"]({render:function(e){return e(Ln)}}).$mount("#notifications")},"91b2":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},"0206":function(e,t){function n(e){return new Int8Array(e)}function r(e){return new Int16Array(e)}function o(e){return new Int32Array(e)}function a(e){return new Float32Array(e)}function i(e){return new Float64Array(e)}function s(e){if(1==e.length)return a(e[0]);var t=e[0];e=e.slice(1);for(var n=[],r=0;r]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,m=u;return void 0!==f&&(f=o(f),m=l),s(d,m,(function(o,s){var l;switch(i(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,p);case"<":l=f[c(s,1,-1)];break;default:var u=+s;if(0===u)return o;if(u>h){var d=a(u/10);return 0===d?o:d<=h?void 0===r[d-1]?i(s,1):r[d-1]+i(s,1):o}l=r[u-1]}return void 0===l?"":l}))}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),a=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){var r=n("e330"),o=Error,a=r("".replace),i=function(e){return String(o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=a(e,s,"");return e}},"0d51":function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},"107c":function(e,t,n){var r=n("d039"),o=n("da84"),a=o.RegExp;e.exports=r((function(){var e=a("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"13d2":function(e,t,n){var r=n("d039"),o=n("1626"),a=n("1a2d"),i=n("83ab"),s=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),u=l.enforce,f=l.get,d=Object.defineProperty,p=i&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=u(e);return a(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&f(this).source||c(this)}),"toString")},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,a=n("a640"),i=n("2d00"),s=n("605d"),c=a("reduce"),l=!s&&i>79&&i<83;r({target:"Array",proto:!0,forced:!c||l},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c65b"),o=n("825a"),a=n("1626"),i=n("c6b6"),s=n("9263"),c=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var l=r(n,e,t);return null!==l&&o(l),l}if("RegExp"===i(e))return r(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},1652:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n("254c");function o(){return function(e){this.j=[],this.T=e||null}}var a=o();a.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});function c(e,t,n,r){var o=0,a=e.length,s=t,c=[],l=void 0;while(o=a)return[];while(o1?arguments[1]:void 0)}))},"1d80":function(e,t,n){var r=n("7234"),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},"23cb":function(e,t,n){var r=n("5926"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,a=n("9112"),i=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,f,d,p,h,m=e.target,g=e.global,v=e.stat;if(u=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(u,f),d=h&&h.value):d=u[f],n=l(g?f:m+(v?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),i(u,f,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2466:function(e,t){function n(){this.sum=0,this.seen=0,this.want=0,this.pos=0,this.size=0,this.bag=null,this.nVbrNumFrames=0,this.nBytesWritten=0,this.TotalFrameSize=0}e.exports=n},2474:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode),a=r.Float,i=r.ShortBlock,s=r.Util,c=r.Arrays,l=(r.new_array_n,r.new_byte,r.new_double,r.new_float),u=r.new_float_n,f=r.new_int,d=(r.new_int_n,r.assert),p=n("8100"),h=n("4b5e");function m(){var e=new p,t=2.302585092994046,n=2,r=16,m=2,g=16,v=.34,_=1/217621504/(h.BLKSIZE/2),b=.01,y=.8,w=.6,x=.3,S=3.5,k=21,M=.2302585093;function A(e){return e}function E(e,t){for(var n=0,r=0;r=0;--m){var g=o[a+0][m],v=o[a+1][m];o[a+0][m]=(g+v)*s.SQRT2*.5,o[a+1][m]=(g-v)*s.SQRT2*.5}for(var _=2;_>=0;--_)for(m=h.BLKSIZE_s-1;m>=0;--m){g=i[c+0][_][m],v=i[c+1][_][m];i[c+0][_][m]=(g+v)*s.SQRT2*.5,i[c+1][_][m]=(g-v)*s.SQRT2*.5}}n[0]=A(o[a+0][0]),n[0]*=n[0];for(m=h.BLKSIZE/2-1;m>=0;--m){var b=o[a+0][h.BLKSIZE/2-m],y=o[a+0][h.BLKSIZE/2+m];n[h.BLKSIZE/2-m]=A(.5*(b*b+y*y))}for(_=2;_>=0;--_){r[_][0]=i[c+0][_][0],r[_][0]*=r[_][0];for(m=h.BLKSIZE_s/2-1;m>=0;--m){b=i[c+0][_][h.BLKSIZE_s/2-m],y=i[c+0][_][h.BLKSIZE_s/2+m];r[_][h.BLKSIZE_s/2-m]=A(.5*(b*b+y*y))}}var w=0;for(m=11;me){if(!(t=t*O)return e+t;i=e/t}if(d(e>=0),d(t>=0),e+=t,r+3<=6){if(i>=R)return e;var c=0|s.FAST_LOG10_X(i,16);return e*D[c]}var l,u;c=0|s.FAST_LOG10_X(i,16);return t=0!=a?o.ATH.cb_s[n]*o.ATH.adjust:o.ATH.cb_l[n]*o.ATH.adjust,d(t>=0),et?(l=1,c<=13&&(l=F[c]),u=s.FAST_LOG10_X(e/t,10/15),e*((N[c]-l)*u+l)):c>13?e:e*F[c]:e*N[c]}var U=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1];function $(e,t,n){var r;if(e<0&&(e=0),t<0&&(t=0),e<=0)return t;if(t<=0)return e;if(r=t>e?t/e:e/t,-2<=n&&n<=2){if(r>=R)return e+t;var o=0|s.FAST_LOG10_X(r,16);return(e+t)*U[o]}return r1){for(var r=0;r1.58*e.thm[1].l[t]||e.thm[1].l[t]>1.58*e.thm[0].l[t])){var n=e.mld_l[t]*e.en[3].l[t],r=Math.max(e.thm[2].l[t],Math.min(e.thm[3].l[t],n));n=e.mld_l[t]*e.en[2].l[t];var o=Math.max(e.thm[3].l[t],Math.min(e.thm[2].l[t],n));e.thm[2].l[t]=r,e.thm[3].l[t]=o}for(t=0;t1.58*e.thm[1].s[t][a]||e.thm[1].s[t][a]>1.58*e.thm[0].s[t][a])){n=e.mld_s[t]*e.en[3].s[t][a],r=Math.max(e.thm[2].s[t][a],Math.min(e.thm[3].s[t][a],n));n=e.mld_s[t]*e.en[2].s[t][a];o=Math.max(e.thm[3].s[t][a],Math.min(e.thm[2].s[t][a],n));e.thm[2].s[t][a]=r,e.thm[3].s[t][a]=o}}function z(e,t,n){var r=t,o=Math.pow(10,n);t*=2,r*=2;for(var a=0;a0)}e.thm[2].l[a]=Math.min(l,e.thm[2].l[a]),e.thm[3].l[a]=Math.min(u,e.thm[3].l[a])}o*=h.BLKSIZE_s/h.BLKSIZE;for(a=0;a0)}e.thm[2].s[a][s]=Math.min(e.thm[2].s[a][s],l),e.thm[3].s[a][s]=Math.min(e.thm[3].s[a][s],u)}}function X(e,t,n,r,o){var a,i,s=0,c=0;for(a=i=0;a=0),d(n[i]>=0),s+=t[i],c+=n[i],i++;if(e.en[r].s[a][o]=s,e.thm[r].s[a][o]=c,i>=u){++a;break}d(t[i]>=0),d(n[i]>=0);var p=e.PSY.bo_s_weight[a],m=1-p;s=p*t[i],c=p*n[i],e.en[r].s[a][o]+=s,e.thm[r].s[a][o]+=c,s=m*t[i],c=m*n[i]}for(;a=0),d(n[a]>=0),i+=t[a],s+=n[a],a++;if(e.en[r].l[o]=i,e.thm[r].l[o]=s,a>=l){++o;break}d(t[a]>=0),d(n[a]>=0);var f=e.PSY.bo_l_weight[o],p=1-f;i=f*t[a],s=f*n[a],e.en[r].l[o]+=i,e.thm[r].l[o]+=s,i=p*t[a],s=p*n[a]}for(;o=0)}for(;s<=h.CBANDS;++s)n[s]=0,r[s]=0}function W(e,t,n,r){var o=e.internal_flags;e.short_blocks!=i.short_block_coupled||0!=t[0]&&0!=t[1]||(t[0]=t[1]=0);for(var a=0;a=1?e:n<=0?t:t>0?Math.pow(e/t,n)*t:0}var Z=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130];function Q(e,n){for(var r=309.07,o=0;o0){var c=i*n,l=e.en.s[o][a];l>c&&(l>1e10*c?r+=Z[o]*(10*t):(d(c>0),r+=Z[o]*s.FAST_LOG10(l/c)))}}return r}var J=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1];function ee(e,n){for(var r=281.0575,o=0;o0){var i=a*n,c=e.en.l[o];c>i&&(c>1e10*i?r+=J[o]*(10*t):(d(i>0),r+=J[o]*s.FAST_LOG10(c/i)))}}return r}function te(e,t,n,r,o){var a,i;for(a=i=0;a=0),c+=u,l=0),d(c>=0),d(n[a]>=0),d(r[a]>=0),d(o[a]>=0)}}function ne(e,t,n,r){var o=P.length-1,a=0,i=n[a]+n[a+1];if(d(i>=0),i>0){var s=t[a];s0),i=20*(2*s-i)/(i*(e.numlines_l[a]+e.numlines_l[a+1]-1));var c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;for(a=1;a=0),i>0){s=t[a-1];s0),i=20*(3*s-i)/(i*(e.numlines_l[a-1]+e.numlines_l[a]+e.numlines_l[a+1]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;if(d(a>0),d(a==e.npart_l-1),i=n[a-1]+n[a],d(i>=0),i>0){s=t[a-1];s0),i=20*(2*s-i)/(i*(e.numlines_l[a-1]+e.numlines_l[a]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;d(a==e.npart_l-1)}var re=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function oe(t,n,r,o,a,i,c,l){var u=t.internal_flags;if(o<2)e.fft_long(u,c[l],o,n,r);else if(2==o)for(var f=h.BLKSIZE-1;f>=0;--f){var d=c[l+0][f],p=c[l+1][f];c[l+0][f]=(d+p)*s.SQRT2*.5,c[l+1][f]=(d-p)*s.SQRT2*.5}i[0]=A(c[l+0][0]),i[0]*=i[0];for(f=h.BLKSIZE/2-1;f>=0;--f){var m=c[l+0][h.BLKSIZE/2-f],g=c[l+0][h.BLKSIZE/2+f];i[h.BLKSIZE/2-f]=A(.5*(m*m+g*g))}var v=0;for(f=11;f=0;--f){var d=c[l+0][a][f],p=c[l+1][a][f];c[l+0][a][f]=(d+p)*s.SQRT2*.5,c[l+1][a][f]=(d-p)*s.SQRT2*.5}i[a][0]=c[l+0][a][0],i[a][0]*=i[a][0];for(f=h.BLKSIZE_s/2-1;f>=0;--f){var m=c[l+0][a][h.BLKSIZE_s/2-f],g=c[l+0][a][h.BLKSIZE_s/2+f];i[a][h.BLKSIZE_s/2-f]=A(.5*(m*m+g*g))}}function ie(e,t,n,r){var o=e.internal_flags;2==e.athaa_loudapprox&&n<2&&(o.loudness_sq[t][n]=o.loudness_sq_save[n],o.loudness_sq_save[n]=E(r,o))}this.L3psycho_anal_ns=function(e,t,a,i,s,p,m,g,v,_){var b,S,M,A,E,R,O,C,j,B,I=e.internal_flags,L=u([2,h.BLKSIZE]),N=u([2,3,h.BLKSIZE_s]),D=l(h.CBANDS+1),F=l(h.CBANDS+1),U=l(h.CBANDS+2),$=f(2),Z=f(2),J=u([2,576]),oe=f(h.CBANDS+2),ae=f(h.CBANDS+2);for(c.fill(ae,0),b=I.channels_out,e.mode==MPEGMode.JOINT_STEREO&&(b=4),j=e.VBR==o.vbr_off?0==I.ResvMax?0:I.ResvSize/I.ResvMax*.5:e.VBR==o.vbr_rh||e.VBR==o.vbr_mtrh||e.VBR==o.vbr_mt?.6:1,S=0;S2&&(p[i][S].en.assign(I.en[S+2]),p[i][S].thm.assign(I.thm[S+2]))}for(S=0;S0),me[A]=pe[A]/I.nsPsy.last_en_subshort[S][A+4],he[0]+=pe[A];if(2==S)for(A=0;A<576;A++){var xe,Se;xe=J[0][A],Se=J[1][A],J[0][A]=xe+Se,J[1][A]=xe-Se}var ke=J[1&S],Me=0;for(A=0;A<9;A++){for(var Ae=Me+64,Ee=1;Mepe[A+3-2]?(d(pe[A+3-2]>0),Ee/=pe[A+3-2]):pe[A+3-2]>10*Ee?(d(Ee>0),Ee=pe[A+3-2]/(10*Ee)):Ee=0,me[A+3]=Ee}if(e.analysis){var Te=me[0];for(A=1;A<12;A++)Tede&&(be[A/3]=A%3+1);for(A=1;A<4;A++){var Re;he[A-1]>he[A]?(d(he[A]>0),Re=he[A-1]/he[A]):(d(he[A-1]>0),Re=he[A]/he[A-1]),Re<1.7&&(be[A]=0,1==A&&(be[0]=0))}for(0!=be[0]&&0!=I.nsPsy.lastAttacks[S]&&(be[0]=0),3!=I.nsPsy.lastAttacks[S]&&be[0]+be[1]+be[2]+be[3]==0||(ge=0,0!=be[1]&&0!=be[0]&&(be[1]=0),0!=be[2]&&0!=be[1]&&(be[2]=0),0!=be[3]&&0!=be[2]&&(be[3]=0)),S<2?Z[S]=ge:0==ge&&(Z[0]=Z[1]=0),v[S]=I.tot_ener[S],fe=N,ue=L,T(e,ye,we,ue,1&S,fe,1&S,i,S,t,a),te(I,ye,D,ve,_e),ne(I,ve,_e,oe),C=0;C<3;C++){var Oe,Ce;for(G(e,we,F,U,S,C),X(I,F,U,S,C),O=0;O=2||1==be[C+1]){var je=0!=C?C-1:2;Ee=K(I.thm[S].s[O][je],Ce,w*j);Ce=Math.min(Ce,Ee)}if(1==be[C]){je=0!=C?C-1:2,Ee=K(I.thm[S].s[O][je],Ce,x*j);Ce=Math.min(Ce,Ee)}else if(0!=C&&3==be[C-1]||0==C&&3==I.nsPsy.lastAttacks[S]){je=2!=C?C+1:0,Ee=K(I.thm[S].s[O][je],Ce,x*j);Ce=Math.min(Ce,Ee)}Oe=pe[3*C+3]+pe[3*C+4]+pe[3*C+5],6*pe[3*C+5]0&&q(e,e.interChRatio),e.mode==MPEGMode.JOINT_STEREO)&&(V(I),B=e.msfix,Math.abs(B)>0&&z(I,B,e.ATHlower*I.ATH.adjust));for(W(e,Z,_,$),S=0;S1?(Le=g,Fe=-2,Ne=h.NORM_TYPE,_[0]!=h.SHORT_TYPE&&_[1]!=h.SHORT_TYPE||(Ne=h.SHORT_TYPE),De=p[i][S-2]):(Le=m,Fe=0,Ne=_[S],De=s[i][S]),Ne==h.SHORT_TYPE?Le[Fe+S]=Q(De,I.masking_lower):Le[Fe+S]=ee(De,I.masking_lower),e.analysis&&(I.pinfo.pe[i][S]=Le[Fe+S])}return 0};var se=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function ce(e,t,n,r,o,a,i,s,c,f){for(var p=u([2,576]),h=e.internal_flags,m=h.channels_out,g=e.mode==MPEGMode.JOINT_STEREO?4:m,v=0;v2&&(a[r][v].en.assign(h.en[v+2]),a[r][v].thm.assign(h.thm[v+2]))}for(v=0;v0;++b,--x){var C=p[0][b],j=p[1][b];p[0][b]=C+j,p[1][b]=C-j}for(b=0;b<3;b++)M[b]=h.nsPsy.last_en_subshort[v][b+6],d(h.nsPsy.last_en_subshort[v][b+4]>0),S[b]=M[b]/h.nsPsy.last_en_subshort[v][b+4],A[0]+=M[b];for(b=0;b<9;b++){for(var B=T+64,I=1;TM[b+3-2]?(d(M[b+3-2]>0),I/=M[b+3-2]):M[b+3-2]>10*I?(d(I>0),I=M[b+3-2]/(10*I)):I=0,S[b+3]=I}for(b=0;b<3;++b){var P=M[3*b+3]+M[3*b+4]+M[3*b+5],L=1;6*M[3*b+5]R&&(c[v][b/3]=b%3+1);for(b=1;b<4;b++){var D=A[b-1],F=A[b],H=Math.max(D,F);H<4e4&&D<1.7*F&&F<1.7*D&&(1==b&&c[v][0]<=c[v][b]&&(c[v][0]=0),c[v][b]=0)}c[v][0]<=h.nsPsy.lastAttacks[v]&&(c[v][0]=0),3!=h.nsPsy.lastAttacks[v]&&c[v][0]+c[v][1]+c[v][2]+c[v][3]==0||(O=0,0!=c[v][1]&&0!=c[v][0]&&(c[v][1]=0),0!=c[v][2]&&0!=c[v][1]&&(c[v][2]=0),0!=c[v][3]&&0!=c[v][2]&&(c[v][3]=0)),v<2?f[v]=O:0==O&&(f[0]=f[1]=0),i[v]=h.tot_ener[v]}}function le(e,t,n){if(0==n)for(var r=0;r=0),i>0){var s=t[a];s0),i=20*(2*s-i)/(i*(e.numlines_s[a]+e.numlines_s[a+1]-1));var c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;for(a=1;a=0),i>0){s=t[a-1];s0),i=20*(3*s-i)/(i*(e.numlines_s[a-1]+e.numlines_s[a]+e.numlines_s[a+1]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;if(d(a>0),d(a==e.npart_s-1),i=n[a-1]+n[a],d(i>=0),i>0){s=t[a-1];s0),i=20*(2*s-i)/(i*(e.numlines_s[a-1]+e.numlines_s[a]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;d(a==e.npart_s-1)}function de(e,t,n,r,o,a){var i,s,c,u=e.internal_flags,f=new float[h.CBANDS],p=l(h.CBANDS),m=new int[h.CBANDS];for(c=s=0;c=0),f[c]=v,d(_>0),p[c]=g/_,d(p[c]>=0)}for(d(c==u.npart_s),d(129==s);cx&&(r[c]=x),u.masking_lower>1&&(r[c]*=u.masking_lower),r[c]>n[c]&&(r[c]=n[c]),u.masking_lower<1&&(r[c]*=u.masking_lower),d(r[c]>=0)}for(;c0?Math.min(v,M):Math.min(v,o[s]*x)}else{var A=r*e.nb_2[i][s],E=n*e.nb_1[i][s];A<=0&&(A=v),E<=0&&(E=v),M=e.blocktype_old[1&i]==h.NORM_TYPE?Math.min(E,A):E,a[s]=Math.min(v,M)}e.nb_2[i][s]=e.nb_1[i][s],e.nb_1[i][s]=v,g=c[s],g*=e.minval_l[s],g*=_,a[s]>g&&(a[s]=g),e.masking_lower>1&&(a[s]*=e.masking_lower),a[s]>o[s]&&(a[s]=o[s]),e.masking_lower<1&&(a[s]*=e.masking_lower),d(a[s]>=0)}for(;s0?Math.pow(10,o):1,f=0;f0){var w,x,S=r[f]*u;if(w=Math.min(Math.max(m,S),Math.max(g,S)),v=Math.max(c,S),_=Math.max(s,S),x=v+_,x>0&&w*l0)}c=Math.min(v,c),s=Math.min(_,s)}c>p&&(c=p),s>h&&(s=h),t[2][f]=c,t[3][f]=s}}function ve(e,t){var n,r=e;return n=r>=0?27*-r:r*t,n<=-72?0:Math.exp(n*M)}function _e(e){var t=0,n=0,r=0;for(r=0;ve(r,e)>1e-20;r-=1);o=r,a=0;while(Math.abs(a-o)>1e-12)r=(a+o)/2,ve(r,e)>0?a=r:o=r;t=o;var o,a;r=0;for(r=0;ve(r,e)>1e-20;r+=1);o=0,a=r;while(Math.abs(a-o)>1e-12)r=(a+o)/2,ve(r,e)>0?o=r:a=r;n=a;var i,s=0,c=1e3;for(i=0;i<=c;++i){r=t+i*(n-t)/c;var l=ve(r,e);s+=l}var u=(c+1)/(s*(n-t));return u}function be(e){var t,n,r,o;return t=e,t*=t>=0?3:1.5,t>=.5&&t<=2.5?(o=t-.5,n=8*(o*o-2*o)):n=0,t+=.474,r=15.811389+7.5*t-17.5*Math.sqrt(1+t*t),r<=-60?0:(t=Math.exp((n+r)*M),t/=.6609193,t)}function ye(e){return e<0&&(e=0),e*=.001,13*Math.atan(.76*e)+3.5*Math.atan(e*e/56.25)}function we(e,t,n,r,o,a,i,s,c,u,p,m){var g,_=l(h.CBANDS+1),b=s/(m>15?1152:384),y=f(h.HBLKSIZE);s/=c;var w=0,x=0;for(g=0;gc/2){w=c/2,++g;break}}d(gc/2&&(A=c/2),n[k]=(y[M]+y[A])/2,t[k]=y[A];var O=b*T;i[k]=(O-_[t[k]])/(_[t[k]+1]-_[t[k]]),i[k]<0?i[k]=0:i[k]>1&&(i[k]=1),R=ye(s*u[k]*p),R=Math.min(R,15.5)/15.5,a[k]=Math.pow(10,1.25*(1-Math.cos(Math.PI*R))-2.5)}w=0;for(var C=0;C0)break;for(e[f][0]=i,i=t-1;i>0;i--)if(s[f][i]>0)break;e[f][1]=i,c+=e[f][1]-e[f][0]+1}var g=l(c),v=0;for(f=0;f=2||1==T[C][B+1]){var N=0!=B?B-1:2,D=K(g.thm[C].s[I][N],L,w*E);L=Math.min(L,D)}else if(1==T[C][B]){N=0!=B?B-1:2,D=K(g.thm[C].s[I][N],L,x*E);L=Math.min(L,D)}else if(0!=B&&3==T[C][B-1]||0==B&&3==g.nsPsy.lastAttacks[C]){N=2!=B?B+1:0,D=K(g.thm[C].s[I][N],L,x*E);L=Math.min(L,D)}L*=A[C][B],P[B]=L}for(B=0;B<3;B++)g.thm[C].s[I][B]=P[B]}}for(C=0;C1?(F=s,H=-2,U=h.NORM_TYPE,d[0]!=h.SHORT_TYPE&&d[1]!=h.SHORT_TYPE||(U=h.SHORT_TYPE),$=a[r][C-2]):(F=i,H=0,U=d[C],$=o[r][C]),U==h.SHORT_TYPE?F[H+C]=Q($,g.masking_lower):F[H+C]=ee($,g.masking_lower),e.analysis&&(g.pinfo.pe[r][C]=F[H+C])}return 0},this.psymodel_init=function(n){var r,i=n.internal_flags,s=!0,c=13,u=24,f=0,p=0,m=-8.25,g=-4.5,v=l(h.CBANDS),_=l(h.CBANDS),y=l(h.CBANDS),w=n.out_samplerate;switch(n.experimentalZ){default:case 0:s=!0;break;case 1:s=n.VBR!=o.vbr_mtrh&&n.VBR!=o.vbr_mt;break;case 2:s=!1;break;case 3:c=8,f=-1.75,p=-.0125,m=-8.25,g=-2.25;break}for(i.ms_ener_ratio_old=.25,i.blocktype_old[0]=i.blocktype_old[1]=h.NORM_TYPE,r=0;r<4;++r){for(var x=0;x=c&&(M=p*(v[r]-c)/(u-c)+f*(u-v[r])/(u-c)),y[r]=Math.pow(10,M/10),i.numlines_l[r]>0?i.rnumlines_l[r]=1/i.numlines_l[r]:i.rnumlines_l[r]=0}i.s3_ll=xe(i.s3ind,i.npart_l,v,_,y,s);var A;x=0;for(r=0;rO&&(R=O)}i.ATH.cb_l[r]=R,R=20*v[r]/10-20,R>6&&(R=100),R<-15&&(R=-15),R-=8,i.minval_l[r]=Math.pow(10,R/10)*i.numlines_l[r]}for(i.npart_s=we(i.numlines_s,i.bo_s,i.bm_s,v,_,i.mld_s,i.PSY.bo_s_weight,w,h.BLKSIZE_s,i.scalefac_band.s,h.BLKSIZE_s/384,h.SBMAX_s),d(i.npart_s=c&&(M=g*(v[r]-c)/(u-c)+m*(u-v[r])/(u-c)),y[r]=Math.pow(10,M/10),R=a.MAX_VALUE;for(E=0;EO&&(R=O)}i.ATH.cb_s[r]=R,R=7*v[r]/12-7,v[r]>12&&(R*=1+3.1*Math.log(1+R)),v[r]<12&&(R*=1+2.3*Math.log(1-R)),R<-15&&(R=-15),R-=8,i.minval_s[r]=Math.pow(10,R/10)*i.numlines_s[r]}i.s3_ss=xe(i.s3ind_s,i.npart_s,v,_,y,s),L(),e.init_fft(i),i.decay=Math.exp(-1*t/(b*w/192)),A=S,0!=(2&n.exp_nspsytune)&&(A=1),Math.abs(n.msfix)>0&&(A=n.msfix),n.msfix=A;for(var C=0;Ci.npart_l-1&&(i.s3ind[C][1]=i.npart_l-1);var j=576*i.mode_gr/w;if(i.ATH.decay=Math.pow(10,-1.2*j),i.ATH.adjust=.01,i.ATH.adjustLimit=1,d(i.bo_l[h.SBMAX_l-1]<=i.npart_l),d(i.bo_s[h.SBMAX_s-1]<=i.npart_s),-1!=n.ATHtype){var B=n.out_samplerate/h.BLKSIZE,I=0;for(T=0,r=0;r=0;)i.ATH.eql_w[r]*=I}for(C=x=0;C2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}t.__esModule=!0,t.inherits=r},2695:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),a=(r.new_int_n,r.assert,n("f3b5"));function i(){this.tt=[[null,null],[null,null]],this.main_data_begin=0,this.private_bits=0,this.resvDrain_pre=0,this.resvDrain_post=0,this.scfsi=[o(4),o(4)];for(var e=0;e<2;e++)for(var t=0;t<2;t++)this.tt[e][t]=new a}e.exports=i},"2ba4":function(e,t,n){var r=n("40d5"),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},"2d00":function(e,t,n){var r,o,a=n("da84"),i=n("342f"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},"2d78":function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n("254c"),o=n("316e"),a=u(o),i=n("b7fe"),s=u(i),c=n("4128"),l=u(c);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var f=function(e){return l.run(s.run(e))},d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=f(e),r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=f(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)};t.find=d,t.inherits=r.inherits,t.options=a,t.parser=l,t.scanner=s,t.test=p,t.tokenize=f},"2f21":function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays);r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function i(){var e=64.82,t=(i.YULE_ORDER,.95),n=(i.MAX_SAMP_FREQ,i.RMS_WINDOW_TIME_NUMERATOR),r=i.RMS_WINDOW_TIME_DENOMINATOR,s=(i.MAX_SAMPLES_PER_WINDOW,[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.26408300200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]]),c=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];function l(e,t,n,r,o,a){while(0!=o--)n[r]=1e-10+e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4]-n[r-3]*a[5]+e[t-3]*a[6]-n[r-4]*a[7]+e[t-4]*a[8]-n[r-5]*a[9]+e[t-5]*a[10]-n[r-6]*a[11]+e[t-6]*a[12]-n[r-7]*a[13]+e[t-7]*a[14]-n[r-8]*a[15]+e[t-8]*a[16]-n[r-9]*a[17]+e[t-9]*a[18]-n[r-10]*a[19]+e[t-10]*a[20],++r,++t}function u(e,t,n,r,o,a){while(0!=o--)n[r]=e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4],++r,++t}function f(e,t){for(var o=0;o0;)if((s-=n[o])<=0)break;return e-o/i.STEPS_per_dB}this.InitGainAnalysis=function(e,t){return f(e,t)!=INIT_GAIN_ANALYSIS_OK?INIT_GAIN_ANALYSIS_ERROR:(e.linpre=MAX_ORDER,e.rinpre=MAX_ORDER,e.lstep=MAX_ORDER,e.rstep=MAX_ORDER,e.lout=MAX_ORDER,e.rout=MAX_ORDER,a.fill(e.B,0),INIT_GAIN_ANALYSIS_OK)},this.AnalyzeSamples=function(e,t,n,r,a,f,p){var h,m,g,v,_,b,y;if(0==f)return GAIN_ANALYSIS_OK;switch(y=0,_=f,p){case 1:r=t,a=n;break;case 2:break;default:return GAIN_ANALYSIS_ERROR}f0){b=_>e.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:_,yMAX_ORDER-y&&(b=MAX_ORDER-y)):(h=n+y,m=t,g=a+y,v=r),l(m,h,e.lstepbuf,e.lstep+e.totsamp,b,s[e.reqindex]),l(v,g,e.rstepbuf,e.rstep+e.totsamp,b,s[e.reqindex]),u(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,b,c[e.reqindex]),u(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,b,c[e.reqindex]),h=e.lout+e.totsamp,m=e.loutbuf,g=e.rout+e.totsamp,v=e.routbuf;var w=b%8;while(0!=w--)e.lsum+=d(m[h++]),e.rsum+=d(v[g++]);w=b/8;while(0!=w--)e.lsum+=d(m[h+0])+d(m[h+1])+d(m[h+2])+d(m[h+3])+d(m[h+4])+d(m[h+5])+d(m[h+6])+d(m[h+7]),h+=8,e.rsum+=d(v[g+0])+d(v[g+1])+d(v[g+2])+d(v[g+3])+d(v[g+4])+d(v[g+5])+d(v[g+6])+d(v[g+7]),g+=8;if(_-=b,y+=b,e.totsamp+=b,e.totsamp==e.sampleWindow){var x=10*i.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37),S=x<=0?0:0|x;S>=e.A.length&&(S=e.A.length-1),e.A[S]++,e.lsum=e.rsum=0,o.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),o.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),o.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),o.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0}if(e.totsamp>e.sampleWindow)return GAIN_ANALYSIS_ERROR}return fu)a.f(e,n=o[u++],r[n]);return e}},3967:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode);r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function a(){function e(e,t,n,r,o,a,i,s,c,l,u,f,d,p,h){this.vbr_q=e,this.quant_comp=t,this.quant_comp_s=n,this.expY=r,this.st_lrm=o,this.st_s=a,this.masking_adj=i,this.masking_adj_short=s,this.ath_lower=c,this.ath_curve=l,this.ath_sensitivity=u,this.interch=f,this.safejoint=d,this.sfb21mod=p,this.msfix=h}function t(e,t,n,r,o,a,i,s,c,l,u,f,d,p){this.quant_comp=t,this.quant_comp_s=n,this.safejoint=r,this.nsmsfix=o,this.st_lrm=a,this.st_s=i,this.nsbass=s,this.scale=c,this.masking_adj=l,this.ath_lower=u,this.ath_curve=f,this.interch=d,this.sfscale=p}var n;this.setModules=function(e){n=e};var r=[new e(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new e(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new e(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new e(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new e(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new e(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new e(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new e(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new e(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],a=[new e(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new e(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new e(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new e(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new e(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new e(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new e(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new e(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new e(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)];function i(e,t,n){var i=e.VBR==o.vbr_rh?r:a,s=e.VBR_q_frac,c=i[t],u=i[t+1],f=c;c.st_lrm=c.st_lrm+s*(u.st_lrm-c.st_lrm),c.st_s=c.st_s+s*(u.st_s-c.st_s),c.masking_adj=c.masking_adj+s*(u.masking_adj-c.masking_adj),c.masking_adj_short=c.masking_adj_short+s*(u.masking_adj_short-c.masking_adj_short),c.ath_lower=c.ath_lower+s*(u.ath_lower-c.ath_lower),c.ath_curve=c.ath_curve+s*(u.ath_curve-c.ath_curve),c.ath_sensitivity=c.ath_sensitivity+s*(u.ath_sensitivity-c.ath_sensitivity),c.interch=c.interch+s*(u.interch-c.interch),c.msfix=c.msfix+s*(u.msfix-c.msfix),l(e,f.vbr_q),0!=n?e.quant_comp=f.quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=f.quant_comp),0!=n?e.quant_comp_short=f.quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=f.quant_comp_s),0!=f.expY&&(e.experimentalY=0!=f.expY),0!=n?e.internal_flags.nsPsy.attackthre=f.st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=f.st_lrm),0!=n?e.internal_flags.nsPsy.attackthre_s=f.st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=f.st_s),0!=n?e.maskingadjust=f.masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=f.masking_adj),0!=n?e.maskingadjust_short=f.masking_adj_short:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=f.masking_adj_short),0!=n?e.ATHlower=-f.ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-f.ath_lower/10),0!=n?e.ATHcurve=f.ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=f.ath_curve),0!=n?e.athaa_sensitivity=f.ath_sensitivity:Math.abs(e.athaa_sensitivity- -1)>0||(e.athaa_sensitivity=f.ath_sensitivity),f.interch>0&&(0!=n?e.interChRatio=f.interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=f.interch)),f.safejoint>0&&(e.exp_nspsytune=e.exp_nspsytune|f.safejoint),f.sfb21mod>0&&(e.exp_nspsytune=e.exp_nspsytune|f.sfb21mod<<20),0!=n?e.msfix=f.msfix:Math.abs(e.msfix- -1)>0||(e.msfix=f.msfix),0==n&&(e.VBR_q=t,e.VBR_q_frac=s)}var s=[new t(8,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new t(16,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new t(24,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new t(32,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new t(40,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(48,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(56,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new t(64,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new t(80,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new t(96,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new t(112,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new t(128,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new t(160,9,9,1,1.79,6,135,0,.95,-2,5,3.5,0,1),new t(192,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new t(224,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new t(256,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new t(320,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];function c(e,t,r){var a=t,i=n.nearestBitrateFullIndex(t);if(e.VBR=o.vbr_abr,e.VBR_mean_bitrate_kbps=a,e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320),e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.brate=e.VBR_mean_bitrate_kbps,e.VBR_mean_bitrate_kbps>320&&(e.disable_reservoir=!0),s[i].safejoint>0&&(e.exp_nspsytune=2|e.exp_nspsytune),s[i].sfscale>0&&(e.internal_flags.noise_shaping=2),Math.abs(s[i].nsbass)>0){var c=int(4*s[i].nsbass);c<0&&(c+=64),e.exp_nspsytune=e.exp_nspsytune|c<<2}return 0!=r?e.quant_comp=s[i].quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=s[i].quant_comp),0!=r?e.quant_comp_short=s[i].quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=s[i].quant_comp_s),0!=r?e.msfix=s[i].nsmsfix:Math.abs(e.msfix- -1)>0||(e.msfix=s[i].nsmsfix),0!=r?e.internal_flags.nsPsy.attackthre=s[i].st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=s[i].st_lrm),0!=r?e.internal_flags.nsPsy.attackthre_s=s[i].st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=s[i].st_s),0!=r?e.scale=s[i].scale:Math.abs(e.scale- -1)>0||(e.scale=s[i].scale),0!=r?e.maskingadjust=s[i].masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=s[i].masking_adj),s[i].masking_adj>0?0!=r?e.maskingadjust_short=.9*s[i].masking_adj:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=.9*s[i].masking_adj):0!=r?e.maskingadjust_short=1.1*s[i].masking_adj:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=1.1*s[i].masking_adj),0!=r?e.ATHlower=-s[i].ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-s[i].ath_lower/10),0!=r?e.ATHcurve=s[i].ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=s[i].ath_curve),0!=r?e.interChRatio=s[i].interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=s[i].interch),t}function l(e,t){var n=0;return 0>t&&(n=-1,t=0),91?arguments[1]:void 0,1),n=c(e);if(g)return o(p,this,n,t);var r=this.length,a=i(n),l=0;if(a+t>r)throw u("Wrong length");while(l=0&&d++,n++,u++;if(d<0)for(var p=n-u;p0&&(r.push(new o.TEXT(a)),a=[]),n-=d,u-=d;var h=f.emit();r.push(new h(e.slice(n-u,n)))}}return a.length>0&&r.push(new o.TEXT(a)),r};t.State=r.TokenState,t.TOKENS=a,t.run=Y,t.start=l},"42ca":function(e,t,n){"use strict";n("cc2b")},"44ad":function(e,t,n){var r=n("e330"),o=n("d039"),a=n("c6b6"),i=Object,s=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):i(e)}:i},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),a=n("b622"),i=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},"46f3":function(e,t,n){"use strict";function r(){return function(e){e&&(this.v=e)}}t.__esModule=!0,t.createTokenClass=r},4840:function(e,t,n){var r=n("825a"),o=n("5087"),a=n("7234"),i=n("b622"),s=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||a(n=r(i)[s])?t:o(n)}},"485a":function(e,t,n){var r=n("c65b"),o=n("1626"),a=n("861d"),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!a(s=r(n,e)))return s;if(o(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!a(s=r(n,e)))return s;throw i("Can't convert object to primitive value")}},"4a65":function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert),s=n("f052"),c=n("4b5e"),l=n("9828"),u=n("bd8b");function f(e){var t=e;this.quantize=t,this.iteration_loop=function(e,t,n,r){var f,d=e.internal_flags,p=o(l.SFBMAX),h=o(576),m=a(2),g=0,v=d.l3_side,_=new s(g);this.quantize.rv.ResvFrameBegin(e,_),g=_.bits;for(var b=0;b.03125)e.ATH.adjust>=1?e.ATH.adjust=1:e.ATH.adjust=r?(e.ATH.adjust*=.075*r+.925,e.ATH.adjust=r?e.ATH.adjust=r:e.ATH.adjust=f.FFTOFFSET),u(o.mf_size>=f.BLKSIZE+e.framesize-f.FFTOFFSET),u(o.mf_size>=512+e.framesize-32)}}this.lame_encode_mp3_frame=function(e,n,s,u,w,x){var S,k=i([2,2]);k[0][0]=new t,k[0][1]=new t,k[1][0]=new t,k[1][1]=new t;var M,A=i([2,2]);A[0][0]=new t,A[0][1]=new t,A[1][0]=new t,A[1][1]=new t;var E,T,R,O=[null,null],C=e.internal_flags,j=c([2,4]),B=[.5,.5],I=[[0,0],[0,0]],P=[[0,0],[0,0]];if(O[0]=n,O[1]=s,0==C.lame_encode_frame_init&&y(e,O),C.padding=0,(C.slot_lag-=C.frac_SpF)<0&&(C.slot_lag+=e.out_samplerate,C.padding=1),0!=C.psymodel){var L,N=[null,null],D=0,F=l(2);for(R=0;R0&&(B[R]=j[R][3]/B[R])),T=0;Tu)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},5087:function(e,t,n){var r=n("68ee"),o=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a constructor")}},"50c4":function(e,t,n){var r=n("5926"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"53ca":function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){var r=n("d066"),o=n("e330"),a=n("241c"),i=n("7418"),s=n("825a"),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=i.f;return n?c(t,n(e)):t}},"577e":function(e,t,n){var r=n("f5df"),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"58b1":function(e,t,n){var r=n("0206"),o=r.assert;function a(){var e;this.setModules=function(t){e=t},this.ResvFrameBegin=function(t,n){var r,a=t.internal_flags,i=a.l3_side,s=e.getframebits(t);n.bits=(s-8*a.sideinfo_len)/a.mode_gr;var c=2048*a.mode_gr-8;t.brate>320?r=8*int(1e3*t.brate/(t.out_samplerate/1152)/8+.5):(r=11520,t.strict_ISO&&(r=8*int(32e4/(t.out_samplerate/1152)/8+.5))),a.ResvMax=r-s,a.ResvMax>c&&(a.ResvMax=c),(a.ResvMax<0||t.disable_reservoir)&&(a.ResvMax=0);var l=n.bits*a.mode_gr+Math.min(a.ResvSize,a.ResvMax);return l>r&&(l=r),o(0==a.ResvMax%8),o(a.ResvMax>=0),i.resvDrain_pre=0,null!=a.pinfo&&(a.pinfo.mean_bits=n.bits/2,a.pinfo.resvsize=a.ResvSize),l},this.ResvMaxBits=function(e,t,n,r){var o,a=e.internal_flags,i=a.ResvSize,s=a.ResvMax;0!=r&&(i+=t),0!=(1&a.substep_shaping)&&(s*=.9),n.bits=t,10*i>9*s?(o=i-9*s/10,n.bits+=o,a.substep_shaping|=128):(o=0,a.substep_shaping&=127,e.disable_reservoir||0!=(1&a.substep_shaping)||(n.bits-=.1*t));var c=i<6*a.ResvMax/10?i:6*a.ResvMax/10;return c-=o,c<0&&(c=0),c},this.ResvAdjust=function(e,t){e.ResvSize-=t.part2_3_length+t.part2_length},this.ResvFrameEnd=function(e,t){var n,r=e.l3_side;e.ResvSize+=t*e.mode_gr;var a=0;r.resvDrain_post=0,r.resvDrain_pre=0,0!=(n=e.ResvSize%8)&&(a+=n),n=e.ResvSize-a-e.ResvMax,n>0&&(o(0==n%8),o(n>=0),a+=n);var i=Math.min(8*r.main_data_begin,a)/8;r.resvDrain_pre+=8*i,a-=8*i,e.ResvSize-=8*i,r.main_data_begin-=i,r.resvDrain_post+=a,e.ResvSize-=a}}e.exports=a},5926:function(e,t,n){var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){var r=n("1626"),o=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},"5b81":function(e,t,n){"use strict";var r=n("23e7"),o=n("c65b"),a=n("e330"),i=n("1d80"),s=n("1626"),c=n("7234"),l=n("44e7"),u=n("577e"),f=n("dc4a"),d=n("90d8"),p=n("0cb2"),h=n("b622"),m=n("c430"),g=h("replace"),v=TypeError,_=a("".indexOf),b=a("".replace),y=a("".slice),w=Math.max,x=function(e,t,n){return n>e.length?-1:""===t?n:_(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,a,h,S,k,M,A,E,T=i(this),R=0,O=0,C="";if(!c(e)){if(n=l(e),n&&(r=u(i(d(e))),!~_(r,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(a=f(e,g),a)return o(a,e,T,t);if(m&&n)return b(u(T),e,t)}h=u(T),S=u(e),k=s(t),k||(t=u(t)),M=S.length,A=w(1,M),R=x(h,S,0);while(-1!==R)E=k?u(t(S,R,h)):p(S,h,R,[],void 0,t),C+=y(h,O,R)+E,O=R+M,R=x(h,S,R+A);return O=p?e?"":void 0:(r=c(f,d),r<55296||r>56319||d+1===p||(u=c(f,d+1))<56320||u>57343?e?s(f,d):r:e?l(f,d,d+2):u-56320+(r-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},"67b2":function(e,t){function n(e){var t=e;this.ordinal=function(){return t}}n.STEREO=new n(0),n.JOINT_STEREO=new n(1),n.DUAL_CHANNEL=new n(2),n.MONO=new n(3),n.NOT_SET=new n(4),e.exports=n},"68ee":function(e,t,n){var r=n("e330"),o=n("d039"),a=n("1626"),i=n("f5df"),s=n("d066"),c=n("8925"),l=function(){},u=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(l),m=function(e){if(!a(e))return!1;try{return f(l,u,e),!0}catch(t){return!1}},g=function(e){if(!a(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!f||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},"69b2":function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays),i=(r.new_array_n,r.new_byte),s=(r.new_double,r.new_float,r.new_float_n),c=r.new_int,l=(r.new_int_n,r.assert),u=n("d9be"),f=n("5f84"),d=n("4b5e"),p=n("bd8b");function h(){var e=this,t=32773,n=32,r=null,h=null,m=null,g=null;this.setModules=function(e,t,n,o){r=e,h=t,m=n,g=o};var v=null,_=0,b=0,y=0;function w(e){o.arraycopy(e.header[e.w_ptr].buf,0,v,b,e.sideinfo_len),b+=e.sideinfo_len,_+=8*e.sideinfo_len,e.w_ptr=e.w_ptr+1&p.MAX_HEADER_BUF-1}function x(e,t,r){l(r0){var o;0==y&&(y=8,b++,l(b=_),e.header[e.w_ptr].write_timing==_&&w(e),v[b]=0),o=Math.min(r,y),r-=o,y-=o,l(r>r<0){var o;0==y&&(y=8,b++,l(b>r<=0),t>=8&&(x(r,76,8),t-=8),t>=8&&(x(r,65,8),t-=8),t>=8&&(x(r,77,8),t-=8),t>=8&&(x(r,69,8),t-=8),t>=32){var o=m.getLameShortVersion();if(t>=32)for(n=0;n=8;++n)t-=8,x(r,o.charAt(n),8)}for(;t>=1;t-=1)x(r,r.ancillary_flag,1),r.ancillary_flag^=e.disable_reservoir?0:1;l(0==t)}function M(e,t,r){var o=e.header[e.h_ptr].ptr;while(r>0){var a=Math.min(r,8-(7&o));r-=a,l(r>3]|=t>>r<<8-(7&o)-a,o+=a}e.header[e.h_ptr].ptr=o}function A(e,n){e<<=8;for(var r=0;r<8;r++)e<<=1,n<<=1,0!=(65536&(n^e))&&(n^=t);return n}function E(e,t){var n,r,i,s=e.internal_flags;if(n=s.l3_side,s.header[s.h_ptr].ptr=0,a.fill(s.header[s.h_ptr].buf,0,s.sideinfo_len,0),e.out_samplerate<16e3?M(s,4094,12):M(s,4095,12),M(s,e.version,1),M(s,1,2),M(s,e.error_protection?0:1,1),M(s,s.bitrate_index,4),M(s,s.samplerate_index,2),M(s,s.padding,1),M(s,e.extension,1),M(s,e.mode.ordinal(),2),M(s,s.mode_ext,2),M(s,e.copyright,1),M(s,e.original,1),M(s,e.emphasis,2),e.error_protection&&M(s,0,16),1==e.version){for(l(n.main_data_begin>=0),M(s,n.main_data_begin,9),2==s.channels_out?M(s,n.private_bits,3):M(s,n.private_bits,5),i=0;i=0),M(s,n.main_data_begin,8),M(s,n.private_bits,s.channels_out),r=0,i=0;i0;--n){var s,c=0,u=0;s=t.l3_enc[a+0],0!=s&&(u+=8,t.xr[i+0]<0&&c++,l(s<=1)),s=t.l3_enc[a+1],0!=s&&(u+=4,c*=2,t.xr[i+1]<0&&c++,l(s<=1)),s=t.l3_enc[a+2],0!=s&&(u+=2,c*=2,t.xr[i+2]<0&&c++,l(s<=1)),s=t.l3_enc[a+3],0!=s&&(u++,c*=2,t.xr[i+3]<0&&c++,l(s<=1)),a+=4,i+=4,x(e,c+r.table[u],r.hlen[u]),o+=r.hlen[u]}return o}function R(e,t,r,o,a){var i=f.ht[t],s=0;if(l(t<32),0==t)return s;for(var c=r;c15){if(g>14){var _=g-15;l(_<=i.linmax),m|=_<<1,d=p,g=15}if(v>14){var b=v-15;l(b<=i.linmax),m<<=p,m|=b,d+=p,v=15}h=16}0!=v&&(m<<=1,a.xr[c+1]<0&&m++,u--),l((g|v)<16),g=g*h+v,d-=u,u+=i.hlen[g],l(u<=n),l(d<=n),x(e,i.table[g],u),x(e,m,d),s+=u+d}return s}function O(e,t){var n=3*e.scalefac_band.s[3];n>t.big_values&&(n=t.big_values);var r=R(e,t.table_select[0],0,n,t);return r+=R(e,t.table_select[1],n,t.big_values,t),r}function C(e,t){var n,r,o,a;n=t.big_values,l(0<=n&&n<=576);var i=t.region0_count+1;return l(0<=i),l(in&&(o=n),a>n&&(a=n),r=R(e,t.table_select[0],0,o,t),r+=R(e,t.table_select[1],o,a,t),r+=R(e,t.table_select[2],a,n,t),r}function j(e){var t,n,r,o,a=0,i=e.internal_flags,s=i.l3_side;if(1==e.version)for(t=0;t<2;t++)for(n=0;n=0&&(a=1+s-c,s>8),t[5]=byte(255&n)},this.flush_bitstream=function(e){var t,n,o=e.internal_flags,a=o.h_ptr-1;if(-1==a&&(a=p.MAX_HEADER_BUF-1),t=o.l3_side,!((n=I(e,new B))<0)){if(k(e,n),l(o.header[a].write_timing+this.getframebits(e)==_),o.ResvSize=0,t.main_data_begin=0,o.findReplayGain){var i=r.GetTitleGain(o.rgdata);l(NEQ(i,GainAnalysis.GAIN_NOT_ENOUGH_SAMPLES)),o.RadioGain=0|Math.floor(10*i+.5)}o.findPeakSample&&(o.noclipGainChange=0|Math.ceil(20*Math.log10(o.PeakSample/32767)*10),o.noclipGainChange>0&&(EQ(e.scale,1)||EQ(e.scale,0))?o.noclipScale=Math.floor(32767/o.PeakSample*100)/100:o.noclipScale=-1)}},this.add_dummy_byte=function(e,t,n){var r,o=e.internal_flags;while(n-- >0)for(S(o,t,8),r=0;r ResvSize"),8*t.main_data_begin!=n.ResvSize&&(o.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size: %d \nresv drain (post) %d \nresv drain (pre) %d \nheader and sideinfo: %d \ndata bits: %d \ntotal bits: %d (remainder: %d) \nbitsperframe: %d \n",8*t.main_data_begin,n.ResvSize,t.resvDrain_post,t.resvDrain_pre,8*n.sideinfo_len,a-t.resvDrain_post-8*n.sideinfo_len,a,a%8,r),o.err.println("This is a fatal error. It has several possible causes:"),o.err.println("90%% LAME compiled with buggy version of gcc using advanced optimizations"),o.err.println(" 9%% Your system is overclocked"),o.err.println(" 1%% bug in LAME encoding library"),n.ResvSize=8*t.main_data_begin),l(_%8==0),_>1e9){var i;for(i=0;ia)return-1;if(o.arraycopy(v,0,t,n,u),b=-1,y=0,0!=i){var f=c(1);if(f[0]=e.nMusicCRC,g.updateMusicCRC(f,t,n,u),e.nMusicCRC=f[0],u>0&&(e.VBR_seek_table.nBytesWritten+=u),e.decode_on_the_fly){var d,p=s([2,1152]),m=u,_=-1;while(0!=_)if(_=h.hip_decode1_unclipped(e.hip,t,n,m,p[0],p[1]),m=0,-1==_&&(_=0),_>0){if(l(_<=1152),e.findPeakSample){for(d=0;d<_;d++)p[0][d]>e.PeakSample?e.PeakSample=p[0][d]:-p[0][d]>e.PeakSample&&(e.PeakSample=-p[0][d]);if(e.channels_out>1)for(d=0;d<_;d++)p[1][d]>e.PeakSample?e.PeakSample=p[1][d]:-p[1][d]>e.PeakSample&&(e.PeakSample=-p[1][d])}if(e.findReplayGain&&r.AnalyzeSamples(e.rgdata,p[0],0,p[1],0,_,e.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6}}}return u},this.init_bit_stream_w=function(e){v=i(Lame.LAME_MAXMP3BUFFER),e.h_ptr=e.w_ptr=0,e.header[e.h_ptr].write_timing=0,b=-1,y=0,_=0}}h.EQ=function(e,t){return Math.abs(e)>Math.abs(t)?Math.abs(e-t)<=1e-6*Math.abs(e):Math.abs(e-t)<=1e-6*Math.abs(t)},h.NEQ=function(e,t){return!h.EQ(e,t)},e.exports=h},"69f3":function(e,t,n){var r,o,a,i=n("cdce"),s=n("da84"),c=n("e330"),l=n("861d"),u=n("9112"),f=n("1a2d"),d=n("c6cd"),p=n("f772"),h=n("d012"),m="Object already initialized",g=s.TypeError,v=s.WeakMap,_=function(e){return a(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}};if(i||d.state){var y=d.state||(d.state=new v),w=c(y.get),x=c(y.has),S=c(y.set);r=function(e,t){if(x(y,e))throw g(m);return t.facade=e,S(y,e,t),t},o=function(e){return w(y,e)||{}},a=function(e){return x(y,e)}}else{var k=p("state");h[k]=!0,r=function(e,t){if(f(e,k))throw g(m);return t.facade=e,u(e,k,t),t},o=function(e){return f(e,k)?e[k]:{}},a=function(e){return f(e,k)}}e.exports={set:r,get:o,has:a,enforce:_,getterFor:b}},7156:function(e,t,n){var r=n("1626"),o=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var i,s;return a&&r(i=t.constructor)&&i!==n&&o(s=i.prototype)&&s!==n.prototype&&a(e,s),e}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},"725d":function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert,n("2f21"));function s(){this.linprebuf=o(2*i.MAX_ORDER),this.linpre=0,this.lstepbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.lstep=0,this.loutbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.lout=0,this.rinprebuf=o(2*i.MAX_ORDER),this.rinpre=0,this.rstepbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.rstep=0,this.routbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.rout=0,this.sampleWindow=0,this.totsamp=0,this.lsum=0,this.rsum=0,this.freqindex=0,this.first=0,this.A=a(0|i.STEPS_per_dB*i.MAX_dB),this.B=a(0|i.STEPS_per_dB*i.MAX_dB)}e.exports=s},7276:function(e,t){function n(){this.over_noise=0,this.tot_noise=0,this.max_noise=0,this.over_count=0,this.over_SSD=0,this.bits=0}e.exports=n},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"74fe":function(e,t,n){e.exports=n("2d78")},7656:function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n("46f3"),o=n("254c"),a=(0,r.createTokenClass)();function i(e){var t=e?{v:e}:{};return(0,o.inherits)(a,(0,r.createTokenClass)(),t)}a.prototype={toString:function(){return this.v+""}};var s=i(),c=i("@"),l=i(":"),u=i("."),f=i(),d=i(),p=i("\n"),h=i(),m=i("+"),g=i("#"),v=i(),_=i("mailto:"),b=i("?"),y=i("/"),w=i("_"),x=i(),S=i(),k=i(),M=i("{"),A=i("["),E=i("<"),T=i("("),R=i("}"),O=i("]"),C=i(">"),j=i(")"),B=i("&");t.Base=a,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=u,t.PUNCTUATION=f,t.LOCALHOST=d,t.NL=p,t.NUM=h,t.PLUS=m,t.POUND=g,t.QUERY=b,t.PROTOCOL=v,t.MAILTO=_,t.SLASH=y,t.UNDERSCORE=w,t.SYM=x,t.TLD=S,t.WS=k,t.OPENBRACE=M,t.OPENBRACKET=A,t.OPENANGLEBRACKET=E,t.OPENPAREN=T,t.CLOSEBRACE=R,t.CLOSEBRACKET=O,t.CLOSEANGLEBRACKET=C,t.CLOSEPAREN=j,t.AMPERSAND=B},"77d9":function(e,t,n){n("1d02")},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80"),o=Object;e.exports=function(e){return o(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),a=n("37e8"),i=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),f=">",d="<",p="prototype",h="script",m=u("IE_PROTO"),g=function(){},v=function(e){return d+h+f+e+d+"/"+h+f},_=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?_(r):b():_(r);var e=i.length;while(e--)delete y[p][i[e]];return y()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=o(e),n=new g,g[p]=null,n[m]=e):n=y(),void 0===t?n:a.f(n,t)}},8100:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util),a=(r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),i=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("4b5e"));function s(){var e=a(i.BLKSIZE),t=a(i.BLKSIZE_s/2),n=[.9238795325112867,.3826834323650898,.9951847266721969,.0980171403295606,.9996988186962042,.02454122852291229,.9999811752826011,.006135884649154475];function r(e,t,r){var a,i,s,c=0;r<<=1;var l=t+r;a=4;do{var u,f,d,p,h,m,g;g=a>>1,p=a,h=a<<1,m=h+p,a=h<<1,i=t,s=i+g;do{S=e[i+0]-e[i+p],x=e[i+0]+e[i+p],E=e[i+h]-e[i+m],M=e[i+h]+e[i+m],e[i+h]=x-M,e[i+0]=x+M,e[i+m]=S-E,e[i+p]=S+E,S=e[s+0]-e[s+p],x=e[s+0]+e[s+p],E=o.SQRT2*e[s+m],M=o.SQRT2*e[s+h],e[s+h]=x-M,e[s+0]=x+M,e[s+m]=S-E,e[s+p]=S+E,s+=a,i+=a}while(i=0);r(n[l],u,i.BLKSIZE_s/2)}},this.fft_long=function(t,n,o,a,c){var l=i.BLKSIZE/8-1,u=i.BLKSIZE/2;do{var f,d,p,h,m,g=255&s[l];f=e[g]*a[o][c+g],m=e[g+512]*a[o][c+g+512],d=f-m,f+=m,p=e[g+256]*a[o][c+g+256],m=e[g+768]*a[o][c+g+768],h=p-m,p+=m,u-=4,n[u+0]=f+p,n[u+2]=f-p,n[u+1]=d+h,n[u+3]=d-h,f=e[g+1]*a[o][c+g+1],m=e[g+513]*a[o][c+g+513],d=f-m,f+=m,p=e[g+257]*a[o][c+g+257],m=e[g+769]*a[o][c+g+769],h=p-m,p+=m,n[u+i.BLKSIZE/2+0]=f+p,n[u+i.BLKSIZE/2+2]=f-p,n[u+i.BLKSIZE/2+1]=d+h,n[u+i.BLKSIZE/2+3]=d-h}while(--l>=0);r(n,u,i.BLKSIZE/2)},this.init_fft=function(n){for(var r=0;re.removeEventListener(t,n,r)}function y(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function x(e,t){e.value=null==t?"":t}function S(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function k(e){u=e}const M=[],A=[],E=[],T=[],R=Promise.resolve();let O=!1;function C(){O||(O=!0,R.then(L))}function j(){return C(),R}function B(e){E.push(e)}const I=new Set;let P=0;function L(){const e=u;do{while(P_.get(o)?(y.add(r),w(t)):(b.add(o),d--):(c(n,i),d--)}while(d--){const t=e[d];v.has(t.key)||c(t,i)}while(p)w(g[p-1]);return g}function q(e,t,n,r){const{fragment:a,on_mount:c,on_destroy:l,after_update:u}=e.$$;a&&a.m(t,n),r||B(()=>{const t=c.map(o).filter(s);l?l.push(...t):i(t),e.$$.on_mount=[]}),u.forEach(B)}function V(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function z(e,t){-1===e.$$.dirty[0]&&(M.push(e),C(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=r.length?r[0]:n;return p.ctx&&s(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),h&&z(e,t)),n}):[],p.update(),h=!0,i(p.before_update),p.fragment=!!o&&o(p.ctx),t.target&&(p.fragment&&p.fragment.c(),q(e,t.target,void 0,void 0),L()),k(d)}class Y{$destroy(){V(this,1),this.$destroy=r}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const G=[[-1,"✨","custom"],[0,"😀","smileys-emotion"],[1,"👋","people-body"],[3,"🐱","animals-nature"],[4,"🍎","food-drink"],[5,"🏠️","travel-places"],[6,"⚽","activities"],[7,"📝","objects"],[8,"⛔️","symbols"],[9,"🏁","flags"]].map(([e,t,n])=>({id:e,emoji:t,name:n})),W=G.slice(1),K=G[0],Z=2,Q=6,J="function"===typeof requestIdleCallback?requestIdleCallback:setTimeout;function ee(e){return e.unicode.includes("‍")}const te={"🫠":14,"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},ne=1e3,re="🖐️",oe=8,ae=["😊","😒","♥️","👍️","😍","😂","😭","☺️","😔","😩","😏","💕","🙌","😘"],ie='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',se=(e,t)=>et?1:0,ce=(e,t)=>{const n=document.createElement("canvas");n.width=n.height=1;const r=n.getContext("2d");return r.textBaseline="top",r.font="100px "+ie,r.fillStyle=t,r.scale(.01,.01),r.fillText(e,0,0),r.getImageData(0,0,1,1).data},le=(e,t)=>{const n=[...e].join(","),r=[...t].join(",");return n===r&&!n.startsWith("0,0,0,")};function ue(e){const t=ce(e,"#000"),n=ce(e,"#fff");return t&&n&&le(t,n)}function fe(){const e=Object.entries(te);try{for(const[t,n]of e)if(ue(t))return n}catch(t){}return e[0][1]}const de=new Promise(e=>J(()=>e(fe()))),pe=new Map,he="️",me="\ud83c",ge="‍",ve=127995,_e=57339;function be(e,t){if(0===t)return e;const n=e.indexOf(ge);return-1!==n?e.substring(0,n)+String.fromCodePoint(ve+t-1)+e.substring(n):(e.endsWith(he)&&(e=e.substring(0,e.length-1)),e+me+String.fromCodePoint(_e+t-1))}function ye(e){e.preventDefault(),e.stopPropagation()}function we(e,t,n){return t+=e?-1:1,t<0?t=n.length-1:t>=n.length&&(t=0),t}function xe(e,t){const n=new Set,r=[];for(const o of e){const e=t(o);n.has(e)||(n.add(e),r.push(o))}return r}function Se(e,t){const n=e=>{const n={};for(const r of e)"number"===typeof r.tone&&r.version<=t&&(n[r.tone]=r.unicode);return n};return e.map(({unicode:e,skins:t,shortcodes:r,url:o,name:a,category:i})=>({unicode:e,name:a,shortcodes:r,url:o,category:i,id:e||a,skins:t&&n(t),title:(r||[]).join(", ")}))}const ke=requestAnimationFrame;let Me,Ae="function"===typeof ResizeObserver;function Ee(e,t){let n;return Ae?(n=new ResizeObserver(e=>t(e[0].contentRect.width)),n.observe(e)):ke(()=>t(e.getBoundingClientRect().width)),{destroy(){n&&n.disconnect()}}}function Te(e){{const t=document.createRange();return t.selectNode(e.firstChild),t.getBoundingClientRect().width}}function Re(e,t,n){for(const r of e){const e=n(r),o=Te(e);"undefined"===typeof Me&&(Me=Te(t));const a=o/1.8e)}const{Map:Ce}=H;function je(e,t,n){const r=e.slice();return r[63]=t[n],r[65]=n,r}function Be(e,t,n){const r=e.slice();return r[66]=t[n],r[65]=n,r}function Ie(e,t,n){const r=e.slice();return r[63]=t[n],r[65]=n,r}function Pe(e,t,n){const r=e.slice();return r[69]=t[n],r}function Le(e,t,n){const r=e.slice();return r[72]=t[n],r[65]=n,r}function Ne(e,t){let n,r,o,a,i,s,c,l=t[72]+"";return{key:e,first:null,c(){n=v("div"),r=_(l),y(n,"id",o="skintone-"+t[65]),y(n,"class",a="emoji hide-focus "+(t[65]===t[20]?"active":"")),y(n,"aria-selected",i=t[65]===t[20]),y(n,"role","option"),y(n,"title",s=t[0].skinTones[t[65]]),y(n,"tabindex","-1"),y(n,"aria-label",c=t[0].skinTones[t[65]]),this.first=n},m(e,t){m(e,n,t),h(n,r)},p(e,u){t=e,512&u[0]&&l!==(l=t[72]+"")&&w(r,l),512&u[0]&&o!==(o="skintone-"+t[65])&&y(n,"id",o),1049088&u[0]&&a!==(a="emoji hide-focus "+(t[65]===t[20]?"active":""))&&y(n,"class",a),1049088&u[0]&&i!==(i=t[65]===t[20])&&y(n,"aria-selected",i),513&u[0]&&s!==(s=t[0].skinTones[t[65]])&&y(n,"title",s),513&u[0]&&c!==(c=t[0].skinTones[t[65]])&&y(n,"aria-label",c)},d(e){e&&g(n)}}}function De(e,t){let n,r,o,a,i,s,c,l,u,f=t[69].emoji+"";function d(){return t[49](t[69])}return{key:e,first:null,c(){n=v("button"),r=v("div"),o=_(f),y(r,"class","nav-emoji emoji"),y(n,"role","tab"),y(n,"class","nav-button"),y(n,"aria-controls",a="tab-"+t[69].id),y(n,"aria-label",i=t[0].categories[t[69].name]),y(n,"aria-selected",s=!t[4]&&t[13].id===t[69].id),y(n,"title",c=t[0].categories[t[69].name]),this.first=n},m(e,t){m(e,n,t),h(n,r),h(r,o),l||(u=b(n,"click",d),l=!0)},p(e,r){t=e,4096&r[0]&&f!==(f=t[69].emoji+"")&&w(o,f),4096&r[0]&&a!==(a="tab-"+t[69].id)&&y(n,"aria-controls",a),4097&r[0]&&i!==(i=t[0].categories[t[69].name])&&y(n,"aria-label",i),12304&r[0]&&s!==(s=!t[4]&&t[13].id===t[69].id)&&y(n,"aria-selected",s),4097&r[0]&&c!==(c=t[0].categories[t[69].name])&&y(n,"title",c)},d(e){e&&g(n),l=!1,u()}}}function Fe(e){let t,n;return{c(){t=v("img"),y(t,"class","custom-emoji"),f(t.src,n=e[63].url)||y(t,"src",n),y(t,"alt",""),y(t,"loading","lazy")},m(e,n){m(e,t,n)},p(e,r){32768&r[0]&&!f(t.src,n=e[63].url)&&y(t,"src",n)},d(e){e&&g(t)}}}function He(e){let t,n=e[27](e[63],e[8])+"";return{c(){t=_(n)},m(e,n){m(e,t,n)},p(e,r){33024&r[0]&&n!==(n=e[27](e[63],e[8])+"")&&w(t,n)},d(e){e&&g(t)}}}function Ue(e,t){let n,r,o,a,i,s,c;function l(e,t){return e[63].unicode?He:Fe}let u=l(t),f=u(t);return{key:e,first:null,c(){n=v("button"),f.c(),y(n,"role",r=t[4]?"option":"menuitem"),y(n,"aria-selected",o=t[4]?t[65]==t[5]:""),y(n,"aria-label",a=t[28](t[63],t[8])),y(n,"title",i=t[63].title),y(n,"class",s="emoji "+(t[4]&&t[65]===t[5]?"active":"")),y(n,"id",c="emo-"+t[63].id),this.first=n},m(e,t){m(e,n,t),f.m(n,null)},p(e,d){t=e,u===(u=l(t))&&f?f.p(t,d):(f.d(1),f=u(t),f&&(f.c(),f.m(n,null))),16&d[0]&&r!==(r=t[4]?"option":"menuitem")&&y(n,"role",r),32816&d[0]&&o!==(o=t[4]?t[65]==t[5]:"")&&y(n,"aria-selected",o),33024&d[0]&&a!==(a=t[28](t[63],t[8]))&&y(n,"aria-label",a),32768&d[0]&&i!==(i=t[63].title)&&y(n,"title",i),32816&d[0]&&s!==(s="emoji "+(t[4]&&t[65]===t[5]?"active":""))&&y(n,"class",s),32768&d[0]&&c!==(c="emo-"+t[63].id)&&y(n,"id",c)},d(e){e&&g(n),f.d()}}}function $e(e,t){let n,r,o,a,i,s,c,l,u=(t[4]?t[0].searchResultsLabel:t[66].category?t[66].category:t[15].length>1?t[0].categories.custom:t[0].categories[t[13].name])+"",f=[],d=new Ce,p=t[66].emojis;const b=e=>e[63].id;for(let h=0;h1?t[0].categories.custom:t[0].categories[t[13].name])+"")&&w(r,u),32768&h[0]&&o!==(o="menu-label-"+t[65])&&y(n,"id",o),32768&h[0]&&a!==(a="category "+(1===t[15].length&&""===t[15][0].category?"gone":""))&&y(n,"class",a),402686256&h[0]&&(p=t[66].emojis,f=$(f,h,b,1,t,p,d,i,U,Ue,null,Ie)),16&h[0]&&s!==(s=t[4]?"listbox":"menu")&&y(i,"role",s),32768&h[0]&&c!==(c="menu-label-"+t[65])&&y(i,"aria-labelledby",c),16&h[0]&&l!==(l=t[4]?"search-results":"")&&y(i,"id",l)},d(e){e&&g(n),e&&g(i);for(let t=0;te[72];for(let r=0;re[69].id;for(let r=0;re[66].category;for(let r=0;re[63].id;for(let r=0;rb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"13d2":function(e,t,n){var r=n("d039"),o=n("1626"),a=n("1a2d"),i=n("83ab"),s=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),u=l.enforce,f=l.get,d=Object.defineProperty,p=i&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=u(e);return a(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&f(this).source||c(this)}),"toString")},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,a=n("a640"),i=n("2d00"),s=n("605d"),c=a("reduce"),l=!s&&i>79&&i<83;r({target:"Array",proto:!0,forced:!c||l},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c65b"),o=n("825a"),a=n("1626"),i=n("c6b6"),s=n("9263"),c=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var l=r(n,e,t);return null!==l&&o(l),l}if("RegExp"===i(e))return r(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},1652:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n("254c");function o(){return function(e){this.j=[],this.T=e||null}}var a=o();a.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});function c(e,t,n,r){var o=0,a=e.length,s=t,c=[],l=void 0;while(o=a)return[];while(o1?arguments[1]:void 0)}))},"1d80":function(e,t,n){var r=n("7234"),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},"23cb":function(e,t,n){var r=n("5926"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,a=n("9112"),i=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,f,d,p,h,m=e.target,g=e.global,v=e.stat;if(u=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(u,f),d=h&&h.value):d=u[f],n=l(g?f:m+(v?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),i(u,f,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2466:function(e,t){function n(){this.sum=0,this.seen=0,this.want=0,this.pos=0,this.size=0,this.bag=null,this.nVbrNumFrames=0,this.nBytesWritten=0,this.TotalFrameSize=0}e.exports=n},2474:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode),a=r.Float,i=r.ShortBlock,s=r.Util,c=r.Arrays,l=(r.new_array_n,r.new_byte,r.new_double,r.new_float),u=r.new_float_n,f=r.new_int,d=(r.new_int_n,r.assert),p=n("8100"),h=n("4b5e");function m(){var e=new p,t=2.302585092994046,n=2,r=16,m=2,g=16,v=.34,_=1/217621504/(h.BLKSIZE/2),b=.01,y=.8,w=.6,x=.3,S=3.5,k=21,M=.2302585093;function A(e){return e}function E(e,t){for(var n=0,r=0;r=0;--m){var g=o[a+0][m],v=o[a+1][m];o[a+0][m]=(g+v)*s.SQRT2*.5,o[a+1][m]=(g-v)*s.SQRT2*.5}for(var _=2;_>=0;--_)for(m=h.BLKSIZE_s-1;m>=0;--m){g=i[c+0][_][m],v=i[c+1][_][m];i[c+0][_][m]=(g+v)*s.SQRT2*.5,i[c+1][_][m]=(g-v)*s.SQRT2*.5}}n[0]=A(o[a+0][0]),n[0]*=n[0];for(m=h.BLKSIZE/2-1;m>=0;--m){var b=o[a+0][h.BLKSIZE/2-m],y=o[a+0][h.BLKSIZE/2+m];n[h.BLKSIZE/2-m]=A(.5*(b*b+y*y))}for(_=2;_>=0;--_){r[_][0]=i[c+0][_][0],r[_][0]*=r[_][0];for(m=h.BLKSIZE_s/2-1;m>=0;--m){b=i[c+0][_][h.BLKSIZE_s/2-m],y=i[c+0][_][h.BLKSIZE_s/2+m];r[_][h.BLKSIZE_s/2-m]=A(.5*(b*b+y*y))}}var w=0;for(m=11;me){if(!(t=t*O)return e+t;i=e/t}if(d(e>=0),d(t>=0),e+=t,r+3<=6){if(i>=R)return e;var c=0|s.FAST_LOG10_X(i,16);return e*D[c]}var l,u;c=0|s.FAST_LOG10_X(i,16);return t=0!=a?o.ATH.cb_s[n]*o.ATH.adjust:o.ATH.cb_l[n]*o.ATH.adjust,d(t>=0),et?(l=1,c<=13&&(l=F[c]),u=s.FAST_LOG10_X(e/t,10/15),e*((N[c]-l)*u+l)):c>13?e:e*F[c]:e*N[c]}var U=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1];function $(e,t,n){var r;if(e<0&&(e=0),t<0&&(t=0),e<=0)return t;if(t<=0)return e;if(r=t>e?t/e:e/t,-2<=n&&n<=2){if(r>=R)return e+t;var o=0|s.FAST_LOG10_X(r,16);return(e+t)*U[o]}return r1){for(var r=0;r1.58*e.thm[1].l[t]||e.thm[1].l[t]>1.58*e.thm[0].l[t])){var n=e.mld_l[t]*e.en[3].l[t],r=Math.max(e.thm[2].l[t],Math.min(e.thm[3].l[t],n));n=e.mld_l[t]*e.en[2].l[t];var o=Math.max(e.thm[3].l[t],Math.min(e.thm[2].l[t],n));e.thm[2].l[t]=r,e.thm[3].l[t]=o}for(t=0;t1.58*e.thm[1].s[t][a]||e.thm[1].s[t][a]>1.58*e.thm[0].s[t][a])){n=e.mld_s[t]*e.en[3].s[t][a],r=Math.max(e.thm[2].s[t][a],Math.min(e.thm[3].s[t][a],n));n=e.mld_s[t]*e.en[2].s[t][a];o=Math.max(e.thm[3].s[t][a],Math.min(e.thm[2].s[t][a],n));e.thm[2].s[t][a]=r,e.thm[3].s[t][a]=o}}function z(e,t,n){var r=t,o=Math.pow(10,n);t*=2,r*=2;for(var a=0;a0)}e.thm[2].l[a]=Math.min(l,e.thm[2].l[a]),e.thm[3].l[a]=Math.min(u,e.thm[3].l[a])}o*=h.BLKSIZE_s/h.BLKSIZE;for(a=0;a0)}e.thm[2].s[a][s]=Math.min(e.thm[2].s[a][s],l),e.thm[3].s[a][s]=Math.min(e.thm[3].s[a][s],u)}}function X(e,t,n,r,o){var a,i,s=0,c=0;for(a=i=0;a=0),d(n[i]>=0),s+=t[i],c+=n[i],i++;if(e.en[r].s[a][o]=s,e.thm[r].s[a][o]=c,i>=u){++a;break}d(t[i]>=0),d(n[i]>=0);var p=e.PSY.bo_s_weight[a],m=1-p;s=p*t[i],c=p*n[i],e.en[r].s[a][o]+=s,e.thm[r].s[a][o]+=c,s=m*t[i],c=m*n[i]}for(;a=0),d(n[a]>=0),i+=t[a],s+=n[a],a++;if(e.en[r].l[o]=i,e.thm[r].l[o]=s,a>=l){++o;break}d(t[a]>=0),d(n[a]>=0);var f=e.PSY.bo_l_weight[o],p=1-f;i=f*t[a],s=f*n[a],e.en[r].l[o]+=i,e.thm[r].l[o]+=s,i=p*t[a],s=p*n[a]}for(;o=0)}for(;s<=h.CBANDS;++s)n[s]=0,r[s]=0}function W(e,t,n,r){var o=e.internal_flags;e.short_blocks!=i.short_block_coupled||0!=t[0]&&0!=t[1]||(t[0]=t[1]=0);for(var a=0;a=1?e:n<=0?t:t>0?Math.pow(e/t,n)*t:0}var Z=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130];function Q(e,n){for(var r=309.07,o=0;o0){var c=i*n,l=e.en.s[o][a];l>c&&(l>1e10*c?r+=Z[o]*(10*t):(d(c>0),r+=Z[o]*s.FAST_LOG10(l/c)))}}return r}var J=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1];function ee(e,n){for(var r=281.0575,o=0;o0){var i=a*n,c=e.en.l[o];c>i&&(c>1e10*i?r+=J[o]*(10*t):(d(i>0),r+=J[o]*s.FAST_LOG10(c/i)))}}return r}function te(e,t,n,r,o){var a,i;for(a=i=0;a=0),c+=u,l=0),d(c>=0),d(n[a]>=0),d(r[a]>=0),d(o[a]>=0)}}function ne(e,t,n,r){var o=P.length-1,a=0,i=n[a]+n[a+1];if(d(i>=0),i>0){var s=t[a];s0),i=20*(2*s-i)/(i*(e.numlines_l[a]+e.numlines_l[a+1]-1));var c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;for(a=1;a=0),i>0){s=t[a-1];s0),i=20*(3*s-i)/(i*(e.numlines_l[a-1]+e.numlines_l[a]+e.numlines_l[a+1]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;if(d(a>0),d(a==e.npart_l-1),i=n[a-1]+n[a],d(i>=0),i>0){s=t[a-1];s0),i=20*(2*s-i)/(i*(e.numlines_l[a-1]+e.numlines_l[a]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;d(a==e.npart_l-1)}var re=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function oe(t,n,r,o,a,i,c,l){var u=t.internal_flags;if(o<2)e.fft_long(u,c[l],o,n,r);else if(2==o)for(var f=h.BLKSIZE-1;f>=0;--f){var d=c[l+0][f],p=c[l+1][f];c[l+0][f]=(d+p)*s.SQRT2*.5,c[l+1][f]=(d-p)*s.SQRT2*.5}i[0]=A(c[l+0][0]),i[0]*=i[0];for(f=h.BLKSIZE/2-1;f>=0;--f){var m=c[l+0][h.BLKSIZE/2-f],g=c[l+0][h.BLKSIZE/2+f];i[h.BLKSIZE/2-f]=A(.5*(m*m+g*g))}var v=0;for(f=11;f=0;--f){var d=c[l+0][a][f],p=c[l+1][a][f];c[l+0][a][f]=(d+p)*s.SQRT2*.5,c[l+1][a][f]=(d-p)*s.SQRT2*.5}i[a][0]=c[l+0][a][0],i[a][0]*=i[a][0];for(f=h.BLKSIZE_s/2-1;f>=0;--f){var m=c[l+0][a][h.BLKSIZE_s/2-f],g=c[l+0][a][h.BLKSIZE_s/2+f];i[a][h.BLKSIZE_s/2-f]=A(.5*(m*m+g*g))}}function ie(e,t,n,r){var o=e.internal_flags;2==e.athaa_loudapprox&&n<2&&(o.loudness_sq[t][n]=o.loudness_sq_save[n],o.loudness_sq_save[n]=E(r,o))}this.L3psycho_anal_ns=function(e,t,a,i,s,p,m,g,v,_){var b,S,M,A,E,R,O,C,j,B,I=e.internal_flags,L=u([2,h.BLKSIZE]),N=u([2,3,h.BLKSIZE_s]),D=l(h.CBANDS+1),F=l(h.CBANDS+1),U=l(h.CBANDS+2),$=f(2),Z=f(2),J=u([2,576]),oe=f(h.CBANDS+2),ae=f(h.CBANDS+2);for(c.fill(ae,0),b=I.channels_out,e.mode==MPEGMode.JOINT_STEREO&&(b=4),j=e.VBR==o.vbr_off?0==I.ResvMax?0:I.ResvSize/I.ResvMax*.5:e.VBR==o.vbr_rh||e.VBR==o.vbr_mtrh||e.VBR==o.vbr_mt?.6:1,S=0;S2&&(p[i][S].en.assign(I.en[S+2]),p[i][S].thm.assign(I.thm[S+2]))}for(S=0;S0),me[A]=pe[A]/I.nsPsy.last_en_subshort[S][A+4],he[0]+=pe[A];if(2==S)for(A=0;A<576;A++){var xe,Se;xe=J[0][A],Se=J[1][A],J[0][A]=xe+Se,J[1][A]=xe-Se}var ke=J[1&S],Me=0;for(A=0;A<9;A++){for(var Ae=Me+64,Ee=1;Mepe[A+3-2]?(d(pe[A+3-2]>0),Ee/=pe[A+3-2]):pe[A+3-2]>10*Ee?(d(Ee>0),Ee=pe[A+3-2]/(10*Ee)):Ee=0,me[A+3]=Ee}if(e.analysis){var Te=me[0];for(A=1;A<12;A++)Tede&&(be[A/3]=A%3+1);for(A=1;A<4;A++){var Re;he[A-1]>he[A]?(d(he[A]>0),Re=he[A-1]/he[A]):(d(he[A-1]>0),Re=he[A]/he[A-1]),Re<1.7&&(be[A]=0,1==A&&(be[0]=0))}for(0!=be[0]&&0!=I.nsPsy.lastAttacks[S]&&(be[0]=0),3!=I.nsPsy.lastAttacks[S]&&be[0]+be[1]+be[2]+be[3]==0||(ge=0,0!=be[1]&&0!=be[0]&&(be[1]=0),0!=be[2]&&0!=be[1]&&(be[2]=0),0!=be[3]&&0!=be[2]&&(be[3]=0)),S<2?Z[S]=ge:0==ge&&(Z[0]=Z[1]=0),v[S]=I.tot_ener[S],fe=N,ue=L,T(e,ye,we,ue,1&S,fe,1&S,i,S,t,a),te(I,ye,D,ve,_e),ne(I,ve,_e,oe),C=0;C<3;C++){var Oe,Ce;for(G(e,we,F,U,S,C),X(I,F,U,S,C),O=0;O=2||1==be[C+1]){var je=0!=C?C-1:2;Ee=K(I.thm[S].s[O][je],Ce,w*j);Ce=Math.min(Ce,Ee)}if(1==be[C]){je=0!=C?C-1:2,Ee=K(I.thm[S].s[O][je],Ce,x*j);Ce=Math.min(Ce,Ee)}else if(0!=C&&3==be[C-1]||0==C&&3==I.nsPsy.lastAttacks[S]){je=2!=C?C+1:0,Ee=K(I.thm[S].s[O][je],Ce,x*j);Ce=Math.min(Ce,Ee)}Oe=pe[3*C+3]+pe[3*C+4]+pe[3*C+5],6*pe[3*C+5]0&&q(e,e.interChRatio),e.mode==MPEGMode.JOINT_STEREO)&&(V(I),B=e.msfix,Math.abs(B)>0&&z(I,B,e.ATHlower*I.ATH.adjust));for(W(e,Z,_,$),S=0;S1?(Le=g,Fe=-2,Ne=h.NORM_TYPE,_[0]!=h.SHORT_TYPE&&_[1]!=h.SHORT_TYPE||(Ne=h.SHORT_TYPE),De=p[i][S-2]):(Le=m,Fe=0,Ne=_[S],De=s[i][S]),Ne==h.SHORT_TYPE?Le[Fe+S]=Q(De,I.masking_lower):Le[Fe+S]=ee(De,I.masking_lower),e.analysis&&(I.pinfo.pe[i][S]=Le[Fe+S])}return 0};var se=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function ce(e,t,n,r,o,a,i,s,c,f){for(var p=u([2,576]),h=e.internal_flags,m=h.channels_out,g=e.mode==MPEGMode.JOINT_STEREO?4:m,v=0;v2&&(a[r][v].en.assign(h.en[v+2]),a[r][v].thm.assign(h.thm[v+2]))}for(v=0;v0;++b,--x){var C=p[0][b],j=p[1][b];p[0][b]=C+j,p[1][b]=C-j}for(b=0;b<3;b++)M[b]=h.nsPsy.last_en_subshort[v][b+6],d(h.nsPsy.last_en_subshort[v][b+4]>0),S[b]=M[b]/h.nsPsy.last_en_subshort[v][b+4],A[0]+=M[b];for(b=0;b<9;b++){for(var B=T+64,I=1;TM[b+3-2]?(d(M[b+3-2]>0),I/=M[b+3-2]):M[b+3-2]>10*I?(d(I>0),I=M[b+3-2]/(10*I)):I=0,S[b+3]=I}for(b=0;b<3;++b){var P=M[3*b+3]+M[3*b+4]+M[3*b+5],L=1;6*M[3*b+5]R&&(c[v][b/3]=b%3+1);for(b=1;b<4;b++){var D=A[b-1],F=A[b],H=Math.max(D,F);H<4e4&&D<1.7*F&&F<1.7*D&&(1==b&&c[v][0]<=c[v][b]&&(c[v][0]=0),c[v][b]=0)}c[v][0]<=h.nsPsy.lastAttacks[v]&&(c[v][0]=0),3!=h.nsPsy.lastAttacks[v]&&c[v][0]+c[v][1]+c[v][2]+c[v][3]==0||(O=0,0!=c[v][1]&&0!=c[v][0]&&(c[v][1]=0),0!=c[v][2]&&0!=c[v][1]&&(c[v][2]=0),0!=c[v][3]&&0!=c[v][2]&&(c[v][3]=0)),v<2?f[v]=O:0==O&&(f[0]=f[1]=0),i[v]=h.tot_ener[v]}}function le(e,t,n){if(0==n)for(var r=0;r=0),i>0){var s=t[a];s0),i=20*(2*s-i)/(i*(e.numlines_s[a]+e.numlines_s[a+1]-1));var c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;for(a=1;a=0),i>0){s=t[a-1];s0),i=20*(3*s-i)/(i*(e.numlines_s[a-1]+e.numlines_s[a]+e.numlines_s[a+1]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;if(d(a>0),d(a==e.npart_s-1),i=n[a-1]+n[a],d(i>=0),i>0){s=t[a-1];s0),i=20*(2*s-i)/(i*(e.numlines_s[a-1]+e.numlines_s[a]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;d(a==e.npart_s-1)}function de(e,t,n,r,o,a){var i,s,c,u=e.internal_flags,f=new float[h.CBANDS],p=l(h.CBANDS),m=new int[h.CBANDS];for(c=s=0;c=0),f[c]=v,d(_>0),p[c]=g/_,d(p[c]>=0)}for(d(c==u.npart_s),d(129==s);cx&&(r[c]=x),u.masking_lower>1&&(r[c]*=u.masking_lower),r[c]>n[c]&&(r[c]=n[c]),u.masking_lower<1&&(r[c]*=u.masking_lower),d(r[c]>=0)}for(;c0?Math.min(v,M):Math.min(v,o[s]*x)}else{var A=r*e.nb_2[i][s],E=n*e.nb_1[i][s];A<=0&&(A=v),E<=0&&(E=v),M=e.blocktype_old[1&i]==h.NORM_TYPE?Math.min(E,A):E,a[s]=Math.min(v,M)}e.nb_2[i][s]=e.nb_1[i][s],e.nb_1[i][s]=v,g=c[s],g*=e.minval_l[s],g*=_,a[s]>g&&(a[s]=g),e.masking_lower>1&&(a[s]*=e.masking_lower),a[s]>o[s]&&(a[s]=o[s]),e.masking_lower<1&&(a[s]*=e.masking_lower),d(a[s]>=0)}for(;s0?Math.pow(10,o):1,f=0;f0){var w,x,S=r[f]*u;if(w=Math.min(Math.max(m,S),Math.max(g,S)),v=Math.max(c,S),_=Math.max(s,S),x=v+_,x>0&&w*l0)}c=Math.min(v,c),s=Math.min(_,s)}c>p&&(c=p),s>h&&(s=h),t[2][f]=c,t[3][f]=s}}function ve(e,t){var n,r=e;return n=r>=0?27*-r:r*t,n<=-72?0:Math.exp(n*M)}function _e(e){var t=0,n=0,r=0;for(r=0;ve(r,e)>1e-20;r-=1);o=r,a=0;while(Math.abs(a-o)>1e-12)r=(a+o)/2,ve(r,e)>0?a=r:o=r;t=o;var o,a;r=0;for(r=0;ve(r,e)>1e-20;r+=1);o=0,a=r;while(Math.abs(a-o)>1e-12)r=(a+o)/2,ve(r,e)>0?o=r:a=r;n=a;var i,s=0,c=1e3;for(i=0;i<=c;++i){r=t+i*(n-t)/c;var l=ve(r,e);s+=l}var u=(c+1)/(s*(n-t));return u}function be(e){var t,n,r,o;return t=e,t*=t>=0?3:1.5,t>=.5&&t<=2.5?(o=t-.5,n=8*(o*o-2*o)):n=0,t+=.474,r=15.811389+7.5*t-17.5*Math.sqrt(1+t*t),r<=-60?0:(t=Math.exp((n+r)*M),t/=.6609193,t)}function ye(e){return e<0&&(e=0),e*=.001,13*Math.atan(.76*e)+3.5*Math.atan(e*e/56.25)}function we(e,t,n,r,o,a,i,s,c,u,p,m){var g,_=l(h.CBANDS+1),b=s/(m>15?1152:384),y=f(h.HBLKSIZE);s/=c;var w=0,x=0;for(g=0;gc/2){w=c/2,++g;break}}d(gc/2&&(A=c/2),n[k]=(y[M]+y[A])/2,t[k]=y[A];var O=b*T;i[k]=(O-_[t[k]])/(_[t[k]+1]-_[t[k]]),i[k]<0?i[k]=0:i[k]>1&&(i[k]=1),R=ye(s*u[k]*p),R=Math.min(R,15.5)/15.5,a[k]=Math.pow(10,1.25*(1-Math.cos(Math.PI*R))-2.5)}w=0;for(var C=0;C0)break;for(e[f][0]=i,i=t-1;i>0;i--)if(s[f][i]>0)break;e[f][1]=i,c+=e[f][1]-e[f][0]+1}var g=l(c),v=0;for(f=0;f=2||1==T[C][B+1]){var N=0!=B?B-1:2,D=K(g.thm[C].s[I][N],L,w*E);L=Math.min(L,D)}else if(1==T[C][B]){N=0!=B?B-1:2,D=K(g.thm[C].s[I][N],L,x*E);L=Math.min(L,D)}else if(0!=B&&3==T[C][B-1]||0==B&&3==g.nsPsy.lastAttacks[C]){N=2!=B?B+1:0,D=K(g.thm[C].s[I][N],L,x*E);L=Math.min(L,D)}L*=A[C][B],P[B]=L}for(B=0;B<3;B++)g.thm[C].s[I][B]=P[B]}}for(C=0;C1?(F=s,H=-2,U=h.NORM_TYPE,d[0]!=h.SHORT_TYPE&&d[1]!=h.SHORT_TYPE||(U=h.SHORT_TYPE),$=a[r][C-2]):(F=i,H=0,U=d[C],$=o[r][C]),U==h.SHORT_TYPE?F[H+C]=Q($,g.masking_lower):F[H+C]=ee($,g.masking_lower),e.analysis&&(g.pinfo.pe[r][C]=F[H+C])}return 0},this.psymodel_init=function(n){var r,i=n.internal_flags,s=!0,c=13,u=24,f=0,p=0,m=-8.25,g=-4.5,v=l(h.CBANDS),_=l(h.CBANDS),y=l(h.CBANDS),w=n.out_samplerate;switch(n.experimentalZ){default:case 0:s=!0;break;case 1:s=n.VBR!=o.vbr_mtrh&&n.VBR!=o.vbr_mt;break;case 2:s=!1;break;case 3:c=8,f=-1.75,p=-.0125,m=-8.25,g=-2.25;break}for(i.ms_ener_ratio_old=.25,i.blocktype_old[0]=i.blocktype_old[1]=h.NORM_TYPE,r=0;r<4;++r){for(var x=0;x=c&&(M=p*(v[r]-c)/(u-c)+f*(u-v[r])/(u-c)),y[r]=Math.pow(10,M/10),i.numlines_l[r]>0?i.rnumlines_l[r]=1/i.numlines_l[r]:i.rnumlines_l[r]=0}i.s3_ll=xe(i.s3ind,i.npart_l,v,_,y,s);var A;x=0;for(r=0;rO&&(R=O)}i.ATH.cb_l[r]=R,R=20*v[r]/10-20,R>6&&(R=100),R<-15&&(R=-15),R-=8,i.minval_l[r]=Math.pow(10,R/10)*i.numlines_l[r]}for(i.npart_s=we(i.numlines_s,i.bo_s,i.bm_s,v,_,i.mld_s,i.PSY.bo_s_weight,w,h.BLKSIZE_s,i.scalefac_band.s,h.BLKSIZE_s/384,h.SBMAX_s),d(i.npart_s=c&&(M=g*(v[r]-c)/(u-c)+m*(u-v[r])/(u-c)),y[r]=Math.pow(10,M/10),R=a.MAX_VALUE;for(E=0;EO&&(R=O)}i.ATH.cb_s[r]=R,R=7*v[r]/12-7,v[r]>12&&(R*=1+3.1*Math.log(1+R)),v[r]<12&&(R*=1+2.3*Math.log(1-R)),R<-15&&(R=-15),R-=8,i.minval_s[r]=Math.pow(10,R/10)*i.numlines_s[r]}i.s3_ss=xe(i.s3ind_s,i.npart_s,v,_,y,s),L(),e.init_fft(i),i.decay=Math.exp(-1*t/(b*w/192)),A=S,0!=(2&n.exp_nspsytune)&&(A=1),Math.abs(n.msfix)>0&&(A=n.msfix),n.msfix=A;for(var C=0;Ci.npart_l-1&&(i.s3ind[C][1]=i.npart_l-1);var j=576*i.mode_gr/w;if(i.ATH.decay=Math.pow(10,-1.2*j),i.ATH.adjust=.01,i.ATH.adjustLimit=1,d(i.bo_l[h.SBMAX_l-1]<=i.npart_l),d(i.bo_s[h.SBMAX_s-1]<=i.npart_s),-1!=n.ATHtype){var B=n.out_samplerate/h.BLKSIZE,I=0;for(T=0,r=0;r=0;)i.ATH.eql_w[r]*=I}for(C=x=0;C2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}t.__esModule=!0,t.inherits=r},2695:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),a=(r.new_int_n,r.assert,n("f3b5"));function i(){this.tt=[[null,null],[null,null]],this.main_data_begin=0,this.private_bits=0,this.resvDrain_pre=0,this.resvDrain_post=0,this.scfsi=[o(4),o(4)];for(var e=0;e<2;e++)for(var t=0;t<2;t++)this.tt[e][t]=new a}e.exports=i},"2ba4":function(e,t,n){var r=n("40d5"),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},"2d00":function(e,t,n){var r,o,a=n("da84"),i=n("342f"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},"2d78":function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n("254c"),o=n("316e"),a=u(o),i=n("b7fe"),s=u(i),c=n("4128"),l=u(c);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var f=function(e){return l.run(s.run(e))},d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=f(e),r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=f(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)};t.find=d,t.inherits=r.inherits,t.options=a,t.parser=l,t.scanner=s,t.test=p,t.tokenize=f},"2f21":function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays);r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function i(){var e=64.82,t=(i.YULE_ORDER,.95),n=(i.MAX_SAMP_FREQ,i.RMS_WINDOW_TIME_NUMERATOR),r=i.RMS_WINDOW_TIME_DENOMINATOR,s=(i.MAX_SAMPLES_PER_WINDOW,[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.26408300200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]]),c=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];function l(e,t,n,r,o,a){while(0!=o--)n[r]=1e-10+e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4]-n[r-3]*a[5]+e[t-3]*a[6]-n[r-4]*a[7]+e[t-4]*a[8]-n[r-5]*a[9]+e[t-5]*a[10]-n[r-6]*a[11]+e[t-6]*a[12]-n[r-7]*a[13]+e[t-7]*a[14]-n[r-8]*a[15]+e[t-8]*a[16]-n[r-9]*a[17]+e[t-9]*a[18]-n[r-10]*a[19]+e[t-10]*a[20],++r,++t}function u(e,t,n,r,o,a){while(0!=o--)n[r]=e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4],++r,++t}function f(e,t){for(var o=0;o0;)if((s-=n[o])<=0)break;return e-o/i.STEPS_per_dB}this.InitGainAnalysis=function(e,t){return f(e,t)!=INIT_GAIN_ANALYSIS_OK?INIT_GAIN_ANALYSIS_ERROR:(e.linpre=MAX_ORDER,e.rinpre=MAX_ORDER,e.lstep=MAX_ORDER,e.rstep=MAX_ORDER,e.lout=MAX_ORDER,e.rout=MAX_ORDER,a.fill(e.B,0),INIT_GAIN_ANALYSIS_OK)},this.AnalyzeSamples=function(e,t,n,r,a,f,p){var h,m,g,v,_,b,y;if(0==f)return GAIN_ANALYSIS_OK;switch(y=0,_=f,p){case 1:r=t,a=n;break;case 2:break;default:return GAIN_ANALYSIS_ERROR}f0){b=_>e.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:_,yMAX_ORDER-y&&(b=MAX_ORDER-y)):(h=n+y,m=t,g=a+y,v=r),l(m,h,e.lstepbuf,e.lstep+e.totsamp,b,s[e.reqindex]),l(v,g,e.rstepbuf,e.rstep+e.totsamp,b,s[e.reqindex]),u(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,b,c[e.reqindex]),u(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,b,c[e.reqindex]),h=e.lout+e.totsamp,m=e.loutbuf,g=e.rout+e.totsamp,v=e.routbuf;var w=b%8;while(0!=w--)e.lsum+=d(m[h++]),e.rsum+=d(v[g++]);w=b/8;while(0!=w--)e.lsum+=d(m[h+0])+d(m[h+1])+d(m[h+2])+d(m[h+3])+d(m[h+4])+d(m[h+5])+d(m[h+6])+d(m[h+7]),h+=8,e.rsum+=d(v[g+0])+d(v[g+1])+d(v[g+2])+d(v[g+3])+d(v[g+4])+d(v[g+5])+d(v[g+6])+d(v[g+7]),g+=8;if(_-=b,y+=b,e.totsamp+=b,e.totsamp==e.sampleWindow){var x=10*i.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37),S=x<=0?0:0|x;S>=e.A.length&&(S=e.A.length-1),e.A[S]++,e.lsum=e.rsum=0,o.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),o.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),o.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),o.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0}if(e.totsamp>e.sampleWindow)return GAIN_ANALYSIS_ERROR}return fu)a.f(e,n=o[u++],r[n]);return e}},3967:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode);r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function a(){function e(e,t,n,r,o,a,i,s,c,l,u,f,d,p,h){this.vbr_q=e,this.quant_comp=t,this.quant_comp_s=n,this.expY=r,this.st_lrm=o,this.st_s=a,this.masking_adj=i,this.masking_adj_short=s,this.ath_lower=c,this.ath_curve=l,this.ath_sensitivity=u,this.interch=f,this.safejoint=d,this.sfb21mod=p,this.msfix=h}function t(e,t,n,r,o,a,i,s,c,l,u,f,d,p){this.quant_comp=t,this.quant_comp_s=n,this.safejoint=r,this.nsmsfix=o,this.st_lrm=a,this.st_s=i,this.nsbass=s,this.scale=c,this.masking_adj=l,this.ath_lower=u,this.ath_curve=f,this.interch=d,this.sfscale=p}var n;this.setModules=function(e){n=e};var r=[new e(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new e(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new e(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new e(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new e(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new e(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new e(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new e(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new e(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],a=[new e(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new e(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new e(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new e(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new e(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new e(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new e(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new e(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new e(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)];function i(e,t,n){var i=e.VBR==o.vbr_rh?r:a,s=e.VBR_q_frac,c=i[t],u=i[t+1],f=c;c.st_lrm=c.st_lrm+s*(u.st_lrm-c.st_lrm),c.st_s=c.st_s+s*(u.st_s-c.st_s),c.masking_adj=c.masking_adj+s*(u.masking_adj-c.masking_adj),c.masking_adj_short=c.masking_adj_short+s*(u.masking_adj_short-c.masking_adj_short),c.ath_lower=c.ath_lower+s*(u.ath_lower-c.ath_lower),c.ath_curve=c.ath_curve+s*(u.ath_curve-c.ath_curve),c.ath_sensitivity=c.ath_sensitivity+s*(u.ath_sensitivity-c.ath_sensitivity),c.interch=c.interch+s*(u.interch-c.interch),c.msfix=c.msfix+s*(u.msfix-c.msfix),l(e,f.vbr_q),0!=n?e.quant_comp=f.quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=f.quant_comp),0!=n?e.quant_comp_short=f.quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=f.quant_comp_s),0!=f.expY&&(e.experimentalY=0!=f.expY),0!=n?e.internal_flags.nsPsy.attackthre=f.st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=f.st_lrm),0!=n?e.internal_flags.nsPsy.attackthre_s=f.st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=f.st_s),0!=n?e.maskingadjust=f.masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=f.masking_adj),0!=n?e.maskingadjust_short=f.masking_adj_short:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=f.masking_adj_short),0!=n?e.ATHlower=-f.ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-f.ath_lower/10),0!=n?e.ATHcurve=f.ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=f.ath_curve),0!=n?e.athaa_sensitivity=f.ath_sensitivity:Math.abs(e.athaa_sensitivity- -1)>0||(e.athaa_sensitivity=f.ath_sensitivity),f.interch>0&&(0!=n?e.interChRatio=f.interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=f.interch)),f.safejoint>0&&(e.exp_nspsytune=e.exp_nspsytune|f.safejoint),f.sfb21mod>0&&(e.exp_nspsytune=e.exp_nspsytune|f.sfb21mod<<20),0!=n?e.msfix=f.msfix:Math.abs(e.msfix- -1)>0||(e.msfix=f.msfix),0==n&&(e.VBR_q=t,e.VBR_q_frac=s)}var s=[new t(8,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new t(16,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new t(24,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new t(32,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new t(40,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(48,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(56,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new t(64,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new t(80,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new t(96,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new t(112,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new t(128,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new t(160,9,9,1,1.79,6,135,0,.95,-2,5,3.5,0,1),new t(192,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new t(224,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new t(256,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new t(320,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];function c(e,t,r){var a=t,i=n.nearestBitrateFullIndex(t);if(e.VBR=o.vbr_abr,e.VBR_mean_bitrate_kbps=a,e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320),e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.brate=e.VBR_mean_bitrate_kbps,e.VBR_mean_bitrate_kbps>320&&(e.disable_reservoir=!0),s[i].safejoint>0&&(e.exp_nspsytune=2|e.exp_nspsytune),s[i].sfscale>0&&(e.internal_flags.noise_shaping=2),Math.abs(s[i].nsbass)>0){var c=int(4*s[i].nsbass);c<0&&(c+=64),e.exp_nspsytune=e.exp_nspsytune|c<<2}return 0!=r?e.quant_comp=s[i].quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=s[i].quant_comp),0!=r?e.quant_comp_short=s[i].quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=s[i].quant_comp_s),0!=r?e.msfix=s[i].nsmsfix:Math.abs(e.msfix- -1)>0||(e.msfix=s[i].nsmsfix),0!=r?e.internal_flags.nsPsy.attackthre=s[i].st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=s[i].st_lrm),0!=r?e.internal_flags.nsPsy.attackthre_s=s[i].st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=s[i].st_s),0!=r?e.scale=s[i].scale:Math.abs(e.scale- -1)>0||(e.scale=s[i].scale),0!=r?e.maskingadjust=s[i].masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=s[i].masking_adj),s[i].masking_adj>0?0!=r?e.maskingadjust_short=.9*s[i].masking_adj:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=.9*s[i].masking_adj):0!=r?e.maskingadjust_short=1.1*s[i].masking_adj:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=1.1*s[i].masking_adj),0!=r?e.ATHlower=-s[i].ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-s[i].ath_lower/10),0!=r?e.ATHcurve=s[i].ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=s[i].ath_curve),0!=r?e.interChRatio=s[i].interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=s[i].interch),t}function l(e,t){var n=0;return 0>t&&(n=-1,t=0),91?arguments[1]:void 0,1),n=c(e);if(g)return o(p,this,n,t);var r=this.length,a=i(n),l=0;if(a+t>r)throw u("Wrong length");while(l=0&&d++,n++,u++;if(d<0)for(var p=n-u;p0&&(r.push(new o.TEXT(a)),a=[]),n-=d,u-=d;var h=f.emit();r.push(new h(e.slice(n-u,n)))}}return a.length>0&&r.push(new o.TEXT(a)),r};t.State=r.TokenState,t.TOKENS=a,t.run=Y,t.start=l},"42ca":function(e,t,n){"use strict";n("cc2b")},"44ad":function(e,t,n){var r=n("e330"),o=n("d039"),a=n("c6b6"),i=Object,s=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):i(e)}:i},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),a=n("b622"),i=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},"46f3":function(e,t,n){"use strict";function r(){return function(e){e&&(this.v=e)}}t.__esModule=!0,t.createTokenClass=r},4840:function(e,t,n){var r=n("825a"),o=n("5087"),a=n("7234"),i=n("b622"),s=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||a(n=r(i)[s])?t:o(n)}},"485a":function(e,t,n){var r=n("c65b"),o=n("1626"),a=n("861d"),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!a(s=r(n,e)))return s;if(o(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!a(s=r(n,e)))return s;throw i("Can't convert object to primitive value")}},"4a65":function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert),s=n("f052"),c=n("4b5e"),l=n("9828"),u=n("bd8b");function f(e){var t=e;this.quantize=t,this.iteration_loop=function(e,t,n,r){var f,d=e.internal_flags,p=o(l.SFBMAX),h=o(576),m=a(2),g=0,v=d.l3_side,_=new s(g);this.quantize.rv.ResvFrameBegin(e,_),g=_.bits;for(var b=0;b.03125)e.ATH.adjust>=1?e.ATH.adjust=1:e.ATH.adjust=r?(e.ATH.adjust*=.075*r+.925,e.ATH.adjust=r?e.ATH.adjust=r:e.ATH.adjust=f.FFTOFFSET),u(o.mf_size>=f.BLKSIZE+e.framesize-f.FFTOFFSET),u(o.mf_size>=512+e.framesize-32)}}this.lame_encode_mp3_frame=function(e,n,s,u,w,x){var S,k=i([2,2]);k[0][0]=new t,k[0][1]=new t,k[1][0]=new t,k[1][1]=new t;var M,A=i([2,2]);A[0][0]=new t,A[0][1]=new t,A[1][0]=new t,A[1][1]=new t;var E,T,R,O=[null,null],C=e.internal_flags,j=c([2,4]),B=[.5,.5],I=[[0,0],[0,0]],P=[[0,0],[0,0]];if(O[0]=n,O[1]=s,0==C.lame_encode_frame_init&&y(e,O),C.padding=0,(C.slot_lag-=C.frac_SpF)<0&&(C.slot_lag+=e.out_samplerate,C.padding=1),0!=C.psymodel){var L,N=[null,null],D=0,F=l(2);for(R=0;R0&&(B[R]=j[R][3]/B[R])),T=0;Tu)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},5087:function(e,t,n){var r=n("68ee"),o=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a constructor")}},"50c4":function(e,t,n){var r=n("5926"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"53ca":function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){var r=n("d066"),o=n("e330"),a=n("241c"),i=n("7418"),s=n("825a"),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=i.f;return n?c(t,n(e)):t}},"577e":function(e,t,n){var r=n("f5df"),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"58b1":function(e,t,n){var r=n("0206"),o=r.assert;function a(){var e;this.setModules=function(t){e=t},this.ResvFrameBegin=function(t,n){var r,a=t.internal_flags,i=a.l3_side,s=e.getframebits(t);n.bits=(s-8*a.sideinfo_len)/a.mode_gr;var c=2048*a.mode_gr-8;t.brate>320?r=8*int(1e3*t.brate/(t.out_samplerate/1152)/8+.5):(r=11520,t.strict_ISO&&(r=8*int(32e4/(t.out_samplerate/1152)/8+.5))),a.ResvMax=r-s,a.ResvMax>c&&(a.ResvMax=c),(a.ResvMax<0||t.disable_reservoir)&&(a.ResvMax=0);var l=n.bits*a.mode_gr+Math.min(a.ResvSize,a.ResvMax);return l>r&&(l=r),o(0==a.ResvMax%8),o(a.ResvMax>=0),i.resvDrain_pre=0,null!=a.pinfo&&(a.pinfo.mean_bits=n.bits/2,a.pinfo.resvsize=a.ResvSize),l},this.ResvMaxBits=function(e,t,n,r){var o,a=e.internal_flags,i=a.ResvSize,s=a.ResvMax;0!=r&&(i+=t),0!=(1&a.substep_shaping)&&(s*=.9),n.bits=t,10*i>9*s?(o=i-9*s/10,n.bits+=o,a.substep_shaping|=128):(o=0,a.substep_shaping&=127,e.disable_reservoir||0!=(1&a.substep_shaping)||(n.bits-=.1*t));var c=i<6*a.ResvMax/10?i:6*a.ResvMax/10;return c-=o,c<0&&(c=0),c},this.ResvAdjust=function(e,t){e.ResvSize-=t.part2_3_length+t.part2_length},this.ResvFrameEnd=function(e,t){var n,r=e.l3_side;e.ResvSize+=t*e.mode_gr;var a=0;r.resvDrain_post=0,r.resvDrain_pre=0,0!=(n=e.ResvSize%8)&&(a+=n),n=e.ResvSize-a-e.ResvMax,n>0&&(o(0==n%8),o(n>=0),a+=n);var i=Math.min(8*r.main_data_begin,a)/8;r.resvDrain_pre+=8*i,a-=8*i,e.ResvSize-=8*i,r.main_data_begin-=i,r.resvDrain_post+=a,e.ResvSize-=a}}e.exports=a},5926:function(e,t,n){var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){var r=n("1626"),o=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},"5b81":function(e,t,n){"use strict";var r=n("23e7"),o=n("c65b"),a=n("e330"),i=n("1d80"),s=n("1626"),c=n("7234"),l=n("44e7"),u=n("577e"),f=n("dc4a"),d=n("90d8"),p=n("0cb2"),h=n("b622"),m=n("c430"),g=h("replace"),v=TypeError,_=a("".indexOf),b=a("".replace),y=a("".slice),w=Math.max,x=function(e,t,n){return n>e.length?-1:""===t?n:_(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,a,h,S,k,M,A,E,T=i(this),R=0,O=0,C="";if(!c(e)){if(n=l(e),n&&(r=u(i(d(e))),!~_(r,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(a=f(e,g),a)return o(a,e,T,t);if(m&&n)return b(u(T),e,t)}h=u(T),S=u(e),k=s(t),k||(t=u(t)),M=S.length,A=w(1,M),R=x(h,S,0);while(-1!==R)E=k?u(t(S,R,h)):p(S,h,R,[],void 0,t),C+=y(h,O,R)+E,O=R+M,R=x(h,S,R+A);return O=p?e?"":void 0:(r=c(f,d),r<55296||r>56319||d+1===p||(u=c(f,d+1))<56320||u>57343?e?s(f,d):r:e?l(f,d,d+2):u-56320+(r-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},"67b2":function(e,t){function n(e){var t=e;this.ordinal=function(){return t}}n.STEREO=new n(0),n.JOINT_STEREO=new n(1),n.DUAL_CHANNEL=new n(2),n.MONO=new n(3),n.NOT_SET=new n(4),e.exports=n},"68ee":function(e,t,n){var r=n("e330"),o=n("d039"),a=n("1626"),i=n("f5df"),s=n("d066"),c=n("8925"),l=function(){},u=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(l),m=function(e){if(!a(e))return!1;try{return f(l,u,e),!0}catch(t){return!1}},g=function(e){if(!a(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!f||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},"69b2":function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays),i=(r.new_array_n,r.new_byte),s=(r.new_double,r.new_float,r.new_float_n),c=r.new_int,l=(r.new_int_n,r.assert),u=n("d9be"),f=n("5f84"),d=n("4b5e"),p=n("bd8b");function h(){var e=this,t=32773,n=32,r=null,h=null,m=null,g=null;this.setModules=function(e,t,n,o){r=e,h=t,m=n,g=o};var v=null,_=0,b=0,y=0;function w(e){o.arraycopy(e.header[e.w_ptr].buf,0,v,b,e.sideinfo_len),b+=e.sideinfo_len,_+=8*e.sideinfo_len,e.w_ptr=e.w_ptr+1&p.MAX_HEADER_BUF-1}function x(e,t,r){l(r0){var o;0==y&&(y=8,b++,l(b=_),e.header[e.w_ptr].write_timing==_&&w(e),v[b]=0),o=Math.min(r,y),r-=o,y-=o,l(r>r<0){var o;0==y&&(y=8,b++,l(b>r<=0),t>=8&&(x(r,76,8),t-=8),t>=8&&(x(r,65,8),t-=8),t>=8&&(x(r,77,8),t-=8),t>=8&&(x(r,69,8),t-=8),t>=32){var o=m.getLameShortVersion();if(t>=32)for(n=0;n=8;++n)t-=8,x(r,o.charAt(n),8)}for(;t>=1;t-=1)x(r,r.ancillary_flag,1),r.ancillary_flag^=e.disable_reservoir?0:1;l(0==t)}function M(e,t,r){var o=e.header[e.h_ptr].ptr;while(r>0){var a=Math.min(r,8-(7&o));r-=a,l(r>3]|=t>>r<<8-(7&o)-a,o+=a}e.header[e.h_ptr].ptr=o}function A(e,n){e<<=8;for(var r=0;r<8;r++)e<<=1,n<<=1,0!=(65536&(n^e))&&(n^=t);return n}function E(e,t){var n,r,i,s=e.internal_flags;if(n=s.l3_side,s.header[s.h_ptr].ptr=0,a.fill(s.header[s.h_ptr].buf,0,s.sideinfo_len,0),e.out_samplerate<16e3?M(s,4094,12):M(s,4095,12),M(s,e.version,1),M(s,1,2),M(s,e.error_protection?0:1,1),M(s,s.bitrate_index,4),M(s,s.samplerate_index,2),M(s,s.padding,1),M(s,e.extension,1),M(s,e.mode.ordinal(),2),M(s,s.mode_ext,2),M(s,e.copyright,1),M(s,e.original,1),M(s,e.emphasis,2),e.error_protection&&M(s,0,16),1==e.version){for(l(n.main_data_begin>=0),M(s,n.main_data_begin,9),2==s.channels_out?M(s,n.private_bits,3):M(s,n.private_bits,5),i=0;i=0),M(s,n.main_data_begin,8),M(s,n.private_bits,s.channels_out),r=0,i=0;i0;--n){var s,c=0,u=0;s=t.l3_enc[a+0],0!=s&&(u+=8,t.xr[i+0]<0&&c++,l(s<=1)),s=t.l3_enc[a+1],0!=s&&(u+=4,c*=2,t.xr[i+1]<0&&c++,l(s<=1)),s=t.l3_enc[a+2],0!=s&&(u+=2,c*=2,t.xr[i+2]<0&&c++,l(s<=1)),s=t.l3_enc[a+3],0!=s&&(u++,c*=2,t.xr[i+3]<0&&c++,l(s<=1)),a+=4,i+=4,x(e,c+r.table[u],r.hlen[u]),o+=r.hlen[u]}return o}function R(e,t,r,o,a){var i=f.ht[t],s=0;if(l(t<32),0==t)return s;for(var c=r;c15){if(g>14){var _=g-15;l(_<=i.linmax),m|=_<<1,d=p,g=15}if(v>14){var b=v-15;l(b<=i.linmax),m<<=p,m|=b,d+=p,v=15}h=16}0!=v&&(m<<=1,a.xr[c+1]<0&&m++,u--),l((g|v)<16),g=g*h+v,d-=u,u+=i.hlen[g],l(u<=n),l(d<=n),x(e,i.table[g],u),x(e,m,d),s+=u+d}return s}function O(e,t){var n=3*e.scalefac_band.s[3];n>t.big_values&&(n=t.big_values);var r=R(e,t.table_select[0],0,n,t);return r+=R(e,t.table_select[1],n,t.big_values,t),r}function C(e,t){var n,r,o,a;n=t.big_values,l(0<=n&&n<=576);var i=t.region0_count+1;return l(0<=i),l(in&&(o=n),a>n&&(a=n),r=R(e,t.table_select[0],0,o,t),r+=R(e,t.table_select[1],o,a,t),r+=R(e,t.table_select[2],a,n,t),r}function j(e){var t,n,r,o,a=0,i=e.internal_flags,s=i.l3_side;if(1==e.version)for(t=0;t<2;t++)for(n=0;n=0&&(a=1+s-c,s>8),t[5]=byte(255&n)},this.flush_bitstream=function(e){var t,n,o=e.internal_flags,a=o.h_ptr-1;if(-1==a&&(a=p.MAX_HEADER_BUF-1),t=o.l3_side,!((n=I(e,new B))<0)){if(k(e,n),l(o.header[a].write_timing+this.getframebits(e)==_),o.ResvSize=0,t.main_data_begin=0,o.findReplayGain){var i=r.GetTitleGain(o.rgdata);l(NEQ(i,GainAnalysis.GAIN_NOT_ENOUGH_SAMPLES)),o.RadioGain=0|Math.floor(10*i+.5)}o.findPeakSample&&(o.noclipGainChange=0|Math.ceil(20*Math.log10(o.PeakSample/32767)*10),o.noclipGainChange>0&&(EQ(e.scale,1)||EQ(e.scale,0))?o.noclipScale=Math.floor(32767/o.PeakSample*100)/100:o.noclipScale=-1)}},this.add_dummy_byte=function(e,t,n){var r,o=e.internal_flags;while(n-- >0)for(S(o,t,8),r=0;r ResvSize"),8*t.main_data_begin!=n.ResvSize&&(o.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size: %d \nresv drain (post) %d \nresv drain (pre) %d \nheader and sideinfo: %d \ndata bits: %d \ntotal bits: %d (remainder: %d) \nbitsperframe: %d \n",8*t.main_data_begin,n.ResvSize,t.resvDrain_post,t.resvDrain_pre,8*n.sideinfo_len,a-t.resvDrain_post-8*n.sideinfo_len,a,a%8,r),o.err.println("This is a fatal error. It has several possible causes:"),o.err.println("90%% LAME compiled with buggy version of gcc using advanced optimizations"),o.err.println(" 9%% Your system is overclocked"),o.err.println(" 1%% bug in LAME encoding library"),n.ResvSize=8*t.main_data_begin),l(_%8==0),_>1e9){var i;for(i=0;ia)return-1;if(o.arraycopy(v,0,t,n,u),b=-1,y=0,0!=i){var f=c(1);if(f[0]=e.nMusicCRC,g.updateMusicCRC(f,t,n,u),e.nMusicCRC=f[0],u>0&&(e.VBR_seek_table.nBytesWritten+=u),e.decode_on_the_fly){var d,p=s([2,1152]),m=u,_=-1;while(0!=_)if(_=h.hip_decode1_unclipped(e.hip,t,n,m,p[0],p[1]),m=0,-1==_&&(_=0),_>0){if(l(_<=1152),e.findPeakSample){for(d=0;d<_;d++)p[0][d]>e.PeakSample?e.PeakSample=p[0][d]:-p[0][d]>e.PeakSample&&(e.PeakSample=-p[0][d]);if(e.channels_out>1)for(d=0;d<_;d++)p[1][d]>e.PeakSample?e.PeakSample=p[1][d]:-p[1][d]>e.PeakSample&&(e.PeakSample=-p[1][d])}if(e.findReplayGain&&r.AnalyzeSamples(e.rgdata,p[0],0,p[1],0,_,e.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6}}}return u},this.init_bit_stream_w=function(e){v=i(Lame.LAME_MAXMP3BUFFER),e.h_ptr=e.w_ptr=0,e.header[e.h_ptr].write_timing=0,b=-1,y=0,_=0}}h.EQ=function(e,t){return Math.abs(e)>Math.abs(t)?Math.abs(e-t)<=1e-6*Math.abs(e):Math.abs(e-t)<=1e-6*Math.abs(t)},h.NEQ=function(e,t){return!h.EQ(e,t)},e.exports=h},"69f3":function(e,t,n){var r,o,a,i=n("cdce"),s=n("da84"),c=n("e330"),l=n("861d"),u=n("9112"),f=n("1a2d"),d=n("c6cd"),p=n("f772"),h=n("d012"),m="Object already initialized",g=s.TypeError,v=s.WeakMap,_=function(e){return a(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}};if(i||d.state){var y=d.state||(d.state=new v),w=c(y.get),x=c(y.has),S=c(y.set);r=function(e,t){if(x(y,e))throw g(m);return t.facade=e,S(y,e,t),t},o=function(e){return w(y,e)||{}},a=function(e){return x(y,e)}}else{var k=p("state");h[k]=!0,r=function(e,t){if(f(e,k))throw g(m);return t.facade=e,u(e,k,t),t},o=function(e){return f(e,k)?e[k]:{}},a=function(e){return f(e,k)}}e.exports={set:r,get:o,has:a,enforce:_,getterFor:b}},7156:function(e,t,n){var r=n("1626"),o=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var i,s;return a&&r(i=t.constructor)&&i!==n&&o(s=i.prototype)&&s!==n.prototype&&a(e,s),e}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},"725d":function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert,n("2f21"));function s(){this.linprebuf=o(2*i.MAX_ORDER),this.linpre=0,this.lstepbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.lstep=0,this.loutbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.lout=0,this.rinprebuf=o(2*i.MAX_ORDER),this.rinpre=0,this.rstepbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.rstep=0,this.routbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.rout=0,this.sampleWindow=0,this.totsamp=0,this.lsum=0,this.rsum=0,this.freqindex=0,this.first=0,this.A=a(0|i.STEPS_per_dB*i.MAX_dB),this.B=a(0|i.STEPS_per_dB*i.MAX_dB)}e.exports=s},7276:function(e,t){function n(){this.over_noise=0,this.tot_noise=0,this.max_noise=0,this.over_count=0,this.over_SSD=0,this.bits=0}e.exports=n},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"74fe":function(e,t,n){e.exports=n("2d78")},7656:function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n("46f3"),o=n("254c"),a=(0,r.createTokenClass)();function i(e){var t=e?{v:e}:{};return(0,o.inherits)(a,(0,r.createTokenClass)(),t)}a.prototype={toString:function(){return this.v+""}};var s=i(),c=i("@"),l=i(":"),u=i("."),f=i(),d=i(),p=i("\n"),h=i(),m=i("+"),g=i("#"),v=i(),_=i("mailto:"),b=i("?"),y=i("/"),w=i("_"),x=i(),S=i(),k=i(),M=i("{"),A=i("["),E=i("<"),T=i("("),R=i("}"),O=i("]"),C=i(">"),j=i(")"),B=i("&");t.Base=a,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=u,t.PUNCTUATION=f,t.LOCALHOST=d,t.NL=p,t.NUM=h,t.PLUS=m,t.POUND=g,t.QUERY=b,t.PROTOCOL=v,t.MAILTO=_,t.SLASH=y,t.UNDERSCORE=w,t.SYM=x,t.TLD=S,t.WS=k,t.OPENBRACE=M,t.OPENBRACKET=A,t.OPENANGLEBRACKET=E,t.OPENPAREN=T,t.CLOSEBRACE=R,t.CLOSEBRACKET=O,t.CLOSEANGLEBRACKET=C,t.CLOSEPAREN=j,t.AMPERSAND=B},"77d9":function(e,t,n){n("1d02")},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80"),o=Object;e.exports=function(e){return o(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),a=n("37e8"),i=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),f=">",d="<",p="prototype",h="script",m=u("IE_PROTO"),g=function(){},v=function(e){return d+h+f+e+d+"/"+h+f},_=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?_(r):b():_(r);var e=i.length;while(e--)delete y[p][i[e]];return y()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=o(e),n=new g,g[p]=null,n[m]=e):n=y(),void 0===t?n:a.f(n,t)}},8100:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util),a=(r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),i=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("4b5e"));function s(){var e=a(i.BLKSIZE),t=a(i.BLKSIZE_s/2),n=[.9238795325112867,.3826834323650898,.9951847266721969,.0980171403295606,.9996988186962042,.02454122852291229,.9999811752826011,.006135884649154475];function r(e,t,r){var a,i,s,c=0;r<<=1;var l=t+r;a=4;do{var u,f,d,p,h,m,g;g=a>>1,p=a,h=a<<1,m=h+p,a=h<<1,i=t,s=i+g;do{S=e[i+0]-e[i+p],x=e[i+0]+e[i+p],E=e[i+h]-e[i+m],M=e[i+h]+e[i+m],e[i+h]=x-M,e[i+0]=x+M,e[i+m]=S-E,e[i+p]=S+E,S=e[s+0]-e[s+p],x=e[s+0]+e[s+p],E=o.SQRT2*e[s+m],M=o.SQRT2*e[s+h],e[s+h]=x-M,e[s+0]=x+M,e[s+m]=S-E,e[s+p]=S+E,s+=a,i+=a}while(i=0);r(n[l],u,i.BLKSIZE_s/2)}},this.fft_long=function(t,n,o,a,c){var l=i.BLKSIZE/8-1,u=i.BLKSIZE/2;do{var f,d,p,h,m,g=255&s[l];f=e[g]*a[o][c+g],m=e[g+512]*a[o][c+g+512],d=f-m,f+=m,p=e[g+256]*a[o][c+g+256],m=e[g+768]*a[o][c+g+768],h=p-m,p+=m,u-=4,n[u+0]=f+p,n[u+2]=f-p,n[u+1]=d+h,n[u+3]=d-h,f=e[g+1]*a[o][c+g+1],m=e[g+513]*a[o][c+g+513],d=f-m,f+=m,p=e[g+257]*a[o][c+g+257],m=e[g+769]*a[o][c+g+769],h=p-m,p+=m,n[u+i.BLKSIZE/2+0]=f+p,n[u+i.BLKSIZE/2+2]=f-p,n[u+i.BLKSIZE/2+1]=d+h,n[u+i.BLKSIZE/2+3]=d-h}while(--l>=0);r(n,u,i.BLKSIZE/2)},this.init_fft=function(n){for(var r=0;re.removeEventListener(t,n,r)}function y(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function x(e,t){e.value=null==t?"":t}function S(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function k(e){u=e}const M=[],A=[],E=[],T=[],R=Promise.resolve();let O=!1;function C(){O||(O=!0,R.then(L))}function j(){return C(),R}function B(e){E.push(e)}const I=new Set;let P=0;function L(){const e=u;do{while(P_.get(o)?(y.add(r),w(t)):(b.add(o),d--):(c(n,i),d--)}while(d--){const t=e[d];v.has(t.key)||c(t,i)}while(p)w(g[p-1]);return g}function q(e,t,n,r){const{fragment:a,on_mount:c,on_destroy:l,after_update:u}=e.$$;a&&a.m(t,n),r||B(()=>{const t=c.map(o).filter(s);l?l.push(...t):i(t),e.$$.on_mount=[]}),u.forEach(B)}function V(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function z(e,t){-1===e.$$.dirty[0]&&(M.push(e),C(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=r.length?r[0]:n;return p.ctx&&s(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),h&&z(e,t)),n}):[],p.update(),h=!0,i(p.before_update),p.fragment=!!o&&o(p.ctx),t.target&&(p.fragment&&p.fragment.c(),q(e,t.target,void 0,void 0),L()),k(d)}class Y{$destroy(){V(this,1),this.$destroy=r}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const G=[[-1,"✨","custom"],[0,"😀","smileys-emotion"],[1,"👋","people-body"],[3,"🐱","animals-nature"],[4,"🍎","food-drink"],[5,"🏠️","travel-places"],[6,"⚽","activities"],[7,"📝","objects"],[8,"⛔️","symbols"],[9,"🏁","flags"]].map(([e,t,n])=>({id:e,emoji:t,name:n})),W=G.slice(1),K=G[0],Z=2,Q=6,J="function"===typeof requestIdleCallback?requestIdleCallback:setTimeout;function ee(e){return e.unicode.includes("‍")}const te={"🫠":14,"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},ne=1e3,re="🖐️",oe=8,ae=["😊","😒","♥️","👍️","😍","😂","😭","☺️","😔","😩","😏","💕","🙌","😘"],ie='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',se=(e,t)=>et?1:0,ce=(e,t)=>{const n=document.createElement("canvas");n.width=n.height=1;const r=n.getContext("2d");return r.textBaseline="top",r.font="100px "+ie,r.fillStyle=t,r.scale(.01,.01),r.fillText(e,0,0),r.getImageData(0,0,1,1).data},le=(e,t)=>{const n=[...e].join(","),r=[...t].join(",");return n===r&&!n.startsWith("0,0,0,")};function ue(e){const t=ce(e,"#000"),n=ce(e,"#fff");return t&&n&&le(t,n)}function fe(){const e=Object.entries(te);try{for(const[t,n]of e)if(ue(t))return n}catch(t){}return e[0][1]}const de=new Promise(e=>J(()=>e(fe()))),pe=new Map,he="️",me="\ud83c",ge="‍",ve=127995,_e=57339;function be(e,t){if(0===t)return e;const n=e.indexOf(ge);return-1!==n?e.substring(0,n)+String.fromCodePoint(ve+t-1)+e.substring(n):(e.endsWith(he)&&(e=e.substring(0,e.length-1)),e+me+String.fromCodePoint(_e+t-1))}function ye(e){e.preventDefault(),e.stopPropagation()}function we(e,t,n){return t+=e?-1:1,t<0?t=n.length-1:t>=n.length&&(t=0),t}function xe(e,t){const n=new Set,r=[];for(const o of e){const e=t(o);n.has(e)||(n.add(e),r.push(o))}return r}function Se(e,t){const n=e=>{const n={};for(const r of e)"number"===typeof r.tone&&r.version<=t&&(n[r.tone]=r.unicode);return n};return e.map(({unicode:e,skins:t,shortcodes:r,url:o,name:a,category:i})=>({unicode:e,name:a,shortcodes:r,url:o,category:i,id:e||a,skins:t&&n(t),title:(r||[]).join(", ")}))}const ke=requestAnimationFrame;let Me,Ae="function"===typeof ResizeObserver;function Ee(e,t){let n;return Ae?(n=new ResizeObserver(e=>t(e[0].contentRect.width)),n.observe(e)):ke(()=>t(e.getBoundingClientRect().width)),{destroy(){n&&n.disconnect()}}}function Te(e){{const t=document.createRange();return t.selectNode(e.firstChild),t.getBoundingClientRect().width}}function Re(e,t,n){for(const r of e){const e=n(r),o=Te(e);"undefined"===typeof Me&&(Me=Te(t));const a=o/1.8e)}const{Map:Ce}=H;function je(e,t,n){const r=e.slice();return r[63]=t[n],r[65]=n,r}function Be(e,t,n){const r=e.slice();return r[66]=t[n],r[65]=n,r}function Ie(e,t,n){const r=e.slice();return r[63]=t[n],r[65]=n,r}function Pe(e,t,n){const r=e.slice();return r[69]=t[n],r}function Le(e,t,n){const r=e.slice();return r[72]=t[n],r[65]=n,r}function Ne(e,t){let n,r,o,a,i,s,c,l=t[72]+"";return{key:e,first:null,c(){n=v("div"),r=_(l),y(n,"id",o="skintone-"+t[65]),y(n,"class",a="emoji hide-focus "+(t[65]===t[20]?"active":"")),y(n,"aria-selected",i=t[65]===t[20]),y(n,"role","option"),y(n,"title",s=t[0].skinTones[t[65]]),y(n,"tabindex","-1"),y(n,"aria-label",c=t[0].skinTones[t[65]]),this.first=n},m(e,t){m(e,n,t),h(n,r)},p(e,u){t=e,512&u[0]&&l!==(l=t[72]+"")&&w(r,l),512&u[0]&&o!==(o="skintone-"+t[65])&&y(n,"id",o),1049088&u[0]&&a!==(a="emoji hide-focus "+(t[65]===t[20]?"active":""))&&y(n,"class",a),1049088&u[0]&&i!==(i=t[65]===t[20])&&y(n,"aria-selected",i),513&u[0]&&s!==(s=t[0].skinTones[t[65]])&&y(n,"title",s),513&u[0]&&c!==(c=t[0].skinTones[t[65]])&&y(n,"aria-label",c)},d(e){e&&g(n)}}}function De(e,t){let n,r,o,a,i,s,c,l,u,f=t[69].emoji+"";function d(){return t[49](t[69])}return{key:e,first:null,c(){n=v("button"),r=v("div"),o=_(f),y(r,"class","nav-emoji emoji"),y(n,"role","tab"),y(n,"class","nav-button"),y(n,"aria-controls",a="tab-"+t[69].id),y(n,"aria-label",i=t[0].categories[t[69].name]),y(n,"aria-selected",s=!t[4]&&t[13].id===t[69].id),y(n,"title",c=t[0].categories[t[69].name]),this.first=n},m(e,t){m(e,n,t),h(n,r),h(r,o),l||(u=b(n,"click",d),l=!0)},p(e,r){t=e,4096&r[0]&&f!==(f=t[69].emoji+"")&&w(o,f),4096&r[0]&&a!==(a="tab-"+t[69].id)&&y(n,"aria-controls",a),4097&r[0]&&i!==(i=t[0].categories[t[69].name])&&y(n,"aria-label",i),12304&r[0]&&s!==(s=!t[4]&&t[13].id===t[69].id)&&y(n,"aria-selected",s),4097&r[0]&&c!==(c=t[0].categories[t[69].name])&&y(n,"title",c)},d(e){e&&g(n),l=!1,u()}}}function Fe(e){let t,n;return{c(){t=v("img"),y(t,"class","custom-emoji"),f(t.src,n=e[63].url)||y(t,"src",n),y(t,"alt",""),y(t,"loading","lazy")},m(e,n){m(e,t,n)},p(e,r){32768&r[0]&&!f(t.src,n=e[63].url)&&y(t,"src",n)},d(e){e&&g(t)}}}function He(e){let t,n=e[27](e[63],e[8])+"";return{c(){t=_(n)},m(e,n){m(e,t,n)},p(e,r){33024&r[0]&&n!==(n=e[27](e[63],e[8])+"")&&w(t,n)},d(e){e&&g(t)}}}function Ue(e,t){let n,r,o,a,i,s,c;function l(e,t){return e[63].unicode?He:Fe}let u=l(t),f=u(t);return{key:e,first:null,c(){n=v("button"),f.c(),y(n,"role",r=t[4]?"option":"menuitem"),y(n,"aria-selected",o=t[4]?t[65]==t[5]:""),y(n,"aria-label",a=t[28](t[63],t[8])),y(n,"title",i=t[63].title),y(n,"class",s="emoji "+(t[4]&&t[65]===t[5]?"active":"")),y(n,"id",c="emo-"+t[63].id),this.first=n},m(e,t){m(e,n,t),f.m(n,null)},p(e,d){t=e,u===(u=l(t))&&f?f.p(t,d):(f.d(1),f=u(t),f&&(f.c(),f.m(n,null))),16&d[0]&&r!==(r=t[4]?"option":"menuitem")&&y(n,"role",r),32816&d[0]&&o!==(o=t[4]?t[65]==t[5]:"")&&y(n,"aria-selected",o),33024&d[0]&&a!==(a=t[28](t[63],t[8]))&&y(n,"aria-label",a),32768&d[0]&&i!==(i=t[63].title)&&y(n,"title",i),32816&d[0]&&s!==(s="emoji "+(t[4]&&t[65]===t[5]?"active":""))&&y(n,"class",s),32768&d[0]&&c!==(c="emo-"+t[63].id)&&y(n,"id",c)},d(e){e&&g(n),f.d()}}}function $e(e,t){let n,r,o,a,i,s,c,l,u=(t[4]?t[0].searchResultsLabel:t[66].category?t[66].category:t[15].length>1?t[0].categories.custom:t[0].categories[t[13].name])+"",f=[],d=new Ce,p=t[66].emojis;const b=e=>e[63].id;for(let h=0;h1?t[0].categories.custom:t[0].categories[t[13].name])+"")&&w(r,u),32768&h[0]&&o!==(o="menu-label-"+t[65])&&y(n,"id",o),32768&h[0]&&a!==(a="category "+(1===t[15].length&&""===t[15][0].category?"gone":""))&&y(n,"class",a),402686256&h[0]&&(p=t[66].emojis,f=$(f,h,b,1,t,p,d,i,U,Ue,null,Ie)),16&h[0]&&s!==(s=t[4]?"listbox":"menu")&&y(i,"role",s),32768&h[0]&&c!==(c="menu-label-"+t[65])&&y(i,"aria-labelledby",c),16&h[0]&&l!==(l=t[4]?"search-results":"")&&y(i,"id",l)},d(e){e&&g(n),e&&g(i);for(let t=0;te[72];for(let r=0;re[69].id;for(let r=0;re[66].category;for(let r=0;re[63].id;for(let r=0;r