(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[180],{28443:function(e,t,r){"use strict";let n;r.d(t,{If:function(){return A},lb:function(){return O},og:function(){return P},_6:function(){return x}});var i,a,o,u=r(8620).Buffer;let s="function"==typeof u;"function"==typeof TextDecoder&&new TextDecoder;let l="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),f=(n={},c.forEach((e,t)=>n[e]=t),n),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,p=String.fromCharCode.bind(String);"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);let g=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),h="function"==typeof btoa?e=>btoa(e):s?e=>u.from(e,"binary").toString("base64"):e=>{let t,r,n,i,a="",o=e.length%3;for(let o=0;o<e.length;){if((r=e.charCodeAt(o++))>255||(n=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError("invalid character found");a+=c[(t=r<<16|n<<8|i)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},v=s?e=>u.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(p.apply(null,e.subarray(r,r+4096)));return h(t.join(""))},b=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?p(192|t>>>6)+p(128|63&t):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|63&t)},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,y=e=>e.replace(m,b),_=s?e=>u.from(e,"utf8").toString("base64"):l?e=>v(l.encode(e)):e=>h(y(e)),S=(e,t=!1)=>t?g(_(e)):_(e),E=e=>S(e,!0);"function"==typeof atob||s||(e=>{if(e=e.replace(/\s+/g,""),!d.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let a=0;a<e.length;)t=f[e.charAt(a++)]<<18|f[e.charAt(a++)]<<12|(n=f[e.charAt(a++)])<<6|(i=f[e.charAt(a++)]),r+=64===n?p(t>>16&255):64===i?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return r}),r(8620).Buffer,Object.freeze({643:"RUB",840:"USD",978:"EURO"});let T=Object.freeze({RUB:"₽",USD:"$",EURO:"€"});(i=a||(a={})).Pending="pending",i.Success="success";let N={decimalCount:2,decimalSeparator:",",thousandsSeparator:"\xa0",decimalIsWithoutZeros:!1,preventLargeNumbers:!1};function O(e,t){try{var r;let n;let{hasCurrencySymbol:i=!0,currencyCode:a,decimalCount:o=N.decimalCount,decimalSeparator:u=N.decimalSeparator,thousandsSeparator:s=N.thousandsSeparator,decimalIsWithoutZeros:l=N.decimalIsWithoutZeros,preventLargeNumbers:c=N.preventLargeNumbers}=t||{},f=e;if("string"==typeof f&&(f=f.replace(/\s+/g,"").replace(",",".")),f=Number(f)||0,c&&(n=(r=f)/1e9>=1?Math.floor(r/1e9)+s+"млрд":r/1e6>=1?Math.floor(r/1e6)+s+"млн":r),!c||c&&"number"==typeof n){let e=function(e){let t=Math.abs(Number(e));return Number.isNaN(t)?N.decimalCount:t}(o),t=Math.abs(f).toFixed(e),r=parseInt(t,10);n=function({money:e,moneyInt:t,thousandsSeparator:r}){let n=t.toString(),i=RegExp(n.length>4?"(\\d{3})(?=\\d)":"(\\d{4})(?=\\d)","g"),a=n.length>4?n.length%3:0,o=a?n.substr(0,a)+r:"";return(e<0?"-":"")+o+n.substr(a).replace(i,`$1${r}`)}({money:f,moneyInt:r,thousandsSeparator:s})+function({money:e,moneyInt:t,decimalCount:r,decimalSeparator:n,decimalIsWithoutZeros:i}){let a=Math.abs(e-t).toFixed(r);return!r||0===(Number(e)||0)||i&&0===parseFloat(a)?"":n+a.slice(2)}({money:Number(t),moneyInt:r,decimalCount:e,decimalSeparator:u,decimalIsWithoutZeros:l})}return n+(i?`\xa0${T[a]||T.RUB}`:"")}catch(e){return console.log(e),""}}function P(e){let t=e;return"string"==typeof t&&(t=t.replace(",",".")),t=(Number(t)||0).toString().replace(".",","),`${t}%`}function x(e,t,r=!1){if(!Array.isArray(t))throw Error("Plurals must be type of Array<String>");let[n,i,a]=t,o=Math.abs(+e);return(o%=100)>=5&&o<=20?r?a:`${e} ${a}`:1==(o%=10)?r?n:`${e} ${n}`:o>=2&&o<=4?r?i:`${e} ${i}`:r?a:`${e} ${a}`}class w{constructor(){this.type=null,this.title=null,this.provider=null,this.label=null,this.params=[]}setType(e){let t=["deposit","credit","bond","account"];if(!t.includes(e))throw Error(`Invalid product type given "${e}", allowed types: ${t.join(", ")}`);return this.type=e,this}setTitle(e){return this.title=e,this}setProvider(e,t,r){if("bank"!==e)throw Error("Invalid product's provider type given");return this.provider={type:e,title:t,code:r},this}setLabel(e){return this.label=e,this}addParam(e,t){return this.params.push({title:e,value:t}),this}toJSON(){return{type:this.type,title:this.title,provider:this.provider,label:this.label,params:this.params}}}class R{constructor(){this.step=null,this.title=null,this.subtitle=null,this.total=null}setStep(e){if(e<1)throw Error("Step must be greater than 0");return this.step=e,this}setTotalSteps(e){if(e<1)throw Error("Total steps must be greater than 0");if("number"==typeof this.step&&this.step>e)throw Error("Total steps must be greater than step or equal");return this.total=e,this}setTitle(e){return this.title=e,this}setSubTitle(e){return this.subtitle=e,this}toJSON(){return JSON.stringify({step:this.step,total:this.total,title:this.title,subtitle:this.subtitle})}}class C{constructor(){this.context=null,this.stepper=null,this.product=null,this.authState=null,this.context=null,this.product=null,this.authState=null,this.simpleLoginDisabled=null,this.skipLoginScreen=null}setContext(e){return this.context=e,this}setStepper(e){return console.warn("DEPRICATION WARNING: no longer used"),this.stepper=e(new R),this}setProduct(e){return this.product=e(new w),this}setAuthState(e){return this.authState=e,this}disableSimpleLogin(){return this.simpleLoginDisabled=!0,this}enableSkipLoginScreen(){return this.skipLoginScreen=!0,this}toJSON(){var e,t;return{product:(null===(e=this.product)||void 0===e?void 0:e.toJSON())||null,stepper:(null===(t=this.stepper)||void 0===t?void 0:t.toJSON())||null,simpleLoginDisabled:this.simpleLoginDisabled,skipLoginScreen:this.skipLoginScreen,authState:this.authState,context:this.context}}encode(){return E(JSON.stringify(this.toJSON()))}}function A(){return new C}(o||(o={})).PERSISTENT_STATE="persistentState"},94624:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(22893),i=r(27552);function a(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e).getTime(),a=(0,n.Z)(t.start).getTime(),o=(0,n.Z)(t.end).getTime();if(!(a<=o))throw RangeError("Invalid interval");return r>=a&&r<=o}},50309:function(e,t,r){"use strict";function n(e,t){if(void 0!==e.one&&1===t)return e.one;var r=t%10,n=t%100;return 1===r&&11!==n?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function i(e){return function(t,r){return null!=r&&r.addSuffix?r.comparison&&r.comparison>0?e.future?n(e.future,t):"через "+n(e.regular,t):e.past?n(e.past,t):n(e.regular,t)+" назад":n(e.regular,t)}}r.d(t,{Z:function(){return b}});var a={lessThanXSeconds:i({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:i({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(e,t){return null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:i({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:i({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:i({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:i({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:i({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:i({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:i({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:i({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:i({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:i({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:i({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:i({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:i({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},o=r(15378),u={date:(0,o.Z)({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,o.Z)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,o.Z)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},s=r(27552),l=r(19351);function c(e,t,r){(0,s.Z)(2,arguments);var n=(0,l.Z)(e,r),i=(0,l.Z)(t,r);return n.getTime()===i.getTime()}var f=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function d(e){var t=f[e];return 2===e?"'во "+t+" в' p":"'в "+t+" в' p"}var p={lastWeek:function(e,t,r){var n=e.getUTCDay();return c(e,t,r)?d(n):function(e){var t=f[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}(n)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(e,t,r){var n=e.getUTCDay();return c(e,t,r)?d(n):function(e){var t=f[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}(n)},other:"P"},g=r(34659),h={ordinalNumber:function(e,t){var r=Number(e),n=null==t?void 0:t.unit;return r+("date"===n?"-е":"week"===n||"minute"===n||"second"===n?"-я":"-й")},era:(0,g.Z)({values:{narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},defaultWidth:"wide"}),quarter:(0,g.Z)({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,g.Z)({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},defaultWidth:"wide",formattingValues:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},defaultFormattingWidth:"wide"}),day:(0,g.Z)({values:{narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},defaultWidth:"wide"}),dayPeriod:(0,g.Z)({values:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},defaultFormattingWidth:"wide"})},v=r(51805),b={code:"ru",formatDistance:function(e,t,r){return a[e](t,r)},formatLong:u,formatRelative:function(e,t,r,n){var i=p[e];return"function"==typeof i?i(t,r,n):i},localize:h,match:{ordinalNumber:(0,r(57147).Z)({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,v.Z)({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,v.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,v.Z)({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:(0,v.Z)({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,v.Z)({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},50492:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(35378),i=r(27552),a=r(68309);function o(e,t){(0,i.Z)(1,arguments);var r,o,h,v=(0,a.Z)(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==v&&1!==v&&0!==v)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 b=function(e){var t,r={},n=e.split(u.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],u.timeZoneDelimiter.test(r.date)&&(r.date=e.split(u.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var i=u.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(b.date){var m=function(e,t){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((n[1]||n[2]).length)}}(b.date,v);o=function(e,t){if(null===t)return new Date(NaN);var r,n,i=e.match(s);if(!i)return new Date(NaN);var a=!!i[4],o=f(i[1]),u=f(i[2])-1,l=f(i[3]),c=f(i[4]),d=f(i[5])-1;if(a)return c>=1&&c<=53&&d>=0&&d<=6?((r=new Date(0)).setUTCFullYear(t,0,4),n=r.getUTCDay()||7,r.setUTCDate(r.getUTCDate()+((c-1)*7+d+1-n)),r):new Date(NaN);var h=new Date(0);return u>=0&&u<=11&&l>=1&&l<=(p[u]||(g(t)?29:28))&&o>=1&&o<=(g(t)?366:365)?(h.setUTCFullYear(t,u,Math.max(o,l)),h):new Date(NaN)}(m.restDateString,m.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var y=o.getTime(),_=0;if(b.time&&isNaN(_=function(e){var t=e.match(l);if(!t)return NaN;var r=d(t[1]),i=d(t[2]),a=d(t[3]);return(24===r?0===i&&0===a:a>=0&&a<60&&i>=0&&i<60&&r>=0&&r<25)?r*n.vh+i*n.yJ+1e3*a:NaN}(b.time)))return new Date(NaN);if(b.timezone){if(isNaN(h=function(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var r="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return a>=0&&a<=59?r*(i*n.vh+a*n.yJ):NaN}(b.timezone)))return new Date(NaN)}else{var S=new Date(y+_),E=new Date(0);return E.setFullYear(S.getUTCFullYear(),S.getUTCMonth(),S.getUTCDate()),E.setHours(S.getUTCHours(),S.getUTCMinutes(),S.getUTCSeconds(),S.getUTCMilliseconds()),E}return new Date(y+_+h)}var u={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}var p=[31,null,31,30,31,30,31,31,30,31,30,31];function g(e){return e%400==0||e%4==0&&e%100!=0}},92501:function(e,t,r){"use strict";var n=r(49079);Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicEnv=void 0,t.getPublicEnv=function(){return Object.keys(n.env).filter(e=>/^NEXT_PUBLIC_/i.test(e)).reduce((e,t)=>({...e,[t]:n.env[t]}),{})}},19500:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0,t.isBrowser=function(){return!!("undefined"!=typeof window&&window.__ENV)}},50250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.event=t.info=t.warn=t.error=t.prefixes=void 0;let n=r(18759);t.prefixes={error:(0,n.red)((0,n.bold)("⨯")),warn:(0,n.yellow)((0,n.bold)("⚠")),info:(0,n.white)((0,n.bold)(" ")),event:(0,n.green)((0,n.bold)("✓"))};let i={log:"log",warn:"warn",error:"error"};function a(e,r){let n=e in i?i[e]:"log",a=t.prefixes[e];console[n](` ${a}`,r,"(next-runtime-env)")}t.error=function(e){a("error",e)},t.warn=function(e){a("warn",e)},t.info=function(e){a("info",e)},t.event=function(e){a("event",e)}},20564:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.makeEnvPublic=void 0,i(r(18778),t),i(r(13711),t);var a=r(59305);Object.defineProperty(t,"makeEnvPublic",{enumerable:!0,get:function(){return a.makeEnvPublic}})},18759:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bgWhite=t.bgCyan=t.bgMagenta=t.bgBlue=t.bgYellow=t.bgGreen=t.bgRed=t.bgBlack=t.gray=t.white=t.cyan=t.purple=t.magenta=t.blue=t.yellow=t.green=t.red=t.black=t.strikethrough=t.hidden=t.inverse=t.underline=t.italic=t.dim=t.bold=t.reset=void 0;let{env:r,stdout:n}=globalThis?.process??{},i=r&&!r.NO_COLOR&&(r.FORCE_COLOR||n?.isTTY&&!r.CI&&"dumb"!==r.TERM),a=(e,t,r,n)=>{let i=e.substring(0,n)+r,o=e.substring(n+t.length),u=o.indexOf(t);return~u?i+a(o,t,r,u):i+o},o=(e,t,r=e)=>n=>{let i=""+n,o=i.indexOf(t,e.length);return~o?e+a(i,t,r,o)+t:e+i+t};t.reset=i?e=>`\x1b[0m${e}\x1b[0m`:String,t.bold=i?o("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"):String,t.dim=i?o("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"):String,t.italic=i?o("\x1b[3m","\x1b[23m"):String,t.underline=i?o("\x1b[4m","\x1b[24m"):String,t.inverse=i?o("\x1b[7m","\x1b[27m"):String,t.hidden=i?o("\x1b[8m","\x1b[28m"):String,t.strikethrough=i?o("\x1b[9m","\x1b[29m"):String,t.black=i?o("\x1b[30m","\x1b[39m"):String,t.red=i?o("\x1b[31m","\x1b[39m"):String,t.green=i?o("\x1b[32m","\x1b[39m"):String,t.yellow=i?o("\x1b[33m","\x1b[39m"):String,t.blue=i?o("\x1b[34m","\x1b[39m"):String,t.magenta=i?o("\x1b[35m","\x1b[39m"):String,t.purple=i?o("\x1b[38;2;173;127;168m","\x1b[39m"):String,t.cyan=i?o("\x1b[36m","\x1b[39m"):String,t.white=i?o("\x1b[37m","\x1b[39m"):String,t.gray=i?o("\x1b[90m","\x1b[39m"):String,t.bgBlack=i?o("\x1b[40m","\x1b[49m"):String,t.bgRed=i?o("\x1b[41m","\x1b[49m"):String,t.bgGreen=i?o("\x1b[42m","\x1b[49m"):String,t.bgYellow=i?o("\x1b[43m","\x1b[49m"):String,t.bgBlue=i?o("\x1b[44m","\x1b[49m"):String,t.bgMagenta=i?o("\x1b[45m","\x1b[49m"):String,t.bgCyan=i?o("\x1b[46m","\x1b[49m"):String,t.bgWhite=i?o("\x1b[47m","\x1b[49m"):String},18778:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useEnvContext=t.PublicEnvProvider=t.EnvProvider=void 0;var n=r(59006);Object.defineProperty(t,"EnvProvider",{enumerable:!0,get:function(){return n.EnvProvider}});var i=r(21897);Object.defineProperty(t,"PublicEnvProvider",{enumerable:!0,get:function(){return i.PublicEnvProvider}});var a=r(59994);Object.defineProperty(t,"useEnvContext",{enumerable:!0,get:function(){return a.useEnvContext}})},21897:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicEnvProvider=void 0;let n=r(57437),i=r(21800),a=r(92501),o=r(59006);t.PublicEnvProvider=({children:e})=>{(0,i.unstable_noStore)();let t=(0,a.getPublicEnv)();return(0,n.jsx)(o.EnvProvider,{env:t,children:e})}},27712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PUBLIC_ENV_KEY=void 0,t.PUBLIC_ENV_KEY="__ENV"},51980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnvScript=void 0;let n=r(57437),i=r(27712);t.EnvScript=({env:e,nonce:t})=>{let r;return"string"==typeof t&&(r=t),(0,n.jsx)("script",{"data-testid":"env-script",nonce:r,dangerouslySetInnerHTML:{__html:`window['${i.PUBLIC_ENV_KEY}'] = ${JSON.stringify(e)}`}})}},15002:function(e,t,r){"use strict";var n=r(49079);Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;let i=r(21800),a=r(19500),o=r(27712);t.env=function(e){if((0,a.isBrowser)()){if(!e.startsWith("NEXT_PUBLIC_"))throw Error(`Environment variable '${e}' is not public and cannot be accessed in the browser.`);return window[o.PUBLIC_ENV_KEY][e]}return(0,i.unstable_noStore)(),n.env[e]}},13711:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicEnvScript=t.EnvScript=t.env=t.PUBLIC_ENV_KEY=void 0;var n=r(27712);Object.defineProperty(t,"PUBLIC_ENV_KEY",{enumerable:!0,get:function(){return n.PUBLIC_ENV_KEY}});var i=r(15002);Object.defineProperty(t,"env",{enumerable:!0,get:function(){return i.env}});var a=r(51980);Object.defineProperty(t,"EnvScript",{enumerable:!0,get:function(){return a.EnvScript}});var o=r(71630);Object.defineProperty(t,"PublicEnvScript",{enumerable:!0,get:function(){return o.PublicEnvScript}})},71630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicEnvScript=void 0;let n=r(57437),i=r(21800),a=r(92501),o=r(51980);t.PublicEnvScript=({nonce:e})=>{(0,i.unstable_noStore)();let t=(0,a.getPublicEnv)();return(0,n.jsx)(o.EnvScript,{env:t,nonce:e})}},59305:function(e,t,r){"use strict";var n=r(49079);Object.defineProperty(t,"__esModule",{value:!0}),t.makeEnvPublic=void 0;let i=r(50250);function a(e){if(!n.env[e]){(0,i.warn)(`Skipped prefixing environment variable '${e}'. Variable not in process.env`);return}/^NEXT_PUBLIC_/i.test(e)&&(0,i.warn)(`Environment variable '${e}' is already public`);let t=`NEXT_PUBLIC_${e}`;n.env[t]=n.env[e],(0,i.event)(`Prefixed environment variable '${e}'`)}t.makeEnvPublic=function(e){"string"==typeof e?a(e):e.forEach(a)}},21800:function(e,t,r){let n={unstable_cache:r(89721).A,revalidateTag:r(23009).revalidateTag,revalidatePath:r(56069).t,unstable_noStore:r(53298).P};e.exports=n,t.unstable_cache=n.unstable_cache,t.revalidatePath=n.revalidatePath,t.revalidateTag=n.revalidateTag,t.unstable_noStore=n.unstable_noStore},53018:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefixes:function(){return i},bootstrap:function(){return u},wait:function(){return s},error:function(){return l},warn:function(){return c},ready:function(){return f},info:function(){return d},event:function(){return p},trace:function(){return g},warnOnce:function(){return v}});let n=r(72231),i={wait:(0,n.white)((0,n.bold)("○")),error:(0,n.red)((0,n.bold)("⨯")),warn:(0,n.yellow)((0,n.bold)("⚠")),ready:"▲",info:(0,n.white)((0,n.bold)(" ")),event:(0,n.green)((0,n.bold)("✓")),trace:(0,n.magenta)((0,n.bold)("\xbb"))},a={log:"log",warn:"warn",error:"error"};function o(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in a?a[e]:"log",n=i[e];0===t.length?console[r](""):console[r](" "+n,...t)}function u(...e){console.log(" ",...e)}function s(...e){o("wait",...e)}function l(...e){o("error",...e)}function c(...e){o("warn",...e)}function f(...e){o("ready",...e)}function d(...e){o("info",...e)}function p(...e){o("event",...e)}function g(...e){o("trace",...e)}let h=new Set;function v(...e){h.has(e[0])||(h.add(e.join(" ")),c(...e))}},49079:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(13127)},47767:function(e,t,r){(()=>{"use strict";var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),i=r(172),a=r(930),o="context",u=new n.NoopContextManager;class s{constructor(){}static getInstance(){return this._instance||(this._instance=new s),this._instance}setGlobalContextManager(e){return(0,i.registerGlobal)(o,e,a.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,i.getGlobal)(o)||u}disable(){this._getContextManager().disable(),(0,i.unregisterGlobal)(o,a.DiagAPI.instance())}}t.ContextAPI=s},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),i=r(912),a=r(957),o=r(172);class u{constructor(){function e(e){return function(...t){let r=(0,o.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:a.DiagLogLevel.INFO})=>{var n,u,s;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=e.stack)&&void 0!==n?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let l=(0,o.getGlobal)("diag"),c=(0,i.createLogLevelDiagLogger)(null!==(u=r.logLevel)&&void 0!==u?u:a.DiagLogLevel.INFO,e);if(l&&!r.suppressOverrideMessage){let e=null!==(s=Error().stack)&&void 0!==s?s:"<failed to generate stacktrace>";l.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,o.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,o.unregisterGlobal)("diag",t)},t.createComponentLogger=e=>new n.DiagComponentLogger(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}static instance(){return this._instance||(this._instance=new u),this._instance}}t.DiagAPI=u},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),i=r(172),a=r(930),o="metrics";class u{constructor(){}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalMeterProvider(e){return(0,i.registerGlobal)(o,e,a.DiagAPI.instance())}getMeterProvider(){return(0,i.getGlobal)(o)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,i.unregisterGlobal)(o,a.DiagAPI.instance())}}t.MetricsAPI=u},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),i=r(874),a=r(194),o=r(277),u=r(369),s=r(930),l="propagation",c=new i.NoopTextMapPropagator;class f{constructor(){this.createBaggage=u.createBaggage,this.getBaggage=o.getBaggage,this.getActiveBaggage=o.getActiveBaggage,this.setBaggage=o.setBaggage,this.deleteBaggage=o.deleteBaggage}static getInstance(){return this._instance||(this._instance=new f),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(l,e,s.DiagAPI.instance())}inject(e,t,r=a.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=a.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(l,s.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(l)||c}}t.PropagationAPI=f},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),i=r(846),a=r(139),o=r(607),u=r(930),s="trace";class l{constructor(){this._proxyTracerProvider=new i.ProxyTracerProvider,this.wrapSpanContext=a.wrapSpanContext,this.isSpanContextValid=a.isSpanContextValid,this.deleteSpan=o.deleteSpan,this.getSpan=o.getSpan,this.getActiveSpan=o.getActiveSpan,this.getSpanContext=o.getSpanContext,this.setSpan=o.setSpan,this.setSpanContext=o.setSpanContext}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(s,this._proxyTracerProvider,u.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(s)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(s,u.DiagAPI.instance()),this._proxyTracerProvider=new i.ProxyTracerProvider}}t.TraceAPI=l},277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;let n=r(491),i=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function a(e){return e.getValue(i)||void 0}t.getBaggage=a,t.getActiveBaggage=function(){return a(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(i,t)},t.deleteBaggage=function(e){return e.deleteValue(i)}},993:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaggageImpl=void 0;class r{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map(([e,t])=>[e,t])}setEntry(e,t){let n=new r(this._entries);return n._entries.set(e,t),n}removeEntry(e){let t=new r(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new r(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new r}}t.BaggageImpl=r},830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataSymbol=void 0,t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataFromString=t.createBaggage=void 0;let n=r(930),i=r(993),a=r(830),o=n.DiagAPI.instance();t.createBaggage=function(e={}){return new i.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(o.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:a.baggageEntryMetadataSymbol,toString:()=>e}}},67:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.context=void 0;let n=r(491);t.context=n.ContextAPI.getInstance()},223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopContextManager=void 0;let n=r(780);class i{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=i},780:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONTEXT=t.createContextKey=void 0,t.createContextKey=function(e){return Symbol.for(e)};class r{constructor(e){let t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,n)=>{let i=new r(t._currentContext);return i._currentContext.set(e,n),i},t.deleteValue=e=>{let n=new r(t._currentContext);return n._currentContext.delete(e),n}}}t.ROOT_CONTEXT=new r},506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diag=void 0;let n=r(930);t.diag=n.DiagAPI.instance()},56:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagComponentLogger=void 0;let n=r(172);class i{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return a("debug",this._namespace,e)}error(...e){return a("error",this._namespace,e)}info(...e){return a("info",this._namespace,e)}warn(...e){return a("warn",this._namespace,e)}verbose(...e){return a("verbose",this._namespace,e)}}function a(e,t,r){let i=(0,n.getGlobal)("diag");if(i)return r.unshift(t),i[e](...r)}t.DiagComponentLogger=i},972:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagConsoleLogger=void 0;let r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class n{constructor(){for(let e=0;e<r.length;e++)this[r[e].n]=function(e){return function(...t){if(console){let r=console[e];if("function"!=typeof r&&(r=console.log),"function"==typeof r)return r.apply(console,t)}}}(r[e].c)}}t.DiagConsoleLogger=n},912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createLogLevelDiagLogger=void 0;let n=r(957);t.createLogLevelDiagLogger=function(e,t){function r(r,n){let i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<n.DiagLogLevel.NONE?e=n.DiagLogLevel.NONE:e>n.DiagLogLevel.ALL&&(e=n.DiagLogLevel.ALL),t=t||{},{error:r("error",n.DiagLogLevel.ERROR),warn:r("warn",n.DiagLogLevel.WARN),info:r("info",n.DiagLogLevel.INFO),debug:r("debug",n.DiagLogLevel.DEBUG),verbose:r("verbose",n.DiagLogLevel.VERBOSE)}}},957:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiagLogLevel=void 0,(r=t.DiagLogLevel||(t.DiagLogLevel={}))[r.NONE=0]="NONE",r[r.ERROR=30]="ERROR",r[r.WARN=50]="WARN",r[r.INFO=60]="INFO",r[r.DEBUG=70]="DEBUG",r[r.VERBOSE=80]="VERBOSE",r[r.ALL=9999]="ALL"},172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;let n=r(200),i=r(521),a=r(130),o=i.VERSION.split(".")[0],u=Symbol.for(`opentelemetry.js.api.${o}`),s=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var a;let o=s[u]=null!==(a=s[u])&&void 0!==a?a:{version:i.VERSION};if(!n&&o[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(o.version!==i.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${o.version} for ${e} does not match previously registered API v${i.VERSION}`);return r.error(t.stack||t.message),!1}return o[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${i.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=s[u])||void 0===t?void 0:t.version;if(n&&(0,a.isCompatible)(n))return null===(r=s[u])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${i.VERSION}.`);let r=s[u];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function a(e){let t=new Set([e]),r=new Set,n=e.match(i);if(!n)return()=>!1;let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease)return function(t){return t===e};function o(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(i);if(!n)return o(e);let u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=u.prerelease||a.major!==u.major?o(e):0===a.major?a.minor===u.minor&&a.patch<=u.patch?(t.add(e),!0):o(e):a.minor<=u.minor?(t.add(e),!0):o(e)}}t._makeCompatibilityCheck=a,t.isCompatible=a(n.VERSION)},886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=void 0;let n=r(653);t.metrics=n.MetricsAPI.getInstance()},901:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueType=void 0,(r=t.ValueType||(t.ValueType={}))[r.INT=0]="INT",r[r.DOUBLE=1]="DOUBLE"},102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class r{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=r;class n{}t.NoopMetric=n;class i extends n{add(e,t){}}t.NoopCounterMetric=i;class a extends n{add(e,t){}}t.NoopUpDownCounterMetric=a;class o extends n{record(e,t){}}t.NoopHistogramMetric=o;class u{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=u;class s extends u{}t.NoopObservableCounterMetric=s;class l extends u{}t.NoopObservableGaugeMetric=l;class c extends u{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new i,t.NOOP_HISTOGRAM_METRIC=new o,t.NOOP_UP_DOWN_COUNTER_METRIC=new a,t.NOOP_OBSERVABLE_COUNTER_METRIC=new s,t.NOOP_OBSERVABLE_GAUGE_METRIC=new l,t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new c,t.createNoopMeter=function(){return t.NOOP_METER}},660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;let n=r(102);class i{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=i,t.NOOP_METER_PROVIDER=new i},200:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:r.g},46:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(651),t)},939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propagation=void 0;let n=r(181);t.propagation=n.PropagationAPI.getInstance()},874:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTextMapPropagator=void 0;class r{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=r},194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTextMapSetter=t.defaultTextMapGetter=void 0,t.defaultTextMapGetter={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},t.defaultTextMapSetter={set(e,t,r){null!=e&&(e[t]=r)}}},845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trace=void 0;let n=r(997);t.trace=n.TraceAPI.getInstance()},403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonRecordingSpan=void 0;let n=r(476);class i{constructor(e=n.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}t.NonRecordingSpan=i},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),i=r(607),a=r(403),o=r(139),u=n.ContextAPI.getInstance();class s{startSpan(e,t,r=u.active()){if(null==t?void 0:t.root)return new a.NonRecordingSpan;let n=r&&(0,i.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,o.isSpanContextValid)(n)?new a.NonRecordingSpan(n):new a.NonRecordingSpan}startActiveSpan(e,t,r,n){let a,o,s;if(arguments.length<2)return;2==arguments.length?s=t:3==arguments.length?(a=t,s=r):(a=t,o=r,s=n);let l=null!=o?o:u.active(),c=this.startSpan(e,a,l),f=(0,i.setSpan)(l,c);return u.with(f,s,void 0,c)}}t.NoopTracer=s},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class i{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=i},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class i{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n}}t.ProxyTracer=i},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),i=new(r(124)).NoopTracerProvider;class a{getTracer(e,t,r){var i;return null!==(i=this.getDelegateTracer(e,t,r))&&void 0!==i?i:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:i}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)}}t.ProxyTracerProvider=a},996:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SamplingDecision=void 0,(r=t.SamplingDecision||(t.SamplingDecision={}))[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"},607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;let n=r(780),i=r(403),a=r(491),o=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function u(e){return e.getValue(o)||void 0}function s(e,t){return e.setValue(o,t)}t.getSpan=u,t.getActiveSpan=function(){return u(a.ContextAPI.getInstance().active())},t.setSpan=s,t.deleteSpan=function(e){return e.deleteValue(o)},t.setSpanContext=function(e,t){return s(e,new i.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=u(e))||void 0===t?void 0:t.spanContext()}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceStateImpl=void 0;let n=r(564);class i{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let r=t.trim(),i=r.indexOf("=");if(-1!==i){let a=r.slice(0,i),o=r.slice(i+1,t.length);(0,n.validateKey)(a)&&(0,n.validateValue)(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new i;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=i},564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateValue=t.validateKey=void 0;let r="[_0-9a-z-*/]",n=`[a-z]${r}{0,255}`,i=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,a=RegExp(`^(?:${n}|${i})$`),o=/^[ -~]{0,255}[!-~]$/,u=/,|=/;t.validateKey=function(e){return a.test(e)},t.validateValue=function(e){return o.test(e)&&!u.test(e)}},98:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTraceState=void 0;let n=r(325);t.createTraceState=function(e){return new n.TraceStateImpl(e)}},476:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;let n=r(475);t.INVALID_SPANID="0000000000000000",t.INVALID_TRACEID="00000000000000000000000000000000",t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:n.TraceFlags.NONE}},357:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SpanKind=void 0,(r=t.SpanKind||(t.SpanKind={}))[r.INTERNAL=0]="INTERNAL",r[r.SERVER=1]="SERVER",r[r.CLIENT=2]="CLIENT",r[r.PRODUCER=3]="PRODUCER",r[r.CONSUMER=4]="CONSUMER"},139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;let n=r(476),i=r(403),a=/^([0-9a-f]{32})$/i,o=/^[0-9a-f]{16}$/i;function u(e){return a.test(e)&&e!==n.INVALID_TRACEID}function s(e){return o.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=u,t.isValidSpanId=s,t.isSpanContextValid=function(e){return u(e.traceId)&&s(e.spanId)},t.wrapSpanContext=function(e){return new i.NonRecordingSpan(e)}},847:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatusCode=void 0,(r=t.SpanStatusCode||(t.SpanStatusCode={}))[r.UNSET=0]="UNSET",r[r.OK=1]="OK",r[r.ERROR=2]="ERROR"},475:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFlags=void 0,(r=t.TraceFlags||(t.TraceFlags={}))[r.NONE=0]="NONE",r[r.SAMPLED=1]="SAMPLED"},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="1.6.0"}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}},o=!0;try{t[e].call(a.exports,a,a.exports,i),o=!1}finally{o&&delete n[e]}return a.exports}i.ab="//";var a={};(()=>{Object.defineProperty(a,"__esModule",{value:!0}),a.trace=a.propagation=a.metrics=a.diag=a.context=a.INVALID_SPAN_CONTEXT=a.INVALID_TRACEID=a.INVALID_SPANID=a.isValidSpanId=a.isValidTraceId=a.isSpanContextValid=a.createTraceState=a.TraceFlags=a.SpanStatusCode=a.SpanKind=a.SamplingDecision=a.ProxyTracerProvider=a.ProxyTracer=a.defaultTextMapSetter=a.defaultTextMapGetter=a.ValueType=a.createNoopMeter=a.DiagLogLevel=a.DiagConsoleLogger=a.ROOT_CONTEXT=a.createContextKey=a.baggageEntryMetadataFromString=void 0;var e=i(369);Object.defineProperty(a,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=i(780);Object.defineProperty(a,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(a,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=i(972);Object.defineProperty(a,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var n=i(957);Object.defineProperty(a,"DiagLogLevel",{enumerable:!0,get:function(){return n.DiagLogLevel}});var o=i(102);Object.defineProperty(a,"createNoopMeter",{enumerable:!0,get:function(){return o.createNoopMeter}});var u=i(901);Object.defineProperty(a,"ValueType",{enumerable:!0,get:function(){return u.ValueType}});var s=i(194);Object.defineProperty(a,"defaultTextMapGetter",{enumerable:!0,get:function(){return s.defaultTextMapGetter}}),Object.defineProperty(a,"defaultTextMapSetter",{enumerable:!0,get:function(){return s.defaultTextMapSetter}});var l=i(125);Object.defineProperty(a,"ProxyTracer",{enumerable:!0,get:function(){return l.ProxyTracer}});var c=i(846);Object.defineProperty(a,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var f=i(996);Object.defineProperty(a,"SamplingDecision",{enumerable:!0,get:function(){return f.SamplingDecision}});var d=i(357);Object.defineProperty(a,"SpanKind",{enumerable:!0,get:function(){return d.SpanKind}});var p=i(847);Object.defineProperty(a,"SpanStatusCode",{enumerable:!0,get:function(){return p.SpanStatusCode}});var g=i(475);Object.defineProperty(a,"TraceFlags",{enumerable:!0,get:function(){return g.TraceFlags}});var h=i(98);Object.defineProperty(a,"createTraceState",{enumerable:!0,get:function(){return h.createTraceState}});var v=i(139);Object.defineProperty(a,"isSpanContextValid",{enumerable:!0,get:function(){return v.isSpanContextValid}}),Object.defineProperty(a,"isValidTraceId",{enumerable:!0,get:function(){return v.isValidTraceId}}),Object.defineProperty(a,"isValidSpanId",{enumerable:!0,get:function(){return v.isValidSpanId}});var b=i(476);Object.defineProperty(a,"INVALID_SPANID",{enumerable:!0,get:function(){return b.INVALID_SPANID}}),Object.defineProperty(a,"INVALID_TRACEID",{enumerable:!0,get:function(){return b.INVALID_TRACEID}}),Object.defineProperty(a,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return b.INVALID_SPAN_CONTEXT}});let m=i(67);Object.defineProperty(a,"context",{enumerable:!0,get:function(){return m.context}});let y=i(506);Object.defineProperty(a,"diag",{enumerable:!0,get:function(){return y.diag}});let _=i(886);Object.defineProperty(a,"metrics",{enumerable:!0,get:function(){return _.metrics}});let S=i(939);Object.defineProperty(a,"propagation",{enumerable:!0,get:function(){return S.propagation}});let E=i(845);Object.defineProperty(a,"trace",{enumerable:!0,get:function(){return E.trace}}),a.default={context:m.context,diag:y.diag,metrics:_.metrics,propagation:S.propagation,trace:E.trace}})(),e.exports=a})()},8620:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=s(e),o=a[0],u=a[1],l=new i((o+u)*3/4-u),c=0,f=u>0?o-4:o;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,u=n-i;o<u;o+=16383)a.push(function(e,t,n){for(var i,a=[],o=t;o<n;o+=3)a.push(r[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>u?u:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=a.length;o<u;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var n=r(675),i=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=o(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),u.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var i=function(e){if(u.isBuffer(e)){var t,r=0|d(e.length),n=o(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),o(e<0?0:0|d(e))}function f(e){for(var t=e.length<0?0:0|d(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return x(e).length;default:if(i)return n?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=C[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=t,a=r,0===i&&a===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var a,o=1,u=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,u/=2,s/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<u;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===s)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+s>u&&(r=u-s),a=r;a>=0;a--){for(var f=!0,d=0;d<s;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return -1}function m(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,u,s,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:(192&(a=e[i+1]))==128&&(s=(31&l)<<6|63&a)>127&&(c=s);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(s=(15&l)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=e[i+1],o=e[i+2],u=e[i+3],(192&a)==128&&(192&o)==128&&(192&u)==128&&(s=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function y(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,a){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,a){return t=+t,r>>>=0,a||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function T(e,t,r,n,a){return t=+t,r>>>=0,a||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return(l(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},u.allocUnsafe=function(e){return c(e)},u.allocUnsafeSlow=function(e){return c(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(R(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),R(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(R(a,Uint8Array)&&(a=u.from(a)),!u.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?m(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(R(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),f=0;f<s;++f)if(l[f]!==c[f]){a=l[f],o=c[f];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,u,s,l,c,f,d,p,g,h,v=this.length-t;if((void 0===r||r>v)&&(r=v),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var b=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(t.substr(2*o,2),16);if(u!=u)break;e[r+o]=u}return o}(this,e,t,r);case"utf8":case"utf-8":return s=t,l=r,w(O(e,this.length-s),this,s,l);case"ascii":return c=t,f=r,w(P(e),this,c,f);case"latin1":case"binary":return i=this,a=e,o=t,u=r,w(P(a),i,o,u);case"base64":return d=t,p=r,w(x(e),this,d,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g=t,h=r,w(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-g),this,g,h);default:if(b)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),b=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=0,o=1,u=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===u&&0!==this[t+a-1]&&(u=1),this[t+a]=(e/o>>0)-u&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=r-1,o=1,u=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===u&&0!==this[t+a+1]&&(u=1),this[t+a]=(e/o>>0)-u&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return T(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return T(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=u.isBuffer(e)?e:u.from(e,n),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};var N=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function P(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function x(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function w(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function R(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var C=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var a,o,u=8*i-n-1,s=(1<<u)-1,l=s>>1,c=-7,f=r?i-1:0,d=r?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=u;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-l;else{if(a===s)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=l}return(p?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,u,s,l=8*a-i-1,c=(1<<l)-1,f=c>>1,d=23===i?5960464477539062e-23:0,p=n?0:a-1,g=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(u=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(o++,s/=2),o+f>=c?(u=0,o=c):o+f>=1?(u=(t*s-1)*Math.pow(2,i),o+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&u,p+=g,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;e[r+p]=255&o,p+=g,o/=256,l-=8);e[r+p-g]|=128*h}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},o=!0;try{t[e](a,a.exports,n),o=!1}finally{o&&delete r[e]}return a.exports}n.ab="//";var i=n(72);e.exports=i}()},13127:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?s=n.concat(s):c=-1,s.length&&d())}function d(){if(!l){var e=u(f);l=!0;for(var t=s.length;t;){for(n=s,s=[];++c<t;)n&&n[c].run();c=-1,t=s.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new p(e,t)),1!==s.length||l||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},o=!0;try{t[e](a,a.exports,n),o=!1}finally{o&&delete r[e]}return a.exports}n.ab="//";var i=n(229);e.exports=i}()},77483:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NEXT_QUERY_PARAM_PREFIX:function(){return r},PRERENDER_REVALIDATE_HEADER:function(){return n},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return i},RSC_PREFETCH_SUFFIX:function(){return a},RSC_SUFFIX:function(){return o},NEXT_DATA_SUFFIX:function(){return u},NEXT_META_SUFFIX:function(){return s},NEXT_BODY_SUFFIX:function(){return l},NEXT_CACHE_TAGS_HEADER:function(){return c},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return f},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_LENGTH:function(){return g},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return v},CACHE_ONE_YEAR:function(){return b},MIDDLEWARE_FILENAME:function(){return m},MIDDLEWARE_LOCATION_REGEXP:function(){return y},INSTRUMENTATION_HOOK_FILENAME:function(){return _},PAGES_DIR_ALIAS:function(){return S},DOT_NEXT_ALIAS:function(){return E},ROOT_DIR_ALIAS:function(){return T},APP_DIR_ALIAS:function(){return N},RSC_MOD_REF_PROXY_ALIAS:function(){return O},RSC_ACTION_VALIDATE_ALIAS:function(){return P},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_ENCRYPTION_ALIAS:function(){return w},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return R},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return C},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return A},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return I},SERVER_PROPS_SSG_CONFLICT:function(){return M},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return L},SERVER_PROPS_EXPORT_ERROR:function(){return D},GSP_NO_RETURNED_VALUE:function(){return j},GSSP_NO_RETURNED_VALUE:function(){return B},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return G},GSSP_COMPONENT_MEMBER_ERROR:function(){return U},NON_STANDARD_NODE_ENV:function(){return V},SSG_FALLBACK_EXPORT_ERROR:function(){return k},ESLINT_DEFAULT_DIRS:function(){return $},ESLINT_PROMPT_VALUES:function(){return F},SERVER_RUNTIME:function(){return H},WEBPACK_LAYERS:function(){return X},WEBPACK_RESOURCE_QUERIES:function(){return Y}});let r="nxtP",n="x-prerender-revalidate",i="x-prerender-revalidate-if-generated",a=".prefetch.rsc",o=".rsc",u=".json",s=".meta",l=".body",c="x-next-cache-tags",f="x-next-cache-soft-tags",d="x-next-revalidated-tags",p="x-next-revalidate-tag-token",g=256,h=1024,v="_N_T_",b=31536e3,m="middleware",y=`(?:src/)?${m}`,_="instrumentation",S="private-next-pages",E="private-dot-next",T="private-next-root-dir",N="private-next-app-dir",O="private-next-rsc-mod-ref-proxy",P="private-next-rsc-action-validate",x="private-next-rsc-server-reference",w="private-next-rsc-action-encryption",R="private-next-rsc-action-client-wrapper",C="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",A="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",I="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",M="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",L="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",D="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",j="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",B="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",G="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",U="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",V='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',k="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],F=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],H={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},W={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},X={...W,GROUP:{server:[W.reactServerComponents,W.actionBrowser,W.appMetadataRoute,W.appRouteHandler],nonClientServerTarget:[W.middleware,W.api],app:[W.reactServerComponents,W.actionBrowser,W.appMetadataRoute,W.appRouteHandler,W.serverSideRendering,W.appPagesBrowser,W.shared]}},Y={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},72231:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{reset:function(){return s},bold:function(){return l},dim:function(){return c},italic:function(){return f},underline:function(){return d},inverse:function(){return p},hidden:function(){return g},strikethrough:function(){return h},black:function(){return v},red:function(){return b},green:function(){return m},yellow:function(){return y},blue:function(){return _},magenta:function(){return S},purple:function(){return E},cyan:function(){return T},white:function(){return N},gray:function(){return O},bgBlack:function(){return P},bgRed:function(){return x},bgGreen:function(){return w},bgYellow:function(){return R},bgBlue:function(){return C},bgMagenta:function(){return A},bgCyan:function(){return I},bgWhite:function(){return M}});let{env:n,stdout:i}=(null==(r=globalThis)?void 0:r.process)??{},a=n&&!n.NO_COLOR&&(n.FORCE_COLOR||(null==i?void 0:i.isTTY)&&!n.CI&&"dumb"!==n.TERM),o=(e,t,r,n)=>{let i=e.substring(0,n)+r,a=e.substring(n+t.length),u=a.indexOf(t);return~u?i+o(a,t,r,u):i+a},u=(e,t,r=e)=>a?n=>{let i=""+n,a=i.indexOf(t,e.length);return~a?e+o(i,t,r,a)+t:e+i+t}:String,s=a?e=>`\x1b[0m${e}\x1b[0m`:String,l=u("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),c=u("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),f=u("\x1b[3m","\x1b[23m"),d=u("\x1b[4m","\x1b[24m"),p=u("\x1b[7m","\x1b[27m"),g=u("\x1b[8m","\x1b[28m"),h=u("\x1b[9m","\x1b[29m"),v=u("\x1b[30m","\x1b[39m"),b=u("\x1b[31m","\x1b[39m"),m=u("\x1b[32m","\x1b[39m"),y=u("\x1b[33m","\x1b[39m"),_=u("\x1b[34m","\x1b[39m"),S=u("\x1b[35m","\x1b[39m"),E=u("\x1b[38;2;173;127;168m","\x1b[39m"),T=u("\x1b[36m","\x1b[39m"),N=u("\x1b[37m","\x1b[39m"),O=u("\x1b[90m","\x1b[39m"),P=u("\x1b[40m","\x1b[49m"),x=u("\x1b[41m","\x1b[49m"),w=u("\x1b[42m","\x1b[49m"),R=u("\x1b[43m","\x1b[49m"),C=u("\x1b[44m","\x1b[49m"),A=u("\x1b[45m","\x1b[49m"),I=u("\x1b[46m","\x1b[49m"),M=u("\x1b[47m","\x1b[49m")},41490:function(e,t,r){"use strict";var n=r(49079),i=r(8620).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{validateRevalidate:function(){return c},validateTags:function(){return f},addImplicitTags:function(){return p},patchFetch:function(){return h}});let a=r(28899),o=r(92642),u=r(77483),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(53018));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){try{let r;if(!1===e)r=e;else if("number"==typeof e&&!isNaN(e)&&e>-1)r=e;else if(void 0!==e)throw Error(`Invalid revalidate value "${e}" on "${t}", must be a non-negative number or "false"`);return r}catch(e){if(e instanceof Error&&e.message.includes("Invalid revalidate"))throw e;return}}function f(e,t){let r=[],n=[];for(let t of e)"string"!=typeof t?n.push({tag:t,reason:"invalid type, must be a string"}):t.length>u.NEXT_CACHE_TAG_MAX_LENGTH?n.push({tag:t,reason:`exceeded max length of ${u.NEXT_CACHE_TAG_MAX_LENGTH}`}):r.push(t);if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}let d=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;e<r.length+1;e++){let n=r.slice(0,e).join("/");n&&(n.endsWith("/page")||n.endsWith("/route")||(n=`${n}${n.endsWith("/")?"":"/"}layout`),t.push(n))}}return t};function p(e){var t,r;let n=[],{pagePath:i,urlPathname:a}=e;if(Array.isArray(e.tags)||(e.tags=[]),i)for(let r of d(i))r=`${u.NEXT_CACHE_IMPLICIT_TAG_ID}${r}`,(null==(t=e.tags)?void 0:t.includes(r))||e.tags.push(r),n.push(r);if(a){let t=new URL(a,"http://n").pathname,i=`${u.NEXT_CACHE_IMPLICIT_TAG_ID}${t}`;(null==(r=e.tags)?void 0:r.includes(i))||e.tags.push(i),n.push(i)}return n}function g(e,t){if(!e)return;e.fetchMetrics||(e.fetchMetrics=[]);let r=["url","status","method"];e.fetchMetrics.some(e=>r.every(r=>e[r]===t[r]))||e.fetchMetrics.push({url:t.url,cacheStatus:t.cacheStatus,cacheReason:t.cacheReason,status:t.status,method:t.method,start:t.start,end:Date.now(),idx:e.nextFetchId||0})}function h({serverHooks:e,staticGenerationAsyncStorage:t}){if(globalThis._nextOriginalFetch||(globalThis._nextOriginalFetch=globalThis.fetch),globalThis.fetch.__nextPatched)return;let{DynamicServerError:r}=e,l=globalThis._nextOriginalFetch;globalThis.fetch=async(e,d)=>{var h,v;let b;try{(b=new URL(e instanceof Request?e.url:e)).username="",b.password=""}catch{b=void 0}let m=(null==b?void 0:b.href)??"",y=Date.now(),_=(null==d?void 0:null==(h=d.method)?void 0:h.toUpperCase())||"GET",S=(null==(v=null==d?void 0:d.next)?void 0:v.internal)===!0,E="1"===n.env.NEXT_OTEL_FETCH_DISABLED;return await (0,o.getTracer)().trace(S?a.NextNodeServerSpan.internalFetch:a.AppRenderSpan.fetch,{hideSpan:E,kind:o.SpanKind.CLIENT,spanName:["fetch",_,m].filter(Boolean).join(" "),attributes:{"http.url":m,"http.method":_,"net.peer.name":null==b?void 0:b.hostname,"net.peer.port":(null==b?void 0:b.port)||void 0}},async()=>{var n;let a,o,h;let v=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),b=e&&"object"==typeof e&&"string"==typeof e.method,_=t=>(null==d?void 0:d[t])||(b?e[t]:null);if(!v||S||v.isDraftMode)return l(e,d);let E=t=>{var r,n,i;return void 0!==(null==d?void 0:null==(r=d.next)?void 0:r[t])?null==d?void 0:null==(n=d.next)?void 0:n[t]:b?null==(i=e.next)?void 0:i[t]:void 0},T=E("revalidate"),N=f(E("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(N))for(let e of(v.tags||(v.tags=[]),N))v.tags.includes(e)||v.tags.push(e);let O=p(v),P="only-cache"===v.fetchCache,x="force-cache"===v.fetchCache,w="default-cache"===v.fetchCache,R="default-no-store"===v.fetchCache,C="only-no-store"===v.fetchCache,A="force-no-store"===v.fetchCache,I=!!v.isUnstableNoStore,M=_("cache"),L="";"string"==typeof M&&void 0!==T&&(b&&"default"===M||s.warn(`fetch for ${m} on ${v.urlPathname} specified "cache: ${M}" and "revalidate: ${T}", only one should be specified.`),M=void 0),"force-cache"===M?T=!1:("no-cache"===M||"no-store"===M||A||C)&&(T=0),("no-cache"===M||"no-store"===M)&&(L=`cache: ${M}`),h=c(T,v.urlPathname);let D=_("headers"),j="function"==typeof(null==D?void 0:D.get)?D:new Headers(D||{}),B=j.get("authorization")||j.get("cookie"),G=!["get","head"].includes((null==(n=_("method"))?void 0:n.toLowerCase())||"get"),U=(B||G)&&0===v.revalidate;if(A&&(L="fetchCache = force-no-store"),C){if("force-cache"===M||void 0!==h&&(!1===h||h>0))throw Error(`cache: 'force-cache' used on fetch for ${m} with 'export const fetchCache = 'only-no-store'`);L="fetchCache = only-no-store"}if(P&&"no-store"===M)throw Error(`cache: 'no-store' used on fetch for ${m} with 'export const fetchCache = 'only-cache'`);x&&(void 0===T||0===T)&&(L="fetchCache = force-cache",h=!1),void 0===h?w?(h=!1,L="fetchCache = default-cache"):U?(h=0,L="auto no cache"):R?(h=0,L="fetchCache = default-no-store"):I?(h=0,L="noStore call"):(L="auto cache",h="boolean"!=typeof v.revalidate&&void 0!==v.revalidate&&v.revalidate):L||(L=`revalidate: ${h}`),v.forceStatic&&0===h||U||void 0!==v.revalidate&&("number"!=typeof h||!1!==v.revalidate&&("number"!=typeof v.revalidate||!(h<v.revalidate)))||(0===h&&(null==v.postpone||v.postpone.call(v,"revalidate: 0")),v.revalidate=h);let V="number"==typeof h&&h>0||!1===h;if(v.incrementalCache&&V)try{a=await v.incrementalCache.fetchCacheKey(m,b?e:d)}catch(t){console.error("Failed to generate cache key for",e)}let k=v.nextFetchId??1;v.nextFetchId=k+1;let $="number"!=typeof h?u.CACHE_ONE_YEAR:h,F=async(t,r)=>{let n=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(b){let t=e,r={body:t._ogBody||t.body};for(let e of n)r[e]=t[e];e=new Request(t.url,r)}else if(d){let e=d;for(let t of(d={body:d._ogBody||d.body},n))d[t]=e[t]}let o={...d,next:{...null==d?void 0:d.next,fetchType:"origin",fetchIdx:k}};return l(e,o).then(async n=>{if(t||g(v,{start:y,url:m,cacheReason:r||L,cacheStatus:0===h||r?"skip":"miss",status:n.status,method:o.method||"GET"}),200===n.status&&v.incrementalCache&&a&&V){let t=i.from(await n.arrayBuffer());try{await v.incrementalCache.set(a,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:$},{fetchCache:!0,revalidate:h,fetchUrl:m,fetchIdx:k,tags:N})}catch(t){console.warn("Failed to set fetch cache",e,t)}let r=new Response(t,{headers:new Headers(n.headers),status:n.status});return Object.defineProperty(r,"url",{value:n.url}),r}return n})},H=()=>Promise.resolve();if(a&&v.incrementalCache){H=await v.incrementalCache.lock(a);let e=v.isOnDemandRevalidate?null:await v.incrementalCache.get(a,{kindHint:"fetch",revalidate:h,fetchUrl:m,fetchIdx:k,tags:N,softTags:O});if(e?await H():o="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(v.isRevalidate&&e.isStale)){e.isStale&&(v.pendingRevalidates??={},v.pendingRevalidates[a]||(v.pendingRevalidates[a]=F(!0).catch(console.error)));let t=e.value.data;g(v,{start:y,url:m,cacheReason:L,cacheStatus:"hit",status:t.status||200,method:(null==d?void 0:d.method)||"GET"});let r=new Response(i.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}if(v.isStaticGeneration&&d&&"object"==typeof d){let{cache:t}=d;if(!v.forceStatic&&"no-store"===t){let t=`no-store fetch ${e}${v.urlPathname?` ${v.urlPathname}`:""}`;null==v.postpone||v.postpone.call(v,t),v.revalidate=0;let n=new r(t);v.dynamicUsageErr=n,v.dynamicUsageDescription=t}let n="next"in d,{next:i={}}=d;if("number"==typeof i.revalidate&&(void 0===v.revalidate||"number"==typeof v.revalidate&&i.revalidate<v.revalidate)){if(!v.forceDynamic&&!v.forceStatic&&0===i.revalidate){let t=`revalidate: 0 fetch ${e}${v.urlPathname?` ${v.urlPathname}`:""}`;null==v.postpone||v.postpone.call(v,t);let n=new r(t);v.dynamicUsageErr=n,v.dynamicUsageDescription=t}v.forceStatic&&0===i.revalidate||(v.revalidate=i.revalidate)}n&&delete d.next}return F(!1,o).finally(H)})},globalThis.fetch.__nextGetStaticStore=()=>t,globalThis.fetch.__nextPatched=!0}},28899:function(e,t){"use strict";var r,n,i,a,o,u,s,l,c,f,d,p,g,h,v,b,m,y;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NextVanillaSpanAllowlist:function(){return _},BaseServerSpan:function(){return r},LoadComponentsSpan:function(){return n},NextServerSpan:function(){return i},NextNodeServerSpan:function(){return a},StartServerSpan:function(){return o},RenderSpan:function(){return u},RouterSpan:function(){return l},AppRenderSpan:function(){return s},NodeSpan:function(){return c},AppRouteRouteHandlersSpan:function(){return f},ResolveMetadataSpan:function(){return d}}),(p=r||(r={})).handleRequest="BaseServer.handleRequest",p.run="BaseServer.run",p.pipe="BaseServer.pipe",p.getStaticHTML="BaseServer.getStaticHTML",p.render="BaseServer.render",p.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",p.renderToResponse="BaseServer.renderToResponse",p.renderToHTML="BaseServer.renderToHTML",p.renderError="BaseServer.renderError",p.renderErrorToResponse="BaseServer.renderErrorToResponse",p.renderErrorToHTML="BaseServer.renderErrorToHTML",p.render404="BaseServer.render404",(g=n||(n={})).loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",g.loadComponents="LoadComponents.loadComponents",(h=i||(i={})).getRequestHandler="NextServer.getRequestHandler",h.getServer="NextServer.getServer",h.getServerRequestHandler="NextServer.getServerRequestHandler",h.createServer="createServer.createServer",(v=a||(a={})).compression="NextNodeServer.compression",v.getBuildId="NextNodeServer.getBuildId",v.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",v.generateStaticRoutes="NextNodeServer.generateStaticRoutes",v.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",v.generatePublicRoutes="NextNodeServer.generatePublicRoutes",v.generateImageRoutes="NextNodeServer.generateImageRoutes.route",v.sendRenderResult="NextNodeServer.sendRenderResult",v.proxyRequest="NextNodeServer.proxyRequest",v.runApi="NextNodeServer.runApi",v.render="NextNodeServer.render",v.renderHTML="NextNodeServer.renderHTML",v.imageOptimizer="NextNodeServer.imageOptimizer",v.getPagePath="NextNodeServer.getPagePath",v.getRoutesManifest="NextNodeServer.getRoutesManifest",v.findPageComponents="NextNodeServer.findPageComponents",v.getFontManifest="NextNodeServer.getFontManifest",v.getServerComponentManifest="NextNodeServer.getServerComponentManifest",v.getRequestHandler="NextNodeServer.getRequestHandler",v.renderToHTML="NextNodeServer.renderToHTML",v.renderError="NextNodeServer.renderError",v.renderErrorToHTML="NextNodeServer.renderErrorToHTML",v.render404="NextNodeServer.render404",v.route="route",v.onProxyReq="onProxyReq",v.apiResolver="apiResolver",v.internalFetch="internalFetch",(o||(o={})).startServer="startServer.startServer",(b=u||(u={})).getServerSideProps="Render.getServerSideProps",b.getStaticProps="Render.getStaticProps",b.renderToString="Render.renderToString",b.renderDocument="Render.renderDocument",b.createBodyResult="Render.createBodyResult",(m=s||(s={})).renderToString="AppRender.renderToString",m.renderToReadableStream="AppRender.renderToReadableStream",m.getBodyResult="AppRender.getBodyResult",m.fetch="AppRender.fetch",(l||(l={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(f||(f={})).runHandler="AppRouteRouteHandlers.runHandler",(y=d||(d={})).generateMetadata="ResolveMetadata.generateMetadata",y.generateViewport="ResolveMetadata.generateViewport";let _=["BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule"]},92642:function(e,t,r){"use strict";let n;var i=r(49079);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getTracer:function(){return y},SpanStatusCode:function(){return l},SpanKind:function(){return c}});let a=r(28899);try{n=r(47767)}catch(e){n=r(47767)}let{context:o,propagation:u,trace:s,SpanStatusCode:l,SpanKind:c,ROOT_CONTEXT:f}=n,d=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,p=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:l.ERROR,message:null==t?void 0:t.message})),e.end()},g=new Map,h=n.createContextKey("next.rootSpanId"),v=0,b=()=>v++;class m{getTracerInstance(){return s.getTracer("next.js","0.0.1")}getContext(){return o}getActiveScopeSpan(){return s.getSpan(null==o?void 0:o.active())}withPropagatedContext(e,t,r){let n=o.active();if(s.getSpanContext(n))return t();let i=u.extract(n,e,r);return o.with(i,t)}trace(...e){var t;let[r,n,u]=e,{fn:l,options:c}="function"==typeof n?{fn:n,options:{}}:{fn:u,options:{...n}};if(!a.NextVanillaSpanAllowlist.includes(r)&&"1"!==i.env.NEXT_OTEL_VERBOSE||c.hideSpan)return l();let v=c.spanName??r,m=this.getSpanContext((null==c?void 0:c.parentSpan)??this.getActiveScopeSpan()),y=!1;m?(null==(t=s.getSpanContext(m))?void 0:t.isRemote)&&(y=!0):(m=f,y=!0);let _=b();return c.attributes={"next.span_name":v,"next.span_type":r,...c.attributes},o.with(m.setValue(h,_),()=>this.getTracerInstance().startActiveSpan(v,c,e=>{let t=()=>{g.delete(_)};y&&g.set(_,new Map(Object.entries(c.attributes??{})));try{if(l.length>1)return l(e,t=>p(e,t));let r=l(e);if(d(r))return r.then(t=>(e.end(),t)).catch(t=>{throw p(e,t),t}).finally(t);return e.end(),t(),r}catch(r){throw p(e,r),t(),r}}))}wrap(...e){let t=this,[r,n,u]=3===e.length?e:[e[0],{},e[1]];return a.NextVanillaSpanAllowlist.includes(r)||"1"===i.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof u&&(e=e.apply(this,arguments));let i=arguments.length-1,a=arguments[i];if("function"!=typeof a)return t.trace(r,e,()=>u.apply(this,arguments));{let n=t.getContext().bind(o.active(),a);return t.trace(r,e,(e,t)=>(arguments[i]=function(e){return null==t||t(e),n.apply(this,arguments)},u.apply(this,arguments)))}}:u}startSpan(...e){let[t,r]=e,n=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,n)}getSpanContext(e){return e?s.setSpan(o.active(),e):void 0}getRootSpanAttributes(){let e=o.active().getValue(h);return g.get(e)}}let y=(()=>{let e=new m;return()=>e})()},56069:function(e,t,r){"use strict";Object.defineProperty(t,"t",{enumerable:!0,get:function(){return o}});let n=r(23009),i=r(22360),a=r(77483);function o(e,t){if(e.length>a.NEXT_CACHE_SOFT_TAG_MAX_LENGTH){console.warn(`Warning: revalidatePath received "${e}" which exceeded max length of ${a.NEXT_CACHE_SOFT_TAG_MAX_LENGTH}. See more info here https://nextjs.org/docs/app/api-reference/functions/revalidatePath`);return}let r=`${a.NEXT_CACHE_IMPLICIT_TAG_ID}${e}`;return t?r+=`${r.endsWith("/")?"":"/"}${t}`:(0,i.isDynamicRoute)(e)&&console.warn(`Warning: a dynamic page path "${e}" was passed to "revalidatePath" without the "page" argument. This has no affect by default, see more info here https://nextjs.org/docs/app/api-reference/functions/revalidatePath`),(0,n.revalidateTag)(r)}},23009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"revalidateTag",{enumerable:!0,get:function(){return i}});let n=r(28181);function i(e){let t=null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch),r=null==t?void 0:t.getStore();if(!r||!r.incrementalCache)throw Error(`Invariant: static generation store missing in revalidateTag ${e}`);(0,n.staticGenerationBailout)(`revalidateTag ${e}`),r.revalidatedTags||(r.revalidatedTags=[]),r.revalidatedTags.includes(e)||r.revalidatedTags.push(e),r.pendingRevalidates||(r.pendingRevalidates={}),r.pendingRevalidates[e]=null==r.incrementalCache.revalidateTag?void 0:r.incrementalCache.revalidateTag.call(r.incrementalCache,e).catch(t=>{console.error(`revalidateTag failed for ${e}`,t)}),r.pathWasRevalidated=!0}},89721:function(e,t,r){"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});let n=r(40002),i=r(77483),a=r(41490),o=0;async function u(e,t,r,n,a,o,u){await t.set(r,{kind:"FETCH",data:{headers:{},body:JSON.stringify(e),status:200,url:""},revalidate:"number"!=typeof a?i.CACHE_ONE_YEAR:a},{revalidate:a,fetchCache:!0,tags:n,fetchIdx:o,fetchUrl:u})}function s(e,t,r={}){let i=(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch))||n.staticGenerationAsyncStorage;if(0===r.revalidate)throw Error(`Invariant revalidate: 0 can not be passed to unstable_cache(), must be "false" or "> 0" ${e.toString()}`);let s=r.tags?(0,a.validateTags)(r.tags,`unstable_cache ${e.toString()}`):[];(0,a.validateRevalidate)(r.revalidate,`unstable_cache ${e.name||e.toString()}`);let l=`${e.toString()}-${Array.isArray(t)&&t.join(",")}`;return async(...t)=>{let n=null==i?void 0:i.getStore(),c=(null==n?void 0:n.incrementalCache)||globalThis.__incrementalCache;if(!c)throw Error(`Invariant: incrementalCache missing in unstable_cache ${e.toString()}`);let f=`${l}-${JSON.stringify(t)}`,d=await c.fetchCacheKey(f),p=`unstable_cache ${e.name?` ${e.name}`:d}`,g=(n?n.nextFetchId:o)??1;if(n){if(n.nextFetchId=g+1,"number"==typeof r.revalidate?"number"==typeof n.revalidate&&n.revalidate<r.revalidate||(n.revalidate=r.revalidate):!1===r.revalidate&&void 0===n.revalidate&&(n.revalidate=r.revalidate),n.tags)for(let e of s)n.tags.includes(e)||n.tags.push(e);else n.tags=s.slice();let o=(0,a.addImplicitTags)(n);if("force-no-store"!==n.fetchCache&&!n.isOnDemandRevalidate&&!c.isOnDemandRevalidate){let a=await c.get(d,{kindHint:"fetch",revalidate:r.revalidate,tags:s,softTags:o,fetchIdx:g});if(a&&a.value){if("FETCH"!==a.value.kind)console.error(`Invariant invalid cacheEntry returned for ${f}`);else{let o=JSON.parse(a.value.data.body);return a.isStale&&(n.pendingRevalidates||(n.pendingRevalidates={}),n.pendingRevalidates[f]=i.run({...n,fetchCache:"force-no-store",isUnstableCacheCallback:!0},e,...t).then(e=>u(e,c,d,s,r.revalidate,g,p)).catch(e=>console.error(`revalidating cache with key: ${f}`,e))),o}}}let l=await i.run({...n,fetchCache:"force-no-store",isUnstableCacheCallback:!0},e,...t);return u(l,c,d,s,r.revalidate,g,p),l}{if(o+=1,!c.isOnDemandRevalidate){let e=await c.get(d,{kindHint:"fetch",revalidate:r.revalidate,tags:s});if(e&&e.value){if("FETCH"!==e.value.kind)console.error(`Invariant invalid cacheEntry returned for ${f}`);else if(!e.isStale)return JSON.parse(e.value.data.body)}}let n=await i.run({fetchCache:"force-no-store",isUnstableCacheCallback:!0,urlPathname:"/",isStaticGeneration:!1,postpone:void 0},e,...t);return u(n,c,d,s,r.revalidate,g,p),n}}}},53298:function(e,t,r){"use strict";Object.defineProperty(t,"P",{enumerable:!0,get:function(){return a}});let n=r(40002),i=r(28181);function a(){let e=n.staticGenerationAsyncStorage.getStore();null!=e&&e.isUnstableCacheCallback||(e&&(e.isUnstableNoStore=!0),(0,i.staticGenerationBailout)("unstable_noStore",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))}},22360:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let n=r(97409),i=r(11305)},11305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(94749),i=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},97409:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let r=i.slice(1,-1),o=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),o=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(o){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,i="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,i="[]"}}this.children.has(i)||this.children.set(i,new r),this.children.get(i)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}}}]);