/*! VERSION | 11.0.88 */(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1216],{52149:(e,t,n)=>{"use strict";function r(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{Z:()=>r})},82268:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(52149);function i(e){return(0,r.Z)({},e)}},8958:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r={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"}};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?function(e,t){for(var n=0;n0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:{ordinalNumber: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"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:s({values:{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"]},defaultWidth:"wide"}),day:s({values:{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"]},defaultWidth:"wide"}),dayPeriod:s({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:u({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:u({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r={};function i(){return r}},97621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(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"});default:return t.date({width:"full"})}},i=function(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"});default:return t.time({width:"full"})}};let o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}}},24262:(e,t,n)=>{"use strict";function r(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()}n.d(t,{Z:()=>r})},49702:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(19013),i=n(66979),o=n(7032),a=n(13882);function s(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e);return Math.round(((0,i.Z)(t).getTime()-(function(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,i.Z)(n)})(t).getTime())/6048e5)+1}},7032:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(19013),i=n(13882),o=n(66979);function a(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=(0,o.Z)(u);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},23324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(19013),i=n(59025),o=n(7651),a=n(13882),s=n(83946),u=n(84314);function c(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e);return Math.round(((0,i.Z)(n,t).getTime()-(function(e,t){(0,a.Z)(1,arguments);var n,r,c,l,d,h,f,p,v=(0,u.j)(),m=(0,s.Z)(null!==(n=null!==(r=null!==(c=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==r?r:null===(f=v.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1),g=(0,o.Z)(e,t),_=new Date(0);return _.setUTCFullYear(g,0,m),_.setUTCHours(0,0,0,0),(0,i.Z)(_,t)})(n,t).getTime())/6048e5)+1}},7651:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(19013),i=n(13882),o=n(59025),a=n(83946),s=n(84314);function u(e,t){(0,i.Z)(1,arguments);var n,u,c,l,d,h,f,p,v=(0,r.Z)(e),m=v.getUTCFullYear(),g=(0,s.j)(),_=(0,a.Z)(null!==(n=null!==(u=null!==(c=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:g.firstWeekContainsDate)&&void 0!==u?u:null===(f=g.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(_>=1&&_<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,_),y.setUTCHours(0,0,0,0);var b=(0,o.Z)(y,t),w=new Date(0);w.setUTCFullYear(m,0,_),w.setUTCHours(0,0,0,0);var T=(0,o.Z)(w,t);return v.getTime()>=b.getTime()?m+1:v.getTime()>=T.getTime()?m:m-1}},5267:(e,t,n)=>{"use strict";n.d(t,{Do:()=>a,Iu:()=>o,qp:()=>s});var r=["D","DD"],i=["YY","YYYY"];function o(e){return -1!==r.indexOf(e)}function a(e){return -1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},13882:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},93645:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function i(e){return e?r[e]:r.trunc}},66979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}},59025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(19013),i=n(13882),o=n(83946),a=n(84314);function s(e,t){(0,i.Z)(1,arguments);var n,s,u,c,l,d,h,f,p=(0,a.j)(),v=(0,o.Z)(null!==(n=null!==(s=null!==(u=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(d=l.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,r.Z)(e),g=m.getUTCDay();return m.setUTCDate(m.getUTCDate()-((g{"use strict";function r(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)}n.d(t,{Z:()=>r})},77349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83946),i=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}},51820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83946),i=n(19013),o=n(13882);function a(e,t){return(0,o.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}},11640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83946),i=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,r.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),u=new Date(n.getTime());return(u.setMonth(n.getMonth()+a+1,0),s>=u.getDate())?u:(n.setFullYear(u.getFullYear(),u.getMonth(),s),n)}},21593:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83946),i=n(11640),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,12*n)}},49474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}},36948:(e,t,n)=>{"use strict";n.d(t,{qk:()=>o,vh:()=>i,yJ:()=>r});var r=6e4,i=36e5,o=1e3},92300:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(24262),i=n(69119),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,i.Z)(t);return Math.round((n.getTime()-(0,r.Z)(n)-(a.getTime()-(0,r.Z)(a)))/864e5)}},67803:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(19013),i=n(92300),o=n(13882);function a(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(e),s=(0,r.Z)(t),u=a(n,s),c=Math.abs((0,i.Z)(n,s));n.setDate(n.getDate()-u*c);var l=Number(a(n,s)===-u),d=u*(c-l);return 0===d?0:d}},59910:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},90389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(19013),i=n(13882),o=n(49474),a=n(4135);function s(e,t){(0,i.Z)(2,arguments);var n,s=(0,r.Z)(e),u=(0,r.Z)(t),c=(0,o.Z)(s,u),l=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(s,u));if(l<1)n=0;else{1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-c*l);var d=(0,o.Z)(s,u)===-c;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(0,a.Z)(t).getTime()})((0,r.Z)(e))&&1===l&&1===(0,o.Z)(e,u)&&(d=!1),n=c*(l-Number(d))}return 0===n?0:n}},11699:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(59910),i=n(13882),o=n(93645);function a(e,t,n){(0,i.Z)(2,arguments);var a=(0,r.Z)(e,t)/1e3;return(0,o.u)(null==n?void 0:n.roundingMethod)(a)}},70696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(19013),i=n(13882),o=n(49474);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t),s=(0,o.Z)(n,a),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getFullYear()-o.getFullYear()}(n,a));n.setFullYear(1584),a.setFullYear(1584);var c=(0,o.Z)(n,a)===-s,l=s*(u-Number(c));return 0===l?0:l}},4135:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},49546:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(49599),i=n(91218),o=n(19013),a=n(13882),s=n(49702),u=n(7032),c=n(23324),l=n(7651);function d(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return d("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},d:function(e,t){return d(e.getUTCDate(),t.length)},h:function(e,t){return d(e.getUTCHours()%12||12,t.length)},H:function(e,t){return d(e.getUTCHours(),t.length)},m:function(e,t){return d(e.getUTCMinutes(),t.length)},s:function(e,t){return d(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return d(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};var f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function p(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+d(o,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):m(e,t)}function m(e,t){var n=Math.abs(e);return(e>0?"-":"+")+d(Math.floor(n/60),2)+(t||"")+d(n%60,2)}let g={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"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var i=(0,l.Z)(e,r),o=i>0?i:1-i;return"YY"===t?d(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):d(o,t.length)},R:function(e,t){return d((0,u.Z)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),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 d(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"});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 d(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"});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 h.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"});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 d(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,c.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):d(i,t.length)},I:function(e,t,n){var r=(0,s.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return d(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return d(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return d(i,t.length);case"io":return n.ordinalNumber(i,{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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f.noon:0===i?f.midnight:i/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"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.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"});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 h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return v(i);case"XXXX":case"XX":return m(i);default:return m(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(i);case"xxxx":case"xx":return m(i);default:return m(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+p(i,":");default:return"GMT"+m(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+p(i,":");default:return"GMT"+m(i,":")}},t:function(e,t,n,r){return d(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var _=n(97621),y=n(24262),b=n(5267),w=n(83946),T=n(84314),S=n(8958),E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Z=/^'([^]*?)'?$/,x=/''/g,k=/[a-zA-Z]/;function R(e,t,n){(0,a.Z)(2,arguments);var s,u,c,l,d,h,f,p,v,m,R,P,O,D,j,A,M,L,N=String(t),I=(0,T.j)(),U=null!==(s=null!==(u=null==n?void 0:n.locale)&&void 0!==u?u:I.locale)&&void 0!==s?s:S.Z,F=(0,w.Z)(null!==(c=null!==(l=null!==(d=null!==(h=null==n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null==n?void 0:null===(f=n.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==d?d:I.firstWeekContainsDate)&&void 0!==l?l:null===(v=I.locale)||void 0===v?void 0:null===(m=v.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==c?c:1);if(!(F>=1&&F<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=(0,w.Z)(null!==(R=null!==(P=null!==(O=null!==(D=null==n?void 0:n.weekStartsOn)&&void 0!==D?D:null==n?void 0:null===(j=n.locale)||void 0===j?void 0:null===(A=j.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==O?O:I.weekStartsOn)&&void 0!==P?P:null===(M=I.locale)||void 0===M?void 0:null===(L=M.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==R?R:0);if(!(Y>=0&&Y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw RangeError("locale must contain localize property");if(!U.formatLong)throw RangeError("locale must contain formatLong property");var B=(0,o.Z)(e);if(!(0,r.Z)(B))throw RangeError("Invalid time value");var $=(0,y.Z)(B),G=(0,i.Z)(B,$),z={firstWeekContainsDate:F,weekStartsOn:Y,locale:U,_originalDate:B};return N.match(C).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,_.Z[t])(e,U.formatLong):e}).join("").match(E).map(function(r){if("''"===r)return"'";var i,o=r[0];if("'"===o)return(i=r.match(Z))?i[1].replace(x,"'"):r;var a=g[o];if(a)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,b.Do)(r)&&(0,b.qp)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,b.Iu)(r)&&(0,b.qp)(r,t,String(e)),a(G,r,U.localize,z);if(o.match(k))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r}).join("")}},77946:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(84314),i=n(49474),o=n(90389),a=n(11699),s=n(8958),u=n(19013),c=n(82268),l=n(52149),d=n(24262),h=n(13882);function f(e,t,n){(0,h.Z)(2,arguments);var f,p,v,m,g,_=(0,r.j)(),y=null!==(f=null!==(p=null==n?void 0:n.locale)&&void 0!==p?p:_.locale)&&void 0!==f?f:s.Z;if(!y.formatDistance)throw RangeError("locale must contain formatDistance property");var b=(0,i.Z)(e,t);if(isNaN(b))throw RangeError("Invalid time value");var w=(0,l.Z)((0,c.Z)(n),{addSuffix:!!(null==n?void 0:n.addSuffix),comparison:b});b>0?(v=(0,u.Z)(t),m=(0,u.Z)(e)):(v=(0,u.Z)(e),m=(0,u.Z)(t));var T=(0,a.Z)(m,v),S=Math.round((T-((0,d.Z)(m)-(0,d.Z)(v))/1e3)/60);if(S<2){if(null!=n&&n.includeSeconds){if(T<5)return y.formatDistance("lessThanXSeconds",5,w);if(T<10)return y.formatDistance("lessThanXSeconds",10,w);if(T<20)return y.formatDistance("lessThanXSeconds",20,w);if(T<40)return y.formatDistance("halfAMinute",0,w);else if(T<60)return y.formatDistance("lessThanXMinutes",1,w);else return y.formatDistance("xMinutes",1,w)}return 0===S?y.formatDistance("lessThanXMinutes",1,w):y.formatDistance("xMinutes",S,w)}if(S<45)return y.formatDistance("xMinutes",S,w);if(S<90)return y.formatDistance("aboutXHours",1,w);if(S<1440){var E=Math.round(S/60);return y.formatDistance("aboutXHours",E,w)}if(S<2520)return y.formatDistance("xDays",1,w);if(S<43200){var C=Math.round(S/1440);return y.formatDistance("xDays",C,w)}if(S<86400)return g=Math.round(S/43200),y.formatDistance("aboutXMonths",g,w);if((g=(0,o.Z)(m,v))<12){var Z=Math.round(S/43200);return y.formatDistance("xMonths",Z,w)}var x=g%12,k=Math.floor(g/12);return x<3?y.formatDistance("aboutXYears",k,w):x<9?y.formatDistance("overXYears",k,w):y.formatDistance("almostXYears",k+1,w)}},12195:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(84314),i=n(24262),o=n(49474),a=n(19013),s=n(82268),u=n(52149),c=n(8958),l=n(13882);function d(e,t,n){(0,l.Z)(2,arguments);var d,h,f,p,v,m,g,_=(0,r.j)(),y=null!==(d=null!==(h=null==n?void 0:n.locale)&&void 0!==h?h:_.locale)&&void 0!==d?d:c.Z;if(!y.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var b=(0,o.Z)(e,t);if(isNaN(b))throw RangeError("Invalid time value");var w=(0,u.Z)((0,s.Z)(n),{addSuffix:!!(null==n?void 0:n.addSuffix),comparison:b});b>0?(p=(0,a.Z)(t),v=(0,a.Z)(e)):(p=(0,a.Z)(e),v=(0,a.Z)(t));var T=String(null!==(f=null==n?void 0:n.roundingMethod)&&void 0!==f?f:"round");if("floor"===T)m=Math.floor;else if("ceil"===T)m=Math.ceil;else if("round"===T)m=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var S=v.getTime()-p.getTime(),E=S/6e4,C=(S-((0,i.Z)(v)-(0,i.Z)(p)))/6e4,Z=null==n?void 0:n.unit;if("second"===(g=Z?String(Z):E<1?"second":E<60?"minute":E<1440?"hour":C<43200?"day":C<525600?"month":"year")){var x=m(S/1e3);return y.formatDistance("xSeconds",x,w)}if("minute"===g){var k=m(E);return y.formatDistance("xMinutes",k,w)}if("hour"===g){var R=m(E/60);return y.formatDistance("xHours",R,w)}if("day"===g){var P=m(C/1440);return y.formatDistance("xDays",P,w)}if("month"===g){var O=m(C/43200);return 12===O&&"month"!==Z?y.formatDistance("xYears",1,w):y.formatDistance("xMonths",O,w)}if("year"===g){var D=m(C/525600);return y.formatDistance("xYears",D,w)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}},784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(84314),i=n(8958),o=["years","months","weeks","days","hours","minutes","seconds"];function a(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only ".concat(arguments.length," present"));var n,a,s,u,c,l=(0,r.j)(),d=null!==(n=null!==(a=null==t?void 0:t.locale)&&void 0!==a?a:l.locale)&&void 0!==n?n:i.Z,h=null!==(s=null==t?void 0:t.format)&&void 0!==s?s:o,f=null!==(u=null==t?void 0:t.zero)&&void 0!==u&&u,p=null!==(c=null==t?void 0:t.delimiter)&&void 0!==c?c:" ";return d.formatDistance?h.reduce(function(t,n){var r="x".concat(n.replace(/(^.)/,function(e){return e.toUpperCase()})),i=e[n];return"number"==typeof i&&(f||e[n])?t.concat(d.formatDistance(r,i)):t},[]).join(p):""}},85817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e){return(0,i.Z)(1,arguments),(0,r.Z)(e).getHours()}},42699:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getTime()>o.getTime()}},313:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getTime(){"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e){return(0,i.Z)(1,arguments),(0,r.Z)(e).getTime()>Date.now()}},3151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69119),i=n(13882);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getTime()===o.getTime()}},51085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3151),i=n(13882);function o(e){return(0,i.Z)(1,arguments),(0,r.Z)(e,Date.now())}},49599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(33940),i=n(13882),o=n(19013);function a(e){return(0,i.Z)(1,arguments),(!!function(e){return(0,i.Z)(1,arguments),e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,o.Z)(e)))}},9904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3151),i=n(7069),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.Z)(e,(0,i.Z)(Date.now(),1))}},8230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}},19314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>eM});var r=n(33940);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}var a=n(8958),s=n(91218),u=n(19013),c=n(52149),l=n(97621),d=n(24262),h=n(5267),f=n(83946),p=n(13882),v=n(47169),m=n(6983);function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,m.Z)(e,t)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(e){var t=y();return function(){var n,i=_(e);return n=t?Reflect.construct(i,arguments,_(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,v.Z)(e)}(this,n)}}function w(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var T=n(55217);function S(e,t){for(var n=0;n0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function B(e){return e%400==0||e%4==0&&e%100!=0}var $=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=Y(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(R),G=n(7651),z=n(59025),W=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o0}},{key:"set",value:function(e,t,n,r){var i=(0,G.Z)(e,r);if(n.isTwoDigitYear){var o=Y(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,z.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,z.Z)(e,r)}}]),n}(R),H=n(66979),q=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(R),J=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(R),K=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(R),Q=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(R),ee=n(23324),et=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,z.Z)(function(e,t,n){(0,p.Z)(2,arguments);var r=(0,u.Z)(e),i=(0,f.Z)(t),o=(0,ee.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(R),en=n(49702),er=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,H.Z)(function(e,t){(0,p.Z)(2,arguments);var n=(0,u.Z)(e),r=(0,f.Z)(t),i=(0,en.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(R),ei=[31,28,31,30,31,30,31,31,30,31,30,31],eo=[31,29,31,30,31,30,31,31,30,31,30,31],ea=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=eo[r]:t>=1&&t<=ei[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(R),es=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(R),eu=n(84314);function ec(e,t,n){(0,p.Z)(2,arguments);var r,i,o,a,s,c,l,d,h=(0,eu.j)(),v=(0,f.Z)(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n?void 0:null===(s=n.locale)||void 0===s?void 0:null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==i?i:null===(l=h.locale)||void 0===l?void 0:null===(d=l.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(v>=0&&v<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,u.Z)(e),g=(0,f.Z)(t),_=m.getUTCDay();return m.setUTCDate(m.getUTCDate()+(((g%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ec(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(R),ed=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ec(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(R),eh=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ec(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(R),ef=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,p.Z)(2,arguments);var n=(0,f.Z)(t);n%7==0&&(n-=7);var r=(0,u.Z)(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(R),ep=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(R),e_=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(R),ey=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(R),eb=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&t<=24}},{key:"set",value:function(e,t,n){return e.setUTCHours(n<=24?n%24:n,0,0,0),e}}]),n}(R),ew=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(R),eT=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(R),eS=function(e){g(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,i=Array(r),o=0;o=1&&y<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=(0,f.Z)(null!==(D=null!==(j=null!==(A=null!==(M=null==i?void 0:i.weekStartsOn)&&void 0!==M?M:null==i?void 0:null===(L=i.locale)||void 0===L?void 0:null===(N=L.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==A?A:g.weekStartsOn)&&void 0!==j?j:null===(I=g.locale)||void 0===I?void 0:null===(U=I.options)||void 0===U?void 0:U.weekStartsOn)&&void 0!==D?D:0);if(!(b>=0&&b<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===m)return""===v?(0,u.Z)(n):new Date(NaN);var w,T,S,E,C,Z,x,R,P,O,D,j,A,M,L,N,I,U,F,Y={firstWeekContainsDate:y,weekStartsOn:b,locale:_},B=[new k],$=m.match(eP).map(function(e){var t=e[0];return t in l.Z?(0,l.Z[t])(e,_.formatLong):e}).join("").match(eR),G=[],z=o($);try{for(z.s();!(F=z.n()).done;){var W=function(){var t=F.value;!(null!=i&&i.useAdditionalWeekYearTokens)&&(0,h.Do)(t)&&(0,h.qp)(t,m,e),!(null!=i&&i.useAdditionalDayOfYearTokens)&&(0,h.Iu)(t)&&(0,h.qp)(t,m,e);var n=t[0],r=ek[n];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var a=G.find(function(e){return o.includes(e.token)||e.token===n});if(a)throw RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&G.length>0)throw RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));G.push({token:n,fullToken:t});var s=r.run(v,t,_.match,Y);if(!s)return{v:new Date(NaN)};B.push(s.setter),v=s.rest}else{if(n.match(eA))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(eO)[1].replace(eD,"'")),0!==v.indexOf(t))return{v:new Date(NaN)};v=v.slice(t.length)}}();if("object"===(0,r.Z)(W))return W.v}}catch(e){z.e(e)}finally{z.f()}if(v.length>0&&ej.test(v))return new Date(NaN);var H=B.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return B.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),q=(0,u.Z)(n);if(isNaN(q.getTime()))return new Date(NaN);var V,X=(0,s.Z)(q,(0,d.Z)(q)),J={},K=o(H);try{for(K.s();!(V=K.n()).done;){var Q=V.value;if(!Q.validate(X,Y))return new Date(NaN);var ee=Q.set(X,J,Y);Array.isArray(ee)?(X=ee[0],(0,c.Z)(J,ee[1])):X=ee}}catch(e){K.e(e)}finally{K.f()}return X}},23855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(36948),i=n(13882),o=n(83946);function a(e,t){(0,i.Z)(1,arguments);var n,a,v,m=(0,o.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==m&&1!==m&&0!==m)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var g=function(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(g.date){var _=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,m);a=function(e,t){if(null===t)return new Date(NaN);var n,r,i=e.match(u);if(!i)return new Date(NaN);var o=!!i[4],a=d(i[1]),s=d(i[2])-1,c=d(i[3]),l=d(i[4]),h=d(i[5])-1;if(o)return l>=1&&l<=53&&h>=0&&h<=6?((n=new Date(0)).setUTCFullYear(t,0,4),r=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((l-1)*7+h+1-r)),n):new Date(NaN);var v=new Date(0);return s>=0&&s<=11&&c>=1&&c<=(f[s]||(p(t)?29:28))&&a>=1&&a<=(p(t)?366:365)?(v.setUTCFullYear(t,s,Math.max(a,c)),v):new Date(NaN)}(_.restDateString,_.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var y=a.getTime(),b=0;if(g.time&&isNaN(b=function(e){var t=e.match(c);if(!t)return NaN;var n=h(t[1]),i=h(t[2]),o=h(t[3]);return(24===n?0===i&&0===o:o>=0&&o<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*o:NaN}(g.time)))return new Date(NaN);if(g.timezone){if(isNaN(v=function(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return o>=0&&o<=59?n*(i*r.vh+o*r.yJ):NaN}(g.timezone)))return new Date(NaN)}else{var w=new Date(y+b),T=new Date(0);return T.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),T.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),T}return new Date(y+b+v)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100!=0}},16032:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(77349),i=n(19013),o=n(83946),a=n(13882),s=n(84314);function u(e,t,n){(0,a.Z)(2,arguments);var u,c,l,d,h,f,p,v,m=(0,s.j)(),g=(0,o.Z)(null!==(u=null!==(c=null!==(l=null!==(d=null==n?void 0:n.weekStartsOn)&&void 0!==d?d:null==n?void 0:null===(h=n.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==c?c:null===(p=m.locale)||void 0===p?void 0:null===(v=p.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==u?u:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=(0,i.Z)(e),y=(0,o.Z)(t),b=_.getDay(),w=7-g;return(0,r.Z)(_,y<0||y>6?y-(b+w)%7:((y%7+7)%7+w)%7-(b+w)%7)}},69119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(19013),i=n(13882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(19013),i=n(83946),o=n(13882),a=n(84314);function s(e,t){(0,o.Z)(1,arguments);var n,s,u,c,l,d,h,f,p=(0,a.j)(),v=(0,i.Z)(null!==(n=null!==(s=null!==(u=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(d=l.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,r.Z)(e),g=m.getDay();return m.setDate(m.getDate()-((g{"use strict";n.d(t,{Z:()=>a});var r=n(77349),i=n(13882),o=n(83946);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},91218:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51820),i=n(13882),o=n(83946);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},54559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83946),i=n(11640),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},59319:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83946),i=n(21593),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},19013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(33940),i=n(13882);function o(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.Z)(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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},50479:(e,t,n)=>{"use strict";function r(e,t){e.classList?e.classList.add(t):(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}n.d(t,{Z:()=>r})},74277:(e,t,n)=>{"use strict";function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}n.d(t,{Z:()=>i})},26239:(e,t,n)=>{"use strict";n.d(t,{Ze:()=>r,Yt:()=>i});var r="service.name",i="service.version"},38082:function(e){var t;t=()=>(()=>{"use strict";var e,t,n,r,i,o,a,s,u,c,l,d,h,f,p,v,m,g,_,y,b,w,T,S,E,C,Z,x,k,R,P,O,D,j,A,M,L,N,I,U,F,Y=[,(e,t,n)=>{var r;n.r(t),n.d(t,{default:()=>i});let i=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){function t(){function e(e){let o=r;n=t=0,r=new Map,o.forEach(t=>{try{t(e)}catch(e){console.error(e)}}),this.xa(),i&&i.Ta()}let t=0,n=0,r=new Map,i=null,o=null;this.requestAnimationFrame=function(i){t||(t=requestAnimationFrame(e.bind(this)));let o=++n;return r.set(o,i),o},this.cancelAnimationFrame=function(e){r.delete(e),t&&0==r.size&&(cancelAnimationFrame(t),t=0)},this.Ra=function(e){o&&(document.body.remove(o),o=null),e||((o=document.createElement("div")).style.backgroundColor="black",o.style.position="fixed",o.style.right=0,o.style.top=0,o.style.color="white",o.style.padding="4px",o.innerHTML="RIVE FPS",e=function(e){o.innerHTML="RIVE FPS "+e.toFixed(1)},document.body.appendChild(o)),i=new function(){let t=0,n=0;this.Ta=function(){var r=performance.now();n?(++t,1e3<(r-=n)&&(e(1e3*t/r),t=n=0)):(n=r,t=0)}}},this.Oa=function(){o&&(document.body.remove(o),o=null),i=null},this.xa=function(){}}function n(e){console.assert(!0);let t=new Map,n=-1/0;this.push=function(r){return r=r+((1<>e,t.has(r)&&clearTimeout(t.get(r)),t.set(r,setTimeout(function(){t.delete(r),0==t.length?n=-1/0:r==n&&console.assert((n=Math.max(...t.keys())){c=e,l=t});let i=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){i&&i();let t=e.decodeAudio;e.decodeAudio=function(e,n){n(e=t(e))};let n=e.decodeFont;e.decodeFont=function(e,t){t(e=n(e))};let r=e.FileAssetLoader;e.ptrToAsset=t=>{let n=e.ptrToFileAsset(t);return n.isImage?e.ptrToImageAsset(t):n.isFont?e.ptrToFontAsset(t):n.isAudio?e.ptrToAudioAsset(t):n},e.CustomFileAssetLoader=r.extend("CustomFileAssetLoader",{__construct:function({loadContents:e}){this.__parent.__construct.call(this),this.Ha=e},loadContents:function(t,n){return t=e.ptrToAsset(t),this.Ha(t,n)}}),e.CDNFileAssetLoader=r.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(t){var n,r,i;let o=e.ptrToAsset(t);return""!==(t=o.cdnUuid)&&(n=o.cdnBaseUrl+"/"+t,r=e=>{o.decode(new Uint8Array(e.response))},(i=new XMLHttpRequest).responseType="arraybuffer",i.onreadystatechange=function(){4==i.readyState&&200==i.status&&r(i)},i.open("GET",n,!0),i.send(null),!0)}}),e.FallbackFileAssetLoader=r.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.wa=[]},addLoader:function(e){this.wa.push(e)},loadContents:function(e,t){for(let n of this.wa)if(n.loadContents(e,t))return!0;return!1}})};let o="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),a=new function(){function e(){if(!t){let u;var e=document.createElement("canvas"),n={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(u=e.getContext("webgl",n),r=1,!u)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(u=e.getContext("webgl2",n))r=2;else{if(!(u=e.getContext("webgl",n)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;r=1}function s(e,t,n){if(t=u.createShader(t),u.shaderSource(t,n),u.compileShader(t),0<((n=u.getShaderInfoLog(t))||"").length)throw n;u.attachShader(e,t)}if(i=Math.min((u=new Proxy(u,{get:(e,t)=>e.isContextLost()?(c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",t),c=!0),"function"==typeof e[t])?function(){}:void 0:"function"==typeof e[t]?function(...n){return e[t].apply(e,n)}:e[t],set(e,t,n){if(!e.isContextLost())return e[t]=n,!0;c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+t),c=!0)}})).getParameter(u.MAX_RENDERBUFFER_SIZE),u.getParameter(u.MAX_TEXTURE_SIZE)),s(e=u.createProgram(),u.VERTEX_SHADER,"attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }"),s(e,u.FRAGMENT_SHADER,"precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }"),u.bindAttribLocation(e,0,"vertex"),u.bindAttribLocation(e,1,"uv"),u.linkProgram(e),0<((n=u.getProgramInfoLog(e))||"").trim().length)throw n;o=u.getUniformLocation(e,"mat"),a=u.getUniformLocation(e,"translate"),u.useProgram(e),u.bindBuffer(u.ARRAY_BUFFER,u.createBuffer()),u.enableVertexAttribArray(0),u.enableVertexAttribArray(1),u.bindBuffer(u.ELEMENT_ARRAY_BUFFER,u.createBuffer()),u.uniform1i(u.getUniformLocation(e,"image"),0),u.pixelStorei(u.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t=u}return!0}let t=null,r=0,i=0,o=null,a=null,s=0,u=0,c=!1;e(),this.eb=function(){return e(),i},this.Ma=function(e){t.deleteTexture&&t.deleteTexture(e)},this.La=function(n){if(!e())return null;let i=t.createTexture();return i?(t.bindTexture(t.TEXTURE_2D,i),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),2==r?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.generateMipmap(t.TEXTURE_2D)):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),i):null};let l=new n(8),d=new n(8),h=new n(10),f=new n(10);this.Qa=function(n,r,i,c,p){if(e()){var v=l.push(n),m=d.push(r);if(t.canvas){for(var g of((t.canvas.width!=v||t.canvas.height!=m)&&(t.canvas.width=v,t.canvas.height=m),t.viewport(0,m-r,n,r),t.disable(t.SCISSOR_TEST),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.SCISSOR_TEST),i.sort((e,t)=>t.Ba-e.Ba),v=h.push(c),s!=v&&(t.bufferData(t.ARRAY_BUFFER,8*v,t.DYNAMIC_DRAW),s=v),v=0,i))t.bufferSubData(t.ARRAY_BUFFER,v,g.ia),v+=4*g.ia.length;for(var _ of(console.assert(v==4*c),i))t.bufferSubData(t.ARRAY_BUFFER,v,_.Ea),v+=4*_.Ea.length;for(var y of(console.assert(v==8*c),v=f.push(p),u!=v&&(t.bufferData(t.ELEMENT_ARRAY_BUFFER,2*v,t.DYNAMIC_DRAW),u=v),g=0,i))t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,g,y.indices),g+=2*y.indices.length;for(let e of(console.assert(g==2*p),y=0,_=!0,v=g=0,i)){e.image.da!=y&&(t.bindTexture(t.TEXTURE_2D,e.image.ca||null),y=e.image.da),e.hb?(t.scissor(e.na,m-e.oa-e.va,e.sb,e.va),_=!0):_&&(t.scissor(0,m-r,n,r),_=!1),i=2/n;let s=-2/r;t.uniform4f(o,e.N[0]*i*e.X,e.N[1]*s*e.Y,e.N[2]*i*e.X,e.N[3]*s*e.Y),t.uniform2f(a,e.N[4]*i*e.X+i*(e.na-e.fb*e.X)-1,e.N[5]*s*e.Y+s*(e.oa-e.gb*e.Y)+1),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,v),t.vertexAttribPointer(1,2,t.FLOAT,!1,0,v+4*c),t.drawElements(t.TRIANGLES,e.indices.length,t.UNSIGNED_SHORT,g),v+=4*e.ia.length,g+=2*e.indices.length}console.assert(v==4*c),console.assert(g==2*p)}}},this.canvas=function(){return e()&&t.canvas}},s=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){function n(e){switch(e){case p.srcOver:return"source-over";case p.screen:return"screen";case p.overlay:return"overlay";case p.darken:return"darken";case p.lighten:return"lighten";case p.colorDodge:return"color-dodge";case p.colorBurn:return"color-burn";case p.hardLight:return"hard-light";case p.softLight:return"soft-light";case p.difference:return"difference";case p.exclusion:return"exclusion";case p.multiply:return"multiply";case p.hue:return"hue";case p.saturation:return"saturation";case p.color:return"color";case p.luminosity:return"luminosity"}}function r(e){return"rgba("+((16711680&e)>>>16)+","+((65280&e)>>>8)+","+((255&e)>>>0)+","+((4278190080&e)>>>24)/255+")"}function i(){for(let e of(0e)throw"restore() called without matching save().";this.D.splice(e),this.u.push(this.o.restore.bind(this.o))},transform:function(e,t,n,r,i,o){let a=this.D,s=a.length-6;a.splice(s,6,a[s]*e+a[s+2]*t,a[s+1]*e+a[s+3]*t,a[s]*n+a[s+2]*r,a[s+1]*n+a[s+3]*r,a[s]*i+a[s+2]*o+a[s+4],a[s+1]*i+a[s+3]*o+a[s+5]),this.u.push(this.o.transform.bind(this.o,e,t,n,r,i,o))},rotate:function(e){let t=Math.sin(e);e=Math.cos(e),this.transform(e,t,-t,e,0,0)},_drawPath:function(e,t){this.u.push(t.draw.bind(t,this.o,e.F,e.ka===g?"evenodd":"nonzero"))},_drawRiveImage:function(e,t,r){var i=e.Ga;if(i){var o=this.o,a=n(t);this.u.push(function(){o.globalCompositeOperation=a,o.globalAlpha=r,o.drawImage(i,0,0),o.globalAlpha=1})}},_getMatrix:function(e){let t=this.D,n=t.length-6;for(let r=0;6>r;++r)e[r]=t[n+r]},_drawImageMesh:function(t,r,o,s,u,c,l,d,h,f){var p=this.o.canvas.width,v=this.o.canvas.height;let m=h-l,g=f-d;l=Math.max(l,0),d=Math.max(d,0);let _=(h=Math.min(h,p))-l,y=(f=Math.min(f,v))-d;if(console.assert(_<=Math.min(m,p)),console.assert(y<=Math.min(g,v)),!(0>=_||0>=y)){h=_v&&(f*=v/b,b=v),w>v&&(p*=v/w,w=v),S||(S=new e.DynamicRectanizer(v)).reset(512,512),0>(v=S.addRect(b,w))&&(i(),T.add(this),console.assert(0<=(v=S.addRect(b,w))));var x=65535&v,k=v>>16;E.push({N:this.D.slice(this.D.length-6),image:t,na:x,oa:k,fb:l,gb:d,sb:b,va:w,X:f,Y:p,ia:new Float32Array(s),Ea:new Float32Array(u),indices:new Uint16Array(c),hb:h,Ba:t.da<<1|(h?1:0)}),C+=s.length,Z+=c.length;var R=this.o,P=n(r);this.u.push(function(){R.save(),R.resetTransform(),R.globalCompositeOperation=P,R.globalAlpha=o;let e=a.canvas();e&&R.drawImage(e,x,k,b,w,l,d,_,y),R.restore()})}},_clipPath:function(e){this.u.push(this.o.clip.bind(this.o,e.F,e.ka===g?"evenodd":"nonzero"))},clear:function(){T.add(this),this.u.push(this.o.clearRect.bind(this.o,0,0,this.ja.width,this.ja.height))},flush:function(){},translate:function(e,t){this.transform(1,0,0,1,e,t)}});e.makeRenderer=function(e){let t=new x(e),n=t.o;return new Proxy(t,{get(e,r){if("function"==typeof e[r])return function(...t){return e[r].apply(e,t)};if("function"==typeof n[r]){if(-1{n[r]=i}),!0}})},e.decodeImage=function(e,t){new y({R:t}).decode(e)},e.renderFactory={makeRenderPaint:function(){return new w},makeRenderPath:function(){return new b},makeRenderImage:function(){let e=R;return new y({W:()=>{e.total++},R:()=>{if(e.loaded++,e.loaded===e.total){let t=e.ready;t&&(t(),e.ready=null)}}})}};let k=e.load,R=null;e.load=function(t,n,r=!0){let i=new e.FallbackFileAssetLoader;return void 0!==n&&i.addLoader(n),r&&(n=new e.CDNFileAssetLoader,i.addLoader(n)),new Promise(function(e){let n=null;R={total:0,loaded:0,ready:function(){e(n)}},n=k(t,i),0==R.total&&e(n)})},u=new t,e.requestAnimationFrame=u.requestAnimationFrame.bind(u),e.cancelAnimationFrame=u.cancelAnimationFrame.bind(u),e.enableFPSCounter=u.Ra.bind(u),e.disableFPSCounter=u.Oa,u.xa=i,e.resolveAnimationFrame=i,e.cleanup=function(){S&&S.delete()}};var u,c,l,d,h,f=Object.assign({},e),p="./this.program",v="object"==typeof window,m="function"==typeof importScripts,g="";(v||m)&&(m?g=self.location.href:"undefined"!=typeof document&&document.currentScript&&(g=document.currentScript.src),r&&(g=r),g=0!==g.indexOf("blob:")?g.substr(0,g.replace(/[?#].*/,"").lastIndexOf("/")+1):"",m&&(h=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),d=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var _=e.print||console.log.bind(console),y=e.printErr||console.error.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(p=e.thisProgram),e.wasmBinary&&(b=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&F("no native wasm support detected");var b,w,T,S,E,C,Z,x,k,R,P,O=!1;function D(){var t=w.buffer;e.HEAP8=S=new Int8Array(t),e.HEAP16=C=new Int16Array(t),e.HEAP32=x=new Int32Array(t),e.HEAPU8=E=new Uint8Array(t),e.HEAPU16=Z=new Uint16Array(t),e.HEAPU32=k=new Uint32Array(t),e.HEAPF32=R=new Float32Array(t),e.HEAPF64=P=new Float64Array(t)}var j,A=[],M=[],L=[],N=0,I=null,U=null;function F(t){throw e.onAbort&&e.onAbort(t),y(t="Aborted("+t+")"),O=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),l(t),t}function Y(e){return e.startsWith("data:application/octet-stream;base64,")}if(!Y(e7="canvas_advanced.wasm")){var B=e7;e7=e.locateFile?e.locateFile(B,g):g+B}function $(e){if(e==e7&&b)return new Uint8Array(b);if(h)return h(e);throw"both async and sync fetching of the wasm failed"}function G(e,t,n){return(function(e){if(!b&&(v||m)){if("function"==typeof fetch&&!e.startsWith("file://"))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>$(e));if(d)return new Promise((t,n)=>{d(e,e=>t(new Uint8Array(e)),n)})}return Promise.resolve().then(()=>$(e))})(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(n,e=>{y("failed to asynchronously prepare wasm: "+e),F(e)})}var z=t=>{for(;0=t?`_${e}`:e}function H(e,t){return({[e=W(e)]:function(){return t.apply(this,arguments)}})[e]}function q(){this.G=[void 0],this.ta=[]}var V=new q,X=void 0;function J(e){throw new X(e)}var K=e=>(e||J("Cannot use deleted val. handle = "+e),V.get(e).value),Q=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return V.Za({Aa:1,value:e})}};function ee(e){var t=Error,n=H(e,function(t){this.name=e,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},n}var et=void 0,en=void 0;function er(e){for(var t="";E[e];)t+=en[E[e++]];return t}var ei=[];function eo(){for(;ei.length;){var e=ei.pop();e.g.M=!1,e.delete()}}var ea=void 0,es={};function eu(e,t){for(void 0===t&&J("ptr should not be undefined");e.l;)t=e.S(t),e=e.l;return t}var ec={};function el(e){var t=er(e=tv(e));return tf(e),t}function ed(e,t){var n=ec[e];return void 0===n&&J(t+" has unknown type "+el(e)),n}function eh(){}var ef=!1;function ep(e){--e.count.value,0===e.count.value&&(e.s?e.A.H(e.s):e.j.h.H(e.i))}var ev={},em=void 0;function eg(e){throw new em(e)}function e_(e,t){return t.j&&t.i||eg("makeClassHandle requires ptr and ptrType"),!!t.A!=!!t.s&&eg("Both smartPtrType and smartPtr must be specified"),t.count={value:1},ey(Object.create(e,{g:{value:t}}))}function ey(e){return"undefined"==typeof FinalizationRegistry?(ey=e=>e,e):(ef=new FinalizationRegistry(e=>{ep(e.g)}),ey=e=>{var t=e.g;return t.s&&ef.register(e,{g:t},e),e},eh=e=>{ef.unregister(e)},ey(e))}var eb={};function ew(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function eT(e){return this.fromWireType(x[e>>2])}var eS={},eE={};function eC(e,t,n){function r(t){(t=n(t)).length!==e.length&&eg("Mismatched type converter count");for(var r=0;r{ec.hasOwnProperty(e)?i[t]=ec[e]:(o.push(e),eS.hasOwnProperty(e)||(eS[e]=[]),eS[e].push(()=>{i[t]=ec[e],++a===o.length&&r(i)}))}),0===o.length&&r(i)}function eZ(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError(`Unknown type size: ${e}`)}}function ex(e,t,n={}){if(!("argPackAdvance"in t))throw TypeError("registerType registeredInstance requires argPackAdvance");!function(e,t,n={}){var r=t.name;if(e||J(`type "${r}" must have a positive integer typeid pointer`),ec.hasOwnProperty(e)){if(n.ab)return;J(`Cannot register type '${r}' twice`)}ec[e]=t,delete eE[e],eS.hasOwnProperty(e)&&(t=eS[e],delete eS[e],t.forEach(e=>e()))}(e,t,n)}function ek(e){J(e.g.j.h.name+" instance already deleted")}function eR(){}function eP(e,t,n){if(void 0===e[t].m){var r=e[t];e[t]=function(){return e[t].m.hasOwnProperty(arguments.length)||J(`Function '${n}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].m})!`),e[t].m[arguments.length].apply(this,arguments)},e[t].m=[],e[t].m[r.L]=r}}function eO(t,n,r){e.hasOwnProperty(t)?((void 0===r||void 0!==e[t].m&&void 0!==e[t].m[r])&&J(`Cannot register public name '${t}' twice`),eP(e,t,t),e.hasOwnProperty(r)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),e[t].m[r]=n):(e[t]=n,void 0!==r&&(e[t].tb=r))}function eD(e,t,n,r,i,o,a,s){this.name=e,this.constructor=t,this.B=n,this.H=r,this.l=i,this.Ua=o,this.S=a,this.Pa=s,this.ya=[]}function ej(e,t,n){for(;t!==n;)t.S||J(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.S(e),t=t.l;return e}function eA(e,t){return null===t?(this.ea&&J(`null is not a valid ${this.name}`),0):(t.g||J(`Cannot pass "${eV(t)}" as a ${this.name}`),t.g.i||J(`Cannot pass deleted object as a pointer of type ${this.name}`),ej(t.g.i,t.g.j.h,this.h))}function eM(e,t){if(null===t){if(this.ea&&J(`null is not a valid ${this.name}`),this.V){var n=this.fa();return null!==e&&e.push(this.H,n),n}return 0}if(t.g||J(`Cannot pass "${eV(t)}" as a ${this.name}`),t.g.i||J(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.U&&t.g.j.U&&J(`Cannot convert argument of type ${t.g.A?t.g.A.name:t.g.j.name} to parameter type ${this.name}`),n=ej(t.g.i,t.g.j.h,this.h),this.V)switch(void 0===t.g.s&&J("Passing raw pointer to smart pointer is illegal"),this.nb){case 0:t.g.A===this?n=t.g.s:J(`Cannot convert argument of type ${t.g.A?t.g.A.name:t.g.j.name} to parameter type ${this.name}`);break;case 1:n=t.g.s;break;case 2:if(t.g.A===this)n=t.g.s;else{var r=t.clone();n=this.jb(n,Q(function(){r.delete()})),null!==e&&e.push(this.H,n)}break;default:J("Unsupporting sharing policy")}return n}function eL(e,t){return null===t?(this.ea&&J(`null is not a valid ${this.name}`),0):(t.g||J(`Cannot pass "${eV(t)}" as a ${this.name}`),t.g.i||J(`Cannot pass deleted object as a pointer of type ${this.name}`),t.g.j.U&&J(`Cannot convert argument of type ${t.g.j.name} to parameter type ${this.name}`),ej(t.g.i,t.g.j.h,this.h))}function eN(e,t,n,r){this.name=e,this.h=t,this.ea=n,this.U=r,this.V=!1,this.H=this.jb=this.fa=this.za=this.nb=this.ib=void 0,void 0!==t.l?this.toWireType=eM:(this.toWireType=r?eA:eL,this.v=null)}function eI(t,n,r){e.hasOwnProperty(t)||eg("Replacing nonexistant public symbol"),void 0!==e[t].m&&void 0!==r?e[t].m[r]=n:(e[t]=n,e[t].L=r)}var eU=[],eF=e=>{var t=eU[e];return t||(e>=eU.length&&(eU.length=e+1),eU[e]=t=j.get(e)),t},eY=(t,n)=>{var r=[];return function(){if(r.length=0,Object.assign(r,arguments),t.includes("j")){var i=e["dynCall_"+t];i=r&&r.length?i.apply(null,[n].concat(r)):i.call(null,n)}else i=eF(n).apply(null,r);return i}};function eB(e,t){var n=(e=er(e)).includes("j")?eY(e,t):eF(t);return"function"!=typeof n&&J(`unknown function pointer with signature ${e}: ${t}`),n}var e$=void 0;function eG(e,t){var n=[],r={};throw t.forEach(function e(t){r[t]||ec[t]||(eE[t]?eE[t].forEach(e):(n.push(t),r[t]=!0))}),new e$(`${e}: `+n.map(el).join([", "]))}function ez(e,t,n,r,i){var o=t.length;2>o&&J("argTypes array size mismatch! Must at least get return value and 'this' types!");var a=null!==t[1]&&null!==n,s=!1;for(n=1;n>2]);return n}function eH(e,t,n){return e instanceof Object||J(`${n} with invalid "this": ${e}`),e instanceof t.h.constructor||J(`${n} incompatible with "this" of type ${e.constructor.name}`),e.g.i||J(`cannot call emscripten binding method ${n} on deleted object`),ej(e.g.i,e.g.j.h,t.h)}function eq(e){e>=V.ua&&0==--V.get(e).Aa&&V.$a(e)}function eV(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}var eX=(e,t,n,r)=>{if(0=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),127>=o){if(n>=r)break;t[n++]=o}else{if(2047>=o){if(n+1>=r)break;t[n++]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;t[n++]=224|o>>12}else{if(n+3>=r)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63}t[n++]=128|o>>6&63}t[n++]=128|63&o}}t[n]=0}},eJ=e=>{for(var t=0,n=0;n=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t},eK="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,eQ=(e,t,n)=>{var r=t+n;for(n=t;e[n]&&!(n>=r);)++n;if(16(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&e[t++])?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else r+=String.fromCharCode(i)}return r},e0="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,e1=(e,t)=>{for(var n=e>>1,r=n+t/2;!(n>=r)&&Z[n];)++n;if(32<(n<<=1)-e&&e0)return e0.decode(E.subarray(e,n));for(r=0,n="";!(r>=t/2);++r){var i=C[e+2*r>>1];if(0==i)break;n+=String.fromCharCode(i)}return n},e2=(e,t,n)=>{if(void 0===n&&(n=2147483647),2>n)return 0;n-=2;var r=t;n=n<2*e.length?n/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return C[t>>1]=0,t-r},e3=e=>2*e.length,e4=(e,t)=>{for(var n=0,r="";!(n>=t/4);){var i=x[e+4*n>>2];if(0==i)break;++n,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}return r},e8=(e,t,n)=>{if(void 0===n&&(n=2147483647),4>n)return 0;var r=t;n=r+n-4;for(var i=0;i=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),x[t>>2]=o,(t+=4)+4>n)break}return x[t>>2]=0,t-r},e6=e=>{for(var t=0,n=0;n=r&&++n,t+=4}return t},e9={};function e5(e){var t=e9[e];return void 0===t?er(e):t}var e7,te,tt=[],tn=[],tr={},ti=()=>{if(!te){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(e in tr)void 0===tr[e]?delete t[e]:t[e]=tr[e];var n=[];for(e in t)n.push(`${e}=${t[e]}`);te=n}return te},to=[null,[],[]],ta=e=>0==e%4&&(0!=e%100||0==e%400),ts=[31,29,31,30,31,30,31,31,30,31,30,31],tu=[31,28,31,30,31,30,31,31,30,31,30,31],tc=(e,t,n,r)=>{function i(e,t,n){for(e="number"==typeof e?e.toString():e||"";e.lengthe?-1:0r-e.getDate())t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1));else{e.setDate(e.getDate()+t);break}}return n=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),n=s(n),0>=a(t,e)?0>=a(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c,l,d=x[r+40>>2];for(var h in r={qb:x[r>>2],pb:x[r+4>>2],Z:x[r+8>>2],ha:x[r+12>>2],$:x[r+16>>2],K:x[r+20>>2],C:x[r+24>>2],J:x[r+28>>2],ub:x[r+32>>2],ob:x[r+36>>2],rb:d&&d?eQ(E,d):""},n=n?eQ(E,n):"",d={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(RegExp(h,"g"),d[h]);var f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),p="January February March April May June July August September October November December".split(" ");for(h in d={"%a":e=>f[e.C].substring(0,3),"%A":e=>f[e.C],"%b":e=>p[e.$].substring(0,3),"%B":e=>p[e.$],"%C":e=>o((e.K+1900)/100|0,2),"%d":e=>o(e.ha,2),"%e":e=>i(e.ha,2," "),"%g":e=>u(e).toString().substring(2),"%G":e=>u(e),"%H":e=>o(e.Z,2),"%I":e=>(0==(e=e.Z)?e=12:12{for(var t=0,n=0;n<=e.$-1;t+=(ta(e.K+1900)?ts:tu)[n++]);return o(e.ha+t,3)},"%m":e=>o(e.$+1,2),"%M":e=>o(e.pb,2),"%n":()=>"\n","%p":e=>0<=e.Z&&12>e.Z?"AM":"PM","%S":e=>o(e.qb,2),"%t":()=>" ","%u":e=>e.C||7,"%U":e=>o(Math.floor((e.J+7-e.C)/7),2),"%V":e=>{var t=Math.floor((e.J+7-(e.C+6)%7)/7);if(2>=(e.C+371-e.J-2)%7&&t++,t)53==t&&(4==(n=(e.C+371-e.J)%7)||3==n&&ta(e.K)||(t=1));else{t=52;var n=(e.C+7-e.J-1)%7;(4==n||5==n&&ta(e.K%400-1))&&t++}return o(t,2)},"%w":e=>e.C,"%W":e=>o(Math.floor((e.J+7-(e.C+6)%7)/7),2),"%y":e=>(e.K+1900).toString().substring(2),"%Y":e=>e.K+1900,"%z":e=>{var t=0<=(e=e.ob);return(t?"+":"-")+String("0000"+((e=Math.abs(e)/60)/60*100+e%60)).slice(-4)},"%Z":e=>e.rb,"%%":()=>"%"},n=n.replace(/%%/g,"\0\0"),d)n.includes(h)&&(n=n.replace(RegExp(h,"g"),d[h](r)));return(l=Array(eJ(c=n=n.replace(/\0\0/g,"%"))+1),eX(c,l,0,l.length),(h=l).length>t)?0:(S.set(h,e),h.length-1)};Object.assign(q.prototype,{get(e){return this.G[e]},has(e){return void 0!==this.G[e]},Za(e){var t=this.ta.pop()||this.G.length;return this.G[t]=e,t},$a(e){this.G[e]=void 0,this.ta.push(e)}}),X=e.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},V.G.push({value:void 0},{value:null},{value:!0},{value:!1}),V.ua=V.G.length,e.count_emval_handles=function(){for(var e=0,t=V.ua;ttd;++td)tl[td]=String.fromCharCode(td);en=tl,e.getInheritedInstanceCount=function(){return Object.keys(es).length},e.getLiveInheritedInstances=function(){var e,t=[];for(e in es)es.hasOwnProperty(e)&&t.push(es[e]);return t},e.flushPendingDeletes=eo,e.setDelayFunction=function(e){ea=e,ei.length&&ea&&ea(eo)},em=e.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},eR.prototype.isAliasOf=function(e){if(!(this instanceof eR&&e instanceof eR))return!1;var t=this.g.j.h,n=this.g.i,r=e.g.j.h;for(e=e.g.i;t.l;)n=t.S(n),t=t.l;for(;r.l;)e=r.S(e),r=r.l;return t===r&&n===e},eR.prototype.clone=function(){if(this.g.i||ek(this),this.g.O)return this.g.count.value+=1,this;var e=ey,t=Object,n=t.create,r=Object.getPrototypeOf(this),i=this.g;return e=e(n.call(t,r,{g:{value:{count:i.count,M:i.M,O:i.O,i:i.i,j:i.j,s:i.s,A:i.A}}})),e.g.count.value+=1,e.g.M=!1,e},eR.prototype.delete=function(){this.g.i||ek(this),this.g.M&&!this.g.O&&J("Object already scheduled for deletion"),eh(this),ep(this.g),this.g.O||(this.g.s=void 0,this.g.i=void 0)},eR.prototype.isDeleted=function(){return!this.g.i},eR.prototype.deleteLater=function(){return this.g.i||ek(this),this.g.M&&!this.g.O&&J("Object already scheduled for deletion"),ei.push(this),1===ei.length&&ea&&ea(eo),this.g.M=!0,this},eN.prototype.Va=function(e){return this.za&&(e=this.za(e)),e},eN.prototype.pa=function(e){this.H&&this.H(e)},eN.prototype.argPackAdvance=8,eN.prototype.readValueFromPointer=eT,eN.prototype.deleteObject=function(e){null!==e&&e.delete()},eN.prototype.fromWireType=function(e){function t(){return this.V?e_(this.h.B,{j:this.ib,i:n,A:this,s:e}):e_(this.h.B,{j:this,i:e})}var n=this.Va(e);if(!n)return this.pa(e),null;var r=es[eu(this.h,n)];if(void 0!==r)return 0===r.g.count.value?(r.g.i=n,r.g.s=e,r.clone()):(r=r.clone(),this.pa(e),r);if(!(r=ev[r=this.h.Ua(n)]))return t.call(this);r=this.U?r.Ka:r.pointerType;var i=function e(t,n,r){return n===r?t:void 0===r.l?null:null===(t=e(t,n,r.l))?null:r.Pa(t)}(n,this.h,r.h);return null===i?t.call(this):this.V?e_(r.h.B,{j:r,i:i,A:this,s:e}):e_(r.h.B,{j:r,i:i})},e$=e.UnboundTypeError=ee("UnboundTypeError");var th={_embind_create_inheriting_constructor:function(e,t,n){e=er(e),t=ed(t,"wrapper"),n=K(n);var r=[].slice,i=t.h,o=i.B,a=i.l.B,s=i.l.constructor;for(var u in e=H(e,function(){i.l.ya.forEach((function(e){if(this[e]===a[e])throw new et(`Pure virtual function ${e} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:o}),this.__construct.apply(this,r.call(arguments))}),o.__construct=function(){this===o&&J("Pass correct 'this' to __construct");var e=s.implement.apply(void 0,[this].concat(r.call(arguments)));eh(e);var t=e.g;e.notifyOnDestruction(),t.O=!0,Object.defineProperties(this,{g:{value:t}}),ey(this),e=eu(i,e=t.i),es.hasOwnProperty(e)?J(`Tried to register registered instance: ${e}`):es[e]=this},o.__destruct=function(){this===o&&J("Pass correct 'this' to __destruct"),eh(this);var e=this.g.i;e=eu(i,e),es.hasOwnProperty(e)?delete es[e]:J(`Tried to unregister unregistered instance: ${e}`)},e.prototype=Object.create(o),n)e.prototype[u]=n[u];return Q(e)},_embind_finalize_value_object:function(e){var t=eb[e];delete eb[e];var n=t.fa,r=t.H,i=t.sa;eC([e],i.map(e=>e.Ya).concat(i.map(e=>e.lb)),e=>{var o={};return i.forEach((t,n)=>{var r=e[n],a=t.Wa,s=t.Xa,u=e[n+i.length],c=t.kb,l=t.mb;o[t.Sa]={read:e=>r.fromWireType(a(s,e)),write:(e,t)=>{var n=[];c(l,e,u.toWireType(n,t)),ew(n)}}}),[{name:t.name,fromWireType:function(e){var t,n={};for(t in o)n[t]=o[t].read(e);return r(e),n},toWireType:function(e,t){for(var i in o)if(!(i in t))throw TypeError(`Missing field: "${i}"`);var a=n();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(r,a),a},argPackAdvance:8,readValueFromPointer:eT,v:r}]})},_embind_register_bigint:function(){},_embind_register_bool:function(e,t,n,r,i){var o=eZ(n);ex(e,{name:t=er(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){if(1===n)var r=S;else if(2===n)r=C;else if(4===n)r=x;else throw TypeError("Unknown boolean type size: "+t);return this.fromWireType(r[e>>o])},v:null})},_embind_register_class:function(e,t,n,r,i,o,a,s,u,c,l,d,h){l=er(l),o=eB(i,o),s&&(s=eB(a,s)),c&&(c=eB(u,c)),h=eB(d,h);var f=W(l);eO(f,function(){eG(`Cannot construct ${l} due to unbound types`,[r])}),eC([e,t,n],r?[r]:[],function(t){if(t=t[0],r)var n=t.h,i=n.B;else i=eR.prototype;var a=Object.create(i,{constructor:{value:t=H(f,function(){if(Object.getPrototypeOf(this)!==a)throw new X("Use 'new' to construct "+l);if(void 0===u.I)throw new X(l+" has no accessible constructor");var e=u.I[arguments.length];if(void 0===e)throw new X(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.I).toString()}) parameters instead!`);return e.apply(this,arguments)})}});t.prototype=a;var u=new eD(l,t,a,h,n,o,s,c);u.l&&(void 0===u.l.T&&(u.l.T=[]),u.l.T.push(u)),n=new eN(l,u,!0,!1),i=new eN(l+"*",u,!1,!1);var d=new eN(l+" const*",u,!1,!0);return ev[e]={pointerType:i,Ka:d},eI(f,t),[n,i,d]})},_embind_register_class_class_function:function(e,t,n,r,i,o,a){var s=eW(n,r);t=er(t),o=eB(i,o),eC([],[e],function(e){function r(){eG(`Cannot call ${i} due to unbound types`,s)}e=e[0];var i=`${e.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.h.constructor;return void 0===u[t]?(r.L=n-1,u[t]=r):(eP(u,t,i),u[t].m[n-1]=r),eC([],s,function(r){if(r=ez(i,[r[0],null].concat(r.slice(1)),null,o,a),void 0===u[t].m?(r.L=n-1,u[t]=r):u[t].m[n-1]=r,e.h.T)for(let n of e.h.T)n.constructor.hasOwnProperty(t)||(n.constructor[t]=r);return[]}),[]})},_embind_register_class_class_property:function(e,t,n,r,i,o,a,s){t=er(t),o=eB(i,o),eC([],[e],function(e){e=e[0];var i=`${e.name}.${t}`,u={get(){eG(`Cannot access ${i} due to unbound types`,[n])},enumerable:!0,configurable:!0};return u.set=s?()=>{eG(`Cannot access ${i} due to unbound types`,[n])}:()=>{J(`${i} is a read-only property`)},Object.defineProperty(e.h.constructor,t,u),eC([],[n],function(n){n=n[0];var i={get:()=>n.fromWireType(o(r)),enumerable:!0};return s&&(s=eB(a,s),i.set=e=>{var t=[];s(r,n.toWireType(t,e)),ew(t)}),Object.defineProperty(e.h.constructor,t,i),[]}),[]})},_embind_register_class_constructor:function(e,t,n,r,i,o){var a=eW(t,n);i=eB(r,i),eC([],[e],function(e){e=e[0];var n=`constructor ${e.name}`;if(void 0===e.h.I&&(e.h.I=[]),void 0!==e.h.I[t-1])throw new X(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.h.I[t-1]=()=>{eG(`Cannot construct ${e.name} due to unbound types`,a)},eC([],a,function(r){return r.splice(1,0,null),e.h.I[t-1]=ez(n,r,null,i,o),[]}),[]})},_embind_register_class_function:function(e,t,n,r,i,o,a,s){var u=eW(n,r);t=er(t),o=eB(i,o),eC([],[e],function(e){function r(){eG(`Cannot call ${i} due to unbound types`,u)}e=e[0];var i=`${e.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.h.ya.push(t);var c=e.h.B,l=c[t];return void 0===l||void 0===l.m&&l.className!==e.name&&l.L===n-2?(r.L=n-2,r.className=e.name,c[t]=r):(eP(c,t,i),c[t].m[n-2]=r),eC([],u,function(r){return r=ez(i,r,e,o,a),void 0===c[t].m?(r.L=n-2,c[t]=r):c[t].m[n-2]=r,[]}),[]})},_embind_register_class_property:function(e,t,n,r,i,o,a,s,u,c){t=er(t),i=eB(r,i),eC([],[e],function(e){e=e[0];var r=`${e.name}.${t}`,l={get(){eG(`Cannot access ${r} due to unbound types`,[n,a])},enumerable:!0,configurable:!0};return l.set=u?()=>{eG(`Cannot access ${r} due to unbound types`,[n,a])}:()=>{J(r+" is a read-only property")},Object.defineProperty(e.h.B,t,l),eC([],u?[n,a]:[n],function(n){var a=n[0],l={get(){var t=eH(this,e,r+" getter");return a.fromWireType(i(o,t))},enumerable:!0};if(u){u=eB(s,u);var d=n[1];l.set=function(t){var n=eH(this,e,r+" setter"),i=[];u(c,n,d.toWireType(i,t)),ew(i)}}return Object.defineProperty(e.h.B,t,l),[]}),[]})},_embind_register_emval:function(e,t){ex(e,{name:t=er(t),fromWireType:function(e){var t=K(e);return eq(e),t},toWireType:function(e,t){return Q(t)},argPackAdvance:8,readValueFromPointer:eT,v:null})},_embind_register_enum:function(e,t,n,r){function i(){}n=eZ(n),t=er(t),i.values={},ex(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:function(e,t,n){switch(t){case 0:return function(e){return this.fromWireType((n?S:E)[e])};case 1:return function(e){return this.fromWireType((n?C:Z)[e>>1])};case 2:return function(e){return this.fromWireType((n?x:k)[e>>2])};default:throw TypeError("Unknown integer type: "+e)}}(t,n,r),v:null}),eO(t,i)},_embind_register_enum_value:function(e,t,n){var r=ed(e,"enum");t=er(t),e=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:H(`${r.name}_${t}`,function(){})}}),e.values[n]=r,e[t]=r},_embind_register_float:function(e,t,n){n=eZ(n),ex(e,{name:t=er(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:function(e,t){switch(t){case 2:return function(e){return this.fromWireType(R[e>>2])};case 3:return function(e){return this.fromWireType(P[e>>3])};default:throw TypeError("Unknown float type: "+e)}}(t,n),v:null})},_embind_register_function:function(e,t,n,r,i,o){var a=eW(t,n);e=er(e),i=eB(r,i),eO(e,function(){eG(`Cannot call ${e} due to unbound types`,a)},t-1),eC([],a,function(n){return eI(e,ez(e,[n[0],null].concat(n.slice(1)),null,i,o),t-1),[]})},_embind_register_integer:function(e,t,n,r,i){t=er(t),-1===i&&(i=4294967295),i=eZ(n);var o=e=>e;if(0===r){var a=32-8*n;o=e=>e<>>a}n=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t},ex(e,{name:t,fromWireType:o,toWireType:n,argPackAdvance:8,readValueFromPointer:function(e,t,n){switch(t){case 0:return n?function(e){return S[e]}:function(e){return E[e]};case 1:return n?function(e){return C[e>>1]}:function(e){return Z[e>>1]};case 2:return n?function(e){return x[e>>2]}:function(e){return k[e>>2]};default:throw TypeError("Unknown integer type: "+e)}}(t,i,0!==r),v:null})},_embind_register_memory_view:function(e,t,n){function r(e){e>>=2;var t=k;return new i(t.buffer,t[e+1],t[e])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];ex(e,{name:n=er(n),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ab:!0})},_embind_register_std_string:function(e,t){var n="std::string"===(t=er(t));ex(e,{name:t,fromWireType:function(e){var t=k[e>>2],r=e+4;if(n)for(var i=r,o=0;o<=t;++o){var a=r+o;if(o==t||0==E[a]){if(i=i?eQ(E,i,a-i):"",void 0===s)var s=i;else s+="\0"+i;i=a+1}}else{for(o=0,s=Array(t);o>2]=i,n&&r)eX(t,E,a,i+1);else if(r)for(r=0;rZ,s=1;else 4===t&&(r=e4,i=e8,o=e6,a=()=>k,s=2);ex(e,{name:n,fromWireType:function(e){for(var n,i=k[e>>2],o=a(),u=e+4,c=0;c<=i;++c){var l=e+4+c*t;(c==i||0==o[l>>s])&&(u=r(u,l-u),void 0===n?n=u:n+="\0"+u,u=l+t)}return tf(e),n},toWireType:function(e,r){"string"!=typeof r&&J(`Cannot pass non-string to C++ string type ${n}`);var a=o(r),u=tp(4+a+t);return k[u>>2]=a>>s,i(r,u+4,a+t),null!==e&&e.push(tf,u),u},argPackAdvance:8,readValueFromPointer:eT,v:function(e){tf(e)}})},_embind_register_value_object:function(e,t,n,r,i,o){eb[e]={name:er(t),fa:eB(n,r),H:eB(i,o),sa:[]}},_embind_register_value_object_field:function(e,t,n,r,i,o,a,s,u,c){eb[e].sa.push({Sa:er(t),Ya:n,Wa:eB(r,i),Xa:o,lb:a,kb:eB(s,u),mb:c})},_embind_register_void:function(e,t){ex(e,{cb:!0,name:t=er(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(e,t,n){e=K(e),t=ed(t,"emval::as");var r=[],i=Q(r);return k[n>>2]=i,t.toWireType(r,e)},_emval_call_method:function(e,t,n,r,i){e=tt[e],t=K(t),n=e5(n);var o=[];return k[r>>2]=Q(o),e(t,n,o,i)},_emval_call_void_method:function(e,t,n,r){(e=tt[e])(t=K(t),n=e5(n),null,r)},_emval_decref:eq,_emval_get_method_caller:function(e,t){var n,r,i=function(e,t){for(var n=Array(e),r=0;r>2],"parameter "+r);return n}(e,t),o=i[0],a=tn[t=o.name+"_$"+i.slice(1).map(function(e){return e.name}).join("_")+"$"];if(void 0!==a)return a;var s=Array(e-1);return n=(t,n,r,a)=>{for(var u=0,c=0;c{F("")},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(e,t,n)=>E.copyWithin(e,t,t+n),emscripten_resize_heap:e=>{var t=E.length;if(2147483648<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var i=Math;r=Math.max(e,r);e:{i=i.min.call(i,2147483648,r+(65536-r%65536)%65536)-w.buffer.byteLength+65535>>>16;try{w.grow(i),D();var o=1;break e}catch(e){}o=void 0}if(o)return!0}return!1},environ_get:(e,t)=>{var n=0;return ti().forEach(function(r,i){var o=t+n;for(i=k[e+4*i>>2]=o,o=0;o>0]=r.charCodeAt(o);S[i>>0]=0,n+=r.length+1}),0},environ_sizes_get:(e,t)=>{var n=ti();k[e>>2]=n.length;var r=0;return n.forEach(function(e){r+=e.length+1}),k[t>>2]=r,0},fd_close:()=>52,fd_seek:function(){return 70},fd_write:(e,t,n,r)=>{for(var i=0,o=0;o>2],s=k[t+4>>2];t+=8;for(var u=0;u>2]=i,0},strftime_l:(e,t,n,r)=>tc(e,t,n,r)};!function(){function t(t){if(w=(T=t=t.exports).memory,D(),j=T.__indirect_function_table,M.unshift(T.__wasm_call_ctors),N--,e.monitorRunDependencies&&e.monitorRunDependencies(N),0==N&&(null!==I&&(clearInterval(I),I=null),U)){var n=U;U=null,n()}return t}var n,r,i={env:th,wasi_snapshot_preview1:th};if(N++,e.monitorRunDependencies&&e.monitorRunDependencies(N),e.instantiateWasm)try{return e.instantiateWasm(i,t)}catch(e){y("Module.instantiateWasm callback failed with error: "+e),l(e)}(n=function(e){t(e.instance)},r=e7,b||"function"!=typeof WebAssembly.instantiateStreaming||Y(r)||r.startsWith("file://")||"function"!=typeof fetch?G(r,i,n):fetch(r,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,i).then(n,function(e){return y("wasm streaming compile failed: "+e),y("falling back to ArrayBuffer instantiation"),G(r,i,n)}))).catch(l)}();var tf=e=>(tf=T.free)(e),tp=e=>(tp=T.malloc)(e),tv=e=>(tv=T.__getTypeName)(e);function tm(){function t(){if(!u&&(u=!0,e.calledRun=!0,!O)){if(z(M),c(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();L.unshift(t)}z(L)}}if(!(0(e.__embind_initialize_bindings=T._embind_initialize_bindings)(),e.dynCall_jiji=(t,n,r,i,o)=>(e.dynCall_jiji=T.dynCall_jiji)(t,n,r,i,o),e.dynCall_viijii=(t,n,r,i,o,a,s)=>(e.dynCall_viijii=T.dynCall_viijii)(t,n,r,i,o,a,s),e.dynCall_iiiiij=(t,n,r,i,o,a,s)=>(e.dynCall_iiiiij=T.dynCall_iiiiij)(t,n,r,i,o,a,s),e.dynCall_iiiiijj=(t,n,r,i,o,a,s,u,c)=>(e.dynCall_iiiiijj=T.dynCall_iiiiijj)(t,n,r,i,o,a,s,u,c),e.dynCall_iiiiiijj=(t,n,r,i,o,a,s,u,c,l)=>(e.dynCall_iiiiiijj=T.dynCall_iiiiiijj)(t,n,r,i,o,a,s,u,c,l),U=function e(){u||tm(),u||(U=e)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0{e.exports=JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.20.0","description":"A lite version of Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso (https://rive.app)","Maxwell Talbot (https://rive.app)","Arthur Vivian (https://rive.app)","Umberto Sonnino (https://rive.app)","Matthew Sullivan (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>r.Animation});var r=n(4)},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>r});var r=function(){function e(e,t,n,r){this.animation=e,this.artboard=t,this.playing=r,this.loopCount=0,this.scrubTo=null,this.instance=new n.LinearAnimationInstance(e,t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.instance.time},set:function(e){this.instance.time=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){null===this.scrubTo?this.instance.advance(e):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},e.prototype.apply=function(e){this.instance.apply(e)},e.prototype.cleanup=function(){this.instance.delete()},e}()},(e,t,n)=>{n.r(t),n.d(t,{BLANK_URL:()=>i.BLANK_URL,registerTouchInteractions:()=>r.registerTouchInteractions,sanitizeUrl:()=>i.sanitizeUrl});var r=n(6),i=n(7)},(e,t,n)=>{n.r(t),n.d(t,{registerTouchInteractions:()=>o});var r=void 0,i=function(e,t){var n,r;return["touchstart","touchmove"].indexOf(e.type)>-1&&(null===(n=e.touches)||void 0===n?void 0:n.length)?(t||e.preventDefault(),{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}):"touchend"===e.type&&(null===(r=e.changedTouches)||void 0===r?void 0:r.length)?{clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}},o=function(e){var t=e.canvas,n=e.artboard,o=e.stateMachines,a=void 0===o?[]:o,s=e.renderer,u=e.rive,c=e.fit,l=e.alignment,d=e.isTouchScrollEnabled,h=void 0!==d&&d;if(!t||!a.length||!s||!u||!n||"undefined"==typeof window)return null;var f=null,p=!1,v=(function(e){if(p&&e instanceof MouseEvent){"mouseup"==e.type&&(p=!1);return}p=h&&"touchend"===e.type&&"touchstart"===f,f=e.type;var t=e.currentTarget.getBoundingClientRect(),r=i(e,h),o=r.clientX,s=r.clientY;if(o||s){var d=o-t.left,v=s-t.top,m=u.computeAlignment(c,l,{minX:0,minY:0,maxX:t.width,maxY:t.height},n.bounds),g=new u.Mat2D;m.invert(g);var _=new u.Vec2D(d,v),y=u.mapXY(g,_),b=y.x(),w=y.y();switch(y.delete(),g.delete(),_.delete(),m.delete(),e.type){case"mouseout":for(var T=0;T{n.r(t),n.d(t,{BLANK_URL:()=>c,sanitizeUrl:()=>l});var r=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,a=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|:)/gim,u=[".","/"],c="about:blank";function l(e){if(!e)return c;var t=e.replace(a,"").replace(i,function(e,t){return String.fromCharCode(t)}).replace(o,"").replace(a,"").trim();if(!t)return c;if(u.indexOf(t[0])>-1)return t;var n=t.match(s);if(!n)return t;var l=n[0];return r.test(l)?c:t}}],B={};function $(e){var t=B[e];if(void 0!==t)return t.exports;var n=B[e]={exports:{}};return Y[e](n,n.exports,$),n.exports}$.d=(e,t)=>{for(var n in t)$.o(t,n)&&!$.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},$.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var G={};return $.r(G),$.d(G,{Alignment:()=>t,EventType:()=>i,Fit:()=>e,Layout:()=>g,LoopType:()=>o,Rive:()=>A,RiveEventType:()=>r,RiveFile:()=>j,RuntimeLoader:()=>_,StateMachineInput:()=>b,StateMachineInputType:()=>n,Testing:()=>N,decodeAudio:()=>I,decodeFont:()=>F,decodeImage:()=>U}),s=$(1),u=$(2),c=$(3),l=$(5),d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},h=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},f=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},p=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0;)null===(n=e.callBackQueue.shift())||void 0===n||n(e.runtime)}).catch(function(){var t="https://cdn.jsdelivr.net/npm/".concat(u.name,"@").concat(u.version,"/rive_fallback.wasm");e.wasmURL.toLowerCase()!==t?(console.warn("Failed to load WASM from ".concat(e.wasmURL,", trying jsdelivr as a backup")),e.setWasmUrl(t),e.loadRuntime()):console.error("Could not load Rive WASM file from unpkg or jsdelivr, network connection may be down, or you may need to call set a new WASM source via RuntimeLoader.setWasmUrl() and call RuntimeLoader.loadRuntime() again")})},e.getInstance=function(t){e.isLoading||(e.isLoading=!0,e.loadRuntime()),e.runtime?t(e.runtime):e.callBackQueue.push(t)},e.awaitInstance=function(){return new Promise(function(t){return e.getInstance(function(e){return t(e)})})},e.setWasmUrl=function(t){e.wasmURL=t},e.isLoading=!1,e.callBackQueue=[],e.wasmURL="https://unpkg.com/".concat(u.name,"@").concat(u.version,"/rive.wasm"),e}(),(y=n||(n={}))[y.Number=56]="Number",y[y.Trigger=58]="Trigger",y[y.Boolean=59]="Boolean",b=function(){function e(e,t){this.type=e,this.runtimeInput=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(e){this.runtimeInput.value=e},enumerable:!1,configurable:!0}),e.prototype.fire=function(){this.type===n.Trigger&&this.runtimeInput.fire()},e}(),(w=r||(r={}))[w.General=128]="General",w[w.OpenUrl=131]="OpenUrl",T=function(){function e(e,t,n,r){this.stateMachine=e,this.playing=n,this.artboard=r,this.inputs=[],this.instance=new t.StateMachineInstance(e,r),this.initInputs(t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statesChanged",{get:function(){for(var e=[],t=0;t=0||u>=0)s>=0?this.animations[s].playing=t:this.stateMachines[u].playing=t;else{var l=this.artboard.animationByName(e[a]);if(l){var d=new c.Animation(l,this.artboard,this.runtime,t);d.advance(0),d.apply(1),this.animations.push(d)}else{var h=this.artboard.stateMachineByName(e[a]);if(h){var f=new T(h,this.runtime,t,this.artboard);this.stateMachines.push(f)}}}}return n&&(t?this.eventManager.fire({type:i.Play,data:this.playing}):this.eventManager.fire({type:i.Pause,data:this.paused})),t?this.playing:this.paused},e.prototype.initLinearAnimations=function(e,t){for(var n=this.animations.map(function(e){return e.name}),r=0;r=0)this.animations[i].playing=t;else{var o=this.artboard.animationByName(e[r]);if(o){var a=new c.Animation(o,this.artboard,this.runtime,t);a.advance(0),a.apply(1),this.animations.push(a)}}}},e.prototype.initStateMachines=function(e,t){for(var n=this.stateMachines.map(function(e){return e.name}),r=0;r=0)this.stateMachines[i].playing=t;else{var o=this.artboard.stateMachineByName(e[r]);if(o){var a=new T(o,this.runtime,t,this.artboard);this.stateMachines.push(a)}else this.initLinearAnimations([e[r]],t)}}},e.prototype.play=function(e){return this.add(e,!0)},e.prototype.pause=function(e){return this.add(e,!1)},e.prototype.scrub=function(e,t){var n=this.animations.filter(function(t){return e.includes(t.name)});return n.forEach(function(e){return e.scrubTo=t}),n.map(function(e){return e.name})},Object.defineProperty(e.prototype,"playing",{get:function(){return this.animations.filter(function(e){return e.playing}).map(function(e){return e.name}).concat(this.stateMachines.filter(function(e){return e.playing}).map(function(e){return e.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this.animations.filter(function(e){return!e.playing}).map(function(e){return e.name}).concat(this.stateMachines.filter(function(e){return!e.playing}).map(function(e){return e.name}))},enumerable:!1,configurable:!0}),e.prototype.stop=function(e){var t=this;e=L(e);var n=[];if(0===e.length)n=this.animations.map(function(e){return e.name}).concat(this.stateMachines.map(function(e){return e.name})),this.animations.forEach(function(e){return e.cleanup()}),this.stateMachines.forEach(function(e){return e.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var r=this.animations.filter(function(t){return e.includes(t.name)});r.forEach(function(e){e.cleanup(),t.animations.splice(t.animations.indexOf(e),1)});var o=this.stateMachines.filter(function(t){return e.includes(t.name)});o.forEach(function(e){e.cleanup(),t.stateMachines.splice(t.stateMachines.indexOf(e),1)}),n=r.map(function(e){return e.name}).concat(o.map(function(e){return e.name}))}return this.eventManager.fire({type:i.Stop,data:n}),n},Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(e,t){return e||t.playing},!1)||this.stateMachines.reduce(function(e,t){return e||t.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),e.prototype.atLeastOne=function(e,t){var n;return void 0===t&&(t=!0),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?this.add([n=this.artboard.animationByIndex(0).name],e,t):this.artboard.stateMachineCount()>0&&this.add([n=this.artboard.stateMachineByIndex(0).name],e,t)),n},e.prototype.handleLooping=function(){for(var e=0,t=this.animations.filter(function(e){return e.playing});e1&&(this.eventManager.fire({type:i.Loop,data:{animation:n.name,type:o.PingPong}}),n.loopCount=0)}},e.prototype.handleStateChanges=function(){for(var e=[],t=0,n=this.stateMachines.filter(function(e){return e.playing});t0&&this.eventManager.fire({type:i.StateChange,data:e})},e.prototype.handleAdvancing=function(e){this.eventManager.fire({type:i.Advance,data:e})},e}(),(E=i||(i={})).Load="load",E.LoadError="loaderror",E.Play="play",E.Pause="pause",E.Stop="stop",E.Loop="loop",E.Draw="draw",E.Advance="advance",E.StateChange="statechange",E.RiveEvent="riveevent",E.AudioStatusChange="audiostatuschange",(C=o||(o={})).OneShot="oneshot",C.Loop="loop",C.PingPong="pingpong",Z=function(){function e(e){void 0===e&&(e=[]),this.listeners=e}return e.prototype.getListeners=function(e){return this.listeners.filter(function(t){return t.type===e})},e.prototype.add=function(e){this.listeners.includes(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0;t0;){var e=this.queue.shift();(null==e?void 0:e.action)&&e.action(),(null==e?void 0:e.event)&&this.eventManager.fire(e.event)}},e}(),(k=a||(a={}))[k.AVAILABLE=0]="AVAILABLE",k[k.UNAVAILABLE=1]="UNAVAILABLE",R=new(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._started=!1,t._enabled=!1,t._status=a.UNAVAILABLE,t}return h(t,e),t.prototype.delay=function(e){return f(this,void 0,void 0,function(){return p(this,function(t){return[2,new Promise(function(t){return setTimeout(t,e)})]})})},t.prototype.timeout=function(){return f(this,void 0,void 0,function(){return p(this,function(e){return[2,new Promise(function(e,t){return setTimeout(t,50)})]})})},t.prototype.reportToListeners=function(){this.fire({type:i.AudioStatusChange}),this.removeAll()},t.prototype.enableAudio=function(){return f(this,void 0,void 0,function(){return p(this,function(e){return this._enabled||(this._enabled=!0,this._status=a.AVAILABLE,this.reportToListeners()),[2]})})},t.prototype.testAudio=function(){return f(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:if(!(this._status===a.UNAVAILABLE&&null!==this._audioContext))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return e.sent(),this.enableAudio(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})},t.prototype._establishAudio=function(){return f(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:if(this._started)return[3,5];if(this._started=!0,"undefined"!=typeof window)return[3,1];return this.enableAudio(),[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),e.label=2;case 2:if(this._status!==a.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return e.sent(),[4,this.delay(1e3)];case 4:return e.sent(),[3,2];case 5:return[2]}})})},t.prototype.listenForUserAction=function(){var e=this;document.addEventListener("pointerdown",function(){return f(e,void 0,void 0,function(){return p(this,function(e){return this.enableAudio(),[2]})})},{once:!0})},t.prototype.establishAudio=function(){return f(this,void 0,void 0,function(){return p(this,function(e){return this._establishAudio(),[2]})})},Object.defineProperty(t.prototype,"systemVolume",{get:function(){return this._status===a.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),t}(Z)),P=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),O=globalThis.ResizeObserver||P,D=new(function(){function e(){var e=this;this._elementsMap=new Map,this._onObservedEntry=function(t){var n=e._elementsMap.get(t.target);null!==n?n.onResize(0==t.target.clientWidth||0==t.target.clientHeight):e._resizeObserver.unobserve(t.target)},this._onObserved=function(t){t.forEach(e._onObservedEntry)},this._resizeObserver=new O(this._onObserved)}return e.prototype.add=function(e,t){var n={onResize:t,element:e};return this._elementsMap.set(e,n),this._resizeObserver.observe(e),n},e.prototype.remove=function(e){this._resizeObserver.unobserve(e.element),this._elementsMap.delete(e.element)},e}()),j=function(){function e(e){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.src=e.src,this.buffer=e.buffer,e.assetLoader&&(this.assetLoader=e.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new Z,e.onLoad&&this.on(i.Load,e.onLoad),e.onLoadError&&this.on(i.LoadError,e.onLoadError)}return e.prototype.initData=function(){return f(this,void 0,void 0,function(){var t,n,r;return p(this,function(o){switch(o.label){case 0:if(!this.src)return[3,2];return t=this,[4,M(this.src)];case 1:t.buffer=o.sent(),o.label=2;case 2:return this.assetLoader&&(n=new this.runtime.CustomFileAssetLoader({loadContents:this.assetLoader})),r=this,[4,this.runtime.load(new Uint8Array(this.buffer),n,this.enableRiveAssetCDN)];case 3:if(r.file=o.sent(),null!==this.file)this.eventManager.fire({type:i.Load,data:this});else throw this.eventManager.fire({type:i.LoadError,data:null}),Error(e.fileLoadErrorMessage);return[2]}})})},e.prototype.init=function(){return f(this,void 0,void 0,function(){var t;return p(this,function(n){switch(n.label){case 0:if(!this.src&&!this.buffer)throw Error(e.missingErrorMessage);return t=this,[4,_.awaitInstance()];case 1:return t.runtime=n.sent(),[4,this.initData()];case 2:return n.sent(),[2]}})})},e.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},e.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},e.prototype.cleanup=function(){var e;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),null===(e=this.file)||void 0===e||e.delete())},e.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},e.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},e.missingErrorMessage="Rive source file or data buffer required",e.fileLoadErrorMessage="The file failed to load",e}(),A=function(){function e(e){var t,n=this;this.loaded=!1,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._hasZeroSize=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(e){n._hasZeroSize=e,n._layout.maxX&&n._layout.maxY||n.resizeToCanvas()},this.renderSecondTimer=0,this.canvas=e.canvas,e.canvas.constructor===HTMLCanvasElement&&(this._observed=D.add(this.canvas,this.onCanvasResize)),this.src=e.src,this.buffer=e.buffer,this.riveFile=e.riveFile,this.layout=null!==(t=e.layout)&&void 0!==t?t:new g,this.shouldDisableRiveListeners=!!e.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!e.isTouchScrollEnabled,this.automaticallyHandleEvents=!!e.automaticallyHandleEvents,this.enableRiveAssetCDN=void 0===e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new Z,e.onLoad&&this.on(i.Load,e.onLoad),e.onLoadError&&this.on(i.LoadError,e.onLoadError),e.onPlay&&this.on(i.Play,e.onPlay),e.onPause&&this.on(i.Pause,e.onPause),e.onStop&&this.on(i.Stop,e.onStop),e.onLoop&&this.on(i.Loop,e.onLoop),e.onStateChange&&this.on(i.StateChange,e.onStateChange),e.onAdvance&&this.on(i.Advance,e.onAdvance),e.onload&&!e.onLoad&&this.on(i.Load,e.onload),e.onloaderror&&!e.onLoadError&&this.on(i.LoadError,e.onloaderror),e.onplay&&!e.onPlay&&this.on(i.Play,e.onplay),e.onpause&&!e.onPause&&this.on(i.Pause,e.onpause),e.onstop&&!e.onStop&&this.on(i.Stop,e.onstop),e.onloop&&!e.onLoop&&this.on(i.Loop,e.onloop),e.onstatechange&&!e.onStateChange&&this.on(i.StateChange,e.onstatechange),e.assetLoader&&(this.assetLoader=e.assetLoader),this.taskQueue=new x(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:e.autoplay,animations:e.animations,stateMachines:e.stateMachines,artboard:e.artboard,useOffscreenRenderer:e.useOffscreenRenderer})}return e.new=function(t){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new e(t)},e.prototype.onSystemAudioChanged=function(){this.volume=this._volume},e.prototype.init=function(t){var n=this,r=t.src,i=t.buffer,o=t.riveFile,a=t.animations,s=t.stateMachines,u=t.artboard,c=t.autoplay,l=void 0!==c&&c,d=t.useOffscreenRenderer,h=void 0!==d&&d;if(this.src=r,this.buffer=i,this.riveFile=o,!this.src&&!this.buffer&&!this.riveFile)throw Error(e.missingErrorMessage);var f=L(a),p=L(s);this.loaded=!1,this.readyForPlaying=!1,_.awaitInstance().then(function(e){n.runtime=e,n.renderer=n.runtime.makeRenderer(n.canvas,h),n.canvas.width||n.canvas.height||n.resizeDrawingSurfaceToCanvas(),n.initData(u,f,p,l).then(function(){return n.setupRiveListeners()}).catch(function(e){console.error(e)})}).catch(function(e){console.error(e)})},e.prototype.setupRiveListeners=function(e){var t=this;if(!this.shouldDisableRiveListeners){var n=(this.animator.stateMachines||[]).filter(function(e){return e.playing&&t.runtime.hasListeners(e.instance)}).map(function(e){return e.instance}),r=this.isTouchScrollEnabled;e&&"isTouchScrollEnabled"in e&&(r=e.isTouchScrollEnabled),this.eventCleanup=(0,l.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:n,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:r})}},e.prototype.removeRiveListeners=function(){this.eventCleanup&&this.eventCleanup()},e.prototype.initializeAudio=function(){var e,t=this;R.status==a.UNAVAILABLE&&(null===(e=this.artboard)||void 0===e?void 0:e.hasAudio)&&(R.add({type:i.AudioStatusChange,callback:function(){return t.onSystemAudioChanged()}}),R.establishAudio())},e.prototype.initData=function(e,t,n,r){var o;return f(this,void 0,void 0,function(){var a;return p(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),null!=this.riveFile)return[3,2];return this.riveFile=new j({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()];case 1:s.sent(),s.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(e,t,n,r),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:i.Load,data:null!==(o=this.src)&&void 0!==o?o:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()];case 3:return s.sent(),console.warn(a="Problem loading file; may be corrupt!"),this.eventManager.fire({type:i.LoadError,data:a}),[2,Promise.reject(a)];case 4:return[2]}})})},e.prototype.initArtboard=function(e,t,n,r){if(this.file){var o,a=e?this.file.artboardByName(e):this.file.defaultArtboard();if(!a){var s="Invalid artboard name or no default artboard";console.warn(s),this.eventManager.fire({type:i.LoadError,data:s});return}if(this.artboard=a,a.volume=this._volume*R.systemVolume,1>this.artboard.animationCount()){var s="Artboard has no animations";throw this.eventManager.fire({type:i.LoadError,data:s}),s}this.animator=new S(this.runtime,this.artboard,this.eventManager),t.length>0||n.length>0?(o=t.concat(n),this.animator.initLinearAnimations(t,r),this.animator.initStateMachines(n,r)):o=[this.animator.atLeastOne(r,!1)],this.taskQueue.add({event:{type:r?i.Play:i.Pause,data:o}})}},e.prototype.drawFrame=function(){this.startRendering()},e.prototype.draw=function(e,t){this.frameRequestId=null;var n=performance.now();this.lastRenderTime||(this.lastRenderTime=e),this.renderSecondTimer+=e-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,null==t||t());var o=(e-this.lastRenderTime)/1e3;this.lastRenderTime=e;for(var a=this.animator.animations.filter(function(e){return e.playing||e.needsScrub}).sort(function(e){return e.needsScrub?-1:1}),s=0;s{Object.defineProperty(t,"__esModule",{value:!0});var r=n(27378),i=n(38082),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(){return Math.min(Math.max(1,"undefined"!=typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}"function"==typeof SuppressedError&&SuppressedError;var c=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),l=globalThis.ResizeObserver||c,d=void 0!==globalThis.ResizeObserver,h=!d,f={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function p(e){return Object.assign({},f,e)}function v(e){var t,n,i,o,a,s,c,f,v,m,g,_=e.riveLoaded,y=void 0!==_&&_,b=e.canvasElem,w=e.containerRef,T=e.options,S=e.onCanvasHasResized,E=e.artboardBounds,C=p(void 0===T?{}:T),Z=r.useState({height:0,width:0}),x=Z[0],k=x.height,R=x.width,P=Z[1],O=r.useState({height:0,width:0}),D=O[0],j=D.height,A=D.width,M=O[1],L=r.useState(!0),N=L[0],I=L[1],U=C.fitCanvasToArtboardHeight,F=C.shouldResizeCanvasToContainer,Y=C.useDevicePixelRatio,B=C.customDevicePixelRatio,$=(void 0===(t=F)&&(t=!0),i=(n=r.useState({width:0,height:0}))[0],o=n[1],r.useEffect(function(){if("undefined"!=typeof window&&t){var e=function(){o({width:window.innerWidth,height:window.innerHeight})};return h&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}},[]),c=r.useRef(new l((a=function(e){d&&o({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})},s=0,function(){for(var e=this,t=[],n=0;n0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==d||d.startRendering(),t=!1)}};return s&&!1!==m.shouldUseIntersectionObserver&&S(s,function(r){r.isIntersecting?d&&d.startRendering():d&&d.stopRendering(),t=!r.isIntersecting,clearTimeout(e),r.isIntersecting||0!==r.boundingClientRect.width||(e=setTimeout(n,10))}),function(){s&&E(s)}},[S,E,d,s,m.shouldUseIntersectionObserver]),r.useEffect(function(){return function(){d&&(d.cleanup(),h(null))}},[d,s]);var C=null==e?void 0:e.animations;r.useEffect(function(){d&&C&&(d.isPlaying?(d.stop(d.animationNames),d.play(C)):d.isPaused&&(d.stop(d.animationNames),d.pause(C)))},[C,d]);var Z=r.useCallback(function(e){return o.default.createElement(w,a({setContainerRef:y,setCanvasRef:_},e))},[_,y]);return{canvas:s,container:c.current,setCanvasRef:_,setContainerRef:y,rive:d,RiveComponent:Z}}t.default=function(e){var t=e.src,n=e.artboard,r=e.animations,i=e.stateMachines,u=e.layout,c=e.useOffscreenRenderer,l=e.shouldDisableRiveListeners,d=e.shouldResizeCanvasToContainer,h=e.automaticallyHandleEvents,f=e.children,p=s(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),v=T({src:t,artboard:n,animations:r,layout:u,stateMachines:i,autoplay:!0,shouldDisableRiveListeners:void 0!==l&&l,automaticallyHandleEvents:void 0!==h&&h},{useOffscreenRenderer:void 0===c||c,shouldResizeCanvasToContainer:void 0===d||d}).RiveComponent;return o.default.createElement(v,a({},p),f)},t.useResizeCanvas=v,t.useRive=T,t.useRiveFile=function(e){var t=this,n=r.useState(null),o=n[0],a=n[1],s=r.useState("idle"),u=s[0],c=s[1];return r.useEffect(function(){var n,r,o,s=null;return n=void 0,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]{"use strict";/*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},o=e.split(i),a=(t||{}).decode||n,s=0;s{"use strict";var r=n(93185),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l,d,h=!1;t||(t={}),a=t.debug||!1;try{if(u=r(),c=document.createRange(),l=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),l.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(r){a&&console.error("unable to copy using execCommand: ",r),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(r){a&&console.error("unable to copy using clipboardData: ",r),a&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),d&&document.body.removeChild(d),u()}return h}},50343:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){var i;function o(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,a,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&v(e,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,c=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var c=u.length,l=p(u,c),n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},66471:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},7065:(e,t,n)=>{"use strict";n.d(t,{Ck:()=>p,Np:()=>D,_R:()=>T,bP:()=>g,i8:()=>x});var r=n(25773),i=n(30808),o=/\\(\\)?/g,a=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),s=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,r,i){var a=e;r?a=i.replace(o,"$1"):n&&(a=n.trim()),t.push(a)}),t},u={},c=function(e){if(null==e||!e.length)return[];if("string"!=typeof e)throw Error("toPath() expects a string");return null==u[e]&&(u[e]=s(e)),u[e]},l=function(e,t){for(var n=c(t),r=e,i=0;i=o.length)return a;var u=o[n];if(isNaN(u)){if(null==t){var c,l,h=e(void 0,n+1,o,a,s);return void 0===h?void 0:((l={})[u]=h,l)}if(Array.isArray(t))throw Error("Cannot set a non-numeric property on an array");var f=e(t[u],n+1,o,a,s);if(void 0===f){var p=Object.keys(t).length;return void 0===t[u]&&0===p?void 0:void 0!==t[u]&&p<=1?isNaN(o[n-1])||s?void 0:{}:(t[u],(0,i.Z)(t,[u].map(d)))}return(0,r.Z)({},t,((c={})[u]=f,c))}var v=Number(u);if(null==t){var m=e(void 0,n+1,o,a,s);if(void 0===m)return;var g=[];return g[v]=m,g}if(!Array.isArray(t))throw Error("Cannot set a numeric property on an object");var _=e(t[v],n+1,o,a,s),y=[].concat(t);if(s&&void 0===_){if(y.splice(v,1),0===y.length)return}else y[v]=_;return y},f=function(e,t,n,r){if(void 0===r&&(r=!1),null==e)throw Error("Cannot call setIn() with "+String(e)+" state");if(null==t)throw Error("Cannot call setIn() with "+String(t)+" key");return h(e,0,c(t),n,r)},p="FINAL_FORM/form-error",v="FINAL_FORM/array-error";function m(e,t){var n=e.errors,r=e.initialValues,i=e.lastSubmittedValues,o=e.submitErrors,a=e.submitFailed,s=e.submitSucceeded,u=e.submitting,c=e.values,d=t.active,h=t.blur,f=t.change,p=t.data,m=t.focus,g=t.modified,_=t.modifiedSinceLastSubmit,y=t.name,b=t.touched,w=t.validating,T=t.visited,S=l(c,y),E=l(n,y);E&&E[v]&&(E=E[v]);var C=o&&l(o,y),Z=r&&l(r,y),x=t.isEqual(Z,S),k=!!(i&&!t.isEqual(l(i,y),S)),R=!E&&!C;return{active:d,blur:h,change:f,data:p,dirty:!x,dirtySinceLastSubmit:k,error:E,focus:m,initial:Z,invalid:!R,length:Array.isArray(S)?S.length:void 0,modified:g,modifiedSinceLastSubmit:_,name:y,pristine:x,submitError:C,submitFailed:a,submitSucceeded:s,submitting:u,touched:b,valid:R,value:S,visited:T,validating:w}}var g=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],_=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o0,C=++T,Z=Promise.all(w).then(function(e){return delete S[C],e});E&&(S[C]=Z);var x=function(){var e=(0,r.Z)({},s?i.errors:{},m),t=function(t){a.forEach(function(r){if(n[r]){var i=l(m,r),a=l(e,r),c=L(o[r]).length,d=b[r];t(r,c&&d||u&&i||(i||s?void 0:a))}})};t(function(t,n){e=f(e,t,n)||{}}),t(function(t,n){if(n&&n[v]){var r=[].concat(l(e,t));r[v]=n[v],e=f(e,t,r)}}),_(i.errors,e)||(i.errors=e),i.error=m[p]};if(E&&(d.formState.validating++,t()),x(),t(),E){var k=function(){d.formState.validating--,t()};Z.then(function(){T>C||x()}).then(k,k)}},U=function(e){if(!h){var t=d.fields,n=d.fieldSubscribers,i=d.formState,o=(0,r.Z)({},t),a=function(e){var t=o[e],r=m(i,t),a=t.lastFieldState;t.lastFieldState=r;var s=n[e];s&&O(s,r,a,w,void 0===a)};e?a(e):Object.keys(o).forEach(a)}},F=function(){Object.keys(d.fields).forEach(function(e){d.fields[e].touched=!0})},Y=function(){var e,t,n,i,o,a,s,u,c,h,f,p,v,m,g,y=d.fields,b=d.formState,w=d.lastFormState,T=(0,r.Z)({},y),S=Object.keys(T),E=!1,C=S.reduce(function(e,t){return T[t].isEqual(l(b.values,t),l(b.initialValues||{},t))||(E=!0,e[t]=!0),e},{}),Z=S.reduce(function(e,t){var n=b.lastSubmittedValues||{};return T[t].isEqual(l(b.values,t),l(n,t))||(e[t]=!0),e},{});b.pristine=!E,b.dirtySinceLastSubmit=!!(b.lastSubmittedValues&&Object.values(Z).some(function(e){return e})),b.modifiedSinceLastSubmit=!!(b.lastSubmittedValues&&Object.keys(T).some(function(e){return T[e].modifiedSinceLastSubmit})),b.valid=!b.error&&!b.submitError&&!R(b.errors)&&!(b.submitErrors&&R(b.submitErrors));var x=(e=b.active,t=b.dirtySinceLastSubmit,n=b.modifiedSinceLastSubmit,i=b.error,o=b.errors,a=b.initialValues,s=b.pristine,u=b.submitting,c=b.submitFailed,h=b.submitSucceeded,f=b.submitError,p=b.submitErrors,v=b.valid,m=b.validating,g=b.values,{active:e,dirty:!s,dirtySinceLastSubmit:t,modifiedSinceLastSubmit:n,error:i,errors:o,hasSubmitErrors:!!(f||p&&R(p)),hasValidationErrors:!!(i||R(o)),invalid:!v,initialValues:a,pristine:s,submitting:u,submitFailed:c,submitSucceeded:h,submitError:f,submitErrors:p,valid:v,validating:m>0,values:g}),k=S.reduce(function(e,t){return e.modified[t]=T[t].modified,e.touched[t]=T[t].touched,e.visited[t]=T[t].visited,e},{modified:{},touched:{},visited:{}}),P=k.modified,O=k.touched,D=k.visited;return x.dirtyFields=w&&_(w.dirtyFields,C)?w.dirtyFields:C,x.dirtyFieldsSinceLastSubmit=w&&_(w.dirtyFieldsSinceLastSubmit,Z)?w.dirtyFieldsSinceLastSubmit:Z,x.modified=w&&_(w.modified,P)?w.modified:P,x.touched=w&&_(w.touched,O)?w.touched:O,x.visited=w&&_(w.visited,D)?w.visited:D,w&&_(w,x)?w:x},B=!1,$=!1,G=function e(){if(B)$=!0;else{if(B=!0,t&&t(Y(),Object.keys(d.fields).reduce(function(e,t){return e[t]=d.fields[t],e},{})),!h&&!(g&&b)){var n=d.lastFormState,r=Y();r!==n&&(d.lastFormState=r,O(d.subscribers,r,n,E))}B=!1,$&&($=!1,e())}},z=function(){return Object.keys(d.fields).forEach(function(e){return d.fields[e].modifiedSinceLastSubmit=!1})};I(void 0,function(){G()});var W={batch:function(e){h++,e(),h--,U(),G()},blur:function(e){var t=d.fields,n=d.formState,i=t[e];i&&(delete n.active,t[e]=(0,r.Z)({},i,{active:!1,touched:!0}),c?I(e,function(){U(),G()}):(U(),G()))},change:function(e,t){var n=d.fields,i=d.formState;if(l(i.values,e)!==t){x(d,e,function(){return t});var o=n[e];o&&(n[e]=(0,r.Z)({},o,{modified:!0,modifiedSinceLastSubmit:!!i.lastSubmittedValues})),c?(U(),G()):I(e,function(){U(),G()})}},get destroyOnUnregister(){return!!n},set destroyOnUnregister(value){n=value},focus:function(e){var t=d.fields[e];t&&!t.active&&(d.formState.active=e,t.active=!0,t.visited=!0,U(),G())},mutators:A,getFieldState:function(e){var t=d.fields[e];return t&&t.lastFieldState},getRegisteredFields:function(){return Object.keys(d.fields)},getState:function(){return Y()},initialize:function(e){var t=d.fields,n=d.formState,o=(0,r.Z)({},t),a="function"==typeof e?e(n.values):e;i||(n.values=a);var s=i?Object.keys(o).reduce(function(e,t){return o[t].isEqual(l(n.values,t),l(n.initialValues||{},t))||(e[t]=l(n.values,t)),e},{}):{};n.initialValues=a,n.values=a,Object.keys(s).forEach(function(e){n.values=f(n.values,e,s[e])}),I(void 0,function(){U(),G()})},isValidationPaused:function(){return g},pauseValidation:function(e){void 0===e&&(e=!0),g=!0,b=e},registerField:function(e,t,r,i){void 0===r&&(r={}),d.fieldSubscribers[e]||(d.fieldSubscribers[e]={index:0,entries:{}});var o=d.fieldSubscribers[e].index++;d.fieldSubscribers[e].entries[o]={subscriber:C(t),subscription:r,notified:!1},d.fields[e]||(d.fields[e]={active:!1,afterSubmit:i&&i.afterSubmit,beforeSubmit:i&&i.beforeSubmit,blur:function(){return W.blur(e)},change:function(t){return W.change(e,t)},data:i&&i.data||{},focus:function(){return W.focus(e)},isEqual:i&&i.isEqual||k,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,touched:!1,valid:!0,validateFields:i&&i.validateFields,validators:{},validating:!1,visited:!1});var a=!1,s=i&&i.silent,u=function(){s?U(e):(G(),U())};if(i){a=!!(i.getValidator&&i.getValidator()),i.getValidator&&(d.fields[e].validators[o]=i.getValidator);var c=void 0===l(d.formState.values,e);void 0!==i.initialValue&&(c||l(d.formState.values,e)===l(d.formState.initialValues,e))&&(d.formState.initialValues=f(d.formState.initialValues||{},e,i.initialValue),d.formState.values=f(d.formState.values,e,i.initialValue),I(void 0,u)),void 0!==i.defaultValue&&void 0===i.initialValue&&void 0===l(d.formState.initialValues,e)&&c&&(d.formState.values=f(d.formState.values,e,i.defaultValue))}return a?I(void 0,u):u(),function(){var t=!1;d.fields[e]&&(t=!!(d.fields[e].validators[o]&&d.fields[e].validators[o]()),delete d.fields[e].validators[o]);var r=!!d.fieldSubscribers[e];r&&delete d.fieldSubscribers[e].entries[o];var i=r&&!Object.keys(d.fieldSubscribers[e].entries).length;i&&(delete d.fieldSubscribers[e],delete d.fields[e],t&&(d.formState.errors=f(d.formState.errors,e,void 0)||{}),n&&(d.formState.values=f(d.formState.values,e,void 0,!0)||{})),!s&&(t?I(void 0,function(){G(),U()}):i&&G())}},reset:function(e){void 0===e&&(e=d.formState.initialValues),d.formState.submitting&&(d.formState.resetWhileSubmitting=!0),d.formState.submitFailed=!1,d.formState.submitSucceeded=!1,delete d.formState.submitError,delete d.formState.submitErrors,delete d.formState.lastSubmittedValues,W.initialize(e||{})},resetFieldState:function(e){d.fields[e]=(0,r.Z)({},d.fields[e],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),I(void 0,function(){U(),G()})},restart:function(e){void 0===e&&(e=d.formState.initialValues),W.batch(function(){for(var t in d.fields)W.resetFieldState(t),d.fields[t]=(0,r.Z)({},d.fields[t],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});W.reset(e)})},resumeValidation:function(){g=!1,b=!1,y&&I(void 0,function(){U(),G()}),y=!1},setConfig:function(e,r){switch(e){case"debug":t=r;break;case"destroyOnUnregister":n=r;break;case"initialValues":W.initialize(r);break;case"keepDirtyOnReinitialize":i=r;break;case"mutators":a=r,r?(Object.keys(A).forEach(function(e){e in r||delete A[e]}),Object.keys(r).forEach(function(e){A[e]=j(e)})):Object.keys(A).forEach(function(e){delete A[e]});break;case"onSubmit":s=r;break;case"validate":u=r,I(void 0,function(){U(),G()});break;case"validateOnBlur":c=r;break;default:throw Error("Unrecognised option "+e)}},submit:function(){var e,t=d.formState;if(!t.submitting){if(delete t.submitErrors,delete t.submitError,t.lastSubmittedValues=(0,r.Z)({},t.values),d.formState.error||R(d.formState.errors)){F(),z(),d.formState.submitFailed=!0,G(),U();return}var n=Object.keys(S);if(n.length){Promise.all(n.map(function(e){return S[Number(e)]})).then(W.submit,console.error);return}if(!Object.keys(d.fields).some(function(e){return d.fields[e].beforeSubmit&&!1===d.fields[e].beforeSubmit()})){var i=!1,o=function(n){t.submitting=!1;var r=t.resetWhileSubmitting;return r&&(t.resetWhileSubmitting=!1),n&&R(n)?(t.submitFailed=!0,t.submitSucceeded=!1,t.submitErrors=n,t.submitError=n[p],F()):(r||(t.submitFailed=!1,t.submitSucceeded=!0),Object.keys(d.fields).forEach(function(e){return d.fields[e].afterSubmit&&d.fields[e].afterSubmit()})),G(),U(),i=!0,e&&e(n),n};t.submitting=!0,t.submitFailed=!1,t.submitSucceeded=!1,t.lastSubmittedValues=(0,r.Z)({},t.values),z();var a=s(t.values,W,o);if(!i){if(a&&Z(a))return G(),U(),a.then(o,function(e){throw o(),e});if(s.length>=3)return G(),U(),new Promise(function(t){e=t});o(a)}}}},subscribe:function(e,t){if(!e)throw Error("No callback given.");if(!t)throw Error("No subscription provided. What values do you want to listen to?");var n=C(e),r=d.subscribers,i=r.index++;r.entries[i]={subscriber:n,subscription:t,notified:!1};var o=Y();return P(n,t,o,o,E,!0),function(){delete r.entries[i]}}};return W}},92534:(e,t,n)=>{"use strict";n.d(t,{lX:()=>E,q_:()=>P,ob:()=>m,PP:()=>D,Ep:()=>v,Hp:()=>g,cP:()=>p});var r=n(25773);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;h--){var f=a[h];"."===f?o(a,h):".."===f?(o(a,h),d++):d&&(o(a,h),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}let u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1};var c=n(92215);function l(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return -1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function v(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"==typeof e?(o=p(e)).state=t:(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){if(e instanceof URIError)throw URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function _(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),l({action:r,location:i,index:t,entries:n})}})},replace:function(e,t){var r="REPLACE",i=m(e,t,d(),g.location);c.confirmTransitionTo(i,r,n,function(e){e&&(g.entries[g.index]=i,l({action:r,location:i}))})},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=g.index+e;return t>=0&&t{"use strict";var r=n(12097),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),v=u(n),m=0;m{"use strict";var r=n(90331);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},23615:(e,t,n)=>{e.exports=n(58772)()},90331:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},73323:(e,t)=>{"use strict";/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function n(e,t){var n=e.length;for(e.push(t);0>>1,i=e[r];if(0>>1;ro(u,n))co(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else if(co(l,n))e[r]=l,e[c]=n,r=c;else break}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a,s=performance;t.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}var l=[],d=[],h=1,f=null,p=3,v=!1,m=!1,g=!1,_="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(d);null!==t;){if(null===t.callback)i(d);else if(t.startTime<=e)i(d),t.sortIndex=t.expirationTime,n(l,t);else break;t=r(d)}}function T(e){if(g=!1,w(e),!m){if(null!==r(l))m=!0,j(S);else{var t=r(d);null!==t&&A(T,t.startTime-e)}}}function S(e,n){m=!1,g&&(g=!1,y(Z),Z=-1),v=!0;var o=p;try{for(w(n),f=r(l);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(l)&&i(l),w(n)}else i(l);f=r(l)}if(null!==f)var u=!0;else{var c=r(d);null!==c&&A(T,c.startTime-n),u=!1}return u}finally{f=null,p=o,v=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,C=null,Z=-1,x=5,k=-1;function R(){return!(t.unstable_now()-ke||125a?(e.sortIndex=o,n(d,e),null===r(l)&&e===r(d)&&(g?(y(Z),Z=-1):g=!0,A(T,o-a))):(e.sortIndex=s,n(l,e),m||v||(m=!0,j(S))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},91102:(e,t,n)=>{"use strict";e.exports=n(73323)},30754:e=>{!/*! * screenfull * v5.2.0 - 2021-11-03 * (c) Sindre Sorhus; MIT License */function(){"use strict";var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r{"use strict";let t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},t.splitSections=function(e){return e.split("\nm=").map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},t.getDescription=function(e){let n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){let n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter(e=>0===e.indexOf(n))},t.parseCandidate=function(e){let t;let n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){let t;let n={},r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){let t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},t.parseSsrcMedia=function(e){let t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},t.parseSsrcGroup=function(e){let t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},t.getMid=function(e){let n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substring(6)},t.parseFingerprint=function(e){let t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},t.parseCryptoLine=function(e){let t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;let t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){let r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],i=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){let n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" ");n.profile=r[2];for(let i=3;i{n.headerExtensions.push(t.parseExtmap(e))});let i=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return n.codecs.forEach(e=>{i.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" "+(n.codecs.length>0?"9":"0")+" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" "+n.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach(e=>{r+=t.writeRtpMap(e)+t.writeFmtp(e)+t.writeRtcpFb(e)});let i=0;return n.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(r+="a=maxptime:"+i+"\r\n"),n.headerExtensions&&n.headerExtensions.forEach(e=>{r+=t.writeExtmap(e)}),r},t.parseRtpEncodingParameters=function(e){let n;let r=[],i=t.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),u=s.length>0&&s[0].ssrc,c=t.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));c.length>0&&c[0].length>1&&c[0][0]===u&&(n=c[0][1]),i.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:u,codecPayloadType:parseInt(e.parameters.apt,10)};u&&n&&(t.rtx={ssrc:n}),r.push(t),o&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:u,mechanism:a?"red+ulpfec":"red"},r.push(t))}}),0===r.length&&u&&r.push({ssrc:u});let l=t.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substring(7),10):0===l[0].indexOf("b=AS:")?950*parseInt(l[0].substring(5),10)-16e3:void 0,r.forEach(e=>{e.maxBitrate=l})),r},t.parseRtcpParameters=function(e){let n={},r=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);let i=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=i.length>0,n.compound=0===i.length;let o=t.matchPrefix(e,"a=rtcp-mux");return n.mux=o.length>0,n},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let n;let r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substring(7).split(" "))[0],track:n[1]};let i=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);if(i.length>0)return{stream:(n=i[0].value.split(" "))[0],track:n[1]}},t.parseSctpDescription=function(e){let n;let r=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(n=parseInt(i[0].substring(19),10)),isNaN(n)&&(n=65536);let o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:r.fmt,maxMessageSize:n};let a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){let e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:n}}},t.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,n,r){return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+(void 0!==n?n:2)+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,n){let r=t.splitLines(e);for(let e=0;e{"use strict";n.d(t,{$e:()=>s,Tb:()=>i,Yr:()=>u,e:()=>a,uT:()=>o});var r=n(25084);function i(e,t){return(0,r.Gd)().captureException(e,{captureContext:t})}function o(e,t){var n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,r.Gd)().captureMessage(e,n,i)}function a(e){(0,r.Gd)().configureScope(e)}function s(e){(0,r.Gd)().withScope(e)}function u(e,t){return(0,r.Gd)().startTransaction({...e},t)}},25084:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>f,cu:()=>d});var r=n(22793),i=n(87661),o=n(67823),a=n(30221),s=n(59614),u=n(59260),c=n(32743);class l{__init(){this._stack=[{}]}isOlderThan(e){return this._version{r.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},o)}),n}captureMessage(e,t,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=Error(e);return this._withClient((r,a)=>{r.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},a)}),i}captureEvent(e,t){var n=t&&t.event_id?t.event_id:(0,r.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!n||!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:s=100}=r.getOptions&&r.getOptions()||{};if(!(s<=0)){var u={timestamp:(0,i.yW)(),...e},c=a?(0,o.Cf)(()=>a(u,t)):u;null!==c&&n.addBreadcrumb(c,s)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=h(this);try{e(this)}finally{h(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,c.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{},{userAgent:o}=(0,a.R)().navigator||{};var s=(0,c.Hv)({release:r,environment:i,...t&&{user:t.getUser()},...o&&{userAgent:o},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&(0,c.CT)(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=d().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}constructor(e,t=new u.s,n=4){this._version=n,l.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}}function d(){var e=(0,a.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function h(e){var t=d(),n=v(t);return m(t,e),n}function f(){var e=d();return((!p(e)||v(e).isOlderThan(4))&&m(e,new l),(0,s.KV)())?function(e){try{var t=d().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return v(e);if(!p(n)||v(n).isOlderThan(4)){var r=v(e).getStackTop();m(n,new l(r.client,u.s.clone(r.scope)))}return v(n)}catch(t){return v(e)}}(e):v(e)}function p(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function v(e){return(0,a.Y)("hub",()=>new l,e)}function m(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},59260:(e,t,n)=>{"use strict";n.d(t,{c:()=>d,s:()=>c});var r=n(65768),i=n(87661),o=n(85436),a=n(67823),s=n(30221),u=n(32743);class c{__init(){this._notifyingListeners=!1}__init2(){this._scopeListeners=[]}__init3(){this._eventProcessors=[]}__init4(){this._breadcrumbs=[]}__init5(){this._user={}}__init6(){this._tags={}}__init7(){this._extra={}}__init8(){this._contexts={}}__init9(){this._attachments=[]}__init10(){this._sdkProcessingMetadata={}}static clone(e){var t=new c;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,u.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof c?t:this}return e instanceof c?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors([...l(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new o.cW((o,s)=>{var u=e[i];if(null===t||"function"!=typeof u)o(t);else{var c=u({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&a.kg.log(`Event processor "${u.id}" dropped event`),(0,r.J8)(c)?c.then(t=>this._notifyEventProcessors(e,t,n,i+1).then(o)).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(o).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}constructor(){c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),c.prototype.__init7.call(this),c.prototype.__init8.call(this),c.prototype.__init9.call(this),c.prototype.__init10.call(this)}}function l(){return(0,s.Y)("globalEventProcessors",()=>[])}function d(e){l().push(e)}},32743:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>u});var r=n(87661),i=n(22793),o=n(83931);function a(e){var t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&s(n,e),n}function s(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},17768:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(67823);class i{static __initStatic(){this.id="Dedupe"}__init(){this.name=i.id}setupOnce(e,t){var n=e=>{var n,u,c,l,d,h=t().getIntegration(i);if(h){try{if((n=h._previousEvent)&&(u=e.message,c=n.message,(u||c)&&(!u||c)&&(u||!c)&&u===c&&a(e,n)&&o(e,n)||(l=s(n),d=s(e),l&&d&&l.type===d.type&&l.value===d.value&&a(e,n)&&o(e,n))))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return h._previousEvent=e}return e};n.id=this.name,e(n)}constructor(){i.prototype.__init.call(this)}}function o(e,t){let n=u(e),r=u(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e{"use strict";n.d(t,{S:()=>s});var r=n(65768),i=n(81613),o=n(83931),a=n(67823);class s{static __initStatic(){this.id="ExtraErrorData"}__init(){this.name=s.id}setupOnce(e,t){e((e,n)=>{var r=t().getIntegration(s);return r?r.enhanceEventWithErrorData(e,n):e})}enhanceEventWithErrorData(e,t={}){if(!t.originalException||!(0,r.VZ)(t.originalException))return e;var n=t.originalException.name||t.originalException.constructor.name,a=this._extractErrorData(t.originalException);if(a){var s={...e.contexts},u=(0,i.Fv)(a,this._options.depth);return(0,r.PO)(u)&&((0,o.xp)(u,"__sentry_skip_normalization__",!0),s[n]=u),{...e,contexts:s}}return e}_extractErrorData(e){try{var t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(var i of Object.keys(e))if(-1===t.indexOf(i)){var o=e[i];n[i]=(0,r.VZ)(o)?o.toString():o}if("function"==typeof e.toJSON){var s=e.toJSON();for(var i of Object.keys(s)){var o=s[i];n[i]=(0,r.VZ)(o)?o.toString():o}}return n}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Unable to extract extra data from the Error object:",e)}return null}constructor(e){s.prototype.__init.call(this),this._options={depth:3,...e}}}s.__initStatic()},11107:(e,t,n)=>{"use strict";let r,i;n.d(t,{S:()=>e$});var o="7.1.1",a=n(67823),s=n(22793),u=n(43530),c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class l{static __initStatic(){this.id="InboundFilters"}__init(){this.name=l.id}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(l);if(r){var i,o,h=n.getClient(),f=h?h.getOptions():{};return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...c],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,f)).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`Event dropped due to being internal Sentry Error. Event: ${(0,s.jH)(e)}`),0):(o=i.ignoreErrors)&&o.length&&(function(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error(`Cannot extract message for event ${(0,s.jH)(e)}`)}return[]})(e).some(e=>o.some(t=>(0,u.zC)(e,t)))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${(0,s.jH)(e)}`),0):!function(e,t){if(!t||!t.length)return!1;var n=d(e);return!!n&&t.some(e=>(0,u.zC)(n,e))}(e,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;var n=d(e);return!n||t.some(e=>(0,u.zC)(n,e))}(e,i.allowUrls)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${(0,s.jH)(e)}. Url: ${d(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${(0,s.jH)(e)}. Url: ${d(e)}`),0))?e:null}}return e};n.id=this.name,e(n)}constructor(e={}){this._options=e,l.prototype.__init.call(this)}}function d(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&""!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error(`Cannot extract url for event ${(0,s.jH)(e)}`),null}}l.__initStatic();var h=n(83931);class f{static __initStatic(){this.id="FunctionToString"}__init(){this.name=f.id}setupOnce(){r=Function.prototype.toString,Function.prototype.toString=function(...e){var t=(0,h.HK)(this)||this;return r.apply(t,e)}}constructor(){f.prototype.__init.call(this)}}f.__initStatic();var p=n(59260),v=n(25084),m=[];function g(e){return e.reduce((e,t)=>(e.every(e=>t.name!==e.name)&&e.push(t),e),[])}var _=n(30221),y=n(21348),b=n(79546),w=n(46406),T=n(32743),S=n(65768),E=n(85436);function C(e,t=[]){return[e,t]}function Z(e,t){e[1].forEach(e=>{var n=e[0].type;t(e,n)})}function x(e,t){return(t||new TextEncoder).encode(e)}function k(e,t){let[n,r]=e,i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[x(i,t),e]:i.push("string"==typeof e?x(e,t):e)}for(var a of r){let[e,t]=a;o(` ${JSON.stringify(e)} `),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));let n=0;for(var r of e)t.set(r,n),n+=r.length;return t}(i)}var R={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"},P=n(87661),O=n(81613);class D extends Error{constructor(e){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function A(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function M(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function L(e,t){var n,r;return t||`${n=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"",`${n}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${(0,h._j)({sentry_key:e.publicKey,sentry_version:"7"})}`}function N(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}var I="Not capturing exception because it's already been captured.";class U{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}captureException(e,t,n){if((0,s.YO)(e)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(I);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=(0,S.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,s.YO)(t.originalException)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(I);return}let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){if(!this._isEnabled()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("SDK not enabled, will not capture session.");return}"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,T.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):(0,E.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}setupIntegrations(){if(this._isEnabled()&&!this._integrationsInitialized){var e,t;this._integrations=(e=this._options.integrations,t={},e.forEach(e=>{t[e.name]=e,-1===m.indexOf(e.name)&&(e.setupOnce(p.c,v.Gd),m.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`Integration installed: ${e.name}`))}),t),this._integrationsInitialized=!0}}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i,o=N(n),a=e.type||"event";let{transactionSampling:s}=e.sdkProcessingMetadata||{},{method:u,rate:c}=s||{};return(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,C({event_id:e.event_id,sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&{dsn:A(t)},..."transaction"===e.type&&e.contexts&&e.contexts.trace&&{trace:(0,h.Jr)({trace_id:e.contexts.trace.trace_id,environment:e.environment,release:e.release,transaction:e.transaction,user:e.user&&{id:e.user.id,segment:e.user.segment},public_key:t.publicKey})}},[[{type:a,sample_rates:[{id:u,rate:c}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=function(e,t){let[n,r]=e;return[n,[...r,t]]}(r,function(e,t){var n="string"==typeof e.data?x(e.data,t):e.data;return[(0,h.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(n,function(e){let t;let n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}([this,"access",e=>e._options,"access",e=>e.transportOptions,"optionalAccess",e=>e.textEncoder])));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t,n,r,i,o=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=N(n),C({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:A(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]]));this._sendEnvelope(o)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,T.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new E.cW(t=>{let n=0;var r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){let{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||(0,s.DM)(),timestamp:e.timestamp||(0,P.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=p.s.clone(a).update(t.captureContext));let u=(0,E.WD)(o);if(a){var c=[...t.attachments||[],...a.getAttachments()];c.length&&(t.attachments=c),u=a.applyToEvent(o,t)}return u.then(e=>(e&&(e.sdkProcessingMetadata={...e.sdkProcessingMetadata,normalizeDepth:`${(0,O.Fv)(r)} (${typeof r})`}),"number"==typeof r&&r>0)?this._normalizeEvent(e,r,i):e)}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,O.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,O.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,O.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,O.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&(r.contexts={},r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,O.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=(0,O.Fv)(e.data,t,n)),e))),r.sdkProcessingMetadata={...r.sdkProcessingMetadata,baseClientNormalized:!0},r}_applyClientOptions(e){var t=this.getOptions();let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,u.$G)(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,u.$G)(a.value,o));var s=e.request;s&&s.url&&(s.url=(0,u.$G)(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(e)})}_processEvent(e,t,n){let{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return(0,E.$2)(new D("SDK not enabled, will not capture event."));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),(0,E.$2)(new D(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new D("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,S.J8)(e))return e.then(e=>{if(!((0,S.PO)(e)||null===e))throw new D(t);return e},e=>{throw new D(`beforeSend rejected with ${e}`)});if(!((0,S.PO)(e)||null===e))throw new D(t);return e}(r(n,t))}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new D("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof D)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new D(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`)})}_process(e){this._numProcessing+=1,e.then(e=>(this._numProcessing-=1,e),e=>(this._numProcessing-=1,e))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Error while sending event:",e)}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}constructor(e){if(U.prototype.__init.call(this),U.prototype.__init2.call(this),U.prototype.__init3.call(this),U.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=function(e){var t="string"==typeof e?function(e){var t=j.exec(e);if(!t)throw new D(`Invalid Sentry Dsn: ${e}`);let[n,r,i="",o,a="",s]=t.slice(1),u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var d=c.match(/^\d+/);d&&(c=d[0])}return M({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):M(e);return!function(e){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return;let{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(t=>{if(!e[t])throw new D(`Invalid Sentry Dsn: ${t} missing`)}),!n.match(/^\d+$/))throw new D(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!("http"===r||"https"===r))throw new D(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new D(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}(e.dsn);var t=L(this._dsn,e.tunnel);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("No DSN provided, client will not do anything.")}}function F(e,t){var n,r=B(e,t),i={type:t&&t.name,value:(n=t&&t.message)?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"};return r.length&&(i.stacktrace={frames:r}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Y(e,t){return{exception:{values:[F(e,t)]}}}function B(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if($.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var $=/Minified React error #\d+;/i;function G(e,t,n,r,i){let o;if((0,S.VW)(t)&&t.error)return Y(e,t.error);if((0,S.TX)(t)||(0,S.fm)(t)){if("stack"in t)o=Y(e,t);else{var a=t.name||((0,S.TX)(t)?"DOMError":"DOMException"),u=t.message?`${a}: ${t.message}`:a;o=z(e,u,n,r),(0,s.Db)(o,u)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,S.VZ)(t)?Y(e,t):((0,S.PO)(t)||(0,S.cO)(t)?o=function(e,t,n,r){var i={exception:{values:[{type:(0,S.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,h.zf)(t)}`}]},extra:{__serialized__:(0,O.Qy)(t)}};if(n){var o=B(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i):(o=z(e,t,n,r),(0,s.Db)(o,`${t}`,void 0)),(0,s.EG)(o,{synthetic:!0}),o)}function z(e,t,n,r){var i={message:t};if(r&&n){var o=B(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}var W=n(78175),H=["fatal","error","warning","log","info","debug"],q="Breadcrumbs";class V{static __initStatic(){this.id=q}__init(){this.name=V.id}setupOnce(){var e;this.options.console&&(0,w.o)("console",X),this.options.dom&&(0,w.o)("dom",(e=this.options.dom,function(t){let n;let r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?(0,W.R)(t.event.target,r):(0,W.R)(t.event,r)}catch(e){n=""}0!==n.length&&(0,v.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,w.o)("xhr",J),this.options.fetch&&(0,w.o)("fetch",K),this.options.history&&(0,w.o)("history",Q)}constructor(e){V.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}}function X(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":H.includes(t)?t:"log",message:(0,u.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,u.nK)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,v.Gd)().addBreadcrumb(n,{input:e.args,level:e.level})}function J(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;let{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};(0,v.Gd)().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i});return}}function K(e){!e.endTimestamp||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,v.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,v.Gd)().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response}))}function Q(e){var t=(0,_.R)();let n=e.from,r=e.to;var i=(0,s.en)(t.location.href);let o=(0,s.en)(n);var a=(0,s.en)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,v.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}V.__initStatic();var ee=(0,_.R)();function et(){if(i)return i;if((0,b.Du)(ee.fetch))return i=ee.fetch.bind(ee);var e=ee.document;let t=ee.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return i=t.bind(ee)}var en=(0,_.R)();class er extends U{eventFromException(e,t){var n,r,i;return n=this._options.stackParser,r=this._options.attachStacktrace,i=G(n,e,t&&t.syntheticException||void 0,r),(0,s.EG)(i),i.level="error",t&&t.event_id&&(i.event_id=t.event_id),(0,E.WD)(i)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=z(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,E.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(q);n&&n.options&&n.options.sentry&&(0,v.Gd)().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,s.jH)(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e,t,n=this._clearOutcomes();if(0===n.length){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("No outcomes to send");return}if(!this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("No dsn provided, will not send outcomes");return}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("Sending outcomes:",n);var r=L(this._dsn,this._options.tunnel),i=C((e=this._options.tunnel&&A(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,P.yW)(),discarded_events:n}]]);try{t=k(i),"[object Navigator]"===Object.prototype.toString.call(ee&&ee.navigator)&&"function"==typeof ee.navigator.sendBeacon?ee.navigator.sendBeacon.bind(ee.navigator)(r,t):(0,b.Ak)()&&et()(r,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error(e)})}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error(e)}}constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:o}],version:o},super(e),e.sendClientReports&&en.document&&en.document.addEventListener("visibilitychange",()=>{"hidden"===en.document.visibilityState&&this._flushOutcomes()})}}function ei(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var eo=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ea=/\((\S*)(?::(\d+))(?::(\d+))\)/,es=[30,e=>{var t=eo.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=ea.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}let[e,r]=ep(t[1]||"?",t[2]);return ei(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],eu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ec=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,el=[50,e=>{var t=eu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=ec.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=ep(r,e),ei(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],ed=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eh=[40,e=>{var t=ed.exec(e);return t?ei(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],ef=(0,y.pE)(es,el,eh),ep=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ev=n(23834);let em=0;function eg(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,h.HK)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map(e=>eg(e,t));return e.apply(this,i)}catch(e){throw em+=1,setTimeout(()=>{em-=1}),(0,ev.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,s.Db)(e,void 0,void 0),(0,s.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,ev.Tb)(e)}),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}(0,h.$Q)(i,e),(0,h.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}var e_=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ey{static __initStatic(){this.id="TryCatch"}__init(){this.name=ey.id}setupOnce(){var e=(0,_.R)();this._options.setTimeout&&(0,h.hl)(e,"setTimeout",eb),this._options.setInterval&&(0,h.hl)(e,"setInterval",eb),this._options.requestAnimationFrame&&(0,h.hl)(e,"requestAnimationFrame",ew),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,h.hl)(XMLHttpRequest.prototype,"send",eT);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:e_).forEach(eS)}constructor(e){ey.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}}function eb(e){return function(...t){var n=t[0];return t[0]=eg(n,{mechanism:{data:{function:(0,y.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ew(e){return function(t){return e.apply(this,[eg(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,y.$P)(e)},handled:!0,type:"instrument"}})])}}function eT(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,h.hl)(n,e,function(t){var n={mechanism:{data:{function:e,handler:(0,y.$P)(t)},handled:!0,type:"instrument"}},r=(0,h.HK)(t);return r&&(n.mechanism.data.handler=(0,y.$P)(r)),eg(t,n)})}),e.apply(this,t)}}function eS(e){var t=(0,_.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,h.hl)(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=eg(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,y.$P)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,eg(r,{mechanism:{data:{function:"addEventListener",handler:(0,y.$P)(r),target:e},handled:!0,type:"instrument"}}),i])}}),(0,h.hl)(n,"removeEventListener",function(e){return function(t,n,r){try{var i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}ey.__initStatic();class eE{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=eE.id}__init2(){this._installFunc={onerror:eC,onunhandledrejection:eZ}}setupOnce(){Error.stackTraceLimit=50;var e=this._options;for(var t in e){var n=this._installFunc[t];n&&e[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`Global Handler attached: ${t}`),n(),this._installFunc[t]=void 0)}}constructor(e){eE.prototype.__init.call(this),eE.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}}function eC(){(0,w.o)("error",e=>{let[t,n,r]=eR();if(!t.getIntegration(eE))return;let{msg:i,url:o,line:a,column:s,error:u}=e;if(!(em>0)&&(!u||!u.__sentry_own_request__)){let e,d;var c,l=void 0===u&&(0,S.HD)(i)?(e=(0,S.VW)(i)?i.message:i,d="Error",(c=e.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i))&&(d=c[1],e=c[2]),ex({exception:{values:[{type:d,value:e}]}},o,a,s)):ex(G(n,u||i,void 0,r,!1),o,a,s);l.level="error",ek(t,u,l,"onerror")}})}function eZ(){(0,w.o)("unhandledrejection",e=>{let[t,n,r]=eR();if(!t.getIntegration(eE))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(em>0||i&&i.__sentry_own_request__)return!0;var o,a=(0,S.pt)(i)?(o=i,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}):G(n,i,void 0,r,!0);a.level="error",ek(t,i,a,"onunhandledrejection")})}function ex(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,S.HD)(t)&&t.length>0?t:(0,W.l)();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),e}function ek(e,t,n,r){(0,s.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function eR(){var e=(0,v.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}eE.__initStatic();class eP{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=eP.id}setupOnce(){var e=(0,v.Gd)().getClient();e&&(0,p.c)((t,n)=>{var r=(0,v.Gd)().getIntegration(eP);return r?function(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!(0,S.V9)(i.originalException,Error))return r;var o=function e(t,n,r,i,o=[]){if(!(0,S.V9)(r[i],Error)||o.length+1>=n)return o;var a=F(t,r[i]);return e(t,n,r[i],i,[a,...o])}(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t})}constructor(e={}){eP.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}}eP.__initStatic();class eO{static __initStatic(){this.id="Dedupe"}__init(){this.name=eO.id}setupOnce(e,t){var n=e=>{var n,r,i,o,s,u=t().getIntegration(eO);if(u){try{if((n=u._previousEvent)&&(r=e.message,i=n.message,(r||i)&&(!r||i)&&(r||!i)&&r===i&&ej(e,n)&&eD(e,n)||(o=eA(n),s=eA(e),o&&s&&o.type===s.type&&o.value===s.value&&ej(e,n)&&eD(e,n))))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return u._previousEvent=e}return e};n.id=this.name,e(n)}constructor(){eO.prototype.__init.call(this)}}function eD(e,t){let n=eM(e),r=eM(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e{if((0,v.Gd)().getIntegration(eN)){if(!eL.navigator&&!eL.location&&!eL.document)return e;var t=e.request&&e.request.url||eL.location&&eL.location.href;let{referrer:i}=eL.document||{},{userAgent:o}=eL.navigator||{};var n={...e.request&&e.request.headers,...i&&{Referer:i},...o&&{"User-Agent":o}},r={...t&&{url:t},headers:n};return{...e,request:r}}return e})}constructor(){eN.prototype.__init.call(this)}}function eI(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new E.cW((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,E.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(Z(i,(t,n)=>{var i=R[n];(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n})(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(t)}),0===o.length)return(0,E.WD)();var s=C(i[0],o),u=t=>{Z(s,(n,r)=>{e.recordDroppedEvent(t,R[r])})};return n.add(()=>t({body:k(s,e.textEncoder)}).then(e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){let[e,t]=s.split(":",2);var u=parseInt(e,10),c=(isNaN(u)?60:u)*1e3;if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e)},e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Failed while sending event:",e),u("network_error")})).then(e=>e,e=>{if(e instanceof D)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.error("Skipped sending event due to full buffer"),u("queue_overflow"),(0,E.WD)();throw e})},flush:e=>n.drain(e)}}function eU(e,t=et()){return eI(e,function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then(e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))})}function eF(e){return eI(e,function(t){return new E.cW((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)})})}eN.__initStatic();var eY=[new l,new f,new ey,new V,new eE,new eP,new eO,new eN];function eB(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function e$(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:o}],version:o},function(e={}){let t;if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=eY),void 0===e.release){var n,r,i,o,s,u,c,l=(0,_.R)();l.SENTRY_RELEASE&&l.SENTRY_RELEASE.id&&(e.release=l.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var d={...e,stackParser:(0,y.Sq)(e.stackParser||ef),integrations:(n=e.defaultIntegrations&&[...e.defaultIntegrations]||[],r=e.integrations,t=[...g(n)],Array.isArray(r)?t=[...t.filter(e=>r.every(t=>t.name!==e.name)),...g(r)]:"function"==typeof r&&(t=Array.isArray(t=r(t))?t:[t]),i=t.map(e=>e.name),o="Debug",-1!==i.indexOf(o)&&t.push(...t.splice(i.indexOf(o),1)),t),transport:e.transport||((0,b.Ak)()?eU:eF)};!0===d.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")),(u=(s=(0,v.Gd)()).getScope())&&u.update(d.initialScope),c=new er(d),s.bindClient(c),e.autoSessionTracking&&function(){if(void 0===(0,_.R)().document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var e=(0,v.Gd)();e.captureSession&&(eB(e),(0,w.o)("history",({from:e,to:t})=>{void 0===e||e===t||eB((0,v.Gd)())}))}()}(e)}},28349:(e,t,n)=>{"use strict";n.d(t,{ro:()=>m,lb:()=>v});var r=n(25084),i=n(67823),o=n(65768),a=n(59614),s=n(46406),u=n(78425);function c(){var e=(0,u.x1)();if(e){var t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var l=n(70537),d=n(89914);function h(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function f(e,t,n){var r;let a;return(0,u.zu)(t)?void 0!==e.sampled?e.setMetadata({transactionSampling:{method:"explicitly_set"}}):("function"==typeof t.tracesSampler?(a=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(a)}})):void 0!==n.parentSampled?(a=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(a=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(a)}})),r=a,(0,o.i2)(r)||!("number"==typeof r||"boolean"==typeof r)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):(r<0||r>1)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),1))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):a?(e.sampled=Math.random()new((0,a.l$)(e,"./integrations/node/mongo")).Mongo,mongoose:()=>new((0,a.l$)(e,"./integrations/node/mongo")).Mongo({mongoose:!0}),mysql:()=>new((0,a.l$)(e,"./integrations/node/mysql")).Mysql,pg:()=>new((0,a.l$)(e,"./integrations/node/postgres")).Postgres},i=Object.keys(n).filter(e=>!!(0,a.$y)(e)).map(e=>{try{return n[e]()}catch(e){return}}).filter(e=>e);i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}}(),(0,s.o)("error",c),(0,s.o)("unhandledrejection",c)}e=n.hmd(e)},70537:(e,t,n)=>{"use strict";n.d(t,{io:()=>l,mg:()=>u,nT:()=>s});var r=n(87661),i=n(67823),o=n(45194),a=n(89914),s=1e3,u=3e4;class c extends o.gB{add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,r._I)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}}class l extends a.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}finish(e=(0,r._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(var t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanId===this.spanId)return!0;!t.endTimestamp&&(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp{this._finished||this._pushActivity(e)},e=>{this._finished||this._popActivity(e)},this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(e){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(e)},this._idleTimeout)}_pushActivity(e){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,r._I)()+this._idleTimeout/1e3;this._startIdleTimeout(t)}}_beat(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},5e3)}constructor(e,t,n=s,r=u,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._onScope=o,l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),o&&(d(t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope(e=>e.setSpan(this))),this._startIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())},this._finalTimeout)}}function d(e){var t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}},11910:(e,t,n)=>{"use strict";let r,i;n.d(t,{gE:()=>B});var o=n(28349),a=n(67823),s=n(30221),u=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"),c=n(14241),l=n(70537),d=n(78425),h=(0,s.R)(),f=n(20665),p=n(87661),v=n(78175),m=(e,t,n)=>{let r;return i=>{t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},g=()=>`v2-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,_=(e,t)=>({name:e,value:(0,f.h)(t,()=>-1),delta:0,entries:[],id:g()}),y=(e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(e=>e.getEntries().map(t));return n.observe({type:e,buffered:!0}),n}}catch(e){}},b=(e,t)=>{var n=r=>{("pagehide"===r.type||"hidden"===(0,s.R)().document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},w=(e,t)=>{let n;var r=_("CLS",0);let i=0,o=[];var a=e=>{if(e&&!e.hadRecentInput){var t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},s=y("layout-shift",a);s&&(n=m(e,r,t),b(()=>{s.takeRecords().map(a),n(!0)}))};let T=-1;var S=()=>"hidden"===(0,s.R)().document.visibilityState?0:1/0,E=()=>{b(({timeStamp:e})=>{T=e},!0)},C=()=>(T<0&&(T=S(),E()),{get firstHiddenTime(){return T}}),Z=(e,t)=>{let n;var r=C(),i=_("FID"),o=e=>{n&&e.startTime{a.takeRecords().map(o),a.disconnect()},!0))},x={},k=(e,t)=>{let n;var r=C(),i=_("LCP"),o=e=>{var t=e.startTime;t{x[i.id]||(a.takeRecords().map(o),a.disconnect(),x[i.id]=!0,n(!0))};["keydown","click"].forEach(e=>{addEventListener(e,s,{once:!0,capture:!0})}),b(s,!0)}};function R(e){return"number"==typeof e&&isFinite(e)}function P(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var O=(0,s.R)();function D(){return O&&O.addEventListener&&O.performance}let j=0,A={};function M(e,t,n,r,i,o){var a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&P(e,{op:"browser",description:(0,f.h)(i,()=>n),startTimestamp:r+(0,d.XL)(s),endTimestamp:r+(0,d.XL)(a)})}var L=n(43530),N=n(46406),I=n(65768),U={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]},F=(0,s.R)(),Y={idleTimeout:l.nT,finalTimeout:l.mg,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!F||!F.location){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let i=F.location.href;t&&(r=e({name:F.location.pathname,op:"pageload"})),n&&(0,N.o)("history",({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:F.location.pathname,op:"navigation"}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,...U};class B{__init(){this.name="BrowserTracing"}setupOnce(e,t){this._getCurrentHub=t,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] We added a reasonable default for you: ${U.tracingOrigins}`));let{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroundTransactions:o,traceFetch:s,traceXHR:u,tracingOrigins:l,shouldCreateSpanForRequest:f}=this.options;n(e=>this._createRouteTransaction(e),i,r),o&&(h&&h.document?h.document.addEventListener("visibilitychange",()=>{var e=(0,d.x1)();if(h.document.hidden&&e){var t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){let{traceFetch:t,traceXHR:n,tracingOrigins:r,shouldCreateSpanForRequest:i}={...U,...e};var o={},a=e=>(o[e]||(o[e]=r.some(t=>(0,L.zC)(e,t))&&!(0,L.zC)(e,"sentry_key")),o[e]);let s=a;"function"==typeof i&&(s=e=>a(e)&&i(e));var u={};t&&(0,N.o)("fetch",e=>{(function(e,t,n){if((0,d.zu)()&&e.fetchData&&t(e.fetchData.url)){if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;var i=n[r];i&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus("internal_error"),i.finish(),delete n[r]);return}var o=(0,d.x1)();if(o){var i=o.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var a=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{};s.headers=function(e,t,n){let r=n.headers;(0,I.V9)(e,Request)&&(r=e.headers);var i=t.getBaggage();if(r){if("function"==typeof r.append)r.append("sentry-trace",t.toTraceparent()),r.append(c.bU,(0,c.J8)(i,r.get(c.bU)));else if(Array.isArray(r)){let[,e]=r.find(([e,t])=>e===c.bU);r=[...r,["sentry-trace",t.toTraceparent()],[c.bU,(0,c.J8)(i,e)]]}else r={...r,"sentry-trace":t.toTraceparent(),baggage:(0,c.J8)(i,r.baggage)}}else r={"sentry-trace":t.toTraceparent(),baggage:(0,c.J8)(i)};return r}(a,i,s)}}})(e,s,u)}),n&&(0,N.o)("xhr",e=>{(function(e,t,n){if((0,d.zu)()&&(!e.xhr||!e.xhr.__sentry_own_request__)&&e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)){var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var i=e.xhr.__sentry_xhr_span_id__;if(!i)return;var o=n[i];o&&(o.setHttpStatus(r.status_code),o.finish(),delete n[i]);return}var a=(0,d.x1)();if(a){var o=a.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:`${r.method} ${r.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=o.spanId,n[e.xhr.__sentry_xhr_span_id__]=o,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",o.toTraceparent());var s=e.xhr.getRequestHeader&&e.xhr.getRequestHeader(c.bU);e.xhr.setRequestHeader(c.bU,(0,c.J8)(o.getBaggage(),s))}catch(e){}}}})(e,s,u)})}({traceFetch:s,traceXHR:u,tracingOrigins:l,shouldCreateSpanForRequest:f})}_createRouteTransaction(e){if(!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let{beforeNavigate:t,idleTimeout:n,finalTimeout:l}=this.options;var h="pageload"===e.op?function(){var e=$("sentry-trace"),t=$("baggage"),n=e?function(e){var t=e.match(u);if(t){let e;return"1"===t[3]?e=!0:"0"===t[3]&&(e=!1),{traceId:t[1],parentSampled:e,parentSpanId:t[2]}}}(e):void 0,r=t?(0,c.LD)(t):void 0;if(n||r)return{...n&&n,...r&&{metadata:{baggage:r}}}}():void 0,f={...e,...h,trimEnd:!0},m="function"==typeof t?t(f):f,g=void 0===m?{...f,sampled:!1}:m;!1===g.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Will not send ${g.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Starting ${g.op} transaction on scope`);var _=this._getCurrentHub();let{location:y}=(0,s.R)();var b=(0,o.lb)(_,g,n,l,!0,{location:y});return b.registerBeforeFinishCallback(e=>{(function(e){let t,n;var o=D();if(o&&O.performance.getEntries&&p.Z1){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Adding & adjusting spans using Performance API");var s=(0,d.XL)(p.Z1),u=o.getEntries();u.slice(j).forEach(r=>{var i=(0,d.XL)(r.startTime),o=(0,d.XL)(r.duration);if("navigation"!==e.op||!(s+i{M(e,r,t,s)}),M(e,r,"secureConnection",s,"TLS/SSL","connectEnd"),M(e,r,"fetch",s,"cache","domainLookupStart"),M(e,r,"domainLookup",s,"DNS"),P(e,{op:"browser",description:"request",startTimestamp:s+(0,d.XL)(r.requestStart),endTimestamp:s+(0,d.XL)(r.responseEnd)}),P(e,{op:"browser",description:"response",startTimestamp:s+(0,d.XL)(r.responseStart),endTimestamp:s+(0,d.XL)(r.responseEnd)}),t=s+(0,d.XL)(r.responseStart),n=s+(0,d.XL)(r.requestStart);break;case"mark":case"paint":case"measure":var u,c=(u=s+i,P(e,{description:r.name,endTimestamp:u+o,op:r.entryType,startTimestamp:u}),u),l=C(),h=r.startTime{if(A[t]&&!(s>=e.startTimestamp)){var n=A[t].value,r=Math.abs((s+(0,d.XL)(n)-e.startTimestamp)*1e3),i=r-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Measurements] Normalized ${t} from ${n} to ${r} (${i})`),A[t].value=r}}),A["mark.fid"]&&A.fid&&P(e,{description:"first input delay",endTimestamp:A["mark.fid"].value+(0,d.XL)(A.fid.value),op:"web.vitals",startTimestamp:A["mark.fid"].value}),"fcp"in A||delete A.cls,Object.keys(A).forEach(t=>{e.setMeasurement(t,A[t].value,A[t].unit)}),r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Measurements] Adding LCP Data"),r.element&&e.setTag("lcp.element",(0,v.R)(r.element)),r.id&&e.setTag("lcp.id",r.id),r.url&&e.setTag("lcp.url",r.url.trim().slice(0,200)),e.setTag("lcp.size",r.size)),i&&i.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Measurements] Adding CLS Data"),i.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,(0,v.R)(t.node))))),r=void 0,i=void 0,A={}}})(e),e.setTag("sentry_reportAllChanges",!!(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))}),b}constructor(e){B.prototype.__init.call(this);let t=U.tracingOrigins;e&&(e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?t=e.tracingOrigins:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...Y,...e,tracingOrigins:t};let{_metricOptions:n}=this.options;!function(e=!1){var t=D();t&&p.Z1&&(t.mark&&O.performance.mark("sentry-tracing-init"),w(e=>{var t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Measurements] Adding CLS"),A.cls={value:e.value,unit:"millisecond"},i=t)}),k(e=>{var t=e.entries.pop();if(t){var n=(0,d.XL)(p.Z1),i=(0,d.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Measurements] Adding LCP"),A.lcp={value:e.value,unit:"millisecond"},A["mark.lcp"]={value:n+i,unit:"second"},r=t}},e),Z(e=>{var t=e.entries.pop();if(t){var n=(0,d.XL)(p.Z1),r=(0,d.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Measurements] Adding FID"),A.fid={value:e.value,unit:"millisecond"},A["mark.fid"]={value:n+r,unit:"second"}}}))}(n&&n._reportAllChanges)}}function $(e){var t=(0,s.R)();if(!t.document||!t.document.querySelector)return null;var n=t.document.querySelector(`meta[name=${e}]`);return n?n.getAttribute("content"):null}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,o.ro)()},45194:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>l,gB:()=>c});var r=n(20665),i=n(25084),o=n(22793),a=n(87661),s=n(83931),u=n(14241);class c{__init(){this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}constructor(e=1e3){c.prototype.__init.call(this),this._maxlen=e}}class l{__init2(){this.traceId=(0,o.DM)()}__init3(){this.spanId=(0,o.DM)().substring(16)}__init4(){this.startTimestamp=(0,a._I)()}__init5(){this.tags={}}__init6(){this.data={}}startChild(e){var t=new l({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});return t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){this.endTimestamp="number"==typeof e?e:(0,a._I)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return(0,s.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=(0,r.h)(e.data,()=>({})),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(0,r.h)(e.spanId,()=>this.spanId),this.startTimestamp=(0,r.h)(e.startTimestamp,()=>this.startTimestamp),this.status=e.status,this.tags=(0,r.h)(e.tags,()=>({})),this.traceId=(0,r.h)(e.traceId,()=>this.traceId),this}getTraceContext(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}getBaggage(){var e=this.transaction&&this.transaction.metadata.baggage,t=!e||(0,u.Dq)(e)?this._getBaggageWithSentryValues(e):e;return(0,u.Qf)(t)?void 0:t}toJSON(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}_getBaggageWithSentryValues(e=(0,u.Hn)({})){var t=(this.transaction&&this.transaction._hub||(0,i.Gd)()).getClient();let{environment:n,release:r}=t&&t.getOptions()||{};return n&&(0,u.S1)(e,"environment",n),r&&(0,u.S1)(e,"release",r),e}constructor(e){if(l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),l.prototype.__init5.call(this),l.prototype.__init6.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}}},89914:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var r=n(20665),i=n(25084),o=n(67823),a=n(83931),s=n(45194);class u extends s.Dr{__init(){this._measurements={}}setName(e){this.name=e}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new s.gB(e)),this.spanRecorder.add(this)}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e),!0!==this.sampled){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var t=this._hub.getClient();t&&t.recordDroppedEvent("sample_rate","transaction");return}var n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&e.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e).endTimestamp);var r={contexts:{trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}}toContext(){var e=super.toContext();return(0,a.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=(0,r.h)(e.name,()=>""),this._trimEnd=e.trimEnd,this}constructor(e,t){super(e),u.prototype.__init.call(this),this._hub=t||(0,i.Gd)(),this.name=e.name||"",this.metadata=e.metadata||{},this._trimEnd=e.trimEnd,this.transaction=this}}},78425:(e,t,n)=>{"use strict";n.d(t,{XL:()=>a,x1:()=>o,zu:()=>i});var r=n(25084);function i(e){var t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(e){var t=(e||(0,r.Gd)()).getScope();return t&&t.getTransaction()}function a(e){return e/1e3}},14241:(e,t,n)=>{"use strict";n.d(t,{Dq:()=>u,Hn:()=>a,J8:()=>d,LD:()=>l,Qf:()=>c,S1:()=>s,bU:()=>i});var r=n(67823),i="baggage",o=/^sentry-/;function a(e,t=""){return[{...e},t]}function s(e,t,n){e[0][t]=n}function u(e){return 0===Object.keys(e[0]).length}function c(e){var t=e[1];return u(e)&&(void 0==t||0===t.length)}function l(e){return e.split(",").reduce(([e,t],n)=>{let[r,i]=n.split("=");if(!o.test(r))return[e,""===t?n:`${t},${n}`];var a=decodeURIComponent(r.split("-")[1]);return[{...e,[a]:decodeURIComponent(i)},t]},[{},""])}function d(e,t){if(!e&&!t)return"";var n,i=t&&l(t)||void 0,o=i&&i[1];return Object.keys((n=a(e&&e[0]||{},o||e&&e[1]||""))[0]).reduce((e,t)=>{var i=n[0][t],o=`sentry-${encodeURIComponent(t)}=${encodeURIComponent(i)}`,a=""===e?o:`${e},${o}`;return a.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Not adding key: ${t} with val: ${i} to baggage due to exceeding baggage size limits.`),e):a},n[1])}},78175:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,l:()=>a});var r=n(30221),i=n(65768);function o(e,t){try{let r,o=e;var n=[];let a=0,s=0;for(;o&&a++<5&&(r=function(e,t){let n,r,o,a,s;var u=[];if(!e||!e.tagName)return"";u.push(e.tagName.toLowerCase());var c=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(c&&c.length)c.forEach(e=>{u.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&u.push(`#${e.id}`),(n=e.className)&&(0,i.HD)(n))for(s=0,r=n.split(/\s+/);s1)||!(s+3*n.length+r.length>=80)));)n.push(r),s+=r.length,o=o.parentNode;return n.reverse().join(" > ")}catch(e){return""}}function a(){var e=(0,r.R)();try{return e.document.location.href}catch(e){return""}}},20665:(e,t,n)=>{"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:()=>r})},30221:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(59614),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},46406:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{o:()=>v});var a=n(30221),s=n(65768),u=n(67823),c=n(83931),l=n(21348),d=n(79546),h=(0,a.R)(),f={},p={};function v(e,t){f[e]=f[e]||[],f[e].push(t),function(e){if(!p[e])switch(p[e]=!0,e){case"console":"console"in h&&u.RU.forEach(function(e){e in h.console&&(0,c.hl)(h.console,e,function(t){return function(...n){m("console",{args:n,level:e}),t&&t.apply(h.console,n)}})});break;case"dom":(function(){if("document"in h){var e=m.bind(null,"dom"),t=g(e,!0);h.document.addEventListener("click",t,!1),h.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{var n=h[t]&&h[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=g(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}}),(0,c.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}})();break;case"xhr":(function(){if("XMLHttpRequest"in h){var e=XMLHttpRequest.prototype;(0,c.hl)(e,"open",function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:(0,s.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,s.HD)(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}m("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?(0,c.hl)(n,"onreadystatechange",function(e){return function(...t){return o(),e.apply(n,t)}}):n.addEventListener("readystatechange",o),e.apply(n,t)}}),(0,c.hl)(e,"send",function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),m("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})}})();break;case"fetch":(0,d.t$)()&&(0,c.hl)(h,"fetch",function(e){return function(...t){var n={args:t,fetchData:{method:function(e=[]){return"Request"in h&&(0,s.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}(t),url:function(e=[]){return"string"==typeof e[0]?e[0]:"Request"in h&&(0,s.V9)(e[0],Request)?e[0].url:String(e[0])}(t)},startTimestamp:Date.now()};return m("fetch",{...n}),e.apply(h,t).then(e=>(m("fetch",{...n,endTimestamp:Date.now(),response:e}),e),e=>{throw m("fetch",{...n,endTimestamp:Date.now(),error:e}),e})}});break;case"history":(function(){if((0,d.Bf)()){var e=h.onpopstate;h.onpopstate=function(...t){var n=h.location.href,i=r;if(r=n,m("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,c.hl)(h.history,"pushState",t),(0,c.hl)(h.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var i=r,o=String(n);r=o,m("history",{from:i,to:o})}return e.apply(this,t)}}})();break;case"error":_=h.onerror,h.onerror=function(e,t,n,r,i){return m("error",{column:r,error:i,line:n,msg:e,url:t}),!!_&&_.apply(this,arguments)};break;case"unhandledrejection":y=h.onunhandledrejection,h.onunhandledrejection=function(e){return m("unhandledrejection",e),!y||y.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("unknown instrumentation type:",e);return}}(e)}function m(e,t){if(e&&f[e])for(var n of f[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${(0,l.$P)(n)} Error:`,t)}}function g(e,t=!1){return n=>{if(!(!n||o===n||function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))){var r="keypress"===n.type?"input":n.type;void 0===i?(e({event:n,name:r,global:t}),o=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(o,n)&&(e({event:n,name:r,global:t}),o=n),clearTimeout(i),i=h.setTimeout(()=>{i=void 0},1e3)}}}let _=null,y=null},65768:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>m,HD:()=>c,J8:()=>v,Kj:()=>p,PO:()=>d,TX:()=>s,V9:()=>_,VW:()=>a,VZ:()=>i,cO:()=>h,fm:()=>u,i2:()=>g,kK:()=>f,pt:()=>l});var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&_(e,Event)}function f(e){return"undefined"!=typeof Element&&_(e,Element)}function p(e){return o(e,"RegExp")}function v(e){return!!(e&&e.then&&"function"==typeof e.then)}function m(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}},67823:(e,t,n)=>{"use strict";let r;n.d(t,{Cf:()=>s,RU:()=>a,kg:()=>r});var i=n(30221),o=(0,i.R)(),a=["debug","info","warn","error","log","assert"];function s(e){var t=(0,i.R)();if(!("console"in t))return e();var n=t.console,r={};a.forEach(e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)});try{return e()}finally{Object.keys(r).forEach(e=>{n[e]=r[e]})}}function u(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{o.console[n](`Sentry Logger [${n}]:`,...t)})}}):a.forEach(e=>{t[e]=()=>void 0}),t}"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?r=(0,i.Y)("logger",u):r=u()},22793:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,Db:()=>c,EG:()=>l,YO:()=>d,en:()=>a,jH:()=>u});var r=n(30221),i=n(83931);function o(){var e=(0,r.R)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var i=e=>{let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return i(n[0])+i(n[1])+i(n[2])+i(n[3])+i(n[4])+i(n[5])+i(n[6])+i(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function a(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){let{message:t,event_id:n}=e;if(t)return t;var r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function c(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function l(e,t){var n=s(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function d(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},59614:(e,t,n)=>{"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function o(t){let n;try{n=i(e,t)}catch(e){}try{let{cwd:r}=i(e,"process");n=i(e,`${r()}/node_modules/${t}`)}catch(e){}return n}n.d(t,{l$:()=>i,KV:()=>r,$y:()=>o}),e=n.hmd(e)},81613:(e,t,n)=>{"use strict";n.d(t,{Fv:()=>u,Qy:()=>function e(t,n=3,r=102400){var i=u(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}});var r,i,o=n(65768),a=n(83931),s=n(21348);function u(e,t=Infinity,c=Infinity){try{return function e(t,u,c=Infinity,l=Infinity,d=(i=(r="function"==typeof WeakSet)?new WeakSet:[],[function(e){if(r)return!!i.has(e)||(i.add(e),!1);for(let t=0;t=l){v[_]="[MaxProperties ~]";break}var y=g[_];v[_]=e(_,y,c-1,l,d),m+=1}return f(u),v}("",e,t,c)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},83931:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>u,HK:()=>c,Jr:()=>v,Sh:()=>d,_j:()=>l,hl:()=>a,xp:()=>s,zf:()=>p});var r=n(78175),i=n(65768),o=n(43530);function a(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{u(i,r)}catch(e){}e[t]=i}}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function l(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function d(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if(!(0,i.cO)(e))return e;var t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}function h(e){try{return(0,i.kK)(e)?(0,r.R)(e):Object.prototype.toString.call(e)}catch(e){return""}}function f(e){if("object"!=typeof e||null===e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function p(e,t=40){var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,o.$G)(r,t)}}return""}function v(e){return function e(t,n){if((0,i.PO)(t)){var r=n.get(t);if(void 0!==r)return r;var o={};for(var a of(n.set(t,o),Object.keys(t)))void 0!==t[a]&&(o[a]=e(t[a],n));return o}if(Array.isArray(t)){var r=n.get(t);if(void 0!==r)return r;var o=[];return n.set(t,o),t.forEach(t=>{o.push(e(t,n))}),o}return t}(e,new Map)}},21348:(e,t,n)=>{"use strict";function r(...e){var t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n))for(var o of t){var a=o(i);if(a){r.push(a);break}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return(-1!==n.indexOf("captureMessage")||-1!==n.indexOf("captureException"))&&(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"})).reverse()}(r)}}function i(e){return Array.isArray(e)?r(...e):e}n.d(t,{$P:()=>a,Sq:()=>i,pE:()=>r});var o="";function a(e){try{if(!e||"function"!=typeof e)return o;return e.name||o}catch(e){return o}}},43530:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,nK:()=>o,zC:()=>a});var r=n(65768);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.substr(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t{"use strict";n.d(t,{Ak:()=>o,Bf:()=>u,Du:()=>a,t$:()=>s});var r=n(30221),i=n(67823);function o(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;var e=(0,r.R)();if(a(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function u(){var e=(0,r.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},85436:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var r,i=n(65768);function o(e){return new s(t=>{t(e)})}function a(e){return new s((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}then(e,t){return new s((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===r.PENDING){if((0,i.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}}},87661:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>d,_I:()=>l,ph:()=>c,yW:()=>u});var r=n(30221),i=n(59614);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),l=c,d=(()=>{let{performance:e}=(0,r.R)();if(e&&e.now){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;return i<36e5||a<36e5?i<=a?e.timeOrigin:o:n}})()},93185:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{"use strict";/** * @license React * use-sync-external-store-with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(27378),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=o(e,(d=u(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==l&&h.hasValue){var t=h.value;if(l(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(o=e,a=n)}var o,a,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,l]))[0],d[1]);return s(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},2815:(e,t,n)=>{"use strict";e.exports=n(74257)},50056:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>x,shimAddTrackRemoveTrack:()=>C,shimAddTrackRemoveTrackWithNative:()=>E,shimGetDisplayMedia:()=>_,shimGetSendersWithDtmf:()=>w,shimGetStats:()=>T,shimGetUserMedia:()=>g,shimMediaStream:()=>y,shimOnTrack:()=>b,shimPeerConnection:()=>Z,shimSenderReceiverGetStats:()=>S});var i={};n.r(i),n.d(i,{shimAddTransceiver:()=>L,shimCreateAnswer:()=>U,shimCreateOffer:()=>I,shimGetDisplayMedia:()=>R,shimGetParameters:()=>N,shimGetUserMedia:()=>k,shimOnTrack:()=>P,shimPeerConnection:()=>O,shimRTCDataChannel:()=>M,shimReceiverGetStats:()=>j,shimRemoveStream:()=>A,shimSenderGetStats:()=>D});var o={};n.r(o),n.d(o,{shimAudioContext:()=>q,shimCallbacksAPI:()=>B,shimConstraints:()=>G,shimCreateOfferLegacy:()=>H,shimGetUserMedia:()=>$,shimLocalStreamsAPI:()=>F,shimRTCIceServerUrls:()=>z,shimRemoteStreamsAPI:()=>Y,shimTrackEventTransceiver:()=>W});var a={};n.r(a),n.d(a,{removeExtmapAllowMixed:()=>et,shimAddIceCandidateNullOrEmpty:()=>en,shimConnectionState:()=>ee,shimMaxMessageSize:()=>K,shimParameterlessSetLocalDescription:()=>er,shimRTCIceCandidate:()=>J,shimSendThrowTypeError:()=>Q});let s=!0,u=!0;function c(e,t,n){let r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function l(e,t,n){if(!e.RTCPeerConnection)return;let r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);let o=e=>{let t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,o),i.apply(this,[e,o])};let o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t]||!this._eventMap[t].has(n))return o.apply(this,arguments);let r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function d(e){return"boolean"!=typeof e?Error("Argument type: "+typeof e+". Please use a boolean."):(s=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function h(e){return"boolean"!=typeof e?Error("Argument type: "+typeof e+". Please use a boolean."):(u=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function f(){"object"!=typeof window||s||"undefined"==typeof console||"function"!=typeof console.log||console.log.apply(console,arguments)}function p(e,t){u&&console.warn(e+" is deprecated, please use "+t+" instead.")}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e,t,n){let r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;let o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&function e(t,n,r){!n||r.has(n.id)||(r.set(n.id,n),Object.keys(n).forEach(i=>{i.endsWith("Id")?e(t,t.get(n[i]),r):i.endsWith("Ids")&&n[i].forEach(n=>{e(t,t.get(n),r)})}))}(e,n,i)})}),i}function g(e,t){let n=e&&e.navigator;if(!n.mediaDevices)return;let r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;let t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;let r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);let i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),(e={})[i("max",n)]=r.ideal):e[i("",n)]=r.ideal,t.optional.push(e)}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){let t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});let a=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!a)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:("user"===o.exact||"user"===o.ideal)&&(t=["front"]),t)return n.mediaDevices.enumerateDevices().then(n=>{let a=(n=n.filter(e=>"videoinput"===e.kind)).find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),f("chrome: "+JSON.stringify(e)),i(e)})}e.video=r(e.video)}return f("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:({PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"})[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=(function(e,t,r){i(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(o(e))})})}).bind(n),n.mediaDevices.getUserMedia){let e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(o(e))))}}}function _(e,t){if((!e.navigator.mediaDevices||!("getDisplayMedia"in e.navigator.mediaDevices))&&e.navigator.mediaDevices){if("function"!=typeof t){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{let r=n.video&&n.video.width,i=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)})}}}function y(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function b(e){if("object"!=typeof e||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype)l(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e));else{Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};let i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};let i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}}function w(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){let t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};let r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);let t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}let n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};let r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{let t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function T(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0==arguments.length||"function"!=typeof e))return t.apply(this,[]);let i=function(e){let t={};return e.result().forEach(e=>{let n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};return arguments.length>=2?t.apply(this,[function(e){n(o(i(e)))},e]):new Promise((e,n)=>{t.apply(this,[function(t){e(o(i(t)))},n])}).then(n,r)}}function S(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});let n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>m(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),l(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>m(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;let t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){let e,t,n;let r=arguments[0];return(this.getSenders().forEach(t=>{t.track===r&&(e?n=!0:e=t)}),this.getReceivers().forEach(e=>(e.track===r&&(t?n=!0:t=e),e.track===r)),n||e&&t)?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):e?e.getStats():t?t.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function E(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};let n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")});let t=this.getSenders();n.apply(this,arguments);let r=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(r)};let r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};let i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{let n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),i.apply(this,arguments)}}function C(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return E(e);let n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){let e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};let r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){let n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};let i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{let r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(RegExp(i.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(e=>e.track===t))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach(function(t){let n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){let e=arguments,t=arguments.length&&"function"==typeof arguments[0];return t?n.apply(this,[t=>{let n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>o(this,e))}})[t]});let a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){var e,t;let n;return arguments.length&&arguments[0].type&&(arguments[0]=(e=this,t=arguments[0],n=t.sdp,Object.keys(e._reverseStreams||[]).forEach(t=>{let r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(RegExp(r.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:n}))),a.apply(this,arguments)};let s=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){let e=s.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){let t;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach(n=>{this._streams[n].getTracks().find(t=>e.track===t)&&(t=this._streams[n])}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Z(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}})[t]})}function x(e,t){l(e,"negotiationneeded",e=>{let n=e.target;if(!(t.version<72)&&(!n.getConfiguration||"plan-b"!==n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}function k(e,t){let n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){p("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){let e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(e((n=JSON.parse(JSON.stringify(n))).audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){let t=r.prototype.getSettings;r.prototype.getSettings=function(){let n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){let t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(e(n=JSON.parse(JSON.stringify(n)),"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function R(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!(n&&n.video)){let e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function P(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function O(e,t){if("object"!=typeof e||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}})[t]});let n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,i,o]=arguments;return r.apply(this,[e||null]).then(e=>{if(t.version<53&&!i)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(t){if("TypeError"!==t.name)throw t;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(i,o)}}function D(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});let n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function j(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),l(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function A(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){p("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function M(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function L(e){if(!("object"==typeof e&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach(e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw RangeError("max_framerate must be >= 0.0")});let r=t.apply(this,arguments);if(n){let{sender:t}=r,n=t.getParameters();"encodings"in n&&(1!==n.encodings.length||0!==Object.keys(n.encodings[0]).length)||(n.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function N(e){if(!("object"==typeof e&&e.RTCRtpSender))return;let t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){let e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function I(e){if(!("object"==typeof e&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function U(e){if(!("object"==typeof e&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function F(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);let t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);let n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function Y(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);let t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){let e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);let n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function B(e){if("object"!=typeof e||!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){let r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){let n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let s=function(e,t,n){let r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){let r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){let r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function $(e){let t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){let e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(G(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}).bind(t))}function G(e){return e&&void 0!==e.video?Object.assign({},e,{video:function e(t){return v(t)?Object.keys(t).reduce(function(n,r){let i=v(t[r]),o=i?e(t[r]):t[r],a=i&&!Object.keys(o).length;return void 0===o||a?n:Object.assign(n,{[r]:o})},{}):t}(e.video)}):e}function z(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){let t=[];for(let n=0;nt.generateCertificate})}function W(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function H(e){let t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);let t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);let n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function q(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var V=n(30347),X=n.n(V);function J(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;let t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){let n=Object.assign(new t(e),X().parseCandidate(e.candidate));return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,l(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function K(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});let n=function(e){if(!e||!e.sdp)return!1;let t=X().splitSections(e.sdp);return t.shift(),t.some(e=>{let t=X().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},r=function(e){let t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return -1;let n=parseInt(t[1],10);return n!=n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},o=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);let i=X().matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){let{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){let e;let t=r(arguments[0]),n=i(t),a=o(arguments[0],t);e=0===n&&0===a?Number.POSITIVE_INFINITY:0===n||0===a?Math.max(n,a):Math.min(n,a);let s={};Object.defineProperty(s,"maxMessageSize",{get:()=>e}),this._sctp=s}return a.apply(this,arguments)}}function Q(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){let n=e.send;e.send=function(){let r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}let n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){let e=n.apply(this,arguments);return t(e,this),e},l(e,"datachannel",e=>(t(e.channel,e.target),e))}function ee(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;let t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return({completed:"connected",checking:"connecting"})[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{let n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{let t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;let n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function et(e,t){if(!e.RTCPeerConnection||"chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)return;let n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){let n=t.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function en(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function er(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(!(e={type:e.type,sdp:e.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}return e.sdp||"offer"!==e.type&&"answer"!==e.type?n.apply(this,[e]):("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then(e=>n.apply(this,[e]))})}!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let n=function(e){let t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;let{navigator:n}=e;return n.mozGetUserMedia?(t.browser="firefox",t.version=c(n.userAgent,/Firefox\/(\d+)\./,1)):n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer?(t.browser="chrome",t.version=c(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2)):e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./)?(t.browser="safari",t.version=c(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype):t.browser="Not a supported browser.",t}(e),s={browserDetails:n,commonShim:a,extractVersion:c,disableLog:d,disableWarnings:h,sdp:V};switch(n.browser){case"chrome":if(!r||!Z||!t.shimChrome){f("Chrome shim is not included in this adapter release.");break}if(null===n.version){f("Chrome shim can not determine version, not shimming.");break}f("adapter.js shimming chrome."),s.browserShim=r,en(e,n),er(e,n),g(e,n),y(e,n),Z(e,n),b(e,n),C(e,n),w(e,n),T(e,n),S(e,n),x(e,n),J(e,n),ee(e,n),K(e,n),Q(e,n),et(e,n);break;case"firefox":if(!i||!O||!t.shimFirefox){f("Firefox shim is not included in this adapter release.");break}f("adapter.js shimming firefox."),s.browserShim=i,en(e,n),er(e,n),k(e,n),O(e,n),P(e,n),A(e,n),D(e,n),j(e,n),M(e,n),L(e,n),N(e,n),I(e,n),U(e,n),J(e,n),ee(e,n),K(e,n),Q(e,n);break;case"safari":if(!o||!t.shimSafari){f("Safari shim is not included in this adapter release.");break}f("adapter.js shimming safari."),s.browserShim=o,en(e,n),er(e,n),z(e,n),H(e,n),B(e,n),F(e,n),Y(e,n),W(e,n),$(e,n),q(e,n),J(e,n),K(e,n),Q(e,n),et(e,n);break;default:f("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window})},43889:(e,t,n)=>{"use strict";n.d(t,{Centrifuge:()=>F,jc:()=>l});var r,i,o,a,s,u,c,l,d={exports:{}},h="object"==typeof Reflect?Reflect:null,f=h&&"function"==typeof h.apply?h.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=h&&"function"==typeof h.ownKeys?h.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var p=Number.isNaN||function(e){return e!=e};function v(){v.init.call(this)}d.exports=v,d.exports.once=function(e,t){return new Promise(function(n,r){var i;function o(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}C(e,t,a,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&C(e,"error",o,i))})},v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var m=10;function g(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _(e){return void 0===e._maxListeners?v.defaultMaxListeners:e._maxListeners}function y(e,t,n,r){if(g(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=_(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,s=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn&&console.warn(s)}return e}function b(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=b.bind(r);return i.listener=n,r.wrapFn=i,i}function T(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var o,a=Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)f(s,this,t);else for(var u=s.length,c=E(s,u),n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},v.prototype.listeners=function(e){return T(this,e,!0)},v.prototype.rawListeners=function(e){return T(this,e,!1)},v.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):S.call(e,t)},v.prototype.listenerCount=S,v.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};var Z=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(d.exports);function x(e){return null!=e&&"function"==typeof e}function k(e,t,n){e>31&&(e=31);let r=Math.floor(Math.random()*(Math.min(n,t*Math.pow(2,e))-0+1)+0);return Math.min(n,t+r)}function R(e){return Math.min(1e3*e,2147483647)}!function(e){e[e.timeout=1]="timeout",e[e.transportClosed=2]="transportClosed",e[e.clientDisconnected=3]="clientDisconnected",e[e.clientClosed=4]="clientClosed",e[e.clientConnectToken=5]="clientConnectToken",e[e.clientRefreshToken=6]="clientRefreshToken",e[e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",e[e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",e[e.subscriptionRefreshToken=9]="subscriptionRefreshToken",e[e.transportWriteError=10]="transportWriteError",e[e.connectionClosed=11]="connectionClosed",e[e.badConfiguration=12]="badConfiguration"}(i||(i={})),function(e){e[e.connectCalled=0]="connectCalled",e[e.transportClosed=1]="transportClosed",e[e.noPing=2]="noPing",e[e.subscribeTimeout=3]="subscribeTimeout",e[e.unsubscribeError=4]="unsubscribeError"}(o||(o={})),function(e){e[e.disconnectCalled=0]="disconnectCalled",e[e.unauthorized=1]="unauthorized",e[e.badProtocol=2]="badProtocol",e[e.messageSizeLimit=3]="messageSizeLimit"}(a||(a={})),function(e){e[e.subscribeCalled=0]="subscribeCalled",e[e.transportClosed=1]="transportClosed"}(s||(s={})),function(e){e[e.unsubscribeCalled=0]="unsubscribeCalled",e[e.unauthorized=1]="unauthorized",e[e.clientClosed=2]="clientClosed"}(u||(u={})),function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected"}(c||(c={})),function(e){e.Unsubscribed="unsubscribed",e.Subscribing="subscribing",e.Subscribed="subscribed"}(l||(l={}));class P extends Z{constructor(e,t,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=t,this.state=l.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",e=>{this._centrifuge._debug("subscription state",t,e.oldState,"->",e.newState)}),this.on("error",e=>{this._centrifuge._debug("subscription error",t,e)})):this.on("error",function(){Function.prototype()})}ready(e){return this.state===l.Unsubscribed?Promise.reject({code:i.subscriptionUnsubscribed,message:this.state}):this.state===l.Subscribed?Promise.resolve():new Promise((t,n)=>{let r={resolve:t,reject:n};e&&(r.timeout=setTimeout(function(){n({code:i.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=r})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(s.subscribeCalled,"subscribe called"))}unsubscribe(){this._setUnsubscribed(u.unsubscribeCalled,"unsubscribe called",!0)}publish(e){let t=this;return this._methodCall().then(function(){return t._centrifuge.publish(t.channel,e)})}presence(){let e=this;return this._methodCall().then(function(){return e._centrifuge.presence(e.channel)})}presenceStats(){let e=this;return this._methodCall().then(function(){return e._centrifuge.presenceStats(e.channel)})}history(e){let t=this;return this._methodCall().then(function(){return t._centrifuge.history(t.channel,e)})}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:i.subscriptionUnsubscribed,message:this.state}):new Promise((e,t)=>{let n=setTimeout(function(){t({code:i.timeout,message:"timeout"})},this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===l.Unsubscribed}_isSubscribing(){return this.state===l.Subscribing}_isSubscribed(){return this.state===l.Subscribed}_setState(e){if(this.state!==e){let t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),this._setState(l.Subscribed);let t=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",t),this._resolvePromises();let n=e.publications;if(n&&n.length>0)for(let e in n)n.hasOwnProperty(e)&&this._handlePublication(n[e]);!0===e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),R(e.ttl)))}_setSubscribing(e,t){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(l.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:t}),this._subscribe())}_subscribe(){if(this._centrifuge._debug("subscribing on",this.channel),!this._centrifuge._transportIsOpen)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;let e=this,t={channel:e.channel};return!this._usesToken()||this._token?e._getData?(e._getData(t).then(function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(e._token))}),null):e._sendSubscribe(e._token):(this._getSubscriptionToken().then(function(n){if(e._isSubscribing()){if(!n){e._failUnauthorized();return}e._token=n,e._getData?e._getData(t).then(function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(n))}):e._sendSubscribe(n)}}).catch(function(t){if(e._isSubscribing()){if(t instanceof U){e._failUnauthorized();return}e.emit("error",{type:"subscribeToken",channel:e.channel,error:{code:i.subscriptionSubscribeToken,message:void 0!==t?t.toString():""}}),e._scheduleResubscribe()}}),null)}_sendSubscribe(e){if(!this._centrifuge._transportIsOpen)return null;let t={channel:this.channel};if(e&&(t.token=e),this._data&&(t.data=this._data),this._positioned&&(t.positioned=!0),this._recoverable&&(t.recoverable=!0),this._joinLeave&&(t.join_leave=!0),this._needRecover()){t.recover=!0;let e=this._getOffset();e&&(t.offset=e);let n=this._getEpoch();n&&(t.epoch=n)}let n={subscribe:t};return this._inflight=!0,this._centrifuge._call(n).then(e=>{this._inflight=!1;let t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()},e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()}),n}_handleSubscribeError(e){if(this._isSubscribing()){if(e.code===i.timeout){this._centrifuge._disconnect(o.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(e)}}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,t,n){this._isUnsubscribed()||(this._isSubscribed()&&(n&&this._centrifuge._unsubscribe(this),this._clearSubscribedState()),this._isSubscribing()&&(this._inflight&&n&&this._centrifuge._unsubscribe(this),this._clearSubscribingState()),this._setState(l.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:e,reason:t}),this._rejectPromises({code:i.subscriptionUnsubscribed,message:this.state}))}_handlePublication(e){let t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){let t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){let t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(let e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(let t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){let e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){e._isSubscribing()&&e._subscribe()},t)}_subscribeError(e){if(this._isSubscribing()){if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");let t={channel:this.channel,type:"subscribe",error:e};this._centrifuge.state===c.Connected&&this.emit("error",t),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}}_getResubscribeDelay(){let e=k(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){e&&(e.since&&(this._offset=e.since.offset,this._epoch=e.since.epoch,this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0))}_getOffset(){let e=this._offset;return null!==e?e:0}_getEpoch(){let e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);let e={channel:this.channel},t=this._getToken;if(null===t)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:i.badConfiguration,message:"provide a function to get channel subscription token"}}),new U("");return t(e)}_refresh(){this._clearRefreshTimeout();let e=this;this._getSubscriptionToken().then(function(t){if(!e._isSubscribed())return;if(!t){e._failUnauthorized();return}e._token=t;let n={channel:e.channel,token:t};e._centrifuge._call({sub_refresh:n}).then(t=>{let n=t.reply.sub_refresh;e._refreshResponse(n),t.next&&t.next()},t=>{e._refreshError(t.error),t.next&&t.next()})}).catch(function(t){if(t instanceof U){e._failUnauthorized();return}e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:i.subscriptionRefreshToken,message:void 0!==t?t.toString():""}}),e._refreshTimeout=setTimeout(()=>e._refresh(),e._getRefreshRetryDelay())})}_refreshResponse(e){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),R(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return k(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(u.unauthorized,"unauthorized",!0)}}class O{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class D{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let n="";"protobuf"===e&&(n="centrifuge-protobuf"),""!==n?this._transport=new this.options.websocket(this.endpoint,n):this._transport=new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class j{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw Error(e.status);return e}_fetchEventTarget(e,t,n){let r=new EventTarget;return(0,e.options.fetch)(t,n).then(e._handleErrors).then(t=>{r.dispatchEvent(new Event("open"));let n="",i=0,o=new Uint8Array,a=t.body.getReader();return new e.options.readableStream({start:t=>(function s(){return a.read().then(({done:a,value:u})=>{if(a){r.dispatchEvent(new Event("close")),t.close();return}try{if("json"===e._protocol)for(n+=e._utf8decoder.decode(u);i{r.dispatchEvent(new Event("error",{detail:e})),r.dispatchEvent(new Event("close"))}),r}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!=typeof TextDecoder&&"undefined"!=typeof AbortController&&"undefined"!=typeof EventTarget&&"undefined"!=typeof Event&&"undefined"!=typeof MessageEvent&&"undefined"!=typeof Error}initialize(e,t,n){this._protocol=e,this._abortController=new AbortController;let r={method:"POST",headers:"json"===e?{Accept:"application/json","Content-Type":"application/json"}:{Accept:"application/octet-stream","Content-Type":"application/octet-stream"},body:n,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},i=this._fetchEventTarget(this,this.endpoint,r);i.addEventListener("open",()=>{t.onOpen()}),i.addEventListener("error",e=>{this._abortController.abort(),t.onError(e)}),i.addEventListener("close",()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})}),i.addEventListener("message",e=>{t.onMessage(e.data)})}close(){this._abortController.abort()}send(e,t,n){let r,i;let o={session:t,node:n,data:e};"json"===this._protocol?(r={"Content-Type":"application/json"},i=JSON.stringify(o)):(r={"Content-Type":"application/octet-stream"},i=this.options.encoder.encodeEmulationRequest(o));let a=this.options.fetch,s={method:"POST",headers:r,body:i,mode:"cors",credentials:"same-origin",cache:"no-cache"};a(this.options.emulationEndpoint,s)}}class A{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,n){let r;(r=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint)).searchParams.append("cf_connect",n);let i=new this.options.eventsource(r.toString(),{});this._transport=i,i.onopen=function(){t.onOpen()},i.onerror=function(e){i.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},i.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,n){let r=JSON.stringify({session:t,node:n,data:e});(0,this.options.fetch)(this.options.emulationEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:r,mode:"cors",credentials:"same-origin",cache:"no-cache"})}}function M(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class L{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return M(this,void 0,void 0,function*(){let n,r;n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&n.searchParams.append("cf_protocol","protobuf"),this._protocol=e;let i=new EventTarget;this._transport=new this.options.webtransport(n.toString()),this._transport.closed.then(()=>{t.onClose({code:4,reason:"connection closed"})}).catch(()=>{t.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(e){this.close();return}try{r=yield this._transport.createBidirectionalStream()}catch(e){this.close();return}this._stream=r,this._writer=this._stream.writable.getWriter(),i.addEventListener("close",()=>{t.onClose({code:4,reason:"connection closed"})}),i.addEventListener("message",e=>{t.onMessage(e.data)}),this._startReading(i),t.onOpen()})}_startReading(e){return M(this,void 0,void 0,function*(){let t=this._stream.readable.getReader(),n="",r=0,i=new Uint8Array;try{for(;;){let{done:o,value:a}=yield t.read();if(a.length>0){if("json"===this._protocol)for(n+=this._utf8decoder.decode(a);rJSON.stringify(e)).join("\n")}decodeReplies(e){return e.trim().split("\n").map(e=>JSON.parse(e))}}let I={token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class U extends Error{constructor(e){super(e),this.name=this.constructor.name}}class F extends Z{constructor(e,t){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=c.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new N,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},I),t),this._configure(),this._debugEnabled?(this.on("state",e=>{this._debug("client state",e.oldState,"->",e.newState)}),this.on("error",e=>{this._debug("client error",e)})):this.on("error",function(){Function.prototype()})}newSubscription(e,t){if(null!==this.getSubscription(e))throw Error("Subscription to the channel "+e+" already exists");let n=new P(this,e,t);return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==l.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return this.state===c.Disconnected?Promise.reject({code:i.clientDisconnected,message:"client disconnected"}):this.state===c.Connected?Promise.resolve():new Promise((t,n)=>{let r={resolve:t,reject:n};e&&(r.timeout=setTimeout(function(){n({code:i.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=r})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(a.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}send(e){let t={send:{data:e}},n=this;return this._methodCall().then(function(){return n._transportSendCommands([t])?Promise.resolve():Promise.reject(n._createErrorObject(i.transportWriteError,"transport write error"))})}rpc(e,t){let n={rpc:{method:e,data:t}},r=this;return this._methodCall().then(function(){return r._callPromise(n,function(e){return{data:e.rpc.data}})})}publish(e,t){let n={publish:{channel:e,data:t}},r=this;return this._methodCall().then(function(){return r._callPromise(n,function(){return{}})})}history(e,t){let n={history:this._getHistoryRequest(e,t)},r=this;return this._methodCall().then(function(){return r._callPromise(n,function(t){let n=t.history,i=[];if(n.publications)for(let t=0;t["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n))throw Error("unsupported transport name: "+n)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(e){if(this.state!==e){this._reconnecting=!1;let t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===c.Disconnected}_isConnecting(){return this.state===c.Connecting}_isConnected(){return this.state===c.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:void 0!==globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===c.Connected||this.state===c.Connecting)&&(this._disconnect(o.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),e.addEventListener("online",()=>{this._debug("online event triggered"),this.state===c.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){let e=k(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(let e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){let t=this._callbacks[e];clearTimeout(t.timeout);let n=t.errback;if(!n)continue;n({error:this._createErrorObject(i.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){for(let e in this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout(),this._subs){if(!this._subs.hasOwnProperty(e))continue;let t=this._subs[e];t.state===l.Subscribed&&t._setSubscribing(s.transportClosed,"transport closed")}for(let e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(let t of e){let e=t.id;if(!(e in this._callbacks))continue;let n=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e],(0,n.errback)({error:this._createErrorObject(i.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e,t;null!==this._config.websocket?e=this._config.websocket:"function"!=typeof globalThis.WebSocket&&"object"!=typeof globalThis.WebSocket||(e=globalThis.WebSocket);let n=null;null!==this._config.sockjs?n=this._config.sockjs:void 0!==globalThis.SockJS&&(n=globalThis.SockJS);let r=null;null!==this._config.eventsource?r=this._config.eventsource:void 0!==globalThis.EventSource&&(r=globalThis.EventSource);let s=null;null!==this._config.fetch?s=this._config.fetch:void 0!==globalThis.fetch&&(s=globalThis.fetch);let u=null;if(null!==this._config.readableStream?u=this._config.readableStream:void 0!==globalThis.ReadableStream&&(u=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let t=0;for(;;){if(t>=this._transports.length)throw Error("no supported transport found");let i=this._transports[this._currentTransportIndex],o=i.transport,a=i.endpoint;if("websocket"===o){if(this._debug("trying websocket transport"),this._transport=new D(a,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,t++;continue}}else if("webtransport"===o){if(this._debug("trying webtransport transport"),this._transport=new L(a,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,t++;continue}}else if("http_stream"===o){if(this._debug("trying http_stream transport"),this._transport=new j(a,{fetch:s,readableStream:u,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,t++;continue}}else if("sse"===o){if(this._debug("trying sse transport"),this._transport=new A(a,{eventsource:r,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,t++;continue}}else if("sockjs"===o){if(this._debug("trying sockjs"),this._transport=new O(a,{sockjs:n,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,t++;continue}}else throw Error("unknown transport "+o);break}}else{var c,l;if(c=this._endpoint,l="http",0===c.lastIndexOf(l,0))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new D(this._endpoint,{websocket:e}),!this._transport.supported())throw Error("WebSocket not available")}let d=this,h=this._transport,f=this._nextTransportId();d._debug("id of transport",f);let p=!1,v=[];if(this._transport.emulation()){let e=d._sendConnect(!0);v.push(e)}this._setNetworkEvents();let m=this._codec.encodeCommands(v);this._transportClosed=!1,t=setTimeout(function(){h.close()},this._config.timeout),this._transport.initialize(this._codec.name(),{onOpen:function(){if(t&&(clearTimeout(t),t=null),d._transportId!=f){d._debug("open callback from non-actual transport"),h.close();return}p=!0,d._debug(h.subName(),"transport open"),h.emulation()||(d._transportIsOpen=!0,d._transportWasOpen=!0,d.startBatching(),d._sendConnect(!1),d._sendSubscribeCommands(),d.stopBatching(),d.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){if(d._transportId!=f){d._debug("error callback from non-actual transport");return}d._debug("transport level error",e)},onClose:function(e){if(t&&(clearTimeout(t),t=null),d._transportId!=f){d._debug("close callback from non-actual transport");return}d._debug(h.subName(),"transport closed"),d._transportClosed=!0,d._transportIsOpen=!1;let n="connection closed",r=!0,s=0;if(e&&"code"in e&&e.code&&(s=e.code),e&&e.reason)try{let t=JSON.parse(e.reason);n=t.reason,r=t.reconnect}catch(t){n=e.reason,(s>=3500&&s<4e3||s>=4500&&s<5e3)&&(r=!1)}s<3e3?(1009===s?(s=a.messageSizeLimit,n="message size limit exceeded",r=!1):(s=o.transportClosed,n="transport closed"),d._emulation&&!d._transportWasOpen&&(d._currentTransportIndex++,d._currentTransportIndex>=d._transports.length&&(d._triedAllTransports=!0,d._currentTransportIndex=0))):d._transportWasOpen=!0,d._isConnecting()&&!p&&d.emit("error",{type:"transport",error:{code:i.transportClosed,message:"transport closed"},transport:h.name()}),d._reconnecting=!1,d._disconnect(s,n,r)},onMessage:function(e){d._dataReceived(e)}},m),d.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){let t=this._constructConnectCommand(),n=this;return this._call(t,e).then(e=>{let t=e.reply.connect;n._connectResponse(t),e.next&&e.next()},e=>{n._connectError(e.error),e.next&&e.next()}),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(!1===this._transportClosed){this._debug("waiting for transport close");return}this._reconnecting=!0;let e=this,t=""===this._token;if(!(this._refreshRequired||t&&null!==this._config.getToken)){this._config.getData?this._config.getData().then(function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())}):this._initializeTransport();return}this._getToken().then(function(t){if(e._isConnecting()){if(null==t||void 0==t){e._failUnauthorized();return}e._token=t,e._debug("connection token refreshed"),e._config.getData?e._config.getData().then(function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())}):e._initializeTransport()}}).catch(function(t){if(!e._isConnecting())return;if(t instanceof U){e._failUnauthorized();return}e.emit("error",{type:"connectToken",error:{code:i.clientConnectToken,message:void 0!==t?t.toString():""}});let n=e._getReconnectDelay();e._debug("error on connection token refresh, reconnect after "+n+" milliseconds",t),e._reconnecting=!1,e._reconnectTimeout=setTimeout(()=>{e._startReconnecting()},n)})}_connectError(e){this.state===c.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},t)}_constructConnectCommand(){let e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version);let t={},n=!1;for(let e in this._serverSubs)if(this._serverSubs.hasOwnProperty(e)&&this._serverSubs[e].recoverable){n=!0;let r={recover:!0};this._serverSubs[e].offset&&(r.offset=this._serverSubs[e].offset),this._serverSubs[e].epoch&&(r.epoch=this._serverSubs[e].epoch),t[e]=r}return n&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){let n={channel:e};return void 0!==t&&(t.since&&(n.since={offset:t.since.offset},t.since.epoch&&(n.since.epoch=t.since.epoch)),void 0!==t.limit&&(n.limit=t.limit),!0===t.reverse&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(function(){t({code:i.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}})}_callPromise(e,t){return new Promise((n,r)=>{this._call(e,!1).then(e=>{n(t(e.reply)),e.next&&e.next()},e=>{r(e.error),e.next&&e.next()})})}_dataReceived(e){this._serverPing>0&&this._waitServerPing();let t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then(()=>{let e;this._dispatchPromise=new Promise(t=>{e=t}),this._dispatchSynchronized(t,e)})}_dispatchSynchronized(e,t){let n=Promise.resolve();for(let t in e)e.hasOwnProperty(t)&&(n=n.then(()=>this._dispatchReply(e[t])));n.then(()=>{t()})}_dispatchReply(e){let t;let n=new Promise(e=>{t=e});if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),n;let r=e.id;return r&&r>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),n}_call(e,t){return new Promise((n,r)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,r),t||this._addCommand(e)})}_startConnecting(){this._debug("start connecting"),this._setState(c.Connecting)&&this.emit("connecting",{code:o.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,t,n){if(this._isDisconnected())return;this._transportIsOpen=!1;let r=this.state;this._reconnecting=!1;let o={code:e,reason:t},a=!1;if(n?a=this._setState(c.Connecting):(a=this._setState(c.Disconnected),this._rejectPromises({code:i.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),r===c.Connecting&&this._clearReconnectTimeout(),r===c.Connected&&this._clearConnectedState(),a&&(this._isConnecting()?this.emit("connecting",o):this.emit("disconnected",o)),this._transport){this._debug("closing existing transport");let e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(a.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:i.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new U("");return this._config.getToken({})}_refresh(){let e=this._client,t=this;this._getToken().then(function(n){if(e!==t._client)return;if(!n){t._failUnauthorized();return}if(t._token=n,t._debug("connection token refreshed"),!t._isConnected())return;let r={refresh:{token:t._token}};t._call(r,!1).then(e=>{let n=e.reply.refresh;t._refreshResponse(n),e.next&&e.next()},e=>{t._refreshError(e.error),e.next&&e.next()})}).catch(function(e){if(t._isConnected()){if(e instanceof U){t._failUnauthorized();return}t.emit("error",{type:"refreshToken",error:{code:i.clientRefreshToken,message:void 0!==e?e.toString():""}}),t._refreshTimeout=setTimeout(()=>t._refresh(),t._getRefreshRetryDelay())}})}_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return k(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout(()=>this._refresh(),R(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return;let t={channel:e.channel},n=this;this._call({unsubscribe:t},!1).then(e=>{e.next&&e.next()},e=>{e.next&&e.next(),n._disconnect(o.unsubscribeError,"unsubscribe error",!0)})}_getSub(e){return this._subs[e]||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){let e=[];for(let t in this._subs){if(!this._subs.hasOwnProperty(t))continue;let n=this._subs[t];if(!0!==n._inflight&&n.state===l.Subscribing){let t=n._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(c.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),R(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let t={client:e.client,transport:this._transport.subName()};e.data&&(t.data=e.data),this.emit("connected",t),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(let t in e){if(!e.hasOwnProperty(t))continue;let n=e[t];this._serverSubs[t]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};let r=this._getSubscribeContext(t,n);this.emit("subscribed",r)}for(let t in e){if(!e.hasOwnProperty(t))continue;let n=e[t];if(n.recovered){let e=n.publications;if(e&&e.length>0)for(let n in e)e.hasOwnProperty(n)&&this._handlePublication(t,e[n])}}for(let t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(o.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){let n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};t.recovered&&(n.recovered=!0),t.positioned&&(n.positioned=!0),t.recoverable&&(n.recoverable=!0),t.was_recovering&&(n.wasRecovering=!0);let r="";"epoch"in t&&(r=t.epoch);let i=0;return"offset"in t&&(i=t.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:i,epoch:r}),t.data&&(n.data=t.data),n}_handleReply(e,t){let n=e.id;if(!(n in this._callbacks)){t();return}let r=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],"error"in e&&null!==e.error){let n=r.errback;if(!n){t();return}n({error:e.error,next:t})}else{let n=r.callback;if(!n)return;n({reply:e,next:t})}}_handleJoin(e,t){let n=this._getSub(e);if(!n){if(this._isServerSub(e)){let n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("join",n)}return}n._handleJoin(t)}_handleLeave(e,t){let n=this._getSub(e);if(!n){if(this._isServerSub(e)){let n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",n)}return}n._handleLeave(t)}_handleUnsubscribe(e,t){let n=this._getSub(e);if(!n){this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}));return}t.code<2500?n._setUnsubscribed(t.code,t.reason,!1):n._setSubscribing(t.code,t.reason)}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){let t=e.code,n=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(n=!1),this._disconnect(t,e.reason,n)}_getPublicationContext(e,t){let n={channel:e,data:t.data};return t.offset&&(n.offset=t.offset),t.info&&(n.info=this._getJoinLeaveContext(t.info)),t.tags&&(n.tags=t.tags),n}_getJoinLeaveContext(e){let t={client:e.client,user:e.user};return e.conn_info&&(t.connInfo=e.conn_info),e.chan_info&&(t.chanInfo=e.chan_info),t}_handlePublication(e,t){let n=this._getSub(e);if(!n){if(this._isServerSub(e)){let n=this._getPublicationContext(e,t);this.emit("publication",n),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}return}n._handlePublication(t)}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){this._sendPong&&this._transportSendCommands([{}]),e()}_handlePush(e,t){let n=e.channel;e.pub?this._handlePublication(n,e.pub):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join):e.leave?this._handleLeave(n,e.leave):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){let e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,n){let r={code:e,message:t};return n&&(r.temporary=!0),r}_registerCall(e,t,n){this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout(()=>{delete this._callbacks[e],x(n)&&n({error:this._createErrorObject(i.timeout,"timeout")})},this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(let t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}F.SubscriptionState=l,F.State=c,F.UnauthorizedError=U},47169:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},64649:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(55217);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},25773:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},93219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6983);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},50189:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(64649);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},6983:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:()=>r})},55217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(33940);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},33940:(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})(e)}n.d(t,{Z:()=>r})},18775:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{_:()=>r})},4007:(e,t,n)=>{"use strict";function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===l(e)}n.d(t,{Z:()=>z});let i=1/0;function o(e){return"string"==typeof e}function a(e){return"number"==typeof e}function s(e){return"object"==typeof e}function u(e){return null!=e}function c(e){return!e.trim().length}function l(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=e=>`Invalid value for key ${e}`,h=e=>`Pattern length exceeds max of ${e}.`,f=e=>`Missing ${e} property in key`,p=e=>`Property 'weight' in key '${e}' must be a positive integer`,v=Object.prototype.hasOwnProperty;class m{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=g(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function g(e){let t=null,n=null,i=null,a=1,s=null;if(o(e)||r(e))i=e,t=_(e),n=y(e);else{if(!v.call(e,"name"))throw Error(f("name"));let r=e.name;if(i=r,v.call(e,"weight")&&(a=e.weight)<=0)throw Error(p(r));t=_(r),n=y(r),s=e.getFn}return{path:t,id:n,weight:a,src:i,getFn:s}}function _(e){return r(e)?e:e.split(".")}function y(e){return r(e)?e.join("."):e}var b={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(u(e)){if(t[h]){var f,p;let v=e[t[h]];if(u(v)){if(h===t.length-1&&(o(v)||a(v)||!0===(f=v)||!1===f||s(p=f)&&null!==p&&"[object Boolean]"==l(f)))n.push(null==v?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-i?"-0":t}(v));else if(r(v)){c=!0;for(let e=0,n=v.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(u(a)){if(r(a)){let e=[],t=[{nestedArrIndex:-1,value:a}];for(;t.length;){let{nestedArrIndex:n,value:i}=t.pop();if(u(i)){if(o(i)&&!c(i)){let t={v:i,i:n,n:this.norm.get(i)};e.push(t)}else r(i)&&i.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}}n.$[i]=e}else if(o(a)&&!c(a)){let e={v:a,n:this.norm.get(a)};n.$[i]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function S(e,t,{getFn:n=b.getFn,fieldNormWeight:r=b.fieldNormWeight}={}){let i=new T({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(g)),i.setSources(t),i.create(),i}function E(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=b.distance,ignoreLocation:o=b.ignoreLocation}={}){let a=t/e.length;if(o)return a;let s=Math.abs(r-n);return i?a+s/i:s?1:a}class C{constructor(e,{location:t=b.location,threshold:n=b.threshold,distance:r=b.distance,includeMatches:i=b.includeMatches,findAllMatches:o=b.findAllMatches,minMatchCharLength:a=b.minMatchCharLength,isCaseSensitive:s=b.isCaseSensitive,ignoreLocation:u=b.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let n=0,r=e.length;n32){let e=0,t=l%32,n=l-t;for(;e{let{isMatch:v,score:m,indices:g}=function(e,t,n,{location:r=b.location,distance:i=b.distance,threshold:o=b.threshold,findAllMatches:a=b.findAllMatches,minMatchCharLength:s=b.minMatchCharLength,includeMatches:u=b.includeMatches,ignoreLocation:c=b.ignoreLocation}={}){let l;if(t.length>32)throw Error(h(32));let d=t.length,f=e.length,p=Math.max(0,Math.min(r,f)),v=o,m=p,g=s>1||u,_=g?Array(f):[];for(;(l=e.indexOf(t,m))>-1;)if(v=Math.min(E(t,{currentLocation:l,expectedLocation:p,distance:i,ignoreLocation:c}),v),m=l+d,g){let e=0;for(;e=u;o-=1){let a=o-1,s=n[e.charAt(a)];if(g&&(_[a]=+!!s),h[o]=(h[o+1]<<1|1)&s,r&&(h[o]|=(y[o+1]|y[o])<<1|1|y[o+1]),h[o]&S&&(w=E(t,{errors:r,currentLocation:a,expectedLocation:p,distance:i,ignoreLocation:c}))<=v){if(v=w,(m=a)<=p)break;u=Math.max(1,2*p-m)}}if(E(t,{errors:r+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:c})>v)break;y=h}let C={isMatch:m>=0,score:Math.max(.001,w)};if(g){let e=function(e=[],t=b.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(_,s);e.length?u&&(C.indices=e):C.isMatch=!1}return C}(e,t,f,{location:r+p,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:u});v&&(d=!0),l+=m,v&&g&&(c=[...c,...g])});let f={isMatch:d,score:d?l/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class Z{constructor(e){this.pattern=e}static isMultiMatch(e){return x(e,this.multiRegex)}static isSingleMatch(e){return x(e,this.singleRegex)}search(){}}function x(e,t){let n=e.match(t);return n?n[1]:null}class k extends Z{constructor(e,{location:t=b.location,threshold:n=b.threshold,distance:r=b.distance,includeMatches:i=b.includeMatches,findAllMatches:o=b.findAllMatches,minMatchCharLength:a=b.minMatchCharLength,isCaseSensitive:s=b.isCaseSensitive,ignoreLocation:u=b.ignoreLocation}={}){super(e),this._bitapSearch=new C(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class R extends Z{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0,r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);let o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}let P=[class extends Z{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},R,class extends Z{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Z{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Z{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Z{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Z{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},k],O=P.length,D=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,j=new Set([k.type,R.type]),A=[];function M(e,t){for(let n=0,r=A.length;n!!(e[L.AND]||e[L.OR]),U=e=>!!e[N.PATH],F=e=>!r(e)&&s(e)&&!I(e),Y=e=>({[L.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function B(e,t,{auto:n=!0}={}){let i=e=>{let a=Object.keys(e),s=U(e);if(!s&&a.length>1&&!I(e))return i(Y(e));if(F(e)){let r=s?e[N.PATH]:a[0],i=s?e[N.PATTERN]:e[r];if(!o(i))throw Error(d(r));let u={keyId:y(r),pattern:i};return n&&(u.searcher=M(i,t)),u}let u={children:[],operator:a[0]};return a.forEach(t=>{let n=e[t];r(n)&&n.forEach(e=>{u.children.push(i(e))})}),u};return I(e)||(e=Y(e)),i(e)}function $(e,t){let n=e.matches;t.matches=[],u(n)&&n.forEach(e=>{if(!u(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function G(e,t){t.score=e.score}class z{constructor(e,t={},n){this.options={...b,...t},this.options.useExtendedSearch,this._keyStore=new m(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof T))throw Error("Incorrect 'index' type");this._myIndex=t||S(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){u(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))}),e.score=n})}(c,{ignoreFieldNorm:u}),i&&c.sort(s),a(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:n=b.includeMatches,includeScore:r=b.includeScore}={}){let i=[];return n&&i.push($),r&&i.push(G),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}(c,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=M(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!u(e))return;let{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=B(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}let i=[];for(let o=0,a=e.children.length;o{if(u(e)){let a=n(t,e,r);a.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),a.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),o}_searchObjectList(e){let t=M(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!u(e))return;let o=[];n.forEach((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),o.length&&i.push({idx:r,item:e,matches:o})}),i}_findMatches({key:e,value:t,searcher:n}){if(!u(t))return[];let i=[];if(r(t))t.forEach(({v:t,i:r,n:o})=>{if(!u(t))return;let{isMatch:a,score:s,indices:c}=n.searchIn(t);a&&i.push({score:s,key:e,value:t,idx:r,norm:o,indices:c})});else{let{v:r,n:o}=t,{isMatch:a,score:s,indices:u}=n.searchIn(r);a&&i.push({score:s,key:e,value:r,norm:o,indices:u})}return i}}z.version="7.0.0",z.createIndex=S,z.parseIndex=function(e,{getFn:t=b.getFn,fieldNormWeight:n=b.fieldNormWeight}={}){let{keys:r,records:i}=e,o=new T({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},z.config=b,z.parseQuery=B,function(...e){A.push(...e)}(class{constructor(e,{isCaseSensitive:t=b.isCaseSensitive,includeMatches:n=b.includeMatches,minMatchCharLength:r=b.minMatchCharLength,ignoreLocation:i=b.ignoreLocation,findAllMatches:o=b.findAllMatches,location:a=b.location,threshold:s=b.threshold,distance:u=b.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:u},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let n=e.trim().split(D).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e{"use strict";n.d(t,{Z:()=>s});var r=n(28916);let i=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return -1};var o=Array.prototype.splice;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},a.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let s=a},46462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23203),i=n(97659);let o=(0,r.Z)(i.Z,"Map")},3026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=(0,n(23203).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{"use strict";n.d(t,{Z:()=>o});var r=n(23203),i=n(97659);let o=(0,r.Z)(i.Z,"Set")},8484:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3026);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.Z;++t{"use strict";n.d(t,{Z:()=>s});var r=n(31588),i=n(46462),o=n(3026);function a(e){var t=this.__data__=new r.Z(e);this.size=t.size}a.prototype.clear=function(){this.__data__=new r.Z,this.size=0},a.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},a.prototype.get=function(e){return this.__data__.get(e)},a.prototype.has=function(e){return this.__data__.has(e)},a.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.Z){var a=n.__data__;if(!i.Z||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o.Z(a)}return n.set(e,t),this.size=n.size,this};let s=a},9e3:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=n(97659).Z.Symbol},56421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=n(97659).Z.Uint8Array},64220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23203),i=n(97659);let o=(0,r.Z)(i.Z,"WeakMap")},2144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},62020:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n{"use strict";n.d(t,{Z:()=>i});var r=n(52357);let i=function(e,t){return!!(null==e?0:e.length)&&(0,r.Z)(e,t,0)>-1}},40670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r{"use strict";n.d(t,{Z:()=>l});var r=n(74455),i=n(23857),o=n(47838),a=n(89685),s=n(62916),u=n(84902),c=Object.prototype.hasOwnProperty;let l=function(e,t){var n=(0,o.Z)(e),l=!n&&(0,i.Z)(e),d=!n&&!l&&(0,a.Z)(e),h=!n&&!l&&!d&&(0,u.Z)(e),f=n||l||d||h,p=f?(0,r.Z)(e.length,String):[],v=p.length;for(var m in e)(t||c.call(e,m))&&!(f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.Z)(m,v)))&&p.push(m);return p}},90497:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){for(var n=-1,r=t.length,i=e.length;++n{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{"use strict";n.d(t,{Z:()=>a});var r=n(10541),i=n(28916),o=Object.prototype.hasOwnProperty;let a=function(e,t,n){var a=e[t];o.call(e,t)&&(0,i.Z)(a,n)&&(void 0!==n||t in e)||(0,r.Z)(e,t,n)}},10541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(42452);let i=function(e,t,n){"__proto__"==t&&r.Z?(0,r.Z)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},78113:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B});var r=n(86757),i=n(62020),o=n(84424),a=n(46518),s=n(94778),u=n(62742),c=n(23999),l=n(98058),d=n(57538),h=n(27209),f=n(22879),p=n(9229),v=n(22673),m=Object.prototype.hasOwnProperty;let g=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&m.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var _=n(37659);let y=function(e,t){var n=t?(0,_.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var b=/\w*$/;let w=function(e){var t=new e.constructor(e.source,b.exec(e));return t.lastIndex=e.lastIndex,t};var T=n(9e3),S=T.Z?T.Z.prototype:void 0,E=S?S.valueOf:void 0,C=n(24763);let Z=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,_.Z)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return y(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,C.Z)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return w(e);case"[object Symbol]":return E?Object(E.call(e)):{}}};var x=n(72329),k=n(47838),R=n(89685),P=n(18742),O=n(42052),D=n(17433),j=D.Z&&D.Z.isMap,A=j?(0,O.Z)(j):function(e){return(0,P.Z)(e)&&"[object Map]"==(0,v.Z)(e)},M=n(80369),L=D.Z&&D.Z.isSet,N=L?(0,O.Z)(L):function(e){return(0,P.Z)(e)&&"[object Set]"==(0,v.Z)(e)},I="[object Arguments]",U="[object Function]",F="[object Object]",Y={};Y[I]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object DataView]"]=Y["[object Boolean]"]=Y["[object Date]"]=Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Map]"]=Y["[object Number]"]=Y[F]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[object Symbol]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Error]"]=Y[U]=Y["[object WeakMap]"]=!1;let B=function e(t,n,m,_,y,b){var w,T=1&n,S=2&n,E=4&n;if(m&&(w=y?m(t,_,y,b):m(t)),void 0!==w)return w;if(!(0,M.Z)(t))return t;var C=(0,k.Z)(t);if(C){if(w=g(t),!T)return(0,l.Z)(t,w)}else{var P,O,D,j,L=(0,v.Z)(t),B=L==U||"[object GeneratorFunction]"==L;if((0,R.Z)(t))return(0,c.Z)(t,T);if(L==F||L==I||B&&!y){if(w=S||B?{}:(0,x.Z)(t),!T)return S?(O=(P=w)&&(0,a.Z)(t,(0,u.Z)(t),P),(0,a.Z)(t,(0,h.Z)(t),O)):(j=(D=w)&&(0,a.Z)(t,(0,s.Z)(t),D),(0,a.Z)(t,(0,d.Z)(t),j))}else{if(!Y[L])return y?t:{};w=Z(t,L,T)}}b||(b=new r.Z);var $=b.get(t);if($)return $;b.set(t,w),N(t)?t.forEach(function(r){w.add(e(r,n,m,r,t,b))}):A(t)&&t.forEach(function(r,i){w.set(i,e(r,n,m,i,t,b))});var G=E?S?p.Z:f.Z:S?u.Z:s.Z,z=C?void 0:G(t);return(0,i.Z)(z||t,function(r,i){z&&(r=t[i=r]),(0,o.Z)(w,i,e(r,n,m,i,t,b))}),w}},4865:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(80369),i=Object.create;let o=function(){function e(){}return function(t){if(!(0,r.Z)(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()},84011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n){if("function"!=typeof e)throw TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}},99978:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(8484),i=n(13744),o=n(40670),a=n(90497),s=n(42052),u=n(58923);let c=function(e,t,n,c){var l=-1,d=i.Z,h=!0,f=e.length,p=[],v=t.length;if(!f)return p;n&&(t=(0,a.Z)(t,(0,s.Z)(n))),c?(d=o.Z,h=!1):t.length>=200&&(d=u.Z,h=!1,t=new r.Z(t));t:for(;++l{"use strict";n.d(t,{Z:()=>a});var r,i=n(51877),o=n(79458);let a=(r=i.Z,function(e,t){if(null==e)return e;if(!(0,o.Z)(e))return r(e,t);for(var n=e.length,i=-1,a=Object(e);++i{"use strict";n.d(t,{Z:()=>i});var r=n(54878);let i=function(e,t,n){for(var i=-1,o=e.length;++i{"use strict";n.d(t,{Z:()=>i});var r=n(95790);let i=function(e,t){var n=[];return(0,r.Z)(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},78953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o{"use strict";n.d(t,{Z:()=>c});var r=n(37891),i=n(9e3),o=n(23857),a=n(47838),s=i.Z?i.Z.isConcatSpreadable:void 0;let u=function(e){return(0,a.Z)(e)||(0,o.Z)(e)||!!(s&&e&&e[s])},c=function e(t,n,i,o,a){var s=-1,c=t.length;for(i||(i=u),a||(a=[]);++s0&&i(l)?n>1?e(l,n-1,i,o,a):(0,r.Z)(a,l):o||(a[a.length]=l)}return a}},64157:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e}},51877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(64157),i=n(94778);let o=function(e,t){return e&&(0,r.Z)(e,t,i.Z)}},42825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(50364),i=n(99316);let o=function(e,t){t=(0,r.Z)(t,e);for(var n=0,o=t.length;null!=e&&n{"use strict";n.d(t,{Z:()=>o});var r=n(37891),i=n(47838);let o=function(e,t,n){var o=t(e);return(0,i.Z)(e)?o:(0,r.Z)(o,n(e))}},74029:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(9e3),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.Z?r.Z.toStringTag:void 0;let u=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i};var c=Object.prototype.toString,l=r.Z?r.Z.toStringTag:void 0;let d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?u(e):c.call(e)}},90693:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return e>t}},52357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(78953);let i=function(e){return e!=e},o=function(e,t,n){for(var r=n-1,i=e.length;++r{"use strict";n.d(t,{Z:()=>R});var r=n(86757),i=n(8484),o=n(766),a=n(58923);let s=function(e,t,n,r,s,u){var c=1&n,l=e.length,d=t.length;if(l!=d&&!(c&&d>l))return!1;var h=u.get(e),f=u.get(t);if(h&&f)return h==t&&f==e;var p=-1,v=!0,m=2&n?new i.Z:void 0;for(u.set(e,t),u.set(t,e);++p{"use strict";n.d(t,{Z:()=>v});var r=n(34533),i=n(63072),o=n(69396),a=n(3171),s=n(67990),u=n(20837),c=n(38499),l=n(99316),d=n(84111),h=n(47838),f=n(32965),p=n(42825);let v=function(e){var t,n,v;if("function"==typeof e)return e;if(null==e)return d.Z;if("object"==typeof e){return(0,h.Z)(e)?(t=e[0],n=e[1],(0,s.Z)(t)&&(0,u.Z)(n)?(0,c.Z)((0,l.Z)(t),n):function(e){var r=(0,o.Z)(e,t);return void 0===r&&r===n?(0,a.Z)(e,t):(0,i.Z)(n,r,3)}):(0,r.Z)(e)}return v=e,(0,s.Z)(v)?(0,f.Z)((0,l.Z)(v)):function(e){return(0,p.Z)(e,v)}}},23382:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(54357),i=(0,n(84068).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let a=function(e){if(!(0,r.Z)(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},16778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return e{"use strict";n.d(t,{Z:()=>l});var r=n(86757),i=n(63072);let o=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a{"use strict";n.d(t,{Z:()=>E});var r=n(86757),i=n(10541),o=n(28916);let a=function(e,t,n){(void 0===n||(0,o.Z)(e[t],n))&&(void 0!==n||t in e)||(0,i.Z)(e,t,n)};var s=n(64157),u=n(23999),c=n(24763),l=n(98058),d=n(72329),h=n(23857),f=n(47838),p=n(93530),v=n(89685),m=n(78246),g=n(80369),_=n(22701),y=n(84902);let b=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var w=n(46518),T=n(62742);let S=function(e,t,n,r,i,o,s){var S=b(e,n),E=b(t,n),C=s.get(E);if(C){a(e,n,C);return}var Z=o?o(S,E,n+"",e,t,s):void 0,x=void 0===Z;if(x){var k=(0,f.Z)(E),R=!k&&(0,v.Z)(E),P=!k&&!R&&(0,y.Z)(E);(Z=E,k||R||P)?(0,f.Z)(S)?Z=S:(0,p.Z)(S)?Z=(0,l.Z)(S):R?(x=!1,Z=(0,u.Z)(E,!0)):P?(x=!1,Z=(0,c.Z)(E,!0)):Z=[]:(0,_.Z)(E)||(0,h.Z)(E)?(Z=S,(0,h.Z)(S))?Z=(0,w.Z)(S,(0,T.Z)(S)):(!(0,g.Z)(S)||(0,m.Z)(S))&&(Z=(0,d.Z)(E)):x=!1}x&&(s.set(E,Z),i(Z,E,r,o,s),s.delete(E)),a(e,n,Z)},E=function e(t,n,i,o,u){t!==n&&(0,s.Z)(n,function(s,c){if(u||(u=new r.Z),(0,g.Z)(s))S(t,n,c,i,e,o,u);else{var l=o?o(b(t,c),s,c+"",t,n,u):void 0;void 0===l&&(l=s),a(t,c,l)}},T.Z)}},59949:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(90497),i=n(42825),o=n(62129),a=n(95790),s=n(79458);let u=function(e,t){var n=-1,r=(0,s.Z)(e)?Array(e.length):[];return(0,a.Z)(e,function(e,i,o){r[++n]=t(e,i,o)}),r},c=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var l=n(42052),d=n(54878);let h=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=(0,d.Z)(e),a=void 0!==t,s=null===t,u=t==t,c=(0,d.Z)(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e=s)return u;return u*("desc"==n[r]?-1:1)}}return e.index-t.index};var p=n(84111),v=n(47838);let m=function(e,t,n){t=t.length?(0,r.Z)(t,function(e){return(0,v.Z)(e)?function(t){return(0,i.Z)(t,1===e.length?e[0]:e)}:e}):[p.Z];var a=-1;return t=(0,r.Z)(t,(0,l.Z)(o.Z)),c(u(e,function(e,n,i){return{criteria:(0,r.Z)(t,function(t){return t(e)}),index:++a,value:e}}),function(e,t){return f(e,t,n)})}},24217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(42825),i=n(4581),o=n(50364);let a=function(e,t,n){for(var a=-1,s=t.length,u={};++a{"use strict";n.d(t,{Z:()=>r});let r=function(e){return function(t){return null==t?void 0:t[e]}}},97590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return function(t){return null==e?void 0:e[t]}}},72597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Math.floor,i=Math.random;let o=function(e,t){return e+r(i()*(t-e+1))}},92042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(84111),i=n(6579),o=n(28814);let a=function(e,t){return(0,o.Z)((0,i.Z)(e,t,r.Z),e+"")}},4581:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(84424),i=n(50364),o=n(62916),a=n(80369),s=n(99316);let u=function(e,t,n,u){if(!(0,a.Z)(e))return e;t=(0,i.Z)(t,e);for(var c=-1,l=t.length,d=l-1,h=e;null!=h&&++c{"use strict";n.d(t,{Z:()=>r});let r=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){for(var n=-1,r=Array(e);++n{"use strict";n.d(t,{Z:()=>l});var r=n(9e3),i=n(90497),o=n(47838),a=n(54878),s=1/0,u=r.Z?r.Z.prototype:void 0,c=u?u.toString:void 0;let l=function e(t){if("string"==typeof t)return t;if((0,o.Z)(t))return(0,i.Z)(t,e)+"";if((0,a.Z)(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},38305:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=/\s/;let i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var o=/^\s+/;let a=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},42052:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return function(t){return e(t)}}},81321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(8484),i=n(13744),o=n(40670),a=n(58923),s=n(79228),u=n(37051),c=n(80877),l=s.Z&&1/(0,c.Z)(new s.Z([,-0]))[1]==1/0?function(e){return new s.Z(e)}:u.Z;let d=function(e,t,n){var s=-1,u=i.Z,d=e.length,h=!0,f=[],p=f;if(n)h=!1,u=o.Z;else if(d>=200){var v=t?null:l(e);if(v)return(0,c.Z)(v);h=!1,u=a.Z,p=new r.Z}else p=t?[]:f;t:for(;++s{"use strict";n.d(t,{Z:()=>s});var r=n(50364),i=n(98064),o=n(41731),a=n(99316);let s=function(e,t){return t=(0,r.Z)(t,e),null==(e=(0,o.Z)(e,t))||delete e[a.Z(i.Z(t))]}},58923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return e.has(t)}},22412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(84111);let i=function(e){return"function"==typeof e?e:r.Z}},50364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(47838),i=n(67990),o=n(77397),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,u=function(e){var t=(0,o.Z)(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,r,i){t.push(r?i.replace(s,"$1"):n||e)}),t}),c=n(15054);let l=function(e,t){return(0,r.Z)(e)?e:(0,i.Z)(e,t)?[e]:u((0,c.Z)(e))}},18226:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(69718);let i=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:(0,r.Z)(e,t,n)}},37659:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(56421);let i=function(e){var t=new e.constructor(e.byteLength);return new r.Z(t).set(new r.Z(e)),t}},23999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(97659),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i?r.Z.Buffer:void 0,s=a?a.allocUnsafe:void 0;let u=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},24763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(37659);let i=function(e,t){var n=t?(0,r.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},98058:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{"use strict";n.d(t,{Z:()=>o});var r=n(84424),i=n(10541);let o=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s{"use strict";n.d(t,{Z:()=>u});let r=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i{"use strict";n.d(t,{Z:()=>o});var r=n(92042),i=n(84264);let o=function(e){return(0,r.Z)(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&(0,i.Z)(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r{"use strict";n.d(t,{Z:()=>j});var r=n(33508),i=(0,n(97590).Z)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),o=n(15054),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),u=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,c=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,l="\ud800-\udfff",d="\\u2700-\\u27bf",h="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="['’]",m="["+p+"]",g="["+h+"]",_="[^"+l+p+"\\d+"+d+h+f+"]",y="(?:\ud83c[\udde6-\uddff]){2}",b="[\ud800-\udbff][\udc00-\udfff]",w="["+f+"]",T="(?:"+g+"|"+_+")",S="(?:"+w+"|"+_+")",E="(?:"+v+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+v+"(?:D|LL|M|RE|S|T|VE))?",Z="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",x="[\\ufe0e\\ufe0f]?",k="(?:\\u200d(?:"+["[^"+l+"]",y,b].join("|")+")"+x+Z+")*",R="(?:"+["["+d+"]",y,b].join("|")+")"+(x+Z+k),P=RegExp([w+"?"+g+"+"+E+"(?="+[m,w,"$"].join("|")+")",S+"+"+C+"(?="+[m,w+T,"$"].join("|")+")",w+"?"+T+"+"+E,w+"+"+C,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",R].join("|"),"g");let O=function(e,t,n){if(e=(0,o.Z)(e),void 0===(t=n?void 0:t)){var r;return(r=e,c.test(r))?e.match(P)||[]:e.match(u)||[]}return e.match(t)||[]};var D=RegExp("['’]","g");let j=function(e){return function(t){var n;return(0,r.Z)(O((n=t,(n=(0,o.Z)(n))&&n.replace(a,i).replace(s,"")).replace(D,"")),e,"")}}},83060:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(62129),i=n(79458),o=n(94778);let a=function(e){return function(t,n,a){var s=Object(t);if(!(0,i.Z)(t)){var u=(0,r.Z)(n,3);t=(0,o.Z)(t),n=function(e){return u(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[u?t[c]:c]:void 0}}},96537:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ei});var r=n(84111),i=n(64220),o=i.Z&&new i.Z,a=o?function(e,t){return o.set(e,t),e}:r.Z,s=n(4865),u=n(80369);let c=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=(0,s.Z)(e.prototype),r=e.apply(n,t);return(0,u.Z)(r)?r:n}};var l=n(97659);let d=function(e,t,n){var r=1&t,i=c(e);return function t(){return(this&&this!==l.Z&&this instanceof t?i:e).apply(r?n:this,arguments)}};var h=n(2144),f=Math.max;let p=function(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,c=f(o-a,0),l=Array(u+c),d=!r;++s1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(N,"{\n/* [wrapped with "+t+"] */\n")};var U=n(28814),F=n(62020),Y=n(13744),B=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];let $=function(e,t,n){var r,i=t+"";return(0,U.Z)(e,I(i,(r=L(i),(0,F.Z)(B,function(e){var t="_."+e[0];n&e[1]&&!(0,Y.Z)(r,t)&&r.push(t)}),r.sort())))},G=function(e,t,n,r,i,o,a,s,u,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var d=[e,t,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,u,c],h=n.apply(void 0,d);return D(e)&&j(h,d),h.placeholder=r,$(h,e,t)};var z=n(45463),W=n(62916),H=Math.min;let q=function(e,t){for(var n=e.length,r=H(t.length,n),i=(0,k.Z)(e);r--;){var o=t[r];e[r]=(0,W.Z)(o,n)?i[o]:void 0}return e};var V=n(66355);let X=function e(t,n,r,i,o,a,s,u,d,h){var f=128&n,v=1&n,_=2&n,y=24&n,b=512&n,w=_?void 0:c(t);return function T(){for(var S=arguments.length,E=Array(S),C=S;C--;)E[C]=arguments[C];if(y)var Z=(0,z.Z)(T),x=g(E,Z);if(i&&(E=p(E,i,o,y)),a&&(E=m(E,a,s,y)),S-=x,y&&S1&&E.reverse(),f&&d{"use strict";n.d(t,{Z:()=>i});var r=n(23203);let i=function(){try{var e=(0,r.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},13493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(94605),i=n(6579),o=n(28814);let a=function(e){return(0,o.Z)((0,i.Z)(e,void 0,r.Z),e+"")}},58055:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},22879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65976),i=n(57538),o=n(94778);let a=function(e){return(0,r.Z)(e,o.Z,i.Z)}},9229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65976),i=n(27209),o=n(62742);let a=function(e){return(0,r.Z)(e,o.Z,i.Z)}},45463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return e.placeholder}},23203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(78246),i=n(97659).Z["__core-js_shared__"],o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),a=n(80369),s=n(94549),u=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,d=c.hasOwnProperty,h=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let f=function(e,t){var n,i=null==e?void 0:e[t];return(n=i,(0,a.Z)(n)&&(!o||!(o in n))&&((0,r.Z)(n)?h:u).test((0,s.Z)(n)))?i:void 0}},99773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=(0,n(84068).Z)(Object.getPrototypeOf,Object)},57538:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(69878),i=n(33464),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;let s=a?function(e){return null==e?[]:(e=Object(e),(0,r.Z)(a(e),function(t){return o.call(e,t)}))}:i.Z},27209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(37891),i=n(99773),o=n(57538),a=n(33464);let s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,r.Z)(t,(0,o.Z)(e)),e=(0,i.Z)(e);return t}:a.Z},22673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(23203),i=n(97659),o=(0,r.Z)(i.Z,"DataView"),a=n(46462),s=(0,r.Z)(i.Z,"Promise"),u=n(79228),c=n(64220),l=n(74029),d=n(94549),h="[object Map]",f="[object Promise]",p="[object Set]",v="[object WeakMap]",m="[object DataView]",g=(0,d.Z)(o),_=(0,d.Z)(a.Z),y=(0,d.Z)(s),b=(0,d.Z)(u.Z),w=(0,d.Z)(c.Z),T=l.Z;(o&&T(new o(new ArrayBuffer(1)))!=m||a.Z&&T(new a.Z)!=h||s&&T(s.resolve())!=f||u.Z&&T(new u.Z)!=p||c.Z&&T(new c.Z)!=v)&&(T=function(e){var t=(0,l.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,d.Z)(n):"";if(r)switch(r){case g:return m;case _:return h;case y:return f;case b:return p;case w:return v}return t});let S=T},95942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(50364),i=n(23857),o=n(47838),a=n(62916),s=n(7614),u=n(99316);let c=function(e,t,n){t=(0,r.Z)(t,e);for(var c=-1,l=t.length,d=!1;++c{"use strict";n.d(t,{Z:()=>i});var r=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let i=function(e){return r.test(e)}},72329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4865),i=n(99773),o=n(54357);let a=function(e){return"function"!=typeof e.constructor||(0,o.Z)(e)?{}:(0,r.Z)((0,i.Z)(e))}},62916:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e{"use strict";n.d(t,{Z:()=>s});var r=n(28916),i=n(79458),o=n(62916),a=n(80369);let s=function(e,t,n){if(!(0,a.Z)(n))return!1;var s=typeof t;return("number"==s?!!((0,i.Z)(n)&&(0,o.Z)(t,n.length)):"string"==s&&t in n)&&(0,r.Z)(n[t],e)}},67990:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(47838),i=n(54878),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;let s=function(e,t){if((0,r.Z)(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||(0,i.Z)(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},54357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=Object.prototype;let i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},20837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(80369);let i=function(e){return e==e&&!(0,r.Z)(e)}},38499:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},17433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(58055),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i&&r.Z.process;let s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}()},84068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},6579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2144),i=Math.max;let o=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a{"use strict";n.d(t,{Z:()=>o});var r=n(42825),i=n(69718);let o=function(e,t){return t.length<2?e:(0,r.Z)(e,(0,i.Z)(t,0,-1))}},66355:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r="__lodash_placeholder__";let i=function(e,t){for(var n=-1,i=e.length,o=0,a=[];++n{"use strict";n.d(t,{Z:()=>o});var r=n(58055),i="object"==typeof self&&self&&self.Object===Object&&self;let o=r.Z||i||Function("return this")()},80877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},28814:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(42452),i=n(84111),o=r.Z?function(e,t){return(0,r.Z)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:i.Z;let a=(0,n(20981).Z)(o)},20981:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=Date.now;let i=function(e){var t=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},66157:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=(0,n(32965).Z)("length"),i=n(44876),o="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\ud83c[\udffb-\udfff]",u="[^"+o+"]",c="(?:\ud83c[\udde6-\uddff]){2}",l="[\ud800-\udbff][\udc00-\udfff]",d="(?:"+a+"|"+s+")?",h="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[u,c,l].join("|")+")"+h+d+")*",p=RegExp(s+"(?="+s+")|(?:"+[u+a+"?",a,c,l,"["+o+"]"].join("|")+")"+(h+d+f),"g");let v=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t},m=function(e){return(0,i.Z)(e)?v(e):r(e)}},273:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(44876),i="\ud800-\udfff",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\ud83c[\udffb-\udfff]",s="[^"+i+"]",u="(?:\ud83c[\udde6-\uddff]){2}",c="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+o+"|"+a+")?",d="[\\ufe0e\\ufe0f]?",h="(?:\\u200d(?:"+[s,u,c].join("|")+")"+d+l+")*",f=RegExp(a+"(?="+a+")|(?:"+[s+o+"?",o,u,c,"["+i+"]"].join("|")+")"+(d+l+h),"g");let p=function(e){return(0,r.Z)(e)?e.match(f)||[]:e.split("")}},99316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(54878),i=1/0;let o=function(e){if("string"==typeof e||(0,r.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},94549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=Function.prototype.toString;let i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},17673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(84424),i=n(46518),o=n(18945),a=n(79458),s=n(54357),u=n(94778),c=Object.prototype.hasOwnProperty;let l=(0,o.Z)(function(e,t){if((0,s.Z)(t)||(0,a.Z)(t)){(0,i.Z)(t,(0,u.Z)(t),e);return}for(var n in t)c.call(t,n)&&(0,r.Z)(e,n,t[n])})},34083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(2144),i=n(92042),o=n(74029),a=n(18742),s=n(22701);let u=function(e){if(!(0,a.Z)(e))return!1;var t=(0,o.Z)(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!(0,s.Z)(e)},c=(0,i.Z)(function(e,t){try{return(0,r.Z)(e,void 0,t)}catch(e){return u(e)?e:Error(e)}})},49509:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(15054),i=n(89061);let o=function(e){return(0,i.Z)((0,r.Z)(e).toLowerCase())}},50439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(43795),i=n(3548);let o=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=(0,i.Z)(n))==n?n:0),void 0!==t&&(t=(t=(0,i.Z)(t))==t?t:0),(0,r.Z)((0,i.Z)(e),t,n)}},79593:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(78113);let i=function(e){return(0,r.Z)(e,4)}},62540:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(78113);let i=function(e){return(0,r.Z)(e,5)}},1166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t{"use strict";n.d(t,{Z:()=>s});var r=n(37891),i=n(52133),o=n(98058),a=n(47838);let s=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return(0,r.Z)((0,a.Z)(n)?(0,o.Z)(n):[n],(0,i.Z)(t,1))}},36524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(96537);function i(e,t,n){t=n?void 0:t;var o=(0,r.Z)(e,8,void 0,void 0,void 0,void 0,void 0,t);return o.placeholder=i.placeholder,o}i.placeholder={};let o=i},76482:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(80369),i=n(97659);let o=function(){return i.Z.Date.now()};var a=n(3548),s=Math.max,u=Math.min;let c=function(e,t,n){var i,c,l,d,h,f,p=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function _(t){var n=i,r=c;return i=c=void 0,p=t,d=e.apply(r,n)}function y(e){var n=e-f,r=e-p;return void 0===f||n>=t||n<0||m&&r>=l}function b(){var e,n,r,i=o();if(y(i))return w(i);h=setTimeout(b,(e=i-f,n=i-p,r=t-e,m?u(r,l-n):r))}function w(e){return(h=void 0,g&&i)?_(e):(i=c=void 0,d)}function T(){var e,n=o(),r=y(n);if(i=arguments,c=this,f=n,r){if(void 0===h)return p=e=f,h=setTimeout(b,t),v?_(e):d;if(m)return clearTimeout(h),h=setTimeout(b,t),_(f)}return void 0===h&&(h=setTimeout(b,t)),d}return t=(0,a.Z)(t)||0,(0,r.Z)(n)&&(v=!!n.leading,l=(m="maxWait"in n)?s((0,a.Z)(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),T.cancel=function(){void 0!==h&&clearTimeout(h),p=0,i=f=c=h=void 0},T.flush=function(){return void 0===h?d:w(o())},T}},64553:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(84011);let i=(0,n(92042).Z)(function(e,t){return(0,r.Z)(e,1,t)})},93644:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(84011),i=n(92042),o=n(3548);let a=(0,i.Z)(function(e,t,n){return(0,r.Z)(e,(0,o.Z)(t)||0,n)})},48369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99978),i=n(52133),o=n(92042),a=n(93530);let s=(0,o.Z)(function(e,t){return(0,a.Z)(e)?(0,r.Z)(e,(0,i.Z)(t,1,a.Z,!0)):[]})},37413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(99978),i=n(52133),o=n(62129),a=n(92042),s=n(93530),u=n(98064);let c=(0,a.Z)(function(e,t){var n=(0,u.Z)(t);return(0,s.Z)(n)&&(n=void 0),(0,s.Z)(e)?(0,r.Z)(e,(0,i.Z)(t,1,s.Z,!0),(0,o.Z)(n,2)):[]})},28916:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},34251:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=(0,n(97590).Z)({"&":"&","<":"<",">":">",'"':""","'":"'"}),i=n(15054),o=/[&<>"']/g,a=RegExp(o.source);let s=function(e){return(e=(0,i.Z)(e))&&a.test(e)?e.replace(o,r):e}},46080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});let r=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{"use strict";n.d(t,{Z:()=>s});var r=n(69878),i=n(20136),o=n(62129),a=n(47838);let s=function(e,t){return((0,a.Z)(e)?r.Z:i.Z)(e,(0,o.Z)(t,3))}},28128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(83060),i=n(57371);let o=(0,r.Z)(i.Z)},57371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(78953),i=n(62129),o=n(65657),a=Math.max;let s=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var u=null==n?0:(0,o.Z)(n);return u<0&&(u=a(s+u,0)),(0,r.Z)(e,(0,i.Z)(t,3),u)}},5881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});let r=function(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r};var i=n(51877),o=n(62129);let a=function(e,t){return r(e,(0,o.Z)(t,3),i.Z)}},1204:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(83060),i=n(45619);let o=(0,r.Z)(i.Z)},45619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(78953),i=n(62129),o=n(65657),a=Math.max,s=Math.min;let u=function(e,t,n){var u=null==e?0:e.length;if(!u)return -1;var c=u-1;return void 0!==n&&(c=(0,o.Z)(n),c=n<0?a(u+c,0):s(c,u-1)),(0,r.Z)(e,(0,i.Z)(t,3),c,!0)}},94605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(52133);let i=function(e){return(null==e?0:e.length)?(0,r.Z)(e,1):[]}},3080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(52133),i=1/0;let o=function(e){return(null==e?0:e.length)?(0,r.Z)(e,i):[]}},46188:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(62020),i=n(95790),o=n(22412),a=n(47838);let s=function(e,t){return((0,a.Z)(e)?r.Z:i.Z)(e,(0,o.Z)(t))}},49280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51877),i=n(22412);let o=function(e,t){return e&&(0,r.Z)(e,(0,i.Z)(t))}},69396:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(42825);let i=function(e,t,n){var i=null==e?void 0:(0,r.Z)(e,t);return void 0===i?n:i}},46525:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(10541),i=n(17150),o=Object.prototype.hasOwnProperty;let a=(0,i.Z)(function(e,t,n){o.call(e,n)?e[n].push(t):(0,r.Z)(e,n,[t])})},71817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=Object.prototype.hasOwnProperty;let i=function(e,t){return null!=e&&r.call(e,t)};var o=n(95942);let a=function(e,t){return null!=e&&(0,o.Z)(e,t,i)}},3171:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});let r=function(e,t){return null!=e&&t in Object(e)};var i=n(95942);let o=function(e,t){return null!=e&&(0,i.Z)(e,t,r)}},27076:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return e&&e.length?e[0]:void 0}},84111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return e}},77309:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=Math.max,i=Math.min,o=n(97635),a=n(3548);let s=function(e,t,n){var s,u,c;return t=(0,o.Z)(t),void 0===n?(n=t,t=0):n=(0,o.Z)(n),(s=e=(0,a.Z)(e))>=i(u=t,c=n)&&s{"use strict";n.d(t,{Z:()=>c});var r=n(52357),i=n(79458),o=n(23136),a=n(65657),s=n(87347),u=Math.max;let c=function(e,t,n,c){e=(0,i.Z)(e)?e:(0,s.Z)(e),n=n&&!c?(0,a.Z)(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),(0,o.Z)(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&(0,r.Z)(e,t,n)>-1}},44108:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(52357),i=n(65657),o=Math.max;let a=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var s=null==n?0:(0,i.Z)(n);return s<0&&(s=o(a+s,0)),(0,r.Z)(e,t,s)}},79070:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(69718);let i=function(e){return(null==e?0:e.length)?(0,r.Z)(e,0,-1):[]}},43417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(2144),i=n(50364),o=n(98064),a=n(41731),s=n(99316);let u=(0,n(92042).Z)(function(e,t,n){t=(0,i.Z)(t,e);var u=null==(e=(0,a.Z)(e,t))?e:e[(0,s.Z)((0,o.Z)(t))];return null==u?void 0:(0,r.Z)(u,e,n)})},23857:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(74029),i=n(18742);let o=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var a=Object.prototype,s=a.hasOwnProperty,u=a.propertyIsEnumerable;let c=o(function(){return arguments}())?o:function(e){return(0,i.Z)(e)&&s.call(e,"callee")&&!u.call(e,"callee")}},47838:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=Array.isArray},79458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78246),i=n(7614);let o=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,r.Z)(e)}},93530:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(79458),i=n(18742);let o=function(e){return(0,i.Z)(e)&&(0,r.Z)(e)}},89142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(74029),i=n(18742);let o=function(e){return!0===e||!1===e||(0,i.Z)(e)&&"[object Boolean]"==(0,r.Z)(e)}},89685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(97659),i=n(85925),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===o?r.Z.Buffer:void 0;let u=(s?s.isBuffer:void 0)||i.Z},29955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(23382),i=n(22673),o=n(23857),a=n(47838),s=n(79458),u=n(89685),c=n(54357),l=n(84902),d=Object.prototype.hasOwnProperty;let h=function(e){if(null==e)return!0;if((0,s.Z)(e)&&((0,a.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,u.Z)(e)||(0,l.Z)(e)||(0,o.Z)(e)))return!e.length;var t=(0,i.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,c.Z)(e))return!(0,r.Z)(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},26338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63072);let i=function(e,t){return(0,r.Z)(e,t)}},68586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63072);let i=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?(0,r.Z)(e,t,void 0,n):!!i}},78246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(74029),i=n(80369);let o=function(e){if(!(0,i.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7614:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},70604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(53701);let i=function(e){return(0,r.Z)(e)&&e!=+e}},31609:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return null==e}},25e3:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return null===e}},53701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(74029),i=n(18742);let o=function(e){return"number"==typeof e||(0,i.Z)(e)&&"[object Number]"==(0,r.Z)(e)}},80369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},18742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},22701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(74029),i=n(99773),o=n(18742),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,c=s.call(Object);let l=function(e){if(!(0,o.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},93310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(74029),i=n(18742),o=n(42052),a=n(17433),s=a.Z&&a.Z.isRegExp;let u=s?(0,o.Z)(s):function(e){return(0,i.Z)(e)&&"[object RegExp]"==(0,r.Z)(e)}},23136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(74029),i=n(47838),o=n(18742);let a=function(e){return"string"==typeof e||!(0,i.Z)(e)&&(0,o.Z)(e)&&"[object String]"==(0,r.Z)(e)}},54878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(74029),i=n(18742);let o=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},84902:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(74029),i=n(7614),o=n(18742),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=n(42052),u=n(17433),c=u.Z&&u.Z.isTypedArray;let l=c?(0,s.Z)(c):function(e){return(0,o.Z)(e)&&(0,i.Z)(e.length)&&!!a[(0,r.Z)(e)]}},6524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){return void 0===e}},99595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78113),i=n(62129);let o=function(e){return(0,i.Z)("function"==typeof e?e:(0,r.Z)(e,1))}},78641:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=(0,n(57278).Z)(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})},33114:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(10541);let i=(0,n(17150).Z)(function(e,t,n){(0,r.Z)(e,n,t)})},94778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(96877),i=n(23382),o=n(79458);let a=function(e){return(0,o.Z)(e)?(0,r.Z)(e):(0,i.Z)(e)}},62742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96877),i=n(80369),o=n(54357);let a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var s=Object.prototype.hasOwnProperty;let u=function(e){if(!(0,i.Z)(e))return a(e);var t=(0,o.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n};var c=n(79458);let l=function(e){return(0,c.Z)(e)?(0,r.Z)(e,!0):u(e)}},98064:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},91670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(10541),i=n(51877),o=n(62129);let a=function(e,t){var n={};return t=(0,o.Z)(t,3),(0,i.Z)(e,function(e,i,o){(0,r.Z)(n,i,t(e,i,o))}),n}},3357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78113),i=n(34533);let o=function(e){return(0,i.Z)((0,r.Z)(e,1))}},98807:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(26461),i=n(90693),o=n(84111);let a=function(e){return e&&e.length?(0,r.Z)(e,o.Z,i.Z):void 0}},63247:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(26461),i=n(90693),o=n(62129);let a=function(e,t){return e&&e.length?(0,r.Z)(e,(0,o.Z)(t,2),i.Z):void 0}},77397:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3026);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r.Z),n}i.Cache=r.Z;let o=i},17945:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83315);let i=(0,n(18945).Z)(function(e,t,n){(0,r.Z)(e,t,n)})},46485:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(26461),i=n(16778),o=n(84111);let a=function(e){return e&&e.length?(0,r.Z)(e,o.Z,i.Z):void 0}},26983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(26461),i=n(62129),o=n(16778);let a=function(e,t){return e&&e.length?(0,r.Z)(e,(0,i.Z)(t,2),o.Z):void 0}},70839:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},37051:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(){}},86257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(90497),i=n(78113),o=n(5729),a=n(50364),s=n(46518),u=n(22701);let c=function(e){return(0,u.Z)(e)?void 0:e};var l=n(13493),d=n(9229);let h=(0,l.Z)(function(e,t){var n={};if(null==e)return n;var u=!1;t=(0,r.Z)(t,function(t){return t=(0,a.Z)(t,e),u||(u=t.length>1),t}),(0,s.Z)(e,(0,d.Z)(e),n),u&&(n=(0,i.Z)(n,7,c));for(var l=t.length;l--;)(0,o.Z)(n,t[l]);return n})},31677:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(62129),i=n(70839),o=n(94146);let a=function(e,t){return(0,o.Z)(e,(0,i.Z)((0,r.Z)(t)))}},10008:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(59949),i=n(47838);let o=function(e,t,n,o){return null==e?[]:((0,i.Z)(t)||(t=null==t?[]:[t]),n=o?void 0:n,(0,i.Z)(n)||(n=null==n?[]:[n]),(0,r.Z)(e,t,n))}},45637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(92042),i=n(96537),o=n(45463),a=n(66355),s=(0,r.Z)(function(e,t){var n=(0,a.Z)(t,(0,o.Z)(s));return(0,i.Z)(e,32,void 0,t,n)});s.placeholder={};let u=s},52913:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(24217),i=n(3171);let o=(0,n(13493).Z)(function(e,t){return null==e?{}:(0,r.Z)(e,t,function(t,n){return(0,i.Z)(e,n)})})},94146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(90497),i=n(62129),o=n(24217),a=n(9229);let s=function(e,t){if(null==e)return{};var n=(0,r.Z)((0,a.Z)(e),function(e){return[e]});return t=(0,i.Z)(t),(0,o.Z)(e,n,function(e,n){return t(e,n[0])})}},43692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(72597),i=n(84264),o=n(97635),a=parseFloat,s=Math.min,u=Math.random;let c=function(e,t,n){if(n&&"boolean"!=typeof n&&(0,i.Z)(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=(0,o.Z)(e),void 0===t?(t=e,e=0):t=(0,o.Z)(t)),e>t){var c=e;e=t,t=c}if(n||e%1||t%1){var l=u();return s(e+l*(t-e+a("1e-"+((l+"").length-1))),t)}return(0,r.Z)(e,t)}},56878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=Math.ceil,i=Math.max;let o=function(e,t,n,o){for(var a=-1,s=i(r((t-e)/(n||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=n;return u};var a=n(84264),s=n(97635);let u=function(e,t,n){return n&&"number"!=typeof n&&(0,a.Z)(e,t,n)&&(t=n=void 0),e=(0,s.Z)(e),void 0===t?(t=e,e=0):t=(0,s.Z)(t),n=void 0===n?e{"use strict";n.d(t,{Z:()=>u});var r=n(33508),i=n(95790),o=n(62129);let a=function(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n};var s=n(47838);let u=function(e,t,n){var u=(0,s.Z)(e)?r.Z:a,c=arguments.length<3;return u(e,(0,o.Z)(t,4),n,c,i.Z)}},41760:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(69878),i=n(20136),o=n(62129),a=n(47838),s=n(70839);let u=function(e,t){return((0,a.Z)(e)?r.Z:i.Z)(e,(0,s.Z)((0,o.Z)(t,3)))}},88621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(62129),i=n(5729),o=n(62916),a=Array.prototype.splice;let s=function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var s=t[n];if(n==r||s!==u){var u=s;(0,o.Z)(s)?a.call(e,s,1):(0,i.Z)(e,s)}}return e},u=function(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,o=[],a=e.length;for(t=(0,r.Z)(t,3);++i{"use strict";n.d(t,{Z:()=>i});var r=Array.prototype.reverse;let i=function(e){return null==e?e:r.call(e)}},52294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(43795),i=n(98058),o=n(72597);let a=function(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n{"use strict";n.d(t,{Z:()=>i});var r=n(4581);let i=function(e,t,n){return null==e?e:(0,r.Z)(e,t,n)}},32281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4581);let i=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:(0,r.Z)(e,t,n,i)}},5774:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(23382),i=n(22673),o=n(79458),a=n(23136),s=n(66157);let u=function(e){if(null==e)return 0;if((0,o.Z)(e))return(0,a.Z)(e)?(0,s.Z)(e):e.length;var t=(0,i.Z)(e);return"[object Map]"==t||"[object Set]"==t?e.size:(0,r.Z)(e).length}},60389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(69718),i=n(84264),o=n(65657);let a=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&(0,i.Z)(e,t,n)?(t=0,n=a):(t=null==t?0:(0,o.Z)(t),n=void 0===n?a:(0,o.Z)(n)),(0,r.Z)(e,t,n)):[]}},53516:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(766),i=n(62129),o=n(95790);let a=function(e,t){var n;return(0,o.Z)(e,function(e,r,i){return!(n=t(e,r,i))}),!!n};var s=n(47838),u=n(84264);let c=function(e,t,n){var o=(0,s.Z)(e)?r.Z:a;return n&&(0,u.Z)(e,t,n)&&(t=void 0),o(e,(0,i.Z)(t,3))}},15150:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(52133),i=n(59949),o=n(92042),a=n(84264);let s=(0,o.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,a.Z)(e,t[0],t[1])?t=[]:n>2&&(0,a.Z)(t[0],t[1],t[2])&&(t=[t[0]]),(0,i.Z)(e,(0,r.Z)(t,1),[])})},80846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(53334),i=n(18226),o=n(44876),a=n(84264),s=n(93310),u=n(273),c=n(15054);let l=function(e,t,n){return(n&&"number"!=typeof n&&(0,a.Z)(e,t,n)&&(t=n=void 0),n=void 0===n?4294967295:n>>>0)?(e=(0,c.Z)(e))&&("string"==typeof t||null!=t&&!(0,s.Z)(t))&&!(t=(0,r.Z)(t))&&(0,o.Z)(e)?(0,i.Z)((0,u.Z)(e),0,n):e.split(t,n):[]}},73044:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(57278),i=n(89061);let o=(0,r.Z)(function(e,t,n){return e+(n?" ":"")+(0,i.Z)(t)})},99942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(43795),i=n(53334),o=n(65657),a=n(15054);let s=function(e,t,n){return e=(0,a.Z)(e),n=null==n?0:(0,r.Z)((0,o.Z)(n),0,e.length),t=(0,i.Z)(t),e.slice(n,n+t.length)==t}},33464:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(){return[]}},85925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=function(){return!1}},36086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69718),i=n(65657);let o=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:(0,i.Z)(t),(0,r.Z)(e,0,t<0?0:t)):[]}},82955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69718),i=n(65657);let o=function(e,t,n){var o=null==e?0:e.length;return o?(t=o-(t=n||void 0===t?1:(0,i.Z)(t)),(0,r.Z)(e,t<0?0:t,o)):[]}},64489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(76482),i=n(80369);let o=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,i.Z)(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),(0,r.Z)(e,t,{leading:o,maxWait:t,trailing:a})}},86866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(74455),i=n(22412),o=n(65657),a=Math.min;let s=function(e,t){if((e=(0,o.Z)(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=(0,i.Z)(t),e-=4294967295;for(var u=(0,r.Z)(s,t);++n{"use strict";n.d(t,{Z:()=>o});var r=n(3548),i=1/0;let o=function(e){return e?(e=(0,r.Z)(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},65657:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(97635);let i=function(e){var t=(0,r.Z)(e),n=t%1;return t==t?n?t-n:t:0}},13165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(15054);let i=function(e){return(0,r.Z)(e).toLowerCase()}},3548:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(38305),i=n(80369),o=n(54878),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;let d=function(e){if("number"==typeof e)return e;if((0,o.Z)(e))return a;if((0,i.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,i.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,r.Z)(e);var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?a:+e}},15054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(53334);let i=function(e){return null==e?"":(0,r.Z)(e)}},92427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(15054);let i=function(e){return(0,r.Z)(e).toUpperCase()}},38429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(62020),i=n(4865),o=n(51877),a=n(62129),s=n(99773),u=n(47838),c=n(89685),l=n(78246),d=n(80369),h=n(84902);let f=function(e,t,n){var f=(0,u.Z)(e),p=f||(0,c.Z)(e)||(0,h.Z)(e);if(t=(0,a.Z)(t,4),null==n){var v=e&&e.constructor;n=p?f?new v:[]:(0,d.Z)(e)&&(0,l.Z)(v)?(0,i.Z)((0,s.Z)(e)):{}}return(p?r.Z:o.Z)(e,function(e,r,i){return t(n,e,r,i)}),n}},83328:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(53334),i=n(38305),o=n(18226),a=n(52357);let s=function(e,t){for(var n=e.length;n--&&(0,a.Z)(t,e[n],0)>-1;);return n},u=function(e,t){for(var n=-1,r=e.length;++n-1;);return n};var c=n(273),l=n(15054);let d=function(e,t,n){if((e=(0,l.Z)(e))&&(n||void 0===t))return(0,i.Z)(e);if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,c.Z)(e),d=(0,c.Z)(t),h=u(a,d),f=s(a,d)+1;return(0,o.Z)(a,h,f).join("")}},61392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(53334),i=n(18226),o=n(44876),a=n(80369),s=n(93310),u=n(66157),c=n(273),l=n(65657),d=n(15054),h=/\w*$/;let f=function(e,t){var n=30,f="...";if((0,a.Z)(t)){var p="separator"in t?t.separator:p;n="length"in t?(0,l.Z)(t.length):n,f="omission"in t?(0,r.Z)(t.omission):f}var v=(e=(0,d.Z)(e)).length;if((0,o.Z)(e)){var m=(0,c.Z)(e);v=m.length}if(n>=v)return e;var g=n-(0,u.Z)(f);if(g<1)return f;var _=m?(0,i.Z)(m,0,g).join(""):e.slice(0,g);if(void 0===p)return _+f;if(m&&(g+=_.length-g),(0,s.Z)(p)){if(e.slice(g).search(p)){var y,b=_;for(p.global||(p=RegExp(p.source,(0,d.Z)(h.exec(p))+"g")),p.lastIndex=0;y=p.exec(b);)var w=y.index;_=_.slice(0,void 0===w?g:w)}}else if(e.indexOf((0,r.Z)(p),g)!=g){var T=_.lastIndexOf(p);T>-1&&(_=_.slice(0,T))}return _+f}},7581:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(81321);let i=function(e){return e&&e.length?(0,r.Z)(e):[]}},54551:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(62129),i=n(81321);let o=function(e,t){return e&&e.length?(0,i.Z)(e,(0,r.Z)(t,2)):[]}},63345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(15054),i=0;let o=function(e){var t=++i;return(0,r.Z)(e)+t}},89061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(18226),i=n(44876),o=n(273),a=n(15054);let s=function(e){e=(0,a.Z)(e);var t=(0,i.Z)(e)?(0,o.Z)(e):void 0,n=t?t[0]:e.charAt(0),s=t?(0,r.Z)(t,1).join(""):e.slice(1);return n.toUpperCase()+s}},87347:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(90497),i=n(94778);let o=function(e){var t;return null==e?[]:(t=(0,i.Z)(e),(0,r.Z)(t,function(t){return e[t]}))}},1095:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(99978),i=n(92042),o=n(93530);let a=(0,i.Z)(function(e,t){return(0,o.Z)(e)?(0,r.Z)(e,t):[]})},13239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(69878),i=n(92042),o=n(99978),a=n(52133),s=n(81321);let u=function(e,t,n){var r=e.length;if(r<2)return r?(0,s.Z)(e[0]):[];for(var i=-1,u=Array(r);++i{"use strict";n.d(t,{I:()=>u});let r=async(e,t,n)=>{var r,i;let o=JSON.stringify(t);n.trace("send",{url:e,data:t}),"undefined"!=typeof window&&(null===(i=null===(r=null==window?void 0:window.navigator)||void 0===r?void 0:r.sendBeacon)||void 0===i?void 0:i.call(r,e,o))||await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:o})},i=["counter","gauge","histogram"];class o{updateSamplingConfig(e){this.samplingConfig={...this.samplingConfig,...e}}updateInternalLogger(e){this.internalLogger=e}start(){this.internalLogger.info("collector: starting"),this.started=!0;let e=async()=>{if(this.internalLogger.trace("collector: tick"),this.started){try{await this.flush()}catch(e){this.internalLogger.error("collector: error during sending",e)}setTimeout(e,this.intervalMs)}};e()}stop(){this.internalLogger.info("collector: stopping"),this.started=!1}async flush(){this.internalLogger.debug("collector: flushing");let e=this.metrics.getState(),t=Object.fromEntries(Object.entries(this.resource.getAttributes()).filter(([e])=>this.allowListAttributes.includes(e))),n=[...[...e.counters.values()].map(({tags:e,name:n,...r})=>({type:"counter",name:n.toString(),tags:Object.fromEntries(Object.entries({...t,...e}).filter(([e,t])=>null!=t).map(([e,t])=>[e,t.toString()])),...r})),...[...e.gauges.values()].map(({name:e,tags:n,...r})=>({type:"gauge",name:e.toString(),tags:Object.fromEntries(Object.entries({...t,...n}).filter(([e,t])=>null!=t).map(([e,t])=>[e,t.toString()])),...r})),...[...e.histograms.values()].map(({buckets:e,name:n,tags:r,...i})=>({type:"histogram",name:n.toString(),tags:Object.fromEntries(Object.entries({...t,...r}).filter(([e,t])=>null!=t).map(([e,t])=>[e,t.toString()])),buckets:[...e.entries()].map(([e,t])=>({upper_limit:e,count:t})),...i}))].filter(e=>{if(i.includes(e.type)){let t=null==this.samplingConfig.globalSamplingRate||Math.random()<=this.samplingConfig.globalSamplingRate;return t||this.internalLogger.trace(`skipping ${e.name} due to global sampling rate`),t}return!0});0!==n.length?await r(this.url,n,this.internalLogger):this.internalLogger.debug("collector: no data to send"),e.counters.clear(),e.gauges.clear(),e.histograms.clear()}constructor(e,t,n,r,i,o,a={}){Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"started",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"intervalMs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metrics",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resource",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowListAttributes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"samplingConfig",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"internalLogger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e,this.intervalMs=t,this.metrics=n,this.resource=r,this.allowListAttributes=i,this.samplingConfig=a,this.internalLogger=o}}class a{increase(e,t,n,r){var i;if(t<0)throw Error("value must be positive");if(Math.floor(t)!==t)throw Error("value must be an integer");let o=this.calculateKey(e,r);this.internalLogger.info("increasing",o,e,t,r);let a=null!==(i=this.state.counters.get(o))&&void 0!==i?i:{name:e,value:0,tags:r,unit:n};a.value+=t,this.state.counters.set(o,a)}gauge(e,t,n,r){let i=this.calculateKey(e,r);this.internalLogger.info("setting gauge",i,e,t,r),this.state.gauges.set(i,{name:e,value:t,unit:n,tags:r})}initHistogram(e,t,n){let r=this.calculateKey(e,n),i=this.histogramBuckets[e],o={name:e,buckets:new Map(i.map(e=>[e,0])),count:0,sum:0,tags:n,unit:t};return this.state.histograms.set(r,o),o}histogram(e,t,n,r){var i,o;let a=this.calculateKey(e,r),s=null!==(i=this.histogramBuckets[e].find(e=>e>=t))&&void 0!==i?i:this.histogramBuckets[e][this.histogramBuckets[e].length-1];this.internalLogger.trace("setting histogram",a,e,s,t,r);let u=null!==(o=this.state.histograms.get(a))&&void 0!==o?o:this.initHistogram(e,n,r),c=u.buckets.get(s);if(void 0===c){this.internalLogger.warn(`bucket ${s} not found in histogram ${e.toString()}`);return}u.buckets.set(s,c+1),u.count++,u.sum+=t,this.state.histograms.set(a,u)}updateInternalLogger(e){this.internalLogger=e}getState(){return this.state}constructor(e,t){Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:{counters:new Map,gauges:new Map,histograms:new Map}}),Object.defineProperty(this,"histogramBuckets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"internalLogger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"calculateKey",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>`${e.toString()}__${Object.entries(t).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}=${t}`).join("_")}`}),this.histogramBuckets=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,[...t].sort()])),this.internalLogger=t}}class s{setAttributes(e){this.attributes={...this.attributes,...e}}getAttributes(){return this.attributes}constructor(e){Object.defineProperty(this,"attributes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.attributes=e}}class u{updateInternalLogger(e){this.collector.updateInternalLogger(e),this.metrics.updateInternalLogger(e)}constructor({url:e,resourceAttributes:t,intervalMs:n,histogramBuckets:r,allowListAttributes:i,samplingConfig:u,internalLogger:c=console}){Object.defineProperty(this,"resource",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metrics",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"collector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.resource=new s(t),this.metrics=new a(r,c),this.collector=new o(e,n,this.metrics,this.resource,i,c,u)}}},91343:(e,t,n)=>{"use strict";n.d(t,{x0:()=>r});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},92215:(e,t,n)=>{"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:()=>r})},3730:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});/** * tiny-lru * * @copyright 2024 Jason Mulligan * @license BSD-3-Clause * @version 11.2.11 */class r{constructor(e=0,t=0,n=!1){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.resetTtl=n,this.size=0,this.ttl=t}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){let t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}return this}entries(e=this.keys()){return e.map(e=>[e,this.get(e)])}evict(e=!1){if(e||this.size>0){let e=this.first;delete this.items[e.key],0==--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}return this}expiresAt(e){let t;return this.has(e)&&(t=this.items[e].expiry),t}get(e){let t;if(this.has(e)){let n=this.items[e];this.ttl>0&&n.expiry<=Date.now()?this.delete(e):(t=n.value,this.set(e,t,!0))}return t}has(e){return e in this.items}keys(){let e=[],t=this.first;for(;null!==t;)e.push(t.key),t=t.next;return e}set(e,t,n=!1,r=this.resetTtl){let i;if(n||this.has(e)){if((i=this.items[e]).value=t,!1===n&&r&&(i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==i){let e=this.last,t=i.next,n=i.prev;this.first===i&&(this.first=i.next),i.next=null,i.prev=this.last,e.next=i,null!==n&&(n.next=t),null!==t&&(t.prev=n)}}else this.max>0&&this.size===this.max&&this.evict(!0),i=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},1==++this.size?this.first=i:this.last.next=i;return this.last=i,this}values(e=this.keys()){return e.map(e=>this.get(e))}}function i(e=1e3,t=0,n=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(t)||t<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof n)throw TypeError("Invalid resetTtl value");return new r(e,t,n)}}}]);