imposium-js-sdk 2.4.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +168 -0
- package/examples/web/barebones.html +3 -2
- package/examples/web/basic-deeplink.html +7 -15
- package/examples/web/basic.html +3 -13
- package/examples/web/custom-player.html +3 -12
- package/examples/web/landing-page.html +2 -2
- package/examples/web/player-controls.html +2 -2
- package/examples/web/two-stage-rendering.html +3 -13
- package/examples/web/uploaded-image-blob.html +3 -13
- package/examples/web/webcam-image-blob.html +3 -13
- package/lib/imposium.js +7332 -6497
- package/lib/imposium.js.map +1 -1
- package/lib/imposium.min.js +3 -18
- package/lib/imposium.min.js.LICENSE.txt +16 -0
- package/lib/imposium.min.js.map +1 -1
- package/package.json +16 -19
package/lib/imposium.min.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Imposium",[],t):"object"==typeof exports?exports.Imposium=t():e.Imposium=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=104)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c}));
|
|
3
|
-
|
|
4
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
6
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
7
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
10
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
11
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
12
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
13
|
-
|
|
14
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
15
|
-
and limitations under the License.
|
|
16
|
-
***************************************************************************** */
|
|
17
|
-
var 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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(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 c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t,n){"use strict";(function(e,r){n.d(t,"d",(function(){return i})),n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"l",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return y})),n.d(t,"m",(function(){return m})),n.d(t,"k",(function(){return b})),n.d(t,"f",(function(){return _}));var o=n(4);n(19);function i(e,t){return e.require(t)}function a(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}var s={};function c(){return a()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:s}function u(){var e=c(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function f(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function p(e){var t=c();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function d(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function h(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function v(){try{return document.location.href}catch(e){return""}}function y(e){try{for(var t=e,n=[],r=0,o=0,i=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=g(t))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function g(e){var t,n,r,i,a,s=e,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),s.id&&c.push("#"+s.id),(t=s.className)&&Object(o.k)(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)c.push("."+n[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)r=u[a],(i=s.getAttribute(r))&&c.push("["+r+'="'+i+'"]');return c.join("")}function m(){return(new Date).getTime()/1e3}function b(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}function _(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}}).call(this,n(96),n(46))},,function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(4),o=n(103),i=n(1),a=n(19);function s(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function c(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function u(e){if(Object(r.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}if(Object(r.f)(e)){var a=e,s={};s.type=a.type;try{s.target=Object(r.c)(a.target)?Object(i.i)(a.target):Object.prototype.toString.call(a.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=Object(r.c)(a.currentTarget)?Object(i.i)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){s.currentTarget="<unknown>"}for(var o in"undefined"!=typeof CustomEvent&&Object(r.g)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,o)&&(s[o]=a);return s}return e}function l(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function f(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=h(e,t);return l(r)>n?f(e,t-1,n):r}function p(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(r.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(i.f)(t)+"]":t}function d(e,t,n,i){if(void 0===n&&(n=1/0),void 0===i&&(i=new o.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=p(e);return Object(r.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var a=p(t,e);if(Object(r.i)(a))return a;var s=u(t),c=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(c[l]=d(l,s[l],n-1,i));return i.unmemoize(t),c}function h(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return d(e,n,t)})))}catch(e){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(u(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Object(a.d)(o,t)}return""}}).call(this,n(46))},function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function o(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function c(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"undefined"!=typeof Event&&v(e,Event)}function f(e){return"undefined"!=typeof Element&&v(e,Element)}function p(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function d(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function h(e){return u(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"k",(function(){return s})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"m",(function(){return d})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return v}))},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(46))},function(e,t,n){var r=n(5),o=n(47),i=n(10),a=n(37),s=n(51),c=n(70),u=o("wks"),l=r.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return i(u,e)||(s&&i(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},function(e,t,n){"use strict";var r=n(92),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(13),o=n(69),i=n(12),a=n(50),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(8);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(13),o=n(11),i=n(36);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(5),o=n(14),i=n(10),a=n(48),s=n(52),c=n(23),u=c.get,l=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:o(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){var r=n(5),o=n(39).f,i=n(14),a=n(15),s=n(48),c=n(110),u=n(62);e.exports=function(e,t){var n,l,f,p,d,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},function(e){e.exports=JSON.parse('{"client":{"uuidLength":36,"defaultConfig":{"accessToken":"","storyId":"","compositionId":"","actId":"","sceneId":"","environment":"production","gaPlacement":"web","deliveryMode":"ws","pollRate":5000},"emptyHistory":{"prevExperienceId":"","prevMessage":""},"clientEmits":{"adding":"Adding job to queue...","added":"Added job to queue...","finishedPolling":"Video ready for viewing."},"eventNames":{"EXPERIENCE_CREATED":"EXPERIENCE_CREATED","UPLOAD_PROGRESS":"UPLOAD_PROGRESS","GOT_EXPERIENCE":"GOT_EXPERIENCE","STATUS_UPDATE":"STATUS_UPDATE","ERROR":"ERROR"}},"api":{"production":"https://api.imposium.com","staging":"https://api.staging.imposium.com","local":"https://api","currentVersion":"2.0.0","version":"X-Imposium-Api-Version","hmac":"X-Imposium-Access-Key","jwt":"Authorization"},"stomp":{"production":"wss://stomp.prod.k8s.nickel.media/ws","staging":"wss://stomp.staging.k8s.nickel.media/ws","local":"ws://127.0.0.1:15674/ws","exchange":"/exchange/imposium/","username":"imposium_stomp","password":"Teehe1ceeMe7Pe1d","maxRetries":0},"sentry":{"dsn":"https://17ffe982179e4d60a1df2062198d7ade@sentry.io/1411258","projectName":"imposium-js-sdk"},"messageConsumer":{"errorOverTcp":"Server failure.","videoSceneKey":"VideoScene01","emitTypes":{"scene":"gotScene","message":"gotMessage","complete":"actComplete"}},"analytics":{"exceptionProp":"UA-123315989-1","baseUrl":"https://ssl.google-analytics.com/collect","lsLookup":"imposium_js_ga_cid","gaPropPlaceholder":"[id_placeholder]","cidPlaceholder":"[cid_placeholder]"},"videoPlayer":{"defaultConfig":{"volume":1,"preload":"auto","loop":false,"muted":false,"autoLoad":true,"autoPlay":true,"controls":true,"crossOrigin":"anonymous","qualityOverride":null},"testImage":"https://cdn.imposium.com/SampleJPGImage_1mb.jpg","playbackEvents":[0,0.25,0.5,0.75],"checkPlaybackRateMs":100,"volumeMin":0,"volumeMax":1,"bandwidth":{"low":2.4,"mid":8},"compression":{"stream":"m3u8","low":"mp4_480","mid":"mp4_720","high":"mp4_1080"},"bandwidthSamples":5,"hlsSupportLevels":{"native":"native","hlsjs":"hls-js"},"streamType":"application/vnd.apple.mpegurl"}}')},function(e,t,n){var r=n(26),o=n(5),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(4);function o(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return Object(r.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),o=Object(r.g)(),i="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)((function(){o.console.log(i+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)((function(){o.console.warn(i+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)((function(){o.console.error(i+"[Error]: "+e.join(" "))}))},e}();o.__SENTRY__=o.__SENTRY__||{};var s=o.__SENTRY__.logger||(o.__SENTRY__.logger=new a)},,function(e,t){e.exports=!1},function(e,t,n){var r,o,i,a=n(107),s=n(5),c=n(9),u=n(14),l=n(10),f=n(38),p=n(28),d=s.WeakMap;if(a){var h=new d,v=h.get,y=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var m=f("state");p[m]=!0,r=function(e,t){return u(e,m,t),t},o=function(e){return l(e,m)?e[m]:{}},i=function(e){return l(e,m)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(57),o=n(54);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(5);e.exports=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(67),s=i(n(176),[]),c="moderation",u="clientConfiguration",l="playerConfiguration",f="network",p="uncaught",d=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="",o.version=a.version,o.storyId="<not_set>",o.logHeader="[IMPOSIUM ERROR]",o.setStoryId=function(e){o.storyId=e},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.type=r,o}return o(t,e),t}(Error);t.ImposiumError=d;var h=function(e){function t(n,r){var o=e.call(this,s[c][n],c)||this;return o.experienceId=null,o.log=function(){console.error(o.logHeader+"\n \nReason: Failed to pass moderation\n \nExperience ID: "+o.experienceId+"\n \nMessage: "+o.message)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.ModerationError=h;var v=function(e){function t(n,r){var o=e.call(this,s[u][n],u)||this;return o.eventName="",o.log=function(){console.error(o.logHeader+"\n \nReason: Invalid client configuration\n \nMessage: "+o.message+"\n \nEvent name: "+o.eventName)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.ClientConfigurationError=v;var y=function(e){function t(n,r){var o=e.call(this,s[l][n],l)||this;return o.eventName="",o.log=function(){console.error(o.logHeader+"\n \nReason: Invalid player configuration\n \nMessage: "+o.message+"\n \nEvent name: "+o.eventName)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.PlayerConfigurationError=y;var g=function(e){function t(n,r,o){var i=e.call(this,s[f][n],f)||this;return i.experienceId=null,i.axiosError=null,i.log=function(){console.error(i.logHeader+"\n \nReason: HTTP error\n \nMessage: "+i.message+"\n \nExperience ID: "+i.experienceId+"\n \nNetwork Error: ",i.axiosError)},Error.captureStackTrace&&Error.captureStackTrace(i,t),o.hasOwnProperty("message")&&(i.message=o.message),i.experienceId=r||"<not_set>",i.axiosError=o,i}return o(t,e),t}(d);t.HTTPError=g;var m=function(e){function t(n,r,o,i){var a=e.call(this,s[f][n]+" Code: "+o.code,f)||this;return a.wasConnected=!1,a.experienceId=null,a.closeEvent=null,a.log=function(){console.error(a.logHeader+"\n \nReason: WebSocket error\n \nMessage: "+a.message+"\n \nExperience ID: "+a.experienceId+"\n \nClose event: ",a.closeEvent)},Error.captureStackTrace&&Error.captureStackTrace(a,t),a.experienceId=r||"<not_set>",a.closeEvent=o,a.wasConnected=i,a}return o(t,e),t}(d);t.SocketError=m;var b=function(e){function t(n,r){var o=e.call(this,s[p][n],p)||this;return o.uncaughtError=null,o.log=function(){console.error(o.logHeader+"\n \nReason: Unknown\n \nMessage: "+o.message+"\n \nError: ",o.uncaughtError)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.uncaughtError=r,o}return o(t,e),t}(d);t.UncaughtError=b},function(e,t){e.exports={}},function(e,t,n){var r=n(11).f,o=n(10),i=n(6)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepConfig=function(e,t){var n=Object.keys(t);for(var r in e)-1===n.indexOf(r)&&delete e[r]},t.inRangeNumeric=function(e,t,n){return(e-t)*(e-n)<=0},t.isFunc=function(e){return"[object Function]"===Object.prototype.toString.call(e)},t.keyExists=function(e,t){return~Object.keys(e).map((function(t){return e[t]})).indexOf(t)},t.cloneWithKeys=function(e){return Object.keys(e).reduce((function(e,t){return e[t]=null,e}),{})},t.calculateMbps=function(e,t){return 8*t/(((new Date).getTime()-e)/1e3)/Math.pow(1024,2)},t.calculateAverageMbps=function(e){var t=e.reduce((function(e,t){return e+t}));return parseFloat((t/e.length).toFixed(2))},t.generateUUID=function(){var e=window.performance,t=(new Date).getTime();return void 0!==e&&"function"==typeof e.now&&(t+=e.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:7&n|8).toString(16)}))},t.inventoryToFormData=function(e,t,n){void 0===n&&(n=null);var r=new FormData;for(var o in r.append("story_id",e),n&&r.append("composition_id",n),t)if(t[o]){var i=t[o];if(i&&"file"===i.type){var a=i.files;a.length>0?(t[o]="",r.append(o,a[0])):t[o]=""}else i&&i instanceof File&&(t[o]="",r.append(o,i,i.name));r.append("inventory["+o+"]",t[o])}return r}},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(183),i=n(27),a=n(67),s=r(n(177),[]),c=n(17).sentry,u=function(){function e(){}return e.logWarning=function(e,t){console.warn("IMPOSIUM\n"+s[e][t])},e.trapError=function(t,n,r){void 0===r&&(r=null),t=t.log?t:new i.UncaughtError("generic",t),n&&t.setStoryId(n),r&&r(t),t.log(),e.hub.run((function(e){e.configureScope((function(r){r.setTag("type",t.type),r.setTag("version",t.version),r.setTag("storyId",n||"<not_set>"),t.experienceId&&r.setTag("experienceId",t.experienceId),t.axiosError&&("object"==typeof t.axiosError.response?r.setExtra("response",t.axiosError.response):"object"==typeof t.axiosError.request?(r.setExtra("request",t.axiosError.request),r.setExtra("reuqestConfig",t.axiosError.config)):(r.setExtra("axiosErrorMessage",t.axiosError.message),r.setExtra("reuqestConfig",t.axiosError.config))),t.closeEvent&&r.setExtra("socketCloseEvent",{code:t.closeEvent.code,type:t.closeEvent.type,timestamp:t.closeEvent.timeStamp,wsUrl:t.closeEvent.target.url,wsBufferedAmount:t.closeEvent.target.bufferedAmount}),e.captureException(t)}))}))},e.sentryClient=new o.BrowserClient({debug:!1,dsn:c.dsn,integrations:[new o.Integrations.UserAgent],beforeSend:function(t){return e.cleanDucktype(t)},release:c.projectName+"@"+a.version}),e.hub=new o.Hub(e.sentryClient),e.cleanDucktype=function(e){return void 0===e.extra||e.extra.Error&&(delete e.extra.Error.log,delete e.extra.Error.logHeader,delete e.extra.Error.setStoryId,e.extra.Error.axiosError&&delete e.extra.Error.axiosError,e.extra.Error.closeEvent&&delete e.extra.Error.closeEvent),e},e}();t.default=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r,o=n(4);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var i=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&(Object(o.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){t._state!==r.PENDING&&(t._state===r.REJECTED?t._handlers.forEach((function(e){e.onrejected&&e.onrejected(t._value)})):t._handlers.forEach((function(e){e.onfulfilled&&e.onfulfilled(t._value)})),t._handlers=[])};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e}()},,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(47),o=n(37),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var r=n(13),o=n(56),i=n(36),a=n(25),s=n(50),c=n(10),u=n(69),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(54);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r,o=n(12),i=n(116),a=n(60),s=n(28),c=n(76),u=n(49),l=n(38),f=l("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[f]=e):n=h(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(12),o=n(122),i=n(59),a=n(43),s=n(123),c=n(124),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var p,d,h,v,y,g,m,b=a(t,n,l?2:1);if(f)p=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,v=i(e.length);v>h;h++)if((y=l?b(r(m=e[h])[0],m[1]):b(e[h]))&&y instanceof u)return y;return new u(!1)}p=d.call(e)}for(g=p.next;!(m=g.call(p)).done;)if("object"==typeof(y=c(p,b,m.value,l))&&y&&y instanceof u)return y;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){var r=n(31);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(0),o=n(34),i=n(4),a=n(3),s=n(1),c=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,a){var s=this;return void 0===a&&(a=0),new o.a((function(o,c){var u=e[a];if(null===t||"function"!=typeof u)o(t);else{var l=u(r.a({},t),n);Object(i.m)(l)?l.then((function(t){return s._notifyEventProcessors(e,t,n,a+1).then(o)})).then(null,c):s._notifyEventProcessors(e,l,n,a+1).then(o).then(null,c)}}))},e.prototype.setUser=function(e){return this._user=Object(a.c)(e),this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=r.a({},this._tags,Object(a.c)(e)),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=r.a({},this._tags,((n={})[e]=Object(a.c)(t),n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=r.a({},this._extra,Object(a.c)(e)),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=r.a({},this._extra,((n={})[e]=Object(a.c)(t),n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=Object(a.c)(e),this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=Object(a.c)(e),this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){return this._context[e]=t?Object(a.c)(t):void 0,this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=r.d(t._breadcrumbs),n._tags=r.a({},t._tags),n._extra=r.a({},t._extra),n._context=r.a({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=r.d(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(s.m)(),o=r.a({timestamp:n},e);return this._breadcrumbs=void 0!==t&&t>=0?r.d(this._breadcrumbs,[Object(a.c)(o)]).slice(-t):r.d(this._breadcrumbs,[Object(a.c)(o)]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=r.a({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=r.a({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=r.a({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=r.a({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._applyFingerprint(e),e.breadcrumbs=r.d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(r.d(u(),this._eventProcessors),e,t)},e}();function u(){var e=Object(s.g)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function l(e){u().push(e)}},function(e,t,n){var r={};r[n(6)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(22),o=n(68);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(5),o=n(14);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(5),o=n(9),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(68),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(16),o=n(114),i=n(75),a=n(77),s=n(29),c=n(14),u=n(15),l=n(6),f=n(22),p=n(30),d=n(74),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,d,m,b){o(n,t,l);var _,E,O,x=function(e){if(e===d&&k)return k;if(!v&&e in j)return j[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",S=!1,j=e.prototype,T=j[y]||j["@@iterator"]||d&&j[d],k=!v&&T||x(d),P="Array"==t&&j.entries||T;if(P&&(_=i(P.call(new e)),h!==Object.prototype&&_.next&&(f||i(_)===h||(a?a(_,h):"function"!=typeof _[y]&&c(_,y,g)),s(_,w,!0,!0),f&&(p[w]=g))),"values"==d&&T&&"values"!==T.name&&(S=!0,k=function(){return T.call(this)}),f&&!b||j[y]===k||c(j,y,k),p[t]=k,d)if(E={values:x("values"),keys:m?k:x("keys"),entries:x("entries")},b)for(O in E)(v||S||!(O in j))&&u(j,O,E[O]);else r({target:t,proto:!0,forced:v||S},E);return E}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(8),o=n(24),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(73),o=n(60).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(53),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(8),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(73),o=n(60);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var r=n(31),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){e.exports=n(157)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="2.4.0",t.printVersion=function(){console.log("%cPowered By%c Imposium%c v"+t.version+"%c https://imposium.com","text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;","text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;","padding: 5px 5px 5px 0px; background-color: black; color: white;","padding: 5px 5px 5px 0px;")}},function(e,t,n){var r=n(5),o=n(48),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(13),o=n(8),i=n(49);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(51);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(45),o=n(24),i=n(6)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r=n(109).charAt,o=n(23),i=n(55),a=o.set,s=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(10),o=n(25),i=n(112).indexOf,a=n(28);e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){"use strict";var r,o,i,a=n(75),s=n(14),c=n(10),u=n(6),l=n(22),f=u("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||c(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(10),o=n(40),i=n(38),a=n(115),s=i("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(18);e.exports=r("document","documentElement")},function(e,t,n){var r=n(12),o=n(117);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(5),o=n(118),i=n(119),a=n(14),s=n(6),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var f in o){var p=r[f],d=p&&p.prototype;if(d){if(d[c]!==l)try{a(d,c,l)}catch(e){d[c]=l}if(d[u]||a(d,u,f),o[f])for(var h in i)if(d[h]!==i[h])try{a(d,h,i[h])}catch(e){d[h]=i[h]}}}},function(e,t,n){var r=n(5);e.exports=r.Promise},function(e,t,n){var r=n(15);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(18),o=n(11),i=n(6),a=n(13),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(6)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r=n(12),o=n(31),i=n(6)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r,o,i,a=n(5),s=n(8),c=n(24),u=n(43),l=n(76),f=n(49),p=n(85),d=a.location,h=a.setImmediate,v=a.clearImmediate,y=a.process,g=a.MessageChannel,m=a.Dispatch,b=0,_={},E=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},O=function(e){return function(){E(e)}},x=function(e){E(e.data)},w=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&v||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete _[e]},"process"==c(y)?r=function(e){y.nextTick(O(e))}:m&&m.now?r=function(e){m.now(O(e))}:g&&!p?(i=(o=new g).port2,o.port1.onmessage=x,r=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(w)?r="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),E(e)}}:function(e){setTimeout(O(e),0)}:(r=w,a.addEventListener("message",x,!1))),e.exports={set:h,clear:v}},function(e,t,n){var r=n(86);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(18);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(12),o=n(9),i=n(65);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(24);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(6);t.f=r},function(e,t,n){var r=n(28),o=n(9),i=n(10),a=n(11).f,s=n(37),c=n(140),u=s("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,u)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!i(e,u)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return c&&d.REQUIRED&&f(e)&&!i(e,u)&&p(e),e}};r[u]=!0},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(7);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(7),o=n(162),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(97)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n(96))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7),o=n(163),i=n(165),a=n(93),s=n(166),c=n(169),u=n(170),l=n(98);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+v)}var y=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,n,i),d=null}},d.onabort=function(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(164);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var l=o.concat(i).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=this&&this.__values||function(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.")},o=this&&this.__read||function(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.defineProperty(t,"__esModule",{value:!0});var i=n(33),a=n(102),s=n(27),c=n(17).videoPlayer,u=function(){function e(t){var n,c,u=this;this.node=null,this.storyId="",this.gaProperty="",this.playbackHandlers=new Map([["play",function(){return u.onPlay()}],["pause",function(){return u.onPause()}],["ended",function(){return u.onEnded()}],["loaded",function(){return u.onLoad()}],["volumechange",function(){return u.onVolumeChange()}]]),this.queuedGACalls=[],this.experienceId="",this.prevPlaybackEvent=0,this.playbackInterval=-1,this.muted=!1,this.remove=function(){var e,t;try{for(var n=r(u.playbackHandlers.entries()),i=n.next();!i.done;i=n.next()){var a=o(i.value,2),s=a[0],c=a[1];u.node.removeEventListener(s,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},this.setGaProperty=function(e){for(u.gaProperty&&u.gaProperty!==e&&u.queuedGACalls.length>0&&(u.queuedGACalls=[]),u.gaProperty=e;u.queuedGACalls.length;)a.default.send(u.queuedGACalls.pop())},this.setStoryId=function(e){u.storyId=e},this.setExperienceId=function(e){u.experienceId=e},this.emitGAEventAction=function(t){var n=e.GA_EMIT_TYPE,r=e.GA_EMIT_CATEGORY,o=u,i={t:n,tid:o.gaProperty,ec:r,el:o.experienceId,ea:t};u.gaProperty?a.default.send(i):u.queuedGACalls.push(i)},this.onLoad=function(){u.emitGAEventAction("loaded")},this.onVolumeChange=function(){!u.muted&&u.node.muted&&(u.emitGAEventAction("muted"),u.muted=!0),u.muted&&!u.node.muted&&(u.emitGAEventAction("unmuted"),u.muted=!1)},this.onPlay=function(){var t=window.setInterval;clearInterval(u.playbackInterval),u.playbackInterval=t((function(){return u.checkPlayback()}),e.INTERVAL_RATE),u.emitGAEventAction("play")},this.onPause=function(){clearInterval(u.playbackInterval),u.node.duration!==u.node.currentTime&&u.emitGAEventAction("pause")},this.onEnded=function(){clearInterval(u.playbackInterval),u.emitGAEventAction("playback_1"),u.prevPlaybackEvent=0},this.checkPlayback=function(){if(u.node){var t=u.node,n=t.currentTime/t.duration,r=e.PLAYBACK_EVENTS[u.prevPlaybackEvent];n>r&&(u.emitGAEventAction("playback_"+r),u.prevPlaybackEvent++)}else clearInterval(u.playbackInterval)};try{if(!(t instanceof HTMLVideoElement))throw new s.PlayerConfigurationError("invalidPlayerRef",null);try{for(var l=r(this.playbackHandlers.entries()),f=l.next();!f.done;f=l.next()){var p=o(f.value,2),d=p[0],h=p[1];t.addEventListener(d,h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(n)throw n.error}}this.node=t,this.muted=t.muted}catch(e){i.default.trapError(e,this.storyId)}}return e.INTERVAL_RATE=c.checkPlaybackRateMs,e.PLAYBACK_EVENTS=c.playbackEvents,e.GA_EMIT_TYPE="event",e.GA_EMIT_CATEGORY="video_player",e}();t.default=u},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__values||function(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.defineProperty(t,"__esModule",{value:!0});var a=n(33),s=n(66),c=n(32),u=o(n(17).analytics,[]),l=function(){function e(){}return e.gaPlacement="",e.initialize=function(t){try{var n=new Date,r=JSON.parse(localStorage.getItem(e.CACHE_KEY))||{};if(e.gaPlacement=t,r.uuid&&r.expiry>=(new Date).valueOf())return void(e.CLIENT_ID=r.uuid);r.uuid=c.generateUUID(),r.expiry=n.setFullYear(n.getFullYear()+2),localStorage.setItem(e.CACHE_KEY,JSON.stringify(r)),e.CLIENT_ID=r.uuid}catch(t){e.CLIENT_ID=c.generateUUID()}},e.send=function(t){var n,o,c=e.BASE_URL,u=document.referrer;t=r({v:"1",ds:e.gaPlacement,cid:e.CLIENT_ID,z:""+Math.round((new Date).getTime()/1e3)},t),""!==u&&(t.dr=u);try{for(var l=i(Object.keys(t)),f=l.next();!f.done;f=l.next()){var p=f.value;c+=""+(c===e.BASE_URL?"?":"&")+p+"="+encodeURIComponent(t[p])}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}s.default.get(c).catch((function(e){a.default.logWarning("analytics","requestFailed")}))},e.BASE_URL=u.baseUrl,e.CACHE_KEY=u.cacheKey,e.CLIENT_ID=u.cidPlaceholder,e}();t.default=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}()},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(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.defineProperty(t,"__esModule",{value:!0}),n(105),n(130),n(137),n(145);var i=n(149);t.Client=i.default;var a=n(182);t.Player=a.default,n(67).printVersion();var s=o([r({},i.default.eventNames),r({},a.default.events)],2),c=s[0],u=s[1];t.Events=c,t.PlayerEvents=u},function(e,t,n){n(106),n(72),n(78),n(121),n(128),n(129);var r=n(26);e.exports=r.Promise},function(e,t,n){var r=n(45),o=n(15),i=n(108);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){var r=n(5),o=n(52),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){"use strict";var r=n(45),o=n(71);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){var r=n(53),o=n(54),i=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){var r=n(10),o=n(111),i=n(39),a=n(11);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(18),o=n(58),i=n(61),a=n(12);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(25),o=n(59),i=n(113),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(53),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){"use strict";var r=n(74).IteratorPrototype,o=n(41),i=n(36),a=n(29),s=n(30),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,n){var r=n(8);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(13),o=n(11),i=n(12),a=n(63);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,c=0;s>c;)o.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(25),o=n(120),i=n(30),a=n(23),s=n(55),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(6),o=n(41),i=n(11),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r,o,i,a,s=n(16),c=n(22),u=n(5),l=n(18),f=n(79),p=n(15),d=n(80),h=n(29),v=n(81),y=n(9),g=n(31),m=n(64),b=n(24),_=n(52),E=n(42),O=n(82),x=n(83),w=n(84).set,S=n(125),j=n(87),T=n(126),k=n(65),P=n(88),R=n(23),C=n(62),I=n(6),A=n(127),D=I("species"),N="Promise",L=R.get,M=R.set,U=R.getterFor(N),F=f,H=u.TypeError,B=u.document,G=u.process,q=l("fetch"),V=k.f,W=V,Y="process"==b(G),X=!!(B&&B.createEvent&&u.dispatchEvent),z=C(N,(function(){if(!(_(F)!==String(F))){if(66===A)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!F.prototype.finally)return!0;if(A>=51&&/native code/.test(F))return!1;var e=F.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[D]=t,!(e.then((function(){}))instanceof t)})),J=z||!O((function(e){F.all(e).catch((function(){}))})),K=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;S((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,c,u,l=r[a++],f=i?l.ok:l.fail,p=l.resolve,d=l.reject,h=l.domain;try{f?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=o:(h&&h.enter(),s=f(o),h&&(h.exit(),u=!0)),s===l.promise?d(H("Promise-chain cycle")):(c=K(s))?c.call(s,p,d):p(s)):d(o)}catch(e){h&&!u&&h.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Z(e,t)}))}},Q=function(e,t,n){var r,o;X?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(o=u["on"+e])?o(r):"unhandledrejection"===e&&T("Unhandled promise rejection",n)},Z=function(e,t){w.call(u,(function(){var n,r=t.value;if(ee(t)&&(n=P((function(){Y?G.emit("unhandledRejection",r,e):Q("unhandledrejection",e,r)})),t.rejection=Y||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){w.call(u,(function(){Y?G.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)}))},ne=function(e,t,n,r){return function(o){e(t,n,o,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,$(e,t,!0))},oe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw H("Promise can't be resolved itself");var o=K(n);o?S((function(){var r={done:!1};try{o.call(n,ne(oe,e,r,t),ne(re,e,r,t))}catch(n){re(e,r,n,t)}})):(t.value=n,t.state=1,$(e,t,!1))}catch(n){re(e,{done:!1},n,t)}}};z&&(F=function(e){m(this,F,N),g(e),r.call(this);var t=L(this);try{e(ne(oe,this,t),ne(re,this,t))}catch(e){re(this,t,e)}},(r=function(e){M(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(F.prototype,{then:function(e,t){var n=U(this),r=V(x(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Y?G.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&$(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(re,e,t)},k.f=V=function(e){return e===F||e===i?new o(e):W(e)},c||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof q&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return j(F,q.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:z},{Promise:F}),h(F,N,!1,!0),v(N),i=l(N),s({target:N,stat:!0,forced:z},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:N,stat:!0,forced:c||z},{resolve:function(e){return j(c&&this===i?F:this,e)}}),s({target:N,stat:!0,forced:J},{all:function(e){var t=this,n=V(t),r=n.resolve,o=n.reject,i=P((function(){var n=g(t.resolve),i=[],a=0,s=1;E(e,(function(e){var c=a++,u=!1;i.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,o=P((function(){var o=g(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){var r=n(6),o=n(30),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(71),o=n(30),i=n(6)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(12);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r,o,i,a,s,c,u,l,f=n(5),p=n(39).f,d=n(24),h=n(84).set,v=n(85),y=f.MutationObserver||f.WebKitMutationObserver,g=f.process,m=f.Promise,b="process"==d(g),_=p(f,"queueMicrotask"),E=_&&_.value;E||(r=function(){var e,t;for(b&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},b?a=function(){g.nextTick(r)}:y&&!v?(s=!0,c=document.createTextNode(""),new y(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):m&&m.resolve?(u=m.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=function(){h.call(f,r)}),e.exports=E||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(5);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var r,o,i=n(5),a=n(86),s=i.process,c=s&&s.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){"use strict";var r=n(16),o=n(31),i=n(65),a=n(88),s=n(42);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=i.f(t),r=n.resolve,c=n.reject,u=a((function(){var n=o(t.resolve),i=[],a=0,c=1;s(e,(function(e){var o=a++,s=!1;i.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,i[o]={status:"fulfilled",value:e},--c||r(i))}),(function(e){s||(s=!0,i[o]={status:"rejected",reason:e},--c||r(i))}))})),--c||r(i)}));return u.error&&c(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(16),o=n(22),i=n(79),a=n(8),s=n(18),c=n(83),u=n(87),l=n(15);r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof i||i.prototype.finally||l(i.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){var r=n(131);e.exports=r},function(e,t,n){n(132);var r=n(26);e.exports=r.Symbol.keyFor},function(e,t,n){"use strict";var r=n(16),o=n(5),i=n(18),a=n(22),s=n(13),c=n(51),u=n(70),l=n(8),f=n(10),p=n(89),d=n(9),h=n(12),v=n(40),y=n(25),g=n(50),m=n(36),b=n(41),_=n(63),E=n(58),O=n(133),x=n(61),w=n(39),S=n(11),j=n(56),T=n(14),k=n(15),P=n(47),R=n(38),C=n(28),I=n(37),A=n(6),D=n(90),N=n(134),L=n(29),M=n(23),U=n(135).forEach,F=R("hidden"),H=A("toPrimitive"),B=M.set,G=M.getterFor("Symbol"),q=Object.prototype,V=o.Symbol,W=i("JSON","stringify"),Y=w.f,X=S.f,z=O.f,J=j.f,K=P("symbols"),$=P("op-symbols"),Q=P("string-to-symbol-registry"),Z=P("symbol-to-string-registry"),ee=P("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&l((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(q,t);r&&delete q[t],X(e,t,n),r&&e!==q&&X(q,t,r)}:X,oe=function(e,t){var n=K[e]=b(V.prototype);return B(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ie=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},ae=function(e,t,n){e===q&&ae($,t,n),h(e);var r=g(t,!0);return h(n),f(K,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:m(0,!1)})):(f(e,F)||X(e,F,m(1,{})),e[F][r]=!0),re(e,r,n)):X(e,r,n)},se=function(e,t){h(e);var n=y(t),r=_(n).concat(fe(n));return U(r,(function(t){s&&!ce.call(n,t)||ae(e,t,n[t])})),e},ce=function(e){var t=g(e,!0),n=J.call(this,t);return!(this===q&&f(K,t)&&!f($,t))&&(!(n||!f(this,t)||!f(K,t)||f(this,F)&&this[F][t])||n)},ue=function(e,t){var n=y(e),r=g(t,!0);if(n!==q||!f(K,r)||f($,r)){var o=Y(n,r);return!o||!f(K,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},le=function(e){var t=z(y(e)),n=[];return U(t,(function(e){f(K,e)||f(C,e)||n.push(e)})),n},fe=function(e){var t=e===q,n=z(t?$:y(e)),r=[];return U(n,(function(e){!f(K,e)||t&&!f(q,e)||r.push(K[e])})),r};(c||(k((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===q&&n.call($,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,m(1,e))};return s&&ne&&re(q,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return G(this).tag})),k(V,"withoutSetter",(function(e){return oe(I(e),e)})),j.f=ce,S.f=ae,w.f=ue,E.f=O.f=le,x.f=fe,D.f=function(e){return oe(A(e),e)},s&&(X(V.prototype,"description",{configurable:!0,get:function(){return G(this).description}}),a||k(q,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),U(_(ee),(function(e){N(e)})),r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(f(Q,t))return Q[t];var n=V(t);return Q[t]=n,Z[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(v(e))}}),W)&&r({target:"JSON",stat:!0,forced:!c||l((function(){var e=V();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(d(t)||void 0!==e)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,W.apply(null,o)}});V.prototype[H]||T(V.prototype,H,V.prototype.valueOf),L(V,"Symbol"),C[F]=!0},function(e,t,n){var r=n(25),o=n(58).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(26),o=n(10),i=n(90),a=n(11).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(43),o=n(57),i=n(40),a=n(59),s=n(136),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,f=6==e,p=5==e||f;return function(d,h,v,y){for(var g,m,b=i(d),_=o(b),E=r(h,v,3),O=a(_.length),x=0,w=y||s,S=t?w(d,O):n?w(d,0):void 0;O>x;x++)if((p||x in _)&&(m=E(g=_[x],x,b),e))if(t)S[x]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:c.call(S,g)}else if(l)return!1;return f?-1:u||l?l:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(e,t,n){var r=n(9),o=n(89),i=n(6)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";n(138),n(72),n(143),n(78);var r=n(26).Map,o=r.of;e.exports=function(){return o.apply("function"==typeof this?this:r,arguments)}},function(e,t,n){"use strict";var r=n(139),o=n(142);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){"use strict";var r=n(16),o=n(5),i=n(62),a=n(15),s=n(91),c=n(42),u=n(64),l=n(9),f=n(8),p=n(82),d=n(29),h=n(141);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),g=v?"set":"add",m=o[e],b=m&&m.prototype,_=m,E={},O=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof m||!(y||b.forEach&&!f((function(){(new m).entries().next()})))))_=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(i(e,!0)){var x=new _,w=x[g](y?{}:-0,1)!=x,S=f((function(){x.has(1)})),j=p((function(e){new m(e)})),T=!y&&f((function(){for(var e=new m,t=5;t--;)e[g](t,t);return!e.has(-0)}));j||((_=t((function(t,n){u(t,_,e);var r=h(new m,t,_);return null!=n&&c(n,r[g],r,v),r}))).prototype=b,b.constructor=_),(S||T)&&(O("delete"),O("has"),v&&O("get")),(T||w)&&O(g),y&&b.clear&&delete b.clear}return E[e]=_,r({global:!0,forced:_!=m},E),d(_,e),y||n.setStrong(_,e,v),_}},function(e,t,n){var r=n(8);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(9),o=n(77);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t,n){"use strict";var r=n(11).f,o=n(41),i=n(80),a=n(43),s=n(64),c=n(42),u=n(55),l=n(81),f=n(13),p=n(91).fastKey,d=n(23),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],e,n)})),d=v(t),y=function(e,t,n){var r,o,i=d(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=d(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=d(this),n=g(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=d(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){n(16)({target:"Map",stat:!0},{of:n(144)})},function(e,t,n){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},function(e,t,n){var r=n(146);e.exports=r},function(e,t,n){n(147);var r=n(26);e.exports=r.Object.assign},function(e,t,n){var r=n(16),o=n(148);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(13),o=n(8),i=n(63),a=n(61),s=n(56),c=n(40),u=n(57),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=i(l({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,l=1,f=a.f,p=s.f;o>l;)for(var d,h=u(arguments[l++]),v=f?i(h).concat(f(h)):i(h),y=v.length,g=0;y>g;)d=v[g++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(150),a=n(174),s=n(102),c=n(33),u=n(178),l=n(27),f=n(32),p=o(n(17).client,[]),d=function(){function e(t){var n=this;this.clientConfig=void 0,this.gaProperty="",this.deliveryPipe=void 0,this.player=void 0,this.renderHistory=p.emptyHistory,this.emits=p.clientEmits,this.eventDelegateRefs=f.cloneWithKeys(e.eventNames),this.playerIsFallback=!1,this.setup=function(e){var t=p.defaultConfig,o=n.clientConfig||p.defaultConfig,a=new Map,d=null;try{if("object"!=typeof e)throw new l.ClientConfigurationError("badConfig",null);if(!e.hasOwnProperty("storyId")||"string"!=typeof e.storyId)throw new l.ClientConfigurationError("storyId",null);if(!e.hasOwnProperty("accessToken")||"string"!=typeof e.accessToken)throw new l.ClientConfigurationError("accessToken",null);f.prepConfig(e,t),n.clientConfig=r(r({},o),e),d=new i.default(n.clientConfig.accessToken,n.clientConfig.environment,n.clientConfig.storyId,n.clientConfig.compositionId),a.set("experienceCreated",(function(e){return n.experienceCreated(e)})),a.set("gotExperience",(function(e){return n.gotExperience(e)})),a.set("gotMessage",(function(e){return n.gotMessage(e)})),a.set("internalError",(function(e){return n.internalError(e)})),n.deliveryPipe=new u.default({api:d,clientDelegates:a,environment:n.clientConfig.environment}),n.deliveryPipe.setMode(n.clientConfig.deliveryMode),n.deliveryPipe.setTimeoutInterval(n.clientConfig.pollRate),d.getGAProperty().then((function(e){var t=e.gaTrackingId;"string"==typeof t&&t.length>0&&(s.default.initialize(n.clientConfig.gaPlacement),n.gaProperty=t,void 0!==n.player&&n.player.setGaProperty(t))})).catch((function(e){var t=new l.HTTPError("httpFailure",null,e);c.default.trapError(t,n.clientConfig.storyId,null)}))}catch(t){var h=e&&e.storyId?e.storyId:"";c.default.trapError(t,h)}},this.bindPlayer=function(e,t){if(void 0===t&&(t=!1),n.clientConfig){var r=n.clientConfig.storyId;n.playerIsFallback=t,n.player=e,e.setStoryId(r),n.gaProperty&&e.setGaProperty(n.gaProperty)}},this.on=function(t,r){var o=n,i=o.eventDelegateRefs,a=o.eventDelegateRefs.ERROR;if(n.clientConfig){var s=n.clientConfig.storyId;try{if(!f.isFunc(r))throw new l.ClientConfigurationError("invalidCallbackType",t);if(!f.keyExists(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);i[t]=r}catch(e){c.default.trapError(e,s,a)}}},this.off=function(t){void 0===t&&(t="");var r=n,o=r.eventDelegateRefs,i=r.eventDelegateRefs.ERROR;if(n.clientConfig){var a=n.clientConfig.storyId;try{if(t){if(!f.keyExists(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);o[t]=null}else Object.keys(e.eventNames).forEach((function(e){o[e]=null}))}catch(e){c.default.trapError(e,a,i)}}},this.captureAnalytics=function(e){void 0===e&&(e=null);var t=n.eventDelegateRefs.ERROR;if(n.clientConfig){var r=n.clientConfig.storyId;try{if(!(e instanceof HTMLVideoElement))throw new l.PlayerConfigurationError("invalidPlayerRef",null);n.bindPlayer(new a.default(e),!0)}catch(e){c.default.trapError(e,r,t)}}},this.getExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.clientConfig.storyId,a=r.eventDelegateRefs,s=a.GOT_EXPERIENCE,u=a.ERROR;try{if(null===o&&!f.isFunc(s))throw new l.ClientConfigurationError("badConfigOnGet",e.eventNames.GOT_EXPERIENCE);t.length>p.uuidLength&&(t=t.substring(0,p.uuidLength)),n.deliveryPipe.doGetExperience(t)}catch(e){c.default.trapError(e,i,u)}}},this.createExperience=function(t,r){if(void 0===r&&(r=!0),n.clientConfig){var o=n,i=o.player,a=o.playerIsFallback,s=o.clientConfig.storyId,u=o.emits.adding,p=o.eventDelegateRefs,d=p.GOT_EXPERIENCE,h=p.EXPERIENCE_CREATED,v=p.UPLOAD_PROGRESS,y=p.ERROR;try{if(!r&&!f.isFunc(h))throw new l.ClientConfigurationError("badConfigOnPostNoRender",e.eventNames.EXPERIENCE_CREATED);if(r&&(null===i||a)&&!f.isFunc(d))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);r&&n.gotMessage({id:void 0,status:u}),n.deliveryPipe.createPrestep(t,r,v)}catch(e){c.default.trapError(e,s,y)}}},this.updateHistory=function(e,t){n.renderHistory[e]!==t&&(n.renderHistory[e]=t)},this.experienceCreated=function(e){var t=n,r=t.emits,o=r.adding,i=r.added,a=t.renderHistory.prevMessage,s=t.eventDelegateRefs,c=s.EXPERIENCE_CREATED,u=(s.STATUS_UPDATE,e.id);f.isFunc(c)&&c(e),a!==o&&a||n.gotMessage({id:u,status:i}),n.updateHistory("prevExperienceId",u)},this.gotExperience=function(e){var t=n,r=t.player,o=t.clientConfig.storyId,i=t.eventDelegateRefs,a=i.GOT_EXPERIENCE,s=i.ERROR,u=t.emits,p=u.added,d=u.finishedPolling,h=t.renderHistory.prevMessage,v=e.id,y=(e.output,e.rendering,e.moderation_status);try{if("rejected"===y)throw new l.ModerationError("rejection",v);h===p&&n.gotMessage({id:v,status:d}),f.isFunc(a)&&a(e),void 0!==r&&r.experienceGenerated(e),n.updateHistory("prevExperienceId",v),n.updateHistory("prevMessage","")}catch(e){c.default.trapError(e,o,s)}},this.gotMessage=function(e){var t=n.eventDelegateRefs.STATUS_UPDATE;f.isFunc(t)&&(t(e),n.updateHistory("prevMessage",e.status))},this.internalError=function(e){var t=n,r=t.clientConfig.storyId,o=t.eventDelegateRefs.ERROR;c.default.trapError(e,r,o)},this.setup(t)}return e.eventNames=p.eventNames,e}();t.default=d},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(151),a=n(154),s=n(66),c=n(32),u=o(n(17).api,[]),l=function(){function e(t,n,o,l){var f,p=this;void 0===l&&(l=null),this.http=null,this.storyId="",this.compositionId="",this.getGAProperty=function(){return new Promise((function(e,t){p.http.get("/story/"+p.storyId+"/property").then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.get=function(e){return new Promise((function(t,n){p.http.get("/experience/"+e+"?r="+Math.random()).then((function(e){t(e.data)})).catch((function(e){n(e)}))}))},this.create=function(e,t,n,r){void 0===r&&(r=null);var o=t?"/experience/render":"/experience",i=c.inventoryToFormData(p.storyId,e,p.compositionId),a={onUploadProgress:function(e){return p.uploadProgress(e,r)}};return i.append("id",n),new Promise((function(e,t){p.http.post(o,i,a).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.triggerRender=function(e){var t=p.http.post;return new Promise((function(n,r){t("/experience/"+e+"/trigger-event").then((function(e){var t=e.data.job_id;n(t)})).catch((function(e){r(e)}))}))},this.getAuthHeader=function(e){var t,n,r=u.jwt,o=u.hmac;try{return i(e),(t={})[r]=e,t}catch(t){return(n={})[o]=e,n}},this.uploadProgress=function(e,t){if(void 0===t&&(t=null),t){var n=e.loaded,r=e.total;t(Math.round(n/r*100))}},this.shouldRequestBeRetried=function(e){return("object"!=typeof e.config||!e.config.hasOwnProperty("url")||"/experience/render"!==e.config.url)&&a.isNetworkOrIdempotentRequestError(e)};var d=u.version,h=u.currentVersion,v={retryDelay:e.retry.exponentialDelay,retryCondition:this.shouldRequestBeRetried};this.storyId=o,this.compositionId=l,this.http=s.default.create({baseURL:u[n],headers:r(r({},this.getAuthHeader(t)),(f={},f[d]=h,f))}),e.retry(this.http,v)}return e.retry=a,e}();t.default=l},function(e,t,n){"use strict";var r=n(152);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){var r=n(153);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}},function(e,t,n){e.exports=n(155).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=a,t.isRetryableError=u,t.isSafeRequestError=l,t.isIdempotentRequestError=f,t.isNetworkOrIdempotentRequestError=p,t.exponentialDelay=h,t.default=y;var r,o=n(156),i=(r=o)&&r.__esModule?r:{default:r};function a(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,i.default)(e)}var s=["get","head","options"],c=s.concat(["put","delete"]);function u(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function l(e){return!!e.config&&(u(e)&&-1!==s.indexOf(e.config.method))}function f(e){return!!e.config&&(u(e)&&-1!==c.indexOf(e.config.method))}function p(e){return a(e)||f(e)}function d(){return 0}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e),n=.2*t*Math.random();return t+n}function v(e){var t=e["axios-retry"]||{};return t.retryCount=t.retryCount||0,e["axios-retry"]=t,t}function y(e,t){e.interceptors.request.use((function(e){return v(e).lastRequestTime=Date.now(),e})),e.interceptors.response.use(null,(function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e["axios-retry"])}(r,t),i=o.retries,a=void 0===i?3:i,s=o.retryCondition,c=void 0===s?p:s,u=o.retryDelay,l=void 0===u?d:u,f=o.shouldResetTimeout,h=void 0!==f&&f,y=v(r);if(c(n)&&y.retryCount<a){y.retryCount+=1;var g=l(y.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!h&&r.timeout&&y.lastRequestTime){var m=Date.now()-y.lastRequestTime;r.timeout=Math.max(r.timeout-m-g,1)}return r.transformRequest=[function(e){return e}],new Promise((function(t){return setTimeout((function(){return t(e(r))}),g)}))}return Promise.reject(n)}))}y.isNetworkError=a,y.isSafeRequestError=l,y.isIdempotentRequestError=f,y.isNetworkOrIdempotentRequestError=p,y.exponentialDelay=h,y.isRetryableError=u},function(e,t,n){"use strict";var r=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],o=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];e.exports=function(e){return!e||!e.code||(-1!==r.indexOf(e.code)||-1===o.indexOf(e.code))}},function(e,t,n){"use strict";var r=n(7),o=n(92),i=n(158),a=n(99);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(95));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(100),c.CancelToken=n(171),c.isCancel=n(94),c.all=function(e){return Promise.all(e)},c.spread=n(172),c.isAxiosError=n(173),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(7),o=n(93),i=n(159),a=n(160),s=n(99);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(7);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(7),o=n(161),i=n(94),a=n(95);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(98);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(7);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(167),o=n(168);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(7),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(7);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(100);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,t)||this;return n.experienceGenerated=function(e){var t=e.id;n.setExperienceId(t)},n}return o(t,e),t}(n(101).default);t.default=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e){e.exports=JSON.parse('{"moderation":{"rejection":"This experience was rejected."},"clientConfiguration":{"badConfig":"Your Imposium configuration is an invalid type.","storyId":"An undefined or invalid storyId was set in your Imposium configuration.","accessToken":"An undefined or invalid accessToken was set in your Imposium configuration.","invalidEventName":"Invalid client event name.","invalidCallbackType":"The callback reference set for this client event is not of type function.","badConfigOnGet":"You cannot call client.getExperience(...) without using the Imposium player or setting the GOT_EXPERIENCE event.","bagConfigOnPostRender":"You cannot call client.createExperience({...}) without using the Imposium player or setting the GOT_EXPERIENCE event.","badConfigOnPostNoRender":"You cannot call client.createExperience({...}, false) without setting the EXPERIENCE_CREATED event."},"playerConfiguration":{"badClient":"You must provide a valid Imposium client reference to the player.","invalidPlayerRef":"No reference to an HTML5 video element was detected.","invalidEventName":"Invalid player event name.","invalidCallbackType":"The callback reference set for this player event is not of type function.","eventNotConfigured":"You cannot invoke this player event without a callback set.","badQualityOverride":"The quality specified does not exist for this experience."},"network":{"httpFailure":"Unable to process request to the Imposium API.","tcpFailure":"Socket connection failed while processing the experience.","errorOverTcp":"An error occured on the Imposium web servers while processing the experience.","messageParseFailure":"Message data from Imposium was malformed."},"uncaught":{"generic":"Something unexpected went wrong."}}')},function(e){e.exports=JSON.parse('{"client":{"nodeAnalytics":"Sorry, analytics are not currently available in NodeJS."},"network":{"tcpFailure":"Unable to reach Imposium while processing this experience, retrying..."},"playerFailure":{"seekNotReady":"Seek can\'t be called until the video metadata has loaded, please try again shortly.","invalidSeekTime":"Could not seek to time outside of current video duration.","invalidVolume":"Could not set volume outside of range (double) 0.0 - 1.0."},"analytics":{"requestFailed":"Failed to record Imposium metric."}}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(179),o=n(32),i=n(27),a=function(){function e(t){var n=this;this.mode="",this.environment="",this.shortPollTimeout=-1,this.pollInterval=5e3,this.api=null,this.consumer=null,this.clientDelegates=null,this.configCache=new Map,this.setMode=function(e){n.mode=e},this.setTimeoutInterval=function(e){n.pollInterval=e},this.doGetExperience=function(e){n.api.get(e).then((function(t){var r=t.output,o=t.rendering,i=void 0!==r&&Object.keys(r).length>0;i&&(clearTimeout(n.shortPollTimeout),n.clientDelegates.get("gotExperience")(t)),i||o||n.startRender(e),!i&&o&&n.consumeOnRefresh(e)})).catch((function(t){var r=new i.HTTPError("httpFailure",e,t);n.clientDelegates.get("internalError")(r)}))},this.createPrestep=function(t,r,i,a){void 0===a&&(a=0);var s=o.generateUUID(),c={inventory:t,render:r,uuid:s,uploadProgress:i};clearTimeout(n.shortPollTimeout),r||n.doCreate(c,!1,a),r&&n.mode===e.POLL_MODE&&n.doCreate(c,!0,a),r&&n.mode===e.WS_MODE&&(n.configCache.set(s,c),n.startConsumer(s).then((function(){return n.doCreate(c,!1,a)})))},this.startRender=function(t){n.mode===e.WS_MODE?n.startConsumer(t).then((function(){n.api.triggerRender(t).catch((function(e){var r=new i.HTTPError("httpFailure",t,e);n.killConsumer(),n.clientDelegates.get("internalError")(r)}))})):n.api.triggerRender(t).then((function(){n.doGetExperience(t)})).catch((function(e){var r=new i.HTTPError("httpFailure",t,e);n.clientDelegates.get("internalError")(r)}))},this.consumeOnRefresh=function(t){n.mode===e.WS_MODE?n.startConsumer(t):(clearTimeout(n.shortPollTimeout),n.shortPollTimeout=window.setTimeout((function(){return n.doGetExperience(t)}),n.pollInterval))},this.doCreate=function(e,t,r){void 0===t&&(t=!1);var o=e.inventory,a=e.render,s=e.uuid,c=e.uploadProgress;n.api.create(o,a,s,c).then((function(e){n.configCache.delete(s),t&&n.doGetExperience(e.id),n.clientDelegates.get("experienceCreated")(e)})).catch((function(t){if(t.response&&400===t.response.status&&r<3)n.configCache.delete(s),r+=1,n.killConsumer().then((function(){n.createPrestep(e.inventory,e.render,e.uploadProgress,r)}));else{var o=new i.HTTPError("httpFailure",s,t);n.clientDelegates.get("internalError")(o),n.killConsumer()}}))},this.startConsumer=function(e){var t=n,o=t.clientDelegates,i=t.environment,a=new Map;return a.set("gotExperience",(function(e){return o.get("gotExperience")(e)})),a.set("gotMessage",(function(e){return o.get("gotMessage")(e)})),a.set("internalError",(function(e){return o.get("internalError")(e)})),a.set("consumerFailure",(function(e,t){return n.consumerFailure(e,t)})),new Promise((function(t){n.killConsumer().then((function(){n.consumer=new r.default({experienceId:e,environment:i,deliveryDelegates:a}),n.consumer.connect().then((function(){t()}))}))}))},this.killConsumer=function(){return new Promise((function(e){if(!n.consumer)return e();n.consumer.destroy().then((function(){return n.consumer=null,e()}))}))},this.consumerFailure=function(t,r){var o=n.configCache.get(t);n.setMode(e.POLL_MODE),r.wasConnected&&n.clientDelegates.get("internalError")(r),void 0!==o?(n.configCache.delete(t),n.createPrestep(o.inventory,o.render,o.uploadProgress)):n.doGetExperience(t)},this.api=t.api,this.clientDelegates=t.clientDelegates,this.environment=t.environment}return e.WS_MODE="ws",e.POLL_MODE="poll",e}();t.default=a},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(180),i=n(27),a=r(n(17).messageConsumer,[]),s=function(){function e(t){var n=this;this.environment="",this.experienceId=null,this.deliveryDelegates=null,this.stomp=null,this.connect=function(){var e=n,t=e.experienceId,r=e.environment,i=new Map;return i.set("validateFrameData",(function(e){return n.validateFrameData(e)})),i.set("socketFailure",(function(e,t){return n.socketFailure(e,t)})),n.stomp=new o.default({experienceId:t,consumerDelegates:i}),new Promise((function(e){n.stomp.init(r).then((function(){e()}))}))},this.destroy=function(){return new Promise((function(e){if(!n.stomp)return e();n.stomp.forceClose().then((function(){e()}))}))},this.validateFrameData=function(t){var r=e.EMITS,o=r.scene,a=r.message,s=r.complete,c=n,u=(c.stomp,c.experienceId),l=c.deliveryDelegates,f=t.body;try{var p=JSON.parse(f);switch(p.event){case s:n.destroy();break;case a:n.emitMessageData(p);break;case o:delete p.event,n.emitSceneData(p)}}catch(e){var d=new i.SocketError("messageParseFailed",u,e,!0);l.get("internalError")(d)}},this.emitMessageData=function(e){var t=n.deliveryDelegates,r=e.status,o=e.id;try{if(r===a.errorOverTcp)throw new i.SocketError("errorOverTcp",o,null,!0);t.get("gotMessage")(e)}catch(e){t.get("internalError")(e)}},this.emitSceneData=function(e){var t=n.deliveryDelegates,r=e.id;if("rejected"===e.moderation_status){var o=new i.ModerationError("rejection",r);t.get("internalError")(o)}else t.get("gotExperience")(e)},this.socketFailure=function(e,t){var r=n,o=r.experienceId,a=r.deliveryDelegates,s=new i.SocketError("tcpFailure",o,e,t);n.stomp=null,a.get("consumerFailure")(o,s)},this.experienceId=t.experienceId,this.environment=t.environment,this.deliveryDelegates=t.deliveryDelegates}return e.EMITS=a.emitTypes,e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(181),i=n(33),a=r(n(17).stomp,[]),s=function(){function e(t){var n=this;this.socket=null,this.client=null,this.subscription=null,this.currRetry=0,this.didConnect=!1,this.init=function(t){return n.socket=new WebSocket(a[t]),n.client=o.over(n.socket),n.client.debug=e.DEBUG_OFF,new Promise((function(r){n.client.connect(e.USERNAME,e.PASSWORD,(function(){return n.doSubscribe(r)}),(function(e){return n.onError(t,e)}))}))},this.forceClose=function(){var t=e.OPEN_STATE,r=n,o=r.client,i=(r.client.connected,r.subscription);return new Promise((function(e){if(o.ws.readyState>t)return e();i&&i.unsubscribe(),o.disconnect((function(){n.socket=null,e()}))}))},this.doSubscribe=function(t){var r=e.EXCHANGE,o=n,i=o.experienceId,a=o.client,s=o.consumerDelegates,c=""+r+i;n.didConnect=!0,n.subscription=a.subscribe(c,s.get("validateFrameData")),t()},this.onError=function(t,r){var o=n,a=o.currRetry,s=o.consumerDelegates;a<e.MAX_RETRIES?(i.default.logWarning("network","tcpFailure"),n.currRetry++,n.forceClose().then((function(){n.init(t)}))):s.get("socketFailure")(r,n.didConnect)},this.experienceId=t.experienceId,this.consumerDelegates=t.consumerDelegates}return e.EXCHANGE=a.exchange,e.USERNAME=a.username,e.PASSWORD=a.password,e.OPEN_STATE=1,e.MAX_RETRIES=a.maxRetries,e.DEBUG_OFF=function(){},e}();t.default=s},function(e,t,n){e.exports=function(){"use strict";var e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r={V1_0:"1.0",V1_1:"1.1",V1_2:"1.2",supportedVersions:function(){return"1.2,1.1,1.0"},supportedProtocols:function(){return["v10.stomp","v11.stomp","v12.stomp"]}},o={"v10.stomp":r.V1_0,"v11.stomp":r.V1_1,"v12.stomp":r.V1_2};function i(e,t){var n=o[e];return!n&&t&&t("DEPRECATED: "+e+" is not a recognized STOMP version. In next major client version, this will close the connection."),n||r.V1_2}var a="\n",s="\0",c=function(e){return e.replace(/^\s+|\s+$/g,"")};function u(e){var t=String.fromCharCode.apply(String,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}));return decodeURIComponent(t)}function l(){return(new Date).getTime()+"-"+Math.floor(1e3*Math.random())}var f=function(){function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e(this,n),this.command=t,this.headers=r,this.body=o}return t(n,[{key:"toString",value:function(){var e,t=this,n=[this.command],r=!1===this.headers["content-length"];return r&&delete this.headers["content-length"],Object.keys(this.headers).forEach((function(e){var r=t.headers[e];n.push(e+":"+r)})),this.body&&!r&&n.push("content-length:"+((e=this.body)?encodeURIComponent(e).match(/%..|./g).length:0)),n.push(a+this.body),n.join(a)}}],[{key:"unmarshallSingle",value:function(e){var t=e.search(new RegExp(a+a)),r=e.substring(0,t).split(a),o=r.shift(),i={},u="",l=t+2,f=!0,p=!1,d=void 0;try{for(var h,v=r.reverse()[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value,g=y.indexOf(":");i[c(y.substring(0,g))]=c(y.substring(g+1))}}catch(e){p=!0,d=e}finally{try{!f&&v.return&&v.return()}finally{if(p)throw d}}if(i["content-length"]){var m=parseInt(i["content-length"],10);u=(""+e).substring(l,l+m)}else for(var b=null,_=l;_<e.length&&(b=e.charAt(_))!==s;_++)u+=b;return new n(o,i,u)}},{key:"unmarshall",value:function(e){var t=e.split(new RegExp(s+a+"*")),r=t.slice(0,-1),o=t.slice(-1)[0],i={frames:r.map((function(e){return n.unmarshallSingle(e)})),partial:""};return o===a||-1!==o.search(RegExp(s+a+"*$"))?i.frames.push(n.unmarshallSingle(o)):i.partial=o,i}},{key:"marshall",value:function(e,t,r){return new n(e,t,r).toString()+s}}]),n}(),p=function(){function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,o);var r=n.binary,i=void 0!==r&&r,a=n.heartbeat,s=void 0===a?{outgoing:1e4,incoming:1e4}:a,c=n.debug,u=void 0===c||c,l=n.protocols,f=void 0===l?[]:l;this.ws=t,this.ws.binaryType="arraybuffer",this.isBinary=!!i,this.hasDebug=!!u,this.connected=!1,this.heartbeat=s||{outgoing:0,incoming:0},this.maxWebSocketFrameSize=16384,this.subscriptions={},this.partialData="",this.protocols=f}return t(o,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).log.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=this._parseConnect.apply(this,arguments),o=n(t,3),s=o[0],c=o[1],l=o[2];this.connectCallback=c,this.debug("Opening Web Socket..."),this.ws.onmessage=function(t){var n=t.data;if(t.data instanceof ArrayBuffer&&(n=u(new Uint8Array(t.data))),e.serverActivity=Date.now(),n!==a){e.debug("<<< "+n);var o=f.unmarshall(e.partialData+n);e.partialData=o.partial,o.frames.forEach((function(t){switch(t.command){case"CONNECTED":e.debug("connected to server "+t.headers.server),e.connected=!0,e.version=t.headers.version,e._setupHeartbeat(t.headers),c&&c(t);break;case"MESSAGE":var n=t.headers.subscription,o=e.subscriptions[n]||e.onreceive;if(o){var i=e.version===r.V1_2&&t.headers.ack||t.headers["message-id"];t.ack=e.ack.bind(e,i,n),t.nack=e.nack.bind(e,i,n),o(t)}else e.debug("Unhandled received MESSAGE: "+t);break;case"RECEIPT":e.onreceipt&&e.onreceipt(t);break;case"ERROR":l&&l(t);break;default:e.debug("Unhandled frame: "+t)}}))}else e.debug("<<< PONG")},this.ws.onclose=function(t){e.debug("Whoops! Lost connection to "+e.ws.url+":",{event:t}),e._cleanUp(),l&&l(t)},this.ws.onopen=function(){e.debug("Web Socket Opened..."),s["accept-version"]=i(e.ws.protocol||e.protocols[0],e.debug.bind(e)),s["heart-beat"]||(s["heart-beat"]=[e.heartbeat.outgoing,e.heartbeat.incoming].join(",")),e._transmit("CONNECT",s)},this.ws.readyState===this.ws.OPEN&&this.ws.onopen()}},{key:"disconnect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._transmit("DISCONNECT",t),this.ws.onclose=null,this.ws.close(),this._cleanUp(),e&&e()}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.assign({},n);r.destination=e,this._transmit("SEND",r,t)}},{key:"begin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"tx-"+l();return this._transmit("BEGIN",{transaction:e}),{id:e,commit:this.commit.bind(this,e),abort:this.abort.bind(this,e)}}},{key:"commit",value:function(e){this._transmit("COMMIT",{transaction:e})}},{key:"abort",value:function(e){this._transmit("ABORT",{transaction:e})}},{key:"ack",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.assign({},n),i=this.version===r.V1_2?"id":"message-id";o[i]=e,o.subscription=t,this._transmit("ACK",o)}},{key:"nack",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.assign({},n),i=this.version===r.V1_2?"id":"message-id";o[i]=e,o.subscription=t,this._transmit("NACK",o)}},{key:"subscribe",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.assign({},n);return r.id||(r.id="sub-"+l()),r.destination=e,this.subscriptions[r.id]=t,this._transmit("SUBSCRIBE",r),{id:r.id,unsubscribe:this.unsubscribe.bind(this,r.id)}}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},t);delete this.subscriptions[e],n.id=e,this._transmit("UNSUBSCRIBE",n)}},{key:"_cleanUp",value:function(){this.connected=!1,clearInterval(this.pinger),clearInterval(this.ponger)}},{key:"_transmit",value:function(e,t,n){var r=f.marshall(e,t,n);this.debug(">>> "+r,{frame:{command:e,headers:t,body:n}}),this._wsSend(r)}},{key:"_wsSend",value:function(e){var t,n;for(this.isBinary&&(t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})),n=Array.prototype.map.call(t,(function(e){return e.charCodeAt(0)})),e=new Uint8Array(n)),this.debug(">>> length "+e.length);;){if(!(e.length>this.maxWebSocketFrameSize))return this.ws.send(e);this.ws.send(e.slice(0,this.maxWebSocketFrameSize)),e=e.slice(this.maxWebSocketFrameSize),this.debug("remaining = "+e.length)}}},{key:"_setupHeartbeat",value:function(e){var t=this;if(this.version===r.V1_1||this.version===r.V1_2){var o=(e["heart-beat"]||"0,0").split(",").map((function(e){return parseInt(e,10)})),i=n(o,2),s=i[0],c=i[1];if(0!==this.heartbeat.outgoing&&0!==c){var u=Math.max(this.heartbeat.outgoing,c);this.debug("send PING every "+u+"ms"),this.pinger=setInterval((function(){t._wsSend(a),t.debug(">>> PING")}),u)}if(0!==this.heartbeat.incoming&&0!==s){var l=Math.max(this.heartbeat.incoming,s);this.debug("check PONG every "+l+"ms"),this.ponger=setInterval((function(){var e=Date.now()-t.serverActivity;e>2*l&&(t.debug("did not receive server activity for the last "+e+"ms"),t.ws.close())}),l)}}}},{key:"_parseConnect",value:function(){for(var e={},t=void 0,n=void 0,r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];switch(o.length){case 2:e=o[0],t=o[1];break;case 3:o[1]instanceof Function?(e=o[0],t=o[1],n=o[2]):(e.login=o[0],e.passcode=o[1],t=o[2]);break;case 4:e.login=o[0],e.passcode=o[1],t=o[2],n=o[3];break;default:e.login=o[0],e.passcode=o[1],t=o[2],n=o[3],e.host=o[4]}return[e,t,n]}}]),o}();return{Frame:f,VERSIONS:r,client:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new WebSocket(e,t.protocols||r.supportedProtocols());return new p(n,t)},over:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new(Function.prototype.bind.apply(p,[null].concat(t)))}}}()},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(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.defineProperty(t,"__esModule",{value:!0});var s=n(66),c=n(101),u=n(33),l=n(27),f=n(32),p=n(17).videoPlayer,d=window.hls,h=function(e){function t(n,r,o){void 0===o&&(o=p.defaultConfig);var c=e.call(this,n)||this;c.eventDelegateRefs={play:{callback:null,native:!0},pause:{callback:null,native:!0},ended:{callback:null,native:!0},error:{callback:null,native:!0},seeked:{callback:null,native:!0},timeupdate:{callback:null,native:!0},volumechanged:{callback:null,native:!0},muted:{callback:null,native:!1},controlsset:{callback:null,native:!1}},c.hlsSupport="",c.hlsPlayer=null,c.experienceCache=[],c.clientRef=null,c.imposiumPlayerConfig=null,c.init=function(e){var t=p.defaultConfig;for(var n in f.prepConfig(e,t),c.imposiumPlayerConfig=i(i({},t),e),c.imposiumPlayerConfig)c.imposiumPlayerConfig[n]&&(c.node[n]=c.imposiumPlayerConfig[n])},c.experienceGenerated=function(e){c.experienceCache;var t=c.imposiumPlayerConfig.qualityOverride,n=e.id,r=e.output,o=r.videos,i=r.images,a="";c.setExperienceId(n),i&&i.hasOwnProperty("poster")&&(a=i.poster),t?c.doQualityOverride(o,a):c.doQualityAssessment(o,a)},c.on=function(e,n){var r=c,o=r.storyId,i=r.eventDelegateRefs;try{if(!f.isFunc(n))throw new l.PlayerConfigurationError("invalidCallbackType",e);if(!f.keyExists(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var a=i[e];a.callback=n,a.native&&c.node.addEventListener(e,a.callback)}catch(e){u.default.trapError(e,o)}},c.off=function(e){var n=c,r=n.storyId,o=n.eventDelegateRefs;try{if(!f.keyExists(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var i=o[e];i.native&&c.node.removeEventListener(e,i.callback),i.callback=null}catch(e){u.default.trapError(e,r)}},c.play=function(){c.node.play()},c.pause=function(){c.node.pause()},c.getPlaybackState=function(){return c.node.paused?"paused":"playing"},c.getPosition=function(){return c.node.currentTime},c.getDuration=function(){return c.node.duration},c.seek=function(e){var t=c.node.duration;isNaN(t)?u.default.logWarning("playerFailure","seekNotReady"):(e=Math.floor(e),f.inRangeNumeric(e,0,t)?c.node.currentTime=e:u.default.logWarning("playerFailure","invalidSeekTime"))},c.getMute=function(){return c.node.muted},c.setMute=function(e){var t=c.eventDelegateRefs.muted.callback;c.node.muted=e,t&&t()},c.getVolume=function(){return c.node.volume},c.setVolume=function(e){var t=p.volumeMin,n=p.volumeMax;e=Math.round(10*e)/10,f.inRangeNumeric(e,t,n)?c.node.volume=e:u.default.logWarning("playerFailure","invalidVolume")},c.getControls=function(){return c.node.controls},c.setControls=function(e){var t=c.eventDelegateRefs.controlsset;c.node.controls=e,t&&t.callback()},c.replay=function(){c.pauseIfPlaying(),c.node.currentTime=0,c.node.play()},c.remove=function(){var e,t,n=c.eventDelegateRefs,r=p.defaultConfig;c.pauseIfPlaying();try{for(var o=a(Object.keys(n)),s=o.next();!s.done;s=o.next()){var u=s.value;c.off(n[u])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}c.imposiumPlayerConfig=i({},r),c.node=null},c.setupHls=function(){var e=t.hlsSupportLevels,n=e.NATIVE,r=e.HLSJS;c.node.canPlayType(t.STREAM_TYPE)?c.hlsSupport=n:void 0!==d&&d.isSupported()&&(c.hlsSupport=r)},c.doQualityOverride=function(e,t){var n=c.storyId,r=c.imposiumPlayerConfig.qualityOverride;try{if(!e.hasOwnProperty(r))throw new l.PlayerConfigurationError("badQualityOverride",null);c.setPlayerData(e[r].url,!0,t)}catch(e){u.default.trapError(e,n)}},c.doQualityAssessment=function(e,n){var r=c.hlsSupport,o=t.compressionLevels.STREAM;if(e.hasOwnProperty(o)&&r)c.setPlayerData(e[o].url,!0,n);else{var i=Object.keys(e);1===i.length?c.setPlayerData(e[i[0]].url,!1,n):c.checkBandwidth(e).then((function(t){c.setPlayerData(e[t].url,!1,n)})).catch((function(t){c.setPlayerData(e[t].url,!1,n)}))}},c.sampleBandwidth=function(){var e=t.TEST_IMAGE+"?bust="+Math.random(),n={responseType:"blob",timeout:1500};return new Promise((function(t,r){var o=(new Date).getTime();s.default.get(e,n).then((function(e){var n=e.data.size;t(f.calculateMbps(o,n))})).catch((function(e){r(e)}))}))},c.checkBandwidth=function(e){t.bandwidthRatings,t.compressionLevels;for(var n=t.BANDWIDTH_SAMPLES,r=[],o=Object.keys(e).filter((function(e){return"m3u8"!==e})),i=0;i<n;i++)r.push(c.sampleBandwidth());return new Promise((function(t,n){Promise.all(r).then((function(n){var r=f.calculateAverageMbps(n),i={};o.forEach((function(t){var n=e[t],r=n.width,o=n.height;i[r*o/1e5]=t}));var a=Object.keys(i).map((function(e){return parseFloat(e)})).reduce((function(e,t){return Math.abs(e-r)<Math.abs(t-r)?e:t}));t(i[a])})).catch((function(e){n(o.slice(-1).pop())}))}))},c.setPlayerData=function(e,n,r){void 0===r&&(r=null);var o=c.hlsSupport,i=t.hlsSupportLevels.HLSJS;n&&o===i?(c.hlsPlayer&&c.hlsPlayer.destroy(),c.hlsPlayer=new d,c.hlsPlayer.attachMedia(c.node),c.hlsPlayer.loadSource(e)):c.node.src=e,r&&(c.node.poster=r)},c.pauseIfPlaying=function(){c.node.paused||c.node.pause()};var h=!(!r||!r.clientConfig);try{if(!h)throw new l.PlayerConfigurationError("badClient",null);n instanceof HTMLVideoElement&&(r.bindPlayer(c),c.init(o),c.setupHls())}catch(e){var v=h?r.clientConfig.storyId:"";u.default.trapError(e,v)}return c}return o(t,e),t.events={PLAY:"play",PAUSE:"pause",COMPLETE:"ended",ERROR:"error",SEEK:"seeked",TIME:"timeupdate",VOLUME:"volumechange",MUTE:"muted",CONTROLS:"controlsset"},t.STREAM_TYPE=p.streamType,t.BANDWIDTH_SAMPLES=p.bandwidthSamples,t.TEST_IMAGE=p.testImage,t.bandwidthRatings={LOW:p.bandwidth.low,MID:p.bandwidth.mid},t.compressionLevels={STREAM:p.compression.stream,LOW:p.compression.low,MID:p.compression.mid,HIGH:p.compression.high},t.hlsSupportLevels={NATIVE:p.hlsSupportLevels.native,HLSJS:p.hlsSupportLevels.hlsjs},t}(c.default);t.default=h},function(e,t,n){"use strict";n.r(t),n.d(t,"Severity",(function(){return a})),n.d(t,"Status",(function(){return s})),n.d(t,"addGlobalEventProcessor",(function(){return u.b})),n.d(t,"addBreadcrumb",(function(){return y})),n.d(t,"captureException",(function(){return p})),n.d(t,"captureEvent",(function(){return h})),n.d(t,"captureMessage",(function(){return d})),n.d(t,"configureScope",(function(){return v})),n.d(t,"getHubFromCarrier",(function(){return l.c})),n.d(t,"getCurrentHub",(function(){return l.b})),n.d(t,"Hub",(function(){return l.a})),n.d(t,"Scope",(function(){return u.a})),n.d(t,"setContext",(function(){return g})),n.d(t,"setExtra",(function(){return _})),n.d(t,"setExtras",(function(){return m})),n.d(t,"setTag",(function(){return E})),n.d(t,"setTags",(function(){return b})),n.d(t,"setUser",(function(){return O})),n.d(t,"withScope",(function(){return x})),n.d(t,"BrowserClient",(function(){return fe})),n.d(t,"defaultIntegrations",(function(){return He})),n.d(t,"forceLoad",(function(){return Ve})),n.d(t,"init",(function(){return Be})),n.d(t,"lastEventId",(function(){return qe})),n.d(t,"onLoad",(function(){return We})),n.d(t,"showReportDialog",(function(){return Ge})),n.d(t,"flush",(function(){return Ye})),n.d(t,"close",(function(){return Xe})),n.d(t,"wrap",(function(){return ze})),n.d(t,"SDK_NAME",(function(){return ue})),n.d(t,"SDK_VERSION",(function(){return le})),n.d(t,"Integrations",(function(){return $e})),n.d(t,"Transports",(function(){return i}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return pe})),n.d(r,"InboundFilters",(function(){return he}));var o={};n.r(o),n.d(o,"GlobalHandlers",(function(){return Le})),n.d(o,"TryCatch",(function(){return _e})),n.d(o,"Breadcrumbs",(function(){return De})),n.d(o,"LinkedErrors",(function(){return Me})),n.d(o,"UserAgent",(function(){return Fe}));var i={};n.r(i),n.d(i,"BaseTransport",(function(){return oe})),n.d(i,"FetchTransport",(function(){return ae})),n.d(i,"XHRTransport",(function(){return se}));var a,s,c=n(0);!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(a||(a={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(a||(a={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(s||(s={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(s||(s={}));var u=n(44),l=n(184);function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object(l.b)();if(r&&r[e])return r[e].apply(r,c.d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function p(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return f("captureException",e,{originalException:e,syntheticException:t})}function d(e,t){var n;try{throw new Error(e)}catch(e){n=e}return f("captureMessage",e,t,{originalException:e,syntheticException:n})}function h(e){return f("captureEvent",e)}function v(e){f("configureScope",e)}function y(e){f("addBreadcrumb",e)}function g(e,t){f("setContext",e,t)}function m(e){f("setExtras",e)}function b(e){f("setTags",e)}function _(e,t){f("setExtra",e,t)}function E(e,t){f("setTag",e,t)}function O(e){f("setUser",e)}function x(e){f("withScope",e)}var w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var S=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,w(r,n.prototype),r}return c.b(t,e),t}(Error),j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,T=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=j.exec(e);if(!t)throw new S("Invalid Dsn");var n=c.c(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],u=n[4],l=void 0===u?"":u,f="",p=n[5],d=p.split("/");d.length>1&&(f=d.slice(0,-1).join("/"),p=d.pop()),this._fromComponents({host:s,pass:a,path:f,projectId:p,port:l,protocol:r,user:o})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new S("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new S("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new S("Invalid Dsn")},e}(),k=n(3),P=n(1),R=function(){function e(e){this.dsn=e,this._dsnObject=new T(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(k.e)(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_timestamp="+Object(P.m)()),r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e}(),C=n(20),I=n(4),A=n(34),D=n(19),N=[];function L(e){var t={};return function(e){var t=e.defaultIntegrations&&c.d(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var o=n.map((function(e){return e.name})),i=[];t.forEach((function(e){-1===o.indexOf(e.name)&&-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))})),n.forEach((function(e){-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=c.d(t);var a=r.map((function(e){return e.name}));return-1!==a.indexOf("Debug")&&r.push.apply(r,c.d(r.splice(a.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===N.indexOf(e.name)&&(e.setupOnce(u.b,l.b),N.push(e.name),C.a.log("Integration installed: "+e.name))}(e)})),t}var M=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new T(t.dsn)),this._isEnabled()&&(this._integrations=L(this._options))}return e.prototype.captureException=function(e,t,n){var r=this,o=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return r._processEvent(e,t,n)})).then((function(e){o=e&&e.event_id,r._processing=!1})).then(null,(function(e){C.a.error(e),r._processing=!1})),o},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id;return this._processing=!0,(Object(I.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){return o._processEvent(e,n,r)})).then((function(e){i=e&&e.event_id,o._processing=!1})).then(null,(function(e){C.a.error(e),o._processing=!1})),i},e.prototype.captureEvent=function(e,t,n){var r=this,o=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){o=e&&e.event_id,r._processing=!1})).then(null,(function(e){C.a.error(e),r._processing=!1})),o},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.getIntegrations=function(){return this._integrations||{}},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return C.a.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new A.a((function(n){var r=0,o=0;clearInterval(o),o=setInterval((function(){t._processing?(r+=1,e&&r>=e&&n({interval:o,ready:!1})):n({interval:o,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this.getOptions(),o=r.environment,i=r.release,a=r.dist,s=r.maxValueLength,u=void 0===s?250:s,l=c.a({},e);void 0===l.environment&&void 0!==o&&(l.environment=o),void 0===l.release&&void 0!==i&&(l.release=i),void 0===l.dist&&void 0!==a&&(l.dist=a),l.message&&(l.message=Object(D.d)(l.message,u));var f=l.exception&&l.exception.values&&l.exception.values[0];f&&f.value&&(f.value=Object(D.d)(f.value,u));var p=l.request;p&&p.url&&(p.url=Object(D.d)(p.url,u)),void 0===l.event_id&&(l.event_id=Object(P.n)()),this._addIntegrations(l.sdk);var d=A.a.resolve(l);return t&&(d=t.applyToEvent(l,n)),d},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;return this._isEnabled()?"number"==typeof a&&Math.random()>a?A.a.reject("This event has been sampled, will not send event."):new A.a((function(o,a){r._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;try{if(t&&t.data&&!0===t.data.__sentry__||!i)return r._getBackend().sendEvent(n),void o(n);var s=i(e,t);if(void 0===s)C.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(I.m)(s))r._handleAsyncBeforeSend(s,o,a);else{if(null===(n=s))return C.a.log("`beforeSend` returned `null`, will not send event."),void o(null);r._getBackend().sendEvent(n),o(n)}}catch(e){r.captureException(e,{data:{__sentry__:!0},originalException:e}),a("`beforeSend` threw an error, will not send event.")}}else a("An event processor returned null, will not send event.")})).then(null,(function(){a("`beforeSend` threw an error, will not send event.")}))})):A.a.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then((function(e){null!==e?(r._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}(),U=function(){function e(){}return e.prototype.sendEvent=function(e){return A.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:s.Skipped})},e.prototype.close=function(e){return A.a.resolve(!0)},e}(),F=function(){function e(e){this._options=e,this._options.dsn||C.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new U},e.prototype.eventFromException=function(e,t){throw new S("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new S("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){C.a.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();function H(){if(!("fetch"in Object(P.g)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function B(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function G(){if(!H())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var q=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[-a-z]+:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,W=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Y=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,X=/\((\S*)(?::(\d+))(?::(\d+))\)/;function z(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),a=[],s=0;s<i.length;s+=2){var c=null;(t=r.exec(i[s]))?c={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=o.exec(i[s]))&&(c={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),c&&(!c.func&&c.line&&(c.func="?"),a.push(c))}if(!a.length)return null;return{message:K(e),name:e.name,stack:a}}(e))return J(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,o=[],i=e.stack.split("\n"),a=0;a<i.length;++a){if(n=q.exec(i[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=X.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2],func:n[1]||"?",args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=W.exec(i[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=V.exec(i[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=Y.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(o[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),o.push(r)}if(!o.length)return null;return{message:K(e),name:e.name,stack:o}}(e))return J(t,n)}catch(e){}return{message:K(e),name:e&&e.name,stack:[],failed:!0}}function J(e,t){try{return c.a({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function K(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function $(e){var t=Z(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Q(e){return{exception:{values:[$(e)]}}}function Z(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function ee(e,t,n){var r;if(void 0===n&&(n={}),Object(I.e)(e)&&e.error)return r=Q(z(e=e.error));if(Object(I.a)(e)||Object(I.b)(e)){var o=e,i=o.name||(Object(I.a)(o)?"DOMError":"DOMException"),a=o.message?i+": "+o.message:i;return r=te(a,t,n),Object(P.b)(r,a),r}return Object(I.d)(e)?r=Q(z(e)):Object(I.h)(e)||Object(I.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(I.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(k.a)(e)}]},extra:{__serialized__:Object(k.d)(e)}};if(t){var o=Z(z(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),Object(P.a)(r,{synthetic:!0}),r):(r=te(e,t,n),Object(P.b)(r,""+e,void 0),Object(P.a)(r,{synthetic:!0}),r)}function te(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=Z(z(t).stack);r.stacktrace={frames:o}}return r}var ne,re=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):A.a.reject(new S("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new A.a((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);A.a.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),oe=function(){function e(e){this.options=e,this._buffer=new re(30),this.url=new R(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new S("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),ie=Object(P.g)(),ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return c.b(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:G()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new A.a((function(e,r){ie.fetch(t.url,n).then((function(n){var o=s.fromHttpCode(n.status);if(o!==s.Success){if(o===s.RateLimit){var i=Date.now();t._disabledUntil=new Date(i+Object(P.k)(i,n.headers.get("Retry-After"))),C.a.warn("Too many requests, backing off till: "+t._disabledUntil)}r(n)}else e({status:o})})).catch(r)})))},t}(oe),se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return c.b(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new A.a((function(n,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var e=s.fromHttpCode(o.status);if(e!==s.Success){if(e===s.RateLimit){var i=Date.now();t._disabledUntil=new Date(i+Object(P.k)(i,o.getResponseHeader("Retry-After"))),C.a.warn("Too many requests, backing off till: "+t._disabledUntil)}r(o)}else n({status:e})}},o.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(i)&&o.setRequestHeader(i,t.options.headers[i]);o.send(JSON.stringify(e))})))},t}(oe),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c.b(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=c.a({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):H()?new ae(t):new se(t)},t.prototype.eventFromException=function(e,t){var n=ee(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Object(P.a)(n,{handled:!0,type:"generic"}),n.level=a.Error,t&&t.event_id&&(n.event_id=t.event_id),A.a.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=a.Info);var r=te(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return r.level=t,n&&n.event_id&&(r.event_id=n.event_id),A.a.resolve(r)},t}(F),ue="sentry.javascript.browser",le="5.11.1",fe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,ce,t)||this}return c.b(t,e),t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=c.a({},t.sdk,{name:ue,packages:c.d(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:le}]),version:le}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Object(P.g)().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var r=t.createElement("script");r.async=!0,r.src=new R(n).getReportDialogEndpoint(e),e.onLoad&&(r.onload=e.onLoad),(t.head||t.body).appendChild(r)}else C.a.error("Missing `Dsn` option in showReportDialog call");else C.a.error("Missing `eventId` option in showReportDialog call")}else C.a.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(M),pe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){ne=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return ne.apply(n,e)}},e.id="FunctionToString",e}(),de=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],he=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Object(u.b)((function(t){var n=Object(l.b)();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a=r._mergeOptions(i);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(C.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(P.e)(e)),!0):this._isIgnoredError(e,t)?(C.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(P.e)(e)),!0):this._isBlacklistedUrl(e,t)?(C.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(P.e)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(C.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(P.e)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(D.a)(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(e){return Object(D.a)(n,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(e){return Object(D.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:c.d(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:c.d(this._options.ignoreErrors||[],e.ignoreErrors||[],de),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:c.d(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return C.a.error("Cannot extract message for event "+Object(P.e)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return C.a.error("Cannot extract url for event "+Object(P.e)(e)),null}},e.id="InboundFilters",e}();var ve=0;function ye(){return ve>0}function ge(){ve+=1,setTimeout((function(){ve-=1}))}function me(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return me(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw ge(),x((function(n){n.addEventProcessor((function(e){var n=c.a({},e);return t.mechanism&&(Object(P.b)(n,void 0,void 0),Object(P.a)(n,t.mechanism)),n.extra=c.a({},n.extra,{arguments:Object(k.c)(r,3)}),n})),p(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var be,_e=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=me(r,{mechanism:{data:{function:Object(P.f)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(me(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(P.f)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(P.g)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(k.b)(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=me(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(P.f)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,me(r,{mechanism:{data:{function:"addEventListener",handler:Object(P.f)(r),target:e},handled:!0,type:"instrument"}}),o)}})),Object(k.b)(n,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(e){}return e.call(this,t,o,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=this,i=["onload","onerror","onprogress"];return i.forEach((function(e){e in t&&"function"==typeof t[e]&&Object(k.b)(t,e,(function(t){return me(t,{mechanism:{data:{function:e,handler:Object(P.f)(t)},handled:!0,type:"instrument"}})}))})),"onreadystatechange"in o&&"function"==typeof o.onreadystatechange&&Object(k.b)(o,"onreadystatechange",(function(e){var t={mechanism:{data:{function:"onreadystatechange",handler:Object(P.f)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(t.mechanism.data.handler=Object(P.f)(e.__sentry_original__)),me(e,t)})),e.apply(this,n)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(P.g)();Object(k.b)(e,"setTimeout",this._wrapTimeFunction.bind(this)),Object(k.b)(e,"setInterval",this._wrapTimeFunction.bind(this)),Object(k.b)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&Object(k.b)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),Ee=Object(P.g)(),Oe={},xe={};function we(e){if(!xe[e])switch(xe[e]=!0,e){case"console":!function(){if(!("console"in Ee))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Ee.console&&Object(k.b)(Ee.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];je("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Ee.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Ee))return;Ee.document.addEventListener("click",Ie("click",je.bind(null,"dom")),!1),Ee.document.addEventListener("keypress",Ae(je.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Ee[e]&&Ee[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(k.b)(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&Object(k.b)(n,"handleEvent",(function(e){return function(t){return Ie("click",je.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(k.b)(n,"handleEvent",(function(e){return function(t){return Ae(je.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Ie("click",je.bind(null,"dom"),!0)(this),"keypress"===t&&Ae(je.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),Object(k.b)(t,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(e){}return e.call(this,t,o,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Ee))return;var e=XMLHttpRequest.prototype;Object(k.b)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[1];return this.__sentry_xhr__={method:Object(I.k)(t[0])?t[0].toUpperCase():t[0],url:t[1]},Object(I.k)(r)&&"POST"===this.__sentry_xhr__.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),Object(k.b)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o={args:t,startTimestamp:Date.now(),xhr:r};function i(){if(4===r.readyState){try{r.__sentry_xhr__&&(r.__sentry_xhr__.status_code=r.status)}catch(e){}je("xhr",c.a({},o,{endTimestamp:Date.now()}))}}return je("xhr",c.a({},o)),"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(k.b)(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i(),e.apply(r,t)}})):r.onreadystatechange=i,e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!H())return!1;var e=Object(P.g)();if(B(e.fetch))return!0;var t=!1,n=e.document;if(n){var r=n.createElement("iframe");r.hidden=!0;try{n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=B(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){C.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}}return t}())return;Object(k.b)(Ee,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Te(t),url:ke(t)},startTimestamp:Date.now()};return je("fetch",c.a({},r)),e.apply(Ee,t).then((function(e){return je("fetch",c.a({},r,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw je("fetch",c.a({},r,{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(P.g)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!r)return;var e,t,n,r;var o=Ee.onpopstate;function i(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=be,i=String(r);be=i,je("history",{from:o,to:i})}return e.apply(this,t)}}Ee.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ee.location.href,r=be;if(be=n,je("history",{from:r,to:n}),o)return o.apply(this,e)},Object(k.b)(Ee.history,"pushState",i),Object(k.b)(Ee.history,"replaceState",i)}();break;default:C.a.warn("unknown instrumentation type:",e)}}function Se(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Oe[e.type]=Oe[e.type]||[],Oe[e.type].push(e.callback),we(e.type))}function je(e,t){var n,r;if(e&&Oe[e])try{for(var o=c.e(Oe[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){C.a.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(P.f)(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Te(e){return void 0===e&&(e=[]),"Request"in Ee&&Object(I.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function ke(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ee&&Object(I.g)(e[0],Request)?e[0].url:String(e[0])}var Pe,Re,Ce=0;function Ie(e,t,n){return void 0===n&&(n=!1),function(r){Pe=void 0,r&&Re!==r&&(Re=r,Ce&&clearTimeout(Ce),n?Ce=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function Ae(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Pe||Ie("input",e)(t),clearTimeout(Pe),Pe=setTimeout((function(){Pe=void 0}),1e3))}}var De=function(){function e(t){this.name=e.id,this._options=c.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{extra:{arguments:Object(k.c)(e.args,3)},logger:"console"},level:a.fromString(e.level),message:Object(D.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(D.b)(e.args.slice(1)," ")||"console.assert"),t.data.extra.arguments=Object(k.c)(e.args.slice(1),3)}Object(l.b)().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(P.i)(e.event.target):Object(P.i)(e.event)}catch(e){t="<unknown>"}0!==t.length&&Object(l.b)().addBreadcrumb({category:"ui."+e.name,message:t},{event:event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;Object(l.b)().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else e.xhr.__sentry_own_request__&&Ne(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=Object(l.b)().getClient(),n=t&&t.getDsn();if(n){var r=new R(n).getStoreEndpoint();if(r&&-1!==e.fetchData.url.indexOf(r)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void Ne(e.args[1].body)}e.error?Object(l.b)().addBreadcrumb({category:"fetch",data:c.a({},e.fetchData,{status_code:e.response.status}),level:a.Error,type:"http"},{data:e.error,input:e.args}):Object(l.b)().addBreadcrumb({category:"fetch",data:c.a({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Object(P.g)(),n=e.from,r=e.to,o=Object(P.l)(t.location.href),i=Object(P.l)(n),a=Object(P.l)(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Object(l.b)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Se({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,c.d(t))},type:"console"}),this._options.dom&&Se({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,c.d(t))},type:"dom"}),this._options.xhr&&Se({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,c.d(t))},type:"xhr"}),this._options.fetch&&Se({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,c.d(t))},type:"fetch"}),this._options.history&&Se({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,c.d(t))},type:"history"})},e.id="Breadcrumbs",e}();function Ne(e){try{var t=JSON.parse(e);Object(l.b)().addBreadcrumb({category:"sentry",event_id:t.event_id,level:t.level||a.fromString("error"),message:Object(P.e)(t)},{event:t})}catch(e){C.a.error("Error while adding sentry type breadcrumb")}}var Le=function(){function e(t){this.name=e.id,this._global=Object(P.g)(),this._oldOnErrorHandler=null,this._oldOnUnhandledRejectionHandler=null,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=c.a({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(C.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(C.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){if(!this._onErrorHandlerInstalled){var t=this;this._oldOnErrorHandler=this._global.onerror,this._global.onerror=function(n,r,o,i,a){var s=Object(l.b)(),c=s.getIntegration(e),u=a&&!0===a.__sentry_own_request__;if(!c||ye()||u)return!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments);var f=s.getClient(),p=Object(I.i)(a)?t._eventFromIncompleteOnError(n,r,o,i):t._enhanceEventWithInitialFrame(ee(a,void 0,{attachStacktrace:f&&f.getOptions().attachStacktrace,rejection:!1}),r,o,i);return Object(P.a)(p,{handled:!1,type:"onerror"}),s.captureEvent(p,{originalException:a}),!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments)},this._onErrorHandlerInstalled=!0}},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){if(!this._onUnhandledRejectionHandlerInstalled){var t=this;this._oldOnUnhandledRejectionHandler=this._global.onunhandledrejection,this._global.onunhandledrejection=function(n){var r=n;try{r=n&&"reason"in n?n.reason:n}catch(e){}var o=Object(l.b)(),i=o.getIntegration(e),s=r&&!0===r.__sentry_own_request__;if(!i||ye()||s)return!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments);var c=o.getClient(),u=Object(I.i)(r)?t._eventFromIncompleteRejection(r):ee(r,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});return u.level=a.Error,Object(P.a)(u,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(u,{originalException:r}),!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments)},this._onUnhandledRejectionHandlerInstalled=!0}},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=Object(I.e)(e)?e.message:e;if(Object(I.k)(i)){var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2])}var s={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=Object(I.k)(t)&&t.length>0?t:Object(P.h)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Me=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Object(u.b)((function(t,n){var r=Object(l.b)().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(I.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=c.d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(I.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=$(z(e[t]));return this._walkErrorTree(e[t],t,c.d([r],n))},e.id="LinkedErrors",e}(),Ue=Object(P.g)(),Fe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Object(u.b)((function(t){if(Object(l.b)().getIntegration(e)){if(!Ue.navigator||!Ue.location)return t;var n=t.request||{};return n.url=n.url||Ue.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=Ue.navigator.userAgent,c.a({},t,{request:n})}return t}))},e.id="UserAgent",e}(),He=[new r.InboundFilters,new r.FunctionToString,new _e,new De,new Le,new Me,new Fe];function Be(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=He),void 0===e.release){var t=Object(P.g)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&C.a.enable(),Object(l.b)().bindClient(new e(t))}(fe,e)}function Ge(e){void 0===e&&(e={}),e.eventId||(e.eventId=Object(l.b)().lastEventId());var t=Object(l.b)().getClient();t&&t.showReportDialog(e)}function qe(){return Object(l.b)().lastEventId()}function Ve(){}function We(e){e()}function Ye(e){var t=Object(l.b)().getClient();return t?t.flush(e):A.a.reject(!1)}function Xe(e){var t=Object(l.b)().getClient();return t?t.close(e):A.a.reject(!1)}function ze(e){return me(e)()}var Je={},Ke=Object(P.g)();Ke.Sentry&&Ke.Sentry.Integrations&&(Je=Ke.Sentry.Integrations);var $e=c.a({},Je,r,o)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return p}));var r=n(0),o=n(1),i=n(20),a=n(44),s=function(){function e(e,t,n){void 0===t&&(t=new a.a),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=this.getStackTop();i&&i.client&&i.client[e]&&(t=i.client)[e].apply(t,r.d(n,[i.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=a.a.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(o.n)(),i=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}i={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,r.a({},i,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=Object(o.n)(),a=n;if(!n){var s=void 0;try{throw new Error(e)}catch(e){s=e}a={originalException:e,syntheticException:s}}return this._invokeClient("captureMessage",e,t,r.a({},a,{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(o.n)();return this._invokeClient("captureEvent",e,r.a({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var i=n.client.getOptions&&n.client.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var l=Object(o.m)(),f=r.a({timestamp:l},e),p=s?Object(o.c)((function(){return s(f,t)})):f;null!==p&&n.scope.addBreadcrumb(p,Math.min(u,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=u(this);try{e(this)}finally{u(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return i.a.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=c(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);i.a.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function c(){var e=Object(o.g)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function u(e){var t=c(),n=p(t);return d(t,e),n}function l(){var t=c();return f(t)&&!p(t).isOlderThan(3)||d(t,new s),Object(o.j)()?function(t){try{var n=Object(o.d)(e,"domain").active;if(!n)return p(t);if(!f(n)||p(n).isOlderThan(3)){var r=p(t).getStackTop();d(n,new s(r.client,a.a.clone(r.scope)))}return p(n)}catch(e){return p(t)}}(t):p(t)}function f(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function p(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new s),e.__SENTRY__.hub}function d(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}}).call(this,n(175)(e))}])}));
|
|
18
|
-
//# sourceMappingURL=imposium.min.js.map
|
|
1
|
+
/*! For license information please see imposium.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Imposium",[],t):"object"==typeof exports?exports.Imposium=t():e.Imposium=t()}(self,(function(){return(()=>{var e={8969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrowserClient:()=>Gt,Hub:()=>se,Integrations:()=>dn,SDK_NAME:()=>ln,SDK_VERSION:()=>Pe,Scope:()=>P,Severity:()=>c,Status:()=>u,Transports:()=>i,addBreadcrumb:()=>_e,addGlobalEventProcessor:()=>I,captureEvent:()=>ge,captureException:()=>ve,captureMessage:()=>ye,close:()=>cn,configureScope:()=>me,defaultIntegrations:()=>en,eventFromException:()=>rt,eventFromMessage:()=>ot,flush:()=>sn,forceLoad:()=>on,getCurrentHub:()=>le,getHubFromCarrier:()=>fe,init:()=>tn,injectReportDialog:()=>Tt,lastEventId:()=>rn,makeMain:()=>ue,onLoad:()=>an,setContext:()=>Ee,setExtra:()=>we,setExtras:()=>be,setTag:()=>Se,setTags:()=>xe,setUser:()=>Oe,showReportDialog:()=>nn,startTransaction:()=>Te,withScope:()=>ke,wrap:()=>un});var r={};n.r(r),n.d(r,{FunctionToString:()=>zt,InboundFilters:()=>Yt});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>Ht,Dedupe:()=>$t,GlobalHandlers:()=>Xt,LinkedErrors:()=>Kt,TryCatch:()=>Vt,UserAgent:()=>Zt});var i={};n.r(i),n.d(i,{BaseTransport:()=>mt,FetchTransport:()=>_t,XHRTransport:()=>Et});var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c,u,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function p(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.")}function f(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 d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function h(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(e,Error)}}function v(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function y(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return"undefined"!=typeof Event&&w(e,Event)}function b(e){return"undefined"!=typeof Element&&w(e,Element)}function x(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function w(e,t){try{return e instanceof t}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(c||(c={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(c||(c={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(u||(u={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(u||(u={}));var S,O,k=n(1170),T=function(){function e(e){var t=this;this._state="PENDING",this._handlers=[],this._resolve=function(e){t._setResult("RESOLVED",e)},this._reject=function(e){t._setResult("REJECTED",e)},this._setResult=function(e,n){"PENDING"===t._state&&(x(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if("PENDING"!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||("RESOLVED"===t._state&&e.onfulfilled&&e.onfulfilled(t._value),"REJECTED"===t._state&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0==(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),j=n(2991),P=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=d(t._breadcrumbs),n._tags=l({},t._tags),n._extra=l({},t._extra),n._contexts=l({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=d(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=l(l({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=l(l({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=l(l({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=l(l({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=l(l({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=l(l({},this._tags),t._tags),this._extra=l(l({},this._extra),t._extra),this._contexts=l(l({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):_(t)&&(t=t,this._tags=l(l({},this._tags),t.tags),this._extra=l(l({},this._extra),t.extra),this._contexts=l(l({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=l({timestamp:(0,k.yW)()},e);return this._breadcrumbs=d(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=l(l({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=l(l({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=l(l({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=l(l({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=l({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=l({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(d(R(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new T((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(l({},t),n);x(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function R(){var e=(0,j.R)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function I(e){R().push(e)}function C(){var e=(0,j.R)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function A(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function N(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function D(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function L(e,t){var n;if(e.exception&&e.exception.values){var r=e.exception.values[0],o=r.mechanism;if(r.mechanism=l(l(l({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var i=l(l({},null===(n=o)||void 0===n?void 0:n.data),t.data);r.mechanism.data=i}}}function U(e){var t;if(null===(t=e)||void 0===t?void 0:t.__sentry_captured__)return!0;try{Object.defineProperty(e,"__sentry_captured__",{value:!0})}catch(e){}return!1}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(S||(S={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(O||(O={}));var M=(0,j.R)(),F="Sentry Logger ";function q(e){var t=(0,j.R)();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var B=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.log(F+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.warn(F+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&q((function(){M.console.error(F+"[Error]: "+e.join(" "))}))},e}();M.__SENTRY__=M.__SENTRY__||{};var H=M.__SENTRY__.logger||(M.__SENTRY__.logger=new B),G=n(1422);function W(e,t){try{for(var n=e,r=[],o=0,i=0,a=" > ".length,s=void 0;n&&o++<5&&!("html"===(s=Y(n,t))||o>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function Y(e,t){var n,r,o,i,a,s,c,u=e,l=[];if(!u||!u.tagName)return"";l.push(u.tagName.toLowerCase());var p=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return u.getAttribute(e)})).map((function(e){return[e,u.getAttribute(e)]})):null;if(null===(r=p)||void 0===r?void 0:r.length)p.forEach((function(e){l.push("["+e[0]+'="'+e[1]+'"]')}));else if(u.id&&l.push("#"+u.id),(o=u.className)&&g(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)l.push("."+i[c]);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)a=f[c],(s=u.getAttribute(a))&&l.push("["+a+'="'+s+'"]');return l.join("")}var z=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),J="<anonymous>";function V(e){try{return e&&"function"==typeof e&&e.name||J}catch(e){return J}}function X(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function K(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function $(e,t){return!!g(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function Q(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function Z(e){if(h(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(E(e)){var o=e,i={};i.type=o.type;try{i.target=b(o.target)?W(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=b(o.currentTarget)?W(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var a in"undefined"!=typeof CustomEvent&&w(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a]);return i}return e}function ee(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,o=re(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ee(e,t-1,n):o}function te(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":_(r=e)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+V(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var r}function ne(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new z),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=te(e);return m(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=te(t,e);if(m(o))return o;var i=Z(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=ne(s,i[s],n-1,r));return r.unmemoize(t),a}function re(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return ne(e,n,t)})))}catch(e){return"**non-serializable**"}}function oe(e,t){void 0===t&&(t=40);var n=Object.keys(Z(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return X(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:X(o,t)}return""}function ie(e){var t,n;if(_(e)){var r=e,o={};try{for(var i=p(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=ie(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(ie):e}var ae=function(){function e(e){this.errors=0,this.sid=C(),this.duration=0,this.status=S.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,k.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,k.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:C()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===S.Ok?this.update({status:S.Exited}):this.update()},e.prototype.toJSON=function(){return ie({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:ie({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),se=function(){function e(e,t,n){void 0===t&&(t=new P),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=P.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=C(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,l(l({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=C(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,l(l({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=C();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,l(l({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var p=(0,k.yW)(),f=l({timestamp:p},e),d=s?q((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,u)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=ue(this);try{e(this)}finally{ue(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return H.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,o;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(o=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===o||o.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=((0,j.R)().navigator||{}).userAgent,c=new ae(l(l(l({release:i,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var u=n.getSession&&n.getSession();u&&u.status===S.Ok&&u.update({status:S.Exited}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,d(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ce(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);H.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function ce(){var e=(0,j.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ue(e){var t=ce(),n=fe(t);return de(t,e),n}function le(){var e=ce();return pe(e)&&!fe(e).isOlderThan(4)||de(e,new se),(0,G.KV)()?function(e){var t,n,r;try{var o=null===(r=null===(n=null===(t=ce().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!o)return fe(e);if(!pe(o)||fe(o).isOlderThan(4)){var i=fe(e).getStackTop();de(o,new se(i.client,P.clone(i.scope)))}return fe(o)}catch(t){return fe(e)}}(e):fe(e)}function pe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function fe(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new se),e.__SENTRY__.hub}function de(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function he(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=le();if(r&&r[e])return r[e].apply(r,d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ve(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return he("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ye(e,t){var n;try{throw new Error(e)}catch(e){n=e}return he("captureMessage",e,"string"==typeof t?t:void 0,l({originalException:e,syntheticException:n},"string"!=typeof t?{captureContext:t}:void 0))}function ge(e){return he("captureEvent",e)}function me(e){he("configureScope",e)}function _e(e){he("addBreadcrumb",e)}function Ee(e,t){he("setContext",e,t)}function be(e){he("setExtras",e)}function xe(e){he("setTags",e)}function we(e,t){he("setExtra",e,t)}function Se(e,t){he("setTag",e,t)}function Oe(e){he("setUser",e)}function ke(e){he("withScope",e)}function Te(e,t){return he("startTransaction",l({},e),t)}var je,Pe="6.16.0";!function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(je||(je={}));var Re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),Ie=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Re(r,n.prototype),r}return s(t,e),t}(Error),Ce=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Ae=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=Ce.exec(e);if(!t)throw new Ie("Invalid Dsn");var n=f(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],u=void 0===c?"":c,l="",p=n[5],d=p.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}this._fromComponents({host:s,pass:a,path:l,projectId:p,port:u,protocol:r,publicKey:o})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Ie("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new Ie("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Ie("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Ie("Invalid Dsn: Invalid port "+this.port)},e}(),Ne=[];function De(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var Le="Not capturing exception because it's already been captured.",Ue=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Ae(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!U(e)){var o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o}H.log(Le)},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=m(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r;if(!(null===(r=t)||void 0===r?void 0:r.originalException)||!U(t.originalException)){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o}H.log(Le)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?H.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):H.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&d(e.defaultIntegrations)||[],n=e.integrations,r=d(De(t));Array.isArray(n)?r=d(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),De(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name})),i="Debug";return-1!==o.indexOf(i)&&r.push.apply(r,d(r.splice(o.indexOf(i),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Ne.indexOf(e.name)&&(e.setupOnce(I,le),Ne.push(e.name),H.log("Integration installed: "+e.name))}(e)})),Object.defineProperty(t,"initialized",{value:!0}),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return H.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,i=!1,a=t.exception&&t.exception.values;if(a){i=!0;try{for(var s=p(a),c=s.next();!c.done;c=s.next()){var u=c.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var f=e.status===S.Ok;(f&&0===e.errors||f&&o)&&(e.update(l(l({},o&&{status:S.Crashed}),{errors:e.errors||Number(i||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new T((function(n){var r=0,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=l(l({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:C()),timestamp:e.timestamp||(0,k.yW)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=P.clone(s).update(n.captureContext));var c=T.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=l(l(l(l(l({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return l(l({},e),e.data&&{data:re(e.data,t)})}))}),e.user&&{user:re(e.user,t)}),e.contexts&&{contexts:re(e.contexts,t)}),e.extra&&{extra:re(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?re(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=X(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=X(s.value,a));var c=e.request;c&&c.url&&(c.url=X(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=d(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){H.error(e)}))},e.prototype._processEvent=function(e,t,n){var r,o,i=this,a=this.getOptions(),s=a.beforeSend,c=a.sampleRate,u=this.getTransport();if(!this._isEnabled())return T.reject(new Ie("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof c&&Math.random()>c?(null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,je.SampleRate,"event"),T.reject(new Ie("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,t).then((function(n){var r,o;if(null===n)throw null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,je.EventProcessor,e.type||"event"),new Ie("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||l||!s)return n;var a=s(n,t);return i._ensureBeforeSendRv(a)})).then((function(t){var r,o;if(null===t)throw null===(o=(r=u).recordLostEvent)||void 0===o||o.call(r,je.BeforeSend,e.type||"event"),new Ie("`beforeSend` returned `null`, will not send event.");var a=n&&n.getSession&&n.getSession();return!l&&a&&i._updateSessionFromEvent(a,t),i._sendEvent(t),t})).then(null,(function(e){if(e instanceof Ie)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ie("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(x(e))return e.then((function(e){if(!_(e)&&null!==e)throw new Ie(t);return e}),(function(e){throw new Ie("beforeSend rejected with "+e)}));if(!_(e)&&null!==e)throw new Ie(t);return e},e}(),Me=function(){function e(){}return e.prototype.sendEvent=function(e){return T.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},e.prototype.close=function(e){return T.resolve(!0)},e}(),Fe=function(){function e(e){this._options=e,this._options.dsn||H.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Ie("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Ie("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){H.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){H.error("Error while sending session: "+e)})):H.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Me},e}();function qe(){if(!("fetch"in(0,j.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Be(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function He(){if(!qe())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Ge="?",We=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ye=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ze=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Je=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ve=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xe=/Minified React error #\d+;/i;function Ke(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Xe.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=e.stacktrace.split("\n"),i=[],a=0;a<o.length;a+=2){var s=null;(t=n.exec(o[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(o[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func=Ge),i.push(s))}return i.length?{message:Ze(e),name:e.name,stack:i}:null}(e))return Qe(t,n)}catch(e){}try{if(t=function(e){var t,n;if(!e||!e.stack)return null;for(var r,o,i,a=[],s=e.stack.split("\n"),c=0;c<s.length;++c){if(o=We.exec(s[c])){var u=o[2]&&0===o[2].indexOf("native");o[2]&&0===o[2].indexOf("eval")&&(r=Ve.exec(o[2]))&&(o[2]=r[1],o[3]=r[2],o[4]=r[3]);var l=o[2]&&0===o[2].indexOf("address at ")?o[2].substr("address at ".length):o[2],p=o[1]||Ge;p=(t=f($e(p,l),2))[0],i={url:l=t[1],func:p,args:u?[o[2]]:[],line:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}else if(o=ze.exec(s[c]))i={url:o[2],func:o[1]||Ge,args:[],line:+o[3],column:o[4]?+o[4]:null};else{if(!(o=Ye.exec(s[c])))continue;o[3]&&o[3].indexOf(" > eval")>-1&&(r=Je.exec(o[3]))?(o[1]=o[1]||"eval",o[3]=r[1],o[4]=r[2],o[5]=""):0!==c||o[5]||void 0===e.columnNumber||(a[0].column=e.columnNumber+1),l=o[3],p=o[1]||Ge,p=(n=f($e(p,l),2))[0],i={url:l=n[1],func:p,args:o[2]?o[2].split(","):[],line:o[4]?+o[4]:null,column:o[5]?+o[5]:null}}!i.func&&i.line&&(i.func=Ge),a.push(i)}return a.length?{message:Ze(e),name:e.name,stack:a}:null}(e))return Qe(t,n)}catch(e){}return{message:Ze(e),name:e&&e.name,stack:[],failed:!0}}var $e=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ge,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Qe(e,t){try{return l(l({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Ze(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function et(e){var t=nt(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function tt(e){return{exception:{values:[et(e)]}}}function nt(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function rt(e,t,n){var r=it(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return L(r),r.level=c.Error,n&&n.event_id&&(r.event_id=n.event_id),T.resolve(r)}function ot(e,t,n,r){void 0===n&&(n=c.Info);var o=at(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),T.resolve(o)}function it(e,t,n){var r,o;if(void 0===n&&(n={}),v(e)&&e.error)return tt(Ke(e=e.error));if(y(e)||(o=e,"[object DOMException]"===Object.prototype.toString.call(o))){var i=e;if("stack"in e)r=tt(Ke(e));else{var a=i.name||(y(i)?"DOMError":"DOMException"),s=i.message?a+": "+i.message:a;D(r=at(s,t,n),s)}return"code"in i&&(r.tags=l(l({},r.tags),{"DOMException.code":""+i.code})),r}return h(e)?r=tt(Ke(e)):_(e)||E(e)?(L(r=function(e,t,n){var r={exception:{values:[{type:E(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+oe(e)}]},extra:{__serialized__:ee(e)}};if(t){var o=nt(Ke(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),{synthetic:!0}),r):(D(r=at(e,t,n),""+e,void 0),L(r,{synthetic:!0}),r)}function at(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=nt(Ke(t).stack);r.stacktrace={frames:o}}return r}function st(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function ct(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=d(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=d(e.sdk.packages||[],t.packages||[]),e):e}function ut(e,t){var n=st(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(l(l({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function lt(e,t){var n=st(t),r=e.type||"event",o="transaction"===r||t.forceEnvelope(),i=e.debug_meta||{},a=i.transactionSampling,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(i,["transactionSampling"]),c=a||{},u=c.method,p=c.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var f={body:JSON.stringify(n?ct(e,t.metadata.sdk):e),type:r,url:o?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(o){var d=JSON.stringify(l(l({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:u,rate:p}]})+"\n"+f.body;f.body=d}return f}var pt,ft=function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new Ae(e),this.metadata=t,this._tunnel=n}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}(),dt=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;if(!this.isReady())return T.reject(new Ie("Not adding Promise due to buffer limit reached."));var n=e();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return t.remove(n)})).then(null,(function(){return t.remove(n).then(null,(function(){}))})),n},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new T((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);T.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ht=(0,j.R)();function vt(){var e,t;if(pt)return pt;if(Be(ht.fetch))return pt=ht.fetch.bind(ht);var n=ht.document,r=ht.fetch;if("function"==typeof(null===(e=n)||void 0===e?void 0:e.createElement))try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(r=o.contentWindow.fetch),n.head.removeChild(o)}catch(e){H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return pt=r.bind(ht)}var yt={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},gt=(0,j.R)(),mt=function(){function e(e){var t=this;this.options=e,this._buffer=new dt(30),this._rateLimits={},this._outcomes={},this._api=new ft(e.dsn,e._metadata,e.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&>.document&>.document.addEventListener("visibilitychange",(function(){"hidden"===gt.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){throw new Ie("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=yt[t]+":"+e;H.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){H.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),n=JSON.stringify(l({},this.options.tunnel&&{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,k.yW)(),discarded_events:Object.keys(e).map((function(t){var n=f(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}}))});try{!function(e,t){if("[object Navigator]"===Object.prototype.toString.call(ht&&ht.navigator)&&"function"==typeof ht.navigator.sendBeacon)return ht.navigator.sendBeacon.bind(ht.navigator)(e,t);qe()&&vt()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}(t,n)}catch(e){H.error(e)}}else H.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,i=e.reject,a=u.fromHttpCode(n.status);this._handleRateLimit(r)&&H.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),a!==u.Success?i(n):o({status:a})},e.prototype._disabledUntil=function(e){var t=yt[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=p(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var l=u.value.split(":",2),f=parseInt(l[0],10),d=1e3*(isNaN(f)?60:f);try{for(var h=(r=void 0,p(l[1].split(";"))),v=h.next();!v.done;v=h.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(i+d)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(i,s)),!0)},e}(),_t=function(e){function t(t,n){void 0===n&&(n=vt());var r=e.call(this,t)||this;return r._fetch=n,r}return s(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(lt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent(je.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:He()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new T((function(t,o){n._fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)}))})).then(void 0,(function(t){throw t instanceof Ie?n.recordLostEvent(je.QueueOverflow,e.type):n.recordLostEvent(je.NetworkError,e.type),t}))},t}(mt),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(lt(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent(je.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new T((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Ie?n.recordLostEvent(je.QueueOverflow,e.type):n.recordLostEvent(je.NetworkError,e.type),t}))},t}(mt),bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.eventFromException=function(e,t){return rt(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=c.Info),ot(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=l(l({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):qe()?new _t(t):new Et(t)},t}(Fe),xt=(0,j.R)(),wt=0;function St(){return wt>0}function Ot(){wt+=1,setTimeout((function(){wt-=1}))}function kt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return kt(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw Ot(),ke((function(n){n.addEventProcessor((function(e){var n=l({},e);return t.mechanism&&(D(n,void 0,void 0),L(n,t.mechanism)),n.extra=l(l({},n.extra),{arguments:r}),n})),ve(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function Tt(e){if(void 0===e&&(e={}),xt.document)if(e.eventId)if(e.dsn){var t=xt.document.createElement("script");t.async=!0,t.src=new ft(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad);var n=xt.document.head||xt.document.body;n&&n.appendChild(t)}else H.error("Missing dsn option in showReportDialog call");else H.error("Missing eventId option in showReportDialog call")}var jt,Pt,Rt,It=(0,j.R)(),Ct={},At={};function Nt(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Ct[e.type]=Ct[e.type]||[],Ct[e.type].push(e.callback),function(e){if(!At[e])switch(At[e]=!0,e){case"console":"console"in It&&["debug","info","warn","error","log","assert"].forEach((function(e){e in It.console&&Q(It.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Dt("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,It.console,n)}}))}));break;case"dom":!function(){if("document"in It){var e=Dt.bind(null,"dom"),t=Mt(e,!0);It.document.addEventListener("click",t,!1),It.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=It[t]&&It[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){var s=Mt(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),Q(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in It){var e=[],t=[],n=XMLHttpRequest.prototype;Q(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=r[1];i.__sentry_xhr__={method:g(r[0])?r[0].toUpperCase():r[0],url:r[1]},g(a)&&"POST"===i.__sentry_xhr__.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var s=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var o=t.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(e){}Dt("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Q(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(i,t)}})):i.addEventListener("readystatechange",s),n.apply(i,r)}})),Q(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),Dt("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!qe())return!1;var e=(0,j.R)();if(Be(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Be(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Q(It,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Lt(t),url:Ut(t)},startTimestamp:Date.now()};return Dt("fetch",l({},r)),e.apply(It,t).then((function(e){return Dt("fetch",l(l({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Dt("fetch",l(l({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=(0,j.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=It.onpopstate;It.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=It.location.href,o=jt;if(jt=r,Dt("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},Q(It.history,"pushState",t),Q(It.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=jt,i=String(r);jt=i,Dt("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":qt=It.onerror,It.onerror=function(e,t,n,r,o){return Dt("error",{column:r,error:o,line:n,msg:e,url:t}),!!qt&&qt.apply(this,arguments)};break;case"unhandledrejection":Bt=It.onunhandledrejection,It.onunhandledrejection=function(e){return Dt("unhandledrejection",e),!Bt||Bt.apply(this,arguments)};break;default:H.warn("unknown instrumentation type:",e)}}(e.type))}function Dt(e,t){var n,r;if(e&&Ct[e])try{for(var o=p(Ct[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){H.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+V(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Lt(e){return void 0===e&&(e=[]),"Request"in It&&w(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ut(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in It&&w(e[0],Request)?e[0].url:String(e[0])}function Mt(e,t){return void 0===t&&(t=!1),function(n){if(n&&Rt!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===Pt||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Rt,n))&&(e({event:n,name:r,global:t}),Rt=n),clearTimeout(Pt),Pt=It.setTimeout((function(){Pt=void 0}),1e3)}}}var Ft,qt=null,Bt=null,Ht=function(){function e(t){this.name=e.id,this._options=l({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&le().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:N(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,d(t))},type:"console"}),this._options.dom&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,d(t))},type:"dom"}),this._options.xhr&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,d(t))},type:"xhr"}),this._options.fetch&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,d(t))},type:"fetch"}),this._options.history&&Nt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,d(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:c.fromString(e.level),message:K(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(K(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}le().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{t=e.event.target?W(e.event.target,n):W(e.event,n)}catch(e){t="<unknown>"}0!==t.length&&le().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;le().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?le().addBreadcrumb({category:"fetch",data:e.fetchData,level:c.Error,type:"http"},{data:e.error,input:e.args}):le().addBreadcrumb({category:"fetch",data:l(l({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,j.R)(),n=e.from,r=e.to,o=A(t.location.href),i=A(n),a=A(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),le().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),Gt=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Pe}],version:Pe},e.call(this,bt,t)||this}return s(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,j.R)().document&&(this._isEnabled()?Tt(l(l({},e),{dsn:e.dsn||this.getDsn()})):H.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Ht);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Ue),Wt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Yt=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){I((function(t){var n=le();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(H.warn("Event dropped due to being internal Sentry Error.\nEvent: "+N(e)),!0):this._isIgnoredError(e,t)?(H.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+N(e)),!0):this._isDeniedUrl(e,t)?(H.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+N(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(H.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+N(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return $(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return $(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return $(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:d(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:d(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:d(this._options.ignoreErrors||[],e.ignoreErrors||[],Wt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return H.error("Cannot extract message for event "+N(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){var t,n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--){var o=e[r];if("<anonymous>"!==(null===(t=o)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=o)||void 0===n?void 0:n.filename))return o.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return H.error("Cannot extract url for event "+N(e)),null}},e.id="InboundFilters",e}(),zt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Ft=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Ft.apply(n,e)}},e.id="FunctionToString",e}(),Jt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vt=function(){function e(t){this.name=e.id,this._options=l({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,j.R)();this._options.setTimeout&&Q(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Q(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Q(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Q(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Jt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=kt(r,{mechanism:{data:{function:V(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,kt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:V(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,j.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Q(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=kt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:V(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,kt(r,{mechanism:{data:{function:"addEventListener",handler:V(r),target:e},handled:!0,type:"instrument"}}),o)}})),Q(n,"removeEventListener",(function(e){return function(t,n,r){var o,i=n;try{var a=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&Q(r,e,(function(t){var n={mechanism:{data:{function:e,handler:V(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=V(t.__sentry_original__)),kt(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Xt=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=l({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(H.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(H.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Nt({callback:function(n){var r=n.error,o=le(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(i&&!St()&&!a){var s=o.getClient(),c=void 0===r&&g(n.msg)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(it(r||n.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);L(c,{handled:!1,type:"onerror"}),o.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Nt({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var o=le(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!i||St()||a)return!0;var s=o.getClient(),u=m(r)?t._eventFromRejectionWithPrimitive(r):it(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});u.level=c.Error,L(u,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=v(e)?e.message:e,a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);var s={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=g(t)&&t.length>0?t:function(){var e=(0,j.R)();try{return e.document.location.href}catch(e){return""}}();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Kt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){I((function(t,n){var r=le().getIntegration(e);if(r){var o=r._handler&&r._handler.bind(r);return"function"==typeof o?o(t,n):t}return t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&w(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!w(e[t],Error)||n.length+1>=this._limit)return n;var r=et(Ke(e[t]));return this._walkErrorTree(e[t],t,d([r],n))},e.id="LinkedErrors",e}(),$t=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(r._shouldDropEvent(t,r._previousEvent))return H.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!(!t||!this._isSameMessageEvent(e,t)&&!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!this._isSameFingerprint(e,t)||!this._isSameStacktrace(e,t))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&this._isSameFingerprint(e,t)&&this._isSameStacktrace(e,t))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}(),Qt=(0,j.R)(),Zt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){I((function(t){var n,r,o;if(le().getIntegration(e)){if(!Qt.navigator&&!Qt.location&&!Qt.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Qt.location)||void 0===r?void 0:r.href),a=(Qt.document||{}).referrer,s=(Qt.navigator||{}).userAgent,c=l(l(l({},null===(o=t.request)||void 0===o?void 0:o.headers),a&&{Referer:a}),s&&{"User-Agent":s}),u=l(l({},i&&{url:i}),{headers:c});return l(l({},t),{request:u})}return t}))},e.id="UserAgent",e}(),en=[new Yt,new zt,new Vt,new Ht,new Xt,new Kt,new $t,new Zt];function tn(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=en),void 0===e.release){var t=(0,j.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){var n;!0===t.debug&&H.enable();var r=le();null===(n=r.getScope())||void 0===n||n.update(t.initialScope);var o=new e(t);r.bindClient(o)}(Gt,e),e.autoSessionTracking&&function(){if(void 0!==(0,j.R)().document){var e=le();"function"==typeof e.startSession&&"function"==typeof e.captureSession&&(e.startSession({ignoreDuration:!0}),e.captureSession(),Nt({callback:function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&(e.startSession({ignoreDuration:!0}),e.captureSession())},type:"history"}))}else H.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}function nn(e){void 0===e&&(e={});var t=le(),n=t.getScope();n&&(e.user=l(l({},n.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());var r=t.getClient();r&&r.showReportDialog(e)}function rn(){return le().lastEventId()}function on(){}function an(e){e()}function sn(e){var t=le().getClient();return t?t.flush(e):(H.warn("Cannot flush events. No client defined."),T.resolve(!1))}function cn(e){var t=le().getClient();return t?t.close(e):(H.warn("Cannot flush events and disable SDK. No client defined."),T.resolve(!1))}function un(e){return kt(e)()}var ln="sentry.javascript.browser",pn={},fn=(0,j.R)();fn.Sentry&&fn.Sentry.Integrations&&(pn=fn.Sentry.Integrations);var dn=l(l(l({},pn),r),o)},2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(1422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}},1422:(e,t,n)=>{"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:()=>r,l$:()=>o}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>c,ph:()=>u});var r=n(2991),o=n(1422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}},a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},c=i.nowSeconds.bind(i),u=s.nowSeconds.bind(s);!function(){var e=(0,r.R)().performance;if(e&&e.now){var t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=i<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+n-o):t;(a||c<t)&&(i<=c&&e.timeOrigin)}}()},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),l=n(5061),p=n(5655),f=n(5263);e.exports=function(e){return new Promise((function(t,n){var d,h=e.data,v=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+E)}var b=s(e.baseURL,e.url);function x(){if(m){var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),m=null}}if(m.open(e.method.toUpperCase(),a(b,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(x)},m.onabort=function(){m&&(n(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||p.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var w=(e.withCredentials||u(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;w&&(v[e.xsrfHeaderName]=w)}"setRequestHeader"in m&&r.forEach(v,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete v[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),y&&"json"!==y&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){m&&(n(!e||e&&e.type?new f("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),m.send(h)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var p=e;n.length;){var f=n.shift(),d=n.shift();try{p=f(p)}catch(e){d(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),s=n(5263);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},7288:e=>{e.exports={version:"0.24.0"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9116:(e,t,n)=>{n(9601);var r=n(857);e.exports=r.Object.assign},7633:(e,t,n)=>{n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var r=n(857);e.exports=r.Promise},1951:(e,t,n)=>{n(2526);var r=n(857);e.exports=r.Symbol.keyFor},6074:(e,t,n)=>{"use strict";n(6992),n(1532),n(4838);var r=n(857),o=n(2104),i=n(614),a=r.Map,s=a.of;e.exports=function(){return o(s,i(this)?this:a,arguments)}},7671:(e,t,n)=>{var r=n(4977);e.exports=r},8509:(e,t,n)=>{var r=n(6155);e.exports=r},9662:(e,t,n)=>{var r=n(7854),o=n(614),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,t,n)=>{var r=n(7854),o=n(4411),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,t,n)=>{var r=n(7854),o=n(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,t,n)=>{var r=n(5112),o=n(30),i=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},5787:(e,t,n)=>{var r=n(7854),o=n(7976),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},9670:(e,t,n)=>{var r=n(7854),o=n(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,t,n)=>{var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},1318:(e,t,n)=>{var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,t,n)=>{var r=n(9974),o=n(1702),i=n(8361),a=n(7908),s=n(6244),c=n(5417),u=o([].push),l=function(e){var t=1==e,n=2==e,o=3==e,l=4==e,p=6==e,f=7==e,d=5==e||p;return function(h,v,y,g){for(var m,_,E=a(h),b=i(E),x=r(v,y),w=s(b),S=0,O=g||c,k=t?O(h,w):n||f?O(h,0):void 0;w>S;S++)if((d||S in b)&&(_=x(m=b[S],S,E),e))if(t)k[S]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:u(k,m)}else switch(e){case 4:return!1;case 7:u(k,m)}return p?-1:o||l?l:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1589:(e,t,n)=>{var r=n(7854),o=n(1400),i=n(6244),a=n(6135),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=i(e),u=o(t,r),l=o(void 0===n?r:n,r),p=s(c(l-u,0)),f=0;u<l;u++,f++)a(p,f,e[u]);return p.length=f,p}},206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},7475:(e,t,n)=>{var r=n(7854),o=n(3157),i=n(4411),a=n(111),s=n(5112)("species"),c=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===c||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?c:t}},5417:(e,t,n)=>{var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},4326:(e,t,n)=>{var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,t,n)=>{var r=n(7854),o=n(1694),i=n(614),a=n(4326),s=n(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},7741:(e,t,n)=>{var r=n(1702),o=n(1589),i=r("".replace),a=r("".split),s=r([].join),c=String(Error("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,l=u.test(c),p=/@[^\n]*\n/.test(c)&&!/zxcasd/.test(c);e.exports=function(e,t){if("string"!=typeof e)return e;if(l)for(;t--;)e=i(e,u,"");else if(p)return s(o(a(e,"\n"),t),"\n");return e}},2044:(e,t,n)=>{"use strict";var r=n(206);e.exports=function(){return new this(r(arguments))}},5631:(e,t,n)=>{"use strict";var r=n(3070).f,o=n(30),i=n(2248),a=n(9974),s=n(5787),c=n(408),u=n(654),l=n(6340),p=n(9781),f=n(2423).fastKey,d=n(9909),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,d),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),d=l.prototype,y=v(t),g=function(e,t,n){var r,o,i=y(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=f(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},m=function(e,t){var n,r=y(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(d,{clear:function(){for(var e=y(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,n=y(t),r=m(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=y(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),i(d,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&r(d,"size",{get:function(){return y(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},7710:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(1702),a=n(4705),s=n(1320),c=n(2423),u=n(408),l=n(5787),p=n(614),f=n(111),d=n(7293),h=n(7072),v=n(8003),y=n(9587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),_=g?"set":"add",E=o[e],b=E&&E.prototype,x=E,w={},S=function(e){var t=i(b[e]);s(b,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return m&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!p(E)||!(m||b.forEach&&!d((function(){(new E).entries().next()})))))x=n.getConstructor(t,e,g,_),c.enable();else if(a(e,!0)){var O=new x,k=O[_](m?{}:-0,1)!=O,T=d((function(){O.has(1)})),j=h((function(e){new E(e)})),P=!m&&d((function(){for(var e=new E,t=5;t--;)e[_](t,t);return!e.has(-0)}));j||((x=t((function(e,t){l(e,b);var n=y(new E,e,x);return null!=t&&u(t,n[_],{that:n,AS_ENTRIES:g}),n}))).prototype=b,b.constructor=x),(T||P)&&(S("delete"),S("has"),g&&S("get")),(P||k)&&S(_),m&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=E},w),v(x,e),m||n.setStrong(x,e,g),x}},9920:(e,t,n)=>{var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},8544:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),a=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(4948),o=n(3070),i=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(1913),a=n(6530),s=n(614),c=n(4994),u=n(9518),l=n(7674),p=n(8003),f=n(8880),d=n(1320),h=n(5112),v=n(7497),y=n(3383),g=a.PROPER,m=a.CONFIGURABLE,_=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,b=h("iterator"),x="keys",w="values",S="entries",O=function(){return this};e.exports=function(e,t,n,a,h,y,k){c(n,t,a);var T,j,P,R=function(e){if(e===h&&D)return D;if(!E&&e in A)return A[e];switch(e){case x:case w:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",C=!1,A=e.prototype,N=A[b]||A["@@iterator"]||h&&A[h],D=!E&&N||R(h),L="Array"==t&&A.entries||N;if(L&&(T=u(L.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===_||(l?l(T,_):s(T[b])||d(T,b,O)),p(T,I,!0,!0),i&&(v[I]=O)),g&&h==w&&N&&N.name!==w&&(!i&&m?f(A,"name",w):(C=!0,D=function(){return o(N,this)})),h)if(j={values:R(w),keys:y?D:R(x),entries:R(S)},k)for(P in j)(E||C||!(P in A))&&d(A,P,j[P]);else r({target:t,proto:!0,forced:E||C},j);return i&&!k||A[b]===D||d(A,b,D,{name:h}),v[t]=D,j}},7235:(e,t,n)=>{var r=n(857),o=n(2597),i=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7871:e=>{e.exports="object"==typeof window},1528:(e,t,n)=>{var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:(e,t,n)=>{var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:(e,t,n)=>{var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(7854),a=n(8113),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:(e,t,n)=>{var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,i=n(8880),a=n(1320),s=n(3505),c=n(9920),u=n(4705);e.exports=function(e,t){var n,l,p,f,d,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(f=t[l],p=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),a(n,l,f,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6677:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var t=Function.prototype,n=t.apply,r=t.bind,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},9974:(e,t,n)=>{var r=n(1702),o=n(9662),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?i(e,t):function(){return e.apply(t,arguments)}}},6916:e=>{var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},6530:(e,t,n)=>{var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},1702:e=>{var t=Function.prototype,n=t.bind,r=t.call,o=n&&n.bind(r);e.exports=n?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,t,n)=>{var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(8173),i=n(7497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(9662),a=n(9670),s=n(6330),c=n(1246),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(o(n,e));throw u(s(e)+" is not iterable")}},8173:(e,t,n)=>{var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(e,t,n)=>{var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(7854),o=n(1702),i=n(7293),a=n(4326),s=r.Object,c=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},9587:(e,t,n)=>{var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},2788:(e,t,n)=>{var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},8340:(e,t,n)=>{var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},2423:(e,t,n)=>{var r=n(2109),o=n(1702),i=n(3501),a=n(111),s=n(2597),c=n(3070).f,u=n(8006),l=n(1156),p=n(2050),f=n(9711),d=n(6677),h=!1,v=f("meta"),y=0,g=function(e){c(e,v,{value:{objectID:"O"+y++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[v]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===v){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!p(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!p(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},onFreeze:function(e){return d&&h&&p(e)&&!s(e,v)&&g(e),e}};i[v]=!0},9909:(e,t,n)=>{var r,o,i,a=n(8536),s=n(7854),c=n(1702),u=n(111),l=n(8880),p=n(2597),f=n(5465),d=n(6200),h=n(3501),v="Object already initialized",y=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g),_=c(m.get),E=c(m.has),b=c(m.set);r=function(e,t){if(E(m,e))throw new y(v);return t.facade=e,b(m,e,t),t},o=function(e){return _(m,e)||{}},i=function(e){return E(m,e)}}else{var x=d("state");h[x]=!0,r=function(e,t){if(p(e,x))throw new y(v);return t.facade=e,l(e,x,t),t},o=function(e){return p(e,x)?e[x]:{}},i=function(e){return p(e,x)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,t,n)=>{var r=n(1702),o=n(7293),i=n(614),a=n(648),s=n(5005),c=n(2788),u=function(){},l=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.exec(u),v=function(e){if(!i(e))return!1;try{return p(u,l,e),!0}catch(e){return!1}};e.exports=!p||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(f,c(e))}:v},4705:(e,t,n)=>{var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==l||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},111:(e,t,n)=>{var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},2190:(e,t,n)=>{var r=n(7854),o=n(5005),i=n(614),a=n(7976),s=n(3307),c=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,c(e))}},408:(e,t,n)=>{var r=n(7854),o=n(9974),i=n(6916),a=n(9670),s=n(6330),c=n(7659),u=n(6244),l=n(7976),p=n(8554),f=n(1246),d=n(9212),h=r.TypeError,v=function(e,t){this.stopped=e,this.result=t},y=v.prototype;e.exports=function(e,t,n){var r,g,m,_,E,b,x,w=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=o(t,w),j=function(e){return r&&d(r,"normal",e),new v(!0,e)},P=function(e){return S?(a(e),k?T(e[0],e[1],j):T(e[0],e[1])):k?T(e,j):T(e)};if(O)r=e;else{if(!(g=f(e)))throw h(s(e)+" is not iterable");if(c(g)){for(m=0,_=u(e);_>m;m++)if((E=P(e[m]))&&l(y,E))return E;return new v(!1)}r=p(e,g)}for(b=r.next;!(x=i(b,r)).done;){try{E=P(x.value)}catch(e){d(r,"throw",e)}if("object"==typeof E&&E&&l(y,E))return E}return new v(!1)}},9212:(e,t,n)=>{var r=n(6916),o=n(9670),i=n(8173);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},3383:(e,t,n)=>{"use strict";var r,o,i,a=n(7293),s=n(614),c=n(30),u=n(9518),l=n(1320),p=n(5112),f=n(1913),d=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,t,n)=>{var r=n(7466);e.exports=function(e){return r(e.length)}},5948:(e,t,n)=>{var r,o,i,a,s,c,u,l,p=n(7854),f=n(9974),d=n(1236).f,h=n(261).set,v=n(6833),y=n(1528),g=n(1036),m=n(5268),_=p.MutationObserver||p.WebKitMutationObserver,E=p.document,b=p.process,x=p.Promise,w=d(p,"queueMicrotask"),S=w&&w.value;S||(r=function(){var e,t;for(m&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},v||m||g||!_||!E?!y&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,l=f(u.then,u),a=function(){l(r)}):m?a=function(){b.nextTick(r)}:(h=f(h,p),a=function(){h(r)}):(s=!0,c=E.createTextNode(""),new _(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},3366:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},133:(e,t,n)=>{var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},8523:(e,t,n)=>{"use strict";var r=n(9662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},6277:(e,t,n)=>{var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(1702),i=n(6916),a=n(7293),s=n(1956),c=n(5181),u=n(5296),l=n(7908),p=n(8361),f=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,a=1,f=c.f,d=u.f;o>a;)for(var v,y=p(arguments[a++]),g=f?h(s(y),f(y)):s(y),m=g.length,_=0;m>_;)v=g[_++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:f},30:(e,t,n)=>{var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),l=n(6200)("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?d(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},6048:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9670),a=n(5656),s=n(1956);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=s(t),u=c.length,l=0;u>l;)o.f(e,n=c[l++],r[n]);return e}},3070:(e,t,n)=>{var r=n(7854),o=n(9781),i=n(4664),a=n(9670),s=n(4948),c=r.TypeError,u=Object.defineProperty;t.f=o?u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),c=n(4948),u=n(2597),l=n(4664),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=s(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},1156:(e,t,n)=>{var r=n(4326),o=n(5656),i=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8006:(e,t,n)=>{var r=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,n)=>{var r=n(7854),o=n(2597),i=n(614),a=n(7908),s=n(6200),c=n(8544),u=s("IE_PROTO"),l=r.Object,p=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=a(e);if(o(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?p:null}},2050:(e,t,n)=>{var r=n(7293),o=n(111),i=n(4326),a=n(7556),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},7976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:(e,t,n)=>{var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},1956:(e,t,n)=>{var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:(e,t,n)=>{var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},288:(e,t,n)=>{"use strict";var r=n(1694),o=n(648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(614),a=n(111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},3887:(e,t,n)=>{var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},857:(e,t,n)=>{var r=n(7854);e.exports=r},2534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:(e,t,n)=>{var r=n(9670),o=n(111),i=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},2248:(e,t,n)=>{var r=n(1320);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},1320:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2597),a=n(8880),s=n(3505),c=n(2788),u=n(9909),l=n(6530).CONFIGURABLE,p=u.get,f=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,c){var u,p=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet,y=c&&void 0!==c.name?c.name:t;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==y)&&a(n,"name",y),(u=f(n)).source||(u.source=d.join("string"==typeof y?y:""))),e!==r?(p?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||c(this)}))},4488:(e,t,n)=>{var r=n(7854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},3505:(e,t,n)=>{var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:(e,t,n)=>{"use strict";var r=n(5005),o=n(3070),i=n(5112),a=n(9781),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:(e,t,n)=>{var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},6200:(e,t,n)=>{var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,n)=>{var r=n(7854),o=n(3505),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:(e,t,n)=>{var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(e,t,n)=>{var r=n(9670),o=n(9483),i=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},8710:(e,t,n)=>{var r=n(1702),o=n(9303),i=n(1340),a=n(4488),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(a(t)),f=o(n),d=p.length;return f<0||f>=d?e?"":void 0:(r=c(p,f))<55296||r>56319||f+1===d||(l=c(p,f+1))<56320||l>57343?e?s(p,f):r:e?u(p,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},261:(e,t,n)=>{var r,o,i,a,s=n(7854),c=n(2104),u=n(9974),l=n(614),p=n(2597),f=n(7293),d=n(490),h=n(206),v=n(317),y=n(6833),g=n(5268),m=s.setImmediate,_=s.clearImmediate,E=s.process,b=s.Dispatch,x=s.Function,w=s.MessageChannel,S=s.String,O=0,k={};try{r=s.location}catch(e){}var T=function(e){if(p(k,e)){var t=k[e];delete k[e],t()}},j=function(e){return function(){T(e)}},P=function(e){T(e.data)},R=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};m&&_||(m=function(e){var t=h(arguments,1);return k[++O]=function(){c(l(e)?e:x(e),void 0,t)},o(O),O},_=function(e){delete k[e]},g?o=function(e){E.nextTick(j(e))}:b&&b.now?o=function(e){b.now(j(e))}:w&&!y?(a=(i=new w).port2,i.port1.onmessage=P,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(R)?(o=R,s.addEventListener("message",P,!1)):o="onreadystatechange"in v("script")?function(e){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(e)}}:function(e){setTimeout(j(e),0)}),e.exports={set:m,clear:_}},1400:(e,t,n)=>{var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:(e,t,n)=>{var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},7466:(e,t,n)=>{var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(7854),o=n(4488),i=r.Object;e.exports=function(e){return i(o(e))}},7593:(e,t,n)=>{var r=n(7854),o=n(6916),i=n(111),a=n(2190),s=n(8173),c=n(2140),u=n(5112),l=r.TypeError,p=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,p);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},4948:(e,t,n)=>{var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:(e,t,n)=>{var r=n(7854),o=n(648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:(e,t,n)=>{var r=n(7854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},9711:(e,t,n)=>{var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(e,t,n)=>{var r=n(5112);t.f=r},5112:(e,t,n)=>{var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(133),c=n(3307),u=o("wks"),l=r.Symbol,p=l&&l.for,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(l,e)?u[e]=l[e]:u[e]=c&&p?p(t):f(t)}return u[e]}},9170:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(7976),a=n(9518),s=n(7674),c=n(9920),u=n(30),l=n(8880),p=n(9114),f=n(7741),d=n(8340),h=n(408),v=n(6277),y=n(5112),g=n(2914),m=y("toStringTag"),_=o.Error,E=[].push,b=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=i(x,this);s?n=s(new _(void 0),o?a(this):x):(n=o?this:u(x),l(n,m,"Error")),l(n,"message",v(t,"")),g&&l(n,"stack",f(n.stack,1)),d(n,r);var c=[];return h(e,E,{that:c}),l(n,"errors",c),n};s?s(b,_):c(b,_);var x=b.prototype=u(_.prototype,{constructor:p(1,b),message:p(1,""),name:p(1,"AggregateError")});r({global:!0},{AggregateError:b})},6992:(e,t,n)=>{"use strict";var r=n(5656),o=n(1223),i=n(7497),a=n(9909),s=n(654),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},1532:(e,t,n)=>{"use strict";n(7710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},9601:(e,t,n)=>{var r=n(2109),o=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},1539:(e,t,n)=>{var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},7922:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(9662),a=n(8523),s=n(2534),c=n(408);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s((function(){var n=i(t.resolve),a=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){c||(c=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},4668:(e,t,n)=>{"use strict";var r=n(2109),o=n(9662),i=n(5005),a=n(6916),s=n(8523),c=n(2534),u=n(408),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),p=r.resolve,f=r.reject,d=c((function(){var r=o(t.resolve),i=[],s=0,c=1,d=!1;u(e,(function(e){var o=s++,u=!1;c++,a(r,t,e).then((function(e){u||d||(d=!0,p(e))}),(function(e){u||d||(u=!0,i[o]=e,--c||f(new n(i,l)))}))})),--c||f(new n(i,l))}));return d.error&&f(d.value),r.promise}})},7727:(e,t,n)=>{"use strict";var r=n(2109),o=n(1913),i=n(3366),a=n(7293),s=n(5005),c=n(614),u=n(6707),l=n(9478),p=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!o&&c(i)){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&p(i.prototype,"finally",f,{unsafe:!0})}},8674:(e,t,n)=>{"use strict";var r,o,i,a,s=n(2109),c=n(1913),u=n(7854),l=n(5005),p=n(6916),f=n(3366),d=n(1320),h=n(2248),v=n(7674),y=n(8003),g=n(6340),m=n(9662),_=n(614),E=n(111),b=n(5787),x=n(2788),w=n(408),S=n(7072),O=n(6707),k=n(261).set,T=n(5948),j=n(9478),P=n(842),R=n(8523),I=n(2534),C=n(9909),A=n(4705),N=n(5112),D=n(7871),L=n(5268),U=n(7392),M=N("species"),F="Promise",q=C.getterFor(F),B=C.set,H=C.getterFor(F),G=f&&f.prototype,W=f,Y=G,z=u.TypeError,J=u.document,V=u.process,X=R.f,K=X,$=!!(J&&J.createEvent&&u.dispatchEvent),Q=_(u.PromiseRejectionEvent),Z="unhandledrejection",ee=!1,te=A(F,(function(){var e=x(W),t=e!==String(W);if(!t&&66===U)return!0;if(c&&!Y.finally)return!0;if(U>=51&&/native code/.test(e))return!1;var n=new W((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[M]=r,!(ee=n.then((function(){}))instanceof r)||!t&&D&&!Q})),ne=te||!S((function(e){W.all(e).catch((function(){}))})),re=function(e){var t;return!(!E(e)||!_(t=e.then))&&t},oe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;T((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,c,u=n[i++],l=o?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{l?(o||(2===e.rejection&&ce(e),e.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),c=!0)),a===u.promise?d(z("Promise-chain cycle")):(s=re(a))?p(s,a,f,d):f(a)):d(r)}catch(e){h&&!c&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},ie=function(e,t,n){var r,o;$?((r=J.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(o=u["on"+e])?o(r):e===Z&&P("Unhandled promise rejection",n)},ae=function(e){p(k,u,(function(){var t,n=e.facade,r=e.value;if(se(e)&&(t=I((function(){L?V.emit("unhandledRejection",r,n):ie(Z,n,r)})),e.rejection=L||se(e)?2:1,t.error))throw t.value}))},se=function(e){return 1!==e.rejection&&!e.parent},ce=function(e){p(k,u,(function(){var t=e.facade;L?V.emit("rejectionHandled",t):ie("rejectionhandled",t,e.value)}))},ue=function(e,t,n){return function(r){e(t,r,n)}},le=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,oe(e,!0))},pe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var r=re(t);r?T((function(){var n={done:!1};try{p(r,t,ue(pe,n,e),ue(le,n,e))}catch(t){le(n,t,e)}})):(e.value=t,e.state=1,oe(e,!1))}catch(t){le({done:!1},t,e)}}};if(te&&(Y=(W=function(e){b(this,Y),m(e),p(r,this);var t=q(this);try{e(ue(pe,t),ue(le,t))}catch(e){le(t,e)}}).prototype,(r=function(e){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(Y,{then:function(e,t){var n=H(this),r=n.reactions,o=X(O(this,W));return o.ok=!_(e)||e,o.fail=_(t)&&t,o.domain=L?V.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&oe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=q(e);this.promise=e,this.resolve=ue(pe,t),this.reject=ue(le,t)},R.f=X=function(e){return e===W||e===i?new o(e):K(e)},!c&&_(f)&&G!==Object.prototype)){a=G.then,ee||(d(G,"then",(function(e,t){var n=this;return new W((function(e,t){p(a,n,e,t)})).then(e,t)}),{unsafe:!0}),d(G,"catch",Y.catch,{unsafe:!0}));try{delete G.constructor}catch(e){}v&&v(G,Y)}s({global:!0,wrap:!0,forced:te},{Promise:W}),y(W,F,!1,!0),g(F),i=l(F),s({target:F,stat:!0,forced:te},{reject:function(e){var t=X(this);return p(t.reject,void 0,e),t.promise}}),s({target:F,stat:!0,forced:c||te},{resolve:function(e){return j(c&&this===i?W:this,e)}}),s({target:F,stat:!0,forced:ne},{all:function(e){var t=this,n=X(t),r=n.resolve,o=n.reject,i=I((function(){var n=m(t.resolve),i=[],a=0,s=1;w(e,(function(e){var c=a++,u=!1;s++,p(n,t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,o=I((function(){var o=m(t.resolve);w(e,(function(e){p(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},8783:(e,t,n)=>{"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),a=n(654),s="String Iterator",c=i.set,u=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},2526:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(5005),a=n(2104),s=n(6916),c=n(1702),u=n(1913),l=n(9781),p=n(133),f=n(7293),d=n(2597),h=n(3157),v=n(614),y=n(111),g=n(7976),m=n(2190),_=n(9670),E=n(7908),b=n(5656),x=n(4948),w=n(1340),S=n(9114),O=n(30),k=n(1956),T=n(8006),j=n(1156),P=n(5181),R=n(1236),I=n(3070),C=n(5296),A=n(206),N=n(1320),D=n(2309),L=n(6200),U=n(3501),M=n(9711),F=n(5112),q=n(6061),B=n(7235),H=n(8003),G=n(9909),W=n(2092).forEach,Y=L("hidden"),z="Symbol",J=F("toPrimitive"),V=G.set,X=G.getterFor(z),K=Object.prototype,$=o.Symbol,Q=$&&$.prototype,Z=o.TypeError,ee=o.QObject,te=i("JSON","stringify"),ne=R.f,re=I.f,oe=j.f,ie=C.f,ae=c([].push),se=D("symbols"),ce=D("op-symbols"),ue=D("string-to-symbol-registry"),le=D("symbol-to-string-registry"),pe=D("wks"),fe=!ee||!ee.prototype||!ee.prototype.findChild,de=l&&f((function(){return 7!=O(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ne(K,t);r&&delete K[t],re(e,t,n),r&&e!==K&&re(K,t,r)}:re,he=function(e,t){var n=se[e]=O(Q);return V(n,{type:z,tag:e,description:t}),l||(n.description=t),n},ve=function(e,t,n){e===K&&ve(ce,t,n),_(e);var r=x(t);return _(n),d(se,r)?(n.enumerable?(d(e,Y)&&e[Y][r]&&(e[Y][r]=!1),n=O(n,{enumerable:S(0,!1)})):(d(e,Y)||re(e,Y,S(1,{})),e[Y][r]=!0),de(e,r,n)):re(e,r,n)},ye=function(e,t){_(e);var n=b(t),r=k(n).concat(Ee(n));return W(r,(function(t){l&&!s(ge,n,t)||ve(e,t,n[t])})),e},ge=function(e){var t=x(e),n=s(ie,this,t);return!(this===K&&d(se,t)&&!d(ce,t))&&(!(n||!d(this,t)||!d(se,t)||d(this,Y)&&this[Y][t])||n)},me=function(e,t){var n=b(e),r=x(t);if(n!==K||!d(se,r)||d(ce,r)){var o=ne(n,r);return!o||!d(se,r)||d(n,Y)&&n[Y][r]||(o.enumerable=!0),o}},_e=function(e){var t=oe(b(e)),n=[];return W(t,(function(e){d(se,e)||d(U,e)||ae(n,e)})),n},Ee=function(e){var t=e===K,n=oe(t?ce:b(e)),r=[];return W(n,(function(e){!d(se,e)||t&&!d(K,e)||ae(r,se[e])})),r};if(p||(N(Q=($=function(){if(g(Q,this))throw Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,t=M(e),n=function(e){this===K&&s(n,ce,e),d(this,Y)&&d(this[Y],t)&&(this[Y][t]=!1),de(this,t,S(1,e))};return l&&fe&&de(K,t,{configurable:!0,set:n}),he(t,e)}).prototype,"toString",(function(){return X(this).tag})),N($,"withoutSetter",(function(e){return he(M(e),e)})),C.f=ge,I.f=ve,R.f=me,T.f=j.f=_e,P.f=Ee,q.f=function(e){return he(F(e),e)},l&&(re(Q,"description",{configurable:!0,get:function(){return X(this).description}}),u||N(K,"propertyIsEnumerable",ge,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:$}),W(k(pe),(function(e){B(e)})),r({target:z,stat:!0,forced:!p},{for:function(e){var t=w(e);if(d(ue,t))return ue[t];var n=$(t);return ue[t]=n,le[n]=t,n},keyFor:function(e){if(!m(e))throw Z(e+" is not a symbol");if(d(le,e))return le[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!l},{create:function(e,t){return void 0===t?O(e):ye(O(e),t)},defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:me}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:_e,getOwnPropertySymbols:Ee}),r({target:"Object",stat:!0,forced:f((function(){P.f(1)}))},{getOwnPropertySymbols:function(e){return P.f(E(e))}}),te&&r({target:"JSON",stat:!0,forced:!p||f((function(){var e=$();return"[null]"!=te([e])||"{}"!=te({a:e})||"{}"!=te(Object(e))}))},{stringify:function(e,t,n){var r=A(arguments),o=t;if((y(t)||void 0!==e)&&!m(e))return h(t)||(t=function(e,t){if(v(o)&&(t=s(o,this,e,t)),!m(t))return t}),r[1]=t,a(te,null,r)}}),!Q[J]){var be=Q.valueOf;N(Q,J,(function(e){return s(be,this)}))}H($,z),U[Y]=!0},4838:(e,t,n)=>{n(2109)({target:"Map",stat:!0},{of:n(2044)})},4977:(e,t,n)=>{var r=n(9116);e.exports=r},6155:(e,t,n)=>{var r=n(1951);e.exports=r},6245:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{default:()=>s,InvalidTokenError:()=>a}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},2081:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(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.defineProperty(t,"__esModule",{value:!0}),t.PlayerEvents=t.Events=t.Player=t.Client=void 0,n(7633),n(8509),n(6074),n(7671);var i=n(9138);t.Client=i.default;var a=n(909);t.Player=a.default,(0,n(9773).printVersion)();var s=o([r({},i.default.eventNames),r({},a.default.events)],2),c=s[0],u=s[1];t.Events=c,t.PlayerEvents=u},9138:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(8237),a=n(1808),s=n(4479),c=n(3998),u=n(9259),l=n(3447),p=n(4348),f=o(n(4776).Lp,[]),d=function(){function e(t){var n=this;this.clientConfig=void 0,this.gaProperty="",this.directDeliveryPipe=void 0,this.player=void 0,this.renderHistory=f.emptyHistory,this.eventDelegateRefs=(0,p.cloneWithKeys)(e.eventNames),this.playerIsFallback=!1,this.setup=function(e){var t=f.defaultConfig,o=n.clientConfig||f.defaultConfig,a=new Map,d=null;try{if("object"!=typeof e)throw new l.ClientConfigurationError("badConfig",null);if(!e.hasOwnProperty("storyId")||"string"!=typeof e.storyId)throw new l.ClientConfigurationError("storyId",null);if(!e.hasOwnProperty("accessToken")||"string"!=typeof e.accessToken)throw new l.ClientConfigurationError("accessToken",null);(0,p.prepConfig)(e,t),n.clientConfig=r(r({},o),e),d=new i.default(n.clientConfig.accessToken,n.clientConfig.environment,n.clientConfig.storyId,n.clientConfig.compositionId),a.set("experienceCreated",(function(e){return n.experienceCreated(e)})),a.set("gotExperience",(function(e){return n.gotExperience(e)})),a.set("internalError",(function(e){return n.internalError(e)})),n.directDeliveryPipe=new u.default({api:d,clientDelegates:a,environment:n.clientConfig.environment}),d.getGAProperty().then((function(e){var t=e.gaTrackingId;"string"==typeof t&&t.length>0&&(s.default.initialize(n.clientConfig.gaPlacement),n.gaProperty=t,void 0!==n.player&&n.player.setGaProperty(t))})).catch((function(e){var t=new l.HTTPError("httpFailure",null,e);c.default.trapError(t,n.clientConfig.storyId,null)}))}catch(t){var h=e&&e.storyId?e.storyId:"";c.default.trapError(t,h)}},this.bindPlayer=function(e,t){if(void 0===t&&(t=!1),n.clientConfig){var r=n.clientConfig.storyId;n.playerIsFallback=t,n.player=e,e.setStoryId(r),n.gaProperty&&e.setGaProperty(n.gaProperty)}},this.on=function(t,r){var o=n,i=o.eventDelegateRefs,a=o.eventDelegateRefs.ERROR;if(n.clientConfig){var s=n.clientConfig.storyId;try{if(!(0,p.isFunc)(r))throw new l.ClientConfigurationError("invalidCallbackType",t);if(!(0,p.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);i[t]=r}catch(e){c.default.trapError(e,s,a)}}},this.off=function(t){void 0===t&&(t="");var r=n,o=r.eventDelegateRefs,i=r.eventDelegateRefs.ERROR;if(n.clientConfig){var a=n.clientConfig.storyId;try{if(t){if(!(0,p.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);o[t]=null}else Object.keys(e.eventNames).forEach((function(e){o[e]=null}))}catch(e){c.default.trapError(e,a,i)}}},this.captureAnalytics=function(e){void 0===e&&(e=null);var t=n.eventDelegateRefs.ERROR;if(n.clientConfig){var r=n.clientConfig.storyId;try{if(!(e instanceof HTMLVideoElement))throw new l.PlayerConfigurationError("invalidPlayerRef",null);n.bindPlayer(new a.default(e),!0)}catch(e){c.default.trapError(e,r,t)}}},this.getExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.clientConfig.storyId,a=r.eventDelegateRefs,s=a.GOT_EXPERIENCE,u=a.ERROR;try{if(null===o&&!(0,p.isFunc)(s))throw new l.ClientConfigurationError("badConfigOnGet",e.eventNames.GOT_EXPERIENCE);t.length>f.uuidLength&&(t=t.substring(0,f.uuidLength)),n.directDeliveryPipe.getExperience(t)}catch(e){c.default.trapError(e,i,u)}}},this.createExperience=function(t,r){if(void 0===r&&(r=!0),n.clientConfig){var o=n,i=o.player,a=o.playerIsFallback,s=o.clientConfig.storyId,u=o.eventDelegateRefs,f=u.GOT_EXPERIENCE,d=u.UPLOAD_PROGRESS,h=u.ERROR;try{if((null===i||a)&&!(0,p.isFunc)(f))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.createExperience(t,r,d)}catch(e){c.default.trapError(e,s,h)}}},this.renderExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,a=r.clientConfig.storyId,s=r.eventDelegateRefs,u=s.GOT_EXPERIENCE,f=s.UPLOAD_PROGRESS,d=s.ERROR;try{if((null===o||i)&&!(0,p.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(t,f)}catch(e){c.default.trapError(e,a,d)}}},this.updateHistory=function(e,t){n.renderHistory[e]!==t&&(n.renderHistory[e]=t)},this.experienceCreated=function(e){var t=n.eventDelegateRefs.EXPERIENCE_CREATED,r=e.id;(0,p.isFunc)(t)&&t(e),n.updateHistory("prevExperienceId",r)},this.gotExperience=function(e){var t=n,r=t.player,o=t.clientConfig.storyId,i=t.eventDelegateRefs,a=i.GOT_EXPERIENCE,s=i.ERROR,u=e.id,f=e.moderation_status;try{if("rejected"===f)throw new l.ModerationError("rejection",u);(0,p.isFunc)(a)&&a(e),void 0!==r&&r.experienceGenerated(e),n.updateHistory("prevExperienceId",u),n.updateHistory("prevMessage","")}catch(e){c.default.trapError(e,o,s)}},this.internalError=function(e){var t=n,r=t.clientConfig.storyId,o=t.eventDelegateRefs.ERROR;c.default.trapError(e,r,o)},this.setup(t)}return e.eventNames=f.eventNames,e}();t.default=d},9259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4348),o=n(3447),i=function(){function e(e){var t=this;this.api=null,this.clientDelegates=null,this.configCache=new Map,this.getExperience=function(e){clearTimeout(t.killPollTimeout),t.killPollTimeout=setTimeout((function(){return t.killPoll(e)}),18e4),t.pollForExperience(e,(function(e){t.clientDelegates.get("gotExperience")(e)}),(function(n){var r=new o.HTTPError("httpFailure",e,n);t.clientDelegates.get("internalError")(r)}))},this.fetchExperience=function(e,n,i){void 0===i&&(i=1);var a=(0,r.generateUUID)();t.api.fetch(e,a,n).then((function(e){if(e.error){var n=new o.RenderError(e.error,a);t.clientDelegates.get("internalError")(n)}else t.configCache.delete(a),t.clientDelegates.get("gotExperience")(e)})).catch((function(r){var s,c;if(null===(c=null===(s=null==r?void 0:r.response)||void 0===s?void 0:s.data)||void 0===c?void 0:c.error){var u=new o.RenderError(r.response.data.error,a);t.clientDelegates.get("internalError")(u)}else r.response&&408===r.response.status?t.getExperience(a):r.response&&r.response.status>=500&&i<3?(i+=1,t.fetchExperience(e,n,i)):(u=new o.HTTPError("httpFailure",a,r),t.clientDelegates.get("internalError")(u))}))},this.createExperience=function(e,n,i,a){void 0===a&&(a=0);var s=(0,r.generateUUID)();t.api.create(e,n,s,i).then((function(e){t.configCache.delete(s),t.clientDelegates.get("experienceCreated")(e)})).catch((function(r){if(r.response&&r.response.status>=500&&a<3)a+=1,t.createExperience(e,n,i,a);else{var c=new o.HTTPError("httpFailure",s,r);t.clientDelegates.get("internalError")(c)}}))},this.api=e.api,this.clientDelegates=e.clientDelegates}return e.prototype.killPoll=function(e){clearTimeout(this.pollTimeout);var t=new o.HTTPError("pollTimeout",e);this.clientDelegates.get("internalError")(t)},e.prototype.pollForExperience=function(e,t,n,r){var i=this;void 0===r&&(r=1),this.api.get(e).then((function(a){if(a.rendering)clearTimeout(i.pollTimeout),i.pollTimeout=setTimeout((function(){i.pollForExperience(e,t,n,r)}),5e3);else if(clearTimeout(i.pollTimeout),a.error){var s=new o.RenderError(a.error,e);i.clientDelegates.get("internalError")(s)}else t(a)})).catch((function(o){clearTimeout(i.pollTimeout),o.response&&o.response.status>=500&&r<3?(r+=1,i.pollForExperience(e,t,n,r)):n(o)}))},e}();t.default=i},8237:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6245),a=n(9669),s=n(4348),c=o(n(4776).hi,[]);t.default=function(e,t,n,o){var u,l=this;void 0===o&&(o=null),this.http=null,this.storyId="",this.compositionId="",this.getGAProperty=function(){return new Promise((function(e,t){l.http.get("/story/".concat(l.storyId,"/property")).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.get=function(e){return new Promise((function(t,n){l.http.get("/experience/".concat(e,"?r=").concat(Math.random())).then((function(e){t(e.data)})).catch((function(e){n(e)}))}))},this.fetch=function(e,t,n){void 0===n&&(n=null);var r=(0,s.inventoryToFormData)(l.storyId,e,l.compositionId),o={onUploadProgress:function(e){return l.uploadProgress(e,n)}};return r.append("id",t),new Promise((function(e,t){l.http.post("/experience/fetch",r,o).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.create=function(e,t,n,r){void 0===r&&(r=null);var o=t?"/experience/render":"/experience",i=(0,s.inventoryToFormData)(l.storyId,e,l.compositionId),a={onUploadProgress:function(e){return l.uploadProgress(e,r)}};return i.append("id",n),new Promise((function(e,t){l.http.post(o,i,a).then((function(t){e(t.data)})).catch((function(e){t(e)}))}))},this.getAuthHeader=function(e){var t,n,r=c.jwt,o=c.hmac;try{return(0,i.default)(e),(t={})[r]=e,t}catch(t){return(n={})[o]=e,n}},this.uploadProgress=function(e,t){if(void 0===t&&(t=null),t){var n=e.loaded,r=e.total;t(Math.round(n/r*100))}};var p=c.version,f=c.currentVersion;this.storyId=n,this.compositionId=o,this.http=a.default.create({baseURL:c[t],headers:r(r({},this.getAuthHeader(e)),(u={},u[p]=f,u))})}},3998:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(8969),i=n(3447),a=n(9773),s=r(n(3199),[]),c=n(4776).D_,u=function(){function e(){}return e.logWarning=function(e,t){console.warn("IMPOSIUM\n".concat(s[e][t]))},e.trapError=function(t,n,r){void 0===r&&(r=null),t=t.log?t:new i.UncaughtError("generic",t),n&&t.setStoryId(n),r&&r(t),t.log(),e.hub.run((function(e){e.configureScope((function(r){r.setTag("type",t.type),r.setTag("version",t.version),r.setTag("storyId",n||"<not_set>"),t.experienceId&&r.setTag("experienceId",t.experienceId),t.axiosError&&("object"==typeof t.axiosError.response?r.setExtra("response",t.axiosError.response):"object"==typeof t.axiosError.request?(r.setExtra("request",t.axiosError.request),r.setExtra("reuqestConfig",t.axiosError.config)):(r.setExtra("axiosErrorMessage",t.axiosError.message),r.setExtra("reuqestConfig",t.axiosError.config))),t.closeEvent&&r.setExtra("socketCloseEvent",{code:t.closeEvent.code,type:t.closeEvent.type,timestamp:t.closeEvent.timeStamp,wsUrl:t.closeEvent.target.url,wsBufferedAmount:t.closeEvent.target.bufferedAmount}),e.captureException(t)}))}))},e.sentryClient=new o.BrowserClient({debug:!1,dsn:c.dsn,integrations:[new o.Integrations.UserAgent],beforeSend:function(t){return e.cleanDucktype(t)},release:"".concat(c.projectName,"@").concat(a.version)}),e.hub=new o.Hub(e.sentryClient),e.cleanDucktype=function(e){return void 0===e.extra||e.extra.Error&&(delete e.extra.Error.log,delete e.extra.Error.logHeader,delete e.extra.Error.setStoryId,e.extra.Error.axiosError&&delete e.extra.Error.axiosError,e.extra.Error.closeEvent&&delete e.extra.Error.closeEvent),e},e}();t.default=u},3447:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])})(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)}),i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UncaughtError=t.HTTPError=t.PlayerConfigurationError=t.ClientConfigurationError=t.ModerationError=t.RenderError=t.ImposiumError=void 0;var a=n(9773),s=i(n(4168),[]),c="moderation",u="clientConfiguration",l="playerConfiguration",p="network",f="uncaught",d=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="",o.version=a.version,o.storyId="<not_set>",o.logHeader="[IMPOSIUM ERROR]",o.setStoryId=function(e){o.storyId=e},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.type=r,o}return o(t,e),t}(Error);t.ImposiumError=d;var h=function(e){function t(n,r){var o=e.call(this,n,"render")||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Error rendering dynamic video\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.RenderError=h;var v=function(e){function t(n,r){var o=e.call(this,s.moderation[n],c)||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Failed to pass moderation\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(d);t.ModerationError=v;var y=function(e){function t(n,r){var o=e.call(this,s.clientConfiguration[n],u)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid client configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.ClientConfigurationError=y;var g=function(e){function t(n,r){var o=e.call(this,s.playerConfiguration[n],l)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid player configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(d);t.PlayerConfigurationError=g;var m=function(e){function t(n,r,o){var i,a,c=e.call(this,s.network[n],p)||this;return c.experienceId=null,c.axiosError=null,c.log=function(){console.error("".concat(c.logHeader,"\n \nReason: HTTP error\n \nMessage: ").concat(c.message,"\n \nExperience ID: ").concat(c.experienceId,"\n \nNetwork Error: ").concat(c.axiosError," "))},Error.captureStackTrace&&Error.captureStackTrace(c,t),(null===(a=null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.error)&&(c.message=o.response.data.error),c.experienceId=r||"<not_set>",c.axiosError=o||"<not_set>",c}return o(t,e),t}(d);t.HTTPError=m;var _=function(e){function t(n,r){var o=e.call(this,s.uncaught[n],f)||this;return o.uncaughtError=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Unknown\n \nMessage: ").concat(o.message,"\n \nError: "),o.uncaughtError)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.uncaughtError=r,o}return o(t,e),t}(d);t.UncaughtError=_},4479:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__values||function(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.defineProperty(t,"__esModule",{value:!0});var a=n(3998),s=n(9669),c=n(4348),u=o(n(4776).co,[]),l=function(){function e(){}return e.gaPlacement="",e.initialize=function(t){try{var n=new Date,r=JSON.parse(localStorage.getItem(e.CACHE_KEY))||{};if(e.gaPlacement=t,r.uuid&&r.expiry>=(new Date).valueOf())return void(e.CLIENT_ID=r.uuid);r.uuid=(0,c.generateUUID)(),r.expiry=n.setFullYear(n.getFullYear()+2),localStorage.setItem(e.CACHE_KEY,JSON.stringify(r)),e.CLIENT_ID=r.uuid}catch(t){e.CLIENT_ID=(0,c.generateUUID)()}},e.send=function(t){var n,o,c=e.BASE_URL,u=document.referrer;t=r({v:"1",ds:e.gaPlacement,cid:e.CLIENT_ID,z:"".concat(Math.round((new Date).getTime()/1e3))},t),""!==u&&(t.dr=u);try{for(var l=i(Object.keys(t)),p=l.next();!p.done;p=l.next()){var f=p.value,d=c===e.BASE_URL?"?":"&";c+="".concat(d).concat(f,"=").concat(encodeURIComponent(t[f]))}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}s.default.get(c).catch((function(){a.default.logWarning("analytics","requestFailed")}))},e.BASE_URL=u.baseUrl,e.CACHE_KEY=u.cacheKey,e.CLIENT_ID=u.cidPlaceholder,e}();t.default=l},4348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inventoryToFormData=t.generateUUID=t.calculateAverageMbps=t.calculateMbps=t.cloneWithKeys=t.keyExists=t.isFunc=t.inRangeNumeric=t.prepConfig=void 0,t.prepConfig=function(e,t){var n=Object.keys(t);for(var r in e)-1===n.indexOf(r)&&delete e[r]},t.inRangeNumeric=function(e,t,n){return(e-t)*(e-n)<=0},t.isFunc=function(e){return"[object Function]"===Object.prototype.toString.call(e)},t.keyExists=function(e,t){return~Object.keys(e).map((function(t){return e[t]})).indexOf(t)},t.cloneWithKeys=function(e){return Object.keys(e).reduce((function(e,t){return e[t]=null,e}),{})},t.calculateMbps=function(e,t){return 8*t/(((new Date).getTime()-e)/1e3)/Math.pow(1024,2)},t.calculateAverageMbps=function(e){var t=e.reduce((function(e,t){return e+t}));return parseFloat((t/e.length).toFixed(2))},t.generateUUID=function(){var e=window.performance,t=(new Date).getTime();return void 0!==e&&"function"==typeof e.now&&(t+=e.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:7&n|8).toString(16)}))},t.inventoryToFormData=function(e,t,n){void 0===n&&(n=null);var r=new FormData;for(var o in r.append("story_id",e),n&&r.append("composition_id",n),t)if(t[o]){var i=t[o];if(i&&"file"===i.type){var a=i.files;a.length>0?(t[o]="",r.append(o,a[0])):t[o]=""}else i&&i instanceof File&&(t[o]="",r.append(o,i,i.name));r.append("inventory[".concat(o,"]"),t[o])}return r}},9773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printVersion=t.version=void 0,t.version="3.0.0",t.printVersion=function(){console.log("%cPowered By%c Imposium%c v".concat("3.0.0","%c https://imposium.com"),"text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;","text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;","padding: 5px 5px 5px 0px; background-color: black; color: white;","padding: 5px 5px 5px 0px;")}},1808:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])})(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)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,t)||this;return n.experienceGenerated=function(e){var t=e.id;n.setExperienceId(t)},n}return o(t,e),t}(n(917).default);t.default=i},909:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])})(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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(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.defineProperty(t,"__esModule",{value:!0});var s=n(9669),c=n(917),u=n(3998),l=n(3447),p=n(4348),f=n(4776).aq,d=window.hls,h=function(e){function t(n,r,o){void 0===o&&(o=f.defaultConfig);var c=e.call(this,n)||this;c.eventDelegateRefs={play:{callback:null,native:!0},pause:{callback:null,native:!0},ended:{callback:null,native:!0},error:{callback:null,native:!0},seeked:{callback:null,native:!0},timeupdate:{callback:null,native:!0},volumechanged:{callback:null,native:!0},muted:{callback:null,native:!1},controlsset:{callback:null,native:!1}},c.hlsSupport="",c.hlsPlayer=null,c.imposiumPlayerConfig=null,c.init=function(e){var t=f.defaultConfig;for(var n in(0,p.prepConfig)(e,t),c.imposiumPlayerConfig=i(i({},t),e),c.imposiumPlayerConfig)c.imposiumPlayerConfig[n]&&(c.node[n]=c.imposiumPlayerConfig[n])},c.experienceGenerated=function(e){var t=c.imposiumPlayerConfig.qualityOverride,n=e.id,r=e.output,o=r.videos,i=r.images,a="";c.setExperienceId(n),i&&i.hasOwnProperty("poster")&&(a=i.poster),t?c.doQualityOverride(o,a):c.doQualityAssessment(o,a)},c.on=function(e,n){var r=c,o=r.storyId,i=r.eventDelegateRefs;try{if(!(0,p.isFunc)(n))throw new l.PlayerConfigurationError("invalidCallbackType",e);if(!(0,p.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var a=i[e];a.callback=n,a.native&&c.node.addEventListener(e,a.callback)}catch(e){u.default.trapError(e,o)}},c.off=function(e){var n=c,r=n.storyId,o=n.eventDelegateRefs;try{if(!(0,p.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var i=o[e];i.native&&c.node.removeEventListener(e,i.callback),i.callback=null}catch(e){u.default.trapError(e,r)}},c.play=function(){c.node.play().catch((function(){console.error("Error playing video")}))},c.pause=function(){c.node.pause()},c.getPlaybackState=function(){return c.node.paused?"paused":"playing"},c.getPosition=function(){return c.node.currentTime},c.getDuration=function(){return c.node.duration},c.seek=function(e){var t=c.node.duration;isNaN(t)?u.default.logWarning("playerFailure","seekNotReady"):(e=Math.floor(e),(0,p.inRangeNumeric)(e,0,t)?c.node.currentTime=e:u.default.logWarning("playerFailure","invalidSeekTime"))},c.getMute=function(){return c.node.muted},c.setMute=function(e){var t=c.eventDelegateRefs.muted.callback;c.node.muted=e,t&&t()},c.getVolume=function(){return c.node.volume},c.setVolume=function(e){var t=f.volumeMin,n=f.volumeMax;e=Math.round(10*e)/10,(0,p.inRangeNumeric)(e,t,n)?c.node.volume=e:u.default.logWarning("playerFailure","invalidVolume")},c.getControls=function(){return c.node.controls},c.setControls=function(e){var t=c.eventDelegateRefs.controlsset;c.node.controls=e,t&&t.callback()},c.replay=function(){c.pauseIfPlaying(),c.node.currentTime=0,c.play()},c.remove=function(){var e,t,n=c.eventDelegateRefs,r=f.defaultConfig;c.pauseIfPlaying();try{for(var o=a(Object.keys(n)),s=o.next();!s.done;s=o.next()){var u=s.value;c.off(n[u])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}c.imposiumPlayerConfig=i({},r),c.node=null},c.setupHls=function(){var e=t.hlsSupportLevels,n=e.NATIVE,r=e.HLSJS;c.node.canPlayType(t.STREAM_TYPE)?c.hlsSupport=n:void 0!==d&&d.isSupported()&&(c.hlsSupport=r)},c.doQualityOverride=function(e,t){var n=c.storyId,r=c.imposiumPlayerConfig.qualityOverride;try{if(!e.hasOwnProperty(r))throw new l.PlayerConfigurationError("badQualityOverride",null);c.setPlayerData(e[r].url,!0,t)}catch(e){u.default.trapError(e,n)}},c.doQualityAssessment=function(e,n){var r=c.hlsSupport,o=t.compressionLevels.STREAM;if(e.hasOwnProperty(o)&&r)c.setPlayerData(e[o].url,!0,n);else{var i=Object.keys(e);1===i.length?c.setPlayerData(e[i[0]].url,!1,n):c.checkBandwidth(e).then((function(t){c.setPlayerData(e[t].url,!1,n)})).catch((function(t){c.setPlayerData(e[t].url,!1,n)}))}},c.sampleBandwidth=function(){var e="".concat(t.TEST_IMAGE,"?bust=").concat(Math.random()),n={responseType:"blob",timeout:1500};return new Promise((function(t,r){var o=(new Date).getTime();s.default.get(e,n).then((function(e){var n=e.data.size;t((0,p.calculateMbps)(o,n))})).catch((function(e){r(e)}))}))},c.checkBandwidth=function(e){for(var n=t.BANDWIDTH_SAMPLES,r=[],o=Object.keys(e).filter((function(e){return"m3u8"!==e})),i=0;i<n;i++)r.push(c.sampleBandwidth());return new Promise((function(t,n){Promise.all(r).then((function(n){var r=(0,p.calculateAverageMbps)(n),i={};o.forEach((function(t){var n=e[t],r=n.width,o=n.height;i[r*o/1e5]=t}));var a=Object.keys(i).map((function(e){return parseFloat(e)})).reduce((function(e,t){return Math.abs(e-r)<Math.abs(t-r)?e:t}));t(i[a])})).catch((function(){n(o.slice(-1).pop())}))}))},c.setPlayerData=function(e,n,r){void 0===r&&(r=null);var o=c.hlsSupport,i=t.hlsSupportLevels.HLSJS;n&&o===i?(c.hlsPlayer&&c.hlsPlayer.destroy(),c.hlsPlayer=new d,c.hlsPlayer.attachMedia(c.node),c.hlsPlayer.loadSource(e)):c.node.src=e,r&&(c.node.poster=r)},c.pauseIfPlaying=function(){c.node.paused||c.node.pause()};var h=!(!r||!r.clientConfig);try{if(!h)throw new l.PlayerConfigurationError("badClient",null);n instanceof HTMLVideoElement&&(r.bindPlayer(c),c.init(o),c.setupHls())}catch(e){var v=h?r.clientConfig.storyId:"";u.default.trapError(e,v)}return c}return o(t,e),t.events={PLAY:"play",PAUSE:"pause",COMPLETE:"ended",ERROR:"error",SEEK:"seeked",TIME:"timeupdate",VOLUME:"volumechange",MUTE:"muted",CONTROLS:"controlsset"},t.STREAM_TYPE=f.streamType,t.BANDWIDTH_SAMPLES=f.bandwidthSamples,t.TEST_IMAGE=f.testImage,t.bandwidthRatings={LOW:f.bandwidth.low,MID:f.bandwidth.mid},t.compressionLevels={STREAM:f.compression.stream,LOW:f.compression.low,MID:f.compression.mid,HIGH:f.compression.high},t.hlsSupportLevels={NATIVE:f.hlsSupportLevels.native,HLSJS:f.hlsSupportLevels.hlsjs},t}(c.default);t.default=h},917:function(e,t,n){"use strict";var r=this&&this.__values||function(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.")},o=this&&this.__read||function(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.defineProperty(t,"__esModule",{value:!0});var i=n(3998),a=n(4479),s=n(3447),c=n(4776).aq,u=function(){function e(t){var n,c,u=this;this.node=null,this.storyId="",this.gaProperty="",this.playbackHandlers=new Map([["play",function(){return u.onPlay()}],["pause",function(){return u.onPause()}],["ended",function(){return u.onEnded()}],["loaded",function(){return u.onLoad()}],["volumechange",function(){return u.onVolumeChange()}]]),this.queuedGACalls=[],this.experienceId="",this.prevPlaybackEvent=0,this.playbackInterval=-1,this.muted=!1,this.remove=function(){var e,t;try{for(var n=r(u.playbackHandlers.entries()),i=n.next();!i.done;i=n.next()){var a=o(i.value,2),s=a[0],c=a[1];u.node.removeEventListener(s,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},this.setGaProperty=function(e){for(u.gaProperty&&u.gaProperty!==e&&u.queuedGACalls.length>0&&(u.queuedGACalls=[]),u.gaProperty=e;u.queuedGACalls.length;)a.default.send(u.queuedGACalls.pop())},this.setStoryId=function(e){u.storyId=e},this.setExperienceId=function(e){u.experienceId=e},this.emitGAEventAction=function(t){var n=e.GA_EMIT_TYPE,r=e.GA_EMIT_CATEGORY,o=u,i={t:n,tid:o.gaProperty,ec:r,el:o.experienceId,ea:t};u.gaProperty?a.default.send(i):u.queuedGACalls.push(i)},this.onLoad=function(){u.emitGAEventAction("loaded")},this.onVolumeChange=function(){!u.muted&&u.node.muted&&(u.emitGAEventAction("muted"),u.muted=!0),u.muted&&!u.node.muted&&(u.emitGAEventAction("unmuted"),u.muted=!1)},this.onPlay=function(){var t=window.setInterval;clearInterval(u.playbackInterval),u.playbackInterval=t((function(){return u.checkPlayback()}),e.INTERVAL_RATE),u.emitGAEventAction("play")},this.onPause=function(){clearInterval(u.playbackInterval),u.node.duration!==u.node.currentTime&&u.emitGAEventAction("pause")},this.onEnded=function(){clearInterval(u.playbackInterval),u.emitGAEventAction("playback_1"),u.prevPlaybackEvent=0},this.checkPlayback=function(){if(u.node){var t=u.node,n=t.currentTime/t.duration,r=e.PLAYBACK_EVENTS[u.prevPlaybackEvent];n>r&&(u.emitGAEventAction("playback_".concat(r)),u.prevPlaybackEvent++)}else clearInterval(u.playbackInterval)};try{if(!(t instanceof HTMLVideoElement))throw new s.PlayerConfigurationError("invalidPlayerRef",null);try{for(var l=r(this.playbackHandlers.entries()),p=l.next();!p.done;p=l.next()){var f=o(p.value,2),d=f[0],h=f[1];t.addEventListener(d,h)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(c=l.return)&&c.call(l)}finally{if(n)throw n.error}}this.node=t,this.muted=t.muted}catch(e){i.default.trapError(e,this.storyId)}}return e.INTERVAL_RATE=c.checkPlaybackRateMs,e.PLAYBACK_EVENTS=c.playbackEvents,e.GA_EMIT_TYPE="event",e.GA_EMIT_CATEGORY="video_player",e}();t.default=u},4168:e=>{"use strict";e.exports=JSON.parse('{"moderation":{"rejection":"This experience was rejected."},"clientConfiguration":{"badConfig":"Your Imposium configuration is an invalid type.","storyId":"An undefined or invalid storyId was set in your Imposium configuration.","accessToken":"An undefined or invalid accessToken was set in your Imposium configuration.","invalidEventName":"Invalid client event name.","invalidCallbackType":"The callback reference set for this client event is not of type function.","badConfigOnGet":"You cannot call client.getExperience(...) without using the Imposium player or setting the GOT_EXPERIENCE event.","bagConfigOnPostRender":"You cannot call client.createExperience({...}) without using the Imposium player or setting the GOT_EXPERIENCE event.","badConfigOnPostNoRender":"You cannot call client.createExperience({...}, false) without setting the EXPERIENCE_CREATED event."},"playerConfiguration":{"badClient":"You must provide a valid Imposium client reference to the player.","invalidPlayerRef":"No reference to an HTML5 video element was detected.","invalidEventName":"Invalid player event name.","invalidCallbackType":"The callback reference set for this player event is not of type function.","eventNotConfigured":"You cannot invoke this player event without a callback set.","badQualityOverride":"The quality specified does not exist for this experience."},"network":{"httpFailure":"Unable to process request to the Imposium API.","pollTimeout":"Polling timeout exceeded.","tcpFailure":"Socket connection failed while processing the experience.","errorOverTcp":"An error occured on the Imposium web servers while processing the experience.","messageParseFailure":"Message data from Imposium was malformed."},"uncaught":{"generic":"Something unexpected went wrong."}}')},4776:e=>{"use strict";e.exports=JSON.parse('{"Lp":{"uuidLength":36,"defaultConfig":{"accessToken":"","storyId":"","compositionId":"","environment":"production","gaPlacement":"web"},"emptyHistory":{"prevExperienceId":"","prevMessage":""},"clientEmits":{"adding":"Adding job to queue...","added":"Added job to queue...","finishedPolling":"Video ready for viewing."},"eventNames":{"EXPERIENCE_CREATED":"EXPERIENCE_CREATED","UPLOAD_PROGRESS":"UPLOAD_PROGRESS","GOT_EXPERIENCE":"GOT_EXPERIENCE","STATUS_UPDATE":"STATUS_UPDATE","ERROR":"ERROR"}},"hi":{"production":"https://api.imposium.com","staging":"https://api.staging.imposium.com","local":"https://api","currentVersion":"2.0.0","version":"X-Imposium-Api-Version","hmac":"X-Imposium-Access-Key","jwt":"Authorization"},"D_":{"dsn":"https://17ffe982179e4d60a1df2062198d7ade@sentry.io/1411258","projectName":"imposium-js-sdk"},"co":{"exceptionProp":"UA-123315989-1","baseUrl":"https://ssl.google-analytics.com/collect","lsLookup":"imposium_js_ga_cid","gaPropPlaceholder":"[id_placeholder]","cidPlaceholder":"[cid_placeholder]"},"aq":{"defaultConfig":{"volume":1,"preload":"auto","loop":false,"muted":false,"autoLoad":true,"autoPlay":true,"controls":true,"crossOrigin":"anonymous","qualityOverride":null},"testImage":"https://cdn.imposium.com/SampleJPGImage_1mb.jpg","playbackEvents":[0,0.25,0.5,0.75],"checkPlaybackRateMs":100,"volumeMin":0,"volumeMax":1,"bandwidth":{"low":2.4,"mid":8},"compression":{"stream":"m3u8","low":"mp4_480","mid":"mp4_720","high":"mp4_1080"},"bandwidthSamples":5,"hlsSupportLevels":{"native":"native","hlsjs":"hls-js"},"streamType":"application/vnd.apple.mpegurl"}}')},3199:e=>{"use strict";e.exports=JSON.parse('{"client":{"nodeAnalytics":"Sorry, analytics are not currently available in NodeJS."},"network":{"tcpFailure":"Unable to reach Imposium while processing this experience, retrying..."},"playerFailure":{"seekNotReady":"Seek can\'t be called until the video metadata has loaded, please try again shortly.","invalidSeekTime":"Could not seek to time outside of current video duration.","invalidVolume":"Could not set volume outside of range (double) 0.0 - 1.0."},"analytics":{"requestFailed":"Failed to record Imposium metric."}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=(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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(2081)})()}));
|
|
3
|
+
//# sourceMappingURL=imposium.min.js.map
|