<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! For license information please see quickpay.235fcddebc3b8a228ef1.js.LICENSE.txt */
(()=&gt;{var e={9525:e=&gt;{e.exports=function(){var e,t=["navigation","request","process","log","user","state","error","manual"],n=function(e,t,n){for(var s=n,r=0,i=e.length;r&lt;i;r++)s=t(s,e[r],r,e);return s},s=function(e,t){return n(e,(function(e,n,s,r){return t(n,s,r)?e.concat(n):e}),[])},r=function(e,t){return n(e,(function(e,n,s,r){return!0===e||n===t}),!1)},i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=!{toString:null}.propertyIsEnumerable("toString"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&amp;&amp;n.push(t);if(!a)return n;for(var s=0,r=o.length;s&lt;r;s++)Object.prototype.hasOwnProperty.call(e,o[s])&amp;&amp;n.push(o[s]);return n},c=function(e,t){return void 0===e&amp;&amp;(e=1),void 0===t&amp;&amp;(t=1/0),function(n){return"number"==typeof n&amp;&amp;parseInt(""+n,10)===n&amp;&amp;n&gt;=e&amp;&amp;n&lt;=t}},l=function(e){return"function"==typeof e||i(e)&amp;&amp;s(e,(function(e){return"function"==typeof e})).length===e.length},d=function(e){return"string"==typeof e&amp;&amp;!!e.length},h={},p=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};h.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:d},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||d(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||d(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return p()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!=typeof e||!e)return!1;var t=u(e),n=u(p());return!(s(t,(function(e){return r(n,e)})).length&lt;t.length||s(u(e),(function(t){return"boolean"!=typeof e[t]})).length&gt;0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},endpoints:{defaultValue:function(e){return void 0===e?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&amp;&amp;"object"==typeof e&amp;&amp;d(e.notify)&amp;&amp;d(e.sessions)&amp;&amp;0===s(u(e),(function(e){return!r(["notify","sessions"],e)})).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||i(e)&amp;&amp;s(e,(function(e){return"string"==typeof e})).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"==typeof e&amp;&amp;e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number â‰¤100",validate:function(e){return c(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return t},message:"should be null or a list of available breadcrumb types ("+t.join(",")+")",validate:function(e){return null===e||i(e)&amp;&amp;n(e,(function(e,n){return!1===e?e:r(t,n)}),!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"==typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return null===e||e&amp;&amp;n(u(e),(function(e,t){return e&amp;&amp;r(["id","email","name"],t)}),!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"==typeof e&amp;&amp;null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&amp;&amp;n(["debug","info","warn","error"],(function(t,n){return t&amp;&amp;"function"==typeof e[n]}),!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(e){return i(e)&amp;&amp;e.length===s(e,(function(e){return"string"==typeof e||e&amp;&amp;"function"==typeof e.test})).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return i(e)&amp;&amp;e.length===s(e,(function(e){return e&amp;&amp;"object"==typeof e&amp;&amp;"function"==typeof e.load})).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return i(e)&amp;&amp;e.length===s(e,(function(e){return e&amp;&amp;"object"==typeof e&amp;&amp;"string"==typeof e.name})).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return!0===e||!1===e}}};var m=function(e){for(var t=1;t&lt;arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&amp;&amp;(e[s]=n[s])}return e},g=function(e,t){return n(e,(function(e,n,s,r){return e.concat(t(n,s,r))}),[])};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t&lt;arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&amp;&amp;(e[s]=n[s])}return e},f.apply(this,arguments)}var v=h.schema,b={releaseStage:m({},v.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:f({},v.appType,{defaultValue:function(){return"browser"}}),logger:m({},v.logger,{defaultValue:function(){return"undefined"!=typeof console&amp;&amp;"function"==typeof console.debug?y():void 0}})},y=function(){var e={},t=console.log;return g(["debug","info","warn","error"],(function(n){var s=console[n];e[n]="function"==typeof s?s.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")})),e},_=function(){function e(e,t,n,s){void 0===s&amp;&amp;(s=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=s}return e.prototype.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),k={};!function(t,n){"use strict";"function"==typeof e&amp;&amp;e.amd?e("stackframe",[],n):"object"==typeof k?k=n():t.StackFrame=n()}(this,(function(){"use strict";function e(e){return!isNaN(parseFloat(e))&amp;&amp;isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var s=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=["args"],o=["evalOrigin"],u=s.concat(r,i,a,o);function c(e){if(e)for(var n=0;n&lt;u.length;n++)void 0!==e[u[n]]&amp;&amp;this["set"+t(u[n])](e[u[n]])}c.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof c)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new c(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",s=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:s?s+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},c.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),s=e.substring(0,t),r=e.substring(t+1,n).split(","),i=e.substring(n+1);if(0===i.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i,""),o=a[1],u=a[2],l=a[3];return new c({functionName:s,args:r||void 0,fileName:o,lineNumber:u||void 0,columnNumber:l||void 0})};for(var l=0;l&lt;s.length;l++)c.prototype["get"+t(s[l])]=n(s[l]),c.prototype["set"+t(s[l])]=function(e){return function(t){this[e]=Boolean(t)}}(s[l]);for(var d=0;d&lt;r.length;d++)c.prototype["get"+t(r[d])]=n(r[d]),c.prototype["set"+t(r[d])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(r[d]);for(var h=0;h&lt;i.length;h++)c.prototype["get"+t(i[h])]=n(i[h]),c.prototype["set"+t(i[h])]=function(e){return function(t){this[e]=String(t)}}(i[h]);return c}));var w={};!function(t,n){"use strict";"function"==typeof e&amp;&amp;e.amd?e("stack-generator",["stackframe"],n):"object"==typeof w?w=n(k):t.StackGenerator=n(t.StackFrame)}(this,(function(e){return{backtrace:function(t){var n=[],s=10;"object"==typeof t&amp;&amp;"number"==typeof t.maxStackSize&amp;&amp;(s=t.maxStackSize);for(var r=arguments.callee;r&amp;&amp;n.length&lt;s&amp;&amp;r.arguments;){for(var i=new Array(r.arguments.length),a=0;a&lt;i.length;++a)i[a]=r.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(r.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:i})):n.push(new e({args:i}));try{r=r.caller}catch(e){break}}return n}}}));var E={};!function(t,n){"use strict";"function"==typeof e&amp;&amp;e.amd?e("error-stack-parser",["stackframe"],n):"object"==typeof E?E=n(k):t.ErrorStackParser=n(t.StackFrame)}(this,(function(e){"use strict";var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&amp;&amp;e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new 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 ")&gt;-1&amp;&amp;(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),s=n.match(/ (\((.+):(\d+):(\d+)\)$)/),r=(n=s?n.replace(s[0],""):n).split(/\s+/).slice(1),i=this.extractLocation(s?s[1]:r.pop()),a=r.join(" ")||void 0,o=["eval","&lt;anonymous&gt;"].indexOf(i[0])&gt;-1?void 0:i[0];return new e({functionName:a,fileName:o,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(s)}),this).map((function(t){if(t.indexOf(" &gt; eval")&gt;-1&amp;&amp;(t=t.replace(/ line (\d+)(?: &gt; eval line \d+)* &gt; eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&amp;&amp;-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=t.match(n),r=s&amp;&amp;s[1]?s[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")&gt;-1&amp;&amp;e.message.split("\n").length&gt;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,s=t.message.split("\n"),r=[],i=2,a=s.length;i&lt;a;i+=2){var o=n.exec(s[i]);o&amp;&amp;r.push(new e({fileName:o[2],lineNumber:o[1],source:s[i]}))}return r},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,s=t.stacktrace.split("\n"),r=[],i=0,a=s.length;i&lt;a;i+=2){var o=n.exec(s[i]);o&amp;&amp;r.push(new e({functionName:o[3]||void 0,fileName:o[2],lineNumber:o[1],source:s[i]}))}return r},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&amp;&amp;!e.match(/^Error created at/)}),this).map((function(t){var n,s=t.split("@"),r=this.extractLocation(s.pop()),i=s.shift()||"",a=i.replace(/&lt;anonymous function(: (\w+))?&gt;/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&amp;&amp;(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var o=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:o,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})}),this)}}}));var S=E,A=function(e,t,n,s){var r=s&amp;&amp;s.redactedKeys?s.redactedKeys:[],i=s&amp;&amp;s.redactedPaths?s.redactedPaths:[];return JSON.stringify(R(e,r,i),t,n)},C=20,T=25e3,x=8,P="...";function O(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function I(e){return"[Throws: "+(e?e.message:"?")+"]"}function L(e,t){for(var n=0,s=e.length;n&lt;s;n++)if(e[n]===t)return!0;return!1}function D(e,t){for(var n=0,s=e.length;n&lt;s;n++)if(0===t.indexOf(e[n]))return!0;return!1}function M(e,t){for(var n=0,s=e.length;n&lt;s;n++){if("string"==typeof e[n]&amp;&amp;e[n].toLowerCase()===t.toLowerCase())return!0;if(e[n]&amp;&amp;"function"==typeof e[n].test&amp;&amp;e[n].test(t))return!0}return!1}function F(e){return"[object Array]"===Object.prototype.toString.call(e)}function N(e,t){try{return e[t]}catch(e){return I(e)}}function R(e,t,n){var s=[],r=0;function i(e,a){function o(){return a.length&gt;x&amp;&amp;r&gt;T}if(r++,a.length&gt;C)return P;if(o())return P;if(null===e||"object"!=typeof e)return e;if(L(s,e))return"[Circular]";if(s.push(e),"function"==typeof e.toJSON)try{r--;var u=i(e.toJSON(),a);return s.pop(),u}catch(e){return I(e)}if(O(e)){r--;var c=i({name:e.name,message:e.message},a);return s.pop(),c}if(F(e)){for(var l=[],d=0,h=e.length;d&lt;h;d++){if(o()){l.push(P);break}l.push(i(e[d],a.concat("[]")))}return s.pop(),l}var p={};try{for(var m in e)if(Object.prototype.hasOwnProperty.call(e,m))if(D(n,a.join("."))&amp;&amp;M(t,m))p[m]="[REDACTED]";else{if(o()){p[m]=P;break}p[m]=i(N(e,m),a.concat(m))}}catch(e){}return s.pop(),p}return i(e,[])}function B(e,t,n,s){if("string"==typeof n){void 0===s?s=null:null!==s&amp;&amp;"string"!=typeof s&amp;&amp;(s=A(s));var r=t[n];"number"!=typeof r?(e.push({name:n,variant:s}),t[n]=e.length-1):e[r]={name:n,variant:s}}}function j(e,t,n){if(i(t)){for(var s=0;s&lt;t.length;++s){var r=t[s];null!==r&amp;&amp;"object"==typeof r&amp;&amp;B(e,n,r.name,r.variant)}return e}}function V(e){return g(s(e,Boolean),(function(e){var t=e.name,n=e.variant,s={featureFlag:t};return"string"==typeof n&amp;&amp;(s.variant=n),s}))}function q(e,t,n){var s=t[n];"number"==typeof s&amp;&amp;(e[s]=null,delete t[n])}var $={add:B,clear:q,merge:j,toEventApi:V},U=function(e){return!(!e||!e.stack&amp;&amp;!e.stacktrace&amp;&amp;!e["opera#sourceloc"]||"string"!=typeof(e.stack||e.stacktrace||e["opera#sourceloc"])||e.stack===e.name+": "+e.message)};function H(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}var z=H,G=function(e,t,n,s){var r;if(t){var i;if(null===n)return K(e,t);"object"==typeof n&amp;&amp;(i=n),"string"==typeof n&amp;&amp;((r={})[n]=s,i=r),i&amp;&amp;"__proto__"!==t&amp;&amp;"constructor"!==t&amp;&amp;"prototype"!==t&amp;&amp;(e[t]||(e[t]={}),e[t]=m({},e[t],i))}},K=function(e,t,n){"string"==typeof t&amp;&amp;(n?"__proto__"!==t&amp;&amp;"constructor"!==t&amp;&amp;"prototype"!==t&amp;&amp;e[t]&amp;&amp;delete e[t][n]:delete e[t])},W={add:G,get:function(e,t,n){if("string"==typeof t)return n?e[t]?e[t][n]:void 0:e[t]},clear:K};function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t&lt;arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&amp;&amp;(e[s]=n[s])}return e},X.apply(this,arguments)}var Y=function(){function e(t,n,s,r,i){void 0===s&amp;&amp;(s=[]),void 0===r&amp;&amp;(r=Z()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=i,this._handledState=r,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this.errors=[te(t,n,e.__type,s)]}var t=e.prototype;return t.addMetadata=function(e,t,n){return W.add(this._metadata,e,t,n)},t.setTraceCorrelation=function(e,t){"string"==typeof e&amp;&amp;(this._correlation=X({traceId:e},"string"==typeof t?{spanId:t}:{}))},t.getMetadata=function(e,t){return W.get(this._metadata,e,t)},t.clearMetadata=function(e,t){return W.clear(this._metadata,e,t)},t.addFeatureFlag=function(e,t){void 0===t&amp;&amp;(t=null),$.add(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){$.merge(this._features,e,this._featuresIndex)},t.getFeatureFlags=function(){return $.toEventApi(this._features)},t.clearFeatureFlag=function(e){$.clear(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{payloadVersion:"4",exceptions:g(this.errors,(function(e){return m({},e,{message:e.errorMessage})})),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},e}(),J=function(e){var t={file:e.fileName,method:Q(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber&gt;-1&amp;&amp;!t.file&amp;&amp;!t.method&amp;&amp;(t.file="global code"),t},Q=function(e){return/^global code$/i.test(e)?"global code":e},Z=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},ee=function(e){return"string"==typeof e?e:""};function te(e,t,s,r){return{errorClass:ee(e),errorMessage:ee(t),type:s,stacktrace:n(r,(function(e,t){var n=J(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(t){return e}}),[])}}function ne(e){return e.cause?[e].concat(ne(e.cause)):[e]}Y.getStacktrace=function(e,t,n){if(U(e))return S.parse(e).slice(t);try{return s(w.backtrace(),(function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")})).slice(1+n)}catch(e){return[]}},Y.create=function(e,t,n,s,r,i){void 0===r&amp;&amp;(r=0);var a,o=re(e,t,s,i),u=o[0],c=o[1];try{var l=Y.getStacktrace(u,c&gt;0?1+c+r:0,1+r);a=new Y(u.name,u.message,l,n,e)}catch(t){a=new Y(u.name,u.message,[],n,e)}if("InvalidError"===u.name&amp;&amp;a.addMetadata(""+s,"non-error parameter",se(e)),u.cause){var d,h=ne(u).slice(1),p=g(h,(function(e){var t=z(e)&amp;&amp;U(e)?S.parse(e):[],n=re(e,!0,"error cause")[0];return"InvalidError"===n.name&amp;&amp;a.addMetadata("error cause",se(e)),te(n.name,n.message,Y.__type,t)}));(d=a.errors).push.apply(d,p)}return a};var se=function(e){return null===e?"null":void 0===e?"undefined":e},re=function(e,t,n,s){var r,i=0,a=function(e){var t="error cause"===n?"was":"received";s&amp;&amp;s.warn(n+" "+t+' a non-error: "'+e+'"');var r=new Error(n+" "+t+' a non-error. See "'+n+'" tab for more detail.');return r.name="InvalidError",r};if(t)switch(typeof e){case"string":case"number":case"boolean":r=new Error(String(e)),i+=1;break;case"function":r=a("function"),i+=2;break;case"object":null!==e&amp;&amp;z(e)?r=e:null!==e&amp;&amp;ie(e)?((r=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,i+=1):(r=a(null===e?"null":"unsupported object"),i+=2);break;default:r=a("nothing"),i+=2}else z(e)?r=e:(r=a(typeof e),i+=2);if(!U(r))try{throw r}catch(e){U(e)&amp;&amp;(r=e,i=1)}return[r,i]};Y.__type="browserjs";var ie=function(e){return!("string"!=typeof e.name&amp;&amp;"string"!=typeof e.errorClass||"string"!=typeof e.message&amp;&amp;"string"!=typeof e.errorMessage)},ae=Y,oe=function(e,t,n){var s=0,r=function(){if(s&gt;=e.length)return n(null,!0);t(e[s],(function(e,t){return e?n(e):!1===t?n(null,!1):(s++,void r())}))};r()},ue=function(e,t,n,s){var r=function(e,s){if("function"!=typeof e)return s(null);try{if(2!==e.length){var r=e(t);return r&amp;&amp;"function"==typeof r.then?r.then((function(e){return setTimeout((function(){return s(null,e)}))}),(function(e){setTimeout((function(){return n(e),s(null,!0)}))})):s(null,r)}e(t,(function(e,t){if(e)return n(e),s(null);s(null,t)}))}catch(e){n(e),s(null)}};oe(e,r,s)},ce=function(e,t,n,s){for(var r=!1,i=e.slice();!r&amp;&amp;i.length;)try{r=!1===i.pop()(t)}catch(e){s.error("Error occurred in "+n+" callback, continuing anywayâ€¦"),s.error(e)}return r},le=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},de="object"==typeof window?window:self,he=0;for(var pe in de)Object.hasOwnProperty.call(de,pe)&amp;&amp;he++;var me=navigator.mimeTypes?navigator.mimeTypes.length:0,ge=le((me+navigator.userAgent.length).toString(36)+he.toString(36),4),fe=function(){return ge},ve=function(e){return"string"==typeof e&amp;&amp;/^c[a-z0-9]{20,32}$/.test(e)},be=0,ye=4,_e=36,ke=Math.pow(_e,ye);function we(){return le((Math.random()*ke|0).toString(_e),ye)}function Ee(){return be=be&lt;ke?be:0,++be-1}function Se(){return"c"+(new Date).getTime().toString(_e)+le(Ee().toString(_e),ye)+fe()+(we()+we())}Se.fingerprint=fe,Se.isCuid=ve;var Ae=Se,Ce=function(){function e(){this.id=Ae(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),Te=$.add,xe=$.clear,Pe=$.merge,Oe=function(){},Ie=function(){function e(t,n,s,r){var i=this;void 0===n&amp;&amp;(n=h.schema),void 0===s&amp;&amp;(s=[]),this._notifier=r,this._config={},this._schema=n,this._delivery={sendSession:Oe,sendEvent:Oe},this._logger={debug:Oe,info:Oe,warn:Oe,error:Oe},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=ae,this.Breadcrumb=_,this.Session=Ce,this._config=this._configure(t,s),g(s.concat(this._config.plugins),(function(e){e&amp;&amp;i._loadPlugin(e)})),this._depth=1;var a=this,o=this.notify;this.notify=function(){return o.apply(a,arguments)}}var i=e.prototype;return i.addMetadata=function(e,t,n){return W.add(this._metadata,e,t,n)},i.getMetadata=function(e,t){return W.get(this._metadata,e,t)},i.clearMetadata=function(e,t){return W.clear(this._metadata,e,t)},i.addFeatureFlag=function(e,t){void 0===t&amp;&amp;(t=null),Te(this._features,this._featuresIndex,e,t)},i.addFeatureFlags=function(e){Pe(this._features,e,this._featuresIndex)},i.clearFeatureFlag=function(e){xe(this._features,this._featuresIndex,e)},i.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},i.getContext=function(){return this._context},i.setContext=function(e){this._context=e},i._configure=function(e,t){var s=n(t,(function(e,t){return t&amp;&amp;t.configSchema?m({},e,t.configSchema):e}),this._schema),r=n(u(s),(function(t,n){var r=s[n].defaultValue(e[n]);return void 0!==e[n]?s[n].validate(e[n])?s[n].allowPartialObject?t.config[n]=m(r,e[n]):t.config[n]=e[n]:(t.errors[n]=s[n].message,t.config[n]=r):t.config[n]=r,t}),{errors:{},config:{}}),i=r.errors,a=r.config;if(s.apiKey){if(!a.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(a.apiKey)||(i.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=m({},a.metadata),Pe(this._features,a.featureFlags,this._featuresIndex),this._user=m({},a.user),this._context=a.context,a.logger&amp;&amp;(this._logger=a.logger),a.onError&amp;&amp;(this._cbs.e=this._cbs.e.concat(a.onError)),a.onBreadcrumb&amp;&amp;(this._cbs.b=this._cbs.b.concat(a.onBreadcrumb)),a.onSession&amp;&amp;(this._cbs.s=this._cbs.s.concat(a.onSession)),u(i).length&amp;&amp;this._logger.warn(Le(i,e)),a},i.getUser=function(){return this._user},i.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},i._loadPlugin=function(e){var t=e.load(this);e.name&amp;&amp;(this._plugins["~"+e.name+"~"]=t)},i.getPlugin=function(e){return this._plugins["~"+e+"~"]},i._setDelivery=function(e){this._delivery=e(this)},i.startSession=function(){var e=new Ce;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=m({},this._user),ce(this._cbs.s,e,"onSession",this._logger)?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},i.addOnError=function(e,t){void 0===t&amp;&amp;(t=!1),this._cbs.e[t?"unshift":"push"](e)},i.removeOnError=function(e){this._cbs.e=s(this._cbs.e,(function(t){return t!==e}))},i._addOnSessionPayload=function(e){this._cbs.sp.push(e)},i.addOnSession=function(e){this._cbs.s.push(e)},i.removeOnSession=function(e){this._cbs.s=s(this._cbs.s,(function(t){return t!==e}))},i.addOnBreadcrumb=function(e,t){void 0===t&amp;&amp;(t=!1),this._cbs.b[t?"unshift":"push"](e)},i.removeOnBreadcrumb=function(e){this._cbs.b=s(this._cbs.b,(function(t){return t!==e}))},i.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},i.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},i.leaveBreadcrumb=function(e,n,s){if(e="string"==typeof e?e:"",s="string"==typeof s&amp;&amp;r(t,s)?s:"manual",n="object"==typeof n&amp;&amp;null!==n?n:{},e){var i=new _(e,n,s);ce(this._cbs.b,i,"onBreadcrumb",this._logger)?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(i),this._breadcrumbs.length&gt;this._config.maxBreadcrumbs&amp;&amp;(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},i._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return null===t||r(t,e)},i.notify=function(e,t,n){void 0===n&amp;&amp;(n=Oe);var s=ae.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(s,t,n)},i._notify=function(t,n,s){var i=this;if(void 0===s&amp;&amp;(s=Oe),t.app=m({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=m({},t._metadata,this._metadata),t._user=m({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),Pe(t._features,this._features,t._featuresIndex),null!==this._config.enabledReleaseStages&amp;&amp;!r(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),s(null,t);var a=t.severity,o=function(e){i._logger.error("Error occurred in onError callback, continuing anywayâ€¦"),i._logger.error(e)},u=[].concat(this._cbs.e).concat(n);ue(u,t,o,(function(n,r){if(n&amp;&amp;o(n),!r)return i._logger.debug("Event not sent due to onError callback"),s(null,t);i._isBreadcrumbTypeEnabled("error")&amp;&amp;e.prototype.leaveBreadcrumb.call(i,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},"error"),a!==t.severity&amp;&amp;(t._handledState.severityReason={type:"userCallbackSetSeverity"}),t.unhandled!==t._handledState.unhandled&amp;&amp;(t._handledState.severityReason.unhandledOverridden=!0,t._handledState.unhandled=t.unhandled),i._session&amp;&amp;(i._session._track(t),t._session=i._session),i._delivery.sendEvent({apiKey:t.apiKey||i._config.apiKey,notifier:i._notifier,events:[t]},(function(e){return s(e,t)}))}))},e}(),Le=function(e,t){return new Error("Invalid configuration\n"+g(u(e),(function(n){return"  - "+n+" "+e[n]+", got "+De(t[n])})).join("\n\n"))},De=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},Me=Ie,Fe={},Ne=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Fe.event=function(e,t){var n=A(e,null,null,{redactedPaths:Ne,redactedKeys:t});return n.length&gt;1e6&amp;&amp;(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},n=A(e,null,null,{redactedPaths:Ne,redactedKeys:t})),n},Fe.session=function(e,t){return A(e,null,null)};var Re={};Re=function(e,t){return void 0===t&amp;&amp;(t=window),{sendEvent:function(n,s){if(void 0===s&amp;&amp;(s=function(){}),null===e._config.endpoints.notify){var r=new Error("Event not sent due to incomplete endpoint configuration");return s(r)}var i=Be(e._config,"notify","4",t),a=Fe.event(n,e._config.redactedKeys),o=new t.XDomainRequest;o.onload=function(){s(null)},o.onerror=function(){var t=new Error("Event failed to send");e._logger.error("Event failed to sendâ€¦",t),a.length&gt;1e6&amp;&amp;e._logger.warn("Event oversized ("+(a.length/1e6).toFixed(2)+" MB)"),s(t)},o.open("POST",i),setTimeout((function(){try{o.send(a)}catch(t){e._logger.error(t),s(t)}}),0)},sendSession:function(n,s){if(void 0===s&amp;&amp;(s=function(){}),null===e._config.endpoints.sessions){var r=new Error("Session not sent due to incomplete endpoint configuration");return s(r)}var i=Be(e._config,"sessions","1",t),a=new t.XDomainRequest;a.onload=function(){s(null)},a.open("POST",i),setTimeout((function(){try{a.send(Fe.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),s(t)}}),0)}}};var Be=function(e,t,n,s){var r=JSON.parse(JSON.stringify(new Date));return je(e.endpoints[t],s.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&amp;payloadVersion="+n+"&amp;sentAt="+encodeURIComponent(r)},je=Re._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},Ve=function(e,t){return void 0===t&amp;&amp;(t=window),{sendEvent:function(n,s){void 0===s&amp;&amp;(s=function(){});try{var r=e._config.endpoints.notify;if(null===r){var i=new Error("Event not sent due to incomplete endpoint configuration");return s(i)}var a=new t.XMLHttpRequest,o=Fe.event(n,e._config.redactedKeys);a.onreadystatechange=function(){if(a.readyState===t.XMLHttpRequest.DONE){var n=a.status;if(0===n||n&gt;=400){var r=new Error("Request failed with status "+n);e._logger.error("Event failed to sendâ€¦",r),o.length&gt;1e6&amp;&amp;e._logger.warn("Event oversized ("+(o.length/1e6).toFixed(2)+" MB)"),s(r)}else s(null)}},a.open("POST",r),a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),a.setRequestHeader("Bugsnag-Payload-Version","4"),a.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),a.send(o)}catch(t){e._logger.error(t)}},sendSession:function(n,s){void 0===s&amp;&amp;(s=function(){});try{var r=e._config.endpoints.sessions;if(null===r){var i=new Error("Session not sent due to incomplete endpoint configuration");return s(i)}var a=new t.XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===t.XMLHttpRequest.DONE){var n=a.status;if(0===n||n&gt;=400){var r=new Error("Request failed with status "+n);e._logger.error("Session failed to sendâ€¦",r),s(r)}else s(null)}},a.open("POST",r),a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),a.setRequestHeader("Bugsnag-Payload-Version","1"),a.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),a.send(Fe.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t)}}}},qe=new Date,$e=function(){qe=new Date},Ue={name:"appDuration",load:function(e){return e.addOnError((function(e){var t=new Date;e.app.duration=t-qe}),!0),{reset:$e}}},He=function(e){return void 0===e&amp;&amp;(e=window),{load:function(t){t.addOnError((function(t){void 0===t.context&amp;&amp;(t.context=e.location.pathname)}),!0)}}},ze="bugsnag-anonymous-id",Ge=function(e){try{var t=e.localStorage,n=t.getItem(ze);return n&amp;&amp;/^c[a-z0-9]{20,32}$/.test(n)||(n=Ae(),t.setItem(ze,n)),n}catch(e){}},Ke=function(e,t){return void 0===e&amp;&amp;(e=navigator),void 0===t&amp;&amp;(t=window),{load:function(n){var s={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};t&amp;&amp;t.screen&amp;&amp;t.screen.orientation&amp;&amp;t.screen.orientation.type?s.orientation=t.screen.orientation.type:t&amp;&amp;t.document&amp;&amp;(s.orientation=t.document.documentElement.clientWidth&gt;t.document.documentElement.clientHeight?"landscape":"portrait"),n._config.generateAnonymousId&amp;&amp;(s.id=Ge(t)),n.addOnSession((function(e){e.device=m({},e.device,s),n._config.collectUserIp||We(e)})),n.addOnError((function(e){e.device=m({},e.device,s,{time:new Date}),n._config.collectUserIp||We(e)}),!0)},configSchema:{generateAnonymousId:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}},We=function(e){var t=e.getUser();t&amp;&amp;t.id||e.setUser(e.device.id)},Xe=function(e){return void 0===e&amp;&amp;(e=window),{load:function(t){t.addOnError((function(t){t.request&amp;&amp;t.request.url||(t.request=m({},t.request,{url:e.location.href}))}),!0)}}},Ye={load:function(e){e._sessionDelegate=Je}},Je={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,null===n._config.enabledReleaseStages||r(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},Qe={load:function(e){e._config.collectUserIp||e.addOnError((function(e){e._user&amp;&amp;void 0===e._user.id&amp;&amp;delete e._user.id,e._user=m({id:"[REDACTED]"},e._user),e.request=m({clientIp:"[REDACTED]"},e.request)}))},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},Ze={load:function(e){!/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)&amp;&amp;e._isBreadcrumbTypeEnabled("log")&amp;&amp;g(et,(function(t){var s=console[t];console[t]=function(){for(var r=arguments.length,i=new Array(r),a=0;a&lt;r;a++)i[a]=arguments[a];e.leaveBreadcrumb("Console output",n(i,(function(e,t,n){var s="[Unknown value]";try{s=String(t)}catch(e){}if("[object Object]"===s)try{s=JSON.stringify(t)}catch(e){}return e["["+n+"]"]=s,e}),{severity:0===t.indexOf("group")?"log":t}),"log"),s.apply(console,i)},console[t]._restore=function(){console[t]=s}}))}},et=s(["log","debug","info","warn","error"],(function(e){return"undefined"!=typeof console&amp;&amp;"function"==typeof console[e]})),tt=200,nt=5e5,st=function(e,t){return void 0===e&amp;&amp;(e=document),void 0===t&amp;&amp;(t=window),{load:function(r){if(r._config.trackInlineScripts){var i=t.location.href,a="",o=e.attachEvent?"complete"===e.readyState:"loading"!==e.readyState,u=function(){return e.documentElement.outerHTML};a=u();var c=e.onreadystatechange;e.onreadystatechange=function(){"interactive"===e.readyState&amp;&amp;(a=u(),o=!0);try{c.apply(this,arguments)}catch(e){}};var l=null,d=function(e){l=e},h=function(){var t=e.currentScript||l;if(!t&amp;&amp;!o){var n=e.scripts||e.getElementsByTagName("script");t=n[n.length-1]}return t},p=function(e){o&amp;&amp;a||(a=u());var t=["\x3c!-- DOC START --\x3e"].concat(a.split("\n")),s=e-1,r=Math.max(s-3,0),i=Math.min(s+3,t.length);return n(t.slice(r,i),(function(e,t,n){return e[r+1+n]=t.length&lt;=tt?t:t.substr(0,tt),e}),{})};r.addOnError((function(e){e.errors[0].stacktrace=s(e.errors[0].stacktrace,(function(e){return!/__trace__$/.test(e.method)}));var t=e.errors[0].stacktrace[0],n=function(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!t||!t.file||n(t.file)===n(i)){var r=h();if(r){var a=r.innerHTML;e.addMetadata("script","content",a.length&lt;=nt?a:a.substr(0,nt)),t&amp;&amp;t.lineNumber&amp;&amp;(t.code=p(t.lineNumber))}}}),!0);var m=g(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],(function(e){return rt(t,e,(function(e){return f(e,(function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}}))}))}))[0];g(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],(function(e){t[e]&amp;&amp;t[e].prototype&amp;&amp;Object.prototype.hasOwnProperty.call(t[e].prototype,"addEventListener")&amp;&amp;(rt(t[e].prototype,"addEventListener",(function(e){return f(e,it)})),rt(t[e].prototype,"removeEventListener",(function(e){return f(e,it,!0)})))}))}function f(e,t,n){return void 0===n&amp;&amp;(n=!1),function(){var s=[].slice.call(arguments);try{var r=t(s),i=r.get();if(n&amp;&amp;e.apply(this,s),"function"!=typeof i)return e.apply(this,s);if(i.__trace__)r.replace(i.__trace__);else{var a=h();i.__trace__=function(){d(a),m((function(){d(null)}),0);var e=i.apply(this,arguments);return d(null),e},i.__trace__.__trace__=i.__trace__,r.replace(i.__trace__)}}catch(e){}if(e.apply)return e.apply(this,s);switch(s.length){case 1:return e(s[0]);case 2:return e(s[0],s[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}};function rt(e,t,n){var s=e[t];if(!s)return s;var r=n(s);return e[t]=r,s}function it(e){var t=!!e[1]&amp;&amp;"function"==typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var at=function(e){return void 0===e&amp;&amp;(e=window),{load:function(t){"addEventListener"in e&amp;&amp;t._isBreadcrumbTypeEnabled("user")&amp;&amp;e.addEventListener("click",(function(n){var s,r;try{s=ut(n.target),r=ct(n.target,e)}catch(e){s="[hidden]",r="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:s,targetSelector:r},"user")}),!0)}}},ot=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function ut(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&amp;&amp;"button"!==e.type||(t=e.value),(t=t.replace(ot,"$1")).length&gt;140?t.slice(0,135)+"(...)":t}function ct(e,t){var n=[e.tagName];if(e.id&amp;&amp;n.push("#"+e.id),e.className&amp;&amp;e.className.length&amp;&amp;n.push("."+e.className.split(" ").join(".")),!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===t.document.querySelectorAll(n.join("")).length)return n.join("")}catch(e){return n.join("")}if(e.parentNode.childNodes.length&gt;1){var s=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+s+")")}return 1===t.document.querySelectorAll(n.join("")).length?n.join(""):e.parentNode?ct(e.parentNode,t)+" &gt; "+n.join(""):n.join("")}var lt={};lt=function(e){void 0===e&amp;&amp;(e=window);var t={load:function(t){if("addEventListener"in e&amp;&amp;t._isBreadcrumbTypeEnabled("navigation")){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",n("Page hidden"),!0),e.addEventListener("pageshow",n("Page shown"),!0),e.addEventListener("load",n("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),e.addEventListener("load",(function(){return e.addEventListener("popstate",n("Navigated back"),!0)})),e.addEventListener("hashchange",(function(n){var s=n.oldURL?{from:dt(n.oldURL,e),to:dt(n.newURL,e),state:mt(e)}:{to:dt(e.location.href,e)};t.leaveBreadcrumb("Hash changed",s,"navigation")}),!0),e.history.pushState&amp;&amp;pt(t,e.history,"pushState",e,!0),e.history.replaceState&amp;&amp;pt(t,e.history,"replaceState",e)}}};return t};var dt=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},ht=function(e,t,n,s){var r=dt(e.location.href,e);return{title:n,state:t,prevState:mt(e),to:s||r,from:r}},pt=function(e,t,n,s,r){void 0===r&amp;&amp;(r=!1);var i=t[n];t[n]=function(a,o,u){e.leaveBreadcrumb("History "+n,ht(s,a,o,u),"navigation"),r&amp;&amp;"function"==typeof e.resetEventCount&amp;&amp;e.resetEventCount(),i.apply(t,[a,o].concat(void 0!==u?u:[]))}},mt=function(e){try{return e.history.state}catch(e){}},gt="request",ft=function(e,t){void 0===e&amp;&amp;(e=[]),void 0===t&amp;&amp;(t=window);var n={load:function(n){if(n._isBreadcrumbTypeEnabled("request")){var s=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(e);o(),l();var i=function(e,t,s,r){var i={method:String(t),status:e.status,url:String(s),duration:r};e.status&gt;=400?n.leaveBreadcrumb("fetch() failed",i,gt):n.leaveBreadcrumb("fetch() succeeded",i,gt)},a=function(e,t,s){n.leaveBreadcrumb("fetch() error",{method:String(e),url:String(t),duration:s},gt)}}function o(){if("addEventListener"in t.XMLHttpRequest.prototype&amp;&amp;"WeakMap"in t){var e=new WeakMap,n=new WeakMap,s=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(t,n){this&amp;&amp;e.set(this,{method:t,url:n}),s.apply(this,arguments)};var r=t.XMLHttpRequest.prototype.send;t.XMLHttpRequest.prototype.send=function(t){var s=this,i=e.get(this);if(i){var a=n.get(this);a&amp;&amp;(this.removeEventListener("load",a.load),this.removeEventListener("error",a.error));var o=new Date,l=function(){return c(i.method,i.url,vt(o))},d=function(){return u(i.method,i.url,s.status,vt(o))};this.addEventListener("load",d),this.addEventListener("error",l),this&amp;&amp;n.set(this,{load:d,error:l})}r.apply(this,arguments)}}}function u(e,t,i,a){if(void 0!==t){if("string"!=typeof t||!r(s,t.replace(/\?.*$/,""))){var o={status:i,method:String(e),url:String(t),duration:a};i&gt;=400?n.leaveBreadcrumb("XMLHttpRequest failed",o,gt):n.leaveBreadcrumb("XMLHttpRequest succeeded",o,gt)}}else n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function c(e,t,i){void 0!==t?"string"==typeof t&amp;&amp;r(s,t.replace(/\?.*$/,""))||n.leaveBreadcrumb("XMLHttpRequest error",{method:String(e),url:String(t),duration:i},gt):n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function l(){if("fetch"in t&amp;&amp;!t.fetch.polyfill){var e=t.fetch;t.fetch=function(){var t,n=arguments,s=arguments[0],r=arguments[1],o=null;return s&amp;&amp;"object"==typeof s?(o=s.url,r&amp;&amp;"method"in r?t=r.method:s&amp;&amp;"method"in s&amp;&amp;(t=s.method)):(o=s,r&amp;&amp;"method"in r&amp;&amp;(t=r.method)),void 0===t&amp;&amp;(t="GET"),new Promise((function(s,r){var u=new Date;e.apply(void 0,n).then((function(e){i(e,t,o,vt(u)),s(e)})).catch((function(e){a(t,o,vt(u)),r(e)}))}))}}}}};return n},vt=function(e){return e&amp;&amp;new Date-e},bt={load:function(e){var t=0;e.addOnError((function(n){if(t&gt;=e._config.maxEvents)return e._logger.warn("Cancelling event send due to maxEvents per session limit of "+e._config.maxEvents+" being reached"),!1;t++})),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer â‰¤100",validate:function(e){return c(1,100)(e)}}}},yt={},_t=(yt={load:function(e){e.addOnError((function(e){var t=n(e.errors,(function(e,t){return e.concat(t.stacktrace)}),[]);g(t,(function(e){e.file=_t(e.file)}))}))}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},kt=function(e,t){return void 0===e&amp;&amp;(e=window),void 0===t&amp;&amp;(t="window onerror"),{load:function(n){if(n._config.autoDetectErrors&amp;&amp;n._config.enabledErrorTypes.unhandledExceptions){var s=e.onerror;e.onerror=r}function r(e,r,i,a,o){if(0===i&amp;&amp;/Script error\.?/.test(e))n._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var u,c={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(o)u=n.Event.create(o,!0,c,t,1),wt(u.errors[0].stacktrace,r,i,a);else if("object"!=typeof e||null===e||r&amp;&amp;"string"==typeof r||i||a||o)u=n.Event.create(e,!0,c,t,1),wt(u.errors[0].stacktrace,r,i,a);else{var l=e.type?"Event: "+e.type:"Error",d=e.message||e.detail||"";(u=n.Event.create({name:l,message:d},!0,c,t,1)).originalError=e,u.addMetadata(t,{event:e,extraParameters:r})}n._notify(u)}"function"==typeof s&amp;&amp;s.apply(this,arguments)}}}},wt=function(e,t,n,s){e[0]||e.push({});var r=e[0];r.file||"string"!=typeof t||(r.file=t),!r.lineNumber&amp;&amp;Et(n)&amp;&amp;(r.lineNumber=n),r.columnNumber||(Et(s)?r.columnNumber=s:window.event&amp;&amp;Et(window.event.errorCharacter)&amp;&amp;(r.columnNumber=window.event.errorCharacter))},Et=function(e){return"number"==typeof e&amp;&amp;"NaN"!==String.call(e)},St=function(e){return void 0===e&amp;&amp;(e=window),{load:function(t){if(t._config.autoDetectErrors&amp;&amp;t._config.enabledErrorTypes.unhandledRejections){var n=function(e){var n=e.reason,s=!1;try{e.detail&amp;&amp;e.detail.reason&amp;&amp;(n=e.detail.reason,s=!0)}catch(e){}var r=!t._config.reportUnhandledPromiseRejectionsAsHandled,i=t.Event.create(n,!1,{severity:"error",unhandled:r,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,t._logger);s&amp;&amp;g(i.errors[0].stacktrace,At(n)),t._notify(i,(function(e){var t;z(e.originalError)&amp;&amp;!e.originalError.stack&amp;&amp;e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))}))};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}}},At=function(e){return function(t){t.file!==e.toString()&amp;&amp;t.method&amp;&amp;(t.method=t.method.replace(/^\s+/,""))}},Ct={},Tt="Bugsnag JavaScript",xt="8.1.2",Pt="https://github.com/bugsnag/bugsnag-js",Ot=m({},h.schema,b),It={_client:null,createClient:function(e){"string"==typeof e&amp;&amp;(e={apiKey:e}),e||(e={});var t=[Ue,Ke(),He(),Xe(),bt,Ye,Qe,yt,kt(),St(),lt(),at(),ft(),Ze,st()],n=new Me(e,Ot,t,{name:Tt,version:xt,url:Pt});return n._setDelivery(window.XDomainRequest?Re:Ve),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(e){return It._client?(It._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),It._client):(It._client=It.createClient(e),It._client)},isStarted:function(){return null!=It._client}};return g(["resetEventCount"].concat(u(Me.prototype)),(function(e){/^_/.test(e)||(It[e]=function(){if(!It._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");It._client._depth+=1;var t=It._client[e].apply(It._client,arguments);return It._client._depth-=1,t})})),(Ct=It).Client=Me,Ct.Event=ae,Ct.Session=Ce,Ct.Breadcrumb=_,Ct.default=It,Ct}()},7826:(e,t,n)=&gt;{var s=n(6852),r=n(2228),i=n(2303),a=0,o=Math.pow(36,4);function u(){return i((Math.random()*o|0).toString(36),4)}function c(){return"c"+(new Date).getTime().toString(36)+i((a=a&lt;o?a:0,++a-1).toString(36),4)+s()+(u()+u())}c.fingerprint=s,c.isCuid=r,e.exports=c},6852:(e,t,n)=&gt;{var s=n(2303),r="object"==typeof window?window:self,i=0;for(var a in r)Object.hasOwnProperty.call(r,a)&amp;&amp;i++;var o=s(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+i.toString(36),4);e.exports=function(){return o}},2228:e=&gt;{e.exports=function(e){return"string"==typeof e&amp;&amp;/^c[a-z0-9]{20,32}$/.test(e)}},2303:e=&gt;{e.exports=function(e,t){var n="000000000"+e;return n.substr(n.length-t)}},5993:(e,t,n)=&gt;{e.exports=n(9525)},3094:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;e.split("").map((e=&gt;t(e)?e:"")).join("")},9118:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;new Date(e).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})},6720:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;new Date(e).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})},3274:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;`/uiassets/${e.sku}-accessories.png`},5926:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;`/uiassets/${e}-list.png`},4459:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;{var t,n;const s="/uiassets/";return e.byod?`${s}${null===(t=e.sim)||void 0===t?void 0:t.sku}.png`:`${s}${null===(n=e.device)||void 0===n?void 0:n.sku}-list.png`}},2769:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;e.replace("/","").split("-").join(" ")},8560:(e,t,n)=&gt;{"use strict";n.r(t),n.d(t,{addCommonInfoToDataObject:()=&gt;M,currentTwoDigitYear:()=&gt;i,filterValue:()=&gt;k.A,formatDate:()=&gt;m.A,formatShippingDate:()=&gt;g.A,getAccessoryImage:()=&gt;_.A,getDeviceImage:()=&gt;b.A,getGlobalVar:()=&gt;B,getImagePath:()=&gt;y.A,getNameFromUrl:()=&gt;o.A,isMobile:()=&gt;L.A,isMobileTablet:()=&gt;D.A,isNameCharacter:()=&gt;E.A,isNumber:()=&gt;w.A,isRafCodeCharacter:()=&gt;S.A,isUserLoggedIn:()=&gt;h.A,isUserSemiLoggedIn:()=&gt;j.A,isValidEmail:()=&gt;A.A,mapCustomerInfoFromBanDetails:()=&gt;O,phoneFormatter:()=&gt;s,phoneNumberMask:()=&gt;v.A,priceFormat:()=&gt;f.A,pushDataLayerObject:()=&gt;c.A,pushUserActionToDataLayer:()=&gt;l.A,returnPageViewObject:()=&gt;d.A,rules:()=&gt;a,scrollToTopOfElement:()=&gt;p.A,sessionData:()=&gt;N,updateContent:()=&gt;u.A,useQuery:()=&gt;I.A});const s={pattern:/\d*/,replacer:e=&gt;{let t="";return e.length&gt;=1&amp;&amp;(t=`(${e.substring(0)}`),e.length&gt;=4&amp;&amp;(t=`(${e.substring(0,3)}) ${e.substring(3)}`),e.length&gt;=7&amp;&amp;(t=`(${e.substring(0,3)}) ${e.substring(3,6)}-${e.substring(6)}`),t}},r=new Date,i=parseInt(r.getFullYear().toString().substring(2),10),a={required:e=&gt;!!e,phoneNumber:e=&gt;10===e.length,orderNumber:e=&gt;!!e&amp;&amp;16===e.length,rafCode:e=&gt;13===e.length,pinNumber:e=&gt;4===e.length,nameOnCard:e=&gt;!!e,creditCard:(e,t)=&gt;!!e&amp;&amp;e.length&gt;=15&amp;&amp;"DEFAULT"!==t,expirationMonth:e=&gt;!!e&amp;&amp;parseInt(e)&lt;=12,expirationYear:e=&gt;!!e&amp;&amp;parseInt(e)&gt;=i,securityCode:e=&gt;!!e&amp;&amp;e.length&gt;=3,billingZipCode:e=&gt;!!e&amp;&amp;5===e.length,agreeTerms:e=&gt;!!e,refillCard:e=&gt;!!e&amp;&amp;10===e.length};var o=n(2769),u=n(499),c=n(5411),l=n(9237),d=n(7114),h=n(67),p=n(1611),m=n(9118),g=n(6720),f=n(3947),v=n(656),b=n(5926),y=n(4459),_=n(3274),k=n(3094),w=n(5392),E=n(7015),S=n(5830),A=n(3575);const C=e=&gt;{const{customerName:t,accountDetails:n}=e||{},{subscriberDetailsList:s,billingDetails:r,bridgePayEligibility:i,accountActivityStatus:a,accountEmail:o,accountStatus:u}=n||{};return{accountId:n.accountNumber,accountStatus:{C:"CLOSED",N:"CANCELED",O:"OPENED",S:"SUSPENDED",T:"TENTATIVE"}[u],bridgePayInd:i.status,pendingOrder:a.pendingOrder,pendingOrderInd:a.pendingOrder,billRunInd:r.billingInProgress,email:o,lastName:t.lastName,firstName:t.firstName,isMaxLineReached:s&gt;=9,status:"success"}},T=e=&gt;{const t=e.activationDate.split("/"),n=isNaN(Number(t[1]))?0:Number(t[1]),s=isNaN(Number(t[0]))?-1:Number(t[0])-1,r=isNaN(Number(t[2]))?0:Number(t[2]);return n&amp;&amp;s&gt;=0&amp;&amp;r?new Date(r,s,n):new Date(Date.now())},x=e=&gt;{var t;const{ctnDetails:n,futureActivityInfo:s,serviceRestrictionInfo:r,deviceDetails:i,isMultiMonthSubscriber:a}=e,o=null===(t=n.addOnSocs)||void 0===t?void 0:t.map((e=&gt;Object.assign(e,{serviceId:e.code}))),u=n.ctnStatus,c=(n.ratePlan||{}).code||"";return{ctn:n.ctn,lineStatus:{status:u,active:"ACTIVE"===u},isTabletDevice:!!i.isTablet,isTalkAndTextPlan:["25","25HDVOICE"].includes(c),lostOrStolen:"SUSPENDED"===u&amp;&amp;["TO","ST","LS","LS/TO"].includes(n.subscriberStatusReasonCode),futureDatedInd:s.subscriberHasFutureActivity,addedServices:o,isMultiMonthSubscriber:!!a,devicePurchaseInfo:{upgradeDeviceDiscEligibleInd:!r.deviceDiscountRestricted,lastUpgradeDeviceDiscountDate:r.lastDeviceDiscountDate,nextUpgradeDeviceDiscEligibilityDate:r.nextDeviceDiscountEligibleDate}}},P=(e,t)=&gt;{const n=[];let s;return e.forEach((e=&gt;{const r=x(e);n.push(r);const i=T(e.ctnDetails);t.anniversaryDate=s=!s||i&lt;s?i:s})),n},O=e=&gt;{const t=C(e);return t.subscribers=P(e.accountDetails.subscriberDetailsList,t),t};var I=n(5152),L=n(7023),D=n(1247);const M=e=&gt;{let t;return t=(0,L.A)()?"Mobile":(0,D.A)()?"Tablet":"Desktop",e.deviceType=t,e.timestamp_user=(new Date).getTime(),e.originatingURL=location.pathname,e.domain_actual=location.hostname,e},{cricket:F}=window,N=(e,t=null,n=!1)=&gt;{var s;let r,i=null;if(null==t){const t=sessionStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return t}}else{r=sessionStorage.getItem(e)||"",n&amp;&amp;"object"==typeof t&amp;&amp;r.includes("{")&amp;&amp;(t=Object.assign(Object.assign({},JSON.parse(r)),t));let s=t;s="object"==typeof t?JSON.stringify(t):t.toString();try{return"REMOVE_SESSION_KEY"===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,s),localStorage.setItem(`SESSION_PERSIST_${e}`,s),localStorage.removeItem(`SESSION_PERSIST_${e}`),t}catch(e){i=e}}return i&amp;&amp;(null===(s=null==F?void 0:F.modals)||void 0===s||s.finishAddToCartModal("#storageDisabledNotif")),i},R={byodSKU:"SSGW4009",byodDataSKU:"SSGP4002",basicProtect:"PROTECTON",protectPlus:"PROTECTPL",mhsSKU:"DEMW4108"},B=e=&gt;R[e];var j=n(7685)},7023:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;r});const{opera:s}=window,r=()=&gt;{let e=!1;const t=navigator.userAgent||navigator.vendor||s;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&amp;&amp;(e=!0),e}},1247:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;r});const{opera:s}=window,r=()=&gt;{let e=!1;const t=navigator.userAgent||navigator.vendor||s;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&amp;&amp;(e=!0),e}},7015:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;/[A-Za-z.\s-]/.test(e)},5392:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;/\d/.test(e)},5830:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;/[a-zA-Z\d-]/.test(e)},67:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;!!sessionStorage.getItem("xsrfToken")||!!sessionStorage.getItem("accountCsrfToken")},7685:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;!!sessionStorage.getItem("smsCsrfToken")},3575:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;/^(([^&lt;&gt;()\[\]\\.,;:\s@"]+(\.[^&lt;&gt;()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},656:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;`(XXX) XXX-${e}`},3947:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=function(e){return e?e.toFixed(2):"0.00"}},9237:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;r});var s=n(5411);const r=(e,t,n,r,i)=&gt;{const a={event:e,eventCategory:t,eventAction:n,eventLabel:r};i&amp;&amp;(a.orderId=i),(0,s.A)(a)}},5411:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;{var t,n;(null===(t=window.dataLayer)||void 0===t?void 0:t.push(e))||null===(n=null==e?void 0:e.eventCallback)||void 0===n||n.call(e)}},7114:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;r});var s=n(67);const r=e=&gt;({event:"trackEvent-pageLoad",pageName:location.pathname+location.hash,pageType:e,customerType:(0,s.A)()?"Existing Customer":"New Customer"})},1611:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;{window.scrollTo(0,0);const t=Math.round(e.getBoundingClientRect().top)-e.getBoundingClientRect().height/2-parseInt(window.getComputedStyle(e).paddingTop.slice(0,-2),10)-parseInt(window.getComputedStyle(e).marginTop.slice(0,-2),10);window.scrollTo(0,t)}},499:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;{for(const n in t)n in t&amp;&amp;(e=e.replace(`[${n}]`,t[n]));return e}},5152:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;new URLSearchParams(location.search.substring(1))},4957:(e,t)=&gt;{"use strict";const n=e=&gt;{var t,n,s,r,i,a;const o=new Headers(e);let u="FS session unavailable";const c=null!==(t=sessionStorage.getItem("shopCsrfToken"))&amp;&amp;void 0!==t&amp;&amp;t,l=null!==(n=sessionStorage.getItem("accountCsrfToken"))&amp;&amp;void 0!==n&amp;&amp;n,d=null!==(s=sessionStorage.getItem("tempToken"))&amp;&amp;void 0!==s&amp;&amp;s,h=null!==(r=sessionStorage.getItem("smsCsrfToken"))&amp;&amp;void 0!==r&amp;&amp;r,p=null!==(i=sessionStorage.getItem("wearCsrfToken"))&amp;&amp;void 0!==i&amp;&amp;i;return c&amp;&amp;!o.has("x-csrf-token")&amp;&amp;o.set("x-csrf-token",c),l&amp;&amp;o.set("account-csrf-token",l),d&amp;&amp;o.set("temp-csrf-token",d),h&amp;&amp;o.set("softlogin-csrf-token",h),p&amp;&amp;o.set("wear-csrf-token",p),"function"==typeof(null===(a=window.FS)||void 0===a?void 0:a.getCurrentSessionURL)&amp;&amp;(u=window.FS.getCurrentSessionURL()),o.set("fs-session-url",u),o.set("content-type","application/json"),o},s=(e,t)=&gt;{let n=e.url;if(t&amp;&amp;(t.authenticate&amp;&amp;window.sessionStorage.getItem("accountCsrfToken")?n=n.replace("/restservices/","/restservices/jwt-myaccount/"):t.authenticate&amp;&amp;window.sessionStorage.getItem("smsCsrfToken")?n=n.replace("/restservices/","/restservices/jwt-softlogin/"):t.authShop?n=n.replace("/restservices/","/restservices/jwt-shop/"):t.authTemp&amp;&amp;(n=n.replace("/restservices/","/restservices/jwt-temp/")),"urlPath"in t&amp;&amp;(n=((e,t)=&gt;{for(const n in t){const s=new RegExp("({"+n+"})");e=e.replace(s,t[n])}return e})(n,t.urlPath)),"urlParameters"in t)){n=n+"?"+new URLSearchParams(t.urlParameters).toString()}return n=("localhost"===location.hostname?location.origin+"/sit3":location.origin)+n,n};var r=function(e,t,n,s){return new(n||(n=Promise))((function(r,i){function a(e){try{u(s.next(e))}catch(e){i(e)}}function o(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}u((s=s.apply(e,t||[])).next())}))};const i=(e,t,i)=&gt;r(void 0,void 0,void 0,(function*(){const r=((e,t,s)=&gt;{const r={method:e.method,headers:n(null==s?void 0:s.headers),mode:"cors",cache:"default",credentials:"include"};return"GET"!==e.method&amp;&amp;"HEAD"!==e.method&amp;&amp;(r.body=JSON.stringify(t)),r})(e,t,i),a=s(e,i);return fetch(a,r)})),a=e=&gt;"string"==typeof e?e:JSON.stringify(e);var o=function(e,t,n,s){return new(n||(n=Promise))((function(r,i){function a(e){try{u(s.next(e))}catch(e){i(e)}}function o(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}u((s=s.apply(e,t||[])).next())}))};const u=e=&gt;{const t=e.headers.get("content-type");return new Promise((n=&gt;{(null==t?void 0:t.includes("application/json"))||(null==t?void 0:t.includes("application/problem+json"))?e.json().then((e=&gt;{n(a(e))})):(null==t?void 0:t.includes("text/plain"))?e.text().then((e=&gt;{n(e)})):n(JSON.stringify({data:{message:"",code:"SERVICEDOWN",title:""},status:e.status}))}))};var c=function(e,t,n,s){return new(n||(n=Promise))((function(r,i){function a(e){try{u(s.next(e))}catch(e){i(e)}}function o(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}u((s=s.apply(e,t||[])).next())}))};var l=function(e,t,n,s){return new(n||(n=Promise))((function(r,i){function a(e){try{u(s.next(e))}catch(e){i(e)}}function o(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}u((s=s.apply(e,t||[])).next())}))};var d=function(e,t,n,s){return new(n||(n=Promise))((function(r,i){function a(e){try{u(s.next(e))}catch(e){i(e)}}function o(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}u((s=s.apply(e,t||[])).next())}))};const h=new Date;parseInt(h.getFullYear().toString().substring(2),10);const{opera:p}=window,{opera:m}=window,g=e=&gt;{let t;return t=(()=&gt;{let e=!1;const t=navigator.userAgent||navigator.vendor||p;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&amp;&amp;(e=!0),e})()?"Mobile":(()=&gt;{let e=!1;const t=navigator.userAgent||navigator.vendor||m;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&amp;&amp;(e=!0),e})()?"Tablet":"Desktop",e.deviceType=t,e.timestamp_user=(new Date).getTime(),e.originatingURL=location.pathname,e.domain_actual=location.hostname,e},f=e=&gt;{var t;e=g(e),location.host.includes("localhost")||((e=&gt;{var t,n;(null===(t=window.dataLayer)||void 0===t?void 0:t.push(e))||null===(n=null==e?void 0:e.eventCallback)||void 0===n||n.call(e)})({event:"ERROR",cw:{ERROR:e}}),"function"==typeof(null===(t=window.FS)||void 0===t?void 0:t.event)&amp;&amp;window.FS.event("ERROR",e))},v={url:"/cloudassets/cms/{contentPath}",method:"GET"};var b=function(e,t,n,s){return new(n||(n=Promise))((function(r,i){function a(e){try{u(s.next(e))}catch(e){i(e)}}function o(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}u((s=s.apply(e,t||[])).next())}))};const y=new class{constructor(){this.storedErrorMessages={}}get getStoredErrorMessages(){return this.storedErrorMessages}resetErrorCodes(){this.storedErrorMessages={}}errorHandler(e){return b(this,void 0,void 0,(function*(){let t;if("object"==typeof e&amp;&amp;"notifications"in e){const n=e.notifications.errors[0].code;t={code:n,message:yield this.translateError(e.notifications.errors[0]),title:this.storedErrorMessages[n].errorTitle}}else t={code:"SERVICEDOWN",message:yield this.translateError({message:"",code:"SERVICEDOWN",title:""}),title:"SERVICEDOWN"};return t}))}translateError(e){return b(this,void 0,void 0,(function*(){const t=yield this.returnError(e.code);return f({error:t,errorCode:e.code}),Promise.resolve(t)}))}returnError(e){return b(this,void 0,void 0,(function*(){if(e in this.storedErrorMessages)return Promise.resolve(this.storedErrorMessages[e].errorDescription);{const t=yield this.getErrorMessage(e);return this.storedErrorMessages=Object.assign(Object.assign({},t),this.storedErrorMessages),Promise.resolve(this.storedErrorMessages[e].errorDescription)}}))}getErrorMessage(e){return b(this,void 0,void 0,(function*(){const t={urlPath:{contentPath:`portalGlobal/error/${e}`}},n=yield i(v,null,t);return n.ok?n.json():Promise.resolve({[e]:{errorCode:"SERVICEDOWN",errorTitle:"SERVICEDOWN",errorDescription:"Oops! Looks like we're having a problem with our system. Please try again later."}})}))}},_={url:"/restservices/devicenetworkunlock/v1/devices/details",method:"GET"},k={url:"/restservices/devicenetworkunlock/v1/devices/unlock",method:"POST"},w={url:"/restservices/serviceorders/v1/orders/order",method:"POST"},E={url:"/restservices/onlinepayment/v2/Credit_Card/{ban}/submit",method:"POST"},S={method:"POST",url:"/restservices/serviceorders/v1/orders/order"},A={method:"POST",url:"/restservices/onlinepayment/v2/Credit_Card/{ban}/submit"};t.accessoriesCatalog={method:"GET",url:"/restservices/onlinecatalog/v1/accessories/channels/{channelType}/{path}"},t.acpCheckAppStatus={url:"/restservices/ebbwrapper/v1/applications/{applicationId}/status",method:"GET"},t.acpOptOut={url:"/restservices/jwt-temp/ebbwrapper/v1/acp/optout",method:"POST"},t.acpSubmitNewApplication={url:"/restservices/jwt-temp/ebbwrapper/v1/applications/submit",method:"POST"},t.activateOrder={url:"/restservices/onlineactivation/v1/orders/{orderID}/activate",method:"POST"},t.activateOrderToken={url:"/restservices/onlineactivation/v1/orders/tokens/{token}/activate",method:"POST"},t.applyPinCard={url:"/selfservice/rest/quickpay/applypincard/",method:"POST"},t.applyReferAFriendCode={method:"POST",url:"/restservices/onlineactivation/v1/orders/{orderId}/referrals/redeem"},t.callFetch=i,t.callPromise=(e,t,n)=&gt;o(void 0,void 0,void 0,(function*(){let s="";return new Promise(((r,o)=&gt;{i(e,t,n).then((e=&gt;{if(204===e.status)return r(null);s=e.headers.get("content-type"),(null==s?void 0:s.includes("application/json"))||(null==s?void 0:s.includes("application/problem+json"))?e.ok?e.json().then((t=&gt;{t.status=e.status,r(t)})):e.json().then((e=&gt;{o(new Error(JSON.stringify(e)))})):(null==s?void 0:s.includes("text/plain"))?e.text().then((t=&gt;{e.ok?r(t):o(new Error(t))})):o(new Error(JSON.stringify({data:{message:"",code:"SERVICEDOWN",title:""},status:e.status})))})).catch((e=&gt;{const t=a(e);o(new Error(t))}))}))})),t.callPromiseJSON=(e,t,n)=&gt;c(void 0,void 0,void 0,(function*(){let s="";return new Promise(((r,o)=&gt;{i(e,t,n).then((e=&gt;c(void 0,void 0,void 0,(function*(){s=e.headers.get("content-type"),((null==s?void 0:s.includes("application/json"))||(null==s?void 0:s.includes("application/problem+json")))&amp;&amp;e.ok?e.json().then((e=&gt;{r(e)})):o(new Error(yield u(e)))})))).catch((e=&gt;{const t=a(e);o(new Error(t))}))}))})),t.callPromiseNull=(e,t,n)=&gt;d(void 0,void 0,void 0,(function*(){return new Promise(((s,r)=&gt;{i(e,t,n).then((e=&gt;d(void 0,void 0,void 0,(function*(){e.ok?s(null):r(new Error(yield u(e)))})))).catch((e=&gt;{const t=a(e);r(new Error(t))}))}))})),t.callPromiseString=(e,t,n)=&gt;l(void 0,void 0,void 0,(function*(){let s="";return new Promise(((r,o)=&gt;{i(e,t,n).then((e=&gt;l(void 0,void 0,void 0,(function*(){s=e.headers.get("content-type"),(null==s?void 0:s.includes("text/plain"))&amp;&amp;e.ok?e.text().then((e=&gt;{r(e)})):o(new Error(yield u(e)))})))).catch((e=&gt;{const t=a(e);o(new Error(t))}))}))})),t.carePasswordChange={url:"/restservices/passwordmanagement/v1/care/forgot",method:"POST"},t.cartAddCustomer={method:"PUT",url:"/restservices/onlinecart/v2/carts/{cartId}"},t.cartClearLines={url:"/restservices/onlinecart/v2/carts/{cartId}/lines",method:"DELETE",logToDataLayer:!0},t.cartCouponAdd={url:"/restservices/onlinecart/v2/carts/{cartId}/coupons",method:"POST"},t.cartCouponRemove={url:"/restservices/onlinecart/v2/carts/{cartId}/coupons",method:"DELETE"},t.cartCreate={method:"POST",url:"/restservices/onlinecart/v2/carts"},t.cartCustomerCreate={method:"POST",url:"/restservices/onlinecart/v2/customers"},t.cartCustomerInfoGet={method:"GET",url:"/restservices/onlinecart/v2/customers/{customerId}"},t.cartGetPrice={method:"GET",url:"/restservices/onlinecart/v2/carts/{cartId}/price"},t.cartLineCreate={url:"/restservices/onlinecart/v2/carts/lines",method:"POST"},t.cartLineUpdate={method:"PUT",url:"/restservices/onlinecart/v2/carts/lines"},t.cartRetrieve={method:"GET",url:"/restservices/onlinecart/v2/carts/{cartId}"},t.cartSave={method:"POST",url:"/restservices/onlinecart/v2/carts/savecarts"},t.cartSearch={method:"GET",url:"/restservices/onlinecart/v2/carts/search/{referenceId}"},t.cmsPath=v,t.compatibleAddons={method:"GET",url:"/restservices/onlinecatalog/v1/compatibility/channels/ONL/devices/{deviceSkuId}/plans/{planSkuId}/addons"},t.createAccountSendPasscode={url:"/restservices/selfserviceregistration/v2/accounts/passcodes",method:"POST"},t.createCardPaymentProfile={url:"/restservices/onlinepayment/v2/cardpayments/profiles",method:"POST"},t.createOrderWearables={method:"POST",url:"/restservices/jwt-wear/realtimeordermgmt/v1/orders/wearables"},t.createPaymentProfile={url:"/restservices/onlinepayment/v2/profiles/{paymentType}",method:"POST"},t.createPortRequest={method:"POST",url:"/restservices/numbertransfer/v1/stand-alone/tokens/{token}/requests"},t.customerUpdate={method:"PUT",url:"/restservices/onlinecart/v2/customers"},t.deviceDetails=_,t.deviceUnlock=k,t.ebbCtnValidation={url:"/restservices/ebbwrapper/v1/tokens",method:"POST"},t.ebbGetToken={url:"/restservices/jwt-temp/ebbwrapper/v1/tokens",method:"GET"},t.ebbRegisterForm={url:"/restservices/jwt-temp/ebbwrapper/v1/register",method:"POST"},t.errorMessaging=y,t.esimCapableAndroid={url:"/restservices/onlineactivation/v1/orders/{orderId}/esimCapable",method:"POST"},t.eventExperiences={method:"POST",url:"/restservices/applicationidentifier/v1/experiences/events"},t.eventReport={method:"POST",url:"/restservices/applicationidentifier/v1/identifiers"},t.featuresCatalog={url:"/restservices/onlinecatalog/v1/features/channels/{channelType}/subtype/{subType}",method:"GET"},t.forgotPasswordReset={url:"/restservices/passwordmanagement/v1/passwords/forgot",method:"POST"},t.forgotPasswordSendPasscode={url:"/restservices/passwordmanagement/v1/passwords/reset",method:"POST"},t.forgotPasswordValidatePasscode={url:"/restservices/passwordmanagement/v1/passwords/validate",method:"POST"},t.forgotUsernameSubmit={url:"/restservices/passwordmanagement/v1/username/forgot",method:"POST"},t.getBillingEligibility={method:"GET",url:"/restservices/billingaccountmanagement/v1/actions/eligibility"},t.getBraintreeToken={url:"/restservices/paymentclient/v1/clients/braintree/token",method:"POST"},t.getCsrfToken={method:"POST",url:"/restservices/onlineauthentication/v1/tokens"},t.getCtns={url:"/restservices/ntp/v1/ctns",method:"GET"},t.getCustomerDetails={method:"GET",url:"/restservices/cwpos/v1/customerDetails/ban"},t.getDeviceBrandFilters={url:"/restservices/onlinecatalog/v1/devices/channels/{channelType}/filters/brand",method:"GET"},t.getE911Address={method:"GET",url:"/restservices/jwt-wear/wificalling/v1/addresses/e911"},t.getE911SecondaryAddress={method:"POST",url:"/restservices/jwt-wear/wificalling/v3/addresses/e911"},t.getModalContent={method:"GET",url:"/cloudassets/cms/modal/content/{qname}"},t.getPendingOrders={url:"/restservices/customerorders/v1/orders/pending",method:"GET"},t.getPortCarriers={method:"GET",url:"/cloudassets/cms/checkout/portin"},t.getProvisionStatus={method:"GET",url:"/restservices/jwt-wear/wearables/v1/provisioning/status"},t.getSSPLockStatus={method:"GET",url:"/restservices/fccaccountlock/v1/simswapprotection/locks/status"},t.getShopCsrfToken={method:"POST",url:"/restservices/shoptoken/v1/tokens"},t.getSlot={method:"GET",url:"/cloudassets/cms/timeMessage/v1/slots/{slotId}"},t.getTransactionStatements={url:"/restservices/billinghistory/v1/accounts/statements",method:"POST"},t.imeiInfo={method:"POST",url:"/restservices/validateequipment/v1/devices/imei/eligibility"},t.loadBanDetails={method:"GET",url:"/restservices/onlinecart/v2/customers/bans"},t.makeBHPaymentGuest={url:"/selfservice/rest/quickpay/blackhawk/creditcard/",method:"POST"},t.makeOTPaymentGuest={url:"/selfservice/rest/quickpay/creditcard/",method:"POST"},t.mhsOrderSubmit=w,t.mhsPaymentSubmit=E,t.nextGenGetStock={url:"/restservices/onlineinventory/v1/stocks/{skuId}",method:"GET"},t.odaLookUpEquipment={method:"GET",url:"/restservices/odalookup/v1/equipment"},t.oneTimePin={url:"/restservices/accountsecurity/v1/ctns/otps",method:"POST"},t.onlineAuthenticationLogout={method:"POST",url:"/restservices/accountlogout/v1/logout"},t.onlineCustomerCreate={method:"POST",url:"/restservices/stagecustomer/v1/customers"},t.onlineCustomerGet={method:"GET",url:"/restservices/stagecustomer/v1/customers/{customerId}"},t.onlineCustomerUpdate={method:"PUT",url:"/restservices/stagecustomer/v1/customers"},t.onlineStoreInventory={url:"/restservices/onlinestoreinventory/v1/stores/{storeId}/skus/{skuId}",method:"GET"},t.onlineTaxCompositeCart={url:"/restservices/onlinetaxcomposite/v1/carts/{cartId}",method:"POST"},t.orderPreview={url:"/restservices/onlineorder/v2/orders/{channelType}/{cartId}",method:"POST"},t.orderPrice={url:"/restservices/serviceorders/v1/orders/price",method:"POST"},t.orderReceipt={url:"/restservices/onlineorder/v2/orders/receipts",method:"GET"},t.orderSubmit={url:"/restservices/onlineorder/v2/orders/{orderId}/submit",method:"POST"},t.passCode={method:"POST",url:"/restservices/accountauth/v1/quicklogins/passcode"},t.pinValidate={method:"POST",url:"/restservices/accountauth/v1/pins"},t.plansCatalog={url:"/restservices/onlinecatalog/v1/plans/channels/{channelType}",method:"GET"},t.plansCatalogByZipcode={url:"/restservices/onlinecatalog/v1/plans/channels/{channelType}/zipcodes/{zipCode}",method:"GET"},t.plansCatalogv2={url:"/restservices/onlinecatalog/v2/plans/channels/{channelType}/subchannel/{subchannel}",method:"GET"},t.plansContent={url:"/restservices/onlinecatalog/v1/plans/channels/ONL/subchannel/{subchannel}",method:"GET"},t.portEligibility={url:"/restservices/processportin/v1/ports/eligibility",method:"POST"},t.portInStatus={method:"GET",url:"/restservices/numbertransfer/v1/stand-alone/tokens/{token}/status"},t.portStatus={url:"/restservices/processportin/v1/orders/{orderId}/ports",method:"GET"},t.portStatusAMZ={url:"/restservices/processportin/v1/subscriptions/{subscriptionId}/ports ",method:"GET"},t.portStatusToken={url:"/restservices/processportin/v1/orders/tokens/{token}/ports",method:"GET"},t.previewOrderWearables={method:"POST",url:"/restservices/jwt-wear/realtimeordermgmt/v1/orders/{orderId}/preview"},t.pricingOrderWearables={method:"POST",url:"/restservices/jwt-wear/realtimeordermgmt/v1/orders/{orderId}/pricing"},t.processLeaseOrder={url:"/restservices/leasing/v1/orders/{orderId}",method:"POST"},t.productCatalogBySku={url:"/restservices/onlinecatalog/v1/{productType}/channels/ONL/products/{skuId}",method:"GET"},t.putPortStatus={url:"/restservices/processportin/v1/orders/{orderId}/ports",method:"PUT"},t.quickLogins={method:"POST",url:"/restservices/accountauth/v1/quicklogins"},t.renewAccountCsrfToken={method:"POST",url:"/restservices/accountauth/v1/tokens/renew"},t.renewCsrfToken={method:"POST",url:"/restservices/onlineauthentication/v1/tokens/renew"},t.renewShopCsrfToken={method:"PUT",url:"/restservices/shoptoken/v1/tokens/renew"},t.requestNumberTransferPin={url:"/restservices/ntp/v1/requests",method:"POST"},t.returnsOrder={url:"/restservices/customerreturns/v1/online/orders/{orderID}",method:"POST"},t.returnsOrderDetails={url:"/restservices/customerreturns/v1/orders/{orderId}/details",method:"GET"},t.returnsOrderDetailsToken={url:"/restservices/customerreturns/v1/orders/tokens/{token}/details",method:"GET"},t.returnsOrderToken={url:"/restservices/customerreturns/v1/online/orders/tokens/{token}",method:"POST"},t.safeJsonParse=e=&gt;{if("object"==typeof e)return e;try{return JSON.parse(e)}catch(t){return e}},t.safeStringify=a,t.savedCarts={method:"POST",url:"/restservices/onlinecart/v2/carts/search/savedcarts"},t.simsCatalog={url:"/restservices/onlinecatalog/v1/sims/channels/{channelType}/skus",method:"GET"},t.submitCardPayment={url:"/restservices/onlinepayment/v2/onetimepayments/{cardType}",method:"POST"},t.submitOrder=S,t.submitOrderWearables={method:"POST",url:"/restservices/jwt-wear/realtimeordermgmt/v1/orders/{orderId}/submit"},t.submitPayment=A,t.submitReturnsOrder={url:"/restservices/customerreturns/v1/orders/{orderId}/submit",method:"POST"},t.submitReturnsOrderToken={url:"/restservices/customerreturns/v1/orders/tokens/{token}/submit",method:"POST"},t.subscriberServiceEligibility={url:"/restservices/subscriberservice/v1/ctns/eligibilities",method:"POST"},t.threeGShutdownPromoEligibility={url:"/restservices/onlineadapter/v1/coupons/eligibility",method:"POST"},t.trackOrder={method:"POST",url:"/restservices/trackorder/v1/orders/{orderId}"},t.trackOrderToken={method:"GET",url:"/restservices/trackorder/v1/orders/tokens/{token}"},t.triggerAccountBalance={method:"POST",url:"/restservices/accountbalanceinquiry/v1/balances"},t.twinningDeviceSwap={method:"POST",url:"/restservices/jwt-wear/wearables/v1/twinning/confirm"},t.unsubscribe3rdParty={method:"POST",url:"/restservices/userconsentmanagement/v1/legal/sms"},t.updateE911Address={method:"PUT",url:"/restservices/jwt-wear/wificalling/v1/addresses/e911"},t.updatePortRequest={method:"PUT",url:"/restservices/numbertransfer/v1/stand-alone/tokens/{token}/requests"},t.validateMerchant={method:"POST",url:"/restservices/applepay/v1/merchants/validate"},t.validatePayment={method:"POST",url:"/restservices/onlinepayment/v2/{cardType}/validate"},t.validatePaymentAlternatePay={url:"/restservices/onlinepayment/v2/profiles/{alternatePay}",method:"POST"},t.validateRefillCardGuest={url:"/selfservice/rest/quickpay/validatepincard/",method:"POST"},t.validateReturnsOrder={url:"/restservices/customerreturns/v1/online/orders/{orderId}/validate",method:"GET"},t.validateReturnsOrderToken={url:"/restservices/customerreturns/v1/online/orders/tokens/{token}/validate",method:"GET"},t.validateSessionPin={url:"/restservices/onlineauthentication/v1/tokens/pins/auth",method:"POST"},t.validateShipmentAddresses={url:"/restservices/onlineshipment/v1/addresses",method:"POST"},t.wearableToken={method:"GET",url:"/restservices/jwt-wear/wearables/v1/session"},t.wearablesAddLine={method:"POST",url:"/restservices/jwt-wear/wearables/v1/pair"},t.wearablesUnPair={method:"DELETE",url:"/restservices/jwt-wear/wearables/v1/pair"},t.zipcodeServiceAvailability={method:"GET",url:"/restservices/onlineadapter/v1/zipcodes/{zipCode}/validate"}},313:(e,t,n)=&gt;{"use strict";n.d(t,{r:()=&gt;s});const s=(e,t)=&gt;({event:"trackEvent-account-pin-error",eventCategory:`account-pin-${e}`,eventAction:"error",eventLabel:t})},9615:(e,t,n)=&gt;{"use strict";n.d(t,{B:()=&gt;s});const s=e=&gt;({event:"trackEvent-account-pin-start",eventCategory:"account-pin",eventAction:"start",eventLabel:e})},286:(e,t,n)=&gt;{"use strict";n.d(t,{y:()=&gt;s});const s=e=&gt;({event:"trackEvent-account-pin-success",eventCategory:"account-pin",eventAction:"success",eventLabel:e})},2634:(e,t,n)=&gt;{"use strict";n.d(t,{Z:()=&gt;s});const s=()=&gt;({event:"trackEvent-account-settings-start",eventCategory:"account-settings",eventAction:"start",eventLabel:""})},2669:(e,t,n)=&gt;{"use strict";n.d(t,{u:()=&gt;s});const s=()=&gt;({event:"trackEvent-add-line",eventCategory:"add_a_line",eventAction:"button-click",eventLabel:"add-a-line"})},4551:(e,t,n)=&gt;{"use strict";n.d(t,{s:()=&gt;s});const s=()=&gt;({event:"trackEvent-Change-password-link",eventCategory:"Change-password",eventAction:"link-click",eventLabel:"Change Password"})},1708:(e,t,n)=&gt;{"use strict";n.d(t,{z:()=&gt;s});const s=()=&gt;({event:"trackEvent-unlock-code",eventCategory:"device_unlock",eventAction:"link-click",eventLabel:"get-code"})},3173:(e,t,n)=&gt;{"use strict";n.d(t,{k:()=&gt;s});const s=()=&gt;({event:"trackEvent-manage-address",eventCategory:"my-account",eventAction:"link-click",eventLabel:"manage-address"})},1169:(e,t,n)=&gt;{"use strict";n.d(t,{w:()=&gt;s});const s=()=&gt;({event:"trackEvent-manage-email",eventCategory:"my-account",eventAction:"link-click",eventLabel:"manage-email"})},4494:(e,t,n)=&gt;{"use strict";n.d(t,{X:()=&gt;s});const s=()=&gt;({event:"trackEvent-manage-text",eventCategory:"my-account",eventAction:"link-click",eventLabel:"manage-text"})},6791:(e,t,n)=&gt;{"use strict";n.d(t,{c:()=&gt;s});const s=e=&gt;({event:"trackEvent-myacc-error",eventCategory:"my-account",eventAction:"error",eventLabel:e})},7254:(e,t,n)=&gt;{"use strict";n.d(t,{r:()=&gt;s});const s=()=&gt;({event:"trackEvent-upgrade-device",eventCategory:"my-account",eventAction:"button-click",eventLabel:"upgrade-device"})},5809:(e,t,n)=&gt;{"use strict";n.d(t,{y:()=&gt;s});const s=e=&gt;({event:"trackEvent-change-password-error",eventCategory:"change-password",eventAction:"error",eventLabel:e})},7863:(e,t,n)=&gt;{"use strict";n.d(t,{c:()=&gt;s});const s=()=&gt;({event:"trackEvent-change-password-start",eventCategory:"change-password",eventAction:"start",eventLabel:""})},5062:(e,t,n)=&gt;{"use strict";n.d(t,{H:()=&gt;s});const s=()=&gt;({event:"trackEvent-change-password-success",eventCategory:"change-password",eventAction:"success",eventLabel:""})},7365:(e,t,n)=&gt;{"use strict";n.d(t,{H:()=&gt;s});const s=e=&gt;({event:"trackEvent-promotional-text",eventCategory:"my-account",eventAction:"toggle",eventLabel:e})},2300:(e,t,n)=&gt;{"use strict";n.d(t,{l:()=&gt;s});const s=e=&gt;({event:"trackEvent-activate-sim-error",eventCategory:"error",eventAction:"activate-sim-error",eventLabel:e})},2975:(e,t,n)=&gt;{"use strict";n.d(t,{U:()=&gt;s});const s=(e,t)=&gt;({event:"trackEvent-choose-sim",eventCategory:"activate-device",eventAction:"button-click",eventLabel:e,data:{order_id:t}})},4474:(e,t,n)=&gt;{"use strict";n.d(t,{K:()=&gt;s});const s=e=&gt;({event:"trackEvent-manage-autopay-error",eventCategory:"error",eventAction:"autopay-error",eventLabel:e})},9142:(e,t,n)=&gt;{"use strict";n.d(t,{G:()=&gt;s});const s=e=&gt;({event:"trackEvent-manage-autopay-option",eventCategory:"myacc-auto-pay",eventAction:"button-click",eventLabel:e})},2781:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEvent-customer-details",eventCategory:"Add-to-cart",eventAction:"button-click",eventLabel:e.toLowerCase()})},5098:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t,n)=&gt;({event:"trackEGA4Event-cart",eventType:"funnel steps",lineItemCount:t,cartTotal:e.length,ecommerce:{value:n,items:e}})},7121:(e,t,n)=&gt;{"use strict";n.r(t),n.d(t,{getCheckoutEvent:()=&gt;s,getPaymentEvent:()=&gt;r,getPurchaseEvent:()=&gt;i,getShoppingAddressEvent:()=&gt;a});const s=(e,t,n,s,r)=&gt;({event:"trackEGA4Event-checkout",eventType:null!=r?r:"funnel steps",lineItemCount:t,cartTotal:e.length,ecommerce:Object.assign(Object.assign({value:n},s&amp;&amp;{coupon:s}),{items:e})}),r=(e,t,n,s,r,i)=&gt;({event:"trackEGA4Event-payment",eventType:null!=i?i:"funnel steps",lineItemCount:t,cartTotal:e.length,ecommerce:{value:n,coupon:r,payment_type:s,items:e}}),i=(e,t,n,s)=&gt;Object.assign(Object.assign({event:"trackEGA4Event-purchase",eventType:null!=s?s:"funnel steps",paymentType:n.paymentType,transactionStatus:"Processed"},n.messageOptin?{messageOptin:n.messageOptin}:{}),{lineItemCount:t,cartTotal:e.length,ecommerce:Object.assign(Object.assign({value:n.totalBalance,transaction_id:n.id,tax:n.totalTaxes,shipping:n.shipping},n.coupon?{coupon:n.coupon}:{}),{items:e})}),a=(e,t,n,s,r,i)=&gt;({event:"trackEGA4Event-shopping",eventType:null!=r?r:"funnel steps",lineItemCount:t,cartTotal:e.length,ecommerce:{value:n,coupon:s,shipping_tier:null!=i?i:"Ground",items:e}})},3982:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEvent-device-unlock-error",eventCategory:"error",eventAction:"device-unlock-error",eventLabel:e})},3741:(e,t,n)=&gt;{"use strict";n.d(t,{U:()=&gt;s});const s=(e,t)=&gt;({event:"trackEvent-digitalWalletPayment",eventCategory:"payment",eventAction:t,eventLabel:e})},3162:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEGA4Event-promoClick",ecommerce:{items:e}})},7255:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEGA4Event-productClick",ecommerce:{items:e}})},2295:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;{var t,n,s,r;return{event:"trackEGA4Event-productList",ecommerce:Object.assign(Object.assign(Object.assign({},(null===(t=e[0])||void 0===t?void 0:t.item_list_id)?{item_list_id:null===(n=e[0])||void 0===n?void 0:n.item_list_id}:{}),(null===(s=e[0])||void 0===s?void 0:s.item_list_name)?{item_list_name:null===(r=e[0])||void 0===r?void 0:r.item_list_name}:{}),{items:e})}}},432:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t,n)=&gt;{var s;return{event:"trackEGA4Event-productView",eventType:null!=n?n:"funnel steps",prodStatus:t?"in stock":"out of stock",ecommerce:Object.assign(Object.assign({},1===e.length?{value:null===(s=e[0])||void 0===s?void 0:s.price}:{}),{items:e})}}},3951:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackEvent-full-login",eventCategory:"logged_in_state",eventAction:"mhs",eventLabel:"choose-your-line"})},6042:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;({event:"trackEvent-mobile-hot-spot-error",eventCategory:"error",eventAction:"mobile-hot-spot-payment",eventLabel:e,data:{errorCode:t}})},3381:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackEvent-mobile-hot-spot-success",eventCategory:"mobile-hot-spot",eventAction:"payment",eventLabel:"success"})},8294:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;({event:"trackEvent-ntp-error",eventCategory:"error",eventAction:"ntp-error",eventLabel:e,data:{errorCode:t}})},6689:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackEvent-ntp-success",eventCategory:"ntp",eventAction:"button-click",eventLabel:"show-ntp"})},3567:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackEvent-ntp",eventCategory:"ntp",eventAction:"button-click",eventLabel:"show-ntp"})},2989:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t,n,s,r)=&gt;Object.assign(Object.assign({event:"trackSPA-pageLoad",originalPagePath:null!=s?s:"https://cricketwireless.com/",pagePath:e,pageTitle:t},n&amp;&amp;{siteSection:n}),r&amp;&amp;{pageType:r})},6885:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;({event:"trackGA4Event-nonCartPayment",eventType:"service-payment",orderId:e,paymentFlow:"upgrade-plan",paymentMethod:"credit-card",paymentType:"one-time",paymentAmount:t})},4538:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEvent-upgrade-plan-error",eventCategory:"error",eventAction:"upgrade-plan-payment",eventLabel:e})},2348:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEGA4Event-promoClick",ecommerce:{items:e}})},9101:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=e=&gt;({event:"trackEGA4Event-promoView",ecommerce:{items:e}})},7:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;({event:"trackGA4Event-nonCartPayment",eventType:"service-payment",orderId:e,paymentFlow:"quick-pay",paymentMethod:"credit-card",paymentType:"one-time",paymentAmount:t})},9060:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackGA4Event-credit-error",eventType:"error",paymentFlow:"quick-pay"})},9875:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;({event:"trackGA4Event-nonCartPayment",eventType:"service-payment",orderId:e,paymentFlow:"quick-pay",paymentMethod:"refill",paymentType:"one-time",paymentAmount:t})},2208:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackGA4Event-refill-error",eventType:"error",paymentFlow:"quick-pay"})},5850:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e,t)=&gt;({event:"trackGA4Event-nonCartPayment",eventType:"service-payment",orderId:e,paymentFlow:"quick-pay",paymentMethod:"service-payment",paymentType:"one-time",paymentAmount:t})},315:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=()=&gt;({event:"trackGA4Event-refill-error",eventType:"error",paymentFlow:"quick-pay"})},289:(e,t,n)=&gt;{"use strict";n.d(t,{j:()=&gt;s});const s=(e,t)=&gt;({event:"trackEvent-kynResolutionFlow",eventCategory:"confirm_number_transfer",eventAction:e,eventLabel:t})},5372:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e="")=&gt;({event:"trackGA4Event-contact-click",eventCategory:"contact-us",eventAction:"link-click",eventLabel:e})},5453:(e,t,n)=&gt;{"use strict";n.d(t,{A:()=&gt;s});const s=(e="")=&gt;({event:"trackGA4Event-support-click",eventCategory:"support",eventAction:"link-click",eventLabel:e})},8053:(e,t,n)=&gt;{"use strict";n.r(t),n.d(t,{ICheckout:()=&gt;u,SmsPasscode:()=&gt;l,SmsResend:()=&gt;d,SmsSignin:()=&gt;c,SmsSigninError:()=&gt;h,accountPinErrorEvent:()=&gt;Me.r,accountPinStartEvent:()=&gt;Ne.B,accountPinSuccessEvent:()=&gt;Fe.y,activateSimErrorEvent:()=&gt;Re.l,autoPayStartEvent:()=&gt;be,autoPaySuccessEvent:()=&gt;ye,byodItems:()=&gt;E,checkoutEvents:()=&gt;Le,createAccountErrorEvent:()=&gt;fe,createAccountStartEvent:()=&gt;he,createAccountSuccessEvent:()=&gt;pe,createAccountValidationError:()=&gt;ve,deviceUnlockErrorEvent:()=&gt;Y.A,deviceUnlockNoImeiEvent:()=&gt;J,deviceUnlockSuccessEvent:()=&gt;Q,forgotPasswordErrorEvent:()=&gt;Ce,forgotPasswordResendEvent:()=&gt;Te,forgotPasswordStartEvent:()=&gt;xe,forgotPasswordSuccessEvent:()=&gt;Pe,forgotPasswordTempPassEvent:()=&gt;Oe,forgotPasswordVerificationError:()=&gt;Ie,forgotUsernameErrorEvent:()=&gt;we,forgotUsernameRetryEvent:()=&gt;Ee,forgotUsernameStartEvent:()=&gt;Se,forgotUsernameSuccessEvent:()=&gt;Ae,getAccountSettingsStartEvent:()=&gt;se.Z,getAddLineClickEvent:()=&gt;re.u,getAddToCartEvent:()=&gt;p,getAutoPayErrorEvent:()=&gt;_e.K,getAutoPayToggleEvent:()=&gt;ke.G,getByodAddToCartEvent:()=&gt;M,getByodPlansEvent:()=&gt;R,getByodViewEvent:()=&gt;N,getCartFunnelEvent:()=&gt;D,getCartViewEvent:()=&gt;B.A,getChangePasswordClickEvent:()=&gt;ie.s,getChangePasswordErrorEvent:()=&gt;te.y,getChangePasswordStartEvent:()=&gt;Z.c,getChangePasswordSuccessEvent:()=&gt;ee.H,getContactUsViewEvent:()=&gt;k.A,getCustomerTypeEvent:()=&gt;F.A,getDeviceUnlockClickEvent:()=&gt;ae.z,getDigitalWalletPaymentEvent:()=&gt;De.U,getEcommercePromoViewEvent:()=&gt;b.A,getManageAddressClickEvent:()=&gt;oe.k,getManageEmailClickEvent:()=&gt;ue.w,getManageTextClickEvent:()=&gt;ce.X,getMarketingTextPreferenceEvent:()=&gt;ne.H,getMyAccountErrorEvent:()=&gt;le.c,getProductClickEvent:()=&gt;f.A,getProductListEvent:()=&gt;g.A,getProductViewEvent:()=&gt;v.A,getPromoClickEvent:()=&gt;_.A,getPromoViewEvent:()=&gt;y.A,getRemoveFromCartEvent:()=&gt;m,getStandAlonePortEvent:()=&gt;je.j,getSupportViewEvent:()=&gt;w.A,getUpgradeDeviceClickEvent:()=&gt;de.r,mapOnlineToEcomProduct:()=&gt;o,mhsChooseLineEvent:()=&gt;O.A,mhsPaymentErrorEvent:()=&gt;x.A,mhsPaymentSubmitEvent:()=&gt;I,mhsPaymentSuccessEvent:()=&gt;P.A,ntpErrorEvent:()=&gt;A.A,ntpSuccessEvent:()=&gt;C.A,planUpgradeNowEvent:()=&gt;j,planUpgradePaymentConfirmationEvent:()=&gt;V.A,planUpgradePaymentErrorEvent:()=&gt;q.A,planUpgradePaymentSubmitEvent:()=&gt;$,planUpgradePaymentSuccessEvent:()=&gt;U,pushDataLayerObject:()=&gt;s,pushNullToDataLayer:()=&gt;r,quickPayDebitPaymentConfirmationEvent:()=&gt;H.A,quickPayDebitPaymentErrorEvent:()=&gt;K.A,quickPayRefillPaymentConfirmationEvent:()=&gt;z.A,quickPayRefillPaymentErrorEvent:()=&gt;W.A,quickPayServicePaymentConfirmationEvent:()=&gt;G.A,quickPayServicePaymentErrorEvent:()=&gt;X.A,resendTempPasswordEvent:()=&gt;me,showNtpClickEvent:()=&gt;T.A,simSelectionEvent:()=&gt;Be.U,tempPasswordEvent:()=&gt;ge,trackSpaPageload:()=&gt;S.A});const s=e=&gt;{var t,n;(null===(t=window.dataLayer)||void 0===t?void 0:t.push(e))||null===(n=null==e?void 0:e.eventCallBack)||void 0===n||n.call(e)},r=()=&gt;{s({ecommerce:null})},i={dataonly:"device",sim:"device",smartphone:"device",featurephone:"device",accessory:"accessory",plan:"feature",smartwatch:"device"},a={device_list:"device list page",accessory_list:"accessory list page",smartwatch_list:"smartwatch list page"},o=(e,t=-1,n)=&gt;{var s;if(!(null==e?void 0:e.sku))return{};const{sku:r,modelName:o,brand:u,type:c,os:l,esim:d,price:h,variant:p}=e,m=c?c.toLowerCase():"",g=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t&gt;=0?{index:t}:{}),{item_id:r,item_name:o,affiliation:"cricket wireless",item_brand:null==u?void 0:u.toLowerCase(),item_category:i[m]||m,item_category2:m,item_category3:null==l?void 0:l.toLowerCase(),item_category4:d||""}),p?{item_variant:p}:{}),n?{item_list_id:n}:{}),n?{item_list_name:null!==(s=a[n||""])&amp;&amp;void 0!==s?s:n}:{}),{price:h});return JSON.parse(JSON.stringify(g))};var u=n(3148);const c={event:"trackEvent-sms-signin",eventCategory:"sms-signin",eventAction:"button-click",eventLabel:"ctn-submit"},l={event:"trackEvent-sms-passcode",eventCategory:"sms-signin",eventAction:"button-click",eventLabel:"passcode-submit"},d={event:"trackEvent-sms-resend",eventCategory:"sms-signin",eventAction:"button-click",eventLabel:"resend"},h={event:"trackEvent-sms-siginin-error",eventCategory:"error",eventAction:"sms-signin-error",eventLabel:"&lt;error message&gt;"},p=(e,t,n,s)=&gt;Object.assign(Object.assign({event:"trackEGA4Event-addToCart",eventType:null!=s?s:"funnel steps"},t.length?{userFlow:t}:{}),{ecommerce:Object.assign(Object.assign({},n&amp;&amp;{value:n}),{items:e})}),m=(e,t,n)=&gt;Object.assign(Object.assign({event:"trackEGA4Event-removeFromCart",eventType:"funnel steps"},t.length?{userFlow:t}:{}),{ecommerce:Object.assign(Object.assign({},n?{value:n}:{}),{items:e})});var g=n(2295),f=n(7255),v=n(432),b=n(3162),y=n(9101),_=n(2348),k=n(5372),w=n(5453);const E={affiliation:"cricket wireless",coupon:"",discount:0,item_brand:"",item_id:"",item_name:"",item_category:"",item_category2:"",item_category3:"",item_category4:"",item_variant:"",price:0,quantity:1};var S=n(2989),A=n(8294),C=n(6689),T=n(3567),x=n(6042),P=n(3381),O=n(3951);const I={event:"trackEvent-payment",eventCategory:"mobile-hot-spot",eventAction:"payment",eventLabel:"submit"};var L;!function(e){e.cartfl_cover_my_phone="Protect Opt-in",e.cartfl_no_thanks_button="Protect Opt-out",e.cartfl_add_to_cart="Plan Selected",e.cartfl_bring_my_number="Bring My Number",e.cartfl_get_a_new_number="Get A New Number"}(L||(L={}));const D=e=&gt;{const t=L[e];if(t)return{event:e,eventAction:"Cart Funnel",eventCategory:"Funnel",eventLabel:t}},M=(e,t,n,s,r)=&gt;{const i="cricket"===n?"newnumber":n,a=!!r&amp;&amp;Object.assign(Object.assign({},E),r),o=Object.assign(Object.assign({},E),e);return{event:"trackEGA4Event-addToCart",eventType:"funnel steps",userFlow:`${t} | ${i}`.toLowerCase(),ecommerce:{value:s,items:a?[o,a]:[o]}}};var F=n(2781);const N=e=&gt;({event:"trackEGA4Event-productView",eventType:"funnel steps",prodStatus:"in stock",ecommerce:{value:0,items:[Object.assign(Object.assign({},E),e)]}}),R=(e,t)=&gt;({event:"trackEGA4Event-productView",eventType:"funnel steps",prodStatus:"in stock",ecommerce:{value:t,items:[Object.assign(Object.assign({},E),e)]}});var B=n(5098);const j={event:"trackEvent-upgrade-plan",eventCategory:"upgrade-plan",eventAction:"60-unlimited",eventLabel:"payNow"};var V=n(6885),q=n(4538);const $={event:"trackEvent-payment",eventCategory:"upgrade-plan",eventAction:"payment",paymentMethod:"CREDITCARD",eventLabel:"submit"},U={event:"trackEvent-upgrade-plan-success",eventCategory:"upgrade-plan",eventAction:"payment",eventLabel:"success"};var H=n(7),z=n(9875),G=n(5850),K=n(9060),W=n(2208),X=n(315),Y=n(3982);const J={event:"trackEvent-no-imei",eventCategory:"device_unlock",eventAction:"message",eventLabel:"no-imei"},Q={event:"trackEvent-device-unlock",eventCategory:"device_unlock",eventAction:"button-clicked",eventLabel:"success"};var Z=n(7863),ee=n(5062),te=n(5809),ne=n(7365),se=n(2634),re=n(2669),ie=n(4551),ae=n(1708),oe=n(3173),ue=n(1169),ce=n(4494),le=n(6791),de=n(7254);const he={event:"trackEvent-create-an-account-start",eventCategory:"create-an-account",eventAction:"start",eventLabel:""},pe={event:"trackEvent-create-an-account-success",eventCategory:"create-an-account",eventAction:"success",eventLabel:""},me={event:"trackEvent-create-an-account-resend",eventCategory:"create-an-account",eventAction:"resend",eventLabel:""},ge={event:"trackEvent-create-an-account-temp-pass",eventCategory:"create-an-account",eventAction:"temp-passcode",eventLabel:""},fe={event:"trackEvent-create-an-account-error",eventCategory:"create-an-account",eventAction:"error",eventLabel:""},ve={event:"trackEvent-create-an-account-validation-error",eventCategory:"create-an-account-validation",eventAction:"error",eventLabel:""},be={event:"trackEvent-myacc-autopay-start",eventCategory:"myacc-auto-pay",eventAction:"start",eventLabel:""},ye={event:"trackEvent-myacc-autopay-success",eventCategory:"myacc-auto-pay",eventAction:"updated",eventLabel:"success"};var _e=n(4474),ke=n(9142);const we={event:"trackEvent-forgot-username-error",eventCategory:"forgot-username",eventAction:"error",eventLabel:""},Ee={event:"trackEvent-forgot-username-try-again",eventCategory:"forgot-username",eventAction:"button-click",eventLabel:"try-again"},Se={event:"trackEvent-forgot-username-start",eventCategory:"forgot-username",eventAction:"start",eventLabel:""},Ae={event:"trackEvent-forgot-username-success",eventCategory:"forgot-username",eventAction:"success",eventLabel:""},Ce={event:"trackEvent-forgot-password-error",eventCategory:"forgot-password",eventAction:"error",eventLabel:""},Te={event:"trackEvent-forgot-password-resend",eventCategory:"forgot-password",eventAction:"resend",eventLabel:""},xe={event:"trackEvent-forgot-password-start",eventCategory:"forgot-password",eventAction:"start",eventLabel:""},Pe={event:"trackEvent-forgot-password-success",eventCategory:"forgot-password",eventAction:"success",eventLabel:""},Oe={event:"trackEvent-forgot-password-temp-pass",eventCategory:"forgot-password",eventAction:"temp-passcode",eventLabel:""},Ie={event:"trackEvent-forgot-password-verification-error",eventCategory:"forgot-password-verification",eventAction:"error",eventLabel:""};var Le=n(7121),De=n(3741),Me=n(313),Fe=n(286),Ne=n(9615),Re=n(2300),Be=n(2975),je=n(289)},3148:(e,t,n)=&gt;{"use strict";n.r(t)},9336:(e,t,n)=&gt;{"use strict";n.r(t),n.d(t,{Alert:()=&gt;xt,Button:()=&gt;Ot,Carousel:()=&gt;dn,Collapse:()=&gt;An,Dropdown:()=&gt;Yn,Modal:()=&gt;Is,Offcanvas:()=&gt;Xs,Popover:()=&gt;_r,ScrollSpy:()=&gt;Ir,Tab:()=&gt;ei,Toast:()=&gt;gi,Tooltip:()=&gt;gr});var s={};n.r(s),n.d(s,{afterMain:()=&gt;E,afterRead:()=&gt;_,afterWrite:()=&gt;C,applyStyles:()=&gt;D,arrow:()=&gt;Z,auto:()=&gt;u,basePlacements:()=&gt;c,beforeMain:()=&gt;k,beforeRead:()=&gt;b,beforeWrite:()=&gt;S,bottom:()=&gt;i,clippingParents:()=&gt;h,computeStyles:()=&gt;se,createPopper:()=&gt;De,createPopperBase:()=&gt;Le,createPopperLite:()=&gt;Me,detectOverflow:()=&gt;ye,end:()=&gt;d,eventListeners:()=&gt;ie,flip:()=&gt;_e,hide:()=&gt;Ee,left:()=&gt;o,main:()=&gt;w,modifierPhases:()=&gt;T,offset:()=&gt;Se,placements:()=&gt;v,popper:()=&gt;m,popperGenerator:()=&gt;Ie,popperOffsets:()=&gt;Ae,preventOverflow:()=&gt;Ce,read:()=&gt;y,reference:()=&gt;g,right:()=&gt;a,start:()=&gt;l,top:()=&gt;r,variationPlacements:()=&gt;f,viewport:()=&gt;p,write:()=&gt;A});var r="top",i="bottom",a="right",o="left",u="auto",c=[r,i,a,o],l="start",d="end",h="clippingParents",p="viewport",m="popper",g="reference",f=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+d])}),[]),v=[].concat(c,[u]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+d])}),[]),b="beforeRead",y="read",_="afterRead",k="beforeMain",w="main",E="afterMain",S="beforeWrite",A="write",C="afterWrite",T=[b,y,_,k,w,E,S,A,C];function x(e){return e?(e.nodeName||"").toLowerCase():null}function P(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&amp;&amp;t.defaultView||window}return e}function O(e){return e instanceof P(e).Element||e instanceof Element}function I(e){return e instanceof P(e).HTMLElement||e instanceof HTMLElement}function L(e){return"undefined"!=typeof ShadowRoot&amp;&amp;(e instanceof P(e).ShadowRoot||e instanceof ShadowRoot)}const D={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];I(r)&amp;&amp;x(r)&amp;&amp;(Object.assign(r.style,n),Object.keys(s).forEach((function(e){var t=s[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&amp;&amp;Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});I(s)&amp;&amp;x(s)&amp;&amp;(Object.assign(s.style,i),Object.keys(r).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]};function M(e){return e.split("-")[0]}var F=Math.max,N=Math.min,R=Math.round;function B(){var e=navigator.userAgentData;return null!=e&amp;&amp;e.brands&amp;&amp;Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function j(){return!/^((?!chrome|android).)*safari/i.test(B())}function V(e,t,n){void 0===t&amp;&amp;(t=!1),void 0===n&amp;&amp;(n=!1);var s=e.getBoundingClientRect(),r=1,i=1;t&amp;&amp;I(e)&amp;&amp;(r=e.offsetWidth&gt;0&amp;&amp;R(s.width)/e.offsetWidth||1,i=e.offsetHeight&gt;0&amp;&amp;R(s.height)/e.offsetHeight||1);var a=(O(e)?P(e):window).visualViewport,o=!j()&amp;&amp;n,u=(s.left+(o&amp;&amp;a?a.offsetLeft:0))/r,c=(s.top+(o&amp;&amp;a?a.offsetTop:0))/i,l=s.width/r,d=s.height/i;return{width:l,height:d,top:c,right:u+l,bottom:c+d,left:u,x:u,y:c}}function q(e){var t=V(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)&lt;=1&amp;&amp;(n=t.width),Math.abs(t.height-s)&lt;=1&amp;&amp;(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function $(e,t){var n=t.getRootNode&amp;&amp;t.getRootNode();if(e.contains(t))return!0;if(n&amp;&amp;L(n)){var s=t;do{if(s&amp;&amp;e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function U(e){return P(e).getComputedStyle(e)}function H(e){return["table","td","th"].indexOf(x(e))&gt;=0}function z(e){return((O(e)?e.ownerDocument:e.document)||window.document).documentElement}function G(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(L(e)?e.host:null)||z(e)}function K(e){return I(e)&amp;&amp;"fixed"!==U(e).position?e.offsetParent:null}function W(e){for(var t=P(e),n=K(e);n&amp;&amp;H(n)&amp;&amp;"static"===U(n).position;)n=K(n);return n&amp;&amp;("html"===x(n)||"body"===x(n)&amp;&amp;"static"===U(n).position)?t:n||function(e){var t=/firefox/i.test(B());if(/Trident/i.test(B())&amp;&amp;I(e)&amp;&amp;"fixed"===U(e).position)return null;var n=G(e);for(L(n)&amp;&amp;(n=n.host);I(n)&amp;&amp;["html","body"].indexOf(x(n))&lt;0;){var s=U(n);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&amp;&amp;"filter"===s.willChange||t&amp;&amp;s.filter&amp;&amp;"none"!==s.filter)return n;n=n.parentNode}return null}(e)||t}function X(e){return["top","bottom"].indexOf(e)&gt;=0?"x":"y"}function Y(e,t,n){return F(e,N(t,n))}function J(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Q(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,u=e.options,l=n.elements.arrow,d=n.modifiersData.popperOffsets,h=M(n.placement),p=X(h),m=[o,a].indexOf(h)&gt;=0?"height":"width";if(l&amp;&amp;d){var g=function(e,t){return J("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Q(e,c))}(u.padding,n),f=q(l),v="y"===p?r:o,b="y"===p?i:a,y=n.rects.reference[m]+n.rects.reference[p]-d[p]-n.rects.popper[m],_=d[p]-n.rects.reference[p],k=W(l),w=k?"y"===p?k.clientHeight||0:k.clientWidth||0:0,E=y/2-_/2,S=g[v],A=w-f[m]-g[b],C=w/2-f[m]/2+E,T=Y(S,C,A),x=p;n.modifiersData[s]=((t={})[x]=T,t.centerOffset=T-C,t)}},effect:function(e){var t=e.state,n=e.options.element,s=void 0===n?"[data-popper-arrow]":n;null!=s&amp;&amp;("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&amp;&amp;$(t.elements.popper,s)&amp;&amp;(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ee(e){return e.split("-")[1]}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ne(e){var t,n=e.popper,s=e.popperRect,u=e.placement,c=e.variation,l=e.offsets,h=e.position,p=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,f=e.isFixed,v=l.x,b=void 0===v?0:v,y=l.y,_=void 0===y?0:y,k="function"==typeof g?g({x:b,y:_}):{x:b,y:_};b=k.x,_=k.y;var w=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),S=o,A=r,C=window;if(m){var T=W(n),x="clientHeight",O="clientWidth";if(T===P(n)&amp;&amp;"static"!==U(T=z(n)).position&amp;&amp;"absolute"===h&amp;&amp;(x="scrollHeight",O="scrollWidth"),u===r||(u===o||u===a)&amp;&amp;c===d)A=i,_-=(f&amp;&amp;T===C&amp;&amp;C.visualViewport?C.visualViewport.height:T[x])-s.height,_*=p?1:-1;if(u===o||(u===r||u===i)&amp;&amp;c===d)S=a,b-=(f&amp;&amp;T===C&amp;&amp;C.visualViewport?C.visualViewport.width:T[O])-s.width,b*=p?1:-1}var I,L=Object.assign({position:h},m&amp;&amp;te),D=!0===g?function(e,t){var n=e.x,s=e.y,r=t.devicePixelRatio||1;return{x:R(n*r)/r||0,y:R(s*r)/r||0}}({x:b,y:_},P(n)):{x:b,y:_};return b=D.x,_=D.y,p?Object.assign({},L,((I={})[A]=E?"0":"",I[S]=w?"0":"",I.transform=(C.devicePixelRatio||1)&lt;=1?"translate("+b+"px, "+_+"px)":"translate3d("+b+"px, "+_+"px, 0)",I)):Object.assign({},L,((t={})[A]=E?_+"px":"",t[S]=w?b+"px":"",t.transform="",t))}const se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,s=n.gpuAcceleration,r=void 0===s||s,i=n.adaptive,a=void 0===i||i,o=n.roundOffsets,u=void 0===o||o,c={placement:M(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&amp;&amp;(t.styles.popper=Object.assign({},t.styles.popper,ne(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&amp;&amp;(t.styles.arrow=Object.assign({},t.styles.arrow,ne(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var re={passive:!0};const ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,i=void 0===r||r,a=s.resize,o=void 0===a||a,u=P(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&amp;&amp;c.forEach((function(e){e.addEventListener("scroll",n.update,re)})),o&amp;&amp;u.addEventListener("resize",n.update,re),function(){i&amp;&amp;c.forEach((function(e){e.removeEventListener("scroll",n.update,re)})),o&amp;&amp;u.removeEventListener("resize",n.update,re)}},data:{}};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var ue={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function le(e){var t=P(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function de(e){return V(z(e)).left+le(e).scrollLeft}function he(e){var t=U(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function pe(e){return["html","body","#document"].indexOf(x(e))&gt;=0?e.ownerDocument.body:I(e)&amp;&amp;he(e)?e:pe(G(e))}function me(e,t){var n;void 0===t&amp;&amp;(t=[]);var s=pe(e),r=s===(null==(n=e.ownerDocument)?void 0:n.body),i=P(s),a=r?[i].concat(i.visualViewport||[],he(s)?s:[]):s,o=t.concat(a);return r?o:o.concat(me(G(a)))}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fe(e,t,n){return t===p?ge(function(e,t){var n=P(e),s=z(e),r=n.visualViewport,i=s.clientWidth,a=s.clientHeight,o=0,u=0;if(r){i=r.width,a=r.height;var c=j();(c||!c&amp;&amp;"fixed"===t)&amp;&amp;(o=r.offsetLeft,u=r.offsetTop)}return{width:i,height:a,x:o+de(e),y:u}}(e,n)):O(t)?function(e,t){var n=V(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ge(function(e){var t,n=z(e),s=le(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=F(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=F(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-s.scrollLeft+de(e),u=-s.scrollTop;return"rtl"===U(r||n).direction&amp;&amp;(o+=F(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:u}}(z(e)))}function ve(e,t,n,s){var r="clippingParents"===t?function(e){var t=me(G(e)),n=["absolute","fixed"].indexOf(U(e).position)&gt;=0&amp;&amp;I(e)?W(e):e;return O(n)?t.filter((function(e){return O(e)&amp;&amp;$(e,n)&amp;&amp;"body"!==x(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],o=i.reduce((function(t,n){var r=fe(e,n,s);return t.top=F(r.top,t.top),t.right=N(r.right,t.right),t.bottom=N(r.bottom,t.bottom),t.left=F(r.left,t.left),t}),fe(e,a,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function be(e){var t,n=e.reference,s=e.element,u=e.placement,c=u?M(u):null,h=u?ee(u):null,p=n.x+n.width/2-s.width/2,m=n.y+n.height/2-s.height/2;switch(c){case r:t={x:p,y:n.y-s.height};break;case i:t={x:p,y:n.y+n.height};break;case a:t={x:n.x+n.width,y:m};break;case o:t={x:n.x-s.width,y:m};break;default:t={x:n.x,y:n.y}}var g=c?X(c):null;if(null!=g){var f="y"===g?"height":"width";switch(h){case l:t[g]=t[g]-(n[f]/2-s[f]/2);break;case d:t[g]=t[g]+(n[f]/2-s[f]/2)}}return t}function ye(e,t){void 0===t&amp;&amp;(t={});var n=t,s=n.placement,o=void 0===s?e.placement:s,u=n.strategy,l=void 0===u?e.strategy:u,d=n.boundary,f=void 0===d?h:d,v=n.rootBoundary,b=void 0===v?p:v,y=n.elementContext,_=void 0===y?m:y,k=n.altBoundary,w=void 0!==k&amp;&amp;k,E=n.padding,S=void 0===E?0:E,A=J("number"!=typeof S?S:Q(S,c)),C=_===m?g:m,T=e.rects.popper,x=e.elements[w?C:_],P=ve(O(x)?x:x.contextElement||z(e.elements.popper),f,b,l),I=V(e.elements.reference),L=be({reference:I,element:T,strategy:"absolute",placement:o}),D=ge(Object.assign({},T,L)),M=_===m?D:I,F={top:P.top-M.top+A.top,bottom:M.bottom-P.bottom+A.bottom,left:P.left-M.left+A.left,right:M.right-P.right+A.right},N=e.modifiersData.offset;if(_===m&amp;&amp;N){var R=N[o];Object.keys(F).forEach((function(e){var t=[a,i].indexOf(e)&gt;=0?1:-1,n=[r,i].indexOf(e)&gt;=0?"y":"x";F[e]+=R[n]*t}))}return F}const _e={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var d=n.mainAxis,h=void 0===d||d,p=n.altAxis,m=void 0===p||p,g=n.fallbackPlacements,b=n.padding,y=n.boundary,_=n.rootBoundary,k=n.altBoundary,w=n.flipVariations,E=void 0===w||w,S=n.allowedAutoPlacements,A=t.options.placement,C=M(A),T=g||(C===A||!E?[oe(A)]:function(e){if(M(e)===u)return[];var t=oe(e);return[ce(e),t,ce(t)]}(A)),x=[A].concat(T).reduce((function(e,n){return e.concat(M(n)===u?function(e,t){void 0===t&amp;&amp;(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?v:u,d=ee(s),h=d?o?f:f.filter((function(e){return ee(e)===d})):c,p=h.filter((function(e){return l.indexOf(e)&gt;=0}));0===p.length&amp;&amp;(p=h);var m=p.reduce((function(t,n){return t[n]=ye(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[M(n)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:n,boundary:y,rootBoundary:_,padding:b,flipVariations:E,allowedAutoPlacements:S}):n)}),[]),P=t.rects.reference,O=t.rects.popper,I=new Map,L=!0,D=x[0],F=0;F&lt;x.length;F++){var N=x[F],R=M(N),B=ee(N)===l,j=[r,i].indexOf(R)&gt;=0,V=j?"width":"height",q=ye(t,{placement:N,boundary:y,rootBoundary:_,altBoundary:k,padding:b}),$=j?B?a:o:B?i:r;P[V]&gt;O[V]&amp;&amp;($=oe($));var U=oe($),H=[];if(h&amp;&amp;H.push(q[R]&lt;=0),m&amp;&amp;H.push(q[$]&lt;=0,q[U]&lt;=0),H.every((function(e){return e}))){D=N,L=!1;break}I.set(N,H)}if(L)for(var z=function(e){var t=x.find((function(t){var n=I.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},G=E?3:1;G&gt;0;G--){if("break"===z(G))break}t.placement!==D&amp;&amp;(t.modifiersData[s]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ke(e,t,n){return void 0===n&amp;&amp;(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function we(e){return[r,a,i,o].some((function(t){return e[t]&gt;=0}))}const Ee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=ye(t,{elementContext:"reference"}),o=ye(t,{altBoundary:!0}),u=ke(a,s),c=ke(o,r,i),l=we(u),d=we(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}};const Se={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,s=e.name,i=n.offset,u=void 0===i?[0,0]:i,c=v.reduce((function(e,n){return e[n]=function(e,t,n){var s=M(e),i=[o,r].indexOf(s)&gt;=0?-1:1,u="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=u[0],l=u[1];return c=c||0,l=(l||0)*i,[o,a].indexOf(s)&gt;=0?{x:l,y:c}:{x:c,y:l}}(n,t.rects,u),e}),{}),l=c[t.placement],d=l.x,h=l.y;null!=t.modifiersData.popperOffsets&amp;&amp;(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=h),t.modifiersData[s]=c}};const Ae={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=be({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Ce={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,s=e.name,u=n.mainAxis,c=void 0===u||u,d=n.altAxis,h=void 0!==d&amp;&amp;d,p=n.boundary,m=n.rootBoundary,g=n.altBoundary,f=n.padding,v=n.tether,b=void 0===v||v,y=n.tetherOffset,_=void 0===y?0:y,k=ye(t,{boundary:p,rootBoundary:m,padding:f,altBoundary:g}),w=M(t.placement),E=ee(t.placement),S=!E,A=X(w),C="x"===A?"y":"x",T=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,O="function"==typeof _?_(Object.assign({},t.rects,{placement:t.placement})):_,I="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(c){var R,B="y"===A?r:o,j="y"===A?i:a,V="y"===A?"height":"width",$=T[A],U=$+k[B],H=$-k[j],z=b?-P[V]/2:0,G=E===l?x[V]:P[V],K=E===l?-P[V]:-x[V],J=t.elements.arrow,Q=b&amp;&amp;J?q(J):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=Z[B],ne=Z[j],se=Y(0,x[V],Q[V]),re=S?x[V]/2-z-se-te-I.mainAxis:G-se-te-I.mainAxis,ie=S?-x[V]/2+z+se+ne+I.mainAxis:K+se+ne+I.mainAxis,ae=t.elements.arrow&amp;&amp;W(t.elements.arrow),oe=ae?"y"===A?ae.clientTop||0:ae.clientLeft||0:0,ue=null!=(R=null==L?void 0:L[A])?R:0,ce=$+ie-ue,le=Y(b?N(U,$+re-ue-oe):U,$,b?F(H,ce):H);T[A]=le,D[A]=le-$}if(h){var de,he="x"===A?r:o,pe="x"===A?i:a,me=T[C],ge="y"===C?"height":"width",fe=me+k[he],ve=me-k[pe],be=-1!==[r,o].indexOf(w),_e=null!=(de=null==L?void 0:L[C])?de:0,ke=be?fe:me-x[ge]-P[ge]-_e+I.altAxis,we=be?me+x[ge]+P[ge]-_e-I.altAxis:ve,Ee=b&amp;&amp;be?function(e,t,n){var s=Y(e,t,n);return s&gt;n?n:s}(ke,me,we):Y(b?ke:fe,me,b?we:ve);T[C]=Ee,D[C]=Ee-me}t.modifiersData[s]=D}},requiresIfExists:["offset"]};function Te(e,t,n){void 0===n&amp;&amp;(n=!1);var s,r,i=I(t),a=I(t)&amp;&amp;function(e){var t=e.getBoundingClientRect(),n=R(t.width)/e.offsetWidth||1,s=R(t.height)/e.offsetHeight||1;return 1!==n||1!==s}(t),o=z(t),u=V(e,a,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&amp;&amp;!n)&amp;&amp;(("body"!==x(t)||he(o))&amp;&amp;(c=(s=t)!==P(s)&amp;&amp;I(s)?{scrollLeft:(r=s).scrollLeft,scrollTop:r.scrollTop}:le(s)),I(t)?((l=V(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&amp;&amp;(l.x=de(o))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function xe(e){var t=new Map,n=new Set,s=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var s=t.get(e);s&amp;&amp;r(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),s}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&amp;&amp;"function"==typeof e.getBoundingClientRect)}))}function Ie(e){void 0===e&amp;&amp;(e={});var t=e,n=t.defaultModifiers,s=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?Pe:r;return function(e,t,n){void 0===n&amp;&amp;(n=i);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pe,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,l={state:o,setOptions:function(n){var r="function"==typeof n?n(o.options):n;d(),o.options=Object.assign({},i,o.options,r),o.scrollParents={reference:O(e)?me(e):e.contextElement?me(e.contextElement):[],popper:me(t)};var a,c,h=function(e){var t=xe(e);return T.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(s,o.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return o.orderedModifiers=h.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,s=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:o,name:t,instance:l,options:s}),a=function(){};u.push(i||a)}})),l.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(Oe(t,n)){o.rects={reference:Te(t,W(n),"fixed"===o.options.strategy),popper:q(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s&lt;o.orderedModifiers.length;s++)if(!0!==o.reset){var r=o.orderedModifiers[s],i=r.fn,a=r.options,u=void 0===a?{}:a,d=r.name;"function"==typeof i&amp;&amp;(o=i({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,s=-1}}},update:(r=function(){return new Promise((function(e){l.forceUpdate(),e(o)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(r())}))}))),a}),destroy:function(){d(),c=!0}};if(!Oe(e,t))return l;function d(){u.forEach((function(e){return e()})),u=[]}return l.setOptions(n).then((function(e){!c&amp;&amp;n.onFirstUpdate&amp;&amp;n.onFirstUpdate(e)})),l}}var Le=Ie(),De=Ie({defaultModifiers:[ie,Ae,se,D,Se,_e,Ce,Z,Ee]}),Me=Ie({defaultModifiers:[ie,Ae,se,D]});const Fe=new Map,Ne={set(e,t,n){Fe.has(e)||Fe.set(e,new Map);const s=Fe.get(e);s.has(t)||0===s.size?s.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,t)=&gt;Fe.has(e)&amp;&amp;Fe.get(e).get(t)||null,remove(e,t){if(!Fe.has(e))return;const n=Fe.get(e);n.delete(t),0===n.size&amp;&amp;Fe.delete(e)}},Re="transitionend",Be=e=&gt;(e&amp;&amp;window.CSS&amp;&amp;window.CSS.escape&amp;&amp;(e=e.replace(/#([^\s"#']+)/g,((e,t)=&gt;`#${CSS.escape(t)}`))),e),je=e=&gt;{e.dispatchEvent(new Event(Re))},Ve=e=&gt;!(!e||"object"!=typeof e)&amp;&amp;(void 0!==e.jquery&amp;&amp;(e=e[0]),void 0!==e.nodeType),qe=e=&gt;Ve(e)?e.jquery?e[0]:e:"string"==typeof e&amp;&amp;e.length&gt;0?document.querySelector(Be(e)):null,$e=e=&gt;{if(!Ve(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&amp;&amp;t.parentNode!==n)return!1;if(null===t)return!1}return t},Ue=e=&gt;!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&amp;&amp;"false"!==e.getAttribute("disabled"))),He=e=&gt;{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?He(e.parentNode):null},ze=()=&gt;{},Ge=e=&gt;{e.offsetHeight},Ke=()=&gt;window.jQuery&amp;&amp;!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,We=[],Xe=()=&gt;"rtl"===document.documentElement.dir,Ye=e=&gt;{var t;t=()=&gt;{const t=Ke();if(t){const n=e.NAME,s=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=&gt;(t.fn[n]=s,e.jQueryInterface)}},"loading"===document.readyState?(We.length||document.addEventListener("DOMContentLoaded",(()=&gt;{for(const e of We)e()})),We.push(t)):t()},Je=(e,t=[],n=e)=&gt;"function"==typeof e?e(...t):n,Qe=(e,t,n=!0)=&gt;{if(!n)return void Je(e);const s=(e=&gt;{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const s=Number.parseFloat(t),r=Number.parseFloat(n);return s||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let r=!1;const i=({target:n})=&gt;{n===t&amp;&amp;(r=!0,t.removeEventListener(Re,i),Je(e))};t.addEventListener(Re,i),setTimeout((()=&gt;{r||je(t)}),s)},Ze=(e,t,n,s)=&gt;{const r=e.length;let i=e.indexOf(t);return-1===i?!n&amp;&amp;s?e[r-1]:e[0]:(i+=n?1:-1,s&amp;&amp;(i=(i+r)%r),e[Math.max(0,Math.min(i,r-1))])},et=/[^.]*(?=\..*)\.|.*/,tt=/\..*/,nt=/::\d+$/,st={};let rt=1;const it={mouseenter:"mouseover",mouseleave:"mouseout"},at=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ot(e,t){return t&amp;&amp;`${t}::${rt++}`||e.uidEvent||rt++}function ut(e){const t=ot(e);return e.uidEvent=t,st[t]=st[t]||{},st[t]}function ct(e,t,n=null){return Object.values(e).find((e=&gt;e.callable===t&amp;&amp;e.delegationSelector===n))}function lt(e,t,n){const s="string"==typeof t,r=s?n:t||n;let i=mt(e);return at.has(i)||(i=e),[s,r,i]}function dt(e,t,n,s,r){if("string"!=typeof t||!e)return;let[i,a,o]=lt(t,n,s);if(t in it){const e=e=&gt;function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&amp;&amp;!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const u=ut(e),c=u[o]||(u[o]={}),l=ct(c,a,i?n:null);if(l)return void(l.oneOff=l.oneOff&amp;&amp;r);const d=ot(a,t.replace(et,"")),h=i?function(e,t,n){return function s(r){const i=e.querySelectorAll(t);for(let{target:a}=r;a&amp;&amp;a!==this;a=a.parentNode)for(const o of i)if(o===a)return ft(r,{delegateTarget:a}),s.oneOff&amp;&amp;gt.off(e,r.type,t,n),n.apply(a,[r])}}(e,n,a):function(e,t){return function n(s){return ft(s,{delegateTarget:e}),n.oneOff&amp;&amp;gt.off(e,s.type,t),t.apply(e,[s])}}(e,a);h.delegationSelector=i?n:null,h.callable=a,h.oneOff=r,h.uidEvent=d,c[d]=h,e.addEventListener(o,h,i)}function ht(e,t,n,s,r){const i=ct(t[n],s,r);i&amp;&amp;(e.removeEventListener(n,i,Boolean(r)),delete t[n][i.uidEvent])}function pt(e,t,n,s){const r=t[n]||{};for(const[i,a]of Object.entries(r))i.includes(s)&amp;&amp;ht(e,t,n,a.callable,a.delegationSelector)}function mt(e){return e=e.replace(tt,""),it[e]||e}const gt={on(e,t,n,s){dt(e,t,n,s,!1)},one(e,t,n,s){dt(e,t,n,s,!0)},off(e,t,n,s){if("string"!=typeof t||!e)return;const[r,i,a]=lt(t,n,s),o=a!==t,u=ut(e),c=u[a]||{},l=t.startsWith(".");if(void 0===i){if(l)for(const n of Object.keys(u))pt(e,u,n,t.slice(1));for(const[n,s]of Object.entries(c)){const r=n.replace(nt,"");o&amp;&amp;!t.includes(r)||ht(e,u,a,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;ht(e,u,a,i,r?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const s=Ke();let r=null,i=!0,a=!0,o=!1;t!==mt(t)&amp;&amp;s&amp;&amp;(r=s.Event(t,n),s(e).trigger(r),i=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),o=r.isDefaultPrevented());const u=ft(new Event(t,{bubbles:i,cancelable:!0}),n);return o&amp;&amp;u.preventDefault(),a&amp;&amp;e.dispatchEvent(u),u.defaultPrevented&amp;&amp;r&amp;&amp;r.preventDefault(),u}};function ft(e,t={}){for(const[n,s]of Object.entries(t))try{e[n]=s}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=&gt;s})}return e}function vt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function bt(e){return e.replace(/[A-Z]/g,(e=&gt;`-${e.toLowerCase()}`))}const yt={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${bt(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${bt(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=&gt;e.startsWith("bs")&amp;&amp;!e.startsWith("bsConfig")));for(const s of n){let n=s.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=vt(e.dataset[s])}return t},getDataAttribute:(e,t)=&gt;vt(e.getAttribute(`data-bs-${bt(t)}`))};class _t{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=Ve(t)?yt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Ve(t)?yt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,r]of Object.entries(t)){const t=e[s],i=Ve(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${i}" but expected type "${r}".`)}var n}}class kt extends _t{constructor(e,t){super(),(e=qe(e))&amp;&amp;(this._element=e,this._config=this._getConfig(t),Ne.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ne.remove(this._element,this.constructor.DATA_KEY),gt.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Qe(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ne.get(qe(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const wt=e=&gt;{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&amp;&amp;!n.startsWith("."))return null;n.includes("#")&amp;&amp;!n.startsWith("#")&amp;&amp;(n=`#${n.split("#")[1]}`),t=n&amp;&amp;"#"!==n?n.trim():null}return t?t.split(",").map((e=&gt;Be(e))).join(","):null},Et={find:(e,t=document.documentElement)=&gt;[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=&gt;Element.prototype.querySelector.call(t,e),children:(e,t)=&gt;[].concat(...e.children).filter((e=&gt;e.matches(t))),parents(e,t){const n=[];let s=e.parentNode.closest(t);for(;s;)n.push(s),s=s.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=&gt;`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=&gt;!Ue(e)&amp;&amp;$e(e)))},getSelectorFromElement(e){const t=wt(e);return t&amp;&amp;Et.findOne(t)?t:null},getElementFromSelector(e){const t=wt(e);return t?Et.findOne(t):null},getMultipleElementsFromSelector(e){const t=wt(e);return t?Et.find(t):[]}},St=(e,t="hide")=&gt;{const n=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;gt.on(document,n,`[data-bs-dismiss="${s}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&amp;&amp;n.preventDefault(),Ue(this))return;const r=Et.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(r)[t]()}))},At=".bs.alert",Ct=`close${At}`,Tt=`closed${At}`;class xt extends kt{static get NAME(){return"alert"}close(){if(gt.trigger(this._element,Ct).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=&gt;this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),gt.trigger(this._element,Tt),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=xt.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}St(xt,"close"),Ye(xt);const Pt='[data-bs-toggle="button"]';class Ot extends kt{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=Ot.getOrCreateInstance(this);"toggle"===e&amp;&amp;t[e]()}))}}gt.on(document,"click.bs.button.data-api",Pt,(e=&gt;{e.preventDefault();const t=e.target.closest(Pt);Ot.getOrCreateInstance(t).toggle()})),Ye(Ot);const It=".bs.swipe",Lt=`touchstart${It}`,Dt=`touchmove${It}`,Mt=`touchend${It}`,Ft=`pointerdown${It}`,Nt=`pointerup${It}`,Rt={endCallback:null,leftCallback:null,rightCallback:null},Bt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class jt extends _t{constructor(e,t){super(),this._element=e,e&amp;&amp;jt.isSupported()&amp;&amp;(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Rt}static get DefaultType(){return Bt}static get NAME(){return"swipe"}dispose(){gt.off(this._element,It)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&amp;&amp;(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&amp;&amp;(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Je(this._config.endCallback)}_move(e){this._deltaX=e.touches&amp;&amp;e.touches.length&gt;1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e&lt;=40)return;const t=e/this._deltaX;this._deltaX=0,t&amp;&amp;Je(t&gt;0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(gt.on(this._element,Ft,(e=&gt;this._start(e))),gt.on(this._element,Nt,(e=&gt;this._end(e))),this._element.classList.add("pointer-event")):(gt.on(this._element,Lt,(e=&gt;this._start(e))),gt.on(this._element,Dt,(e=&gt;this._move(e))),gt.on(this._element,Mt,(e=&gt;this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&amp;&amp;("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints&gt;0}}const Vt=".bs.carousel",qt=".data-api",$t="ArrowLeft",Ut="ArrowRight",Ht="next",zt="prev",Gt="left",Kt="right",Wt=`slide${Vt}`,Xt=`slid${Vt}`,Yt=`keydown${Vt}`,Jt=`mouseenter${Vt}`,Qt=`mouseleave${Vt}`,Zt=`dragstart${Vt}`,en=`load${Vt}${qt}`,tn=`click${Vt}${qt}`,nn="carousel",sn="active",rn=".active",an=".carousel-item",on=rn+an,un={[$t]:Kt,[Ut]:Gt},cn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ln={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class dn extends kt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Et.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===nn&amp;&amp;this.cycle()}static get Default(){return cn}static get DefaultType(){return ln}static get NAME(){return"carousel"}next(){this._slide(Ht)}nextWhenVisible(){!document.hidden&amp;&amp;$e(this._element)&amp;&amp;this.next()}prev(){this._slide(zt)}pause(){this._isSliding&amp;&amp;je(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=&gt;this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&amp;&amp;(this._isSliding?gt.one(this._element,Xt,(()=&gt;this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e&gt;t.length-1||e&lt;0)return;if(this._isSliding)return void gt.one(this._element,Xt,(()=&gt;this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const s=e&gt;n?Ht:zt;this._slide(s,t[e])}dispose(){this._swipeHelper&amp;&amp;this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&amp;&amp;gt.on(this._element,Yt,(e=&gt;this._keydown(e))),"hover"===this._config.pause&amp;&amp;(gt.on(this._element,Jt,(()=&gt;this.pause())),gt.on(this._element,Qt,(()=&gt;this._maybeEnableCycle()))),this._config.touch&amp;&amp;jt.isSupported()&amp;&amp;this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Et.find(".carousel-item img",this._element))gt.on(e,Zt,(e=&gt;e.preventDefault()));const e={leftCallback:()=&gt;this._slide(this._directionToOrder(Gt)),rightCallback:()=&gt;this._slide(this._directionToOrder(Kt)),endCallback:()=&gt;{"hover"===this._config.pause&amp;&amp;(this.pause(),this.touchTimeout&amp;&amp;clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=&gt;this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new jt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=un[e.key];t&amp;&amp;(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Et.findOne(rn,this._indicatorsElement);t.classList.remove(sn),t.removeAttribute("aria-current");const n=Et.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&amp;&amp;(n.classList.add(sn),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),s=e===Ht,r=t||Ze(this._getItems(),n,s,this._config.wrap);if(r===n)return;const i=this._getItemIndex(r),a=t=&gt;gt.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:i});if(a(Wt).defaultPrevented)return;if(!n||!r)return;const o=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=r;const u=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";r.classList.add(c),Ge(r),n.classList.add(u),r.classList.add(u);this._queueCallback((()=&gt;{r.classList.remove(u,c),r.classList.add(sn),n.classList.remove(sn,c,u),this._isSliding=!1,a(Xt)}),n,this._isAnimated()),o&amp;&amp;this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Et.findOne(on,this._element)}_getItems(){return Et.find(an,this._element)}_clearInterval(){this._interval&amp;&amp;(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Xe()?e===Gt?zt:Ht:e===Gt?Ht:zt}_orderToDirection(e){return Xe()?e===zt?Gt:Kt:e===zt?Kt:Gt}static jQueryInterface(e){return this.each((function(){const t=dn.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}gt.on(document,tn,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Et.getElementFromSelector(this);if(!t||!t.classList.contains(nn))return;e.preventDefault();const n=dn.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(n.to(s),void n._maybeEnableCycle()):"next"===yt.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),gt.on(window,en,(()=&gt;{const e=Et.find('[data-bs-ride="carousel"]');for(const t of e)dn.getOrCreateInstance(t)})),Ye(dn);const hn=".bs.collapse",pn=`show${hn}`,mn=`shown${hn}`,gn=`hide${hn}`,fn=`hidden${hn}`,vn=`click${hn}.data-api`,bn="show",yn="collapse",_n="collapsing",kn=`:scope .${yn} .${yn}`,wn='[data-bs-toggle="collapse"]',En={parent:null,toggle:!0},Sn={parent:"(null|element)",toggle:"boolean"};class An extends kt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Et.find(wn);for(const e of n){const t=Et.getSelectorFromElement(e),n=Et.find(t).filter((e=&gt;e===this._element));null!==t&amp;&amp;n.length&amp;&amp;this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&amp;&amp;this.toggle()}static get Default(){return En}static get DefaultType(){return Sn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&amp;&amp;(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=&gt;e!==this._element)).map((e=&gt;An.getOrCreateInstance(e,{toggle:!1})))),e.length&amp;&amp;e[0]._isTransitioning)return;if(gt.trigger(this._element,pn).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(yn),this._element.classList.add(_n),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=&gt;{this._isTransitioning=!1,this._element.classList.remove(_n),this._element.classList.add(yn,bn),this._element.style[t]="",gt.trigger(this._element,mn)}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(gt.trigger(this._element,gn).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ge(this._element),this._element.classList.add(_n),this._element.classList.remove(yn,bn);for(const e of this._triggerArray){const t=Et.getElementFromSelector(e);t&amp;&amp;!this._isShown(t)&amp;&amp;this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=&gt;{this._isTransitioning=!1,this._element.classList.remove(_n),this._element.classList.add(yn),gt.trigger(this._element,fn)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(bn)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=qe(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(wn);for(const t of e){const e=Et.getElementFromSelector(t);e&amp;&amp;this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Et.find(kn,this._config.parent);return Et.find(e,this._config.parent).filter((e=&gt;!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&amp;&amp;/show|hide/.test(e)&amp;&amp;(t.toggle=!1),this.each((function(){const n=An.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}gt.on(document,vn,wn,(function(e){("A"===e.target.tagName||e.delegateTarget&amp;&amp;"A"===e.delegateTarget.tagName)&amp;&amp;e.preventDefault();for(const e of Et.getMultipleElementsFromSelector(this))An.getOrCreateInstance(e,{toggle:!1}).toggle()})),Ye(An);const Cn="dropdown",Tn=".bs.dropdown",xn=".data-api",Pn="ArrowUp",On="ArrowDown",In=`hide${Tn}`,Ln=`hidden${Tn}`,Dn=`show${Tn}`,Mn=`shown${Tn}`,Fn=`click${Tn}${xn}`,Nn=`keydown${Tn}${xn}`,Rn=`keyup${Tn}${xn}`,Bn="show",jn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Vn=`${jn}.${Bn}`,qn=".dropdown-menu",$n=Xe()?"top-end":"top-start",Un=Xe()?"top-start":"top-end",Hn=Xe()?"bottom-end":"bottom-start",zn=Xe()?"bottom-start":"bottom-end",Gn=Xe()?"left-start":"right-start",Kn=Xe()?"right-start":"left-start",Wn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Yn extends kt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Et.next(this._element,qn)[0]||Et.prev(this._element,qn)[0]||Et.findOne(qn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wn}static get DefaultType(){return Xn}static get NAME(){return Cn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ue(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!gt.trigger(this._element,Dn,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&amp;&amp;!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))gt.on(e,"mouseover",ze);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Bn),this._element.classList.add(Bn),gt.trigger(this._element,Mn,e)}}hide(){if(Ue(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&amp;&amp;this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&amp;&amp;this._popper.update()}_completeHide(e){if(!gt.trigger(this._element,In,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))gt.off(e,"mouseover",ze);this._popper&amp;&amp;this._popper.destroy(),this._menu.classList.remove(Bn),this._element.classList.remove(Bn),this._element.setAttribute("aria-expanded","false"),yt.removeDataAttribute(this._menu,"popper"),gt.trigger(this._element,Ln,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&amp;&amp;!Ve(e.reference)&amp;&amp;"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Cn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Ve(this._config.reference)?e=qe(this._config.reference):"object"==typeof this._config.reference&amp;&amp;(e=this._config.reference);const t=this._getPopperConfig();this._popper=De(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Bn)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Gn;if(e.classList.contains("dropstart"))return Kn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Un:$n:t?zn:Hn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=&gt;Number.parseInt(e,10))):"function"==typeof e?t=&gt;e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&amp;&amp;(yt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Je(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=Et.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=&gt;$e(e)));n.length&amp;&amp;Ze(n,t,e===On,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Yn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&amp;&amp;"Tab"!==e.key)return;const t=Et.find(Vn);for(const n of t){const t=Yn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),r=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&amp;&amp;!r||"outside"===t._config.autoClose&amp;&amp;r)continue;if(t._menu.contains(e.target)&amp;&amp;("keyup"===e.type&amp;&amp;"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&amp;&amp;(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,s=[Pn,On].includes(e.key);if(!s&amp;&amp;!n)return;if(t&amp;&amp;!n)return;e.preventDefault();const r=this.matches(jn)?this:Et.prev(this,jn)[0]||Et.next(this,jn)[0]||Et.findOne(jn,e.delegateTarget.parentNode),i=Yn.getOrCreateInstance(r);if(s)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&amp;&amp;(e.stopPropagation(),i.hide(),r.focus())}}gt.on(document,Nn,jn,Yn.dataApiKeydownHandler),gt.on(document,Nn,qn,Yn.dataApiKeydownHandler),gt.on(document,Fn,Yn.clearMenus),gt.on(document,Rn,Yn.clearMenus),gt.on(document,Fn,jn,(function(e){e.preventDefault(),Yn.getOrCreateInstance(this).toggle()})),Ye(Yn);const Jn="backdrop",Qn="show",Zn=`mousedown.bs.${Jn}`,es={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ts={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ns extends _t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return es}static get DefaultType(){return ts}static get NAME(){return Jn}show(e){if(!this._config.isVisible)return void Je(e);this._append();const t=this._getElement();this._config.isAnimated&amp;&amp;Ge(t),t.classList.add(Qn),this._emulateAnimation((()=&gt;{Je(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Qn),this._emulateAnimation((()=&gt;{this.dispose(),Je(e)}))):Je(e)}dispose(){this._isAppended&amp;&amp;(gt.off(this._element,Zn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&amp;&amp;e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=qe(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),gt.on(e,Zn,(()=&gt;{Je(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Qe(e,this._getElement(),this._config.isAnimated)}}const ss=".bs.focustrap",rs=`focusin${ss}`,is=`keydown.tab${ss}`,as="backward",os={autofocus:!0,trapElement:null},us={autofocus:"boolean",trapElement:"element"};class cs extends _t{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return os}static get DefaultType(){return us}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&amp;&amp;this._config.trapElement.focus(),gt.off(document,ss),gt.on(document,rs,(e=&gt;this._handleFocusin(e))),gt.on(document,is,(e=&gt;this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&amp;&amp;(this._isActive=!1,gt.off(document,ss))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=Et.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===as?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&amp;&amp;(this._lastTabNavDirection=e.shiftKey?as:"forward")}}const ls=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ds=".sticky-top",hs="padding-right",ps="margin-right";class ms{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hs,(t=&gt;t+e)),this._setElementAttributes(ls,hs,(t=&gt;t+e)),this._setElementAttributes(ds,ps,(t=&gt;t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hs),this._resetElementAttributes(ls,hs),this._resetElementAttributes(ds,ps)}isOverflowing(){return this.getWidth()&gt;0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth();this._applyManipulationCallback(e,(e=&gt;{if(e!==this._element&amp;&amp;window.innerWidth&gt;e.clientWidth+s)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&amp;&amp;yt.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=&gt;{const n=yt.getDataAttribute(e,t);null!==n?(yt.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Ve(e))t(e);else for(const n of Et.find(e,this._element))t(n)}}const gs=".bs.modal",fs=`hide${gs}`,vs=`hidePrevented${gs}`,bs=`hidden${gs}`,ys=`show${gs}`,_s=`shown${gs}`,ks=`resize${gs}`,ws=`click.dismiss${gs}`,Es=`mousedown.dismiss${gs}`,Ss=`keydown.dismiss${gs}`,As=`click${gs}.data-api`,Cs="modal-open",Ts="show",xs="modal-static",Ps={backdrop:!0,focus:!0,keyboard:!0},Os={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Is extends kt{constructor(e,t){super(e,t),this._dialog=Et.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ms,this._addEventListeners()}static get Default(){return Ps}static get DefaultType(){return Os}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;gt.trigger(this._element,ys,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Cs),this._adjustDialog(),this._backdrop.show((()=&gt;this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;gt.trigger(this._element,fs).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ts),this._queueCallback((()=&gt;this._hideModal()),this._element,this._isAnimated()))}dispose(){gt.off(window,gs),gt.off(this._dialog,gs),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ns({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new cs({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Et.findOne(".modal-body",this._dialog);t&amp;&amp;(t.scrollTop=0),Ge(this._element),this._element.classList.add(Ts);this._queueCallback((()=&gt;{this._config.focus&amp;&amp;this._focustrap.activate(),this._isTransitioning=!1,gt.trigger(this._element,_s,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){gt.on(this._element,Ss,(e=&gt;{"Escape"===e.key&amp;&amp;(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),gt.on(window,ks,(()=&gt;{this._isShown&amp;&amp;!this._isTransitioning&amp;&amp;this._adjustDialog()})),gt.on(this._element,Es,(e=&gt;{gt.one(this._element,ws,(t=&gt;{this._element===e.target&amp;&amp;this._element===t.target&amp;&amp;("static"!==this._config.backdrop?this._config.backdrop&amp;&amp;this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=&gt;{document.body.classList.remove(Cs),this._resetAdjustments(),this._scrollBar.reset(),gt.trigger(this._element,bs)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(gt.trigger(this._element,vs).defaultPrevented)return;const e=this._element.scrollHeight&gt;document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(xs)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(xs),this._queueCallback((()=&gt;{this._element.classList.remove(xs),this._queueCallback((()=&gt;{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight&gt;document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t&gt;0;if(n&amp;&amp;!e){const e=Xe()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&amp;&amp;e){const e=Xe()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Is.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}gt.on(document,As,'[data-bs-toggle="modal"]',(function(e){const t=Et.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&amp;&amp;e.preventDefault(),gt.one(t,ys,(e=&gt;{e.defaultPrevented||gt.one(t,bs,(()=&gt;{$e(this)&amp;&amp;this.focus()}))}));const n=Et.findOne(".modal.show");n&amp;&amp;Is.getInstance(n).hide();Is.getOrCreateInstance(t).toggle(this)})),St(Is),Ye(Is);const Ls=".bs.offcanvas",Ds=".data-api",Ms=`load${Ls}${Ds}`,Fs="show",Ns="showing",Rs="hiding",Bs=".offcanvas.show",js=`show${Ls}`,Vs=`shown${Ls}`,qs=`hide${Ls}`,$s=`hidePrevented${Ls}`,Us=`hidden${Ls}`,Hs=`resize${Ls}`,zs=`click${Ls}${Ds}`,Gs=`keydown.dismiss${Ls}`,Ks={backdrop:!0,keyboard:!0,scroll:!1},Ws={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xs extends kt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ks}static get DefaultType(){return Ws}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(gt.trigger(this._element,js,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ms).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ns);this._queueCallback((()=&gt;{this._config.scroll&amp;&amp;!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Fs),this._element.classList.remove(Ns),gt.trigger(this._element,Vs,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(gt.trigger(this._element,qs).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Rs),this._backdrop.hide();this._queueCallback((()=&gt;{this._element.classList.remove(Fs,Rs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ms).reset(),gt.trigger(this._element,Us)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new ns({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=&gt;{"static"!==this._config.backdrop?this.hide():gt.trigger(this._element,$s)}:null})}_initializeFocusTrap(){return new cs({trapElement:this._element})}_addEventListeners(){gt.on(this._element,Gs,(e=&gt;{"Escape"===e.key&amp;&amp;(this._config.keyboard?this.hide():gt.trigger(this._element,$s))}))}static jQueryInterface(e){return this.each((function(){const t=Xs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}gt.on(document,zs,'[data-bs-toggle="offcanvas"]',(function(e){const t=Et.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&amp;&amp;e.preventDefault(),Ue(this))return;gt.one(t,Us,(()=&gt;{$e(this)&amp;&amp;this.focus()}));const n=Et.findOne(Bs);n&amp;&amp;n!==t&amp;&amp;Xs.getInstance(n).hide();Xs.getOrCreateInstance(t).toggle(this)})),gt.on(window,Ms,(()=&gt;{for(const e of Et.find(Bs))Xs.getOrCreateInstance(e).show()})),gt.on(window,Hs,(()=&gt;{for(const e of Et.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&amp;&amp;Xs.getOrCreateInstance(e).hide()})),St(Xs),Ye(Xs);const Ys={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Js=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&amp;:/?#]*(?:[/?#]|$))/i,Zs=(e,t)=&gt;{const n=e.nodeName.toLowerCase();return t.includes(n)?!Js.has(n)||Boolean(Qs.test(e.nodeValue)):t.filter((e=&gt;e instanceof RegExp)).some((e=&gt;e.test(n)))};const er={allowList:Ys,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"&lt;div&gt;&lt;/div&gt;"},tr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},nr={entry:"(string|element|function|null)",selector:"(string|element)"};class sr extends _t{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return er}static get DefaultType(){return tr}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=&gt;this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length&gt;0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&amp;&amp;t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},nr)}_setContent(e,t,n){const s=Et.findOne(n,e);s&amp;&amp;((t=this._resolvePossibleFunction(t))?Ve(t)?this._putElementInTemplate(qe(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&amp;&amp;"function"==typeof n)return n(e);const s=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...s.body.querySelectorAll("*"));for(const e of r){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const s=[].concat(...e.attributes),r=[].concat(t["*"]||[],t[n]||[]);for(const t of s)Zs(t,r)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Je(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const rr=new Set(["sanitize","allowList","sanitizeFn"]),ir="fade",ar="show",or=".tooltip-inner",ur=".modal",cr="hide.bs.modal",lr="hover",dr="focus",hr={AUTO:"auto",TOP:"top",RIGHT:Xe()?"left":"right",BOTTOM:"bottom",LEFT:Xe()?"right":"left"},pr={allowList:Ys,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'&lt;div class="tooltip" role="tooltip"&gt;&lt;div class="tooltip-arrow"&gt;&lt;/div&gt;&lt;div class="tooltip-inner"&gt;&lt;/div&gt;&lt;/div&gt;',title:"",trigger:"hover focus"},mr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class gr extends kt{constructor(e,t){super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return pr}static get DefaultType(){return mr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&amp;&amp;(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),gt.off(this._element.closest(ur),cr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&amp;&amp;this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=gt.trigger(this._element,this.constructor.eventName("show")),t=(He(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),gt.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ar),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))gt.on(e,"mouseover",ze);this._queueCallback((()=&gt;{gt.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&amp;&amp;this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(gt.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(ar),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))gt.off(e,"mouseover",ze);this._activeTrigger.click=!1,this._activeTrigger[dr]=!1,this._activeTrigger[lr]=!1,this._isHovered=null;this._queueCallback((()=&gt;{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),gt.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&amp;&amp;this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ir,ar),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=&gt;{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&amp;&amp;t.classList.add(ir),t}setContent(e){this._newContent=e,this._isShown()&amp;&amp;(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new sr({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[or]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&amp;&amp;this.tip.classList.contains(ir)}_isShown(){return this.tip&amp;&amp;this.tip.classList.contains(ar)}_createPopper(e){const t=Je(this._config.placement,[this,e,this._element]),n=hr[t.toUpperCase()];return De(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=&gt;Number.parseInt(e,10))):"function"==typeof e?t=&gt;e(t,this._element):e}_resolvePossibleFunction(e){return Je(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=&gt;{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Je(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)gt.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=&gt;{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===lr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===lr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");gt.on(this._element,e,this._config.selector,(e=&gt;{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?dr:lr]=!0,t._enter()})),gt.on(this._element,n,this._config.selector,(e=&gt;{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?dr:lr]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=&gt;{this._element&amp;&amp;this.hide()},gt.on(this._element.closest(ur),cr,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&amp;&amp;(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=&gt;{this._isHovered&amp;&amp;this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=&gt;{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=yt.getDataAttributes(this._element);for(const e of Object.keys(t))rr.has(e)&amp;&amp;delete t[e];return e={...t,..."object"==typeof e&amp;&amp;e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:qe(e.container),"number"==typeof e.delay&amp;&amp;(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&amp;&amp;(e.title=e.title.toString()),"number"==typeof e.content&amp;&amp;(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&amp;&amp;(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&amp;&amp;(this._popper.destroy(),this._popper=null),this.tip&amp;&amp;(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=gr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Ye(gr);const fr=".popover-header",vr=".popover-body",br={...gr.Default,content:"",offset:[0,8],placement:"right",template:'&lt;div class="popover" role="tooltip"&gt;&lt;div class="popover-arrow"&gt;&lt;/div&gt;&lt;h3 class="popover-header"&gt;&lt;/h3&gt;&lt;div class="popover-body"&gt;&lt;/div&gt;&lt;/div&gt;',trigger:"click"},yr={...gr.DefaultType,content:"(null|string|element|function)"};class _r extends gr{static get Default(){return br}static get DefaultType(){return yr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[fr]:this._getTitle(),[vr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=_r.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Ye(_r);const kr=".bs.scrollspy",wr=`activate${kr}`,Er=`click${kr}`,Sr=`load${kr}.data-api`,Ar="active",Cr="[href]",Tr=".nav-link",xr=`${Tr}, .nav-item &gt; ${Tr}, .list-group-item`,Pr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Or={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ir extends kt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Pr}static get DefaultType(){return Or}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=qe(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&amp;&amp;(e.threshold=e.threshold.split(",").map((e=&gt;Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&amp;&amp;(gt.off(this._config.target,Er),gt.on(this._config.target,Er,Cr,(e=&gt;{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:s,behavior:"smooth"});n.scrollTop=s}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=&gt;this._observerCallback(e)),e)}_observerCallback(e){const t=e=&gt;this._targetLinks.get(`#${e.target.id}`),n=e=&gt;{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,r=s&gt;=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop&gt;=this._previousScrollData.visibleEntryTop;if(r&amp;&amp;e){if(n(i),!s)return}else r||e||n(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Et.find(Cr,this._config.target);for(const t of e){if(!t.hash||Ue(t))continue;const e=Et.findOne(decodeURI(t.hash),this._element);$e(e)&amp;&amp;(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&amp;&amp;(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ar),this._activateParents(e),gt.trigger(this._element,wr,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Et.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Ar);else for(const t of Et.parents(e,".nav, .list-group"))for(const e of Et.prev(t,xr))e.classList.add(Ar)}_clearActiveClass(e){e.classList.remove(Ar);const t=Et.find(`${Cr}.${Ar}`,e);for(const e of t)e.classList.remove(Ar)}static jQueryInterface(e){return this.each((function(){const t=Ir.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}gt.on(window,Sr,(()=&gt;{for(const e of Et.find('[data-bs-spy="scroll"]'))Ir.getOrCreateInstance(e)})),Ye(Ir);const Lr=".bs.tab",Dr=`hide${Lr}`,Mr=`hidden${Lr}`,Fr=`show${Lr}`,Nr=`shown${Lr}`,Rr=`click${Lr}`,Br=`keydown${Lr}`,jr=`load${Lr}`,Vr="ArrowLeft",qr="ArrowRight",$r="ArrowUp",Ur="ArrowDown",Hr="Home",zr="End",Gr="active",Kr="fade",Wr="show",Xr=".dropdown-toggle",Yr=`:not(${Xr})`,Jr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Qr=`${`.nav-link${Yr}, .list-group-item${Yr}, [role="tab"]${Yr}`}, ${Jr}`,Zr=`.${Gr}[data-bs-toggle="tab"], .${Gr}[data-bs-toggle="pill"], .${Gr}[data-bs-toggle="list"]`;class ei extends kt{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&amp;&amp;(this._setInitialAttributes(this._parent,this._getChildren()),gt.on(this._element,Br,(e=&gt;this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?gt.trigger(t,Dr,{relatedTarget:e}):null;gt.trigger(e,Fr,{relatedTarget:t}).defaultPrevented||n&amp;&amp;n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Gr),this._activate(Et.getElementFromSelector(e));this._queueCallback((()=&gt;{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),gt.trigger(e,Nr,{relatedTarget:t})):e.classList.add(Wr)}),e,e.classList.contains(Kr))}_deactivate(e,t){if(!e)return;e.classList.remove(Gr),e.blur(),this._deactivate(Et.getElementFromSelector(e));this._queueCallback((()=&gt;{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),gt.trigger(e,Mr,{relatedTarget:t})):e.classList.remove(Wr)}),e,e.classList.contains(Kr))}_keydown(e){if(![Vr,qr,$r,Ur,Hr,zr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=&gt;!Ue(e)));let n;if([Hr,zr].includes(e.key))n=t[e.key===Hr?0:t.length-1];else{const s=[qr,Ur].includes(e.key);n=Ze(t,e.target,s,!0)}n&amp;&amp;(n.focus({preventScroll:!0}),ei.getOrCreateInstance(n).show())}_getChildren(){return Et.find(Qr,this._parent)}_getActiveElem(){return this._getChildren().find((e=&gt;this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&amp;&amp;this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Et.getElementFromSelector(e);t&amp;&amp;(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&amp;&amp;this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const s=(e,s)=&gt;{const r=Et.findOne(e,n);r&amp;&amp;r.classList.toggle(s,t)};s(Xr,Gr),s(".dropdown-menu",Wr),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Gr)}_getInnerElement(e){return e.matches(Qr)?e:Et.findOne(Qr,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=ei.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}gt.on(document,Rr,Jr,(function(e){["A","AREA"].includes(this.tagName)&amp;&amp;e.preventDefault(),Ue(this)||ei.getOrCreateInstance(this).show()})),gt.on(window,jr,(()=&gt;{for(const e of Et.find(Zr))ei.getOrCreateInstance(e)})),Ye(ei);const ti=".bs.toast",ni=`mouseover${ti}`,si=`mouseout${ti}`,ri=`focusin${ti}`,ii=`focusout${ti}`,ai=`hide${ti}`,oi=`hidden${ti}`,ui=`show${ti}`,ci=`shown${ti}`,li="hide",di="show",hi="showing",pi={animation:"boolean",autohide:"boolean",delay:"number"},mi={animation:!0,autohide:!0,delay:5e3};class gi extends kt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return mi}static get DefaultType(){return pi}static get NAME(){return"toast"}show(){if(gt.trigger(this._element,ui).defaultPrevented)return;this._clearTimeout(),this._config.animation&amp;&amp;this._element.classList.add("fade");this._element.classList.remove(li),Ge(this._element),this._element.classList.add(di,hi),this._queueCallback((()=&gt;{this._element.classList.remove(hi),gt.trigger(this._element,ci),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(gt.trigger(this._element,ai).defaultPrevented)return;this._element.classList.add(hi),this._queueCallback((()=&gt;{this._element.classList.add(li),this._element.classList.remove(hi,di),gt.trigger(this._element,oi)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&amp;&amp;this._element.classList.remove(di),super.dispose()}isShown(){return this._element.classList.contains(di)}_maybeScheduleHide(){this._config.autohide&amp;&amp;(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=&gt;{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){gt.on(this._element,ni,(e=&gt;this._onInteraction(e,!0))),gt.on(this._element,si,(e=&gt;this._onInteraction(e,!1))),gt.on(this._element,ri,(e=&gt;this._onInteraction(e,!0))),gt.on(this._element,ii,(e=&gt;this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=gi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}St(gi),Ye(gi)},7162:(e,t,n)=&gt;{"use strict";n.r(t)},1284:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountInfo=async function(){try{let e=document.querySelector("#ctn-input").value;e=e.replace(/\D/g,"");const t={ctn:e};window.cricket.guidEventData.ctn=e,await(0,o.getAccountBalanceCall)(t),await(0,i.default)({eventName:"balance",startEvent:!1,endEvent:!1})}catch(e){const t=e,n=await r.errorMessaging.errorHandler((0,r.safeJsonParse)(t.message));(0,a.default)(t,n?.code??"getAccountInfo"),await(0,i.default)({eventName:"balance",startEvent:!1,endEvent:!1,error:{errorCode:n?.code??"",errorMessage:n?.message??""}})}};const r=n(4957),i=s(n(4050)),a=s(n(5007)),o=n(8165)},5284:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(4957),i=s(n(5007)),a=s(n(2494)),o={url:"/restservices/paymentcollector/v1/payments/auth/services/web/tokens",method:"POST"};t.default=async()=&gt;{try{return(await(0,r.callPromiseJSON)(o,{},{authenticate:!0})).data.paymentToken}catch(e){const t=e,n=await r.errorMessaging.errorHandler(JSON.stringify(t));throw(0,i.default)(t,n?.code??"getPaymentToken"),(0,a.default)(n),t}}},4050:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(4957),i=s(n(5007)),a=s(n(7784));t.default=async({eventName:e,startEvent:t,endEvent:n,paymentInfo:s,error:o})=&gt;{const u=window.cricket.guidEventData,c=!!u.ctn,l=!!u.ban,d=c?"CTN":l?"BAN":void 0,h=c?u.ctn:l?u.ban:void 0,p={};c&amp;&amp;(p.ctn=u.ctn),l&amp;&amp;(p.ban=u.ban);const m={experienceName:"web",journey:document.getElementsByTagName("body")[0].dataset.guidjourney?.toLowerCase()??"",eventName:e,version:"1.0.0",deviceInfo:{userAgent:navigator.userAgent},traceId:u.traceId,startEvent:t,endEvent:n,eventDate:new Date,originatingApplicationInfo:{name:"shareablepaymentsui",version:a.default.serviceVersion},...d&amp;&amp;{eventIdentifierType:d},...h&amp;&amp;{eventIdentifier:h},...p&amp;&amp;{secondaryIdentifiers:p},...s&amp;&amp;{paymentInfo:s},...o&amp;&amp;{eventStatus:{status:"FAILURE",...o}}};try{await(0,r.callPromise)(r.eventExperiences,[m])}catch(e){const t=e,n=await r.errorMessaging.errorHandler((0,r.safeJsonParse)(t.message));(0,i.default)(t,n?.code??"sendGUIDEvent")}}},994:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPaymentDetails=async function(){try{const e=await(0,s.callPromiseJSON)(a);return(0,r.handleSuccess)(e),e}catch(e){const{message:t}=await s.errorMessaging.errorHandler((0,s.safeJsonParse)(e.message));throw(0,i.notifyBugSnag)(e,t),e}};const s=n(4957),r=n(1999),i=n(202),a={method:"GET",url:"/restservices/jwt-pay/paymentcollector/v1/payments/details"}},9771:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleCompletedSuccessful=function(){const e=document.querySelector("#success-screen"),t=sessionStorage.getItem("successMarkup"),n=document.querySelector(".standalonePaymentWrapper");e.innerHTML=t??"&lt;h1&gt;successMarkUp&lt;/h1&gt;",[e].forEach((e=&gt;e.classList.remove("d-none"))),n.classList.remove("placeholder")}},1999:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleSuccess=function(e){"COMPLETED_SUCCESSFUL"===e.data.status?(0,s.handleCompletedSuccessful)():((0,r.storeSessionData)(e),(0,i.updateView)(e))};const s=n(9771),r=n(9731),i=n(5196)},5725:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bugSnagEnvironments=void 0;t.bugSnagEnvironments=()=&gt;{let e="development";return window.location.hostname.includes("sit1")?e="testing":window.location.hostname.includes("snap")||"www.cricketwireless.com"===window.location.hostname?e="production":window.location.hostname.includes("sit5")&amp;&amp;(e="staging"),e}},2453:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDateMonthNameDateYear=function(e){return e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"})}},7995:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDollarAmount=function(e){e=e.replace(/[^\d.]/g,"");let[t,n]=e.split(".");t=t||"0",n=(n||"00").substring(0,2),n.length&lt;2&amp;&amp;(n=n.padEnd(2,"0"));return t=t.replace(/\B(?=(\d{3})+(?!\d))/g,","),`$${t}.${n}`}},8165:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountBalanceCall=async function(e){const t={headers:{application:"quickpay-self-service-journey"}};try{const n=await(0,r.callPromiseJSON)(r.triggerAccountBalance,e,t);return(0,a.getAccountBalanceSuccessHandler)(n)}catch(e){return i.default.leaveBreadcrumb("Error when calling getAccountBalanceCall"),i.default.notify(e),(0,a.getAccountBalanceSuccessHandler)(e)}};const r=n(4957),i=s(n(5993)),a=n(5120)},5120:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountBalanceSuccessHandler=function(e){e?.success&amp;&amp;!window.cricket.quickpay.ctnPaymentSubmissionError?(document.getElementById("stepOneFormSubmitButton")?.classList.add("d-none"),document.querySelector(".orc-contextual-message")?.classList.remove("d-none")):(0,r.default)(e?.notifications?.errors?.[0])};const r=s(n(2494))},8447:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCardSecurityCodeMaxLength=function(){const e=document.querySelector("#credit-card-number").value;let t;t="American Express"===(0,s.getCreditCardType)(e,!1)?4:3;return t};const s=n(5307)},3624:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleAccordionSectionShown=function(e,t=!0){const n=document.querySelector("#accordion-component section.show");if(!n)return;const r=document.body.dataset.journey,i=document.querySelector("#amount-input"),a=document.querySelector("#amtInputError"),o=document.querySelector("#terms-and-conditions"),u=document.querySelector("#continue-to-review"),c=document.querySelector("#cancel-payment"),l=document.querySelector("#submit-payment"),d=document.querySelector(".paypal-buttons"),h="review-payment",p="accept-check-box",m="cancel-payment",g="submit-payment",f="submit-paypal-payment";if(!(o&amp;&amp;u&amp;&amp;c&amp;&amp;l))return;window.cricket[e].paymentType=n.dataset.payType;const v=window.cricket[e].paymentType;t&amp;&amp;("refill"===v?(i.disabled=!0,i.value="",i.classList.remove("invalid"),a.classList.add("d-none")):(i.disabled=!1,a.classList.remove("d-none")));(0,s.setDataEventAttributes)(u,h,r,v,`${n.dataset.payType}-${h}`),(0,s.setDataEventAttributes)(o,p,r,v,`${n.dataset.payType}-${p}`),(0,s.setDataEventAttributes)(c,m,r,v,`${n.dataset.payType}-${m}`),(0,s.setDataEventAttributes)(l,g,r,v,`${n.dataset.payType}-${g}`),d&amp;&amp;(0,s.setDataEventAttributes)(d,f,r,v,`${n.dataset.payType}-${f}`)};const s=n(819)},8337:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleExpirationInput=function(e){let t=e.value;t=t.replace(/[^0-9/]/g,""),t.length&gt;=2&amp;&amp;(t="/"!==t.charAt(2)?t.slice(0,2)+"/"+t.slice(2,4):t.slice(0,5));const n=t.split("/");n.length&gt;=2&amp;&amp;(t=n[0]+"/"+n[1]);return e.value=t,e}},7269:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maskCCnumber=function(e,t){if(!e.length)return"";const n="American Express"===(0,s.getCreditCardType)(e,!1)?15:16,r="American Express"===(0,s.getCreditCardType)(e,!1)?11:12;if(t)return 17===e.length?`...${e.substring(13)}`:`...${e.substring(6)}`;if(e.length!==n)throw new Error(`Input must be a ${n}-character string.`);return`...${e.substring(r)}`};const s=n(5307)},819:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDataEventAttributes=function(e,t,n,s,r){e.dataset.event=`trackEvent-${n}-${s}-${t}`,e.dataset.eventAction="button-click",e.dataset.eventCategory=n,e.dataset.eventLabel=r}},5834:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.submitPayment=t.showSuccessScreen=t.showReviewScreen=t.initPaymentForm=t.initExternalFormEvents=t.initFormEvents=t.getPaymentDetails=void 0;const s=n(994);Object.defineProperty(t,"getPaymentDetails",{enumerable:!0,get:function(){return s.getPaymentDetails}});const r=n(748);Object.defineProperty(t,"initPaymentForm",{enumerable:!0,get:function(){return r.initPaymentForm}});const i=n(1373);Object.defineProperty(t,"showReviewScreen",{enumerable:!0,get:function(){return i.showReviewScreen}});const a=n(7482);Object.defineProperty(t,"showSuccessScreen",{enumerable:!0,get:function(){return a.showSuccessScreen}});const o=n(7184);Object.defineProperty(t,"submitPayment",{enumerable:!0,get:function(){return o.submitPayment}});const u=n(6799);Object.defineProperty(t,"initFormEvents",{enumerable:!0,get:function(){return u.initFormEvents}}),Object.defineProperty(t,"initExternalFormEvents",{enumerable:!0,get:function(){return u.initExternalFormEvents}})},748:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initPaymentForm=function(){const e=document.querySelector("#amount-input"),t=document.querySelector("#quick-pay-wrapper"),n=document.querySelector("#continue-to-review"),s=document.querySelector("#cancel-payment"),h=document.querySelector("#add-another-refill");let p=0;n?.addEventListener("click",(async()=&gt;{const n=document.querySelector("#accordion-component section.show"),s=n.querySelector("form");(0,o.default)();try{t&amp;&amp;t.classList.add("d-none"),(0,d.showReviewScreen)(s.id),(0,l.default)("mainWrapper"),e&amp;&amp;(p=parseFloat(e.value)),await(0,i.default)({eventName:"review",startEvent:!1,endEvent:!1,paymentInfo:{totalAmount:p,type:(0,c.default)(n.id),cardType:(0,u.default)(s.elements["credit-card-number"]?.value??s.elements["cricket-refill-card-input"]?.value??s.elements["cricket-card-number"]?.value)}})}catch(e){const t=e,o=await r.errorMessaging.errorHandler((0,r.safeJsonParse)(t.message));(0,a.default)(t,o?.code??"initPaymentForm"),await(0,i.default)({eventName:"review",startEvent:!1,endEvent:!1,paymentInfo:{totalAmount:p,type:(0,c.default)(n.id),cardType:(0,u.default)(s.elements["credit-card-number"]?.value??s.elements["cricket-refill-card-input"]?.value??s.elements["cricket-card-number"]?.value)},error:{errorCode:o?.code??"",errorMessage:o?.message??""}})}})),[s,h].forEach((e=&gt;{e.addEventListener("click",(()=&gt;{window.location.reload()}))}))};const r=n(4957),i=s(n(4050)),a=s(n(5007)),o=s(n(901)),u=s(n(8104)),c=s(n(4024)),l=s(n(3062)),d=n(5834)},202:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notifyBugSnag=function(e,t){return r.default.leaveBreadcrumb(t),r.default.notify(e,(e=&gt;{e.addMetadata("FsSession",{fsUrl:i?.getCurrentSessionURL?.()}),e.errors[0].errorClass=t})),e};const r=s(n(5993)),{FS:i}=window},3724:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updatedPaymentReviewMarkup=function(e,t,n,r){const i=document.querySelector("#payment-review-payment-date"),a=document.querySelector("#payment-review-name-on-card"),o=document.querySelector("#payment-review-card-type"),u=document.querySelector("#payment-review-card-number"),c=document.querySelector("#payment-review-expiration-date"),l=document.querySelector("#payment-review-zip-code"),d=document.querySelector("#payment-review-payment-amount"),h=n?"creditcard":r?"refillcard":"servicecard",p=document.querySelector("#submit-payment"),m=document.querySelector("#cancel-payment");i.innerHTML=e.paymentDate,""===e.nameOnCard&amp;&amp;a.parentElement.classList.add("d-none");a.innerHTML=e.nameOnCard??"",o.innerHTML=e.cardType??"",u.innerHTML=e.cardNumber,c.innerHTML=e.expiration??"",l.innerHTML=e?.billingZip??"",d.innerHTML=e.paymentAmount??"",l.parentElement?.classList.remove("d-none"),void 0===e?.billingZip&amp;&amp;l.parentElement?.classList.add("d-none");r&amp;&amp;[a,o,c,l,d].forEach((e=&gt;e.parentElement?.classList.add("d-none")));p?.addEventListener("click",(function(){this.classList.add("loading"),this.disabled=!0,(0,s.submitPayment)(t,h,r)})),m?.addEventListener("click",(()=&gt;{window.location.reload()}))};const s=n(7184)},4425:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updatedPaymentSuccessMarkup=function(e,t,n){const s=document.querySelector("#payment-success-confirmation-id"),r=document.querySelector("#payment-success-payment-date"),i=document.querySelector("#payment-success-name-on-card"),a=document.querySelector("#payment-success-card-type"),o=document.querySelector("#payment-success-card-number"),u=document.querySelector("#payment-success-expiration-date"),c=document.querySelector("#payment-success-zip-code"),l=document.querySelector("#payment-success-payment-amount");n&amp;&amp;(o.parentElement.classList.add("d-none"),u.parentElement.classList.add("d-none"));s.innerHTML=e.confirmationCode??"",r.innerHTML=e.paymentDate,""===e.nameOnCard&amp;&amp;i.parentElement.classList.add("d-none");i.innerHTML=e.nameOnCard??"",a.innerHTML=n?"Paypal":e.cardType??"",o.innerHTML=e.cardNumber,u.innerHTML=e.expiration??"",c.innerHTML=e?.billingZip??"",l.innerHTML=e.paymentAmount??"",c.parentElement?.classList.remove("d-none"),void 0===e?.billingZip&amp;&amp;c.parentElement?.classList.add("d-none");t&amp;&amp;[s,a,i,u,c,l].forEach((e=&gt;e.parentElement?.classList.add("d-none")))}},1373:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showReviewScreen=function(e){const t="credit-card"===e,n="cricket-refill-card"===e,u=document.getElementById(t?"credit-card-name":""),c=document.getElementById(t?"credit-card-number":n?"cricket-refill-card-input":"cricket-card-number"),l=document.getElementById(t?"card-expiration-date":"cricket-expiration-date"),d=document.getElementById(t?"card-security-code":"cricket-security-code"),h=document.getElementById(t?"card-zip":""),p=document.querySelector("#amount-input"),m=document.querySelector("#ctn-input");m&amp;&amp;(window.cricket.guidEventData.ctn=m.value.replace(/\D/g,""));const g=document.getElementById("payment-screen"),f=document.getElementById("payment-review-screen"),[v,b]=l.value.split("/"),y=v,_=b,k=p?.value.length?p?.value.replace("$","").replace(",",""):sessionStorage.getItem("payAmount"),w=parseFloat(k??"0"),E=m?.value??sessionStorage.getItem("ctn")??"",S=new Date,A={cardNumber:c?.value,ctn:E.replace(/\D/g,"")},C={cardholderName:u?.value??"",cardNumber:c?.value,encrypted:!1,expirationMonth:y,expirationYear:_,pin:d?.value,...h?.value?{zipCode:h.value}:{},amount:w,ctn:E.replace(/\D/g,"")},T=n?A:C,x={paymentDate:(0,a.formatDateMonthNameDateYear)(S),cardNumber:(0,i.maskCCnumber)(T.cardNumber,n)},P={paymentDate:(0,a.formatDateMonthNameDateYear)(S),nameOnCard:T.cardholderName??"",cardNumber:(0,i.maskCCnumber)(T.cardNumber,n),cardType:(0,r.getCreditCardType)(T.cardNumber,!1),expiration:`${T.expirationMonth}/${T.expirationYear}`,billingZip:T?.zipCode,paymentAmount:(0,o.formatDollarAmount)(k??"")},O=n?x:P;(0,s.updatedPaymentReviewMarkup)(O,T,t,n),g.classList.add("d-none"),f.classList.remove("d-none")};const s=n(3724),r=n(5307),i=n(7269),a=n(2453),o=n(7995)},7482:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showSuccessScreen=function(e,t,n,u){const c=new Date,l={paymentDate:(0,a.formatDateMonthNameDateYear)(c),cardNumber:(0,i.maskCCnumber)(t.cardNumber,n),confirmationCode:e?.data?.authorizationCode??""},d={paymentDate:(0,a.formatDateMonthNameDateYear)(c),nameOnCard:t.cardholderName??"",cardNumber:(0,i.maskCCnumber)(t.cardNumber,n),cardType:(0,r.getCreditCardType)(t.cardNumber,!1),expiration:`${t.expirationMonth}/${t.expirationYear}`,billingZip:t.zipCode,paymentAmount:e?.data?.paidAmount?(0,o.formatDollarAmount)(`${e?.data?.paidAmount}`):"",confirmationCode:e?.data?.authorizationCode??""},h=n?l:d;(0,s.updatedPaymentSuccessMarkup)(h,n,u);const p=document.querySelector("#success-screen");document.querySelector("#payment-review-screen")?.classList.add("d-none"),p?.classList.remove("d-none"),sessionStorage.setItem("successMarkup",p.innerHTML.toString())};const s=n(4425),r=n(5307),i=n(7269),a=n(2453),o=n(7995)},9731:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeSessionData=function(e){sessionStorage.setItem("serviceId",e.data.serviceId),sessionStorage.setItem("payToken",e.data.paymentToken),sessionStorage.setItem("ctn",e.data.ctn),sessionStorage.setItem("ban",e.data.ban),sessionStorage.setItem("payAmount",e.data.requestedAmount.toString())}},7184:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.submitPayment=async function(e,t,n){const s=sessionStorage.getItem("serviceId")??document.body.id,g=sessionStorage.getItem("payToken"),f=document.querySelector("#submit-payment");try{const u=`/restservices/paymentcollector/v1/payments/${t}/services/${s}/tokens/${"authpayment"===s?await(0,o.default)():g}`,h=`/restservices/paymentcollector/v1/payments/${t}/services/${s}/quickpay`,m={method:"POST",url:g||""===e.ctn?u:h},f=await(0,r.callPromiseJSON)(m,e);(0,p.showSuccessScreen)(f,e,n),(0,d.default)("mainWrapper"),f.data&amp;&amp;("creditcard"===t&amp;&amp;(0,i.pushDataLayerObject)((0,i.quickPayDebitPaymentConfirmationEvent)(f.data.authorizationCode,f.data.paidAmount)),"servicecard"===t&amp;&amp;(0,i.pushDataLayerObject)((0,i.quickPayServicePaymentConfirmationEvent)(f.data.authorizationCode,f.data.paidAmount)),"refillcard"===t&amp;&amp;(0,i.pushDataLayerObject)((0,i.quickPayRefillPaymentConfirmationEvent)(f.data.authorizationCode,f.data.paidAmount)));const v={totalAmount:0,type:"CREDIT_CARD",cardType:"UNKNOWN"};f.data?.authorizationCode&amp;&amp;(v.confirmationNumber=f.data.authorizationCode),v.totalAmount=e.amount??0,v.type=(0,c.default)(t),v.cardType=(0,l.default)(e.cardNumber),await(0,a.default)({eventName:"end",startEvent:!1,endEvent:!0,paymentInfo:v})}catch(n){const s=n;"creditcard"===t&amp;&amp;(0,i.pushDataLayerObject)((0,i.quickPayDebitPaymentErrorEvent)()),"servicecard"===t&amp;&amp;(0,i.pushDataLayerObject)((0,i.quickPayServicePaymentErrorEvent)()),"refillcard"===t&amp;&amp;(0,i.pushDataLayerObject)((0,i.quickPayRefillPaymentErrorEvent)()),f?.classList.remove("loading"),(0,m.updateButtonAttributes)(f,{disabled:"true","aria-disabled":"true"}),(0,h.default)();const o=await r.errorMessaging.errorHandler((0,r.safeJsonParse)(s.message));(0,u.default)(n,o?.code??"submitPayment"),await(0,a.default)({eventName:"end",startEvent:!1,endEvent:!0,paymentInfo:{totalAmount:e.amount??0,type:(0,c.default)(t),cardType:(0,l.default)(e.cardNumber)},error:{errorCode:o?.code??"",errorMessage:o?.message??""}})}};const r=n(4957),i=n(8053),a=s(n(4050)),o=s(n(5284)),u=s(n(5007)),c=s(n(4024)),l=s(n(8104)),d=s(n(3062)),h=s(n(2494)),p=n(7482),m=n(9016)},9016:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateButtonAttributes=function(e,t){Object.entries(t).forEach((([t,n])=&gt;e.setAttribute(t,n)))}},5196:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.updateView=function(e){const t=document.querySelector(".standalonePaymentWrapper"),n=document.querySelector("#payment-screen");(0,r.default)({"amount-due-title":(0,i.default)(e.data.requestedAmount),"ctn-title":e.data.ctn}),n.classList.remove("d-none"),t.classList.remove("placeholder")};const r=s(n(8537)),i=s(n(960))},5281:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.digitsOnlyValidation=void 0;t.digitsOnlyValidation=e=&gt;{["Delete","Backspace","Tab","Escape","Enter","ArrowLeft","ArrowRight","0","1","2","3","4","5","6","7","8","9"].includes(e.key)||"a"===e.key&amp;&amp;e.ctrlKey||"c"===e.key&amp;&amp;e.ctrlKey||"v"===e.key&amp;&amp;e.ctrlKey||"x"===e.key&amp;&amp;e.ctrlKey||"z"===e.key&amp;&amp;e.ctrlKey||"a"===e.key&amp;&amp;e.metaKey||"c"===e.key&amp;&amp;e.metaKey||"v"===e.key&amp;&amp;e.metaKey||"x"===e.key&amp;&amp;e.metaKey||"z"===e.key&amp;&amp;e.metaKey||e.preventDefault()}},6799:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentForm=t.updateInputError=t.clearInputField=t.initClearInputFields=t.checkInputValidity=t.initFormEvents=t.initExternalFormEvents=void 0;const r=s(n(6822)),i=s(n(2861)),a=s(n(713)),o=s(n(3327)),u=n(5281),c=n(2304),l=n(2958),d=n(8752),h=n(4911),p=n(8175),m=n(3901),g=n(8337),f=n(7164),v=n(9211),b=n(5307);t.initExternalFormEvents=e=&gt;{const n=document.querySelector("#terms-and-conditions"),s=document.querySelectorAll(".accordion-collapse"),r=document.querySelector("#continue-to-review");n.addEventListener("change",(function(n){const s=e.map((e=&gt;document.getElementById(e))).find((e=&gt;e.closest("section")?.classList.contains("show")));s&amp;&amp;(0,t.checkInputValidity)(n,this,s.id)})),s.forEach((e=&gt;{e.addEventListener("show.bs.collapse",(function(e){const t=e.target;"paypal-collapse"!==t.id&amp;&amp;(r?.classList.remove("d-none"),(0,i.default)()),"paypal-collapse"===t.id&amp;&amp;(r?.classList.add("d-none"),(0,a.default)())})),e.addEventListener("hide.bs.collapse",(function(e){const t=e.target.querySelector("form");if(t){document.querySelectorAll(`#${t.id} .orc-close-button`).forEach((e=&gt;{e.click()}))}}))}))};t.initFormEvents=e=&gt;{const n=document.getElementById(e),s=n.querySelectorAll("input"),r="credit-card"===e?n.querySelector("#card-expiration-date"):n.querySelector("#cricket-expiration-date");r?.addEventListener("input",(()=&gt;(0,g.handleExpirationInput)(r))),s.forEach((n=&gt;{n.setAttribute("invalid","true"),n.addEventListener("input",(function(n){this.closest("form").id===e&amp;&amp;(0,t.checkInputValidity)(n,this,e)})),n.addEventListener("blur",(function(n){this.closest("form").id===e&amp;&amp;(0,t.checkInputValidity)(n,this,e)})),("tel"===n.type||"password"===n.type||n.classList.contains("numeric"))&amp;&amp;n.addEventListener("keypress",(function(t){this.closest("form").id===e&amp;&amp;(0,u.digitsOnlyValidation)(t)}))})),(0,t.initClearInputFields)(e)};t.checkInputValidity=(e,n,s)=&gt;{e.stopPropagation();const{id:i,value:a}=n;let u="";switch(i){case"ctn-input":{const e=["make-payment","get-balance"];u=(0,f.getCtnInputErrorMessage)(a),(0,t.updateInputError)(n,u),(0,o.default)("ctn-input",e);break}case"amount-input":u=(0,v.getAmtInputErrorMessage)(a),(0,t.updateInputError)(n,u);break;case"cricket-service-payment-name":case"credit-card-name":u=(0,c.getCardNameErrorMessage)(a),(0,t.updateInputError)(n,u);break;case"cricket-refill-card-input":case"credit-card-number":case"cricket-card-number":(0,r.default)(i,a),u=(0,l.getCardNumberErrorMessage)(a,i),(0,t.updateInputError)(n,u);break;case"cricket-expiration-date":case"card-expiration-date":(0,d.getExpirationDateErrorMessage)(i);break;case"cricket-security-code":case"card-security-code":u=(0,h.getSecCodeErrorMessage)(a,i),(0,t.updateInputError)(n,u);break;case"card-zip":u=(0,m.getZipCodeErrorMessage)(a),(0,t.updateInputError)(n,u);break;case"terms-and-conditions":u=(0,p.getTermsAndConditionsErrorMessage)(n),(0,t.updateInputError)(n,u)}(0,t.validatePaymentForm)(e,s)};t.initClearInputFields=e=&gt;{document.querySelectorAll(`#${e} .orc-close-button`).forEach((n=&gt;{n.addEventListener("click",(function(s){const r=this.parentElement.querySelector(".orc-input-box");(0,t.clearInputField)(n),(0,t.checkInputValidity)(s,r,e)}))}))};t.clearInputField=e=&gt;{const n=e.parentNode.querySelector(".orc-input-box");n&amp;&amp;((0,t.updateInputError)(n,""),n.setAttribute("invalid","true"),n.value="")};t.updateInputError=(e,t)=&gt;{const n=e.parentElement.querySelector(".orc-invalid-text");n&amp;&amp;(t?(n.innerHTML=t,n.classList.remove("d-none"),e.classList.add("invalid"),e.setAttribute("aria-invalid","true"),e.setAttribute("invalid","true")):(n.classList.add("d-none"),n.innerHTML="",e.classList.remove("invalid"),e.setAttribute("aria-invalid","false"),e.removeAttribute("invalid")))};t.validatePaymentForm=(e,t)=&gt;{e.preventDefault();const n=document.querySelector("#accordion-component section.show"),s=document.getElementById(t),r=document.querySelector("#continue-to-review"),i=Array.from(s.querySelectorAll("input")),a=document.querySelector("#terms-and-conditions"),o=document.querySelector("#amount-input"),u=document.querySelector("#credit-card-number"),c=document.querySelector("#cricket-card-number"),l="creditcard-collapse"===n.id?u:c;let d=!0;i.forEach((e=&gt;{e.closest("form").id!==t||e.hasAttribute("invalid")&amp;&amp;(d=!1)})),(!a?.checked||"refill"!==window.cricket[document.body.id].paymentType&amp;&amp;0===o?.value?.length||"refill"!==window.cricket[document.body.id].paymentType&amp;&amp;"unsupported"===(0,b.getCreditCardType)(l.value,!1))&amp;&amp;(d=!1),d?(r.disabled=!1,r.classList.toggle("loading",!1)):(r.disabled=!0,r.classList.toggle("loading",!0))}},9211:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAmtInputErrorMessage=void 0;t.getAmtInputErrorMessage=e=&gt;{e=e.replace(/[^0-9.]/g,"");return parseFloat(e)&gt;=1500?'&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter a dollar amount between $1.00 and $1,499.99.':!/\d+(\.\d{1,2})?$/.test(e)||parseFloat(e)&lt;1?'&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter a dollar amount greater than $1 (e.g., $10.00).':""}},2304:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCardNameErrorMessage=void 0;t.getCardNameErrorMessage=e=&gt;{let t="";return/^[A-Za-z]+(?: [A-Za-z]+)*$/.test(e.trim())||(t='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter your name as it appears on your card.'),t}},2958:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCardNumberErrorMessage=void 0;const s=n(5307);t.getCardNumberErrorMessage=(e,t)=&gt;{const n="cricket-refill-card-input"!==t&amp;&amp;"unsupported"===(0,s.getCreditCardType)(e,!1),r=(0,s.getCreditCardType)(e).includes("American Express")?15:16;let i="";return n&amp;&amp;(i='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Enter a valid Visa, MasterCard, Discover, or American Express card.'),("cricket-refill-card-input"===t?10===e.trim().length||17===e.trim().length:e.trim().length===r)||(i=`&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter your ${"cricket-refill-card-input"===t?"10 or 17 digit Cricket Refill Card":"card"} number.`),i}},5307:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreditCardType=void 0;const s=n(4102),r=n(7386),i=n(3011),a=n(5726),o=n(5787);t.getCreditCardType=(e,t=!0,n)=&gt;{if(n)return n;let u="unsupported";if((0,o.isVisa)(e)&amp;&amp;(0,r.isBlackhawk)(e)?u="Blackhawk":(0,o.isVisa)(e)?u="Visa":(0,a.isMastercard)(e)?u="MasterCard":(0,s.isAmericanExpress)(e)?u="American Express":(0,i.isDiscoverCard)(e)&amp;&amp;(u="Discover"),t){const t=e?.slice(-4);return`${u} ${t}`}return`${u}`}},7164:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCtnInputErrorMessage=void 0;t.getCtnInputErrorMessage=e=&gt;e.length&lt;14?'&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter your 10-digit Cricket phone number.':""},8752:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExpirationDateErrorMessage=void 0;const s=n(1094),r=n(5581),i=n(9847),a=n(6799);t.getExpirationDateErrorMessage=e=&gt;{const t=document.getElementById(e),[n,o]=t.value.split("/"),u=(0,s.getExpirationMonthErrorMessage)(n),c=(0,r.getExpirationYearErrorMessage)(o);let l="";u&amp;&amp;c?(l='&lt;img src="/uiassets/error.svg" alt="error" /&gt; Please enter your card\'s expiration date.',(0,a.updateInputError)(t,l)):u&amp;&amp;!c?(0,a.updateInputError)(t,u):!u&amp;&amp;c?(0,a.updateInputError)(t,c):u||c||!(0,i.isCardExpired)(n,o)?(0,a.updateInputError)(t,""):(l='&lt;img src="/uiassets/error.svg" alt="error" /&gt; It appears that your card is expired. Please check the date and try again.',(0,a.updateInputError)(t,l))}},1094:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExpirationMonthErrorMessage=void 0;t.getExpirationMonthErrorMessage=(e="")=&gt;{let t="";return""===(e=e.trim())||e.length&lt;2?t='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter your card\'s expiration month.':(+e&lt;1||+e&gt;12)&amp;&amp;(t='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter a valid month (01 to 12).'),t}},5581:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExpirationYearErrorMessage=void 0;t.getExpirationYearErrorMessage=(e="")=&gt;{let t="";return(""===(e=e.trim())||e.length&lt;2)&amp;&amp;(t='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter your card\'s expiration year.'),t}},4911:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSecCodeErrorMessage=void 0;const s=n(8447);t.getSecCodeErrorMessage=(e,t)=&gt;{const n=document.getElementById(t);e=e.trim();const r=(0,s.getCardSecurityCodeMaxLength)();n.maxLength=r;const i=e.length===r;let a="";return e.length?i||(a='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Oops. Your security code was entered incorrectly. Please try again.'):a='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter your card\'s security code.',a}},8175:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTermsAndConditionsErrorMessage=void 0;t.getTermsAndConditionsErrorMessage=e=&gt;{let t="";return e.checked||(t='&lt;img src="/uiassets/error.svg" alt="error" /&gt; Please accept terms and conditions.'),t}},3901:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getZipCodeErrorMessage=void 0;t.getZipCodeErrorMessage=e=&gt;{let t="";return 5===e.trim().length||(t='&lt;img src="/uiassets/error.svg" alt="error"/&gt; Please enter the billing ZIP code associated with your card.'),t}},8134:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleAmountInput=void 0;const s=n(7995);t.handleAmountInput=e=&gt;{const t=document.querySelector(`#${e}`);t.addEventListener("input",(()=&gt;{let e=t.value;e=e.replace(/[^0-9.]/g,"");const n=e.split(".");n.length&gt;2&amp;&amp;(e=n[0]+"."+n.slice(1).join("")),n[1]&amp;&amp;n[1].length&gt;2&amp;&amp;(e=n[0]+"."+n[1].substring(0,2)),e.startsWith("0")&amp;&amp;!e.startsWith("0.")&amp;&amp;(e=e.replace(/^0+/,"")),parseFloat(e)&gt;=1500&amp;&amp;(e=""),t.value=e})),t.addEventListener("blur",(()=&gt;t.value=(0,s.formatDollarAmount)(t.value)))}},4102:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAmericanExpress=void 0;t.isAmericanExpress=e=&gt;/^3[47][0-9]{13}$/.test(e)},7386:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlackhawk=void 0;t.isBlackhawk=e=&gt;/^44361330\d{8}$/.test(e)},9847:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCardExpired=void 0;t.isCardExpired=(e,t)=&gt;{const n=new Date,s=n.getMonth()+1,r=parseInt(n.getFullYear().toString().substring(2),10);return!(+t&gt;r||+t===r&amp;&amp;+e&gt;=s)}},3011:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDiscoverCard=void 0;t.isDiscoverCard=e=&gt;/^(?:6011\d{12}|65\d{14}|64[4-9]\d{13}|622(?:12[6-9]|1[3-9]\d|[2-8]\d{2}|9[0-1]\d|92[0-5])\d{10})$/.test(e)},5726:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMastercard=void 0;t.isMastercard=e=&gt;/^5[1-5][0-9]{14}$/.test(e)},5787:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVisa=void 0;t.isVisa=e=&gt;/^4[0-9]{15}$/.test(e)},4397:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.maskInputs=void 0;const r=n(4957);n(9336);const i=s(n(5993)),a=s(n(8251)),o=s(n(8982)),u=s(n(4050)),c=n(5834),l=n(5725),d=n(3624),h=n(8134),p=s(n(5007)),m=s(n(7530)),g=s(n(7784));n(7162);const f=s(n(978));console.info("Version:",g.default.serviceVersion),window.cricket=window.cricket||{},window.cricket.guidEventData={ctn:"",ban:"",traceId:crypto.randomUUID()};t.maskInputs=()=&gt;{(0,o.default)(document.querySelector("#ctn-input"),{mask:"(000) 000-0000"})};const v={paymentType:"",ctnPaymentSubmissionError:!1,async init(){try{const e={apiKey:"e7a6fdacf548e3af9aeecb71a9c7cbe8",appVersion:g.default?.serviceVersion,releaseStage:(0,l.bugSnagEnvironments)()};i.default.start(e),a.default.start(e),(0,m.default)(["make-payment","get-balance"]);const n="credit-card",s="cricket-service-payment",r="cricket-refill-card",o=[n,s,r];window.cricket[document.body.id].paymentType="credit",(0,d.handleAccordionSectionShown)(document.body.id),(0,c.initPaymentForm)(),(0,c.initExternalFormEvents)(o),(0,c.initFormEvents)("get-account-info"),(0,c.initFormEvents)(n),(0,c.initFormEvents)(s),(0,c.initFormEvents)(r),(0,t.maskInputs)(),(0,h.handleAmountInput)("amount-input"),await(0,u.default)({eventName:"start",startEvent:!0,endEvent:!1}),document.querySelectorAll("[data-tooltip-content]").forEach((e=&gt;(0,f.default)(e)))}catch(e){const t=e,n=await r.errorMessaging.errorHandler((0,r.safeJsonParse)(t.message));(0,p.default)(t,n?.code??"quickpay/init"),await(0,u.default)({eventName:"start",startEvent:!0,endEvent:!1,error:{errorCode:n?.code??"",errorMessage:n?.message??""}})}}};window.cricket.quickpay=v,v.init(),window.addEventListener("shown.bs.collapse",(()=&gt;{(0,d.handleAccordionSectionShown)(document.body.id)}))},5007:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(5993)),{FS:i}=window;t.default=(e,t)=&gt;{r.default.notify(e,(e=&gt;{e.addMetadata("FsSession",{fsUrl:i?.getCurrentSessionURL?.(),user:{id:e.getUser().id,name:e.getUser().name,email:e.getUser().email}}),e.errors[0].errorClass=t}))}},8537:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=n(8560),r=n(6364);t.default=e=&gt;{const t=document.querySelector("#billing-info-block"),n=document.querySelector("#due-notification-title"),i=document.querySelector("#billing-info-divider");t.classList.remove("placeholder","col-12"),t.parentElement?.classList.remove("placeholder-glow"),n.classList.remove("d-none"),i.classList.remove("d-none"),Object.entries(e).forEach((([e,t])=&gt;{const n=document.querySelector(`#${e}`);if(!n)return void console.warn(`Paragraph with id '${e}' not found.`);n.classList.remove("d-none");const i=n.querySelector(":scope &gt; span:last-of-type");if(i){const n=e===r.BillingInfo["ctn-title"]?s.phoneFormatter.replacer(t):t;i.innerHTML=n}else console.warn(`Span with id '${e}' not found.`)}))}},6822:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=n(5307);t.default=(e,t)=&gt;{if("credit-card-number"!==e)return;const n=(0,s.getCreditCardType)(t,!1);document.querySelector("#credit-card-wrapper").querySelectorAll("img").forEach((e=&gt;{e.classList.add("d-none"),e.alt===n&amp;&amp;e.classList.remove("d-none")}))}},960:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t="en-US",n="USD")=&gt;new Intl.NumberFormat(t,{style:"currency",currency:n}).format(e)},901:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=()=&gt;{[document.querySelector("#error-alert"),document.querySelector("#generic-error"),document.querySelector("#paypal-error")].forEach((e=&gt;e.classList.add("d-none")))}},978:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.getAttribute("data-tooltip-content"),n=e.getAttribute("data-tooltip-placement"),s=e.nextElementSibling;e.addEventListener("click",(()=&gt;{s.textContent="",window.setTimeout((()=&gt;{s.innerHTML=`\n                &lt;div class="tooltip-bubble ${n}"&gt;\n                    &lt;div class="text-container"&gt;\n                        ${t}\n                    &lt;/div&gt;\n                &lt;/div&gt;\n            `}),100)})),document.addEventListener("click",(t=&gt;{e===t.target||s.contains(t.target)||(s.textContent="")})),window.addEventListener("keydown",(e=&gt;{"Escape"===e.key&amp;&amp;s.textContent&amp;&amp;(s.textContent="")}))}},7530:function(e,t,n){"use strict";var s=this&amp;&amp;this.__importDefault||function(e){return e&amp;&amp;e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(1284),i=s(n(3062));t.default=e=&gt;{e.forEach((e=&gt;{const t=document.querySelector(`#${e}`);"get-balance"===t.id?t.addEventListener("click",(()=&gt;{(0,r.getAccountInfo)()})):t.addEventListener("click",(()=&gt;{document.querySelector("#payment-screen").classList.remove("d-none"),(0,i.default)("payment-screen")}))}))}},8104:(e,t,n)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=n(4102),r=n(7386),i=n(3011),a=n(5726),o=n(5787);t.default=e=&gt;10===e.length?"REFILL_CARD":(0,s.isAmericanExpress)(e)?"AMERICAN_EXPRESS":(0,r.isBlackhawk)(e)?"BLACKHAWK":(0,i.isDiscoverCard)(e)?"DISCOVER":(0,a.isMastercard)(e)?"MASTERCARD":(0,o.isVisa)(e)?"VISA":"UNKNOWN"},4024:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=&gt;{const t=e.toLowerCase();return t.includes("creditcard")?"CREDIT_CARD":t.includes("servicecard")?"SERVICE_CARD":t.includes("refillcard")?"GIFT_CARD":"UNKNOWN"}},2861:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=()=&gt;{const e=document.querySelector(".paypal-buttons");e?.classList?.add("d-none")}},713:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=()=&gt;{const e=document.querySelector(".paypal-buttons");e?.classList?.remove("d-none")}},3062:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=&gt;{const t=document.querySelector(`#${e}`);t?t.scrollIntoView({behavior:"smooth",block:"start"}):console.error(`Element with id ${e} not found`)}},2494:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=&gt;{const t=document.querySelector("#error-alert"),n=document.querySelector("#generic-error"),s=document.querySelector("#paypal-error");e?(s.classList.remove("d-none"),e?.title&amp;&amp;(s.querySelector("h3").innerHTML=e.title),e?.message&amp;&amp;(s.querySelector("p").innerHTML=e.message)):n.classList.remove("d-none"),t.classList.remove("d-none")}},3327:(e,t)=&gt;{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t)=&gt;{const n=document.querySelector(`#${e}`),s=document.querySelector("#ctn-input"),r=n.classList.contains("invalid"),i=s.classList.contains("invalid");t.forEach((e=&gt;{const t=document.querySelector(`#${e}`);r||i?(t.disabled=!0,t.classList.toggle("loading",!0)):(t.disabled=!1,t.classList.toggle("loading",!1))}))}},6364:(e,t)=&gt;{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BillingInfo=void 0,function(e){e["ctn-title"]="ctn-title",e["due-date-title"]="due-date-title",e["monthly-charge-title"]="monthly-charge-title",e["account-credit-title"]="account-credit-title",e["reactivation-fee-title"]="reactivation-fee-title",e["amount-due-title"]="amount-due-title"}(n||(t.BillingInfo=n={}))},8982:(e,t)=&gt;{"use strict";function n(e){return"string"==typeof e||e instanceof String}function s(e){var t;return"object"==typeof e&amp;&amp;null!=e&amp;&amp;"Object"===(null==e||null==(t=e.constructor)?void 0:t.name)}function r(e,t){return Array.isArray(t)?r(e,((e,n)=&gt;t.includes(n))):Object.entries(e).reduce(((e,n)=&gt;{let[s,r]=n;return t(r,s)&amp;&amp;(e[s]=r),e}),{})}Object.defineProperty(t,"__esModule",{value:!0});const i={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function a(e){switch(e){case i.LEFT:return i.FORCE_LEFT;case i.RIGHT:return i.FORCE_RIGHT;default:return e}}function o(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function u(e,t){if(t===e)return!0;const n=Array.isArray(t),s=Array.isArray(e);let r;if(n&amp;&amp;s){if(t.length!=e.length)return!1;for(r=0;r&lt;t.length;r++)if(!u(t[r],e[r]))return!1;return!0}if(n!=s)return!1;if(t&amp;&amp;e&amp;&amp;"object"==typeof t&amp;&amp;"object"==typeof e){const n=t instanceof Date,s=e instanceof Date;if(n&amp;&amp;s)return t.getTime()==e.getTime();if(n!=s)return!1;const i=t instanceof RegExp,a=e instanceof RegExp;if(i&amp;&amp;a)return t.toString()==e.toString();if(i!=a)return!1;const o=Object.keys(t);for(r=0;r&lt;o.length;r++)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=0;r&lt;o.length;r++)if(!u(e[o[r]],t[o[r]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&amp;&amp;t.toString()===e.toString()}class c{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos&lt;this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?i.NONE:this.oldSelection.end!==this.cursorPos&amp;&amp;this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?i.LEFT:i.RIGHT}}function l(e,t){return new l.InputMask(e,t)}function d(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?l.MaskedRegExp:n(e)?l.MaskedPattern:e===Date?l.MaskedDate:e===Number?l.MaskedNumber:Array.isArray(e)||e===Array?l.MaskedDynamic:l.Masked&amp;&amp;e.prototype instanceof l.Masked?e:l.Masked&amp;&amp;e instanceof l.Masked?e.constructor:e instanceof Function?l.MaskedFunction:(console.warn("Mask not found for mask",e),l.Masked)}function h(e){if(!e)throw new Error("Options in not defined");if(l.Masked){if(e.prototype instanceof l.Masked)return{mask:e};const{mask:t,...n}=e instanceof l.Masked?{mask:e}:s(e)&amp;&amp;e.mask instanceof l.Masked?e:{};if(t){const e=t.mask;return{...r(t,((e,t)=&gt;!t.startsWith("_"))),mask:t.constructor,_mask:e,...n}}}return s(e)?{...e}:{mask:e}}function p(e){if(l.Masked&amp;&amp;e instanceof l.Masked)return e;const t=h(e),n=d(t.mask);if(!n)throw new Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===n&amp;&amp;delete t.mask,t._mask&amp;&amp;(t.mask=t._mask,delete t._mask),new n(t)}l.createMask=p;class m{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return null!=e?e:this.value.length}select(e,t){if(null!=e&amp;&amp;null!=t&amp;&amp;(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}l.MaskElement=m;class g extends m{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,n;return null!=(e=null==(t=(n=this.input).getRootNode)?void 0:t.call(n))?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){return this._handlers.redo&amp;&amp;(90===e.keyCode&amp;&amp;e.shiftKey&amp;&amp;(e.metaKey||e.ctrlKey)||89===e.keyCode&amp;&amp;e.ctrlKey)?(e.preventDefault(),this._handlers.redo(e)):this._handlers.undo&amp;&amp;90===e.keyCode&amp;&amp;(e.metaKey||e.ctrlKey)?(e.preventDefault(),this._handlers.undo(e)):void(e.isComposing||this._handlers.selectionChange(e))}_onBeforeinput(e){return"historyUndo"===e.inputType&amp;&amp;this._handlers.undo?(e.preventDefault(),this._handlers.undo(e)):"historyRedo"===e.inputType&amp;&amp;this._handlers.redo?(e.preventDefault(),this._handlers.redo(e)):void 0}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}l.HTMLMaskElement=g;class f extends g{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}l.HTMLMaskElement=g;class v extends g{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&amp;&amp;e.getSelection(),n=t&amp;&amp;t.anchorOffset,s=t&amp;&amp;t.focusOffset;return null==s||null==n||n&lt;s?n:s}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&amp;&amp;e.getSelection(),n=t&amp;&amp;t.anchorOffset,s=t&amp;&amp;t.focusOffset;return null==s||null==n||n&gt;s?n:s}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const s=this.rootElement,r=s.getSelection&amp;&amp;s.getSelection();r&amp;&amp;(r.removeAllRanges(),r.addRange(n))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}l.HTMLContenteditableMaskElement=v;class b{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return 0===this.states.length}push(e){this.currentIndex&lt;this.states.length-1&amp;&amp;(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length&gt;b.MAX_LENGTH&amp;&amp;this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}b.MAX_LENGTH=100;class y{constructor(e,t){this.el=e instanceof m?e:e.isContentEditable&amp;&amp;"INPUT"!==e.tagName&amp;&amp;"TEXTAREA"!==e.tagName?new v(e):new f(e),this.masked=p(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new b,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var t;return null==e||(null==(t=this.masked)?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof l.Masked)&amp;&amp;this.masked.constructor===d(e))return void this.masked.updateOptions({mask:e});const t=e instanceof l.Masked?e:p({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&amp;&amp;(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&amp;&amp;(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&amp;&amp;(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&amp;&amp;this.el.unbindEvents()}_fireEvent(e,t){const n=this._listeners[e];n&amp;&amp;n.forEach((e=&gt;e(t)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&amp;&amp;this.el.isActive&amp;&amp;(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&amp;&amp;console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,n=this.masked.value,s=this.masked.rawInputValue,r=this.displayValue,i=this.unmaskedValue!==t||this.value!==n||this._rawInputValue!==s;this._unmaskedValue=t,this._value=n,this._rawInputValue=s,this.el.value!==r&amp;&amp;(this.el.value=r),"auto"===e?this.alignCursor():null!=e&amp;&amp;(this.cursorPos=e),i&amp;&amp;this._fireChangeEvents(),this._historyChanging||!i&amp;&amp;!this.history.isEmpty||this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...n}=e,s=!this.maskEquals(t),r=this.masked.optionsIsChanged(n);s&amp;&amp;(this.mask=t),r&amp;&amp;this.masked.updateOptions(n),(s||r)&amp;&amp;this.updateControl()}updateCursor(e){null!=e&amp;&amp;(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout((()=&gt;{this.el&amp;&amp;(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&amp;&amp;this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&amp;&amp;(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,i.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&amp;&amp;this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n&gt;=0&amp;&amp;this._listeners[e].splice(n,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new c({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,s=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,r=n===this.masked.rawInputValue?t.removeDirection:i.NONE;let a=this.masked.nearestInputPos(t.startChangePos+s,r);r!==i.NONE&amp;&amp;(a=this.masked.nearestInputPos(a,i.NONE)),this.updateControl(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&amp;&amp;this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&amp;&amp;(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}l.InputMask=y;class _{static normalize(e){return Array.isArray(e)?e:[e,new _]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(e){return this.inserted===e.inserted&amp;&amp;this.tailShift===e.tailShift&amp;&amp;this.rawInserted===e.rawInserted&amp;&amp;this.skip===e.skip}}l.ChangeDetails=_;class k{constructor(e,t,n){void 0===e&amp;&amp;(e=""),void 0===t&amp;&amp;(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&amp;&amp;this.from&gt;=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class w{constructor(e){this._value="",this._update({...w.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&amp;&amp;this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){void 0===t&amp;&amp;(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),new k(this.extractInput(e,t),e)}appendTail(e){return n(e)&amp;&amp;(e=new k(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new _({inserted:e,rawInserted:e})):new _}_appendChar(e,t,n){void 0===t&amp;&amp;(t={});const s=this.state;let r;if([e,r]=this.doPrepareChar(e,t),e&amp;&amp;(r=r.aggregate(this._appendCharRaw(e,t)),!r.rawInserted&amp;&amp;"pad"===this.autofix)){const n=this.state;this.state=s;let i=this.pad(t);const a=this._appendCharRaw(e,t);i=i.aggregate(a),a.rawInserted||i.equals(r)?r=i:this.state=n}if(r.inserted){let e,i=!1!==this.doValidate(t);if(i&amp;&amp;null!=n){const t=this.state;if(!0===this.overwrite){e=n.state;for(let e=0;e&lt;r.rawInserted.length;++e)n.unshift(this.displayValue.length-r.tailShift)}let s=this.appendTail(n);if(i=s.rawInserted.length===n.toString().length,!(i&amp;&amp;s.inserted||"shift"!==this.overwrite)){this.state=t,e=n.state;for(let e=0;e&lt;r.rawInserted.length;++e)n.shift();s=this.appendTail(n),i=s.rawInserted.length===n.toString().length}i&amp;&amp;s.inserted&amp;&amp;(this.state=t)}i||(r=new _,this.state=s,n&amp;&amp;e&amp;&amp;(n.state=e))}return r}_appendPlaceholder(){return new _}_appendEager(){return new _}append(e,t,s){if(!n(e))throw new Error("value should be string");const r=n(s)?new k(String(s)):s;let i;null!=t&amp;&amp;t.tail&amp;&amp;(t._beforeTailState=this.state),[e,i]=this.doPrepare(e,t);for(let n=0;n&lt;e.length;++n){const s=this._appendChar(e[n],t,r);if(!s.rawInserted&amp;&amp;!this.doSkipInvalid(e[n],t,r))break;i.aggregate(s)}return(!0===this.eager||"append"===this.eager)&amp;&amp;null!=t&amp;&amp;t.input&amp;&amp;e&amp;&amp;i.aggregate(this._appendEager()),null!=r&amp;&amp;(i.tailShift+=this.appendTail(r).tailShift),i}remove(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new _}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,s=e();return this.rawInputValue=t,this.value&amp;&amp;this.value!==n&amp;&amp;0===n.indexOf(this.value)&amp;&amp;(this.append(n.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,s}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return Boolean(this.skipInvalid)}doPrepare(e,t){return void 0===t&amp;&amp;(t={}),_.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return void 0===t&amp;&amp;(t={}),_.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&amp;&amp;(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&amp;&amp;this.commit(this.value,this)}splice(e,t,n,s,r){void 0===n&amp;&amp;(n=""),void 0===s&amp;&amp;(s=i.NONE),void 0===r&amp;&amp;(r={input:!0});const o=e+t,u=this.extractTail(o),c=!0===this.eager||"remove"===this.eager;let l;c&amp;&amp;(s=a(s),l=this.extractInput(0,o,{raw:!0}));let d=e;const h=new _;if(s!==i.NONE&amp;&amp;(d=this.nearestInputPos(e,t&gt;1&amp;&amp;0!==e&amp;&amp;!c?i.NONE:s),h.tailShift=d-e),h.aggregate(this.remove(d)),c&amp;&amp;s!==i.NONE&amp;&amp;l===this.rawInputValue)if(s===i.FORCE_LEFT){let e;for(;l===this.rawInputValue&amp;&amp;(e=this.displayValue.length);)h.aggregate(new _({tailShift:-1})).aggregate(this.remove(e-1))}else s===i.FORCE_RIGHT&amp;&amp;u.unshift();return h.aggregate(this.append(n,r,u))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!u(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||w.EMPTY_VALUES.includes(e)&amp;&amp;w.EMPTY_VALUES.includes(t)||!!this.format&amp;&amp;this.format(e,this)===this.format(this.typedValue,this)}pad(e){return new _}}w.DEFAULTS={skipInvalid:!0},w.EMPTY_VALUES=[void 0,null,""],l.Masked=w;class E{constructor(e,t){void 0===e&amp;&amp;(e=[]),void 0===t&amp;&amp;(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=n(e)?new k(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&amp;&amp;(t.stop===e.stop||null==e.stop)&amp;&amp;e.from===t.from+t.toString().length;if(e instanceof k)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof E){if(null==e.stop){let t;for(;e.chunks.length&amp;&amp;null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&amp;&amp;(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof l.MaskedPattern)){return new k(this.toString()).appendTo(e)}const t=new _;for(let n=0;n&lt;this.chunks.length;++n){const s=this.chunks[n],r=e._mapPosToBlock(e.displayValue.length),i=s.stop;let a;if(null!=i&amp;&amp;(!r||r.index&lt;=i)&amp;&amp;((s instanceof E||e._stops.indexOf(i)&gt;=0)&amp;&amp;t.aggregate(e._appendPlaceholder(i)),a=s instanceof E&amp;&amp;e._blocks[i]),a){const n=a.appendTail(s);t.aggregate(n);const r=s.toString().slice(n.rawInserted.length);r&amp;&amp;t.aggregate(e.append(r,{tail:!0}))}else t.aggregate(e.append(s.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map((e=&gt;e.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...n}=e;Object.assign(this,n),this.chunks=t.map((e=&gt;{const t="chunks"in e?new E:new k;return t.state=e,t}))}unshift(e){if(!this.chunks.length||null!=e&amp;&amp;this.from&gt;=e)return"";const t=null!=e?e-this.from:e;let n=0;for(;n&lt;this.chunks.length;){const e=this.chunks[n],s=e.unshift(t);if(e.toString()){if(!s)break;++n}else this.chunks.splice(n,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0&lt;=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class S{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:s}=e._mapPosToBlock(t)||(t&lt;0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=s,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&amp;&amp;(this.state=e),e}bindBlock(){this.block||(this.index&lt;0&amp;&amp;(this.index=0,this.offset=0),this.index&gt;=this.masked._blocks.length&amp;&amp;(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0&lt;=this.index;--this.index,this.offset=(null==(t=this.block)?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index&lt;this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft((()=&gt;{if(!this.block.isFixed&amp;&amp;this.block.value)return this.offset=this.block.nearestInputPos(this.offset,i.FORCE_LEFT),0!==this.offset||void 0}))}pushLeftBeforeInput(){return this._pushLeft((()=&gt;{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,i.LEFT),!0}))}pushLeftBeforeRequired(){return this._pushLeft((()=&gt;{if(!(this.block.isFixed||this.block.isOptional&amp;&amp;!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,i.LEFT),!0}))}pushRightBeforeFilled(){return this._pushRight((()=&gt;{if(!this.block.isFixed&amp;&amp;this.block.value)return this.offset=this.block.nearestInputPos(this.offset,i.FORCE_RIGHT),this.offset!==this.block.value.length||void 0}))}pushRightBeforeInput(){return this._pushRight((()=&gt;{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,i.NONE),!0}))}pushRightBeforeRequired(){return this._pushRight((()=&gt;{if(!(this.block.isFixed||this.block.isOptional&amp;&amp;!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,i.NONE),!0}))}}class A{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new _}nearestInputPos(e,t){void 0===t&amp;&amp;(t=i.NONE);const n=this._value.length;switch(t){case i.LEFT:case i.FORCE_LEFT:return 0;default:return n}}totalInputPositions(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this._value.length),void 0===n&amp;&amp;(n={}),n.raw&amp;&amp;this._isRawInput&amp;&amp;this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(e,t){if(void 0===t&amp;&amp;(t={}),this.isFilled)return new _;const n=!0===this.eager||"append"===this.eager,s=this.char===e&amp;&amp;(this.isUnmasking||t.input||t.raw)&amp;&amp;(!t.raw||!n)&amp;&amp;!t.tail,r=new _({inserted:this.char,rawInserted:s?this.char:""});return this._value=this.char,this._isRawInput=s&amp;&amp;(t.raw||t.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new _;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new k("")}appendTail(e){return n(e)&amp;&amp;(e=new k(String(e))),e.appendTo(this)}append(e,t,n){const s=this._appendChar(e[0],t);return null!=n&amp;&amp;(s.tailShift+=this.appendTail(n).tailShift),s}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=Boolean(e._rawInputValue)}pad(e){return this._appendPlaceholder()}}class C{constructor(e){const{parent:t,isOptional:n,placeholderChar:s,displayChar:r,lazy:i,eager:a,...o}=e;this.masked=p(o),Object.assign(this,{parent:t,isOptional:n,placeholderChar:s,displayChar:r,lazy:i,eager:a})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.value.length),0===e&amp;&amp;t&gt;=1?(this.isFilled=!1,this.masked.remove(e,t)):new _}get value(){return this.masked.value||(this.isFilled&amp;&amp;!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&amp;&amp;this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(e,t){if(void 0===t&amp;&amp;(t={}),this.isFilled)return new _;const n=this.masked.state;let s=this.masked._appendChar(e,this.currentMaskFlags(t));return s.inserted&amp;&amp;!1===this.doValidate(t)&amp;&amp;(s=new _,this.masked.state=n),s.inserted||this.isOptional||this.lazy||t.input||(s.inserted=this.placeholderChar),s.skip=!s.inserted&amp;&amp;!this.isOptional,this.isFilled=Boolean(s.inserted),s}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new _:(this.isFilled=!0,new _({inserted:this.placeholderChar}))}_appendEager(){return new _}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){void 0===t&amp;&amp;(t=i.NONE);const n=this.value.length,s=Math.min(Math.max(e,0),n);switch(t){case i.LEFT:case i.FORCE_LEFT:return this.isComplete?s:0;case i.RIGHT:case i.FORCE_RIGHT:return this.isComplete?s:n;default:return s}}totalInputPositions(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&amp;&amp;(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(null==e||null==(t=e._beforeTailState)?void 0:t.masked)||(null==e?void 0:e._beforeTailState)}}pad(e){return new _}}C.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class T extends w{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&amp;&amp;(e.validate=e=&gt;e.search(t)&gt;=0),super._update(e)}}l.MaskedRegExp=T;class x extends w{constructor(e){super({...x.DEFAULTS,...e,definitions:Object.assign({},C.DEFAULT_DEFINITIONS,null==e?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let n=!1,s=!1;for(let r=0;r&lt;t.length;++r){if(this.blocks){const e=t.slice(r),n=Object.keys(this.blocks).filter((t=&gt;0===e.indexOf(t)));n.sort(((e,t)=&gt;t.length-e.length));const s=n[0];if(s){const{expose:e,repeat:t,...n}=h(this.blocks[s]),i={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...n,repeat:t,parent:this},a=null!=t?new l.RepeatBlock(i):p(i);a&amp;&amp;(this._blocks.push(a),e&amp;&amp;(this.exposeBlock=a),this._maskedBlocks[s]||(this._maskedBlocks[s]=[]),this._maskedBlocks[s].push(this._blocks.length-1)),r+=s.length-1;continue}}let i=t[r],a=i in e;if(i===x.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===i||"}"===i){n=!n;continue}if("["===i||"]"===i){s=!s;continue}if(i===x.ESCAPE_CHAR){if(++r,i=t[r],!i)break;a=!1}const o=a?new C({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...h(e[i]),parent:this}):new A({char:i,eager:this.eager,isUnmasking:n});this._blocks.push(o)}}get state(){return{...super.state,_blocks:this._blocks.map((e=&gt;e.state))}}set state(e){if(!e)return void this.reset();const{_blocks:t,...n}=e;this._blocks.forEach(((e,n)=&gt;e.state=t[n])),super.state=n}reset(){super.reset(),this._blocks.forEach((e=&gt;e.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((e=&gt;e.isComplete))}get isFilled(){return this._blocks.every((e=&gt;e.isFilled))}get isFixed(){return this._blocks.every((e=&gt;e.isFixed))}get isOptional(){return this._blocks.every((e=&gt;e.isOptional))}doCommit(){this._blocks.forEach((e=&gt;e.doCommit())),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((e,t)=&gt;e+t.unmaskedValue),"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((e,t)=&gt;e+t.value),"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce(((e,t)=&gt;e+t.displayValue),"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new _;let n=null==(e=this._mapPosToBlock(this.displayValue.length))?void 0:e.index;if(null==n)return t;this._blocks[n].isFilled&amp;&amp;++n;for(let e=n;e&lt;this._blocks.length;++e){const n=this._blocks[e]._appendEager();if(!n.inserted)break;t.aggregate(n)}return t}_appendCharRaw(e,t){void 0===t&amp;&amp;(t={});const n=this._mapPosToBlock(this.displayValue.length),s=new _;if(!n)return s;for(let i,a=n.index;i=this._blocks[a];++a){var r;const n=i._appendChar(e,{...t,_beforeTailState:null==(r=t._beforeTailState)||null==(r=r._blocks)?void 0:r[a]});if(s.aggregate(n),n.consumed)break}return s}extractTail(e,t){void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length);const n=new E;return e===t||this._forEachBlocksInRange(e,t,((e,t,s,r)=&gt;{const i=e.extractTail(s,r);i.stop=this._findStopBefore(t),i.from=this._blockStartPos(t),i instanceof E&amp;&amp;(i.blockIndex=t),n.extend(i)})),n}extractInput(e,t,n){if(void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),void 0===n&amp;&amp;(n={}),e===t)return"";let s="";return this._forEachBlocksInRange(e,t,((e,t,r,i)=&gt;{s+=e.extractInput(r,i,n)})),s}_findStopBefore(e){let t;for(let n=0;n&lt;this._stops.length;++n){const s=this._stops[n];if(!(s&lt;=e))break;t=s}return t}_appendPlaceholder(e){const t=new _;if(this.lazy&amp;&amp;null==e)return t;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;const s=n.index,r=null!=e?e:this._blocks.length;return this._blocks.slice(s,r).forEach((n=&gt;{var s;n.lazy&amp;&amp;null==e||t.aggregate(n._appendPlaceholder(null==(s=n._blocks)?void 0:s.length))})),t}_mapPosToBlock(e){let t="";for(let n=0;n&lt;this._blocks.length;++n){const s=this._blocks[n],r=t.length;if(t+=s.displayValue,e&lt;=t.length)return{index:n,offset:e-r}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce(((e,t)=&gt;e+t.displayValue.length),0)}_forEachBlocksInRange(e,t,n){void 0===t&amp;&amp;(t=this.displayValue.length);const s=this._mapPosToBlock(e);if(s){const e=this._mapPosToBlock(t),r=e&amp;&amp;s.index===e.index,i=s.offset,a=e&amp;&amp;r?e.offset:this._blocks[s.index].displayValue.length;if(n(this._blocks[s.index],s.index,i,a),e&amp;&amp;!r){for(let t=s.index+1;t&lt;e.index;++t)n(this._blocks[t],t,0,this._blocks[t].displayValue.length);n(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length);const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,((e,t,s,r)=&gt;{n.aggregate(e.remove(s,r))})),n}nearestInputPos(e,t){if(void 0===t&amp;&amp;(t=i.NONE),!this._blocks.length)return 0;const n=new S(this,e);if(t===i.NONE)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.displayValue.length);if(t===i.LEFT||t===i.FORCE_LEFT){if(t===i.LEFT){if(n.pushRightBeforeFilled(),n.ok&amp;&amp;n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===i.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&amp;&amp;n.pos&lt;=e)return n.pos;if(n.popState(),n.ok&amp;&amp;n.pos&lt;=e)return n.pos;n.popState()}return n.ok?n.pos:t===i.FORCE_LEFT?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return t===i.RIGHT||t===i.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===i.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(e,i.LEFT)))):e}totalInputPositions(e,t){void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length);let n=0;return this._forEachBlocksInRange(e,t,((e,t,s,r)=&gt;{n+=e.totalInputPositions(s,r)})),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map((e=&gt;this._blocks[e])):[]}pad(e){const t=new _;return this._forEachBlocksInRange(0,this.displayValue.length,(n=&gt;t.aggregate(n.pad(e)))),t}}x.DEFAULTS={...w.DEFAULTS,lazy:!0,placeholderChar:"_"},x.STOP_CHAR="`",x.ESCAPE_CHAR="\\",x.InputDefinition=C,x.FixedDefinition=A,l.MaskedPattern=x;class P extends x{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:n=this.from||0,maxLength:s=this.maxLength||0,autofix:r=this.autofix,...i}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,s),this.autofix=r;const a=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0");let u=0;for(;u&lt;o.length&amp;&amp;o[u]===a[u];)++u;i.mask=o.slice(0,u).replace(/0/g,"\\0")+"0".repeat(this.maxLength-u),super._update(i)}get isComplete(){return super.isComplete&amp;&amp;Boolean(this.value)}boundaries(e){let t="",n="";const[,s,r]=e.match(/^(\D*)(\d*)(\D*)/)||[];return r&amp;&amp;(t="0".repeat(s.length)+r,n="9".repeat(s.length)+r),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepareChar(e,t){let n;return void 0===t&amp;&amp;(t={}),[e,n]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(void 0===t&amp;&amp;(t={}),!this.autofix||this.value.length+1&gt;this.maxLength)return super._appendCharRaw(e,t);const n=String(this.from).padStart(this.maxLength,"0"),s=String(this.to).padStart(this.maxLength,"0"),[r,i]=this.boundaries(this.value+e);return Number(i)&lt;this.from?super._appendCharRaw(n[this.value.length],t):Number(r)&gt;this.to?!t.tail&amp;&amp;"pad"===this.autofix&amp;&amp;this.value.length+1&lt;this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(s[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(-1===t.search(/[^0]/)&amp;&amp;t.length&lt;=this._matchFrom)return!0;const[n,s]=this.boundaries(t);return this.from&lt;=Number(s)&amp;&amp;Number(n)&lt;=this.to&amp;&amp;super.doValidate(e)}pad(e){const t=new _;if(this.value.length===this.maxLength)return t;const n=this.value,s=this.maxLength-this.value.length;if(s){this.reset();for(let n=0;n&lt;s;++n)t.aggregate(super._appendCharRaw("0",e));n.split("").forEach((e=&gt;this._appendCharRaw(e)))}return t}}l.MaskedRange=P;class O extends x{static extractPatternOptions(e){const{mask:t,pattern:s,...r}=e;return{...r,mask:n(t)?t:s}}constructor(e){super(O.extractPatternOptions({...O.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:r,...i}={...O.DEFAULTS,...e},a=Object.assign({},O.GET_DEFAULT_BLOCKS());e.min&amp;&amp;(a.Y.from=e.min.getFullYear()),e.max&amp;&amp;(a.Y.to=e.max.getFullYear()),e.min&amp;&amp;e.max&amp;&amp;a.Y.from===a.Y.to&amp;&amp;(a.m.from=e.min.getMonth()+1,a.m.to=e.max.getMonth()+1,a.m.from===a.m.to&amp;&amp;(a.d.from=e.min.getDate(),a.d.to=e.max.getDate())),Object.assign(a,this.blocks,r),super._update({...i,mask:n(t)?t:s,blocks:a})}doValidate(e){const t=this.date;return super.doValidate(e)&amp;&amp;(!this.isComplete||this.isDateExist(this.value)&amp;&amp;null!=t&amp;&amp;(null==this.min||this.min&lt;=t)&amp;&amp;(null==this.max||t&lt;=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)&gt;=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(O.extractPatternOptions(e))}}O.GET_DEFAULT_BLOCKS=()=&gt;({d:{mask:P,from:1,to:31,maxLength:2},m:{mask:P,from:1,to:12,maxLength:2},Y:{mask:P,from:1900,to:9999}}),O.DEFAULTS={...x.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=&gt;{if(!e)return"";return[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join(".")},parse:(e,t)=&gt;{const[n,s,r]=e.split(".").map(Number);return new Date(r,s-1,n)}},l.MaskedDate=O;class I extends w{constructor(e){super({...I.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&amp;&amp;(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map((e=&gt;{const{expose:t,...n}=h(e),s=p({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return t&amp;&amp;(this.exposeMask=s),s})):[])}_appendCharRaw(e,t){void 0===t&amp;&amp;(t={});const n=this._applyDispatch(e,t);return this.currentMask&amp;&amp;n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(e,t,n){void 0===e&amp;&amp;(e=""),void 0===t&amp;&amp;(t={}),void 0===n&amp;&amp;(n="");const s=t.tail&amp;&amp;null!=t._beforeTailState?t._beforeTailState._value:this.value,r=this.rawInputValue,i=t.tail&amp;&amp;null!=t._beforeTailState?t._beforeTailState._rawInputValue:r,a=r.slice(i.length),o=this.currentMask,u=new _,c=null==o?void 0:o.state;return this.currentMask=this.doDispatch(e,{...t},n),this.currentMask&amp;&amp;(this.currentMask!==o?(this.currentMask.reset(),i&amp;&amp;(this.currentMask.append(i,{raw:!0}),u.tailShift=this.currentMask.value.length-s.length),a&amp;&amp;(u.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)):c&amp;&amp;(this.currentMask.state=c)),u}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&amp;&amp;e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&amp;&amp;e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new _;return e&amp;&amp;t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return{...e,_beforeTailState:(null==(t=e._beforeTailState)?void 0:t.currentMaskRef)===this.currentMask&amp;&amp;(null==(n=e._beforeTailState)?void 0:n.currentMask)||e._beforeTailState}}doDispatch(e,t,n){return void 0===t&amp;&amp;(t={}),void 0===n&amp;&amp;(n=""),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&amp;&amp;(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){void 0===t&amp;&amp;(t={});let[n,s]=super.doPrepare(e,t);if(this.currentMask){let e;[n,e]=super.doPrepare(n,this.currentMaskFlags(t)),s=s.aggregate(e)}return[n,s]}doPrepareChar(e,t){void 0===t&amp;&amp;(t={});let[n,s]=super.doPrepareChar(e,t);if(this.currentMask){let e;[n,e]=super.doPrepareChar(n,this.currentMaskFlags(t)),s=s.aggregate(e)}return[n,s]}reset(){var e;null==(e=this.currentMask)||e.reset(),this.compiledMasks.forEach((e=&gt;e.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask)return this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,void this._applyDispatch();let t=String(e);this.currentMask&amp;&amp;(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return Boolean(null==(e=this.currentMask)?void 0:e.isComplete)}get isFilled(){var e;return Boolean(null==(e=this.currentMask)?void 0:e.isFilled)}remove(e,t){const n=new _;return this.currentMask&amp;&amp;n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((e=&gt;e.state)),currentMaskRef:this.currentMask,currentMask:null==(e=this.currentMask)?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:s,...r}=e;t&amp;&amp;this.compiledMasks.forEach(((e,n)=&gt;e.state=t[n])),null!=n&amp;&amp;(this.currentMask=n,this.currentMask.state=s),super.state=r}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&amp;&amp;this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every(((t,n)=&gt;{if(!e[n])return;const{mask:s,...r}=e[n];return u(t,r)&amp;&amp;t.maskEquals(s)})):super.maskEquals(e)}typedValueEquals(e){var t;return Boolean(null==(t=this.currentMask)?void 0:t.typedValueEquals(e))}}I.DEFAULTS={...w.DEFAULTS,dispatch:(e,t,n,s)=&gt;{if(!t.compiledMasks.length)return;const r=t.rawInputValue,a=t.compiledMasks.map(((a,o)=&gt;{const u=t.currentMask===a,c=u?a.displayValue.length:a.nearestInputPos(a.displayValue.length,i.FORCE_LEFT);return a.rawInputValue!==r?(a.reset(),a.append(r,{raw:!0})):u||a.remove(c),a.append(e,t.currentMaskFlags(n)),a.appendTail(s),{index:o,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(c,a.nearestInputPos(a.displayValue.length,i.FORCE_LEFT)))}}));return a.sort(((e,t)=&gt;t.weight-e.weight||t.totalInputPositions-e.totalInputPositions)),t.compiledMasks[a[0].index]}},l.MaskedDynamic=I;class L extends x{constructor(e){super({...L.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...n}=e;if(t){const e=t.map((e=&gt;e.length)),s=Math.min(...e),r=Math.max(...e)-s;n.mask="*".repeat(s),r&amp;&amp;(n.mask+="["+"*".repeat(r)+"]"),this.enum=t}super._update(n)}_appendCharRaw(e,t){void 0===t&amp;&amp;(t={});const n=Math.min(this.nearestInputPos(0,i.FORCE_RIGHT),this.value.length),s=this.enum.filter((t=&gt;this.matchValue(t,this.unmaskedValue+e,n)));if(s.length){1===s.length&amp;&amp;this._forEachBlocksInRange(0,this.value.length,((e,n)=&gt;{const r=s[0][n];n&gt;=this.value.length||r===e.value||(e.reset(),e._appendChar(r,t))}));const e=super._appendCharRaw(s[0][this.value.length],t);return 1===s.length&amp;&amp;s[0].slice(this.unmaskedValue.length).split("").forEach((t=&gt;e.aggregate(super._appendCharRaw(t)))),e}return new _({skip:!this.isComplete})}extractTail(e,t){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),new k("",e)}remove(e,t){if(void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),e===t)return new _;const n=Math.min(super.nearestInputPos(0,i.FORCE_RIGHT),this.value.length);let s;for(s=e;s&gt;=0;--s){if(this.enum.filter((e=&gt;this.matchValue(e,this.value.slice(n,s),n))).length&gt;1)break}const r=super.remove(s,t);return r.tailShift+=s-e,r}get isComplete(){return this.enum.indexOf(this.value)&gt;=0}}L.DEFAULTS={...x.DEFAULTS,matchValue:(e,t,n)=&gt;e.indexOf(t,n)===n},l.MaskedEnum=L;class D extends w{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}var M;l.MaskedFunction=D;class F extends w{constructor(e){super({...F.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"("+o(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(o).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(o(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){void 0===t&amp;&amp;(t={});const[n,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&amp;&amp;this.mapToRadix.length&amp;&amp;(t.input&amp;&amp;t.raw||!t.input&amp;&amp;!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&amp;&amp;!n&amp;&amp;(s.skip=!0),!n||this.allowPositive||this.value||"-"===n||s.aggregate(this._appendChar("-")),[n,s]}_separatorsCount(e,t){void 0===t&amp;&amp;(t=!1);let n=0;for(let s=0;s&lt;e;++s)this._value.indexOf(this.thousandsSeparator,s)===s&amp;&amp;(++n,t&amp;&amp;(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return void 0===e&amp;&amp;(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e,t){void 0===t&amp;&amp;(t={});const n=t.tail&amp;&amp;t._beforeTailState?t._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=e;const i=this.number;let a,o=!isNaN(i),u=!1;if(o){let e;null!=this.min&amp;&amp;this.min&lt;0&amp;&amp;this.number&lt;this.min&amp;&amp;(e=this.min),null!=this.max&amp;&amp;this.max&gt;0&amp;&amp;this.number&gt;this.max&amp;&amp;(e=this.max),null!=e&amp;&amp;(this.autofix?(this._value=this.format(e,this).replace(F.UNMASKED_RADIX,this.radix),u||(u=r===this._value&amp;&amp;!t.tail)):o=!1),o&amp;&amp;(o=Boolean(this._value.match(this._numberRegExp)))}o?a=new _({inserted:this._value.slice(r.length),rawInserted:u?"":e,skip:u}):(this._value=r,a=new _),this._value=this._insertThousandsSeparators(this._value);const c=t.tail&amp;&amp;t._beforeTailState?t._beforeTailState._value:this._value,l=this._separatorsCountFromSlice(c);return a.tailShift+=(l-s)*this.thousandsSeparator.length,a}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n&lt;=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n&gt;=0&amp;&amp;(e=n);const s=this._findSeparatorAround(t);return s&gt;=0&amp;&amp;(t=s+this.thousandsSeparator.length),[e,t]}remove(e,t){void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),s=this.value.slice(t),r=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+s));const i=this._separatorsCountFromSlice(n);return new _({tailShift:(i-r)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case i.NONE:case i.LEFT:case i.FORCE_LEFT:{const n=this._findSeparatorAround(e-1);if(n&gt;=0){const s=n+this.thousandsSeparator.length;if(e&lt;s||this.value.length&lt;=s||t===i.FORCE_LEFT)return n}break}case i.RIGHT:case i.FORCE_RIGHT:{const t=this._findSeparatorAround(e);if(t&gt;=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;null!=this.min&amp;&amp;(t=Math.max(t,this.min)),null!=this.max&amp;&amp;(t=Math.min(t,this.max)),t!==e&amp;&amp;(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&amp;&amp;(n=this._normalizeZeros(n)),this.padFractionalZeros&amp;&amp;this.scale&gt;0&amp;&amp;(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,((e,t,n,s)=&gt;t+s)),e.length&amp;&amp;!/\d$/.test(t[0])&amp;&amp;(t[0]=t[0]+"0"),t.length&gt;1&amp;&amp;(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length&lt;2&amp;&amp;t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,n){void 0===t&amp;&amp;(t={});const s=0===this.scale&amp;&amp;e!==this.thousandsSeparator&amp;&amp;(e===this.radix||e===F.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&amp;&amp;!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,F.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(F.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return null!=this.min&amp;&amp;this.min&lt;0||null!=this.max&amp;&amp;this.max&lt;0}get allowPositive(){return null!=this.min&amp;&amp;this.min&gt;0||null!=this.max&amp;&amp;this.max&gt;0}typedValueEquals(e){return(super.typedValueEquals(e)||F.EMPTY_VALUES.includes(e)&amp;&amp;F.EMPTY_VALUES.includes(this.typedValue))&amp;&amp;!(0===e&amp;&amp;""===this.value)}}M=F,F.UNMASKED_RADIX=".",F.EMPTY_VALUES=[...w.EMPTY_VALUES,0],F.DEFAULTS={...w.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[M.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=&gt;e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},l.MaskedNumber=F;const N={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function R(e,t,n){void 0===t&amp;&amp;(t=N.MASKED),void 0===n&amp;&amp;(n=N.MASKED);const s=p(e);return e=&gt;s.runIsolated((s=&gt;(s[t]=e,s[n])))}function B(e,t,n,s){return R(t,n,s)(e)}l.PIPE_TYPE=N,l.createPipe=R,l.pipe=B;class j extends x{get repeatFrom(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)?e:0}get repeatTo(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,n,s;const{repeat:r,...i}=h(e);this._blockOpts=Object.assign({},this._blockOpts,i);const a=p(this._blockOpts);this.repeat=null!=(t=null!=(n=null!=r?r:a.repeat)?n:this.repeat)?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&amp;&amp;(null==(s=this._blocks)?void 0:s.length)||0,this.repeatFrom)),blocks:{m:a},eager:a.eager,overwrite:a.overwrite,skipInvalid:a.skipInvalid,lazy:a.lazy,placeholderChar:a.placeholderChar,displayChar:a.displayChar})}_allocateBlock(e){return e&lt;this._blocks.length?this._blocks[e]:this.repeatTo===1/0||this._blocks.length&lt;this.repeatTo?(this._blocks.push(p(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]):void 0}_appendCharRaw(e,t){void 0===t&amp;&amp;(t={});const n=new _;for(let o,u,c=null!=(s=null==(r=this._mapPosToBlock(this.displayValue.length))?void 0:r.index)?s:Math.max(this._blocks.length-1,0);o=null!=(i=this._blocks[c])?i:u=!u&amp;&amp;this._allocateBlock(c);++c){var s,r,i,a;const l=o._appendChar(e,{...t,_beforeTailState:null==(a=t._beforeTailState)||null==(a=a._blocks)?void 0:a[c]});if(l.skip&amp;&amp;u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(l),l.consumed)break}return n}_trimEmptyTail(e,t){var n,s;void 0===e&amp;&amp;(e=0);const r=Math.max((null==(n=this._mapPosToBlock(e))?void 0:n.index)||0,this.repeatFrom,0);let i;null!=t&amp;&amp;(i=null==(s=this._mapPosToBlock(t))?void 0:s.index),null==i&amp;&amp;(i=this._blocks.length-1);let a=0;for(let e=i;r&lt;=e&amp;&amp;!this._blocks[e].unmaskedValue;--e,++a);a&amp;&amp;(this._blocks.splice(i-a+1,a),this.mask=this.mask.slice(a))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){void 0===e&amp;&amp;(e=0),void 0===t&amp;&amp;(t=this.displayValue.length);const n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return void 0===e&amp;&amp;(e=0),null==t&amp;&amp;this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}l.RepeatBlock=j;try{globalThis.IMask=l}catch{}t.ChangeDetails=_,t.ChunksTailDetails=E,t.DIRECTION=i,t.HTMLContenteditableMaskElement=v,t.HTMLInputMaskElement=f,t.HTMLMaskElement=g,t.InputMask=y,t.MaskElement=m,t.Masked=w,t.MaskedDate=O,t.MaskedDynamic=I,t.MaskedEnum=L,t.MaskedFunction=D,t.MaskedNumber=F,t.MaskedPattern=x,t.MaskedRange=P,t.MaskedRegExp=T,t.PIPE_TYPE=N,t.PatternFixedDefinition=A,t.PatternInputDefinition=C,t.RepeatBlock=j,t.createMask=p,t.createPipe=R,t.default=l,t.forceDirection=a,t.normalizeOpts=h,t.pipe=B},8251:(e,t,n)=&gt;{"use strict";n.r(t),n.d(t,{DefaultRoutingProvider:()=&gt;we,default:()=&gt;Ce,onSettle:()=&gt;ke});const s={attributeStringValueLimit:1024,attributeArrayLengthLimit:1e3,attributeCountLimit:128},r={attributeStringValueLimit:1/0,attributeArrayLengthLimit:1/0,attributeCountLimit:1/0},i=e=&gt;!0===e||!1===e,a=e=&gt;!!e&amp;&amp;"object"==typeof e&amp;&amp;!Array.isArray(e),o=e=&gt;"number"==typeof e&amp;&amp;Number.isFinite(e)&amp;&amp;!Number.isNaN(e),u=e=&gt;"string"==typeof e,c=e=&gt;u(e)&amp;&amp;e.length&gt;0,l=e=&gt;Array.isArray(e)&amp;&amp;e.every((e=&gt;c(e)||e instanceof RegExp));class d{get droppedAttributesCount(){return this._droppedAttributesCount}constructor(e,t,n,s){this._droppedAttributesCount=0,this.attributes=e,this.spanAttributeLimits=t,this.spanName=n,this.logger=s}validateAttribute(e,t){if("string"==typeof t&amp;&amp;t.length&gt;this.spanAttributeLimits.attributeStringValueLimit&amp;&amp;(this.attributes.set(e,function(e,t){const n=e.length,s=e.slice(0,t);return`${s} *** ${n-s.length} CHARS TRUNCATED`}(t,this.spanAttributeLimits.attributeStringValueLimit)),this.logger.warn(`Span attribute ${e} in span ${this.spanName} was truncated as the string exceeds the ${this.spanAttributeLimits.attributeStringValueLimit} character limit set by attributeStringValueLimit.`)),Array.isArray(t)&amp;&amp;t.length&gt;this.spanAttributeLimits.attributeArrayLengthLimit){const n=t.slice(0,this.spanAttributeLimits.attributeArrayLengthLimit);this.attributes.set(e,n),this.logger.warn(`Span attribute ${e} in span ${this.spanName} was truncated as the array exceeds the ${this.spanAttributeLimits.attributeArrayLengthLimit} element limit set by attributeArrayLengthLimit.`)}}set(e,t){"string"==typeof e&amp;&amp;("string"==typeof t||"boolean"==typeof t||o(t)||Array.isArray(t))&amp;&amp;this.attributes.set(e,t)}setCustom(e,t){if("string"==typeof e&amp;&amp;("string"==typeof t||"boolean"==typeof t||o(t)||Array.isArray(t))){if(!this.attributes.has(e)&amp;&amp;this.attributes.size&gt;=this.spanAttributeLimits.attributeCountLimit)return this._droppedAttributesCount++,void this.logger.warn(`Span attribute ${e} in span ${this.spanName} was dropped as the number of attributes exceeds the ${this.spanAttributeLimits.attributeCountLimit} attribute limit set by attributeCountLimit.`);if(e.length&gt;128)return this._droppedAttributesCount++,void this.logger.warn(`Span attribute ${e} in span ${this.spanName} was dropped as the key length exceeds the 128 character fixed limit.`);this.attributes.set(e,t)}}remove(e){this.attributes.delete(e)}toJson(){return Array.from(this.attributes).forEach((([e,t])=&gt;{this.validateAttribute(e,t)})),Array.from(this.attributes).map((([e,t])=&gt;function(e,t){switch(typeof t){case"number":if(Number.isNaN(t)||!Number.isFinite(t))return;return"bugsnag.sampling.p"!==e&amp;&amp;Number.isInteger(t)?{key:e,value:{intValue:`${t}`}}:{key:e,value:{doubleValue:t}};case"boolean":return{key:e,value:{boolValue:t}};case"string":return{key:e,value:{stringValue:t}};case"object":if(Array.isArray(t)){const n=t.map((e=&gt;function(e){switch(typeof e){case"number":if(Number.isNaN(e)||!Number.isFinite(e))return;return Number.isInteger(e)?{intValue:`${e}`}:{doubleValue:e};case"boolean":return{boolValue:e};case"string":return{stringValue:e}}}(e))).filter((e=&gt;void 0!==e));return{key:e,value:{arrayValue:n.length&gt;0?{values:n}:{}}}}return;default:return}}(e,t)))}}class h extends d{constructor(e,t,n,s,i,a){const o=new Map([["deployment.environment",e],["telemetry.sdk.name",s],["telemetry.sdk.version",i],["service.name",n]]);t.length&gt;0&amp;&amp;o.set("service.version",t),super(o,r,"resource-attributes",a)}}function p(e){return Math.round(1e6*e)}const m={appVersion:{defaultValue:"",message:"should be a string",validate:c},endpoint:{defaultValue:"https://otlp.bugsnag.com/v1/traces",message:"should be a string",validate:c},apiKey:{defaultValue:"",message:"should be a 32 character hexadecimal string",validate:e=&gt;u(e)&amp;&amp;/^[a-f0-9]{32}$/.test(e)},logger:{defaultValue:{debug(e){console.debug(e)},info(e){console.info(e)},warn(e){console.warn(e)},error(e){console.error(e)}},message:"should be a Logger object",validate:e=&gt;a(e)&amp;&amp;"function"==typeof e.debug&amp;&amp;"function"==typeof e.info&amp;&amp;"function"==typeof e.warn&amp;&amp;"function"==typeof e.error},releaseStage:{defaultValue:"production",message:"should be a string",validate:c},enabledReleaseStages:{defaultValue:null,message:"should be an array of strings",validate:e=&gt;null===e||(e=&gt;Array.isArray(e)&amp;&amp;e.every(c))(e)},plugins:{defaultValue:[],message:"should be an array of plugin objects",validate:function(e){return Array.isArray(e)&amp;&amp;e.every((e=&gt;function(e){return a(e)&amp;&amp;"function"==typeof e.configure}(e)))}},bugsnag:{defaultValue:void 0,message:"should be an instance of Bugsnag",validate:e=&gt;a(e)&amp;&amp;"function"==typeof e.addOnError},samplingProbability:{defaultValue:void 0,message:"should be a number between 0 and 1",validate:e=&gt;void 0===e||o(e)&amp;&amp;e&gt;=0&amp;&amp;e&lt;=1},onSpanEnd:{defaultValue:void 0,message:"should be an array of functions",validate:function(e){return Array.isArray(e)&amp;&amp;e.every((e=&gt;"function"==typeof e))}},attributeStringValueLimit:{defaultValue:1024,message:"should be a number between 1 and 10000",validate:e=&gt;o(e)&amp;&amp;e&gt;0&amp;&amp;e&lt;=1e4},attributeArrayLengthLimit:{defaultValue:1e3,message:"should be a number between 1 and 10000",validate:e=&gt;o(e)&amp;&amp;e&gt;0&amp;&amp;e&lt;=1e4},attributeCountLimit:{defaultValue:128,message:"should be a number between 1 and 1000",validate:e=&gt;o(e)&amp;&amp;e&gt;0&amp;&amp;e&lt;=1e3}};class g{constructor(){this.events=[]}add(e,t){this.events.push({name:e,time:t})}toJson(e){return this.events.map((({name:t,time:n})=&gt;({name:t,timeUnixNano:e.toUnixTimestampNanoseconds(n)})))}}function f(e){let t=0;for(let n=0;n&lt;e.length/8;n++){const s=8*n;t=(t^Number.parseInt(e.slice(s,s+8),16))&gt;&gt;&gt;0}return t}function v(e){return{get id(){return e.id},get traceId(){return e.traceId},get samplingRate(){return e.samplingRate},get name(){return e.name},isValid:()=&gt;!1,end:()=&gt;{},setAttribute:(t,n)=&gt;{e.attributes.setCustom(t,n)}}}class b{constructor(e,t,n,s,r,i,a){this.kind=3,this.events=new g,this.id=e,this.traceId=t,this.parentSpanId=a,this.name=n,this.startTime=s,this.attributes=r,this.samplingRate=f(this.traceId),this.clock=i}addEvent(e,t){this.events.add(e,t)}setAttribute(e,t){this.attributes.set(e,t)}setCustomAttribute(e,t){this.attributes.setCustom(e,t)}end(e,t){this.endTime=e;let n=t;return this.attributes.set("bugsnag.sampling.p",n.raw),{id:this.id,name:this.name,kind:this.kind,traceId:this.traceId,startTime:this.startTime,attributes:this.attributes,events:this.events,samplingRate:this.samplingRate,endTime:e,get samplingProbability(){return n},set samplingProbability(e){n=e,this.attributes.set("bugsnag.sampling.p",n.raw)},parentSpanId:this.parentSpanId}}isValid(){return void 0===this.endTime&amp;&amp;this.startTime&gt;this.clock.now()-36e5}}const y={startTime:{message:"should be a number or Date",getDefaultValue:()=&gt;{},validate:function(e){return o(e)||e instanceof Date}},parentContext:{message:"should be a SpanContext",getDefaultValue:()=&gt;{},validate:e=&gt;null===e||(e=&gt;a(e)&amp;&amp;"string"==typeof e.id&amp;&amp;"string"==typeof e.traceId&amp;&amp;"function"==typeof e.isValid)(e)},makeCurrentContext:{message:"should be true|false",getDefaultValue:()=&gt;{},validate:i},isFirstClass:{message:"should be true|false",getDefaultValue:()=&gt;{},validate:i}};class _{constructor(e,t,n,s,r,i){this.spans=[],this.timeout=null,this.flushQueue=Promise.resolve(),this.delivery=e,this.configuration=t,this.retryQueue=n,this.sampler=s,this.probabilityManager=r,this.encoder=i,this.flush=this.flush.bind(this)}stop(){null!==this.timeout&amp;&amp;(clearTimeout(this.timeout),this.timeout=null)}start(){this.stop(),this.timeout=setTimeout(this.flush,this.configuration.batchInactivityTimeoutMs)}add(e){this.configuration.enabledReleaseStages&amp;&amp;!this.configuration.enabledReleaseStages.includes(this.configuration.releaseStage)||(this.spans.push(e),this.spans.length&gt;=this.configuration.maximumBatchSize?this.flush():this.start())}async flush(){this.stop(),this.flushQueue=this.flushQueue.then((async()=&gt;{const e=await this.prepareBatch();if(!e)return;const t=await this.encoder.encode(e),n=Date.now();try{const e=await this.delivery.send(t);switch(void 0!==e.samplingProbability&amp;&amp;this.probabilityManager.setProbability(e.samplingProbability),e.state){case"success":this.retryQueue.flush();break;case"failure-discard":this.configuration.logger.warn("delivery failed");break;case"failure-retryable":this.configuration.logger.info("delivery failed, adding to retry queue"),this.retryQueue.add(t,n);break;default:e.state}}catch(e){this.configuration.logger.warn("delivery failed")}})),await this.flushQueue}async runCallbacks(e){if(this.configuration.onSpanEnd){const t=performance.now();let n=!0;for(const t of this.configuration.onSpanEnd)try{let s=t(e);if("function"==typeof s.then&amp;&amp;(s=await s),!1===s){n=!1;break}}catch(e){this.configuration.logger.error("Error in onSpanEnd callback: "+e)}if(n){const n=p(performance.now()-t);e.setAttribute("bugsnag.span.callbacks_duration",n)}return n}return!0}async prepareBatch(){if(0===this.spans.length)return;await this.probabilityManager.ensureFreshProbability();const e=[],t=this.sampler.spanProbability;for(const n of this.spans)if(n.samplingProbability.raw&gt;t.raw&amp;&amp;(n.samplingProbability=t),this.sampler.sample(n)){await this.runCallbacks(v(n))&amp;&amp;e.push(n)}return this.spans=[],0!==e.length?e:void 0}}class k{constructor(e,t,n){this.clock=e,this.configuration=t,this.resourceAttributeSource=n}async encode(e){const t=await this.resourceAttributeSource(this.configuration),n=Array(e.length);for(let t=0;t&lt;e.length;++t)n[t]=(s=e[t],r=this.clock,{name:s.name,kind:s.kind,spanId:s.id,traceId:s.traceId,parentSpanId:s.parentSpanId,...s.attributes.droppedAttributesCount&gt;0?{droppedAttributesCount:s.attributes.droppedAttributesCount}:{},startTimeUnixNano:r.toUnixTimestampNanoseconds(s.startTime),endTimeUnixNano:r.toUnixTimestampNanoseconds(s.endTime),attributes:s.attributes.toJson(),events:s.events.toJson(r)});var s,r;return{body:{resourceSpans:[{resource:{attributes:t.toJson()},scopeSpans:[{spans:n}]}]},headers:{"Bugsnag-Api-Key":this.configuration.apiKey,"Content-Type":"application/json",...void 0!==this.configuration.samplingProbability?{}:{"Bugsnag-Span-Sampling":this.generateSamplingHeader(e)}}}}generateSamplingHeader(e){if(0===e.length)return"1:0";const t=Object.create(null);for(const n of e){const e=t[n.samplingProbability.raw]||0;t[n.samplingProbability.raw]=e+1}const n=Object.keys(t),s=Array(n.length);for(let e=0;e&lt;n.length;++e){const r=n[e];s[e]=`${r}:${t[r]}`}return s.join(";")}}const w=new Set([402,407,408,429]);class E{static async create(e,t){return e.probability=t,new E(e,t)}constructor(e,t){this.sampler=e,this.samplingProbability=t}setProbability(e){return Promise.resolve()}ensureFreshProbability(){return Promise.resolve()}}class S{constructor(e,t){this.delivery=e,this.payload={body:{resourceSpans:[]},headers:{"Bugsnag-Api-Key":t,"Content-Type":"application/json","Bugsnag-Span-Sampling":"1.0:0"}}}async getNewProbability(){for(;;){const e=await this.delivery.send(this.payload);if(void 0!==e.samplingProbability)return e.samplingProbability;await this.timeBetweenRetries()}}timeBetweenRetries(){return new Promise((e=&gt;{setTimeout(e,3e4)}))}}const A=864e5;class C{static async create(e,t,n){const s=await e.load("bugsnag-sampling-probability");let r;return void 0===s?(t.probability=1,r=0):(s.time,Date.now(),t.probability=s.value,r=s.time),new C(e,t,n,r)}constructor(e,t,n,s){this.outstandingFreshnessCheck=void 0,this.persistence=e,this.sampler=t,this.probabilityFetcher=n,this.lastProbabilityTime=s,this.ensureFreshProbability()}setProbability(e){return this.lastProbabilityTime=Date.now(),this.sampler.probability=e,this.persistence.save("bugsnag-sampling-probability",{value:e,time:this.lastProbabilityTime})}ensureFreshProbability(){return this.outstandingFreshnessCheck?this.outstandingFreshnessCheck:Date.now()-this.lastProbabilityTime&gt;=A?(this.outstandingFreshnessCheck=this.probabilityFetcher.getNewProbability().then((e=&gt;{this.setProbability(e),this.outstandingFreshnessCheck=void 0})),this.outstandingFreshnessCheck):Promise.resolve()}}class T{constructor(){this.spans=[]}add(e){this.spans.push(e)}}function x(e){return Math.floor(4294967295*e)}class P{constructor(e){this._probability=e,this.scaledProbability=x(e)}get probability(){return this._probability}set probability(e){this._probability=e,this.scaledProbability=x(e)}get spanProbability(){return{raw:this._probability,scaled:this.scaledProbability}}sample(e){return e.samplingRate&lt;=e.samplingProbability.scaled}shouldSample(e){return e&lt;=this.spanProbability.scaled}}class O{constructor(e,t=[]){this.isInForeground=!0,this.onBackgroundStateChange=e=&gt;{this.isInForeground="in-foreground"===e,this.contextStack.length=0},this.contextStack=t,e.onStateChange(this.onBackgroundStateChange)}*[Symbol.iterator](){for(let e=this.contextStack.length-1;e&gt;=0;--e)yield this.contextStack[e]}push(e){e.isValid()&amp;&amp;this.isInForeground&amp;&amp;this.contextStack.push(e)}pop(e){var t,n;t=e,n=this.current,(t===n||void 0!==t&amp;&amp;void 0!==n&amp;&amp;t.id===n.id&amp;&amp;t.traceId===n.traceId)&amp;&amp;this.contextStack.pop(),this.removeClosedContexts()}get first(){return this.removeClosedContexts(),this.contextStack.length&gt;0?this.contextStack[0]:void 0}get current(){return this.removeClosedContexts(),this.contextStack.length&gt;0?this.contextStack[this.contextStack.length-1]:void 0}removeClosedContexts(){for(;this.contextStack.length&gt;0&amp;&amp;!1===this.contextStack[this.contextStack.length-1].isValid();)this.contextStack.pop()}}function I(e,t){return o(t)?t:t instanceof Date?e.convert(t):e.now()}class L{constructor(e,t,n,r,i,a,o,u){this.spanAttributeLimits=s,this.openSpans=new WeakSet,this.isInForeground=!0,this.onBackgroundStateChange=e=&gt;{this.isInForeground="in-foreground"===e,this.openSpans=new WeakSet},this.processor=e,this.sampler=t,this.idGenerator=n,this.spanAttributesSource=r,this.clock=i,this.logger=o,this.spanContextStorage=u,a.onStateChange(this.onBackgroundStateChange)}startSpan(e,t){const n=I(this.clock,t.startTime),s=this.idGenerator.generate(64),r=(i=t.parentContext,a(i)&amp;&amp;"string"==typeof i.id&amp;&amp;"string"==typeof i.traceId||null===t.parentContext?t.parentContext:this.spanContextStorage.current);var i;const o=r?r.id:void 0,u=r?r.traceId:this.idGenerator.generate(128),c=new d(new Map,this.spanAttributeLimits,e,this.logger);"boolean"==typeof t.isFirstClass&amp;&amp;c.set("bugsnag.span.first_class",t.isFirstClass);const l=new b(s,u,e,n,c,this.clock,o);return this.isInForeground&amp;&amp;(this.openSpans.add(l),!1!==t.makeCurrentContext&amp;&amp;this.spanContextStorage.push(l)),l}startNetworkSpan(e){const t=`[HTTP/${e.method.toUpperCase()}]`,n=this.validateSpanOptions(t,e),s=this.startSpan(n.name,{...n.options,makeCurrentContext:!1});return s.setAttribute("bugsnag.span.category","network"),s.setAttribute("http.method",e.method),s.setAttribute("http.url",e.url),s}configure(e,t){this.processor=e,this.logger=t.logger,this.spanAttributeLimits={attributeArrayLengthLimit:t.attributeArrayLengthLimit,attributeCountLimit:t.attributeCountLimit,attributeStringValueLimit:t.attributeStringValueLimit}}endSpan(e,t,n){this.spanContextStorage.pop(e);const s=!this.openSpans.delete(e),r=e.isValid();if(s&amp;&amp;!r&amp;&amp;this.logger.warn("Attempted to end a Span which is no longer valid."),s||!r||-1===t)return void e.end(t,this.sampler.spanProbability);for(const[t,s]of Object.entries(n||{}))e.setAttribute(t,s);this.spanAttributesSource.requestAttributes(e);const i=e.end(t,this.sampler.spanProbability);this.sampler.sample(i)&amp;&amp;this.processor.add(i)}toPublicApi(e){return{get id(){return e.id},get traceId(){return e.traceId},get samplingRate(){return e.samplingRate},get name(){return e.name},isValid:()=&gt;e.isValid(),setAttribute:(t,n)=&gt;{e.setCustomAttribute(t,n)},end:t=&gt;{const n=I(this.clock,t);this.endSpan(e,n)}}}validateSpanOptions(e,t,n=y){let s="";const r={};if("string"!=typeof e&amp;&amp;(s+="\n  - name should be a string, got "+typeof e,e=String(e)),void 0===t||a(t)){const e=t||{};for(const t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&amp;&amp;void 0!==e[t]?n[t].validate(e[t])?r[t]=e[t]:(s+=`\n  - ${t} ${n[t].message}, got ${typeof e[t]}`,r[t]=n[t].getDefaultValue(e[t])):r[t]=n[t].getDefaultValue(e[t])}else s+="\n  - options is not an object";return s.length&gt;0&amp;&amp;this.logger.warn(`Invalid span options${s}`),{name:e,options:r}}}var D=n(7826);const{isCuid:M}=D;class F{constructor(){this.persistedItems=new Map}async load(e){return this.persistedItems.get(e)}async save(e,t){this.persistedItems.set(e,t)}}function N(e,t){switch(e){case"bugsnag-sampling-probability":{const e=JSON.parse(t);return a(n=e)&amp;&amp;o(n.value)&amp;&amp;o(n.time)?e:void 0}case"bugsnag-anonymous-id":return M(t)?t:void 0}var n}class R{constructor(e,t){this.delivery=e,this.retryQueueMaxSize=t,this.requestQueue=Promise.resolve(),this.payloads=[]}add(e,t){this.payloads.push({payload:e,time:t});let n=this.payloads.reduce(((e,{payload:t})=&gt;e+B(t)),0);for(;n&gt;this.retryQueueMaxSize;){const e=this.payloads.shift();if(!e)break;n-=B(e.payload)}}async flush(){if(0===this.payloads.length)return;const e=this.payloads;this.payloads=[],this.requestQueue=this.requestQueue.then((async()=&gt;{for(const{payload:t,time:n}of e)if(!(Date.now()&gt;=n+864e5))try{const{state:e}=await this.delivery.send(t);switch(e){case"success":case"failure-discard":break;case"failure-retryable":this.add(t,n)}}catch(e){}})),await this.requestQueue}}function B(e){let t=0;for(let n=0;n&lt;e.body.resourceSpans.length;++n){const s=e.body.resourceSpans[n].scopeSpans;for(let e=0;e&lt;s.length;++e)t+=s[e].spans.length}return t}function j(e){const t=e.get("Bugsnag-Sampling-Probability");if("string"!=typeof t)return;const n=Number.parseFloat(t);return Number.isNaN(n)||n&lt;0||n&gt;1?void 0:n}class V{constructor(){this.callbacks=[]}onStart(e){this.callbacks.push(e)}start(e){const t=[];for(const n of this.callbacks){const s=n(e);s&amp;&amp;t.push(s)}return{onRequestEnd:e=&gt;{for(const n of t)n&amp;&amp;n.onRequestEnd&amp;&amp;n.onRequestEnd(e)},extraRequestHeaders:t.map((e=&gt;{if(e&amp;&amp;e.extraRequestHeaders)return e.extraRequestHeaders})).filter(q)}}}function q(e){return void 0!==e}function $(e,t){if(0===e.indexOf("https://")||0===e.indexOf("http://"))return e;try{const n=new URL(e,t).href;return!e.endsWith("/")&amp;&amp;n.endsWith("/")?n.slice(0,-1):n}catch(t){return e}}function U(e){return!(!e||"object"!=typeof e||e instanceof URL)}const H={referrer:!0,title:!0,url:!0};function z(e){return{...H,...e}}function G(e){const t=["undefined","boolean"],n=Object.keys(H);return a(e)&amp;&amp;n.every((n=&gt;t.includes(typeof e[n])))}const K=e=&gt;e.pathname||"/",W=()=&gt;class{constructor(e=K){this.resolveRoute=e}listenForRouteChanges(e){}},X=(e,t)=&gt;class{constructor(e=K){this.resolveRoute=e}listenForRouteChanges(n){addEventListener("popstate",(s=&gt;{const r=new URL(t.href),i=n(r,"popstate");e((e=&gt;{i.end(e)}))}));const s=history.pushState;history.pushState=function(...t){const r=t[2];if(r){const t=new URL($(r.toString(),document.baseURI)),s=n(t,"pushState");e((e=&gt;{s.end(e)}))}s.apply(this,t)}}};class Y{constructor(e,t,n,s,r,i,a){this.wasBackgrounded=!1,this.document=e,this.location=t,this.spanFactory=n,this.webVitals=s,this.onSettle=r,this.performance=a,i.onStateChange((e=&gt;{this.wasBackgrounded||"in-background"!==e||(this.wasBackgrounded=!0)}))}configure(e){if(!e.autoInstrumentFullPageLoads||this.wasBackgrounded)return;let t=null;const n=document.querySelector('meta[name="traceparent"]');if(null!==n&amp;&amp;n.getAttribute("content")){const e=n.getAttribute("content"),[,s,r]=e.split("-");t={traceId:s,id:r}}const s=this.spanFactory.startSpan("[FullPageLoad]",{startTime:0,parentContext:t}),r=z(e.sendPageAttributes),i=new URL(this.location.href);this.onSettle((t=&gt;{if(this.wasBackgrounded)return;const n=e.routingProvider.resolveRoute(i)||K(i);s.name+=n,((e,t,n,s)=&gt;{function r(t,r,i){if(function(e,t){return void 0===e||void 0===t||0===e&amp;&amp;0===t}(r,i))return;const a=e.startSpan(`[PageLoadPhase/${t}]${n}`,{startTime:r,parentContext:s,makeCurrentContext:!1});a.setAttribute("bugsnag.span.category","page_load_phase"),a.setAttribute("bugsnag.phase",t),e.endSpan(a,i)}const i=t.getEntriesByType("navigation"),a=Array.isArray(i)&amp;&amp;i[0];if(a){r("Unload",a.unloadEventStart,a.unloadEventEnd),r("Redirect",a.redirectStart,a.redirectEnd),r("LoadFromCache",a.fetchStart,a.domainLookupStart),r("DNSLookup",a.domainLookupStart,a.domainLookupEnd);const e=a.secureConnectionStart||a.connectEnd;r("TCPHandshake",a.connectStart,e),r("TLS",a.secureConnectionStart,a.connectEnd),r("HTTPRequest",a.requestStart,a.responseStart),r("HTTPResponse",a.responseStart,a.responseEnd),r("DomContentLoadedEvent",a.domContentLoadedEventStart,a.domContentLoadedEventEnd),r("LoadEvent",a.loadEventStart,a.loadEventEnd)}})(this.spanFactory,this.performance,n,s),s.setAttribute("bugsnag.span.category","full_page_load"),s.setAttribute("bugsnag.browser.page.route",n),r.referrer&amp;&amp;s.setAttribute("bugsnag.browser.page.referrer",this.document.referrer),r.title&amp;&amp;s.setAttribute("bugsnag.browser.page.title",this.document.title),r.url&amp;&amp;s.setAttribute("bugsnag.browser.page.url",i.toString()),this.webVitals.attachTo(s),this.spanFactory.endSpan(s,t)}))}}function J(e){return e}function Q(e){return"function"==typeof e}const Z=["http://","https://","/","./","../"];class ee{constructor(e,t,n,s){this.spanFactory=e,this.spanContextStorage=t,this.fetchTracker=n,this.xhrTracker=s,this.configEndpoint="",this.networkRequestCallback=J,this.logger={debug:console.debug,warn:console.warn,info:console.info,error:console.error},this.trackRequest=e=&gt;{if(!this.shouldTrackRequest(e))return;const t=!1,n={url:e.url,type:e.type,propagateTraceContext:t},s=this.networkRequestCallback(n);if(!s)return{onRequestEnd:void 0,extraRequestHeaders:void 0};if(void 0===s.propagateTraceContext&amp;&amp;(s.propagateTraceContext=t),!s.url)return{onRequestEnd:void 0,extraRequestHeaders:s.propagateTraceContext?this.getExtraRequestHeaders():void 0};if("string"!=typeof s.url)return void this.logger.warn("expected url to be a string following network request callback, got "+typeof s.url);const r=this.spanFactory.startNetworkSpan({method:e.method,startTime:e.startTime,url:s.url});return{onRequestEnd:e=&gt;{"success"===e.state&amp;&amp;this.spanFactory.endSpan(r,e.endTime,{"http.status_code":e.status})},extraRequestHeaders:s.propagateTraceContext?this.getExtraRequestHeaders(r):void 0}}}configure(e){this.logger=e.logger,e.autoInstrumentNetworkRequests&amp;&amp;(this.configEndpoint=e.endpoint,this.xhrTracker.onStart(this.trackRequest),this.fetchTracker.onStart(this.trackRequest),this.networkRequestCallback=e.networkRequestCallback)}shouldTrackRequest(e){return e.url!==this.configEndpoint&amp;&amp;Z.some((t=&gt;e.url.startsWith(t)))}getExtraRequestHeaders(e){const t={};if(e){const n=e.traceId,s=e.id,r=this.spanFactory.sampler.shouldSample(e.samplingRate);t.traceparent=te(n,s,r),t.tracestate=ne(n)}else if(this.spanContextStorage.current){const e=this.spanContextStorage.current,n=e.traceId,s=e.id,r=this.spanFactory.sampler.shouldSample(e.samplingRate);t.traceparent=te(n,s,r),t.tracestate=ne(n)}return t}}function te(e,t,n){return`00-${e}-${t}-${n?"01":"00"}`}function ne(e){return`sb=v:1;r32:${f(e)}`}function se(e){switch(e){case"":return;case"http/1.0":return"1.0";case"http/1.1":return"1.1";case"h2":case"h2c":return"2.0";case"h3":return"3.0";case"spdy/1":case"spdy/2":case"spdy/3":return"SPDY";default:return e}}class re{constructor(e,t,n){this.spanFactory=e,this.spanContextStorage=t,this.PerformanceObserverClass=n}configure(e){if(!((t=this.PerformanceObserverClass)&amp;&amp;Array.isArray(t.supportedEntryTypes)&amp;&amp;t.supportedEntryTypes.includes("resource")))return;var t;const n=new this.PerformanceObserverClass((t=&gt;{const n=t.getEntries();for(const t of n){if("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)continue;const n=this.spanContextStorage.first;if(n){const s=e.networkRequestCallback({url:t.name,type:t.initiatorType});if(!s)return;if("string"!=typeof s.url)return void e.logger.warn("expected url to be a string following network request callback, got "+typeof s.url);let r="";try{const e=new URL(s.url);e.search="",r=e.href}catch(t){return void e.logger.warn(`Unable to parse URL returned from networkRequestCallback: ${s.url}`)}const i=this.spanFactory.startSpan(`[ResourceLoad]${r}`,{parentContext:n,startTime:t.startTime,makeCurrentContext:!1});i.setAttribute("bugsnag.span.category","resource_load"),i.setAttribute("http.url",s.url);const a=se(t.nextHopProtocol);a&amp;&amp;i.setAttribute("http.flavor",a),t.encodedBodySize&amp;&amp;t.decodedBodySize&amp;&amp;(i.setAttribute("http.response_content_length",t.encodedBodySize),i.setAttribute("http.response_content_length_uncompressed",t.decodedBodySize)),t.responseStatus&amp;&amp;i.setAttribute("http.status_code",t.responseStatus),this.spanFactory.endSpan(i,t.responseEnd)}}}));try{n.observe({type:"resource",buffered:!0})}catch(t){e.logger.warn("Unable to get previous resource loads as buffered observer not supported, only showing resource loads from this point on"),n.observe({entryTypes:["resource"]})}}}const{startTime:ie,parentContext:ae,makeCurrentContext:oe}=y,ue={startTime:ie,parentContext:ae,makeCurrentContext:oe,trigger:{getDefaultValue:e=&gt;String(e),message:"should be a string",validate:u}};class ce{constructor(e,t,n){this.spanFactory=e,this.location=t,this.document=n}configure(e){if(!e.autoInstrumentRouteChanges)return;const t=new URL(this.location.href);let n=e.routingProvider.resolveRoute(t)||K(t);const s=z(e.sendPageAttributes);e.routingProvider.listenForRouteChanges(((t,r,i)=&gt;{let o;if(t instanceof URL)o=t;else try{const e=String(t);o=new URL(e)}catch(t){return e.logger.warn("Invalid span options\n  - url should be a URL"),{id:"",name:"",traceId:"",samplingRate:0,isValid:()=&gt;!1,setAttribute:()=&gt;{},end:()=&gt;{}}}const u={...i,trigger:r},c=this.spanFactory.validateSpanOptions("[RouteChange]",u,ue),l=e.routingProvider.resolveRoute(o)||K(o);c.name+=l;const d=this.spanFactory.startSpan(c.name,c.options);return d.setAttribute("bugsnag.span.category","route_change"),d.setAttribute("bugsnag.browser.page.route",l),d.setAttribute("bugsnag.browser.page.previous_route",n),d.setAttribute("bugsnag.browser.page.route_change.trigger",c.options.trigger),s.url&amp;&amp;d.setAttribute("bugsnag.browser.page.url",t.toString()),n=l,{get id(){return d.id},get traceId(){return d.traceId},get samplingRate(){return d.samplingRate},get name(){return d.name},isValid:d.isValid,setAttribute:d.setAttribute,end:t=&gt;{const r=a(t)?t:{endTime:t};if(s.title&amp;&amp;d.setAttribute("bugsnag.browser.page.title",this.document.title),r.url){const t=function(e){if("string"==typeof e)return new URL(e);return e}(r.url),i=e.routingProvider.resolveRoute(t)||K(t);d.name=`[RouteChange]${i}`,d.setAttribute("bugsnag.browser.page.route",i),n=i,s.url&amp;&amp;d.setAttribute("bugsnag.browser.page.url",t.toString())}this.spanFactory.toPublicApi(d).end(r.endTime)}}}))}}function le(e,t){return Math.abs(Date.now()-(e+t.now()))&gt;3e5?Date.now()-t.now():e}const de=e=&gt;a(e)&amp;&amp;"function"==typeof e.resolveRoute&amp;&amp;"function"==typeof e.listenForRouteChanges;function he(e){const t=e.toString(16);return 1===t.length?"0"+t:t}const pe={generate(e){const t=new Uint8Array(e/8),n=window.crypto.getRandomValues(t);return Array.from(n,he).join("")}};class me{constructor(e){this.settled=!1,this.callbacks=new Set,this.clock=e}subscribe(e){this.callbacks.add(e),this.isSettled()&amp;&amp;e(this.clock.now())}unsubscribe(e){this.callbacks.delete(e)}isSettled(){return this.settled}settle(e){this.settled=!0;for(const t of this.callbacks)t(e)}}class ge extends me{constructor(e,t){super(e),this.timeout=void 0;new MutationObserver((()=&gt;{this.restart()})).observe(t,{subtree:!0,childList:!0,characterData:!0}),this.restart()}restart(){clearTimeout(this.timeout),this.settled=!1;const e=this.clock.now();this.timeout=setTimeout((()=&gt;{this.settle(e)}),100)}}class fe extends me{constructor(e,t,n,s){super(e),"complete"===s.readyState?setTimeout((()=&gt;{this.settleUsingPerformance(n)}),0):t("load",(()=&gt;{setTimeout((()=&gt;{this.settleUsingPerformance(n)}),0)}))}settleUsingPerformance(e){const t=this.clock.now(),n="function"==typeof e.getEntriesByType?e.getEntriesByType("navigation")[0]:void 0;let s=0;!function(e){return!!e&amp;&amp;"navigation"===e.entryType}(n)?e.timing&amp;&amp;(s=e.timing.loadEventEnd-e.timing.navigationStart):s=n.loadEventEnd,(s&lt;=0||s&gt;t)&amp;&amp;(s=t),this.settle(s)}}class ve extends me{constructor(e,t){super(e),this.timeout=void 0,this.urlsToIgnore=[],this.outstandingRequests=0,this.settled=!0,t.onStart(this.onRequestStart.bind(this))}setUrlsToIgnore(e){this.urlsToIgnore=e}onRequestStart(e){if(!this.shouldIgnoreUrl(e.url))return clearTimeout(this.timeout),this.settled=!1,++this.outstandingRequests,{onRequestEnd:e=&gt;{if(0==--this.outstandingRequests){const e=this.clock.now();this.timeout=setTimeout((()=&gt;{this.settle(e)}),100)}}}}shouldIgnoreUrl(e){return this.urlsToIgnore.some((t=&gt;t.test(e)))}}class be extends me{constructor(e,t){super(e),this.settlers=t;for(const e of t)e.subscribe((e=&gt;{this.settlersAreSettled()?this.settle(e):this.settled=!1}))}isSettled(){return super.isSettled()&amp;&amp;this.settlersAreSettled()}settlersAreSettled(){for(const e of this.settlers)if(!e.isSettled())return!1;return!0}}class ye{constructor(e){this.storage=e}async load(e){try{const t=this.storage.getItem(e);if(t)return N(e,t)}catch(e){}}async save(e,t){try{this.storage.setItem(e,function(e,t){switch(e){case"bugsnag-sampling-probability":return JSON.stringify(t);case"bugsnag-anonymous-id":return t;default:return e}}(e,t))}catch(e){}}}class _e{constructor(e,t,n){if(this.performance=e,this.clock=t,this.observers=[],n&amp;&amp;Array.isArray(n.supportedEntryTypes)){const e=n.supportedEntryTypes;e.includes("largest-contentful-paint")&amp;&amp;this.observeLargestContentfulPaint(n),e.includes("layout-shift")&amp;&amp;this.observeLayoutShift(n)}}attachTo(e){const t=this.firstContentfulPaint();t&amp;&amp;e.addEvent("fcp",t);const n=this.timeToFirstByte();n&amp;&amp;e.addEvent("ttfb",n);const s=this.firstInputDelay();s&amp;&amp;(e.addEvent("fid_start",s.start),e.addEvent("fid_end",s.end)),this.cumulativeLayoutShift&amp;&amp;e.setAttribute("bugsnag.metrics.cls",this.cumulativeLayoutShift),this.largestContentfulPaint&amp;&amp;e.addEvent("lcp",this.largestContentfulPaint);for(const e of this.observers)e.disconnect()}firstContentfulPaint(){const e=this.performance.getEntriesByName("first-contentful-paint","paint"),t=Array.isArray(e)&amp;&amp;e[0];if(t)return t.startTime}timeToFirstByte(){const e=this.performance.getEntriesByType("navigation"),t=Array.isArray(e)&amp;&amp;e[0];let n;if(n=t?t.responseStart:this.performance.timing.responseStart-this.performance.timing.navigationStart,n&gt;0&amp;&amp;n&lt;=this.clock.now())return n}firstInputDelay(){const e=this.performance.getEntriesByType("first-input"),t=Array.isArray(e)&amp;&amp;e[0];if(t)return{start:t.startTime,end:t.processingStart}}observeLargestContentfulPaint(e){const t=new e((e=&gt;{const t=e.getEntries();t.length&gt;0&amp;&amp;(this.largestContentfulPaint=t[t.length-1].startTime)}));t.observe({type:"largest-contentful-paint",buffered:!0}),this.observers.push(t)}observeLayoutShift(e){let t;const n=new e((e=&gt;{for(const n of e.getEntries())n.hadRecentInput||(t&amp;&amp;n.startTime-t.previousStartTime&lt;1e3&amp;&amp;n.startTime-t.firstStartTime&lt;5e3?(t.value+=n.value,t.previousStartTime=n.startTime):t={value:n.value,firstStartTime:n.startTime,previousStartTime:n.startTime});t&amp;&amp;(void 0===this.cumulativeLayoutShift||t.value&gt;this.cumulativeLayoutShift)&amp;&amp;(this.cumulativeLayoutShift=t.value)}));n.observe({type:"layout-shift",buffered:!0}),this.observers.push(n)}}let ke,we,Ee;if("undefined"==typeof window||"undefined"==typeof document)ke=function(){const e=()=&gt;{};return e.configure=()=&gt;{},e}(),we=W(),Ee=function(){const e=()=&gt;{};return{start:e,startSpan:()=&gt;({id:"",traceId:"",end:e,isValid:()=&gt;!1}),currentSpanContext:void 0}}();else{const e=function(e){const t=[];let n="hidden"===e.document.visibilityState?"in-background":"in-foreground";const s={onStateChange(e){t.push(e),"in-background"===n&amp;&amp;e(n)}},r=e=&gt;{if(n!==e){n=e;for(const e of t)e(n)}};return e.document.addEventListener("visibilitychange",(function(){const t="hidden"===e.document.visibilityState?"in-background":"in-foreground";r(t)})),e.addEventListener("pagehide",(function(){r("in-background")})),e.addEventListener("pageshow",(function(){r("in-foreground")})),s}(window),t=(e=&gt;{const t={url:{name:"bugsnag.browser.page.url",getValue:()=&gt;e.location.href,permitted:!1},title:{name:"bugsnag.browser.page.title",getValue:()=&gt;e.title,permitted:!1}};return{configure(e){t.title.permitted=e.sendPageAttributes.title||!1,t.url.permitted=e.sendPageAttributes.url||!1},requestAttributes(e){for(const n of Object.values(t))n.permitted&amp;&amp;e.setAttribute(n.name,n.getValue())}}})(document),n=function(e,t){let n=le(void 0===e.timeOrigin?e.timing.navigationStart:e.timeOrigin,e);return t.onStateChange((t=&gt;{"in-foreground"===t&amp;&amp;(n=le(n,e))})),{now:()=&gt;e.now(),date:()=&gt;new Date(n+e.now()),convert:e=&gt;e.getTime()-n,toUnixTimestampNanoseconds:e=&gt;p(n+e).toString()}}(performance,e),s=function(e){try{if(e.localStorage)return new ye(e.localStorage)}catch(e){}return new F}(window),r=function(e,t){let n,s;return function(r){const i=new h(r.releaseStage,r.appVersion,r.serviceName,"bugsnag.performance.browser","2.10.0",r.logger);if(i.set("browser.user_agent",e.userAgent),e.userAgentData&amp;&amp;(i.set("browser.platform",e.userAgentData.platform),i.set("browser.mobile",e.userAgentData.mobile)),r.generateAnonymousId){if(n||(n=t.load("bugsnag-anonymous-id").then((e=&gt;{const n=e||D();return e||t.save("bugsnag-anonymous-id",n),s=n,s}))),!s)return n.then((e=&gt;(i.set("device.id",e),i)));i.set("device.id",s)}return Promise.resolve(i)}}(navigator,s),o=function(e,t){const n=new V,s=e.fetch;return e.fetch=function(r,i){const a=function(e,t,n,s){const r=U(t),i=r?t.url:String(t),a=!!n&amp;&amp;n.method||r&amp;&amp;t.method||"GET";return{url:$(i,s),method:a,startTime:e,type:"fetch"}}(t.now(),r,i,e.document&amp;&amp;e.document.baseURI),{onRequestEnd:o,extraRequestHeaders:u}=n.start(a),c=function(e,t,n){if(!n)return[e,t];const s=n.reduce(((e,t)=&gt;({...e,...t})),{});return!U(e)||t&amp;&amp;t.headers?t=function(e,t){if(t||(t={}),function(e){return!!e&amp;&amp;"object"==typeof e&amp;&amp;e instanceof Headers}(t.headers)){for(const[n,s]of Object.entries(e))t.headers.has(n)||t.headers.set(n,s);return t}return{...t,headers:{...e,...t.headers}}}(s,t):function(e,t){for(const[n,s]of Object.entries(e))t.headers.has(n)||t.headers.set(n,s)}(s,e),[e,t]}(r,i,u);return s.call(this,c[0],c[1]).then((e=&gt;(o({status:e.status,endTime:t.now(),state:"success"}),e))).catch((e=&gt;{throw o({error:e,endTime:t.now(),state:"error"}),e}))},n}(window,n),d=function(e,t,n){const s=new V,r=new WeakMap,i=new WeakMap,a=e.prototype.open;e.prototype.open=function(e,t,...s){r.set(this,{method:e,url:$(String(t),n&amp;&amp;n.baseURI)}),a.call(this,e,t,...s)};const o=e.prototype.send;return e.prototype.send=function(n){const a=r.get(this);if(a){const n=i.get(this);n&amp;&amp;this.removeEventListener("readystatechange",n);const{onRequestEnd:r,extraRequestHeaders:o}=s.start({type:"xmlhttprequest",method:a.method,url:a.url,startTime:t.now()});if(o)for(const e of o)for(const[t,n]of Object.entries(e))this.setRequestHeader(t,n);const u=n=&gt;{if(this.readyState===e.DONE&amp;&amp;r){const e=this.status&gt;0?{endTime:t.now(),status:this.status,state:"success"}:{endTime:t.now(),state:"error"};r(e)}};this.addEventListener("readystatechange",u),i.set(this,u)}o.call(this,n)},s}(XMLHttpRequest,n,document),g=new _e(performance,n,window.PerformanceObserver);ke=function(e,t,n,s,r){const i=new ge(e,t.document),a=new ve(e,n),o=new ve(e,s),u=new fe(e,t.addEventListener,r,t.document),c=new be(e,[i,u,a,o]);function l(t){const n=e=&gt;{clearTimeout(s),c.unsubscribe(n),t(e)},s=setTimeout((()=&gt;{const s=e.now();c.unsubscribe(n),t(s)}),6e4),r=c.isSettled()?100:0,i=e.now();setTimeout((()=&gt;{c.isSettled()?n(i):c.subscribe(n)}),r)}return l.configure=function(e){const t=e.settleIgnoreUrls.map((e=&gt;"string"==typeof e?RegExp(e):e)).concat(RegExp(e.endpoint));a.setUrlsToIgnore(t),o.setUrlsToIgnore(t)},l}(n,window,o,d,performance),we=X(ke,window.location),Ee=function(e){const t=new T;let n=t;const s=e.spanContextStorage||new O(e.backgroundingListener);let r=e.schema.logger.defaultValue;const i=new P(1),o=new L(n,i,e.idGenerator,e.spanAttributesSource,e.clock,e.backgroundingListener,r,s),c=e.plugins(o,s);return{start:l=&gt;{const d=function(e,t){if("string"==typeof e&amp;&amp;(e={apiKey:e}),!a(e)||!u(e.apiKey)||0===e.apiKey.length)throw new Error("No Bugsnag API Key set");let n="";const s={};for(const r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?t[r].validate(e[r])?s[r]=e[r]:(n+=`\n  - ${r} ${t[r].message}, got ${typeof e[r]}`,s[r]=t[r].defaultValue):s[r]=t[r].defaultValue;return s.apiKey=e.apiKey,s.maximumBatchSize=e.maximumBatchSize||100,s.batchInactivityTimeoutMs=e.batchInactivityTimeoutMs||3e4,n.length&gt;0&amp;&amp;s.logger.warn(`Invalid configuration${n}`),s}(l,e.schema);if(d.endpoint===m.endpoint.defaultValue&amp;&amp;(d.endpoint=d.endpoint.replace("https://",`https://${d.apiKey}.`)),d.bugsnag&amp;&amp;"function"==typeof d.bugsnag.Event.prototype.setTraceCorrelation&amp;&amp;d.bugsnag.Client){const e=d.bugsnag.Client.prototype._notify;d.bugsnag.Client.prototype._notify=function(...t){const n=s.current;n&amp;&amp;"function"==typeof t[0].setTraceCorrelation&amp;&amp;t[0].setTraceCorrelation(n.traceId,n.id),e.apply(this,t)}}const h=e.deliveryFactory(d.endpoint);e.spanAttributesSource.configure(d),(void 0===d.samplingProbability?C.create(e.persistence,i,new S(h,d.apiKey)):E.create(i,d.samplingProbability)).then((s=&gt;{n=new _(h,d,e.retryQueueFactory(h,d.retryQueueMaxSize),i,s,new k(e.clock,d,e.resourceAttributesSource));for(const e of t.spans)n.add(e);e.backgroundingListener.onStateChange((e=&gt;{n.flush(),"in-foreground"===e&amp;&amp;s.ensureFreshProbability()})),r=d.logger,o.configure(n,d)}));for(const e of d.plugins)c.push(e);for(const e of c)e.configure(d,o)},startSpan:(e,t)=&gt;{const n=o.validateSpanOptions(e,t),s=o.startSpan(n.name,n.options);return s.setAttribute("bugsnag.span.category","custom"),o.toPublicApi(s)},startNetworkSpan:t=&gt;{const n=o.startNetworkSpan(t);return{...o.toPublicApi(n),end:t=&gt;{o.endSpan(n,I(e.clock,t.endTime),{"http.status_code":t.status})}}},getPlugin:e=&gt;{for(const t of c)if(t instanceof e)return t},get currentSpanContext(){return s.current},...e.platformExtensions&amp;&amp;e.platformExtensions(o,s)}}({backgroundingListener:e,clock:n,resourceAttributesSource:r,spanAttributesSource:t,deliveryFactory:function(e,t,n){let s=!1;return n&amp;&amp;n.onStateChange((e=&gt;{s="in-background"===e})),function(n){return{async send(r){const i=JSON.stringify(r.body);r.headers["Bugsnag-Sent-At"]=t.date().toISOString();try{const t=await e(n,{method:"POST",keepalive:s,body:i,headers:r.headers});return{state:(a=t.status,a&gt;=200&amp;&amp;a&lt;300?"success":a&gt;=400&amp;&amp;a&lt;500&amp;&amp;!w.has(a)?"failure-discard":"failure-retryable"),samplingProbability:j(t.headers)}}catch(e){return i.length&gt;1e6?{state:"failure-discard"}:{state:"failure-retryable"}}var a}}}}(window.fetch,n,e),idGenerator:pe,schema:(Se=window.location.hostname,Ae=new we,{...m,releaseStage:{...m.releaseStage,defaultValue:"localhost"===Se?"development":"production"},autoInstrumentFullPageLoads:{defaultValue:!0,message:"should be true|false",validate:i},autoInstrumentNetworkRequests:{defaultValue:!0,message:"should be true|false",validate:i},autoInstrumentRouteChanges:{defaultValue:!0,message:"should be true|false",validate:i},generateAnonymousId:{defaultValue:!0,message:"should be true|false",validate:i},routingProvider:{defaultValue:Ae,message:"should be a routing provider",validate:de},settleIgnoreUrls:{defaultValue:[],message:"should be an array of string|RegExp",validate:l},networkRequestCallback:{defaultValue:J,message:"should be a function",validate:Q},sendPageAttributes:{defaultValue:H,message:"should be an object",validate:G},serviceName:{defaultValue:"unknown_service",message:"should be a string",validate:c}}),plugins:(t,n)=&gt;[ke,new Y(document,window.location,t,g,ke,e,performance),new re(t,n,window.PerformanceObserver),new ee(t,n,o,d),new ce(t,window.location,document)],persistence:s,retryQueueFactory:(e,t)=&gt;new R(e,t)})}var Se,Ae;const Ce=Ee},7784:e=&gt;{"use strict";e.exports=JSON.parse('{"serviceName":"shareablepaymentsui","dockerImageName":"shareablepaymentsui","serviceVersion":"1.12.2"}')}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=&gt;{for(var s in t)n.o(t,s)&amp;&amp;!n.o(e,s)&amp;&amp;Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=&gt;Object.prototype.hasOwnProperty.call(e,t),n.r=e=&gt;{"undefined"!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};n(4397)})();</pre></body></html>