diff --git a/_js/cwr.js b/_js/cwr.js index 8c76e64..d6ac1df 100644 --- a/_js/cwr.js +++ b/_js/cwr.js @@ -1,3 +1,3 @@ -/* CWR 1.12.0 */ +/* CWR 1.17.0 */ /*! License information can be found in LICENSE and LICENSE-THIRD-PARTY */ -!function(){var e={914:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=n(945),o=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=0;f>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[f-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[f]=(p+this.temp[f-7]|0)+(h+this.temp[f-16]|0)}var v=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&u)|0)+(l+(r.KEY[f]+this.temp[f]|0)|0)|0,y=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&i^o&i)|0;l=u,u=c,c=s,s=a+v|0,a=i,i=o,o=n,n=v+y|0}t[0]+=n,t[1]+=o,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=c,t[6]+=u,t[7]+=l},e}();t.RawSha256=o},945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(655).__exportStar(n(430),t)},430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(655),o=n(945),i=n(914),a=n(658),s=function(){function e(e){if(this.hash=new i.RawSha256,e){this.outer=new i.RawSha256;var t=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var n=new i.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(o.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(o.BLOCK_SIZE);n.set(t);for(var r=0;r>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},558:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n>6|192,63&o|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(o>>12|224,o>>6&63|128,63&o|128)}return Uint8Array.from(t)}(e)},o=function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},238:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",u="string",l="model",f="name",d="type",p="vendor",h="version",v="architecture",y="console",g="mobile",b="tablet",m="smarttv",w="wearable",E="embedded",S={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===u&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===u?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},C={rgx:function(e,t){for(var n,r,o,s,u,l,f=0;f0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;f+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r255?S.trim(e,255):e,this},this.setUA(n),this};O.VERSION="0.7.28",O.BROWSER={NAME:f,MAJOR:"major",VERSION:h},O.CPU={ARCHITECTURE:v},O.DEVICE={MODEL:l,VENDOR:p,TYPE:d,CONSOLE:y,MOBILE:g,SMARTTV:m,TABLET:b,WEARABLE:w,EMBEDDED:E},O.ENGINE={NAME:f,VERSION:h},O.OS={NAME:f,VERSION:h},typeof t!==s?(e.exports&&(t=e.exports=O),t.UAParser=O):(r=function(){return O}.call(t,n,t,e))===i||(e.exports=r);var _=void 0!==o&&(o.jQuery||o.Zepto);if(_&&!_.ua){var P=new O;_.ua=P.getResult(),_.ua.get=function(){return P.getUA()},_.ua.set=function(e){P.setUA(e);var t=P.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:this)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var o=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/".concat(e.path):e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var n,o=new e(t(t({},this),{headers:t({},this.headers)}));return o.query&&(o.query=(n=o.query,Object.keys(n).reduce((function(e,o){var i,a=n[o];return t(t({},e),((i={})[o]=Array.isArray(a)?function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;Object.create;function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var g=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,b)},b=function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())};function m(e){var t,n,r=[];try{for(var o=y(Object.keys(e).sort()),i=o.next();!i.done;i=o.next()){var a=i.value,s=e[a];if(a=g(a),Array.isArray(s))for(var c=0,u=s.length;c0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]")[1].split("")[0],secretAccessKey:a.split("")[1].split("")[0],sessionToken:a.split("")[1].split("")[0],expiration:new Date(a.split("")[1].split("")[0])}];case 3:throw s=c.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(s));case 4:return[2]}}))}))},this.hostname="sts.".concat(e.region,".amazonaws.com"),this.fetchRequestHandler=e.fetchRequestHandler},j="cwr_c",M="cwr_s",q="cwr_u",D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]e},e}(),F=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},U=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]e},e}(),V="com.amazon.rum",W="".concat(V,".http_event"),X="".concat(V,".xray_trace_event"),G="".concat(V,".largest_contentful_paint_event"),K="".concat(V,".first_input_delay_event"),Z="".concat(V,".cumulative_layout_shift_event"),J="".concat(V,".performance_navigation_event"),Y="".concat(V,".performance_resource_event"),$="".concat(V,".dom_event"),Q="".concat(V,".js_error_event"),ee="".concat(V,".page_view_event"),te=("".concat(V,".session_start_event"),function(){function e(t){this.enabled=!0,this.pluginId=e.generatePluginId(t)}return e.generatePluginId=function(t){return"".concat(e.idPrefix,".").concat(t)},e.prototype.load=function(e){var t;this.context=e,null===(t=this.onload)||void 0===t||t.call(this)},e.prototype.getPluginId=function(){return this.pluginId},e.idPrefix="com.amazonaws.rum",e}()),ne=function(){function e(e){this.context=e,this.plugins=new Map}return e.prototype.addPlugin=function(e){var t=e.getPluginId();if(this.hasPlugin(t))throw new Error('Plugin "'.concat(t,'" already defined in the PluginManager'));this.plugins.set(t,e),e.load(this.context)},e.prototype.updatePlugin=function(e,t){var n,r=this.getPlugin(e);null===(n=null==r?void 0:r.update)||void 0===n||n.call(r,t)},e.prototype.enable=function(){this.plugins.forEach((function(e){return e.enable()}))},e.prototype.disable=function(){this.plugins.forEach((function(e){return e.disable()}))},e.prototype.hasPlugin=function(e){return Boolean(this.getPlugin(e))},e.prototype.record=function(e,t){var n=this.getPlugin(e);if(!((null==n?void 0:n.record)instanceof Function))throw new Error("AWS RUM Client record: Invalid plugin ID");n.record(t)},e.prototype.getPlugin=function(e){var t;return null!==(t=this.plugins.get(e))&&void 0!==t?t:this.plugins.get(te.generatePluginId(e))},e}(),re=(P=function(e,t){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},P(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oe=function(){return oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn?t.stack.substring(0,n)+"...":t.stack)}(r,o,n),r},le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fe=function(){return fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:0,n=(Se[e[t+0]]+Se[e[t+1]]+Se[e[t+2]]+Se[e[t+3]]+"-"+Se[e[t+4]]+Se[e[t+5]]+"-"+Se[e[t+6]]+Se[e[t+7]]+"-"+Se[e[t+8]]+Se[e[t+9]]+"-"+Se[e[t+10]]+Se[e[t+11]]+Se[e[t+12]]+Se[e[t+13]]+Se[e[t+14]]+Se[e[t+15]]).toLowerCase();if(!Ee(n))throw TypeError("Stringified UUID is invalid");return n};for(var xe=function(e,t,n){var r=(e=e||{}).random||(e.rng||me)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Te(r)},Oe=n(238),_e=function(){return _e=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.sessionExpiry)&&this.createSession():this.session={sessionId:Pe,record:this.sample(),eventCount:0,page:this.session.page},this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.addSessionAttributes=function(e){this.attributes=_e(_e({},e),this.attributes)},e.prototype.getUserId=function(){return this.useCookies()?this.userId:Pe},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.initializeUser=function(){var e="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(e=this.getUserIdCookie(),this.userId=e||xe(),this.createOrRenewUserCookie(e,this.userExpiry)):this.userId=xe()},e.prototype.createOrRenewSessionCookie=function(e,t){btoa&&ve(this.sessionCookieName(),btoa(JSON.stringify(e)),this.config.cookieAttributes,void 0,t)},e.prototype.createOrRenewUserCookie=function(e,t){ve(q,e,this.config.cookieAttributes,void 0,t)},e.prototype.getUserIdCookie=function(){return ge(q)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var e=ge(this.sessionCookieName());if(e&&atob)try{this.session=JSON.parse(atob(e)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}catch(e){}}},e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:xe(),record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.storeSessionAsCookie(),this.record(this.session,"com.amazon.rum.session_start_event",{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var e=new Oe.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:e.browser.name?e.browser.name:Ae,browserVersion:e.browser.version?e.browser.version:Ae,osName:e.os.name?e.os.name:Ae,osVersion:e.os.version?e.os.version:Ae,deviceType:e.device.type?e.device.type:"desktop",platformType:"web",domain:window.location.hostname}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ze(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;for(var Je={},Ye={},$e=0;$e<256;$e++){var Qe=$e.toString(16).toLowerCase();1===Qe.length&&(Qe="0".concat(Qe)),Je[$e]=Qe,Ye[Qe]=$e}function et(e){for(var t="",n=0;n-1&&delete e.headers[i]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},_t=function(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e},Pt=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,o=e.service,i=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=o,this.sha256=i,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=nt(r),this.credentialProvider=nt(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Xe(this,void 0,void 0,(function(){var n,r,o,i,a,s,c,u,l,f,d,p,h,v,y,g,b,m,w,E,S,C,T,x;return Ge(this,(function(O){switch(O.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,o=t.expiresIn,i=void 0===o?3600:o,a=t.unsignableHeaders,s=t.unhoistableHeaders,c=t.signableHeaders,u=t.signingRegion,l=t.signingService,[4,this.credentialProvider()];case 1:return f=O.sent(),this.validateResolvedCredentials(f),null==u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=O.sent(),O.label=4;case 4:return d=p,h=At(r),v=h.longDate,y=h.shortDate,i>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(g=wt(y,d,null!=l?l:this.service),b=function(e,t){var n,r,o;void 0===t&&(t={});var i="function"==typeof e.clone?e.clone():Tt(e),a=i.headers,s=i.query,c=void 0===s?{}:s;try{for(var u=Ke(Object.keys(a)),l=u.next();!l.done;l=u.next()){var f=l.value,d=f.toLowerCase();"x-amz-"!==d.slice(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(d))||(c[f]=a[f],delete a[f])}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return We(We({},e),{headers:a,query:c})}(Ot(e),{unhoistableHeaders:s}),f.sessionToken&&(b.query[it]=f.sessionToken),b.query["X-Amz-Algorithm"]=vt,b.query["X-Amz-Credential"]="".concat(f.accessKeyId,"/").concat(g),b.query["X-Amz-Date"]=v,b.query["X-Amz-Expires"]=i.toString(10),m=St(b,a,c),b.query["X-Amz-SignedHeaders"]=kt(m),w=b.query,E=ot,S=this.getSignature,C=[v,g,this.getSigningKey(f,d,y,l)],T=this.createCanonicalRequest,x=[b,m],[4,Ct(e,this.sha256)]);case 5:return[4,S.apply(this,C.concat([T.apply(this,x.concat([O.sent()]))]))];case 6:return w[E]=O.sent(),[2,b]}}))}))},e.prototype.sign=function(e,t){return Xe(this,void 0,void 0,(function(){return Ge(this,(function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,o=t.signingDate,i=void 0===o?new Date:o,a=t.priorSignature,s=t.signingRegion,c=t.signingService;return Xe(this,void 0,void 0,(function(){var e,t,o,u,l,f,d,p,h,v,y;return Ge(this,(function(g){switch(g.label){case 0:return null==s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,o=At(i),u=o.shortDate,l=o.longDate,f=wt(u,e,null!=c?c:this.service),[4,Ct({headers:{},body:r},this.sha256)];case 4:return d=g.sent(),(p=new this.sha256).update(n),v=et,[4,p.digest()];case 5:return h=v.apply(void 0,[g.sent()]),y=[yt,l,f,a,h,d].join("\n"),[2,this.signString(y,{signingDate:i,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,i=n.signingRegion,a=n.signingService;return Xe(this,void 0,void 0,(function(){var t,n,r,s,c,u,l,f;return Ge(this,(function(d){switch(d.label){case 0:return[4,this.credentialProvider()];case 1:return t=d.sent(),this.validateResolvedCredentials(t),null==i?[3,2]:(r=i,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=d.sent(),d.label=4;case 4:return n=r,s=At(o).shortDate,l=(u=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(c=new(l.apply(u,[void 0,d.sent()]))).update(e),f=et,[4,c.digest()];case 6:return[2,f.apply(void 0,[d.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,i=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,c=n.signingService;return Xe(this,void 0,void 0,(function(){var t,n,r,u,l,f,d,p,h,v,y;return Ge(this,(function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),this.validateResolvedCredentials(t),null==s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,u=Ot(e),l=At(o),f=l.longDate,d=l.shortDate,p=wt(d,n,null!=c?c:this.service),u.headers[st]=f,t.sessionToken&&(u.headers[ft]=t.sessionToken),[4,Ct(u,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var o=Ke(Object.keys(t)),i=o.next();!i.done;i=o.next())if(e===i.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(lt,u.headers)&&this.applyChecksum&&(u.headers[lt]=h),v=St(u,a,i),[4,this.getSignature(f,p,this.getSigningKey(t,n,d,c),this.createCanonicalRequest(u,v,h))];case 6:return y=g.sent(),u.headers[at]="".concat(vt," ")+"Credential=".concat(t.accessKeyId,"/").concat(p,", ")+"SignedHeaders=".concat(kt(v),", ")+"Signature=".concat(y),[2,u]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return"".concat(e.method,"\n").concat(this.getCanonicalPath(e),"\n").concat(function(e){var t,n,r=e.query,o=void 0===r?{}:r,i=[],a={},s=function(e){if(e.toLowerCase()===ut)return"continue";i.push(e);var t=o[e];"string"==typeof t?a[e]="".concat(g(e),"=").concat(g(t)):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce((function(t,n){return t.concat(["".concat(g(e),"=").concat(g(n))])}),[]).join("&"))};try{for(var c=Ke(Object.keys(o).sort()),u=c.next();!u.done;u=c.next())s(u.value)}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return i.map((function(e){return a[e]})).filter((function(e){return e})).join("&")}(e),"\n").concat(r.map((function(e){return"".concat(e,":").concat(t[e])})).join("\n"),"\n\n").concat(r.join(";"),"\n").concat(n)},e.prototype.createStringToSign=function(e,t,n){return Xe(this,void 0,void 0,(function(){var r,o;return Ge(this,(function(i){switch(i.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return o=i.sent(),[2,"".concat(vt,"\n").concat(e,"\n").concat(t,"\n").concat(et(o))]}}))}))},e.prototype.getCanonicalPath=function(e){var t,n,r=e.path;if(this.uriEscapePath){var o=[];try{for(var i=Ke(r.split("/")),a=i.next();!a.done;a=i.next()){var s=a.value;0!==(null==s?void 0:s.length)&&("."!==s&&(".."===s?o.pop():o.push(s)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}var c="".concat((null==r?void 0:r.startsWith("/"))?"/":"").concat(o.join("/")).concat(o.length>0&&(null==r?void 0:r.endsWith("/"))?"/":"");return encodeURIComponent(c).replace(/%2F/g,"/")}return r},e.prototype.getSignature=function(e,t,n,r){return Xe(this,void 0,void 0,(function(){var o,i,a,s,c;return Ge(this,(function(u){switch(u.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return o=u.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(i=new(s.apply(a,[void 0,u.sent()]))).update(o),c=et,[4,i.digest()];case 3:return[2,c.apply(void 0,[u.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,o){return Xe(void 0,void 0,void 0,(function(){var i,a,s,c,u,l,f,d,p;return Ge(this,(function(h){switch(h.label){case 0:return[4,Et(e,t.secretAccessKey,t.accessKeyId)];case 1:if(i=h.sent(),(a="".concat(n,":").concat(r,":").concat(o,":").concat(et(i),":").concat(t.sessionToken))in bt)return[2,bt[a]];for(mt.push(a);mt.length>50;)delete bt[mt.shift()];s="AWS4".concat(t.secretAccessKey),h.label=2;case 2:h.trys.push([2,7,8,9]),c=Ke([n,r,o,gt]),u=c.next(),h.label=3;case 3:return u.done?[3,6]:(l=u.value,[4,Et(e,s,l)]);case 4:s=h.sent(),h.label=5;case 5:return u=c.next(),[3,3];case 6:return[3,9];case 7:return f=h.sent(),d={error:f},[3,9];case 8:try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(d)throw d.error}return[7];case 9:return[2,bt[a]=s]}}))}))}(this.sha256,e,n,t,r||this.service)},e.prototype.validateResolvedCredentials=function(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")},e}(),At=function(e){var t,n=(t=e,_t(t).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},kt=function(e){return Object.keys(e).sort().join(";")},It=n(938),Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=200&&e<300},this.handler=e,this.retries=t,this.backoff=n}return e.prototype.handle=function(e){return Ut(this,void 0,void 0,(function(){var t,n,r;return zt(this,(function(o){switch(o.label){case 0:t=this.retries,o.label=1;case 1:0,o.label=2;case 2:return o.trys.push([2,4,,6]),[4,this.handler.handle(e)];case 3:if(n=o.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(r=o.sent(),!t)throw r;return t--,[4,this.sleep(this.backoff(this.retries-t))];case 5:return o.sent(),[3,6];case 6:return[3,1];case 7:return[2]}}))}))},e.prototype.sleep=function(e){return Ut(this,void 0,void 0,(function(){return zt(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},e}(),Wt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Xt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?n.unloadEventStart-r:0,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectStart:n.redirectStart>0?n.redirectStart-r:0,redirectTime:n.redirectEnd-n.redirectStart,fetchStart:n.fetchStart>0?n.fetchStart-r:0,domainLookupStart:n.domainLookupStart>0?n.domainLookupStart-r:0,dns:n.domainLookupEnd-n.domainLookupStart,connectStart:n.connectStart>0?n.connectStart-r:0,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart>0?n.secureConnectionStart-r:0,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart>0?n.requestStart-r:0,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart>0?n.responseStart-r:0,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive>0?n.domInteractive-r:0,domContentLoadedEventStart:n.domContentLoadedEventStart>0?n.domContentLoadedEventStart-r:0,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete>0?n.domComplete-r:0,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart>0?n.loadEventStart-r:0,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.loadEventEnd-n.navigationStart,navigationTimingLevel:1};(null===(e=t.context)||void 0===e?void 0:e.record)&&t.context.record(J,o)}),0)},t.performanceNavigationEventHandlerTimingLevel2=function(e){var n,r={version:"1.0.0",initiatorType:e.initiatorType,navigationType:e.type,startTime:e.startTime,unloadEventStart:e.unloadEventStart,promptForUnload:e.unloadEventEnd-e.unloadEventStart,redirectCount:e.redirectCount,redirectStart:e.redirectStart,redirectTime:e.redirectEnd-e.redirectStart,workerStart:e.workerStart,workerTime:e.workerStart>0?e.fetchStart-e.workerStart:0,fetchStart:e.fetchStart,domainLookupStart:e.domainLookupStart,dns:e.domainLookupEnd-e.domainLookupStart,nextHopProtocol:e.nextHopProtocol,connectStart:e.connectStart,connect:e.connectEnd-e.connectStart,secureConnectionStart:e.secureConnectionStart,tlsTime:e.secureConnectionStart>0?e.connectEnd-e.secureConnectionStart:0,requestStart:e.requestStart,timeToFirstByte:e.responseStart-e.requestStart,responseStart:e.responseStart,responseTime:e.responseStart>0?e.responseEnd-e.responseStart:0,domInteractive:e.domInteractive,domContentLoadedEventStart:e.domContentLoadedEventStart,domContentLoaded:e.domContentLoadedEventEnd-e.domContentLoadedEventStart,domComplete:e.domComplete,domProcessingTime:e.loadEventStart-e.responseEnd,loadEventStart:e.loadEventStart,loadEventTime:e.loadEventEnd-e.loadEventStart,duration:e.duration,headerSize:e.transferSize-e.encodedBodySize,transferSize:e.transferSize,compressionRatio:e.encodedBodySize>0?e.decodedBodySize/e.encodedBodySize:0,navigationTimingLevel:2};(null===(n=t.context)||void 0===n?void 0:n.record)&&t.context.record(J,r)},t}return Zt(t,e),t.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Yt,this.eventListener))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(Yt,this.eventListener))},t.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(Jt).length){var e=window.performance.getEntriesByType(Jt)[0];return Boolean(e.loadEventEnd)}return!1},t.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(Jt)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(Yt,this.eventListener)},t}(te);!function(e){e.OTHER="other",e.STYLESHEET="stylesheet",e.DOCUMENT="document",e.SCRIPT="script",e.IMAGE="image",e.FONT="font"}(tt||(tt={}));for(var Qt,en,tn,nn,rn=[{name:tt.STYLESHEET,list:["css","less"]},{name:tt.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:tt.SCRIPT,list:["js"]},{name:tt.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:tt.FONT,list:["fnt","fon","otf","ttf","woff"]}],on=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}},an=function(e){var t=e.substring(e.lastIndexOf("/")+1),n=t.substring(t.lastIndexOf(".")+1).split(/[?#]/)[0],r=tt.OTHER;return rn.forEach((function(e){e.list.indexOf(n)>-1&&(r=e.name)})),r},sn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cn=function(){return cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a.forEach((function(e){var o=an(e.name);n.config.recordAllTypes.includes(o)?t.push(e):n.config.sampleTypes.includes(o)&&r.push(e)})),on(t);t.length>0&&o0&&o=0?r="back-forward-cache":n&&(r=document.prerendering||yn()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},bn=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},mn=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},wn=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},En=-1,Sn=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Cn=function(){mn((function(e){var t=e.timeStamp;En=t}),!0)},Tn=function(){return En<0&&(En=Sn(),Cn(),hn((function(){setTimeout((function(){En=Sn(),Cn()}),0)}))),{get firstHiddenTime(){return En}}},xn=function(e,t){t=t||{};var n,r=[1800,3e3],o=Tn(),i=gn("FCP"),a=function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(c&&c.disconnect(),e.startTime=0&&en1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){kn(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Pn),removeEventListener("pointercancel",r,Pn)};addEventListener("pointerup",n,Pn),addEventListener("pointercancel",r,Pn)}(t,e):kn(t,e)}},Rn=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ln,Pn)}))},jn={},Mn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qn=function(e){function t(){return e.call(this,"web-vitals")||this}return Mn(t,e),t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.configure=function(e){},t.prototype.getWebVitalData=function(e,t){var n,r={version:"1.0.0",value:e.value};null===(n=this.context)||void 0===n||n.record(t,r)},t.prototype.onload=function(){var e=this;!function(e,t){t=t||{};var n,r=[2500,4e3],o=Tn(),i=gn("LCP"),a=function(e){var t=e[e.length-1];if(t){var r=t.startTime-yn();r-1&&e(t)},i=gn("CLS",0),a=0,s=[],c=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];a&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,s.push(e)):(a=e.value,s=[e]),a>i.value&&(i.value=a,i.entries=s,r())}}))},u=bn("layout-shift",c);u&&(r=wn(o,i,n,t.reportAllChanges),mn((function(){c(u.takeRecords()),r(!0)})),hn((function(){a=0,_n=-1,i=gn("CLS",0),r=wn(o,i,n,t.reportAllChanges)})))}((function(t){return e.getWebVitalData(t,Z)}))},t}(te),Dn=function(e){if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw new Error("No crypto library found.")},Hn=[],Bn=0;Bn<256;Bn++)Hn[Bn]=(Bn+256).toString(16).substr(1);var Nn,Fn,Un="X-Amzn-Trace-Id",zn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Vn=function(e){return 4===Math.floor(e/100)},Wn=function(e){return 5===Math.floor(e/100)},Xn=function(e){return 429===e},Gn=function(e,t){var n=t.urlsToInclude.some((function(t){return t.test(e)})),r=t.urlsToExclude.some((function(t){return t.test(e)}));return n&&!r},Kn=function(){return Date.now()/1e3},Zn=function(e,t,n){var r={version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:tr(),start_time:t,trace_id:er(),end_time:void 0,subsegments:[],in_progress:!1};return n&&(r.http=n),r},Jn=function(e,t,n){var r={id:tr(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith("amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r},Yn=function(e){try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch(e){return window.location.hostname}},$n=function(e,t){return"Root="+e+";Parent="+t+";Sampled=1"},Qn=function(e){return e.url?e.url:e.toString()},er=function(){return"1-".concat(nr(),"-").concat(rr())},tr=function(){var e=new Uint8Array(8);return Dn(e),or(e)},nr=function(){return Math.floor(Date.now()/1e3).toString(16)},rr=function(){var e=new Uint8Array(12);return Dn(e),or(e)},or=function(e){for(var t="",n=0;n=200&&e<300},t.prototype.recordHttpEventWithResponse=function(e,t){!this.config.recordAllRequests&&this.statusOk(t.status)||this.context.record(W,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:t.status,statusText:t.statusText}})},t.prototype.recordHttpEventWithError=function(e,t){var n={version:"1.0.0",request:{method:e.method,url:e.url}};n.error=ue({type:"error",error:t},this.config.stackTraceLength),this.context.record(W,n)},t.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(X,e)},t}(Re),lr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(){return fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]>>8^a[255&(this.checksum^s)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var a=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=n(1446);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})},8229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=n(372),o="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},1359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n(8229);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var o=n(701);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var i=n(6251);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var a=n(3340);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},701:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},6251:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},3340:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;nr.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=0;f>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[f-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[f]=(p+this.temp[f-7]|0)+(h+this.temp[f-16]|0)}var v=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(l+(r.KEY[f]+this.temp[f]|0)|0)|0,y=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&i^o&i)|0;l=c,c=u,u=s,s=a+v|0,a=i,i=o,o=n,n=v+y|0}t[0]+=n,t[1]+=o,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=l},e}();t.RawSha256=o},9945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},1938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(655).__exportStar(n(5430),t)},5430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(655),o=n(9945),i=n(914),a=n(7658),s=function(){function e(e){if(this.hash=new i.RawSha256,e){this.outer=new i.RawSha256;var t=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var n=new i.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(o.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(o.BLOCK_SIZE);n.set(t);for(var r=0;r>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},1558:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0x8000000000000000||t<-0x8000000000000000)throw new Error("".concat(t," is too large (or, if negative, too small) to represent as an Int64"));for(var n=new Uint8Array(8),r=7,o=Math.abs(Math.round(t));r>-1&&o>0;r--,o/=256)n[r]=o;return t<0&&u(n),new e(n)}}]),e}();function u(e){for(var t=0;t<8;t++)e[t]^=255;for(var n=7;n>-1&&(e[n]++,0===e[n]);n--);}t.Int64=s},7852:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4763:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.MessageDecoderStream=void 0;var o=r(n(4687)),i=r(n(6690)),a=r(n(9728)),s=r(n(6737)),u=r(n(8186));function c(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new l(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return l=function(e){this.s=e,this.n=e.next},l.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new l(e)}var f=function(e){function t(e){(0,i.default)(this,t),this.options=e}return(0,a.default)(t,[{key:e,value:function(){return this.asyncIterator()}},{key:"asyncIterator",value:function(){var e=this;return(0,u.default)(o.default.mark((function t(){var n,r,i,a,u,l,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,r=!1,t.prev=2,a=c(e.options.inputStream);case 4:return t.next=6,(0,s.default)(a.next());case 6:if(!(n=!(u=t.sent).done)){t.next=14;break}return l=u.value,f=e.options.decoder.decode(l),t.next=11,f;case 11:n=!1,t.next=4;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(2),r=!0,i=t.t0;case 20:if(t.prev=20,t.prev=21,!n||null==a.return){t.next=25;break}return t.next=25,(0,s.default)(a.return());case 25:if(t.prev=25,!r){t.next=28;break}throw i;case 28:return t.finish(25);case 29:return t.finish(20);case 30:case"end":return t.stop()}}),t,null,[[2,16,20,30],[21,,25,29]])})))()}}]),t}(Symbol.asyncIterator);t.MessageDecoderStream=f},8529:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.MessageEncoderStream=void 0;var o=r(n(4687)),i=r(n(6690)),a=r(n(9728)),s=r(n(6737)),u=r(n(8186));function c(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new l(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return l=function(e){this.s=e,this.n=e.next},l.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new l(e)}var f=function(e){function t(e){(0,i.default)(this,t),this.options=e}return(0,a.default)(t,[{key:e,value:function(){return this.asyncIterator()}},{key:"asyncIterator",value:function(){var e=this;return(0,u.default)(o.default.mark((function t(){var n,r,i,a,u,l,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,r=!1,t.prev=2,a=c(e.options.messageStream);case 4:return t.next=6,(0,s.default)(a.next());case 6:if(!(n=!(u=t.sent).done)){t.next=14;break}return l=u.value,f=e.options.encoder.encode(l),t.next=11,f;case 11:n=!1,t.next=4;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(2),r=!0,i=t.t0;case 20:if(t.prev=20,t.prev=21,!n||null==a.return){t.next=25;break}return t.next=25,(0,s.default)(a.return());case 25:if(t.prev=25,!r){t.next=28;break}throw i;case 28:return t.finish(25);case 29:return t.finish(20);case 30:if(!e.options.includeEndFrame){t.next=33;break}return t.next=33,new Uint8Array(0);case 33:case"end":return t.stop()}}),t,null,[[2,16,20,30],[21,,25,29]])})))()}}]),t}(Symbol.asyncIterator);t.MessageEncoderStream=f},2313:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.SmithyMessageDecoderStream=void 0;var o=r(n(4687)),i=r(n(6690)),a=r(n(9728)),s=r(n(6737)),u=r(n(8186));function c(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new l(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return l=function(e){this.s=e,this.n=e.next},l.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new l(e)}var f=function(e){function t(e){(0,i.default)(this,t),this.options=e}return(0,a.default)(t,[{key:e,value:function(){return this.asyncIterator()}},{key:"asyncIterator",value:function(){var e=this;return(0,u.default)(o.default.mark((function t(){var n,r,i,a,u,l,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,r=!1,t.prev=2,a=c(e.options.messageStream);case 4:return t.next=6,(0,s.default)(a.next());case 6:if(!(n=!(u=t.sent).done)){t.next=18;break}return l=u.value,t.next=10,(0,s.default)(e.options.deserializer(l));case 10:if(void 0!==(f=t.sent)){t.next=13;break}return t.abrupt("continue",15);case 13:return t.next=15,f;case 15:n=!1,t.next=4;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(2),r=!0,i=t.t0;case 24:if(t.prev=24,t.prev=25,!n||null==a.return){t.next=29;break}return t.next=29,(0,s.default)(a.return());case 29:if(t.prev=29,!r){t.next=32;break}throw i;case 32:return t.finish(29);case 33:return t.finish(24);case 34:case"end":return t.stop()}}),t,null,[[2,20,24,34],[25,,29,33]])})))()}}]),t}(Symbol.asyncIterator);t.SmithyMessageDecoderStream=f},5880:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.SmithyMessageEncoderStream=void 0;var o=r(n(4687)),i=r(n(6690)),a=r(n(9728)),s=r(n(6737)),u=r(n(8186));function c(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new l(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return l=function(e){this.s=e,this.n=e.next},l.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new l(e)}var f=function(e){function t(e){(0,i.default)(this,t),this.options=e}return(0,a.default)(t,[{key:e,value:function(){return this.asyncIterator()}},{key:"asyncIterator",value:function(){var e=this;return(0,u.default)(o.default.mark((function t(){var n,r,i,a,u,l,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,r=!1,t.prev=2,a=c(e.options.inputStream);case 4:return t.next=6,(0,s.default)(a.next());case 6:if(!(n=!(u=t.sent).done)){t.next=14;break}return l=u.value,f=e.options.serializer(l),t.next=11,f;case 11:n=!1,t.next=4;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(2),r=!0,i=t.t0;case 20:if(t.prev=20,t.prev=21,!n||null==a.return){t.next=25;break}return t.next=25,(0,s.default)(a.return());case 25:if(t.prev=25,!r){t.next=28;break}throw i;case 28:return t.finish(25);case 29:return t.finish(20);case 30:case"end":return t.stop()}}),t,null,[[2,16,20,30],[21,,25,29]])})))()}}]),t}(Symbol.asyncIterator);t.SmithyMessageEncoderStream=f},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5330);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(4212);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=n(7776);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(7852);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=n(4763);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=n(8529);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=n(2313);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var l=n(5880);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}))},9030:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitMessage=function(e){var t=e.byteLength,n=e.byteOffset,o=e.buffer;if(t<16)throw new Error("Provided message too short to accommodate event stream message overhead");var i=new DataView(o,n,t),a=i.getUint32(0,!1);if(t!==a)throw new Error("Reported message length does not match received message length");var s=i.getUint32(4,!1),u=i.getUint32(8,!1),c=i.getUint32(t-4,!1),l=(new r.Crc32).update(new Uint8Array(o,n,8));if(u!==l.digest())throw new Error("The prelude checksum specified in the message (".concat(u,") does not match the calculated CRC32 checksum (").concat(l.digest(),")"));if(l.update(new Uint8Array(o,n+8,t-12)),c!==l.digest())throw new Error("The message checksum (".concat(l.digest(),") did not match the expected value of ").concat(c));return{headers:new DataView(o,n+8+4,s),body:new Uint8Array(o,n+8+4+s,a-s-16)}};var r=n(4079)},7291:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.FetchHttpHandler=void 0;var o=r(n(4687)),i=r(n(7156)),a=r(n(6690)),s=r(n(9728)),u=n(4146),c=n(590),l=n(778);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==S[1]?S[1]:{},r=n.abortSignal,this.config){e.next=5;break}return e.next=4,this.configProvider;case 4:this.config=e.sent;case 5:if(i=this.config.requestTimeout,null==r||!r.aborted){e.next=10;break}return(a=new Error("Request aborted")).name="AbortError",e.abrupt("return",Promise.reject(a));case 10:return s=t.path,(d=(0,c.buildQueryString)(t.query||{}))&&(s+="?".concat(d)),t.fragment&&(s+="#".concat(t.fragment)),p="",null==t.username&&null==t.password||(y=null!==(h=t.username)&&void 0!==h?h:"",g=null!==(v=t.password)&&void 0!==v?v:"",p="".concat(y,":").concat(g,"@")),b=t.port,m=t.method,w="".concat(t.protocol,"//").concat(p).concat(t.hostname).concat(b?":".concat(b):"").concat(s),E="GET"===m||"HEAD"===m?void 0:t.body,_={body:E,headers:new Headers(t.headers),method:m},"undefined"!=typeof AbortController&&(_.signal=r),T=new Request(w,_),P=[fetch(T).then((function(e){var t,n=e.headers,r={},o=f(n.entries());try{for(o.s();!(t=o.n()).done;){var i=t.value;r[i[0]]=i[1]}}catch(e){o.e(e)}finally{o.f()}return null!=e.body?{response:new u.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new u.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:t})}}))})),(0,l.requestTimeout)(i)],r&&P.push(new Promise((function(e,t){r.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),e.abrupt("return",Promise.race(P));case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.FetchHttpHandler=p},3940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7291);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(8795);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},778:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestTimeout=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within ".concat(e," ms"));t.name="TimeoutError",n(t)}),e)}))}},8795:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.streamCollector=void 0;var o=r(n(4687)),i=r(n(7156)),a=n(7847);function s(){return(s=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(t);case 2:return n=e.sent,r=(0,a.fromBase64)(n),e.abrupt("return",new Uint8Array(r));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=(0,i.default)(o.default.mark((function e(t){var n,r,i,a,s,u,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Uint8Array(0),r=t.getReader(),i=!1;case 3:if(i){e.next=13;break}return e.next=6,r.read();case 6:a=e.sent,s=a.done,(u=a.value)&&(c=n,(n=new Uint8Array(c.length+u.length)).set(c),n.set(u,c.length)),i=s,e.next=3;break;case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var o=null!==(e=r.result)&&void 0!==e?e:"",i=o.indexOf(","),a=i>-1?i+1:o.length;t(o.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}t.streamCollector=function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return s.apply(this,arguments)}(e):function(e){return u.apply(this,arguments)}(e)}},4333:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayBuffer=void 0;t.isArrayBuffer=function(e){return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},6428:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var o=r(n(6690)),i=r(n(9728)),a=n(3604),s=function(){function e(t){var n=t.name,r=t.kind,i=void 0===r?a.FieldPosition.HEADER:r,s=t.values,u=void 0===s?[]:s;(0,o.default)(this,e),this.name=n,this.kind=i,this.values=u}return(0,i.default)(e,[{key:"add",value:function(e){this.values.push(e)}},{key:"set",value:function(e){this.values=e}},{key:"remove",value:function(e){this.values=this.values.filter((function(t){return t!==e}))}},{key:"toString",value:function(){return this.values.map((function(e){return e.includes(",")||e.includes(" ")?'"'.concat(e,'"'):e})).join(", ")}},{key:"get",value:function(){return this.values}}]),e}();t.Field=s},3604:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FieldPosition=void 0,t.FieldPosition=n,function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(n||(t.FieldPosition=n={}))},7244:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=void 0;var o=r(n(6690)),i=r(n(9728)),a=function(){function e(t){var n=t.fields,r=void 0===n?[]:n,i=t.encoding,a=void 0===i?"utf-8":i;(0,o.default)(this,e),this.entries={},r.forEach(this.setField.bind(this)),this.encoding=a}return(0,i.default)(e,[{key:"setField",value:function(e){this.entries[e.name.toLowerCase()]=e}},{key:"getField",value:function(e){return this.entries[e.toLowerCase()]}},{key:"removeField",value:function(e){delete this.entries[e.toLowerCase()]}},{key:"getByType",value:function(e){return Object.values(this.entries).filter((function(t){return t.kind===e}))}}]),e}();t.Fields=a},9226:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},981:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRequest=void 0;var o=r(n(861)),i=r(n(8698)),a=r(n(8416)),s=r(n(6690)),u=r(n(9728));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(Object.keys(e).sort());try{for(i.s();!(t=i.n()).done;){var a=t.value,s=e[a];if(a=(0,r.escapeUri)(a),Array.isArray(s))for(var u=0,c=s.length;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==x[1]?x[1]:{},r=n.signingDate,i=void 0===r?new Date:r,a=n.expiresIn,s=void 0===a?3600:a,u=n.unsignableHeaders,c=n.unhoistableHeaders,l=n.signableHeaders,f=n.signingRegion,d=n.signingService,e.next=4,this.credentialProvider();case 4:if(y=e.sent,this.validateResolvedCredentials(y),null==f){e.next=10;break}e.t0=f,e.next=13;break;case 10:return e.next=12,this.regionProvider();case 12:e.t0=e.sent;case 13:if(b=e.t0,E=S(i),_=E.longDate,T=E.shortDate,!(s>p.MAX_PRESIGNED_TTL)){e.next=17;break}return e.abrupt("return",Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future"));case 17:return P=(0,h.createScope)(T,b,null!=d?d:this.service),A=(0,m.moveHeadersToQuery)((0,w.prepareRequest)(t),{unhoistableHeaders:c}),y.sessionToken&&(A.query[p.TOKEN_QUERY_PARAM]=y.sessionToken),A.query[p.ALGORITHM_QUERY_PARAM]=p.ALGORITHM_IDENTIFIER,A.query[p.CREDENTIAL_QUERY_PARAM]="".concat(y.accessKeyId,"/").concat(P),A.query[p.AMZ_DATE_QUERY_PARAM]=_,A.query[p.EXPIRES_QUERY_PARAM]=s.toString(10),I=(0,v.getCanonicalHeaders)(A,u,l),A.query[p.SIGNED_HEADERS_QUERY_PARAM]=O(I),e.t1=this,e.t2=_,e.t3=P,e.t4=this.getSigningKey(y,b,T,d),e.t5=this,e.t6=A,e.t7=I,e.next=35,(0,g.getPayloadHash)(t,this.sha256);case 35:return e.t8=e.sent,e.t9=e.t5.createCanonicalRequest.call(e.t5,e.t6,e.t7,e.t8),e.next=39,e.t1.getSignature.call(e.t1,e.t2,e.t3,e.t4,e.t9);case 39:return A.query[p.SIGNATURE_QUERY_PARAM]=e.sent,e.abrupt("return",A);case 41:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"sign",value:(A=(0,a.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof t){e.next=4;break}return e.abrupt("return",this.signString(t,n));case 4:if(!t.headers||!t.payload){e.next=8;break}return e.abrupt("return",this.signEvent(t,n));case 8:if(!t.message){e.next=12;break}return e.abrupt("return",this.signMessage(t,n));case 12:return e.abrupt("return",this.signRequest(t,n));case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"signEvent",value:(P=(0,a.default)(o.default.mark((function e(t,n){var r,i,a,s,u,c,f,d,v,y,b,m,w,E,_,T;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.headers,i=t.payload,a=n.signingDate,s=void 0===a?new Date:a,u=n.priorSignature,c=n.signingRegion,f=n.signingService,null==c){e.next=6;break}e.t0=c,e.next=9;break;case 6:return e.next=8,this.regionProvider();case 8:e.t0=e.sent;case 9:return d=e.t0,v=S(s),y=v.shortDate,b=v.longDate,m=(0,h.createScope)(y,d,null!=f?f:this.service),e.next=14,(0,g.getPayloadHash)({headers:{},body:i},this.sha256);case 14:return w=e.sent,(E=new this.sha256).update(r),e.t1=l.toHex,e.next=20,E.digest();case 20:return e.t2=e.sent,_=(0,e.t1)(e.t2),T=[p.EVENT_ALGORITHM_IDENTIFIER,b,m,u,_,w].join("\n"),e.abrupt("return",this.signString(T,{signingDate:s,signingRegion:d,signingService:f}));case 24:case"end":return e.stop()}}),e,this)}))),function(e,t){return P.apply(this,arguments)})},{key:"signMessage",value:(T=(0,a.default)(o.default.mark((function e(t,n){var r,i,a,s,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.signingDate,i=void 0===r?new Date:r,a=n.signingRegion,s=n.signingService,u=this.signEvent({headers:this.headerMarshaller.format(t.message.headers),payload:t.message.body},{signingDate:i,signingRegion:a,signingService:s,priorSignature:t.priorSignature}),e.abrupt("return",u.then((function(e){return{message:t.message,signature:e}})));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"signString",value:(E=(0,a.default)(o.default.mark((function e(t){var n,r,i,a,s,u,c,f,p,h,v=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=v.length>1&&void 0!==v[1]?v[1]:{},r=n.signingDate,i=void 0===r?new Date:r,a=n.signingRegion,s=n.signingService,e.next=3,this.credentialProvider();case 3:if(u=e.sent,this.validateResolvedCredentials(u),null==a){e.next=9;break}e.t0=a,e.next=12;break;case 9:return e.next=11,this.regionProvider();case 11:e.t0=e.sent;case 12:return c=e.t0,f=S(i),p=f.shortDate,e.t1=this.sha256,e.next=17,this.getSigningKey(u,c,p,s);case 17:return e.t2=e.sent,(h=new e.t1(e.t2)).update((0,d.toUint8Array)(t)),e.t3=l.toHex,e.next=23,h.digest();case 23:return e.t4=e.sent,e.abrupt("return",(0,e.t3)(e.t4));case 25:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"signRequest",value:(r=(0,a.default)(o.default.mark((function e(t){var n,r,i,a,s,u,c,l,f,d,y,m,E,_,T,P,A,I=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=I.length>1&&void 0!==I[1]?I[1]:{},r=n.signingDate,i=void 0===r?new Date:r,a=n.signableHeaders,s=n.unsignableHeaders,u=n.signingRegion,c=n.signingService,e.next=3,this.credentialProvider();case 3:if(l=e.sent,this.validateResolvedCredentials(l),null==u){e.next=9;break}e.t0=u,e.next=12;break;case 9:return e.next=11,this.regionProvider();case 11:e.t0=e.sent;case 12:return f=e.t0,d=(0,w.prepareRequest)(t),y=S(i),m=y.longDate,E=y.shortDate,_=(0,h.createScope)(E,f,null!=c?c:this.service),d.headers[p.AMZ_DATE_HEADER]=m,l.sessionToken&&(d.headers[p.TOKEN_HEADER]=l.sessionToken),e.next=20,(0,g.getPayloadHash)(d,this.sha256);case 20:return T=e.sent,!(0,b.hasHeader)(p.SHA256_HEADER,d.headers)&&this.applyChecksum&&(d.headers[p.SHA256_HEADER]=T),P=(0,v.getCanonicalHeaders)(d,s,a),e.next=25,this.getSignature(m,_,this.getSigningKey(l,f,E,c),this.createCanonicalRequest(d,P,T));case 25:return A=e.sent,d.headers[p.AUTH_HEADER]="".concat(p.ALGORITHM_IDENTIFIER," ")+"Credential=".concat(l.accessKeyId,"/").concat(_,", ")+"SignedHeaders=".concat(O(P),", ")+"Signature=".concat(A),e.abrupt("return",d);case 28:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"createCanonicalRequest",value:function(e,t,n){var r=Object.keys(t).sort();return"".concat(e.method,"\n").concat(this.getCanonicalPath(e),"\n").concat((0,y.getCanonicalQuery)(e),"\n").concat(r.map((function(e){return"".concat(e,":").concat(t[e])})).join("\n"),"\n\n").concat(r.join(";"),"\n").concat(n)}},{key:"createStringToSign",value:(n=(0,a.default)(o.default.mark((function e(t,n,r){var i,a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=new this.sha256).update((0,d.toUint8Array)(r)),e.next=4,i.digest();case 4:return a=e.sent,e.abrupt("return","".concat(p.ALGORITHM_IDENTIFIER,"\n").concat(t,"\n").concat(n,"\n").concat((0,l.toHex)(a)));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"getCanonicalPath",value:function(e){var t=e.path;if(this.uriEscapePath){var n,r=[],o=_(t.split("/"));try{for(o.s();!(n=o.n()).done;){var i=n.value;0!==(null==i?void 0:i.length)&&("."!==i&&(".."===i?r.pop():r.push(i)))}}catch(e){o.e(e)}finally{o.f()}var a="".concat(null!=t&&t.startsWith("/")?"/":"").concat(r.join("/")).concat(r.length>0&&null!=t&&t.endsWith("/")?"/":"");return encodeURIComponent(a).replace(/%2F/g,"/")}return t}},{key:"getSignature",value:(t=(0,a.default)(o.default.mark((function e(t,n,r,i){var a,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createStringToSign(t,n,i);case 2:return a=e.sent,e.t0=this.sha256,e.next=6,r;case 6:return e.t1=e.sent,(s=new e.t0(e.t1)).update((0,d.toUint8Array)(a)),e.t2=l.toHex,e.next=12,s.digest();case 12:return e.t3=e.sent,e.abrupt("return",(0,e.t2)(e.t3));case 14:case"end":return e.stop()}}),e,this)}))),function(e,n,r,o){return t.apply(this,arguments)})},{key:"getSigningKey",value:function(e,t,n,r){return(0,h.getSigningKey)(this.sha256,e,n,t,r||this.service)}},{key:"validateResolvedCredentials",value:function(e){if("object"!==(0,i.default)(e)||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}]),e}();t.SignatureV4=P;var S=function(e){var t=(0,E.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},O=function(e){return Object.keys(e).sort().join(";")}},5267:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.cloneRequest=t.cloneQuery=void 0;var o=r(n(861)),i=r(n(8416)),a=r(n(215)),s=["headers","query"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;tu.MAX_CACHE_SIZE;)delete c[l.shift()];h="AWS4".concat(n.secretAccessKey),v=0,y=[r,i,s,u.KEY_TYPE_IDENTIFIER];case 10:if(!(v=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n="function"==typeof e.clone?e.clone():(0,i.cloneRequest)(e),r=n.headers,o=n.query,a=void 0===o?{}:o,u=0,c=Object.keys(r);u-1&&delete e.headers[i]}return e}},5100:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toDate=t.iso8601=void 0;t.iso8601=function(e){return n(e).toISOString().replace(/\.\d{3}Z$/,"Z")};var n=function(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e};t.toDate=n},4955:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxLetterValue=t.bitsPerLetter=t.bitsPerByte=t.alphabetByValue=t.alphabetByEncoding=void 0;var n={};t.alphabetByEncoding=n;var r=new Array(64);t.alphabetByValue=r;for(var o=0,i="A".charCodeAt(0),a="Z".charCodeAt(0);o+i<=a;o++){var s=String.fromCharCode(o+i);n[s]=o,r[o]=s}for(var u=0,c="a".charCodeAt(0),l="z".charCodeAt(0);u+c<=l;u++){var f=String.fromCharCode(u+c),d=u+26;n[f]=d,r[d]=f}for(var p=0;p<10;p++){n[p.toString(10)]=p+52;var h=p.toString(10),v=p+52;n[h]=v,r[v]=h}n["+"]=62,r[62]="+",n["/"]=63,r[63]="/";t.bitsPerLetter=6;t.bitsPerByte=8;t.maxLetterValue=63},6500:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=void 0;var r=n(4955);t.fromBase64=function(e){var t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;for(var n=new ArrayBuffer(t),o=new DataView(n),i=0;i>=r.bitsPerLetter;var l=i/4*3;a>>=s%r.bitsPerByte;for(var f=Math.floor(s/r.bitsPerByte),d=0;d>p)}}return new Uint8Array(n)}},7847:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6500);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(3156);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},3156:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBase64=function(e){for(var t="",n=0;n>l]}t+="==".slice(0,4-u)}return t};var r=n(4955)},460:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),n=0;n>6|192,63&o|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(o>>12|224,o>>6&63|128,63&o|128)}return Uint8Array.from(t)};t.toUtf8=function(e){for(var t="",n=0,r=e.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]e},e}();t.Authentication=c},1042:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicAuthentication=void 0;var r,o=n(3940),i=n(9269),a=n(21),s=n(1148),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=200&&e<300},this.handler=e,this.retries=t,this.backoff=n}return e.prototype.handle=function(e){return n(this,void 0,void 0,(function(){var t,n,o;return r(this,(function(r){switch(r.label){case 0:t=this.retries,r.label=1;case 1:0,r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.handler.handle(e)];case 3:if(n=r.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(o=r.sent(),!t)throw o;return t--,[4,this.sleep(this.backoff(this.retries-t))];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return[2]}}))}))},e.prototype.sleep=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},e}();t.RetryHttpHandler=o},9269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StsClient=void 0;var r=n(4146),o=n(828),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]")[1].split("")[0],secretAccessKey:c.split("")[1].split("")[0],sessionToken:c.split("")[1].split("")[0],expiration:new Date(c.split("")[1].split("")[0])}];case 3:throw l=s.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(l));case 4:return[2]}}))}))},this.hostname="sts.".concat(e.region,".amazonaws.com"),this.fetchRequestHandler=e.fetchRequestHandler};t.StsClient=u},1603:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestTimeout=void 0;t.requestTimeout=function(e){return void 0===e&&(e=0),new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within ".concat(e," ms"));t.name="TimeoutError",n(t)}),e)}))}},828:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.responseToString=t.responseToJson=void 0;var n=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?t.unloadEventStart-r:0,promptForUnload:t.unloadEventEnd-t.unloadEventStart,redirectStart:t.redirectStart>0?t.redirectStart-r:0,redirectTime:t.redirectEnd-t.redirectStart,fetchStart:t.fetchStart>0?t.fetchStart-r:0,domainLookupStart:t.domainLookupStart>0?t.domainLookupStart-r:0,dns:t.domainLookupEnd-t.domainLookupStart,connectStart:t.connectStart>0?t.connectStart-r:0,connect:t.connectEnd-t.connectStart,secureConnectionStart:t.secureConnectionStart>0?t.secureConnectionStart-r:0,tlsTime:t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,requestStart:t.requestStart>0?t.requestStart-r:0,timeToFirstByte:t.responseStart-t.requestStart,responseStart:t.responseStart>0?t.responseStart-r:0,responseTime:t.responseStart>0?t.responseEnd-t.responseStart:0,domInteractive:t.domInteractive>0?t.domInteractive-r:0,domContentLoadedEventStart:t.domContentLoadedEventStart>0?t.domContentLoadedEventStart-r:0,domContentLoaded:t.domContentLoadedEventEnd-t.domContentLoadedEventStart,domComplete:t.domComplete>0?t.domComplete-r:0,domProcessingTime:t.loadEventStart-t.responseEnd,loadEventStart:t.loadEventStart>0?t.loadEventStart-r:0,loadEventTime:t.loadEventEnd-t.loadEventStart,duration:t.loadEventEnd-t.navigationStart,navigationTimingLevel:1};(null===(e=n.context)||void 0===e?void 0:e.record)&&n.context.record(i.PERFORMANCE_NAVIGATION_EVENT_TYPE,o)}),0)},n.performanceNavigationEventHandlerTimingLevel2=function(e){var t,r={version:"1.0.0",initiatorType:e.initiatorType,navigationType:e.type,startTime:e.startTime,unloadEventStart:e.unloadEventStart,promptForUnload:e.unloadEventEnd-e.unloadEventStart,redirectCount:e.redirectCount,redirectStart:e.redirectStart,redirectTime:e.redirectEnd-e.redirectStart,workerStart:e.workerStart,workerTime:e.workerStart>0?e.fetchStart-e.workerStart:0,fetchStart:e.fetchStart,domainLookupStart:e.domainLookupStart,dns:e.domainLookupEnd-e.domainLookupStart,nextHopProtocol:e.nextHopProtocol,connectStart:e.connectStart,connect:e.connectEnd-e.connectStart,secureConnectionStart:e.secureConnectionStart,tlsTime:e.secureConnectionStart>0?e.connectEnd-e.secureConnectionStart:0,requestStart:e.requestStart,timeToFirstByte:e.responseStart-e.requestStart,responseStart:e.responseStart,responseTime:e.responseStart>0?e.responseEnd-e.responseStart:0,domInteractive:e.domInteractive,domContentLoadedEventStart:e.domContentLoadedEventStart,domContentLoaded:e.domContentLoadedEventEnd-e.domContentLoadedEventStart,domComplete:e.domComplete,domProcessingTime:e.loadEventStart-e.responseEnd,loadEventStart:e.loadEventStart,loadEventTime:e.loadEventEnd-e.loadEventStart,duration:e.duration,headerSize:e.transferSize>0?e.transferSize-e.encodedBodySize:0,transferSize:e.transferSize,compressionRatio:e.encodedBodySize>0?e.decodedBodySize/e.encodedBodySize:0,navigationTimingLevel:2};(null===(t=n.context)||void 0===t?void 0:t.record)&&n.context.record(i.PERFORMANCE_NAVIGATION_EVENT_TYPE,r)},n.config=u(u({},a.defaultPerformancePluginConfig),t),n}return s(t,e),t.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(f,this.eventListener))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(f,this.eventListener))},t.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(l).length){var e=window.performance.getEntriesByType(l)[0];return Boolean(e.loadEventEnd)}return!1},t.prototype.onload=function(){var e=this;this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(l).filter((function(t){return!e.config.ignore(t)})).forEach((function(t){return e.performanceNavigationEventHandlerTimingLevel2(t)})):window.addEventListener(f,this.eventListener))},t}(o.InternalPlugin);t.NavigationPlugin=d},4868:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageViewPlugin=t.PAGE_EVENT_PLUGIN_ID=void 0;var r,o=n(7483),i=n(5418),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s="page-view";t.PAGE_EVENT_PLUGIN_ID=s;var u=function(e){function t(){var t=e.call(this,s)||this;return t.pushState=function(){var e=t;return function(t){return function(n,r,o){var i=t.apply(this,arguments);return e.recordPageView(),i}}},t.replaceState=function(){var e=t;return function(t){return function(n,r,o){var i=t.apply(this,arguments);return e.recordPageView(),i}}},t.popstateListener=function(e){t.recordPageView()},t.recordPageView=function(){t.context.recordPageView(t.createIdForCurrentPage())},t.enable(),t}return a(t,e),t.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),t.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},t.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,t=window.location.hash;switch(this.context.config.pageIdFormat){case o.PageIdFormatEnum.PathAndHash:return e&&t?e+t:e||(t||"");case o.PageIdFormatEnum.Hash:return t||"";case o.PageIdFormatEnum.Path:default:return e||""}},t}(i.MonkeyPatched);t.PageViewPlugin=u},7082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePlugin=t.RESOURCE_EVENT_PLUGIN_ID=void 0;var r,o=n(4159),i=n(6702),a=n(2392),s=n(1772),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.eventCount=200&&e<300},t.prototype.recordHttpEventWithResponse=function(e,t){this.xhrMap.delete(t);var n={version:"1.0.0",request:{method:e.method,url:e.url},response:{status:t.status,statusText:t.statusText}};this.isTracingEnabled()&&(n.trace_id=e.trace.trace_id,n.segment_id=e.trace.subsegments[0].id),!this.config.recordAllRequests&&this.statusOk(t.status)||this.context.record(s.HTTP_EVENT_TYPE,n)},t.prototype.recordHttpEventWithError=function(e,t,n){this.xhrMap.delete(t);var r={version:"1.0.0",request:{method:e.method,url:e.url},error:(0,u.errorEventToJsErrorEvent)({type:"error",error:n},this.config.stackTraceLength)};this.isTracingEnabled()&&(r.trace_id=e.trace.trace_id,r.segment_id=e.trace.subsegments[0].id),this.context.record(s.HTTP_EVENT_TYPE,r)},t.prototype.recordTraceEvent=function(e){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(s.XRAY_TRACE_EVENT_TYPE,e)},t}(o.MonkeyPatched);t.XhrPlugin=f},2392:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRAY_TRACE_EVENT_TYPE=t.UNKNOWN=t.TIME_TO_INTERACTIVE_EVENT_TYPE=t.SESSION_START_EVENT_TYPE=t.RUM_AWS_PREFIX=t.RUM_AMZ_PREFIX=t.PERFORMANCE_RESOURCE_EVENT_TYPE=t.PERFORMANCE_NAVIGATION_EVENT_TYPE=t.PAGE_VIEW_EVENT_TYPE=t.LCP_EVENT_TYPE=t.JS_ERROR_EVENT_TYPE=t.HTTP_EVENT_TYPE=t.FID_EVENT_TYPE=t.DOM_EVENT_TYPE=t.CLS_EVENT_TYPE=void 0;t.UNKNOWN="unknown";var n="com.amazon.rum";t.RUM_AMZ_PREFIX=n;t.RUM_AWS_PREFIX="com.amazonaws.rum";var r="".concat(n,".http_event");t.HTTP_EVENT_TYPE=r;var o="".concat(n,".xray_trace_event");t.XRAY_TRACE_EVENT_TYPE=o;var i="".concat(n,".largest_contentful_paint_event");t.LCP_EVENT_TYPE=i;var a="".concat(n,".first_input_delay_event");t.FID_EVENT_TYPE=a;var s="".concat(n,".cumulative_layout_shift_event");t.CLS_EVENT_TYPE=s;var u="".concat(n,".performance_navigation_event");t.PERFORMANCE_NAVIGATION_EVENT_TYPE=u;var c="".concat(n,".performance_resource_event");t.PERFORMANCE_RESOURCE_EVENT_TYPE=c;var l="".concat(n,".dom_event");t.DOM_EVENT_TYPE=l;var f="".concat(n,".js_error_event");t.JS_ERROR_EVENT_TYPE=f;var d="".concat(n,".page_view_event");t.PAGE_VIEW_EVENT_TYPE=d;var p="".concat(n,".session_start_event");t.SESSION_START_EVENT_TYPE=p;var h="".concat(n,".time_to_interactive_event");t.TIME_TO_INTERACTIVE_EVENT_TYPE=h},2931:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resourceToUrlString=t.requestInfoToHostname=t.isUrlAllowed=t.isTraceIdHeaderEnabled=t.is5xx=t.is4xx=t.is429=t.getTraceHeader=t.getAmznTraceIdHeaderValue=t.epochTime=t.defaultConfig=t.createXRayTraceEventHttp=t.createXRayTraceEvent=t.createXRaySubsegment=t.byteToHex=t.addAmznTraceIdHeaderToInit=t.addAmznTraceIdHeaderToHeaders=t.X_AMZN_TRACE_ID=void 0;var r=n(5106),o=[];t.byteToHex=o;for(var i=0;i<256;i++)o[i]=(i+256).toString(16).substr(1);var a="X-Amzn-Trace-Id";t.X_AMZN_TRACE_ID=a;t.isTraceIdHeaderEnabled=function(e,t){return Array.isArray(t)?t.some((function(t){return t.test(e)})):t};t.defaultConfig={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1};t.is4xx=function(e){return 4===Math.floor(e/100)};t.is5xx=function(e){return 5===Math.floor(e/100)};t.is429=function(e){return 429===e};t.isUrlAllowed=function(e,t){var n=t.urlsToInclude.some((function(t){return t.test(e)})),r=t.urlsToExclude.some((function(t){return t.test(e)}));return n&&!r};t.epochTime=function(){return Date.now()/1e3};t.createXRayTraceEventHttp=function(e,t,n){var r={request:{}};return r.request.method=(null==t?void 0:t.method)?t.method:"GET",r.request.traced=n,r.request.url=u(e),r};t.createXRayTraceEvent=function(e,t,n){var r={version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:l(),start_time:t,trace_id:c(),end_time:void 0,subsegments:[],in_progress:!1};return n&&(r.http=n),r};t.createXRaySubsegment=function(e,t,n){var r={id:l(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith("amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r};t.requestInfoToHostname=function(e){try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch(e){return window.location.hostname}};t.addAmznTraceIdHeaderToInit=function(e,t,n){e.headers||(e.headers={}),e.headers[a]=s(t,n)};t.addAmznTraceIdHeaderToHeaders=function(e,t,n){e.set(a,s(t,n))};var s=function(e,t){return"Root="+e+";Parent="+t+";Sampled=1"};t.getAmznTraceIdHeaderValue=s;t.getTraceHeader=function(e){var t,n={};if(e){var r=null===(t=e.get(a))||void 0===t?void 0:t.split(";");3===(null==r?void 0:r.length)&&(n.traceId=r[0].split("Root=")[1],n.segmentId=r[1].split("Parent=")[1])}return n};var u=function(e){return e.url?e.url:e.toString()};t.resourceToUrlString=u;var c=function(){return"1-".concat(f(),"-").concat(d())},l=function(){var e=new Uint8Array(8);return(0,r.getRandomValues)(e),p(e)},f=function(){return Math.floor(Date.now()/1e3).toString(16)},d=function(){var e=new Uint8Array(12);return(0,r.getRandomValues)(e),p(e)},p=function(e){for(var t="",n=0;nn?t.stack.substring(0,n)+"...":t.stack)}(n,r,t),n}},1772:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPerformancePluginConfig=t.defaultIgnore=void 0;var r=n(6702),o=function(e){return"resource"===e.entryType&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType))};t.defaultIgnore=o;var i={eventLimit:10,ignore:o,recordAllTypes:[r.ResourceType.DOCUMENT,r.ResourceType.SCRIPT,r.ResourceType.STYLESHEET,r.ResourceType.FONT],sampleTypes:[r.ResourceType.IMAGE,r.ResourceType.OTHER]};t.defaultPerformancePluginConfig=i},7885:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRemoteConfig=void 0;var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]this.sessionExpiry)&&this.createSession(),this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.addSessionAttributes=function(e){this.attributes=s(s({},this.attributes),e)},e.prototype.getUserId=function(){return this.useCookies()?this.userId:u},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.initializeUser=function(){var e="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(e=this.getUserIdCookie(),this.userId=e||(0,o.v4)(),this.createOrRenewUserCookie(e,this.userExpiry)):this.userId=(0,o.v4)()},e.prototype.createOrRenewSessionCookie=function(e,t){btoa&&(0,r.storeCookie)(this.sessionCookieName(),btoa(JSON.stringify(e)),this.config.cookieAttributes,void 0,t)},e.prototype.createOrRenewUserCookie=function(e,t){(0,r.storeCookie)(a.USER_COOKIE_NAME,e,this.config.cookieAttributes,void 0,t)},e.prototype.getUserIdCookie=function(){return(0,r.getCookie)(a.USER_COOKIE_NAME)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var e=(0,r.getCookie)(this.sessionCookieName());if(e&&atob)try{this.session=JSON.parse(atob(e)),this.pageManager.resumeSession(this.session.page)}catch(e){}}},e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:(0,o.v4)(),record:this.session.sessionId===u?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.storeSessionAsCookie(),this.record(this.session,f,{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var e=new i.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:e.browser.name?e.browser.name:c,browserVersion:e.browser.version?e.browser.version:c,osName:e.os.name?e.os.name:c,osVersion:e.os.version?e.os.version:c,deviceType:e.device.type?e.device.type:l,platformType:"web",domain:window.location.hostname}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}};t.getResourceFileType=function(e,t){var i=n.OTHER;if(e){var a=e.substring(e.lastIndexOf("/")+1),s=a.substring(a.lastIndexOf(".")+1).split(/[?#]/)[0];o.forEach((function(e){e.list.indexOf(s)>-1&&(i=e.name)}))}if(t&&i===n.OTHER)switch(t){case r.IMAGE:case r.IMG:case r.INPUT:i=n.IMAGE;break;case r.IFRAME:case r.FRAME:i=n.DOCUMENT;break;case r.SCRIPT:i=n.SCRIPT;break;case r.CSS:i=n.STYLESHEET}return i};t.httpStatusText={0:"Abort Request",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Unused",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Required",413:"Request Entry Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:'I"m a teapot',500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};t.isLCPSupported=function(){return PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")};t.isFCPSupported=function(){return PerformanceObserver.supportedEntryTypes.includes("paint")};t.isLongTaskSupported=function(){return PerformanceObserver.supportedEntryTypes.includes("longtask")}},21:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_COOKIE_NAME=t.SESSION_COOKIE_NAME=t.INSTALL_SCRIPT=t.INSTALL_MODULE=t.IDENTITY_KEY=t.DEFAULT_PAGE_ATTRIBUTES=t.CRED_RENEW_MS=t.CRED_KEY=void 0;t.CRED_KEY="cwr_c";t.IDENTITY_KEY="cwr_i";t.SESSION_COOKIE_NAME="cwr_s";t.USER_COOKIE_NAME="cwr_u";t.CRED_RENEW_MS=3e4;t.INSTALL_SCRIPT="arw-script";t.INSTALL_MODULE="arw-module";t.DEFAULT_PAGE_ATTRIBUTES=["pageId","pageTags"]},6989:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeCookie=t.removeCookie=t.getExpiryDate=t.getCookie=void 0;t.storeCookie=function(e,t,r,o,i){var a=e+"=";a+=t||"",void 0!==i?a+="; Expires=".concat(i.toUTCString()):void 0!==o&&(a+="; Expires=".concat(n(o).toUTCString())),a+="; Domain=".concat(r.domain),a+="; Path=".concat(r.path),a+="; SameSite=".concat(r.sameSite),a+=r.secure?"; Secure":"",document.cookie=a};var n=function(e){return new Date((new Date).getTime()+1e3*e)};t.getExpiryDate=n;t.removeCookie=function(e,t){var n=e+"=";n+="; Expires=".concat(new Date(0)),n+="; Domain=".concat(t.domain),n+="; Path=".concat(t.path),n+="; SameSite=".concat(t.sameSite),n+=t.secure?"Secure":"",document.cookie=n};t.getCookie=function(e){for(var t=0,n=document.cookie.split("; ");t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function P(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},2238:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",u="object",c="string",l="model",f="name",d="type",p="vendor",h="version",v="architecture",y="console",g="mobile",b="tablet",m="smarttv",w="wearable",E="embedded",_="Amazon",T="Apple",P="ASUS",S="BlackBerry",O="Firefox",A="Google",I="Huawei",x="LG",R="Microsoft",C="Motorola",M="Opera",k="Samsung",j="Sharp",L="Sony",N="Xiaomi",U="Zebra",D="Facebook",H=function(e){for(var t={},n=0;n0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;f+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r350?q(e,350):e,this},this.setUA(n),this};z.VERSION="1.0.33",z.BROWSER=H([f,h,"major"]),z.CPU=H([v]),z.DEVICE=H([l,p,d,y,g,m,b,w,E]),z.ENGINE=z.OS=H([f,h]),typeof t!==s?(e.exports&&(t=e.exports=z),t.UAParser=z):n.amdO?(r=function(){return z}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=z);var W=typeof o!==s&&(o.jQuery||o.Zepto);if(W&&!W.ua){var K=new z;W.ua=K.getResult(),W.ua.get=function(){return K.getUA()},W.ua.set=function(e){K.setUA(e);var t=K.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:this)},7429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=d(n(3990)),o=d(n(8237)),i=d(n(5355)),a=d(n(3764)),s=d(n(6314)),u=d(n(8464)),c=d(n(6435)),l=d(n(4008)),f=d(n(8222));function d(e){return e&&e.__esModule?e:{default:e}}},4163:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(u=i)|s>>>32-u,n);var s,u}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=i},58:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},3319:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},3757:function(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;f=l,l=c,c=r(u,30)>>>0,u=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};t.default=o},4008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(6435))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}var s=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=s},3990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(3319))&&r.__esModule?r:{default:r},i=n(4008);let a,s,u=0,c=0;var l=function(e,t,n){let r=t&&n||0;const l=t||new Array(16);let f=(e=e||{}).node||a,d=void 0!==e.clockseq?e.clockseq:s;if(null==f||null==d){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=s=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const v=p-u+(h-c)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||p>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=p,c=h,s=d,p+=122192928e5;const y=(1e4*(268435455&p)+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;const g=p/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let e=0;e<6;++e)l[r+e]=f[e];return t||(0,i.unsafeStringify)(l)};t.default=l},8237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(7925)),o=i(n(4163));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},7925:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,n){var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:P(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h={};function v(){}function y(){}function g(){}var b={};f(b,u,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==n&&i.call(w,u)&&(b=w);var E=g.prototype=v.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,a,s,u){var c=p(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function P(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),o=n(9498),i=n(6116),a=n(2281);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,o=n(5036);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},8186:function(e,t,n){var r=n(4642);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,n){var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},1104:function(e,t){!function(e){"use strict";var t,n,r,o,i,a=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},s=function(e){if("loading"===document.readyState)return"loading";var t=a();if(t){if(e(t||100)-1)return n||o;if(n=n?o+">"+n:o,r.id)break;e=r.parentNode}}catch(e){}return n},l=-1,f=function(){return l},d=function(e){addEventListener("pageshow",(function(t){t.persisted&&(l=t.timeStamp,e(t))}),!0)},p=function(){var e=a();return e&&e.activationStart||0},h=function(e,t){var n=a(),r="navigate";return f()>=0?r="back-forward-cache":n&&(r=document.prerendering||p()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},v=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},y=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},g=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},b=-1,m=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},w=function(){y((function(e){var t=e.timeStamp;b=t}),!0)},E=function(){return b<0&&(b=m(),w(),d((function(){setTimeout((function(){b=m(),w()}),0)}))),{get firstHiddenTime(){return b}}},_=function(e,t){t=t||{};var n,r=[1800,3e3],o=E(),i=h("FCP"),a=function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(u&&u.disconnect(),e.startTime=0&&n1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){A(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,S),removeEventListener("pointercancel",r,S)};addEventListener("pointerup",n,S),addEventListener("pointercancel",r,S)}(t,e):A(t,e)}},R=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,x,S)}))},C=function(e,r){r=r||{};var i,a=[100,300],s=E(),u=h("FID"),c=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};B[r.id]=r,F.push(r)}F.sort((function(e,t){return t.latency-e.latency})),F.splice(10).forEach((function(e){delete B[e.id]}))}},V=function(e,t){t=t||{};var n=[200,500];U();var r,o=h("INP"),i=function(e){e.forEach((function(e){e.interactionId&&q(e),"first-input"===e.entryType&&!F.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&q(e)}));var t,n=(t=Math.min(F.length-1,Math.floor(H()/50)),F[t]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())},a=v("event",i,{durationThreshold:t.durationThreshold||40});r=g(e,o,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),y((function(){i(a.takeRecords()),o.value<0&&H()>0&&(o.value=0,o.entries=[]),r(!0)})),d((function(){F=[],D=N(),o=h("INP"),r=g(e,o,n,t.reportAllChanges)})))},G={},Y=function e(t){document.prerendering?addEventListener("prerenderingchange",(function(){return e(t)}),!0):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},X=function(e,t){t=t||{};var n=[800,1800],r=h("TTFB"),o=g(e,r,n,t.reportAllChanges);Y((function(){var i=a();if(i){if(r.value=Math.max(i.responseStart-p(),0),r.value<0||r.value>performance.now())return;r.entries=[i],o(!0),d((function(){r=h("TTFB",0),(o=g(e,r,n,t.reportAllChanges))(!0)}))}}))};e.onCLS=function(e,t){!function(e,t){t=t||{};var n=[.1,.25];T||(_((function(e){P=e.value})),T=!0);var r,o=function(t){P>-1&&e(t)},i=h("CLS",0),a=0,s=[],u=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];a&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,s.push(e)):(a=e.value,s=[e]),a>i.value&&(i.value=a,i.entries=s,r())}}))},c=v("layout-shift",u);c&&(r=g(o,i,n,t.reportAllChanges),y((function(){u(c.takeRecords()),r(!0)})),d((function(){a=0,P=-1,i=h("CLS",0),r=g(o,i,n,t.reportAllChanges)})))}((function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];n&&(e.attribution={largestShiftTarget:c(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:s(t.startTime)})}}else e.attribution={};var r}(t),e(t)}),t)},e.onFCP=function(e,t){_((function(t){!function(e){if(e.entries.length){var t=a(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,o=Math.max(0,t.responseStart-r);e.attribution={timeToFirstByte:o,firstByteToFCP:e.value-o,loadState:s(e.entries[0].startTime),navigationEntry:t,fcpEntry:n}}}else e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:s(f())}}(t),e(t)}),t)},e.onFID=function(e,t){C((function(t){!function(e){var t=e.entries[0];e.attribution={eventTarget:c(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:s(t.startTime)}}(t),e(t)}),t)},e.onINP=function(e,t){V((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:c(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:s(t.startTime)}}else e.attribution={}}(t),e(t)}),t)},e.onLCP=function(e,t){!function(e,t){t=t||{};var n,r=[2500,4e3],o=E(),i=h("LCP"),a=function(e){var t=e[e.length-1];if(t){var r=t.startTime-p();r