(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,545031,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r())&&e.v(t)}else t.exports=r()}(e.e,function(){"use strict";function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],o=["fileName","functionName","source"],i=n.concat(r,o,["args"],["evalOrigin"]);function s(t){if(t)for(var n=0;n<i.length;n++)void 0!==t[i[n]]&&this["set"+e(i[n])](t[i[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},s.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),i=e.substring(n+1);if(0===i.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i,""),u=a[1],c=a[2],l=a[3];return new s({functionName:r,args:o||void 0,fileName:u,lineNumber:c||void 0,columnNumber:l||void 0})};for(var a=0;a<n.length;a++)s.prototype["get"+e(n[a])]=t(n[a]),s.prototype["set"+e(n[a])]=function(e){return function(t){this[e]=!!t}}(n[a]);for(var u=0;u<r.length;u++)s.prototype["get"+e(r[u])]=t(r[u]),s.prototype["set"+e(r[u])]=function(e){return function(t){if(!(!isNaN(parseFloat(t))&&isFinite(t)))throw TypeError(e+" must be a Number");this[e]=Number(t)}}(r[u]);for(var c=0;c<o.length;c++)s.prototype["get"+e(o[c])]=t(o[c]),s.prototype["set"+e(o[c])]=function(e){return function(t){this[e]=String(t)}}(o[c]);return s})},420732,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r(e.r(545031)))&&e.v(t)}else t.exports=r(e.r(545031))}(e.e,function(e){"use strict";var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;var o=this.extractLocation(r?r[1]:n);return new e({functionName:r&&n||void 0,fileName:["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],i=2,s=r.length;i<s;i+=2){var a=n.exec(r[i]);a&&o.push(new e({fileName:a[2],lineNumber:a[1],source:r[i]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],i=0,s=r.length;i<s;i+=2){var a=n.exec(r[i]);a&&o.push(new e({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:r[i]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n,r=t.split("@"),o=this.extractLocation(r.pop()),i=r.shift()||"",s=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return i.match(/\(([^)]*)\)/)&&(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1")),new e({functionName:s,args:void 0===n||"[arguments not available]"===n?void 0:n.split(","),fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)}}})},465743,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r(e.r(545031)))&&e.v(t)}else t.exports=r(e.r(545031))}(e.e,function(e){return{backtrace:function(t){var n=[],r=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(r=t.maxStackSize);for(var o=arguments.callee;o&&n.length<r&&o.arguments;){for(var i=Array(o.arguments.length),s=0;s<i.length;++s)i[s]=o.arguments[s];/function(?:\s+([\w$]+))+\s*\(/.test(o.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:i})):n.push(new e({args:i}));try{o=o.caller}catch(e){break}}return n}}})},728769,(e,t,n)=>{n.getArg=function(e,t,n){if(t in e)return e[t];if(3==arguments.length)return n;throw Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,o=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function s(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var o,a=n.isAbsolute(t),u=t.split(/\/+/),c=0,l=u.length-1;l>=0;l--)"."===(o=u[l])?u.splice(l,1):".."===o?c++:c>0&&(""===o?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return(""===(t=u.join("/"))&&(t=a?"/":"."),r)?(r.path=t,s(r)):t}n.urlParse=i,n.urlGenerate=s,n.normalize=a,n.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),r=i(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),s(n);if(n||t.match(o))return t;if(r&&!r.host&&!r.path)return r.host=t,s(r);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=u,s(r)):u},n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},n.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function g(e,t){return e===t?0:e>t?1:-1}n.toSetString=u?c:function(e){return l(e)?"$"+e:e},n.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},n.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},n.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!=(r=e.source-t.source)||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},n.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=g(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:g(e.name,t.name)}},335396,(e,t,n)=>{n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,r,o){if(0===t.length)return -1;var i=function e(t,r,o,i,s,a){var u=Math.floor((r-t)/2)+t,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?e(u,r,o,i,s,a):a==n.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-t>1?e(t,u,o,i,s,a):a==n.LEAST_UPPER_BOUND?u:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},425258,(e,t,n)=>{var r=e.r(728769),o=Object.prototype.hasOwnProperty;function i(){this._array=[],this._set=Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},i.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,t){var n=r.toSetString(e),i=o.call(this._set,n),s=this._array.length;(!i||t)&&this._array.push(e),i||(this._set[n]=s)},i.prototype.has=function(e){var t=r.toSetString(e);return o.call(this._set,t)},i.prototype.indexOf=function(e){var t=r.toSetString(e);if(o.call(this._set,t))return this._set[t];throw Error('"'+e+'" is not in the set.')},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error("No element indexed by "+e)},i.prototype.toArray=function(){return this._array.slice()},n.ArraySet=i},413054,(e,t,n)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},749453,(e,t,n)=>{var r=e.r(413054);n.encode=function(e){var t,n="",o=e<0?(-e<<1)+1:(e<<1)+0;do t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t);while(o>0)return n},n.decode=function(e,t,n){var o,i,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw Error("Expected more digits in base 64 VLQ value.");if(-1===(a=r.decode(e.charCodeAt(t++))))throw Error("Invalid base64 digit: "+e.charAt(t-1));s=!!(32&a),a&=31,c+=a<<l,l+=5}while(s)i=(o=c)>>1,n.value=(1&o)==1?-i:i,n.rest=t}},812790,(e,t,n)=>{function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}n.quickSort=function(e,t){!function e(t,n,o,i){if(o<i){var s=Math.round(o+Math.random()*(i-o)),a=o-1;r(t,s,i);for(var u=t[i],c=o;c<i;c++)0>=n(t[c],u)&&r(t,a+=1,c);r(t,a+1,c);var l=a+1;e(t,n,o,l-1),e(t,n,l+1,i)}}(e,t,0,e.length-1)}},317434,(e,t,n)=>{var r=e.r(728769),o=e.r(335396),i=e.r(425258).ArraySet,s=e.r(749453),a=e.r(812790).quickSort;function u(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new g(t):new c(t)}function c(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),o=r.getArg(t,"sources"),s=r.getArg(t,"names",[]),a=r.getArg(t,"sourceRoot",null),u=r.getArg(t,"sourcesContent",null),c=r.getArg(t,"mappings"),l=r.getArg(t,"file",null);if(n!=this._version)throw Error("Unsupported version: "+n);o=o.map(String).map(r.normalize).map(function(e){return a&&r.isAbsolute(a)&&r.isAbsolute(e)?r.relative(a,e):e}),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(o,!0),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this.file=l}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function g(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),o=r.getArg(t,"sections");if(n!=this._version)throw Error("Unsupported version: "+n);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),o=r.getArg(t,"column");if(n<s.line||n===s.line&&o<s.column)throw Error("Section offsets must be ordered and non-overlapping.");return s=t,{generatedOffset:{generatedLine:n+1,generatedColumn:o+1},consumer:new u(r.getArg(e,"map"))}})}u.fromSourceMap=function(e){return c.fromSourceMap(e)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},u.prototype._parseMappings=function(e,t){throw Error("Subclasses must implement _parseMappings")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,n){switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var o,i=this.sourceRoot;o.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=i&&(t=r.join(i,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,t||null)},u.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=r.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},n.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.fromSourceMap=function(e){var t=Object.create(c.prototype),n=t._names=i.fromArray(e._names.toArray(),!0),o=t._sources=i.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),u=t.__generatedMappings=[],g=t.__originalMappings=[],h=0,p=s.length;h<p;h++){var f=s[h],d=new l;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=n.indexOf(f.name)),g.push(d)),u.push(d)}return a(t.__originalMappings,r.compareByOriginalPositions),t},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?r.join(this.sourceRoot,e):e},this)}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,u,c,g=1,h=0,p=0,f=0,d=0,m=0,v=e.length,_=0,y={},C={},w=[],b=[];_<v;)if(";"===e.charAt(_))g++,_++,h=0;else if(","===e.charAt(_))_++;else{for((n=new l).generatedLine=g,u=_;u<v&&!this._charIsMappingSeparator(e,u);u++);if(i=y[o=e.slice(_,u)])_+=o.length;else{for(i=[];_<u;)s.decode(e,_,C),c=C.value,_=C.rest,i.push(c);if(2===i.length)throw Error("Found a source, but no line and column");if(3===i.length)throw Error("Found a source and line, but no column");y[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=d+i[1],d+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=m+i[4],m+=i[4])),b.push(n),"number"==typeof n.originalLine&&w.push(n)}a(b,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,a(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,i,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=r.join(this.sourceRoot,i)));var s=r.getArg(o,"name",null);return null!==s&&(s=this._names.at(s)),{source:i,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var n,o=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw Error('"'+e+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=c,g.prototype=Object.create(u.prototype),g.prototype.constructor=u,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),g.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},g.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},g.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error('"'+e+'" is not in the SourceMap.')},g.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},g.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],c=o.consumer._sources.at(u.source);null!==o.consumer.sourceRoot&&(c=r.join(o.consumer.sourceRoot,c)),this._sources.add(c),c=this._sources.indexOf(c);var l=o.consumer._names.at(u.name);this._names.add(l),l=this._names.indexOf(l);var g={source:c,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(g),"number"==typeof g.originalLine&&this.__originalMappings.push(g)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},n.IndexedSourceMapConsumer=g},825926,(e,t,n)=>{var r=e.r(728769);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s;(t=this._last,n=t.generatedLine,o=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn,o>n||o==n&&s>=i||0>=r.compareByGeneratedPositionsInflated(t,e))?this._last=e:this._sorted=!1,this._array.push(e)},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},46246,(e,t,n)=>{var r=e.r(749453),o=e.r(728769),i=e.r(425258).ArraySet,s=e.r(825926).MappingList;function a(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},a.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=o.relative(s,r));var a=new i,u=new i;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)},this),this._sources=a,this._names=u,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(!e||!("line"in e)||!("column"in e)||!(e.line>0)||!(e.column>=0)||t||n||r){if(!e||!("line"in e)||!("column"in e)||!t||!("line"in t)||!("column"in t)||!(e.line>0)||!(e.column>=0)||!(t.line>0)||!(t.column>=0)||!n)throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}},a.prototype._serializeMappings=function(){for(var e,t,n,i,s=0,a=1,u=0,c=0,l=0,g=0,h="",p=this._mappings.toArray(),f=0,d=p.length;f<d;f++){if(t=p[f],e="",t.generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-g),g=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=a},691134,(e,t,n)=>{var r=e.r(46246).SourceMapGenerator,o=e.r(728769),i=/(\r?\n)/,s="$$$isSourceNode$$$";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(i),u=function(){return s.shift()+(s.shift()||"")},c=1,l=0,g=null;return t.eachMapping(function(e){if(null!==g)if(c<e.generatedLine)h(g,u()),c++,l=0;else{var t=s[0],n=t.substr(0,e.generatedColumn-l);s[0]=t.substr(e.generatedColumn-l),l=e.generatedColumn,h(g,n),g=e;return}for(;c<e.generatedLine;)r.add(u()),c++;if(l<e.generatedColumn){var t=s[0];r.add(t.substr(0,e.generatedColumn)),s[0]=t.substr(e.generatedColumn),l=e.generatedColumn}g=e},this),s.length>0&&(g&&h(g,u()),r.add(s.join(""))),t.sources.forEach(function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))}),r;function h(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[s]||"string"==typeof e)e&&this.children.push(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[s]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[s]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(n=0,t=[];n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),o=!1,i=null,s=null,a=null,u=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?((i!==r.source||s!==r.line||a!==r.column||u!==r.name)&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,s=r.line,a=r.column,u=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},n.SourceNode=a},918464,(e,t,n)=>{n.SourceMapGenerator=e.r(46246).SourceMapGenerator,n.SourceMapConsumer=e.r(317434).SourceMapConsumer,n.SourceNode=e.r(691134).SourceNode},450550,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r(e.r(918464),e.r(545031)))&&e.v(t)}else t.exports=r(e.r(317434),e.r(545031))}(e.e,function(e,t){"use strict";function n(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("get",e),r.onerror=n,r.onreadystatechange=function(){4===r.readyState&&(r.status>=200&&r.status<300||"file://"===e.substr(0,7)&&r.responseText?t(r.responseText):n(Error("HTTP status: "+r.status+" retrieving "+e)))},r.send()})}function r(e){if("u">typeof window&&window.atob)return window.atob(e);throw Error("You must supply a polyfill for window.atob in this environment")}function o(e){if("object"!=typeof e)throw TypeError("Given StackFrame is not an object");if("string"!=typeof e.fileName)throw TypeError("Given file name is not a String");if("number"!=typeof e.lineNumber||e.lineNumber%1!=0||e.lineNumber<1)throw TypeError("Given line number must be a positive integer");if("number"!=typeof e.columnNumber||e.columnNumber%1!=0||e.columnNumber<0)throw TypeError("Given column number must be a non-negative integer");return!0}return function i(s){if(!(this instanceof i))return new i(s);s=s||{},this.sourceCache=s.sourceCache||{},this.sourceMapConsumerCache=s.sourceMapConsumerCache||{},this.ajax=s.ajax||n,this._atob=s.atob||r,this._get=function(e){return new Promise((function(t,n){var r="data:"===e.substr(0,5);if(this.sourceCache[e])t(this.sourceCache[e]);else if(s.offline&&!r)n(Error("Cannot make network requests in offline mode"));else if(r){var o=e.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(o){var i=o[0].length,a=e.substr(i),u=this._atob(a);this.sourceCache[e]=u,t(u)}else n(Error("The encoding of the inline sourcemap is not supported"))}else{var c=this.ajax(e,{method:"get"});this.sourceCache[e]=c,c.then(t,n)}}).bind(this))},this._getSourceMapConsumer=function(t,n){return new Promise((function(r){if(this.sourceMapConsumerCache[t])r(this.sourceMapConsumerCache[t]);else{var o=new Promise((function(r,o){return this._get(t).then(function(t){"string"==typeof t&&(t=function(e){if("u">typeof JSON&&JSON.parse)return JSON.parse(e);throw Error("You must supply a polyfill for JSON.parse in this environment")}(t.replace(/^\)\]\}'/,""))),void 0===t.sourceRoot&&(t.sourceRoot=n),r(new e.SourceMapConsumer(t))}).catch(o)}).bind(this));this.sourceMapConsumerCache[t]=o,r(o)}}).bind(this))},this.pinpoint=function(e){return new Promise((function(t,n){this.getMappedLocation(e).then((function(e){function n(){t(e)}this.findFunctionName(e).then(t,n).catch(n)}).bind(this),n)}).bind(this))},this.findFunctionName=function(e){return new Promise((function(n,r){o(e),this._get(e.fileName).then(function(r){var o=e.lineNumber,i=e.columnNumber,s=function(e,t){for(var n=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],r=e.split("\n"),o="",i=Math.min(t,20),s=0;s<i;++s){var a=r[t-s-1],u=a.indexOf("//");if(u>=0&&(a=a.substr(0,u)),a){o=a+o;for(var c=n.length,l=0;l<c;l++){var g=n[l].exec(o);if(g&&g[1])return g[1]}}}}(r,o);s?n(new t({functionName:s,args:e.args,fileName:e.fileName,lineNumber:o,columnNumber:i})):n(e)},r).catch(r)}).bind(this))},this.getMappedLocation=function(e){return new Promise((function(n,r){if("function"!=typeof Object.defineProperty||"function"!=typeof Object.create)throw Error("Unable to consume source maps in older browsers");o(e);var i=this.sourceCache,s=e.fileName;this._get(s).then((function(r){var o=function(e){for(var t,n,r=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg;n=r.exec(e);)t=n[1];if(t)return t;throw Error("sourceMappingURL not found")}(r),a="data:"===o.substr(0,5),u=s.substring(0,s.lastIndexOf("/")+1);return"/"===o[0]||a||/^https?:\/\/|^\/\//i.test(o)||(o=u+o),this._getSourceMapConsumer(o,u).then(function(r){return new Promise(function(n,o){var s=r.originalPositionFor({line:e.lineNumber,column:e.columnNumber});if(s.source){var a=r.sourceContentFor(s.source);a&&(i[s.source]=a),n(new t({functionName:s.name||e.functionName,args:e.args,fileName:s.source,lineNumber:s.line,columnNumber:s.column}))}else o(Error("Could not get original source for given stackframe and source map"))}).then(n).catch(function(){n(e)})})}).bind(this),r).catch(r)}).bind(this))}}})},680373,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r(e.r(420732),e.r(465743),e.r(450550)))&&e.v(t)}else t.exports=r(e.r(420732),e.r(465743),e.r(450550))}(e.e,function(e,t,n){var r={filter:function(e){return -1===(e.functionName||"").indexOf("StackTrace$$")&&-1===(e.functionName||"").indexOf("ErrorStackParser$$")&&-1===(e.functionName||"").indexOf("StackTraceGPS$$")&&-1===(e.functionName||"").indexOf("StackGenerator$$")},sourceCache:{}},o=function(){try{throw Error()}catch(e){return e}};function i(e,t){var n={};return[e,t].forEach(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}),n}function s(e){return e.stack||e["opera#sourceloc"]}function a(e,t){return"function"==typeof t?e.filter(t):e}return{get:function(e){var t=o();return s(t)?this.fromError(t,e):this.generateArtificially(e)},getSync:function(n){n=i(r,n);var u=o();return a(s(u)?e.parse(u):t.backtrace(n),n.filter)},fromError:function(t,o){var s=new n(o=i(r,o));return new Promise((function(n){n(Promise.all(a(e.parse(t),o.filter).map(function(e){return new Promise(function(t){function n(){t(e)}s.pinpoint(e).then(t,n).catch(n)})})))}).bind(this))},generateArtificially:function(e){e=i(r,e);var n=t.backtrace(e);return"function"==typeof e.filter&&(n=n.filter(e.filter)),Promise.resolve(n)},instrument:function(e,t,n,r){if("function"!=typeof e)throw Error("Cannot instrument non-function object");if("function"==typeof e.__stacktraceOriginalFn)return e;var o=(function(){try{return this.get().then(t,n).catch(n),e.apply(r||this,arguments)}catch(e){throw s(e)&&this.fromError(e).then(t,n).catch(n),e}}).bind(this);return o.__stacktraceOriginalFn=e,o},deinstrument:function(e){if("function"!=typeof e)throw Error("Cannot de-instrument non-function object");return"function"==typeof e.__stacktraceOriginalFn?e.__stacktraceOriginalFn:e},report:function(e,t,n,r){return new Promise(function(o,i){var s=new XMLHttpRequest;if(s.onerror=i,s.onreadystatechange=function(){4===s.readyState&&(s.status>=200&&s.status<400?o(s.responseText):i(Error("POST to "+t+" failed with status: "+s.status)))},s.open("post",t),s.setRequestHeader("Content-Type","application/json"),r&&"object"==typeof r.headers){var a=r.headers;for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.setRequestHeader(u,a[u])}var c={stack:e};null!=n&&(c.message=n),s.send(JSON.stringify(c))})}}})},519374,e=>{"use strict";let t,n;e.i(334264),e.i(944568);var r,o,i=e.i(712505),s=e.i(869390);let a="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),u=new Uint8Array(16),c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));let l=function(e,n,r){var o,i,s;if(a&&!n&&!e)return a();let l=null!=(o=null!=(i=(e=e||{}).random)?i:null==(s=e.rng)?void 0:s.call(e))?o:function(){if(!t){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(u)}();if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,n){if((r=r||0)<0||r+16>n.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)n[r+e]=l[e];return n}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}(l)},g="generic_v2",h="apphealth-logger",p="apphealth-logger-schema-version";(r=o||(o={})).Log="log",r.Error="error",r.Warning="warning";class f{setSchemaVersion(){this.storage.getItem(p)!==g&&(this.clearRecords(),this.storage.setItem(p,g))}getFromStorage(){let e;try{e=JSON.parse(this.storage.getItem(h)||"[]")}catch(t){e=[]}return e}saveRecord(e){let t=this.getFromStorage();t.push(e),this.storage.setItem(h,JSON.stringify(t))}removeRecords(e){let t=this.getFromStorage();t.splice(0,e),this.storage.setItem(h,JSON.stringify(t))}clearRecords(){this.storage.removeItem(h)}constructor(){this.storage=window.localStorage,this.setSchemaVersion()}}var d=e.i(680373);let m=(e,t)=>{let n,r=null;return function(){for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];let a=Date.now();n&&clearTimeout(n),!r||a-r>=t?(e(...i),r=a):n=setTimeout(()=>e(...i),t-(a-r))}};function v(e,t){return t instanceof RegExp?t.test(e):-1!==e.indexOf(t)}e.s(["getStacktrace",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return d.default.getSync().map(String).slice(e+1).join("\n")},"throttle",0,m],140136),e.s(["isMatchingPattern",0,v],104578);var _=e.i(199966);class y{formatRecord(e){let t="",n=e.stacktrace;return e.record instanceof Error?(t=e.record.message,n=e.record.stack):t="string"==typeof e.record?e.record:JSON.stringify(e.record),Object.assign(Object.assign({log_type:g,type:e.level,facility:this.projectName,current_path:window.location.pathname,device_time:new Date().toISOString(),user_language:window.navigator.language,browser_width:window.innerWidth,browser_height:window.innerHeight,screen_width:window.screen.width,screen_height:window.screen.height,message:t,stacktrace:n||"",user_agent:window.navigator.userAgent,record_position_in_batch:this.records.length,logger_id:this.loggerId},this.options.context),e.context)}async logInformation(e){let{isDevelopment:t,ignoreRecords:n}=this.options;if(!this.isEnabled||t||!this.isDomainWhitelisted(e.stacktrace))return;let r=await this.formatRecord(e);!r.message||this.isLogged(r.message,r.stacktrace)||null!=n&&n.some(e=>v(r.message,e))||(this.records.push(r),this.storage.saveRecord(r),this.sendLogInformation())}disable(){this.isEnabled=!1}cleanupRecords(){this.storage.clearRecords(),this.records=[]}removeRecords(e){this.storage.removeRecords(e),this.records.splice(0,e)}uploadLogInformationFromStorage(){this.records=this.storage.getFromStorage(),this.records.length>100&&this.cleanupRecords(),this.records.length&&this.sendLogInformation()}retry(e){this.sendAttemptCounts+=1;let t=this.options.maxRetries||3;this.sendAttemptCounts<t&&this.logInformation({record:e,level:o.Error})}constructor(e,t={}){this.records=[],this.sendAttemptCounts=0,this.loggerId=l(),this.isEnabled=!0,this.sendLogInformation=m(()=>{let e=this.options.requestTimeout||1e4,t=[...this.records];(function(e){let{requestTimeout:t,records:n}=e;return _.default.post("https://logs-ingress.svc.vinted.com/api/v3/sync-public",n.map(e=>JSON.stringify(e)).join("\n"),{headers:{"Content-Type":"application/x-ndjson","Logs-Ingress-Log-Resource":"apphealth.web"},timeout:t})})({records:t,requestTimeout:e}).then(()=>this.removeRecords(t.length)).catch(e=>this.retry(e))},1e4),this.isDomainWhitelisted=e=>{let{whiteListDomains:t}=this.options;return!t||!e||new RegExp(t.join("|")).test(e)},this.isLogged=(e,t)=>!!this.records.find(n=>n.message===e&&n.stacktrace===t),this.projectName=e,this.options=t,this.storage=new f,this.uploadLogInformationFromStorage()}}var C=e.i(140136);e.i(104578);function w(){if(!n)throw Error("Logger is not configured")}function b(e,t){if("u"<typeof window)throw Error("Works only in browser");n=new y(e,t)}function S(e,t,r){w();let o=e instanceof Error?e.stack:C.getStacktrace(2);null==n||n.logInformation({record:e,level:t,stacktrace:o,context:r})}function O(e,t){e&&b(e,t),w(),window.onerror=(e,t,r,i,s)=>{if(s)return null==n?void 0:n.logInformation({record:s,level:o.Error,stacktrace:s.stack});S(e.toString(),o.Log)}}function A(){n&&n.disable()}function E(e,t){S(e,o.Error,t)}function L(e,t){S(e,o.Log,t)}function N(e,t){S(e,o.Warning,t)}e.s(["captureError",0,E,"captureMessage",0,L,"captureWarning",0,N,"setup",0,b,"unwatch",0,A,"watch",0,O],790985),e.s([],270949),e.i(270949),e.i(790985),e.s(["captureError",0,E,"captureMessage",0,L,"captureWarning",0,N,"setup",0,b,"unwatch",0,A,"watch",0,O],551866);var M=e.i(551866),R=e.i(807999);let x="sandbox",P="isOtelInitialized",k="isAppHealthInitialized";e.s(["initialiseMetrics",0,function(e,t){if(s.serverSide||window[P])return;let n=e===x?"https://metrics-ingress-web-sandbox.svc.vinted.com":"https://metrics-ingress-web.svc.vinted.com";n&&t?(i.ClientMetrics.initialize({serviceName:"marketplace_web",version:"786a572e958f8238bb15326355da44b3d37026cf",collectorUrl:n,env:e,token:t,shouldUseBeacon:!0}),window[P]=!0):"production"===e&&(0,R.logWarning)("ClientMetrics: OTEL not initialized due to missing config",{feature:"client-metrics",extra:JSON.stringify({collectorUrl:n})})},"initialiseMonitoring",0,function(){var e;s.serverSide||window[k]||(e=window.location.host.includes(x)?x:"production",M.watch("marketplace-web",{context:{version:"786a572e958f8238bb15326355da44b3d37026cf",env:e}}),window.apphealth=M,window[k]=!0)}],519374)},892846,e=>{"use strict";var t=e.i(307629),n=e.i(951768),r=e.i(519374);e.s(["default",0,e=>{let{pageId:o,env:i,otelToken:s}=e;return(0,r.initialiseMetrics)(i,s),(0,t.useEffect)(()=>{n.clientSideMetrics.counter("page_load",{page:o}).increment()},[o]),null}])},693722,e=>{"use strict";(0,e.i(519374).initialiseMonitoring)(),e.s(["default",0,()=>null])}]);