@formo/analytics 2.0.0-alpha.3 → 2.0.0-alpha.5
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/dist/cjs/src/FormoAnalytics.d.ts.map +1 -1
- package/dist/cjs/src/FormoAnalytics.js +9 -1
- package/dist/cjs/src/FormoAnalytics.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/FormoAnalytics.d.ts.map +1 -1
- package/dist/esm/src/FormoAnalytics.js +9 -1
- package/dist/esm/src/FormoAnalytics.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/FormoAnalytics.ts +10 -2
package/dist/index.umd.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.umd.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("FormoAnalytics",[],t):"object"==typeof exports?exports.FormoAnalytics=t():e.FormoAnalytics=t()}(self,(()=>(()=>{"use strict";var e,t,n={20:(e,t,n)=>{var r=n(540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var E=_.prototype=new v;E.constructor=_,m(E,y.prototype),E.isPureReactComponent=!0;var b=Array.isArray,T=Object.prototype.hasOwnProperty,A={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:A.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+C(c,0):i,b(a)?(o="",null!=e&&(o=e.replace(R,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",b(e))for(var u=0;u<e.length;u++){var l=i+C(s=e[u],u);c+=N(s,t,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=N(s=s.value,t,o,l=i+C(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},k={transition:null},x={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:k,ReactCurrentOwner:A};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=_,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)T.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},540:(e,t,n)=>{e.exports=n(287)},848:(e,t,n)=>{e.exports=n(20)},879:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormoAnalytics=void 0;var s=a(n(425)),c=n(450),u=n(266),l=n(324),p=function(){function e(e,t){var n;this.apiKey=e,this.projectId=t,this._registeredProviderListeners={},this.sessionIdKey=c.SESSION_STORAGE_ID_KEY,this.timezoneToCountry=c.COUNTRY_LIST,this.config={token:this.apiKey};var r=(null===window||void 0===window?void 0:window.ethereum)||(null===(n=window.web3)||void 0===n?void 0:n.currentProvider);r&&(console.log("FormoAnalytics: Provider is set"),this.trackProvider(r))}return e.init=function(t,n){return o(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){return r={token:t},(o=new e(t,n)).config=r,[2,o]}))}))},Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:!1,configurable:!0}),e.prototype.identifyUser=function(e){this.trackEvent("identify",e)},e.prototype.getSessionId=function(){return this.getCookieValue(this.sessionIdKey)||this.generateSessionId()},e.prototype.setSessionCookie=function(e){var t=this.getSessionId(),n="".concat(this.sessionIdKey,"=").concat(t,"; Max-Age=1800; path=/; secure");e&&(n+="; domain=".concat(e)),document.cookie=n},e.prototype.generateSessionId=function(){return crypto.randomUUID()},e.prototype.getCookieValue=function(e){return document.cookie.split(";").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return e[r.trim()]=o,e}),{})[e]},e.prototype.trackEvent=function(e,t){return o(this,void 0,void 0,(function(){var n,r,a,c,p,d,f=this;return i(this,(function(h){switch(h.label){case 0:return n=3,r=0,this.setSessionCookie(this.config.domain),a=this.buildApiUrl(),[4,this.getCurrentWallet()];case 1:return c=h.sent(),p={project_id:this.projectId,address:c,session_id:this.getSessionId(),timestamp:(new Date).toISOString(),action:e,version:"1",payload:(0,u.isNotEmpty)(t)?this.maskSensitiveData(t):t},d=function(){return o(f,void 0,void 0,(function(){var t,o,c;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,s.default.post(a,JSON.stringify(p),{headers:{"Content-Type":"application/json"}})];case 1:if(!((t=i.sent()).status>=200&&t.status<300))throw new Error("Failed with status: ".concat(t.status));return console.log("Event sent successfully:",e),[3,3];case 2:return o=i.sent(),++r<=n?(c=1e3*Math.pow(2,r),console.error("Attempt ".concat(r,': Retrying event "').concat(e,'" in ').concat(c/1e3," seconds...")),setTimeout(d,c)):(l.H.consumeError(o,"Request data: ".concat(JSON.stringify(p))),console.error('Event "'.concat(e,'" failed after ').concat(n," attempts. Error: ").concat(o))),[3,3];case 3:return[2]}}))}))},[4,d()];case 2:return h.sent(),[2]}}))}))},e.prototype.maskSensitiveData=function(e){if(null==e)return console.warn("Data is null or undefined, returning null"),null;if("string"==typeof e){var t=void 0;try{t=JSON.parse(e)}catch(e){return console.error("Failed to parse JSON:",e),null}var n=["username","user","user_id","password","email","phone"],o=r({},t);return n.forEach((function(e){e in o&&(o[e]="********")})),o}if("object"==typeof e){n=["username","user","user_id","password","email","phone"];var i=r({},e);return n.forEach((function(e){e in i&&(i[e]="********")})),i}return e},e.prototype.trackPageHit=function(){var e=this;if(!(window.__nightmare||window.navigator.webdriver||window.Cypress)){var t,n;try{var r=Intl.DateTimeFormat().resolvedOptions().timeZone;t=this.timezoneToCountry[r],n=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||"en"}catch(e){console.error("Error resolving timezone or language:",e)}setTimeout((function(){var r=new URL(window.location.href),o=new URLSearchParams(r.search);e.trackEvent("page_hit",{"user-agent":window.navigator.userAgent,locale:n,location:t,referrer:document.referrer,pathname:window.location.pathname,href:window.location.href,utm_source:o.get("utm_source"),utm_medium:o.get("utm_medium"),utm_campaign:o.get("utm_campaign"),ref:o.get("ref")})}),300)}},e.prototype.trackProvider=function(e){var t;if(e!==this._provider){if(this.currentChainId=void 0,this.currentConnectedAccount=void 0,this._provider){for(var n=0,r=Object.keys(this._registeredProviderListeners);n<r.length;n++){var o=r[n];this._provider.removeListener(o,this._registeredProviderListeners[o]),delete this._registeredProviderListeners[o]}this._originalRequest&&!1!==(null===(t=Object.getOwnPropertyDescriptor(this._provider,"request"))||void 0===t?void 0:t.writable)&&(this._provider.request=this._originalRequest)}this._provider=e,this._originalRequest=null==e?void 0:e.request,this.getCurrentWallet(),this.registerAccountsChangedListener(),this.registerChainChangedListener(),this.trackSigning()}},e.prototype.registerChainChangedListener=function(){var e,t=this,n=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.onChainChanged(e[0])};null===(e=this.provider)||void 0===e||e.on("chainChanged",n),this._registeredProviderListeners.chainChanged=n},e.prototype.handleAccountDisconnected=function(){if(this.currentConnectedAccount){var e={account:this.currentConnectedAccount,chainId:this.currentChainId};return this.currentChainId=void 0,this.currentConnectedAccount=void 0,this.trackEvent(c.Event.DISCONNECT,e)}},e.prototype.onChainChanged=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:if(this.currentChainId=parseInt(e).toString(),this.currentConnectedAccount)return[3,4];if(!this.provider)return console.error("error","FormoAnalytics::onChainChanged: provider not found. CHAIN_CHANGED not reported"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.provider.request({method:"eth_requestAccounts"})];case 2:return(t=r.sent())&&0!==t.length?(this.currentConnectedAccount=t[0],[3,4]):(console.error("error","FormoAnalytics::onChainChanged: unable to get account. eth_requestAccounts returned empty"),[2]);case 3:return 4001!==(n=r.sent()).code?(console.error("error","FormoAnalytics::onChainChanged: unable to get account. eth_requestAccounts threw an error",n),[2]):[3,4];case 4:return[2,this.chain({chainId:this.currentChainId,account:this.currentConnectedAccount})]}}))}))},e.prototype.onAccountsChanged=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){return e.length>0?(t=e[0])!==this.currentConnectedAccount&&this.handleAccountConnected(t):this.handleAccountDisconnected(),[2]}))}))},e.prototype.registerAccountsChangedListener=function(){var e,t,n=this,r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.onAccountsChanged(e[0])};null===(e=this._provider)||void 0===e||e.on("accountsChanged",r),this._registeredProviderListeners.accountsChanged=r;var o=this.handleAccountDisconnected.bind(this);null===(t=this._provider)||void 0===t||t.on("disconnect",o),this._registeredProviderListeners.disconnect=o},e.prototype.trackSigning=function(){var e,t=this;if(!this.provider)return console.error("error","FormoAnalytics::_trackSigning: provider not found"),!1;if(!1===(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable))return console.error("warning","FormoAnalytics::_trackSigning: provider.request is not writable"),!1;var n=this.provider.request.bind(this.provider);return this.provider.request=function(e){return o(t,[e],void 0,(function(e){var t=e.method,r=e.params;return i(this,(function(e){return Array.isArray(r)&&(["signTypedData_v4","eth_sign"].includes(t)&&this.trackEvent(c.Event.SIGNING_TRIGGERED,{account:r[0],message:r[1]}),"personal_sign"===t&&this.trackEvent(c.Event.SIGNING_TRIGGERED,{message:r[0],account:r[1]})),[2,n({method:t,params:r})]}))}))},!0},e.prototype.getCurrentChainId=function(){return o(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return this.provider||console.error("FormoAnalytics::getCurrentChainId: provider not set"),[4,null===(t=this.provider)||void 0===t?void 0:t.request({method:"eth_chainId"})];case 1:return(e=n.sent())||console.error("FormoAnalytics::getCurrentChainId: chainIdHex is: ".concat(e)),[2,parseInt(e,16).toString()]}}))}))},e.prototype.handleAccountConnected=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return e===this.currentConnectedAccount?[2]:(this.currentConnectedAccount=e,t=this,[4,this.getCurrentChainId()]);case 1:return t.currentChainId=n.sent(),this.connect({chainId:this.currentChainId,address:e}),[2]}}))}))},e.prototype.getCurrentWallet=function(){return o(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(!this.provider)return console.warn("FormoAnalytics::getCurrentWallet: the provider is not set"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.provider.request({method:"eth_accounts"})];case 2:return(e=n.sent())&&e.length>0&&e[0]?(this.handleAccountConnected(e[0]),[2,e&&e.length>0&&e[0]]):[2,""];case 3:return t=n.sent(),console.error("Failed to fetch connected address:",t),[2,""];case 4:return[2]}}))}))},e.prototype.buildApiUrl=function(){var e=this.config,t=e.host,n=e.proxy,r=e.token,o=e.dataSource,i=void 0===o?"analytics_events":o;return r?n?"".concat(n,"/api/tracking"):t?"".concat(t.replace(/\/+$/,""),"/v0/events?name=").concat(i,"&token=").concat(r):"".concat(c.EVENTS_API,"?name=").concat(i,"&token=").concat(r):"Error: No token provided"},e.prototype.connect=function(e){var t=e.chainId,n=e.address;if(!t)throw new Error("FormoAnalytics::wallet: chainId cannot be empty");if(!n)throw new Error("FormoAnalytics::wallet: account cannot be empty");this.currentChainId=t.toString(),this.currentConnectedAccount=n,this.trackEvent(c.Event.CONNECT,{chainId:t,address:n})},e.prototype.disconnect=function(e){var t=(null==e?void 0:e.account)||this.currentConnectedAccount;if(t){var n=(null==e?void 0:e.chainId)||this.currentChainId,o=r({account:t},n&&{chainId:n});return this.currentChainId=void 0,this.currentConnectedAccount=void 0,this.trackEvent(c.Event.DISCONNECT,o)}},e.prototype.chain=function(e){var t=e.chainId,n=e.account;if(!t||0===Number(t))throw new Error("FormoAnalytics::chain: chainId cannot be empty or 0");if(!n&&!this.currentConnectedAccount)throw new Error("FormoAnalytics::chain: account was empty and no previous account has been recorded. You can either pass an account or call wallet() first");if(isNaN(Number(t)))throw new Error("FormoAnalytics::chain: chainId must be a valid hex or decimal number");return this.currentChainId=t.toString(),this.trackEvent(c.Event.CHAIN_CHANGED,{chainId:t,account:n||this.currentConnectedAccount})},e.prototype.init=function(t,n){var r=new e(t,n);return Promise.resolve(r)},e.prototype.identify=function(e){this.identifyUser(e)},e.prototype.page=function(){this.trackPageHit()},e.prototype.track=function(e,t){this.trackEvent(e,t)},e}();t.FormoAnalytics=p},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useFormoAnalytics=t.FormoAnalyticsProvider=t.FormoAnalyticsContext=void 0;var r=n(848),o=n(540),i=n(879),a=n(316),s=n(324);t.FormoAnalyticsContext=(0,o.createContext)(void 0),t.FormoAnalyticsProvider=function(e){var n=e.apiKey,c=e.projectId,u=e.disabled,l=e.children,p=(0,o.useState)(),d=p[0],f=p[1],h=(0,o.useRef)(!1);return(0,o.useEffect)((function(){if(!n)throw new Error("FormoAnalyticsProvider: No API key provided");u||h.current||(h.current=!0,s.H.init(process.env.HIGHLIGHT_PROJECT_ID,{serviceName:"formo-analytics-sdk",tracingOrigins:!0,networkRecording:{enabled:!0,recordHeadersAndBody:!0,urlBlocklist:["https://www.googleapis.com/identitytoolkit","https://securetoken.googleapis.com"]}}),i.FormoAnalytics.init(n,c).then((function(e){return f(e)})))}),[n,u,c]),(0,r.jsx)(a.ErrorBoundary,{onError:function(e,t){return s.H.consumeError(e,t)},children:(0,r.jsx)(t.FormoAnalyticsContext.Provider,{value:d,children:l})})},t.useFormoAnalytics=function(){var e=(0,o.useContext)(t.FormoAnalyticsContext);if(!e)throw new Error("useFormoAnalytics must be used within a FormoAnalyticsProvider");return e}},358:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTRY_LIST=t.SESSION_STORAGE_ID_KEY=t.EVENTS_API=void 0,t.EVENTS_API="https://api.eu-central-1.aws.tinybird.co/v0/events",t.SESSION_STORAGE_ID_KEY="formo-analytics-session-id",t.COUNTRY_LIST={"Africa/Accra":"GH","Africa/Abidjan":"GH","Africa/Addis_Ababa":"ET","Africa/Nairobi":"KE","Africa/Asmara":"ER","Africa/Asmera":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Kampala":"UG","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Timbuktu":"ML","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","Africa/Lagos":"NG","Africa/Johannesburg":"ZA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/ComodRivadavia":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Atka":"US","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Buenos_Aires":"AR","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Catamarca":"AR","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Ciudad_Juarez":"MX","America/Coral_Harbour":"CA","America/Cordoba":"AR","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guayaquil":"EC","America/Guyana":"GY","America/Houston":"US","America/Indiana/Indianapolis":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Louisville":"US","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Menominee":"US","America/Merida":"MX","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montreal":"CA","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US","America/Port_of_Spain":"TT","America/Porto_Acre":"BR","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Punta_Arenas":"CL","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Rio_Branco":"BR","America/Rosario":"AR","America/Santarem":"BR","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Shiprock":"US","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/South_Pole":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Ashkhabad":"TM","Asia/Atyrau":"KZ","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Chongqing":"CN","Asia/Chungking":"CN","Asia/Colombo":"LK","Asia/Dacca":"BD","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Famagusta":"CY","Asia/Gaza":"PS","Asia/Harbin":"CN","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Istanbul":"TR","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kashgar":"CN","Asia/Kathmandu":"NP","Asia/Katmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macao":"MO","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qostanay":"KZ","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Saigon":"VN","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Tel_Aviv":"IL","Asia/Thimbu":"BT","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ujung_Pandang":"ID","Asia/Ulaanbaatar":"MN","Asia/Ulan_Bator":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yangon":"MM","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faroe":"FO","Atlantic/Jan_Mayen":"SJ","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/ACT":"AU","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Canberra":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/LHI":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/NSW":"AU","Australia/North":"AU","Australia/Perth":"AU","Australia/Queensland":"AU","Australia/South":"AU","Australia/Sydney":"AU","Australia/Tasmania":"AU","Australia/Victoria":"AU","Australia/West":"AU","Australia/Yancowinna":"AU","Brazil/Acre":"BR","Brazil/DeNoronha":"BR","Brazil/East":"BR","Brazil/West":"BR",CET:"BE",CST6CDT:"US","Canada/Atlantic":"CA","Canada/Central":"CA","Canada/Eastern":"CA","Canada/Mountain":"CA","Canada/Newfoundland":"CA","Canada/Pacific":"CA","Canada/Saskatchewan":"CA","Canada/Yukon":"CA","Chile/Continental":"CL","Chile/EasterIsland":"CL",Cuba:"CU",EET:"GR",EST:"PA",EST5EDT:"US",Egypt:"EG",Eire:"IE","Etc/GMT":"","Etc/GMT+0":"","Etc/GMT+1":"","Etc/GMT+10":"","Etc/GMT+11":"","Etc/GMT+12":"","Etc/GMT+2":"","Etc/GMT+3":"","Etc/GMT+4":"","Etc/GMT+5":"","Etc/GMT+6":"","Etc/GMT+7":"","Etc/GMT+8":"","Etc/GMT+9":"","Etc/GMT-0":"","Etc/GMT-1":"","Etc/GMT-10":"","Etc/GMT-11":"","Etc/GMT-12":"","Etc/GMT-13":"","Etc/GMT-14":"","Etc/GMT-2":"","Etc/GMT-3":"","Etc/GMT-4":"","Etc/GMT-5":"","Etc/GMT-6":"","Etc/GMT-7":"","Etc/GMT-8":"","Etc/GMT-9":"","Etc/GMT0":"","Etc/Greenwich":"","Etc/UCT":"","Etc/UTC":"","Etc/Universal":"","Etc/Zulu":"","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belfast":"GB","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Kyiv":"UA","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Nicosia":"CY","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Ulyanovsk":"RU","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH",GB:"GB","GB-Eire":"GB",HST:"US",Hongkong:"HK",Iceland:"IS","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"AU","Indian/Cocos":"AU","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Reunion":"FR",Iran:"IR",Israel:"IL",Jamaica:"JM",Japan:"JP",Kwajalein:"MH",Libya:"LY",Malaysia:"MY",Maldives:"MV",Mongolia:"MN",MST7MDT:"US","Mexico/BajaNorte":"MX","Mexico/BajaSur":"MX","Mexico/General":"MX",NZ:"NZ","NZ-CHAT":"NZ",Navajo:"US",PRC:"CN",PST8PDT:"US","Pacific/Apia":"WS","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"","Pacific/Fakaofo":"TK","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guam":"GU","Pacific/Kanton":"KI","Pacific/Marshall_Islands":"MH","Pacific/Nauru":"NR","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Ponape":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Wake":"UM","Pacific/Wallis":"WF","Pacific/Guadalcanal":"SB","Pacific/Fiji":"FJ","Pacific/Honolulu":"US","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Wallis_Futuna":"WF","Pacific/Johnston":"UM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Samoa":"AS","Pacific/Truk":"FM","Pacific/Yap":"FM",Poland:"PL",Portugal:"PT",ROC:"TW",ROK:"KR",Singapore:"SG",Turkey:"TR","US/Alaska":"US","US/Aleutian":"US","US/Arizona":"US","US/Central":"US","US/East-Indiana":"US","US/Eastern":"US","US/Hawaii":"US","US/Indiana-Starke":"US","US/Michigan":"US","US/Mountain":"US","US/Pacific":"US","US/Samoa":"AS","W-SU":"RU",WET:"PT"}},309:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,function(e){e.PAGE="page",e.CONNECT="connect",e.DISCONNECT="disconnect",e.CHAIN_CHANGED="chain_changed",e.SIGNING_TRIGGERED="signing_triggered",e.CLICK="click",e.CUSTOM="custom"}(n||(t.Event=n={}))},450:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(358),t),o(n(309),t)},156:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(190),t),o(n(879),t),o(n(574),t)},989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},574:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(989),t),o(n(155),t)},155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},266:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(965),t)},965:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNotEmpty=function(e){return null!==e&&""!==e&&!("object"==typeof e&&0===Object.keys(e).length)}},425:(e,t,n)=>{function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),e=>{const t=o.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,p=u("undefined"),d=c("ArrayBuffer"),f=u("string"),h=u("function"),m=u("number"),g=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=c("Date"),_=c("File"),E=c("Blob"),b=c("FileList"),T=c("URLSearchParams"),[A,S,w,O]=["ReadableStream","Request","Response","Headers"].map(c);function R(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,L=e=>!p(e)&&e!==N,I=(P="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>P&&e instanceof P);var P;const k=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),D=c("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},U="abcdefghijklmnopqrstuvwxyz",B="0123456789",j={DIGIT:B,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+B},F=c("AsyncFunction"),H=(G="function"==typeof setImmediate,V=h(N.postMessage),G?setImmediate:V?(q=`axios@${Math.random()}`,K=[],N.addEventListener("message",(({source:e,data:t})=>{e===N&&t===q&&K.length&&K.shift()()}),!1),e=>{K.push(e),N.postMessage(q,"*")}):e=>setTimeout(e));var G,V,q,K;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||H;var X={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=a(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:y,isReadableStream:A,isRequest:S,isResponse:w,isHeaders:O,isUndefined:p,isDate:v,isFile:_,isBlob:E,isRegExp:D,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:T,isTypedArray:I,isFileList:b,forEach:R,merge:function e(){const{caseless:t}=L(this)&&this||{},n={},r=(r,o)=>{const i=t&&C(n,o)||o;y(n[i])&&y(r)?n[i]=e(n[i],r):y(r)?n[i]=e({},r):l(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(R(t,((t,o)=>{n&&h(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:C,global:N,isContextDefined:L,ALPHABET:j,generateString:(e=16,t=j.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return R(e,((e,t)=>{const i=n(e,r+1);!p(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:H,asap:z};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}X.inherits($,Error,{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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const W=$.prototype,J={};function Y(e){return X.isPlainObject(e)||X.isArray(e)}function Q(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map((function(e,t){return e=Q(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties($,J),Object.defineProperty(W,"isAxiosError",{value:!0}),$.from=(e,t,n,r,o,i)=>{const a=Object.create(W);return X.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ee=X.toFlatObject(X,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!X.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(!s&&X.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(X.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(X.isArray(e)&&function(e){return X.isArray(e)&&!e.some(Y)}(e)||(X.isFileList(e)||X.endsWith(n,"[]"))&&(s=X.toArray(e)))return n=Q(n),s.forEach((function(e,r){!X.isUndefined(e)&&null!==e&&t.append(!0===a?Z([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!Y(e)||(t.append(Z(o,n,i),c(e)),!1)}const l=[],p=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!X.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!X.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),X.forEach(n,(function(n,i){!0===(!(X.isUndefined(n)||null===n)&&o.call(t,n,X.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ae(e,t,n){if(!t)return e;const r=n&&n.encode||ie,o=n&&n.serialize;let i;if(i=o?o(t,n):X.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,pe="object"==typeof navigator&&navigator||void 0,de=le&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=le&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:fe,hasStandardBrowserEnv:de,navigator:pe,origin:he}),...ue};function ge(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&X.isArray(r)?r.length:i,s?(X.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&X.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&X.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,((e,r)=>{t(function(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=X.isObject(e);if(o&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(ge(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=X.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(X.isString(e))try{return(0,JSON.parse)(e),X.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var ve=ye;const _e=X.toObjectSet(["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"]),Ee=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:X.isArray(e)?e.map(Te):String(e)}function Ae(e,t,n,r,o){return X.isFunction(r)?r.call(this,t,n):(o&&(t=n),X.isString(t)?X.isString(r)?-1!==t.indexOf(r):X.isRegExp(r)?r.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=be(t);if(!o)throw new Error("header name must be a non-empty string");const i=X.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Te(e))}const i=(e,t)=>X.forEach(e,((e,n)=>o(e,n,t)));if(X.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(X.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_e[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(X.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=be(e)){const n=X.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const n=X.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=be(e)){const o=X.findKey(n,e);!o||t&&!Ae(0,n[o],o,t)||(delete n[o],r=!0)}}return X.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return X.forEach(this,((r,o)=>{const i=X.findKey(n,o);if(i)return t[i]=Te(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Te(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return X.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&X.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=be(e);t[r]||(function(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(Se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),X.freezeMethods(Se);var we=Se;function Oe(e,t){const n=this||ve,r=t||n,o=we.from(r.headers);let i=r.data;return X.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Re(e){return!(!e||!e.__CANCEL__)}function Ce(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}function Ne(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}X.inherits(Ce,$,{__CANCEL__:!0});const Le=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Ie=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pe=e=>(...t)=>X.asap((()=>e(...t)));var ke=me.hasStandardBrowserEnv?function(){const e=me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=X.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},xe=me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),X.isString(r)&&a.push("path="+r),X.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function De(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof we?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:n},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function o(e,t,n){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!X.isUndefined(t))return r(void 0,t)}function a(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Me(e),Me(t),!0)};return X.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);X.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Be=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=we.from(s),t.url=ae(De(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),X.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&X.isFunction(o)&&(o=o(t)),o||!1!==o&&ke(t.url))){const e=i&&a&&xe.read(a);e&&s.set(i,e)}return t},je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Be(e);let o=r.data;const i=we.from(r.headers).normalize();let a,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=we.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ne((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new $("Request aborted",$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,o.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&X.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),X.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,l]=Le(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,u]=Le(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ce(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===me.protocols.indexOf(y)?n(new $("Unsupported protocol "+y+":",$.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Fe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $?t:new Ce(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>X.asap(a),s}};const He=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ge=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*He(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ve="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qe=Ve&&"function"==typeof ReadableStream,Ke=Ve&&("function"==typeof TextEncoder?(ze=new TextEncoder,e=>ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ze;const Xe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=qe&&Xe((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),We=qe&&Xe((()=>X.isReadableStream(new Response("").body))),Je={stream:We&&(e=>e.body)};var Ye;Ve&&(Ye=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=X.isFunction(Ye[e])?t=>t[e]():(t,n)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})})));const Qe={http:null,xhr:je,fetch:Ve&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Be(e);u=u?(u+"").toLowerCase():"text";let f,h=Fe([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&$e&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=X.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){const t=new Request(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e)?(await Ke(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(X.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Ie(g,Le(Pe(c)));r=Ge(n.body,65536,e,t)}}X.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f);const a=We&&("stream"===u||"response"===u);if(We&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=X.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Ie(t,Le(Pe(s),!0))||[];i=new Response(Ge(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let y=await Je[X.findKey(Je,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ne(t,n,{data:y,headers:we.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:t.cause||t});throw $.from(t,t&&t.code,e,f)}})};X.forEach(Qe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>X.isFunction(e)||null===e||!1===e;var tt=e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!et(n)&&(r=Qe[(t=String(n)).toLowerCase()],void 0===r))throw new $(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function rt(e){return nt(e),e.headers=we.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ve.adapter)(e).then((function(t){return nt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=we.from(t.headers),t}),(function(t){return Re(t)||(nt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=we.from(t.response.headers))),Promise.reject(t)}))}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const it={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new $(r(o," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new $("option "+i+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:ot};const st=at.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=r&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:st.function,serialize:st.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&X.merge(o.common,o[t.method]);o&&X.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=we.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=a.length;let d=t;for(p=0;p<l;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=rt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return ae(De((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),X.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ue(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ce(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var pt=lt;const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dt).forEach((([e,t])=>{dt[t]=e}));var ft=dt;const ht=function e(t){const n=new ut(t),o=r(ut.prototype.request,n);return X.extend(o,ut.prototype,n,{allOwnKeys:!0}),X.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ue(t,n))},o}(ve);ht.Axios=ut,ht.CanceledError=Ce,ht.CancelToken=pt,ht.isCancel=Re,ht.VERSION="1.7.7",ht.toFormData=te,ht.AxiosError=$,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Ue,ht.AxiosHeaders=we,ht.formToJSON=e=>ge(X.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=ft,ht.default=ht,e.exports=ht},316:(e,t,n)=>{n.r(t),n.d(t,{ErrorBoundary:()=>w,ReportDialog:()=>A,SampleBuggyButton:()=>O});var r,o,i=n(540),a=Object.create,s=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(d)for(var n of d(t))m.call(t,n)&&g(e,n,t[n]);return e},v=(e,t)=>c(e,l(t)),_=(r=(e,t)=>{!function(){var e={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var i in t)e.call(t,i)&&t[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},()=>(o||r(o={exports:{}},o),o.exports)),E=((e,t,n)=>(n=null!=e?a(f(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of p(t))!h.call(e,n)&&undefined!==n&&s(e,n,{get:()=>t[n],enumerable:!(r=u(t,n))||r.enumerable});return e})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(_()),b="ba9c647cce52083170869d8ab4be319f402bcaf786e5d7099b013d5757ef5c9d";!function(){if("undefined"!=typeof document&&!document.getElementById(b)){var e=document.createElement("style");e.id=b,e.textContent="._container_18f8u_1 {\n\t--brand-color: #744ed4;\n\t--brand-color-dark: #5629c6;\n\t--color-text-primary: #111111;\n\t--color-text-primary-inverted: #fff;\n\t--color-text-link: var(--brand-color);\n\t--size-large: 24px;\n\t--size-medium: 16px;\n\t--size-small: 12px;\n\t--size-xSmall: 8px;\n\n\t--color-white: #fff;\n\t--color-gray-100: hsla(0, 0%, 93.7%, 0.49019607843137253);\n\t--color-gray-200: #f2f2f2;\n\t--color-gray-300: #eaeaea;\n\t--color-gray-400: #bdbdbd;\n\t--color-gray-500: #828282;\n\t--color-gray-600: #7e7e7e;\n\t--color-gray-700: #8a8f98;\n\t--color-gray-800: #2d2f36;\n\n\t--font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n\t\tRoboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',\n\t\t'Segoe UI Emoji', 'Segoe UI Symbol';\n\n\tbackground: hsl(0deg 0% 0% / 75%);\n\tfont-family: var(--font-family);\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100vw;\n\theight: 100vh;\n\tz-index: 999999;\n\tbackdrop-filter: blur(1px);\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n@media only screen and (max-width: 420px) {\n\t._card_18f8u_41 {\n\t\tmax-width: 100vw !important;\n\t\theight: 100%;\n\t\tborder-radius: 0;\n\t}\n\n\t._cardContents_18f8u_47 {\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t._form_18f8u_53 {\n\t\theight: 100%;\n\t}\n\n\t._textareaLabel_18f8u_57 {\n\t\tflex: 1;\n\t}\n\n\t._form_18f8u_53 textarea {\n\t\theight: 100%;\n\t}\n\n\t._ad_18f8u_65 {\n\t\tdisplay: none;\n\t}\n}\n\n._card_18f8u_41 {\n\tborder-radius: var(--size-xSmall);\n\tpadding: 20px;\n\twidth: 420px;\n\tmax-width: calc(100vw - 1rem);\n\tbackground: white;\n}\n\n._title_18f8u_78 {\n\tfont-size: 20px;\n\tcolor: var(--color-text-primary);\n}\n\n._subtitle_18f8u_83 {\n\tfont-size: 13px;\n\tmargin-top: var(--size-medium) !important;\n\tfont-weight: 400;\n\tcolor: #8c8b92;\n}\n\n._form_18f8u_53 {\n\tpadding-top: var(--size-large);\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: var(--size-small);\n\twidth: 100%;\n}\n\n._form_18f8u_53 label {\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: 11px !important;\n\tfont-weight: 500;\n\tcolor: var(--color-gray-500);\n}\n\n._form_18f8u_53 input {\n\theight: 28px;\n}\n\n._form_18f8u_53 textarea {\n\tfont-family: var(--font-family);\n\tmin-height: 80px;\n}\n\n._form_18f8u_53 input,\n._form_18f8u_53 textarea {\n\tbackground-color: var(--color-white);\n\tborder: 1px solid #dcdbdd;\n\tborder-radius: 6px;\n\tcolor: var(--color-gray-500);\n\n\tfont-size: 13px;\n\tmargin: 8px 0;\n\toutline: none;\n\tpadding: 4px 6px;\n\twidth: calc(100%);\n}\n\n._form_18f8u_53 button {\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\theight: auto;\n\tcolor: var(--color-text-primary-inverted);\n\tbackground-color: var(--brand-color);\n\ttext-shadow: none;\n\tbox-shadow: none;\n\tpadding: 4px 6px;\n\tfont-size: 14px;\n\tborder-radius: 6px;\n\tborder: 0;\n\tcursor: pointer;\n}\n\n._form_18f8u_53 button:hover {\n\tbackground-color: var(--brand-color-dark);\n}\n\n._form_18f8u_53 button[disabled] {\n\topacity: 0.5;\n\tpointer-events: none;\n}\n\n._form_18f8u_53 ._closeButton_18f8u_154 {\n\tbackground-color: transparent;\n\tcolor: #6f6e77 !important;\n\tfont-size: 13px;\n\tfont-family: var(--font-family);\n\tborder: 1px solid var(--color-white);\n}\n\n._form_18f8u_53 ._closeButton_18f8u_154:hover {\n\tbackground-color: var(--color-gray-100);\n\tborder-color: var(--color-gray-300);\n}\n\n._confirmationButton_18f8u_167 {\n\tfloat: right;\n\tmargin-top: 3rem;\n}\n\n._formFooter_18f8u_172 {\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n\n._formActionsContainer_18f8u_180 {\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\tgap: 6px;\n}\n\n._ad_18f8u_65:hover {\n\tbackground-color: var(--color-gray-100);\n}\n\n._logoContainer_18f8u_190 {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n\n\tborder: 1px solid var(--color-gray-300);\n\tborder-radius: 6px;\n\tcolor: var(--color-gray-500);\n\tfont-size: 13px;\n\tpadding: 4px 8px;\n}\n\n._logo_18f8u_190 {\n\theight: 16px;\n}\n\n._buggyButton_18f8u_206 {\n\talign-items: center;\n\tbackground: #5629c6;\n\tborder-radius: 8px;\n\tborder: 1px solid #bdbdbd;\n\tbox-shadow: none;\n\tcolor: #fff;\n\tcursor: pointer;\n\tdisplay: flex;\n\tfont-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n\t\tRoboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',\n\t\t'Segoe UI Emoji', 'Segoe UI Symbol';\n\tfont-size: 14px;\n\theight: auto;\n\tjustify-content: center;\n\tmin-height: 40px;\n\tpadding: 4px 16px;\n\ttext-shadow: none;\n}\n",document.head.appendChild(e)}}();var T={container:"_container_18f8u_1",card:"_card_18f8u_41",cardContents:"_cardContents_18f8u_47",form:"_form_18f8u_53",textareaLabel:"_textareaLabel_18f8u_57",ad:"_ad_18f8u_65",title:"_title_18f8u_78",subtitle:"_subtitle_18f8u_83",closeButton:"_closeButton_18f8u_154",confirmationButton:"_confirmationButton_18f8u_167",formFooter:"_formFooter_18f8u_172",formActionsContainer:"_formActionsContainer_18f8u_180",logoContainer:"_logoContainer_18f8u_190",logo:"_logo_18f8u_190",buggyButton:"_buggyButton_18f8u_206"};function A({labelClose:e="Cancel",labelComments:t="Message",labelName:n="Name",labelEmail:r="Email",labelSubmit:o="Submit",subtitle2:a="If you’d like to help, tell us what happened below.",subtitle:s="Our team has been notified.",successMessage:c="Your feedback has been sent. Thank you!",successSubtitle:u="Thank you for sending us feedback. If you have any other concerns/questions, reach out to this application's support email.",title:l="It looks like we’re having issues.",placeholderComments:p="I typed in a name then clicked the button",user:d,onCloseHandler:f,onSubmitHandler:h,hideHighlightBranding:m=!1,error:g}){let[y,v]=(0,i.useState)((null==d?void 0:d.name)||""),[_,b]=(0,i.useState)((null==d?void 0:d.email)||""),[A,S]=(0,i.useState)(""),[w,O]=(0,i.useState)(!1),[R,C]=(0,i.useState)(!1),N=(0,i.useRef)((new Date).toISOString()),L=(0,i.useMemo)((()=>{let e=!!_.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i);return!!y&&e&&!!A}),[y,_,A]);return i.useEffect((()=>{var e;null!=(e=null==window?void 0:window.H)&&e.consumeError&&g&&window.H.consumeError(g)}),[g]),i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-display: swap;\n\t\t\t\t\t\tfont-family: 'Inter';\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\tsrc: local('Inter Regular'), local('InterRegular'),\n\t\t\t\t\t\t\turl('https://app.highlight.io/font/Inter-Regular.woff2')\n\t\t\t\t\t\t\t\tformat('woff2');\n\t\t\t\t\t}\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-display: swap;\n\t\t\t\t\t\tfont-family: 'Inter';\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\tsrc: local('Inter Medium'), local('InterMedium'),\n\t\t\t\t\t\t\turl('https://app.highlight.io/font/Inter-Medium.woff2')\n\t\t\t\t\t\t\t\tformat('woff2');\n\t\t\t\t\t}\n\n\t\t\t\t\t::placeholder {\n\t\t\t\t\t\tcolor: var(--color-gray-300);\n\t\t\t\t\t}\n\t\t\t"}}),i.createElement("main",{className:T.container},i.createElement("div",{className:T.card},R?i.createElement("div",{className:T.cardContents},i.createElement("h1",{className:T.title},c),i.createElement("h4",{className:T.subtitle},u),i.createElement("div",null,i.createElement("button",{className:(0,E.default)(T.button,T.confirmationButton),onClick:f},"Close"))):i.createElement("div",{className:T.cardContents},i.createElement("div",null,i.createElement("h1",{className:T.title},l),i.createElement("h2",{className:T.subtitle},s," ",a)),i.createElement("form",{className:T.form,onSubmit:e=>{var t;e.preventDefault(),O(!0),null!=(t=null==window?void 0:window.H)&&t.addSessionFeedback?window.H.addSessionFeedback({verbatim:A,userName:y,userEmail:_,timestampOverride:N.current}):console.warn("Highlight is not initialized. Make sure highlight.run is installed and running."),new Promise((e=>window.setTimeout(e,300))).then((()=>{O(!1),C(!0),h&&h()}))}},i.createElement("label",null,n,i.createElement("input",{type:"text",value:y,name:"name",autoFocus:!0,onChange:e=>{v(e.target.value)},placeholder:"Tom Jerry"})),i.createElement("label",null,r,i.createElement("input",{type:"email",value:_,name:"email",onChange:e=>{b(e.target.value)},placeholder:"mail@mail.com"})),i.createElement("label",{className:T.textareaLabel},t,i.createElement("textarea",{value:A,placeholder:p,name:"verbatim",rows:3,onChange:e=>{S(e.target.value)}})),i.createElement("div",{className:T.formFooter},i.createElement("div",{className:T.formActionsContainer},i.createElement("button",{type:"submit",disabled:!L||w},o),i.createElement("button",{className:T.closeButton,onClick:f,type:"button"},e)),!m&&i.createElement("div",{className:T.ad},i.createElement("a",{href:"https://highlight.io",target:"_blank"},i.createElement("div",{className:T.logoContainer},i.createElement("img",{src:"https://www.highlight.io/images/logo-on-dark.png",alt:"Highlight",className:T.logo}),i.createElement("span",null,"Powered by highlight.io"))))))))))}var S={componentStack:null,error:null,showingDialog:!1},w=class extends i.Component{constructor(){super(...arguments),this.state=S,this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:n}=this.state;e&&e(t,n),this.setState(S)},this.hideDialog=()=>{this.setState(v(y({},this.state),{showingDialog:!1})),(this.props.onAfterReportDialogCancelHandler||(()=>{window.location.href=window.location.origin}))()},this.onReportDialogSubmitHandler=()=>{this.props.onAfterReportDialogSubmitHandler&&this.props.onAfterReportDialogSubmitHandler()}}componentDidCatch(e,t){var n,r,o;let{beforeCapture:i,onError:a,showDialog:s}=this.props;i&&i(e,null!=(n=t.componentStack)?n:null),function(e,t){var n;let r=function(e){let t=e.split("\n");if(t.length<1)return;let n=t[1].trim().split(" ");return 4===n.length?`<${n[1]}>`:void 0}(null!=(n=t.componentStack)?n:"");window.H?(console.error("Highlight ErrorBoundary caught an exception while rendering React component",{error:e}),window.H.consume(e,{payload:{component:r},source:r,type:"React.ErrorBoundary"})):console.warn("You need to install highlight.run.")}(e,t),a&&a(e,null!=(r=t.componentStack)?r:""),!1!==s&&this.setState(v(y({},this.state),{showingDialog:!0})),this.setState({error:e,componentStack:null!=(o=t.componentStack)?o:null})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t}=this.state,{onUnmount:n}=this.props;n&&n(e,t)}render(){let{fallback:e,children:t,customDialog:n}=this.props,{error:r,componentStack:o,showingDialog:a}=this.state;if(r){let t;return t="function"==typeof e?e({error:r,componentStack:o,resetError:this.resetErrorBoundary}):e,i.isValidElement(t)?i.createElement(i.Fragment,null,a&&i.createElement(A,v(y({},this.props.dialogOptions),{onCloseHandler:this.hideDialog,onSubmitHandler:this.onReportDialogSubmitHandler})),t):(e&&console.warn("fallback did not produce a valid ReactElement"),a&&n?n:a&&i.createElement(A,v(y({},this.props.dialogOptions),{onCloseHandler:this.hideDialog,onSubmitHandler:this.onReportDialogSubmitHandler})))}return"function"==typeof t?t():t}},O=({children:e})=>{let[t,n]=i.useState(!1);if(t)throw new Error("something bad happened - this is a sample test error");return i.createElement("button",{type:"button",className:"buggyButton",onClick:()=>n(!0)},null!=e?e:"Throw an Error")}},767:(e,t,n)=>{n.d(t,{A:()=>js,B:()=>Os,C:()=>Is,E:()=>I,F:()=>As,G:()=>Ss,H:()=>b,K:()=>ti,M:()=>bs,Q:()=>Jo,S:()=>ea,V:()=>E,_:()=>Fs,a:()=>Pi,b:()=>Mi,c:()=>T,d:()=>Bo,e:()=>Ji,f:()=>oa,g:()=>A,h:()=>M,i:()=>Qo,j:()=>ra,k:()=>ia,l:()=>g,m:()=>Zi,n:()=>Ts,o:()=>v,p:()=>li,q:()=>y,r:()=>Qi,s:()=>Yi,t:()=>B,u:()=>_,v:()=>$i,w:()=>Wi,x:()=>us,y:()=>as,z:()=>ws});var r=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&u(e,n,t[n]);return e},p=(e,t)=>o(e,i(t)),d=(e,t)=>{var n={};for(var r in e)s.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&a)for(var r of a(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n},f=(e,t,n)=>u(e,"symbol"!=typeof t?t+"":t,n),h=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const m=({apiKey:e})=>{!function(t,n){var r=t.amplitude||{_q:[],_iq:{}},o=n.createElement("script");o.type="text/javascript",o.integrity="sha384-+EO59vL/X7v6VE2s6/F4HxfHlK0nDUVWKVg8K9oUlvffAeeaShVBmbORTC2D3UF+",o.crossOrigin="anonymous",o.async=!0,o.src="https://cdn.amplitude.com/libs/amplitude-8.17.0-min.gz.js",o.onload=function(){t.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK"),amplitude.getInstance().init(e)};var i=n.getElementsByTagName("script")[0];function a(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}i.parentNode.insertBefore(o,i);for(var s=function(){return this._q=[],this},c=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"],u=0;u<c.length;u++)a(s,c[u]);r.Identify=s;for(var l=function(){return this._q=[],this},p=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],d=0;d<p.length;d++)a(l,p[d]);r.Revenue=l;var f=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];function h(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}for(var n=0;n<f.length;n++)t(f[n])}h(r),r.getInstance=function(e){return e=(e&&0!==e.length?e:"$default_instance").toLowerCase(),Object.prototype.hasOwnProperty.call(r._iq,e)||(r._iq[e]={_q:[]},h(r._iq[e])),r._iq[e]},t.amplitude=r}(window,document)},g=1e3,y=2e3,v=144e5,_={normal:{bytes:1e7,time:24e4},canvas:{bytes:16e6,time:5e3}},E=100,b="app.highlight.io";var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,w,O,R,C,N={exports:{}},L={exports:{}};N.exports=(S||(S=1,L.exports=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=r.concat(o,i,["args"],["evalOrigin"]);function s(e){if(e)for(var n=0;n<a.length;n++)void 0!==e[a[n]]&&this["set"+t(a[n])](e[a[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},s.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),i=e.substring(n+1);if(0===i.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i,""),c=a[1],u=a[2],l=a[3];return new s({functionName:r,args:o||void 0,fileName:c,lineNumber:u||void 0,columnNumber:l||void 0})};for(var c=0;c<r.length;c++)s.prototype["get"+t(r[c])]=n(r[c]),s.prototype["set"+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var u=0;u<o.length;u++)s.prototype["get"+t(o[u])]=n(o[u]),s.prototype["set"+t(o[u])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(o[u]);for(var l=0;l<i.length;l++)s.prototype["get"+t(i[l])]=n(i[l]),s.prototype["set"+t(i[l])]=function(e){return function(t){this[e]=String(t)}}(i[l]);return s}()),w=L.exports,O=/(^|@)\S+:\d+/,R=/^\s*at .*(\S+:\d+|\(native\))/m,C=/^(eval@)?(\[native code])?$/,{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(R))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(R)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/),r=(t=n?t.replace(n[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:r.pop()),i=r.join(" ")||void 0,a=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new w({functionName:i,fileName:a,lineNumber:o[1],columnNumber:o[2],source:e})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(C)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new w({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(t,""));return new w({functionName:r,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],o=2,i=n.length;o<i;o+=2){var a=t.exec(n[o]);a&&r.push(new w({fileName:a[2],lineNumber:a[1],source:n[o]}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],o=0,i=n.length;o<i;o+=2){var a=t.exec(n[o]);a&&r.push(new w({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:n[o]}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(O)&&!e.match(/^Error created at/)}),this).map((function(e){var t,n=e.split("@"),r=this.extractLocation(n.pop()),o=n.shift()||"",i=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;o.match(/\(([^)]*)\)/)&&(t=o.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===t||"[arguments not available]"===t?void 0:t.split(",");return new w({functionName:i,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})}),this)}});const I=A(N.exports);function P(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();let r=e.parentElement,o=[];if(r.children&&r.children.length>0)for(let e=0;e<r.children.length;e++){let t=r.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&o.push(t)}o.length>1&&(n+=":eq("+o.indexOf(e)+")"),t=n+(t?">"+t:""),e=r}return t}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e,t){if(0===t)return!0;const n=Object.keys(e);for(const r of n)if(k(e[r])&&x(e[r],t-1))return!0;return!1}function D(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const r=[],o=[];return JSON.stringify(e,(function(e,t){if(r.length>0){const n=r.indexOf(this);~n?r.splice(n+1):r.push(this),~n?o.splice(n,1/0,e):o.push(e),~r.indexOf(t)&&(t=r[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(t)).join(".")+"]")}else r.push(t);if(null==t)return t;if(function(e){return!!(k(e)&&Object.keys(e).length>n.numOfKeysLimit||"function"==typeof e||(e instanceof Event&&!1===e.isTrusted?1===Object.keys(e).length:k(e)&&x(e,n.depthOfLimit)))}(t))return function(e){let t=e.toString();return n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`),t}(t);if(t instanceof Event){const e={};for(const n in t){const r=t[n];Array.isArray(r)?e[n]=P(r.length?r[0]:null):e[n]=r}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.name+": "+t.message:t}))}function M(){return(e=document.createElement("canvas")).getContext&&e.getContext("2d")&&0==e.toDataURL("image/webp").indexOf("data:image/webp")?{type:"image/webp",quality:.9}:{type:"image/jpeg",quality:.6};var e}var U={exports:{}};!function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}}t=e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)},t.getSerialize=n}(U,U.exports);const B=A(U.exports);function j(e,t,n,r){var o,i,a,s;let c=[];try{c=I.parse(null!=r?r:t)}catch(e){c=I.parse(new Error)}let u={};t instanceof Error&&(t=t.message).cause&&(u={"exception.cause":t.cause});const l=H(c);e({event:B(t),type:"window.onerror",url:window.location.href,source:null!=n?n:"",lineNumber:null!=(o=l[0])&&o.lineNumber?null==(i=l[0])?void 0:i.lineNumber:0,columnNumber:null!=(a=l[0])&&a.columnNumber?null==(s=l[0])?void 0:s.columnNumber:0,stackTrace:l,timestamp:(new Date).toISOString(),payload:u?B(u):void 0})}const F=(e,{enablePromisePatch:t})=>{if("undefined"==typeof window)return()=>{};const n=window.onerror=(t,n,r,o,i)=>{j(e,t,n,i)},r=window.onunhandledrejection=t=>{if(t.reason){const n=t.promise;n.getStack?j(e,t.reason,t.type,n.getStack()):j(e,t.reason,t.type)}},o=window.Promise,i=class extends o{constructor(e){super(e),f(this,"promiseCreationError"),this.promiseCreationError=new Error}getStack(){return this.promiseCreationError}static shouldPatch(){const e=void 0===window.Zone;return t&&e}};return i.shouldPatch()&&(window.Promise=i),()=>{window.Promise=o,window.onunhandledrejection=r,window.onerror=n}},H=e=>{var t,n;if(0===e.length)return e;const r=e[0];return null!=(t=r.fileName)&&t.includes("highlight.run")||null!=(n=r.fileName)&&n.includes("highlight.io")||"new highlightPromise"===r.functionName?e.slice(1):e},G=['["\\"Script error.\\""]','"Script error."','["\\"Load failed.\\""]','"Load failed."','["\\"Network request failed.\\""]','"Network request failed."','["\\"Document is not focused.\\""]','"Document is not focused."','["\\"Failed to fetch\\""]','"Failed to fetch"','[{"isTrusted":true}]','{"isTrusted":true}','["{}"]','"{}"','[""]','""','["\\"\\""]','""'],V=["websocket error",'\\"ResizeObserver loop'];var q="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},K="1.9.0",z=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,X=function(e){var t=new Set([e]),n=new Set,r=e.match(z);if(!r)return function(){return!1};var o=+r[1],i=+r[2],a=+r[3];if(null!=r[4])return function(t){return t===e};function s(e){return n.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(z);if(!r)return s(e);var u=+r[1],l=+r[2],p=+r[3];return null!=r[4]||o!==u?s(e):0===o?i===l&&a<=p?c(e):s(e):i<=l?c(e):s(e)}}(K),$=K.split(".")[0],W=Symbol.for("opentelemetry.js.api."+$),J=q;function Y(e,t,n,r){var o;void 0===r&&(r=!1);var i=J[W]=null!==(o=J[W])&&void 0!==o?o:{version:K};if(!r&&i[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}return i.version!==K?(a=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+K),n.error(a.stack||a.message),!1):(i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+K+"."),!0)}function Q(e){var t,n,r=null===(t=J[W])||void 0===t?void 0:t.version;if(r&&X(r))return null===(n=J[W])||void 0===n?void 0:n[e]}function Z(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+K+".");var n=J[W];n&&delete n[e]}var ee,te,ne=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("verbose",this._namespace,e)},e}();function re(e,t,n){var r=Q("diag");if(r)return n.unshift(t),r[e].apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],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}(n),!1))}(te=ee||(ee={}))[te.NONE=0]="NONE",te[te.ERROR=30]="ERROR",te[te.WARN=50]="WARN",te[te.INFO=60]="INFO",te[te.DEBUG=70]="DEBUG",te[te.VERBOSE=80]="VERBOSE",te[te.ALL=9999]="ALL";var oe=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Q("diag");if(r)return r[e].apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],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}(t),!1))}}var t=this;t.setLogger=function(e,n){var r,o,i;if(void 0===n&&(n={logLevel:ee.INFO}),e===t){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(r=a.stack)&&void 0!==r?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var s=Q("diag"),c=function(e,t){function n(n,r){var o=t[n];return"function"==typeof o&&e>=r?o.bind(t):function(){}}return e<ee.NONE?e=ee.NONE:e>ee.ALL&&(e=ee.ALL),t=t||{},{error:n("error",ee.ERROR),warn:n("warn",ee.WARN),info:n("info",ee.INFO),debug:n("debug",ee.DEBUG),verbose:n("verbose",ee.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:ee.INFO,e);if(s&&!n.suppressOverrideMessage){var u=null!==(i=(new Error).stack)&&void 0!==i?i:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+u),c.warn("Current logger will overwrite one already registered from "+u)}return Y("diag",c,t,!0)},t.disable=function(){Z("diag",t)},t.createComponentLogger=function(e){return new ne(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),ie=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){var t=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}(e,2);return[t[0],t[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=new e(this._entries);try{for(var a=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.")}(r),s=a.next();!s.done;s=a.next()){var c=s.value;i._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),ae=Symbol("BaggageEntryMetadata"),se=oe.instance();function ce(e){return void 0===e&&(e={}),new ie(new Map(Object.entries(e)))}function ue(e){return Symbol.for(e)}var le,pe=function(){return function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var o=new e(n._currentContext);return o._currentContext.set(t,r),o},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}}(),de=new pe,fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),he=function(){function e(){}return e.prototype.createGauge=function(e,t){return Oe},e.prototype.createHistogram=function(e,t){return Re},e.prototype.createCounter=function(e,t){return we},e.prototype.createUpDownCounter=function(e,t){return Ce},e.prototype.createObservableGauge=function(e,t){return Le},e.prototype.createObservableCounter=function(e,t){return Ne},e.prototype.createObservableUpDownCounter=function(e,t){return Ie},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),me=function(){return function(){}}(),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.add=function(e,t){},t}(me),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.add=function(e,t){},t}(me),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.record=function(e,t){},t}(me),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.record=function(e,t){},t}(me),Ee=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t}(Ee),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t}(Ee),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t}(Ee),Se=new he,we=new ge,Oe=new ve,Re=new _e,Ce=new ye,Ne=new be,Le=new Te,Ie=new Ae,Pe={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},ke={set:function(e,t,n){null!=e&&(e[t]=n)}},xe=function(){function e(){}return e.prototype.active=function(){return de},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return t.call.apply(t,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([n],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}(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),De="context",Me=new xe,Ue=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return Y(De,e,oe.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(r=this._getContextManager()).with.apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e,t,n],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}(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return Q(De)||Me},e.prototype.disable=function(){this._getContextManager().disable(),Z(De,oe.instance())},e}();!function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(le||(le={}));var Be="0000000000000000",je="00000000000000000000000000000000",Fe={traceId:je,spanId:Be,traceFlags:le.NONE},He=function(){function e(e){void 0===e&&(e=Fe),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),Ge=ue("OpenTelemetry Context Key SPAN");function Ve(e){return e.getValue(Ge)||void 0}function qe(){return Ve(Ue.getInstance().active())}function Ke(e,t){return e.setValue(Ge,t)}function ze(e){return e.deleteValue(Ge)}function Xe(e,t){return Ke(e,new He(t))}function $e(e){var t;return null===(t=Ve(e))||void 0===t?void 0:t.spanContext()}var We=/^([0-9a-f]{32})$/i,Je=/^[0-9a-f]{16}$/i;function Ye(e){return We.test(e)&&e!==je}function Qe(e){return Ye(e.traceId)&&function(e){return Je.test(e)&&e!==Be}(e.spanId)}function Ze(e){return new He(e)}var et,tt,nt,rt=Ue.getInstance(),ot=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=rt.active()),null!=t&&t.root)return new He;var r=n&&$e(n);return function(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags}(r)&&Qe(r)?new He(r):new He},e.prototype.startActiveSpan=function(e,t,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(o=t,a=n):(o=t,i=n,a=r);var s=null!=i?i:rt.active(),c=this.startSpan(e,o,s),u=Ke(s,c);return rt.with(u,a,void 0,c)}},e}(),it=new ot,at=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):it},e}(),st=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new ot},e}(),ct=new st,ut=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return null!==(r=this.getDelegateTracer(e,t,n))&&void 0!==r?r:new at(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:ct},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(e,t,n)},e}();!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(et||(et={})),function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(tt||(tt={})),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(nt||(nt={}));var lt=Ue.getInstance(),pt=oe.instance(),dt=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return Se},e}(),ft=new dt,ht="metrics",mt=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return Y(ht,e,oe.instance())},e.prototype.getMeterProvider=function(){return Q(ht)||ft},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){Z(ht,oe.instance())},e}(),gt=mt.getInstance(),yt=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),vt=ue("OpenTelemetry Baggage Key");function _t(e){return e.getValue(vt)||void 0}function Et(){return _t(Ue.getInstance().active())}function bt(e,t){return e.setValue(vt,t)}function Tt(e){return e.deleteValue(vt)}var At="propagation",St=new yt,wt=function(){function e(){this.createBaggage=ce,this.getBaggage=_t,this.getActiveBaggage=Et,this.setBaggage=bt,this.deleteBaggage=Tt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return Y(At,e,oe.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=ke),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=Pe),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Z(At,oe.instance())},e.prototype._getGlobalPropagator=function(){return Q(At)||St},e}(),Ot=wt.getInstance(),Rt="trace",Ct=function(){function e(){this._proxyTracerProvider=new ut,this.wrapSpanContext=Ze,this.isSpanContextValid=Qe,this.deleteSpan=ze,this.getSpan=Ve,this.getActiveSpan=qe,this.getSpanContext=$e,this.setSpan=Ke,this.setSpanContext=Xe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=Y(Rt,this._proxyTracerProvider,oe.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return Q(Rt)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){Z(Rt,oe.instance()),this._proxyTracerProvider=new ut},e}(),Nt=Ct.getInstance(),Lt=ue("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function It(e){return!0===e.getValue(Lt)}var Pt=",",kt="baggage";function xt(e){return e.reduce((function(e,t){var n=""+e+(""!==e?Pt:"")+t;return n.length>8192?e:n}),"")}function Dt(e){return e.getAllEntries().map((function(e){var t=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}(e,2),n=t[0],r=t[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}function Mt(e){var t=e.split(";");if(!(t.length<=0)){var n=t.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());return t.length>0&&(o=function(e){return"string"!=typeof e&&(se.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:ae,toString:function(){return e}}}(t.join(";"))),{key:i,value:a,metadata:o}}}}}var Ut=function(){function e(){}return e.prototype.inject=function(e,t,n){var r=Ot.getBaggage(e);if(r&&!It(e)){var o=xt(Dt(r).filter((function(e){return e.length<=4096})).slice(0,180));o.length>0&&n.set(t,kt,o)}},e.prototype.extract=function(e,t,n){var r=n.get(t,kt),o=Array.isArray(r)?r.join(Pt):r;if(!o)return e;var i={};return 0===o.length?e:(o.split(Pt).forEach((function(e){var t=Mt(e);if(t){var n={value:t.value};t.metadata&&(n.metadata=t.metadata),i[t.key]=n}})),0===Object.entries(i).length?e:Ot.setBaggage(e,Ot.createBaggage(i)))},e.prototype.fields=function(){return[kt]},e}(),Bt=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.")},jt=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};function Ft(e){var t,n,r={};if("object"!=typeof e||null==e)return r;try{for(var o=Bt(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=jt(i.value,2),s=a[0],c=a[1];Ht(s)?Gt(c)?Array.isArray(c)?r[s]=c.slice():r[s]=c:pt.warn("Invalid attribute value set for key: "+s):pt.warn("Invalid attribute key: "+s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function Ht(e){return"string"==typeof e&&e.length>0}function Gt(e){return null==e||(Array.isArray(e)?function(e){var t,n,r;try{for(var o=Bt(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!r){if(Vt(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0}(e):Vt(e))}function Vt(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var qt;function Kt(e){try{!function(e){pt.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){for(var t={},n=e;null!==n;)Object.getOwnPropertyNames(n).forEach((function(e){if(!t[e]){var r=n[e];r&&(t[e]=String(r))}})),n=Object.getPrototypeOf(n);return t}(e))}(e))}(e)}catch(e){}}!function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(qt||(qt={}));var zt=["OTEL_SDK_DISABLED"];function Xt(e){return zt.indexOf(e)>-1}var $t=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Wt(e){return $t.indexOf(e)>-1}var Jt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Yt(e){return Jt.indexOf(e)>-1}var Qt=1/0,Zt=128,en={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ee.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Qt,OTEL_ATTRIBUTE_COUNT_LIMIT:Zt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Qt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Zt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Qt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Zt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:qt.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function tn(e,t,n){if(void 0!==n[e]){var r=String(n[e]);t[e]="true"===r.toLowerCase()}}function nn(e,t,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[e]){var i=Number(n[e]);isNaN(i)||(t[e]=i<r?r:i>o?o:i)}}function rn(e,t,n,r){void 0===r&&(r=",");var o=n[e];"string"==typeof o&&(t[e]=o.split(r).map((function(e){return e.trim()})))}var on={ALL:ee.ALL,VERBOSE:ee.VERBOSE,DEBUG:ee.DEBUG,INFO:ee.INFO,WARN:ee.WARN,ERROR:ee.ERROR,NONE:ee.NONE};function an(e,t,n){var r=n[e];if("string"==typeof r){var o=on[r.toUpperCase()];null!=o&&(t[e]=o)}}function sn(e){var t={};for(var n in en){var r=n;if("OTEL_LOG_LEVEL"===r)an(r,t,e);else if(Xt(r))tn(r,t,e);else if(Wt(r))nn(r,t,e);else if(Yt(r))rn(r,t,e);else{var o=e[r];null!=o&&(t[r]=String(o))}}return t}var cn="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{};function un(){var e=sn(cn);return Object.assign({},en,e)}function ln(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function pn(e){for(var t=new Uint8Array(e.length/2),n=0,r=0;r<e.length;r+=2){var o=ln(e.charCodeAt(r)),i=ln(e.charCodeAt(r+1));t[n++]=o<<4|i}return t}var dn,fn,hn=performance,mn="exception.type",gn="exception.message",yn="http.method",vn="http.url",_n="http.host",En="http.scheme",bn="http.status_code",Tn="http.user_agent",An="deployment.environment",Sn="service.name",wn="telemetry.sdk.name",On="telemetry.sdk.language",Rn="telemetry.sdk.version",Cn=((dn={})[wn]="opentelemetry",dn["process.runtime.name"]="browser",dn[On]="webjs",dn[Rn]="1.26.0",dn),Nn=Math.pow(10,6),Ln=Math.pow(10,9);function In(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*Nn)]}function Pn(){var e=hn.timeOrigin;if("number"!=typeof e){var t=hn;e=t.timing&&t.timing.fetchStart}return e}function kn(e){return Bn(In(Pn()),In("number"==typeof e?e:hn.now()))}function xn(e){if(Mn(e))return e;if("number"==typeof e)return e<Pn()?kn(e):In(e);if(e instanceof Date)return In(e.getTime());throw TypeError("Invalid input type")}function Dn(e){return e[0]*Ln+e[1]}function Mn(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function Un(e){return Mn(e)||"number"==typeof e||e instanceof Date}function Bn(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Ln&&(n[1]-=Ln,n[0]+=1),n}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(fn||(fn={}));var jn=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((function(e){return"function"==typeof e.fields?e.fields():[]})).reduce((function(e,t){return e.concat(t)}),[])))}return e.prototype.inject=function(e,t,n){var r,o;try{for(var i=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.")}(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(e,t,n)}catch(e){pt.warn("Failed to inject with "+s.constructor.name+". Err: "+e.message)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.extract=function(e,t,n){return this._propagators.reduce((function(e,r){try{return r.extract(e,t,n)}catch(e){pt.warn("Failed to inject with "+r.constructor.name+". Err: "+e.message)}return e}),e)},e.prototype.fields=function(){return this._fields.slice()},e}(),Fn="[_0-9a-z-*/]",Hn=new RegExp("^(?:[a-z]"+Fn+"{0,255}|[a-z0-9]"+Fn+"{0,240}@[a-z]"+Fn+"{0,13})$"),Gn=/^[ -~]{0,255}[!-~]$/,Vn=/,|=/,qn=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce((function(t,n){return t.push(n+"="+e.get(n)),t}),[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce((function(e,t){var n=t.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,t.length);(function(e){return Hn.test(e)})(o)&&function(e){return Gn.test(e)&&!Vn.test(e)}(i)&&e.set(o,i)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),Kn="traceparent",zn="tracestate",Xn=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),$n=function(){function e(){}return e.prototype.inject=function(e,t,n){var r=Nt.getSpanContext(e);if(r&&!It(e)&&Qe(r)){var o="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||le.NONE).toString(16);n.set(t,Kn,o),r.traceState&&n.set(t,zn,r.traceState.serialize())}},e.prototype.extract=function(e,t,n){var r=n.get(t,Kn);if(!r)return e;var o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return e;var i=function(e){var t=Xn.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}(o);if(!i)return e;i.isRemote=!0;var a=n.get(t,zn);if(a){var s=Array.isArray(a)?a.join(","):a;i.traceState=new qn("string"==typeof s?s:void 0)}return Nt.setSpanContext(e,i)},e.prototype.fields=function(){return[Kn,zn]},e}(),Wn=Function.prototype.toString,Jn=Wn.call(Object),Yn=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Qn=Object.prototype,Zn=Qn.hasOwnProperty,er=Symbol?Symbol.toStringTag:void 0,tr=Qn.toString;function nr(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||"[object Object]"!==function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":er&&er in Object(e)?function(e){var t=Zn.call(e,er),n=e[er],r=!1;try{e[er]=void 0,r=!0}catch(e){}var o=tr.call(e);return r&&(t?e[er]=n:delete e[er]),o}(e):function(e){return tr.call(e)}(e)}(e))return!1;var t=Yn(e);if(null===t)return!0;var n=Zn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Wn.call(n)===Jn}function rr(e){return ar(e)?e.slice():e}function or(e,t,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,ur(e)||ur(t)||sr(t))o=rr(t);else if(ar(e)){if(o=e.slice(),ar(t))for(var i=0,a=t.length;i<a;i++)o.push(rr(t[i]));else if(cr(t))for(i=0,a=(s=Object.keys(t)).length;i<a;i++)o[c=s[i]]=rr(t[c])}else if(cr(e))if(cr(t)){if(!function(e,t){return!(!nr(e)||!nr(t))}(e,t))return t;var s;for(o=Object.assign({},e),i=0,a=(s=Object.keys(t)).length;i<a;i++){var c,u=t[c=s[i]];if(ur(u))void 0===u?delete o[c]:o[c]=u;else{var l=o[c],p=u;if(ir(e,c,r)||ir(t,c,r))delete o[c];else{if(cr(l)&&cr(p)){var d=r.get(l)||[],f=r.get(p)||[];d.push({obj:e,key:c}),f.push({obj:t,key:c}),r.set(l,d),r.set(p,f)}o[c]=or(o[c],u,n,r)}}}}else o=t;return o}}function ir(e,t,n){for(var r=n.get(e[t])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===t&&a.obj===e)return!0}return!1}function ar(e){return Array.isArray(e)}function sr(e){return"function"==typeof e}function cr(e){return!ur(e)&&!ar(e)&&!sr(e)&&"object"==typeof e}function ur(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}function lr(e,t){return"string"==typeof t?e===t:!!e.match(t)}function pr(e,t){var n,r;if(!t)return!1;try{for(var o=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.")}(t),i=o.next();!i.done;i=o.next())if(lr(e,i.value))return!0}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}var dr=function(){function e(){var e=this;this._promise=new Promise((function(t,n){e._resolve=t,e._reject=n}))}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),fr=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new dr}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([this._that],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}(n),!1))).then((function(e){return t._deferred.resolve(e)}),(function(e){return t._deferred.reject(e)}))}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}(),hr=function(e){return"string"!=typeof e||0===e.length?{}:e.split(Pt).map((function(e){return Mt(e)})).filter((function(e){return void 0!==e&&e.value.length>0})).reduce((function(e,t){return e[t.key]=t.value,e}),{})},mr=function(){function e(){}return e.prototype.emit=function(e){},e}(),gr=function(){function e(){}return e.prototype.getLogger=function(e,t,n){return new mr},e}(),yr=new gr,vr="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},_r=Symbol.for("io.opentelemetry.js.api.logs"),Er=vr,br=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return Er[_r]?this.getLoggerProvider():(Er[_r]=function(e,t,n){return function(e){return 1===e?t:n}}(0,e,yr),e)},e.prototype.getLoggerProvider=function(){var e,t;return null!==(t=null===(e=Er[_r])||void 0===e?void 0:e.call(Er,1))&&void 0!==t?t:yr},e.prototype.getLogger=function(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)},e.prototype.disable=function(){delete Er[_r]},e}(),Tr=br.getInstance();function Ar(e){return"function"==typeof e}var Sr=console.error.bind(console);function wr(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function Or(e){e&&e.logger&&(Ar(e.logger)?Sr=e.logger:Sr("new logger isn't a function, not replacing"))}function Rr(e,t,n){if(e&&e[t]){if(!n)return Sr("no wrapper function"),void Sr((new Error).stack);if(Ar(e[t])&&Ar(n)){var r=e[t],o=n(r,t);return wr(o,"__original",r),wr(o,"__unwrap",(function(){e[t]===o&&wr(e,t,r)})),wr(o,"__wrapped",!0),wr(e,t,o),o}Sr("original object and wrapper must be functions")}else Sr("no original function "+t+" to wrap")}function Cr(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void Sr("no original to unwrap to -- has "+t+" already been unwrapped?"):(Sr("no function to unwrap."),void Sr((new Error).stack))}Or.wrap=Rr,Or.massWrap=function(e,t,n){if(!e)return Sr("must provide one or more modules to patch"),void Sr((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){Rr(e,t,n)}))})):Sr("must provide one or more functions to wrap on modules")},Or.unwrap=Cr,Or.massUnwrap=function(e,t){if(!e)return Sr("must provide one or more modules to patch"),void Sr((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){Cr(e,t)}))})):Sr("must provide one or more functions to unwrap on modules")};var Nr=Or,Lr=function(){return Lr=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},Lr.apply(this,arguments)},Ir=function(){function e(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this._config={},this._wrap=Nr.wrap,this._unwrap=Nr.unwrap,this._massWrap=Nr.massWrap,this._massUnwrap=Nr.massUnwrap,this.setConfig(n),this._diag=pt.createComponentLogger({namespace:e}),this._tracer=Nt.getTracer(e,t),this._meter=gt.getMeter(e,t),this._logger=Tr.getLogger(e,t),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var e,t=null!==(e=this.init())&&void 0!==e?e:[];return Array.isArray(t)?t:[t]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(e){this._config=Lr({enabled:!0},e)},e.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}},e}(),Pr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kr=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o._config.enabled&&o.enable(),o}return Pr(t,e),t}(Ir);function xr(e,t,n){var r,o;try{o=e()}catch(e){r=e}finally{if(t(r,o),r&&!n)throw r;return o}}function Dr(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var Mr,Ur=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},Br=function(){function e(e,t,n,r,o,i,a,s,c,u){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:nt.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=r,this.parentSpanId=i,this.kind=o,this.links=a;var l=Date.now();this._performanceStartTime=hn.now(),this._performanceOffset=l-(this._performanceStartTime+Pn()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=u&&this.setAttributes(u),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()?this:0===e.length?(pt.warn("Invalid attribute key: "+e),this):Gt(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(pt.warn("Invalid attribute value set for key: "+e),this)},e.prototype.setAttributes=function(e){var t,n;try{for(var r=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.entries(e)),o=r.next();!o.done;o=r.next()){var i=Ur(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return pt.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&pt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Un(t)&&(Un(n)||(n=t),t=void 0);var r=Ft(t);return this.events.push({name:e,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(e){return this.links.push(e),this},e.prototype.addLinks=function(e){var t;return(t=this.links).push.apply(t,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],Ur(e),!1)),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?pt.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(e),this._duration=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Ln),[n,r]}(this.startTime,this.endTime),this._duration[0]<0&&(pt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&pt.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e<hn.now())return kn(e+this._performanceOffset);if("number"==typeof e)return In(e);if(e instanceof Date)return In(e.getTime());if(Mn(e))return e;if(this._startTimeProvided)return In(Date.now());var t=hn.now()-this._performanceStartTime;return Bn(this.startTime,In(t))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(e,t){var n={};"string"==typeof e?n[gn]=e:e&&(e.code?n[mn]=e.code.toString():e.name&&(n[mn]=e.name),e.message&&(n[gn]=e.message),e.stack&&(n["exception.stacktrace"]=e.stack)),n[mn]||n[gn]?this.addEvent("exception",n,t):pt.warn("Failed to record an exception "+e)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&pt.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(e,t){return e.length<=t?e:e.substr(0,t)},e.prototype._truncateToSize=function(e){var t=this,n=this._attributeValueLengthLimit;return n<=0?(pt.warn("Attribute value limit must be positive, got "+n),e):"string"==typeof e?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map((function(e){return"string"==typeof e?t._truncateToLimitUtil(e,n):e})):e},e}();!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(Mr||(Mr={}));var jr=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Mr.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Fr=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Mr.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),Hr=function(){function e(e){var t,n,r,o;this._root=e.root,this._root||(Kt(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Fr),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new Fr,this._remoteParentNotSampled=null!==(n=e.remoteParentNotSampled)&&void 0!==n?n:new jr,this._localParentSampled=null!==(r=e.localParentSampled)&&void 0!==r?r:new Fr,this._localParentNotSampled=null!==(o=e.localParentNotSampled)&&void 0!==o?o:new jr}return e.prototype.shouldSample=function(e,t,n,r,o,i){var a=Nt.getSpanContext(e);return a&&Qe(a)?a.isRemote?a.traceFlags&le.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,o,i):this._remoteParentNotSampled.shouldSample(e,t,n,r,o,i):a.traceFlags&le.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,o,i):this._localParentNotSampled.shouldSample(e,t,n,r,o,i):this._root.shouldSample(e,t,n,r,o,i)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),Gr=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:Ye(t)&&this._accumulate(t)<this._upperBound?Mr.RECORD_AND_SAMPLED:Mr.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n<e.length/8;n++){var r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}(),Vr=un(),qr=qt.AlwaysOn;function Kr(){var e=un();return{sampler:zr(Vr),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function zr(e){switch(void 0===e&&(e=un()),e.OTEL_TRACES_SAMPLER){case qt.AlwaysOn:return new Fr;case qt.AlwaysOff:return new jr;case qt.ParentBasedAlwaysOn:return new Hr({root:new Fr});case qt.ParentBasedAlwaysOff:return new Hr({root:new jr});case qt.TraceIdRatio:return new Gr(Xr(e));case qt.ParentBasedTraceIdRatio:return new Hr({root:new Gr(Xr(e))});default:return pt.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+qr+'".'),new Fr}}function Xr(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return pt.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(pt.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):t<0||t>1?(pt.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):t}var $r=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=un();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new fr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(pt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&le.SAMPLED&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then((function(){return e.onShutdown()})).then((function(){return e._flushAll()})).then((function(){return e._exporter.shutdown()}))},e.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&pt.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(pt.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},e.prototype._flushAll=function(){var e=this;return new Promise((function(t,n){for(var r=[],o=0,i=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);o<i;o++)r.push(e._flushOneBatch());Promise.all(r).then((function(){t()})).catch(n)}))},e.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((function(t,n){var r=setTimeout((function(){n(new Error("Timeout"))}),e._exportTimeoutMillis);lt.with(function(e){return e.setValue(Lt,!0)}(lt.active()),(function(){var o;e._finishedSpans.length<=e._maxExportBatchSize?(o=e._finishedSpans,e._finishedSpans=[]):o=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var i=function(){return e._exporter.export(o,(function(e){var o;clearTimeout(r),e.code===fn.SUCCESS?t():n(null!==(o=e.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))}))},a=null,s=0,c=o.length;s<c;s++){var u=o[s];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(null!=a||(a=[]),a.push(u.resource.waitForAsyncAttributes()))}null===a?i():Promise.all(a).then(i,(function(e){Kt(e),n(e)}))}))}))},e.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var t=function(){e._isExporting=!0,e._flushOneBatch().finally((function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())})).catch((function(t){e._isExporting=!1,Kt(t)}))};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout((function(){return t()}),this._scheduledDelayMillis))}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),Wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.onInit(n),r}return Wr(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush()},this._pageHideListener=function(){t.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}($r),Yr=function(){return function(){this.generateTraceId=Zr(16),this.generateSpanId=Zr(8)}}(),Qr=Array(32);function Zr(e){return function(){for(var t=0;t<2*e;t++)Qr[t]=Math.floor(16*Math.random())+48,Qr[t]>=58&&(Qr[t]+=39);return String.fromCharCode.apply(null,Qr.slice(0,2*e))}}var eo,to=function(){function e(e,t,n){this._tracerProvider=n;var r=function(e){var t={sampler:zr()},n=Kr(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}(t);this._sampler=r.sampler,this._generalLimits=r.generalLimits,this._spanLimits=r.spanLimits,this._idGenerator=t.idGenerator||new Yr,this.resource=n.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,n){var r,o,i;void 0===t&&(t={}),void 0===n&&(n=lt.active()),t.root&&(n=Nt.deleteSpan(n));var a=Nt.getSpan(n);if(It(n))return pt.debug("Instrumentation suppressed, returning Noop Span"),Nt.wrapSpanContext(Fe);var s,c,u,l=null==a?void 0:a.spanContext(),p=this._idGenerator.generateSpanId();l&&Nt.isSpanContextValid(l)?(s=l.traceId,c=l.traceState,u=l.spanId):s=this._idGenerator.generateTraceId();var d=null!==(r=t.kind)&&void 0!==r?r:tt.INTERNAL,f=(null!==(o=t.links)&&void 0!==o?o:[]).map((function(e){return{context:e.context,attributes:Ft(e.attributes)}})),h=Ft(t.attributes),m=this._sampler.shouldSample(n,s,e,d,h,f);c=null!==(i=m.traceState)&&void 0!==i?i:c;var g={traceId:s,spanId:p,traceFlags:m.decision===et.RECORD_AND_SAMPLED?le.SAMPLED:le.NONE,traceState:c};if(m.decision===et.NOT_RECORD)return pt.debug("Recording is off, propagating context in a non-recording span"),Nt.wrapSpanContext(g);var y=Ft(Object.assign(h,m.attributes));return new Br(this,n,e,g,d,u,f,t.startTime,void 0,y)},e.prototype.startActiveSpan=function(e,t,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(o=t,a=n):(o=t,i=n,a=r);var s=null!=i?i:lt.active(),c=this.startSpan(e,o,s),u=Nt.setSpan(s,c);return lt.with(u,a,void 0,c)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),no=function(){return no=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},no.apply(this,arguments)},ro=function(){function e(e,t){var n,r=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!==(n=this._attributes)&&void 0!==n?n:{},this._asyncAttributesPromise=null==t?void 0:t.then((function(e){return r._attributes=Object.assign({},r._attributes,e),r.asyncAttributesPending=!1,e}),(function(e){return pt.debug("a resource's async attributes promise rejected: %s",e),r.asyncAttributesPending=!1,{}}))}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[Sn]="unknown_service",t[On]=Cn[On],t[wn]=Cn[wn],t[Rn]=Cn[Rn],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&pt.error("Accessing resource attributes before async attributes settled"),null!==(e=this._attributes)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.merge=function(t){var n,r=this;if(!t)return this;var o=no(no({},this._syncAttributes),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(o);var i=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then((function(e){var n,o=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}(e,2),i=o[0],a=o[1];return no(no(no(no({},r._syncAttributes),i),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes),a)}));return new e(o,i)},e.EMPTY=new e({}),e}(),oo=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.")},io=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,n=[];try{for(var r=oo(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.forceFlush())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise((function(e){Promise.all(n).then((function(){e()})).catch((function(t){Kt(t||new Error("MultiSpanProcessor: forceFlush failed")),e()}))}))},e.prototype.onStart=function(e,t){var n,r;try{for(var o=oo(this._spanProcessors),i=o.next();!i.done;i=o.next())i.value.onStart(e,t)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(e){var t,n;try{for(var r=oo(this._spanProcessors),o=r.next();!o.done;o=r.next())o.value.onEnd(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,n=[];try{for(var r=oo(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.shutdown())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise((function(e,t){Promise.all(n).then((function(){e()}),t)}))},e}(),ao=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(eo||(eo={}));var so,co,uo,lo,po=function(){function e(e){var t;void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=or(n,e.shift(),0,r);return n}({},Kr(),function(e){var t,n,r,o,i,a,s,c,u,l,p,d,f=Object.assign({},e.spanLimits),h=sn(cn);return f.attributeCountLimit=null!==(a=null!==(i=null!==(o=null!==(n=null===(t=e.spanLimits)||void 0===t?void 0:t.attributeCountLimit)&&void 0!==n?n:null===(r=e.generalLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==o?o:h.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==i?i:h.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==a?a:Zt,f.attributeValueLengthLimit=null!==(d=null!==(p=null!==(l=null!==(c=null===(s=e.spanLimits)||void 0===s?void 0:s.attributeValueLengthLimit)&&void 0!==c?c:null===(u=e.generalLimits)||void 0===u?void 0:u.attributeValueLengthLimit)&&void 0!==l?l:h.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==p?p:h.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==d?d:Qt,Object.assign({},e,{spanLimits:f})}(e));this.resource=null!==(t=n.resource)&&void 0!==t?t:ro.empty(),this.resource=ro.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var o=new Jr(r);this.activeSpanProcessor=o}else this.activeSpanProcessor=new ao}return e.prototype.getTracer=function(e,t,n){var r=e+"@"+(t||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new to({name:e,version:t,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(e){return pt.error("Error while trying to shutdown current span processor",e)})),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new io(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),Nt.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&<.setGlobalContextManager(e.contextManager),e.propagator&&Ot.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map((function(t){return new Promise((function(n){var r,o=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+e+" ms")),r=eo.timeout}),e);t.forceFlush().then((function(){clearTimeout(o),r!==eo.timeout&&(r=eo.resolved,n(r))})).catch((function(e){clearTimeout(o),r=eo.error,n(e)}))}))}));return new Promise((function(e,n){Promise.all(t).then((function(t){var r=t.filter((function(e){return e!==eo.resolved}));r.length>0?n(r):e()})).catch((function(e){return n([e])}))}))},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null===(t=this.constructor._registeredPropagators.get(e))||void 0===t?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null===(t=this.constructor._registeredExporters.get(e))||void 0===t?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set(un().OTEL_PROPAGATORS)),n=t.map((function(t){var n=e._getPropagator(t);return n||pt.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),n})),r=n.reduce((function(e,t){return t&&e.push(t),e}),[]);if(0!==r.length)return 1===t.length?r[0]:new jn({propagators:r})},e.prototype._buildExporterFromEnv=function(){var e=un().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||pt.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new $n}],["baggage",function(){return new Ut}]]),e._registeredExporters=new Map,e}(),fo=function(){function e(){this._enabled=!1,this._currentContext=de}return e.prototype._bindFunction=function(e,t){void 0===e&&(e=de);var n=this,r=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(e,(function(){return t.apply(r,o)}))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t},e.prototype.disable=function(){return this._currentContext=de,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=de),this},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=this._currentContext;this._currentContext=e||de;try{return t.call.apply(t,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([n],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}(r),!1))}finally{this._currentContext=i}},e}(),ho=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mo=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;if(t.contextManager)throw"contextManager should be defined in register method not in constructor";if(t.propagator)throw"propagator should be defined in register method not in constructor";return n}return ho(t,e),t.prototype.register=function(t){void 0===t&&(t={}),void 0===t.contextManager&&(t.contextManager=new fo),t.contextManager&&t.contextManager.enable(),e.prototype.register.call(this,t)},t}(po);function go(e,t){return t in e}function yo(e,t,n,r){var o=void 0,i=void 0;go(n,t)&&"number"==typeof n[t]&&(o=n[t]);var a=so.FETCH_START;if(go(n,a)&&"number"==typeof n[a]&&(i=n[a]),void 0!==o&&void 0!==i&&o>=i)return e.addEvent(t,o),e}function vo(e,t){yo(e,so.FETCH_START,t),yo(e,so.DOMAIN_LOOKUP_START,t),yo(e,so.DOMAIN_LOOKUP_END,t),yo(e,so.CONNECT_START,t),go(t,"name")&&t.name.startsWith("https:")&&yo(e,so.SECURE_CONNECTION_START,t),yo(e,so.CONNECT_END,t),yo(e,so.REQUEST_START,t),yo(e,so.RESPONSE_START,t),yo(e,so.RESPONSE_END,t);var n=t[so.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute("http.response_content_length",n);var r=t[so.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute("http.response_content_length_uncompressed",r)}function _o(){return"undefined"!=typeof location?location.origin:void 0}function Eo(e,t,n,r,o,i){void 0===o&&(o=new WeakSet);var a=bo(e),s=function(e,t,n,r,o,i){var a=Dn(t),s=Dn(n),c=r.filter((function(t){var n=Dn(xn(t[so.FETCH_START])),r=Dn(xn(t[so.RESPONSE_END]));return t.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&t.name===e&&n>=a&&r<=s}));return c.length>0&&(c=c.filter((function(e){return!o.has(e)}))),c}(e=a.toString(),t,n,r,o,i);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var c=function(e){return e.slice().sort((function(e,t){var n=e[so.FETCH_START],r=t[so.FETCH_START];return n>r?1:n<r?-1:0}))}(s);if(a.origin!==_o()&&c.length>1){var u=c[0],l=function(e,t,n){for(var r,o=Dn(n),i=Dn(xn(t)),a=e[1],s=e.length,c=1;c<s;c++){var u=e[c],l=Dn(xn(u[so.FETCH_START])),p=o-Dn(xn(u[so.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=u)}return a}(c,u[so.RESPONSE_END],n),p=u[so.RESPONSE_END];return l[so.FETCH_START]<p&&(l=u,u=void 0),{corsPreFlightRequest:u,mainRequest:l}}return{mainRequest:s[0]}}function bo(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var t=(co||(co=document.createElement("a")),co);return t.href=e,t}function To(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(e,t){var n=e.nodeType,r=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);return n=n.filter((function(n){var r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName})),n.length>=1?n.indexOf(e)+1:0}(e),o="";if(n===Node.ELEMENT_NODE){var i=e.getAttribute("id");if(t&&i)return'//*[@id="'+i+'"]';o=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}return o&&r>1?"/"+o+"["+r+"]":"/"+o}(e,t);if(t&&n.indexOf("@id")>0)return n;var r="";return e.parentNode&&(r+=To(e.parentNode,!1)),r+n}function Ao(e,t){var n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),bo(e).origin===_o()||n.some((function(t){return lr(e,t)}))}!function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(so||(so={})),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(uo||(uo={})),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(lo||(lo={}));var So,wo={"first-paint":lo.FIRST_PAINT,"first-contentful-paint":lo.FIRST_CONTENTFUL_PAINT},Oo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-document-load","0.40.0",t)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return Oo(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout((function(){e._collectPerformance()}))},t.prototype._addResourcesSpans=function(e){var t,n,r=this,o=null===(n=(t=hn).getEntriesByType)||void 0===n?void 0:n.call(t,"resource");o&&o.forEach((function(t){r._initResourceSpan(t,e)}))},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find((function(e){return e.getAttribute("name")===Kn})),n=function(){var e,t,n={},r=null===(t=(e=hn).getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0];if(r)Object.values(so).forEach((function(e){if(go(r,e)){var t=r[e];"number"==typeof t&&(n[e]=t)}}));else{var o=hn.timing;o&&Object.values(so).forEach((function(e){if(go(o,e)){var t=o[e];"number"==typeof t&&(n[e]=t)}}))}return n}(),r=t&&t.content||"";lt.with(Ot.extract(de,{traceparent:r}),(function(){var t,r=e._startSpan(uo.DOCUMENT_LOAD,so.FETCH_START,n);r&&(lt.with(Nt.setSpan(lt.active(),r),(function(){var t=e._startSpan(uo.DOCUMENT_FETCH,so.FETCH_START,n);t&&(t.setAttribute(vn,location.href),lt.with(Nt.setSpan(lt.active(),t),(function(){var r;e.getConfig().ignoreNetworkEvents||vo(t,n),e._addCustomAttributesOnSpan(t,null===(r=e.getConfig().applyCustomAttributesOnSpan)||void 0===r?void 0:r.documentFetch),e._endSpan(t,so.RESPONSE_END,n)})))})),r.setAttribute(vn,location.href),r.setAttribute(Tn,navigator.userAgent),e._addResourcesSpans(r),e.getConfig().ignoreNetworkEvents||(yo(r,so.FETCH_START,n),yo(r,so.UNLOAD_EVENT_START,n),yo(r,so.UNLOAD_EVENT_END,n),yo(r,so.DOM_INTERACTIVE,n),yo(r,so.DOM_CONTENT_LOADED_EVENT_START,n),yo(r,so.DOM_CONTENT_LOADED_EVENT_END,n),yo(r,so.DOM_COMPLETE,n),yo(r,so.LOAD_EVENT_START,n),yo(r,so.LOAD_EVENT_END,n)),e.getConfig().ignorePerformancePaintEvents||function(e){var t,n,r=null===(n=(t=hn).getEntriesByType)||void 0===n?void 0:n.call(t,"paint");r&&r.forEach((function(t){var n=t.name,r=t.startTime;go(wo,n)&&e.addEvent(wo[n],r)}))}(r),e._addCustomAttributesOnSpan(r,null===(t=e.getConfig().applyCustomAttributesOnSpan)||void 0===t?void 0:t.documentLoad),e._endSpan(r,so.LOAD_EVENT_END,n))}))},t.prototype._endSpan=function(e,t,n){e&&(go(n,t)?e.end(n[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var n,r=this._startSpan(uo.RESOURCE_FETCH,so.FETCH_START,e,t);r&&(r.setAttribute(vn,e.name),this.getConfig().ignoreNetworkEvents||vo(r,e),this._addCustomAttributesOnResourceSpan(r,e,null===(n=this.getConfig().applyCustomAttributesOnSpan)||void 0===n?void 0:n.resourceFetch),this._endSpan(r,so.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,n,r){if(go(n,t)&&"number"==typeof n[t])return this.tracer.startSpan(e,{startTime:n[t]},r?Nt.setSpan(lt.active(),r):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._addCustomAttributesOnSpan=function(e,t){var n=this;t&&xr((function(){return t(e)}),(function(e){e&&n._diag.error("addCustomAttributesOnSpan",e)}),!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,n){var r=this;n&&xr((function(){return n(e,t)}),(function(e){e&&r._diag.error("addCustomAttributesOnResourceSpan",e)}),!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(kr);!function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"}(So||(So={}));var Co,No,Lo="0.53.0",Io=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po="object"==typeof process&&"node"===(null===(Co=process.release)||void 0===Co?void 0:Co.name),ko=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-fetch",Lo,t)||this;return n.component="fetch",n.version=Lo,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return Io(t,e),t.prototype.init=function(){},t.prototype._addChildSpan=function(e,t){var n=this.tracer.startSpan("CORS Preflight",{startTime:t[so.FETCH_START]},Nt.setSpan(lt.active(),e));this.getConfig().ignoreNetworkEvents||vo(n,t),n.end(t[so.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var n=bo(t.url);e.setAttribute(bn,t.status),null!=t.statusText&&e.setAttribute(So.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(_n,n.host),e.setAttribute(En,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(Tn,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!Ao(t,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};return Ot.inject(lt.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}e instanceof Request||e.headers instanceof Headers||e.headers instanceof Map?Ot.inject(lt.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}}):(n={},Ot.inject(lt.active(),n),e.headers=Object.assign({},n,e.headers||{}))},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var n;if(void 0===t&&(t={}),!pr(e,this.getConfig().ignoreUrls)){var r=(t.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:tt.CLIENT,attributes:(n={},n[So.COMPONENT]=this.moduleName,n[yn]=r,n[vn]=e,n)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n){var r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=Eo(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var a=o.corsPreFlightRequest;a&&(this._addChildSpan(e,a),this._markResourceAsUsed(a)),this.getConfig().ignoreNetworkEvents||vo(e,i)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,n){var r=this,o=In(Date.now()),i=kn();this._addFinalSpanAttributes(e,n),setTimeout((function(){var n;null===(n=t.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(e,t,i),r._tasksCount--,r._clearResources(),e.end(o)}),300)},t.prototype._patchConstructor=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,i=bo(e[0]instanceof Request?e[0].url:String(e[0])).href,a=e[0]instanceof Request?e[0]:e[1]||{},s=n._createSpan(i,a);if(!s)return t.apply(this,e);var c=n._prepareSpanData(i);function u(e,t){n._applyAttributesAfterFetch(e,a,t),n._endSpan(e,c,{status:t.status||0,statusText:t.message,url:i})}function l(e,t){n._applyAttributesAfterFetch(e,a,t),t.status>=200&&t.status<400?n._endSpan(e,c,t):n._endSpan(e,c,{status:t.status,statusText:t.statusText,url:i})}function p(e,t,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then((function(t){t.done?l(e,o):s()}),(function(t){u(e,t)}))};s()}else l(e,n)}finally{t(n)}}function d(e,t,n){try{u(e,n)}finally{t(n)}}return new Promise((function(e,r){return lt.with(Nt.setSpan(lt.active(),s),(function(){return n._addHeaders(a,i),n._tasksCount++,t.apply(o,a instanceof Request?[a]:[i,a]).then(p.bind(o,s,e),d.bind(o,s,r))}))}))}}},t.prototype._applyAttributesAfterFetch=function(e,t,n){var r=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&xr((function(){return o(e,t,n)}),(function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)}),!0)},t.prototype._prepareSpanData=function(e){var t=kn(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};var r=new PerformanceObserver((function(t){t.getEntries().forEach((function(t){"fetch"===t.initiatorType&&t.name===e&&n.push(t)}))}));return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}},t.prototype.enable=function(){Po?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(Dr(fetch)&&(this._unwrap(cn,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(cn,"fetch",this._patchConstructor()))},t.prototype.disable=function(){Po||(this._unwrap(cn,"fetch"),this._usedResources=new WeakSet)},t}(kr);!function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(No||(No={}));var xo,Do="0.53.0";!function(e){e.HTTP_STATUS_TEXT="http.status_text"}(xo||(xo={}));var Mo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uo=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Do,t)||this;return n.component="xml-http-request",n.version=Do,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return Mo(t,e),t.prototype.init=function(){},t.prototype._addHeaders=function(e,t){if(!Ao(bo(t).href,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};return Ot.inject(lt.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var r={};Ot.inject(lt.active(),r),Object.keys(r).forEach((function(t){e.setRequestHeader(t,String(r[t]))}))},t.prototype._addChildSpan=function(e,t){var n=this;lt.with(Nt.setSpan(lt.active(),e),(function(){var e=n.tracer.startSpan("CORS Preflight",{startTime:t[so.FETCH_START]});n.getConfig().ignoreNetworkEvents||vo(e,t),e.end(t[so.RESPONSE_END])}))},t.prototype._addFinalSpanAttributes=function(e,t,n){if("string"==typeof n){var r=bo(n);void 0!==t.status&&e.setAttribute(bn,t.status),void 0!==t.statusText&&e.setAttribute(xo.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(_n,r.host),e.setAttribute(En,r.protocol.replace(":","")),e.setAttribute(Tn,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var n=this,r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&xr((function(){return r(e,t)}),(function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)}),!0)},t.prototype._addResourceObserver=function(e,t){var n=this._xhrMem.get(e);!n||"function"!=typeof PerformanceObserver||"function"!=typeof PerformanceResourceTiming||(n.createdResources={observer:new PerformanceObserver((function(e){var r=e.getEntries(),o=bo(t);r.forEach((function(e){"xmlhttprequest"===e.initiatorType&&e.name===o.href&&n.createdResources&&n.createdResources.entries.push(e)}))})),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(hn.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n,r,o){if(n&&r&&o&&e.createdResources){var i=e.createdResources.entries;(!i||!i.length)&&(i=hn.getEntriesByType("resource"));var a=Eo(bo(n).href,r,o,i,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var c=a.corsPreFlightRequest;c&&(this._addChildSpan(t,c),this._markResourceAsUsed(c)),this.getConfig().ignoreNetworkEvents||vo(t,s)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,n){var r;if(!pr(t,this.getConfig().ignoreUrls)){var o=n.toUpperCase(),i=this.tracer.startSpan(o,{kind:tt.CLIENT,attributes:(r={},r[yn]=n,r[vn]=bo(t).toString(),r)});return i.addEvent(No.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:i,spanUrl:t}),i}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[0],i=e[1];return n._createSpan(this,i,o),t.apply(this,e)}}},t.prototype._patchSend=function(){var e=this;function t(t,n){var r=e._xhrMem.get(n);if(r){r.status=n.status,r.statusText=n.statusText,e._xhrMem.delete(n),r.span&&e._applyAttributesAfterXHR(r.span,n);var o=kn(),i=Date.now();setTimeout((function(){!function(t,n,r,o){var i=n.callbackToRemoveEvents;"function"==typeof i&&i();var a=n.span,s=n.spanUrl,c=n.sendStartTime;a&&(e._findResourceAndAddNetworkEvents(n,a,s,c,r),a.addEvent(t,o),e._addFinalSpanAttributes(a,n,s),a.end(o),e._tasksCount--),e._clearResources()}(t,r,o,i)}),300)}}function n(){t(No.EVENT_ERROR,this)}function r(){t(No.EVENT_ABORT,this)}function o(){t(No.EVENT_TIMEOUT,this)}function i(){this.status<299?t(No.EVENT_LOAD,this):t(No.EVENT_ERROR,this)}return function(t){return function(){for(var a=this,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var u=e._xhrMem.get(this);if(!u)return t.apply(this,s);var l=u.span,p=u.spanUrl;return l&&p&<.with(Nt.setSpan(lt.active(),l),(function(){e._tasksCount++,u.sendStartTime=kn(),l.addEvent(No.METHOD_SEND),a.addEventListener("abort",r),a.addEventListener("error",n),a.addEventListener("load",i),a.addEventListener("timeout",o),u.callbackToRemoveEvents=function(){(function(t){t.removeEventListener("abort",r),t.removeEventListener("error",n),t.removeEventListener("load",i),t.removeEventListener("timeout",o);var a=e._xhrMem.get(t);a&&(a.callbackToRemoveEvents=void 0)})(a),u.createdResources&&u.createdResources.observer.disconnect()},e._addHeaders(a,p),e._addResourceObserver(a,p)})),t.apply(this,s)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),Dr(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),Dr(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(kr);function Bo(e,t){if(!e)throw new Error(t)}function jo(e,t){if(!e)throw new Error("Unexpected invariant triggered.")}const Fo=/\r\n|[\n\r]/g;function Ho(e,t){let n=0,r=1;for(const o of e.body.matchAll(Fo)){if("number"==typeof o.index||jo(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Go(e){return Vo(e.source,Ho(e.source,e.start))}function Vo(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=1===t.line?n:0,c=t.column+s,u=`${e.name}:${a}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),p=l[o];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+qo([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+qo([[a-1+" |",l[o-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,l[o+1]]])}function qo(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class Ko extends Error{constructor(e,...t){var n,r,o;const{nodes:i,source:a,positions:s,path:c,originalError:u,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=u?u:void 0,this.nodes=zo(Array.isArray(i)?i:i?[i]:void 0);const p=zo(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map((e=>e.start)),this.locations=s&&a?s.map((e=>Ho(a,e))):null==p?void 0:p.map((e=>Ho(e.source,e.start)));const d=function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(o=null!=l?l:d)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ko):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Go(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Vo(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function zo(e){return void 0===e||0===e.length?void 0:e}function Xo(e,t,n){return new Ko(`Syntax Error: ${n}`,{source:e,positions:[t]})}class $o{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Wo{constructor(e,t,n,r,o,i){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Jo={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Yo=new Set(Object.keys(Jo));function Qo(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Yo.has(t)}var Zo,ei,ti,ni;function ri(e){return 9===e||32===e}function oi(e){return e>=48&&e<=57}function ii(e){return e>=97&&e<=122||e>=65&&e<=90}function ai(e){return ii(e)||95===e}function si(e){return ii(e)||oi(e)||95===e}function ci(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var i;const a=e[t],s=ui(a);s!==a.length&&(r=null!==(i=r)&&void 0!==i?i:t,o=t,0!==t&&s<n&&(n=s))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function ui(e){let t=0;for(;t<e.length&&ri(e.charCodeAt(t));)++t;return t}function li(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,i=r.length>1&&r.slice(1).every((e=>0===e.length||ri(e.charCodeAt(0)))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=s||c,l=!o||e.length>70||u||i||a;let p="";const d=o&&ri(e.charCodeAt(0));return(l&&!d||i)&&(p+="\n"),p+=n,(l||u)&&(p+="\n"),'"""'+p+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Zo||(Zo={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ei||(ei={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(ti||(ti={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(ni||(ni={}));class pi{constructor(e){const t=new Wo(ni.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ni.EOF)do{if(e.next)e=e.next;else{const t=vi(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ni.COMMENT);return e}}function di(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function fi(e,t){return hi(e.charCodeAt(t))&&mi(e.charCodeAt(t+1))}function hi(e){return e>=55296&&e<=56319}function mi(e){return e>=56320&&e<=57343}function gi(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return ni.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function yi(e,t,n,r,o){const i=e.line,a=1+n-e.lineStart;return new Wo(t,n,r,i,a,o)}function vi(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return _i(e,o);case 33:return yi(e,ni.BANG,o,o+1);case 36:return yi(e,ni.DOLLAR,o,o+1);case 38:return yi(e,ni.AMP,o,o+1);case 40:return yi(e,ni.PAREN_L,o,o+1);case 41:return yi(e,ni.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return yi(e,ni.SPREAD,o,o+3);break;case 58:return yi(e,ni.COLON,o,o+1);case 61:return yi(e,ni.EQUALS,o,o+1);case 64:return yi(e,ni.AT,o,o+1);case 91:return yi(e,ni.BRACKET_L,o,o+1);case 93:return yi(e,ni.BRACKET_R,o,o+1);case 123:return yi(e,ni.BRACE_L,o,o+1);case 124:return yi(e,ni.PIPE,o,o+1);case 125:return yi(e,ni.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?Ci(e,o):Ti(e,o)}if(oi(t)||45===t)return Ei(e,o,t);if(ai(t))return Ni(e,o);throw Xo(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":di(t)||fi(n,o)?`Unexpected character: ${gi(e,o)}.`:`Invalid character: ${gi(e,o)}.`)}return yi(e,ni.EOF,r,r)}function _i(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(di(e))++o;else{if(!fi(n,o))break;o+=2}}return yi(e,ni.COMMENT,t,o,n.slice(t+1,o))}function Ei(e,t,n){const r=e.source.body;let o=t,i=n,a=!1;if(45===i&&(i=r.charCodeAt(++o)),48===i){if(i=r.charCodeAt(++o),oi(i))throw Xo(e.source,o,`Invalid number, unexpected digit after 0: ${gi(e,o)}.`)}else o=bi(e,o,i),i=r.charCodeAt(o);if(46===i&&(a=!0,i=r.charCodeAt(++o),o=bi(e,o,i),i=r.charCodeAt(o)),(69===i||101===i)&&(a=!0,i=r.charCodeAt(++o),(43===i||45===i)&&(i=r.charCodeAt(++o)),o=bi(e,o,i),i=r.charCodeAt(o)),46===i||ai(i))throw Xo(e.source,o,`Invalid number, expected digit but got: ${gi(e,o)}.`);return yi(e,a?ni.FLOAT:ni.INT,t,o,r.slice(t,o))}function bi(e,t,n){if(!oi(n))throw Xo(e.source,t,`Invalid number, expected digit but got: ${gi(e,t)}.`);const r=e.source.body;let o=t+1;for(;oi(r.charCodeAt(o));)++o;return o}function Ti(e,t){const n=e.source.body,r=n.length;let o=t+1,i=o,a="";for(;o<r;){const r=n.charCodeAt(o);if(34===r)return a+=n.slice(i,o),yi(e,ni.STRING,t,o+1,a);if(92!==r){if(10===r||13===r)break;if(di(r))++o;else{if(!fi(n,o))throw Xo(e.source,o,`Invalid character within String: ${gi(e,o)}.`);o+=2}}else{a+=n.slice(i,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?Ai(e,o):Si(e,o):Ri(e,o);a+=t.value,o+=t.size,i=o}}throw Xo(e.source,o,"Unterminated string.")}function Ai(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!di(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|Oi(e),r<0)break}throw Xo(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function Si(e,t){const n=e.source.body,r=wi(n,t+2);if(di(r))return{value:String.fromCodePoint(r),size:6};if(hi(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=wi(n,t+8);if(mi(e))return{value:String.fromCodePoint(r,e),size:12}}throw Xo(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function wi(e,t){return Oi(e.charCodeAt(t))<<12|Oi(e.charCodeAt(t+1))<<8|Oi(e.charCodeAt(t+2))<<4|Oi(e.charCodeAt(t+3))}function Oi(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ri(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Xo(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ci(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,i=t+3,a=i,s="";const c=[];for(;i<r;){const r=n.charCodeAt(i);if(34===r&&34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)){s+=n.slice(a,i),c.push(s);const r=yi(e,ni.BLOCK_STRING,t,i+3,ci(c).join("\n"));return e.line+=c.length-1,e.lineStart=o,r}if(92!==r||34!==n.charCodeAt(i+1)||34!==n.charCodeAt(i+2)||34!==n.charCodeAt(i+3))if(10!==r&&13!==r)if(di(r))++i;else{if(!fi(n,i))throw Xo(e.source,i,`Invalid character within String: ${gi(e,i)}.`);i+=2}else s+=n.slice(a,i),c.push(s),13===r&&10===n.charCodeAt(i+1)?i+=2:++i,s="",a=i,o=i;else s+=n.slice(a,i),a=i+1,i+=4}throw Xo(e.source,i,"Unterminated string.")}function Ni(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r&&si(n.charCodeAt(o));)++o;return yi(e,ni.NAME,t,o,n.slice(t,o))}const Li=10,Ii=2;function Pi(e){return ki(e,[])}function ki(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ki(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Ii)return"[Array]";const n=Math.min(Li,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(ki(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>Ii?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map((([e,n])=>e+": "+ki(n,t))).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const xi=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Pi(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Di{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Bo(!1,`Body must be a string. Received: ${Pi(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Bo(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Bo(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Mi(e,t){return new Ui(e,t).parseDocument()}class Ui{constructor(e,t={}){const n=function(e){return xi(e,Di)}(e)?e:new Di(e);this._lexer=new pi(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(ni.NAME);return this.node(e,{kind:ti.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ti.DOCUMENT,definitions:this.many(ni.SOF,this.parseDefinition,ni.EOF)})}parseDefinition(){if(this.peek(ni.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===ni.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Xo(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(ni.BRACE_L))return this.node(e,{kind:ti.OPERATION_DEFINITION,operation:Zo.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(ni.NAME)&&(n=this.parseName()),this.node(e,{kind:ti.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ni.NAME);switch(e.value){case"query":return Zo.QUERY;case"mutation":return Zo.MUTATION;case"subscription":return Zo.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ni.PAREN_L,this.parseVariableDefinition,ni.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ti.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ni.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ni.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ni.DOLLAR),this.node(e,{kind:ti.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ti.SELECTION_SET,selections:this.many(ni.BRACE_L,this.parseSelection,ni.BRACE_R)})}parseSelection(){return this.peek(ni.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(ni.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:ti.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ni.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ni.PAREN_L,t,ni.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(ni.COLON),this.node(t,{kind:ti.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ni.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(ni.NAME)?this.node(e,{kind:ti.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ti.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ti.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ti.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case ni.BRACKET_L:return this.parseList(e);case ni.BRACE_L:return this.parseObject(e);case ni.INT:return this.advanceLexer(),this.node(t,{kind:ti.INT,value:t.value});case ni.FLOAT:return this.advanceLexer(),this.node(t,{kind:ti.FLOAT,value:t.value});case ni.STRING:case ni.BLOCK_STRING:return this.parseStringLiteral();case ni.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ti.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ti.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ti.NULL});default:return this.node(t,{kind:ti.ENUM,value:t.value})}case ni.DOLLAR:if(e){if(this.expectToken(ni.DOLLAR),this._lexer.token.kind===ni.NAME){const e=this._lexer.token.value;throw Xo(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ti.STRING,value:e.value,block:e.kind===ni.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ti.LIST,values:this.any(ni.BRACKET_L,(()=>this.parseValueLiteral(e)),ni.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ti.OBJECT,fields:this.any(ni.BRACE_L,(()=>this.parseObjectField(e)),ni.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(ni.COLON),this.node(t,{kind:ti.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(ni.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(ni.AT),this.node(t,{kind:ti.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(ni.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(ni.BRACKET_R),t=this.node(e,{kind:ti.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(ni.BANG)?this.node(e,{kind:ti.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ti.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ni.STRING)||this.peek(ni.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(ni.BRACE_L,this.parseOperationTypeDefinition,ni.BRACE_R);return this.node(e,{kind:ti.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(ni.COLON);const n=this.parseNamedType();return this.node(e,{kind:ti.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ti.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:ti.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ni.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ni.BRACE_L,this.parseFieldDefinition,ni.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(ni.COLON);const o=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:ti.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i})}parseArgumentDefs(){return this.optionalMany(ni.PAREN_L,this.parseInputValueDef,ni.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ni.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(ni.EQUALS)&&(o=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(e,{kind:ti.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:i})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:ti.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:ti.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(ni.EQUALS)?this.delimitedMany(ni.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:ti.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(ni.BRACE_L,this.parseEnumValueDefinition,ni.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ti.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Xo(this._lexer.source,this._lexer.token.start,`${Bi(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:ti.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(ni.BRACE_L,this.parseInputValueDef,ni.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ni.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(ni.BRACE_L,this.parseOperationTypeDefinition,ni.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ti.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:ti.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:ti.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:ti.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ti.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ti.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ti.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ni.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(e,{kind:ti.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:i})}parseDirectiveLocations(){return this.delimitedMany(ni.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ei,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new $o(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Xo(this._lexer.source,t.start,`Expected ${ji(e)}, found ${Bi(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==ni.NAME||t.value!==e)throw Xo(this._lexer.source,t.start,`Expected "${e}", found ${Bi(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===ni.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Xo(this._lexer.source,t.start,`Unexpected ${Bi(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==ni.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Xo(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Bi(e){const t=e.value;return ji(e.kind)+(null!=t?` "${t}"`:"")}function ji(e){return function(e){return e===ni.BANG||e===ni.DOLLAR||e===ni.AMP||e===ni.PAREN_L||e===ni.PAREN_R||e===ni.SPREAD||e===ni.COLON||e===ni.EQUALS||e===ni.AT||e===ni.BRACKET_L||e===ni.BRACKET_R||e===ni.BRACE_L||e===ni.PIPE||e===ni.BRACE_R}(e)?`"${e}"`:e}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Hi={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},Gi=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Fi({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Fi({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Fi({},this.attributes,t))},withConverter:function(t){return e(Fi({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}(Hi,{path:"/"});let Vi="localStorage",qi=!0,Ki=new class{constructor(){f(this,"storage",{})}getItem(e){var t;return null!=(t=this.storage[e])?t:""}setItem(e,t){this.storage[e]=t}removeItem(e){delete this.storage[e]}};const zi=new class{getItem(e){var t;return null!=(t=Gi.get(e))?t:""}setItem(e,t){if(!qi)return;const n=new Date;n.setTime(n.getTime()+9e5),Gi.set(e,t,{expires:n})}removeItem(e){qi&&Gi.remove(e)}},Xi=()=>{try{switch(Vi){case"localStorage":return window.localStorage;case"sessionStorage":return window.sessionStorage}}catch(e){return Ki}},$i=e=>{Vi=e},Wi=e=>{qi=e},Ji=e=>Xi().getItem(e),Yi=(e,t)=>(zi.setItem(e,t),Xi().setItem(e,t)),Qi=e=>(zi.removeItem(e),Xi().removeItem(e)),Zi=e=>{if("sessionStorage"===Vi)return void console.warn("highlight.io cannot use local storage; segment integration will not work");const t=window.localStorage.setItem;window.localStorage.setItem=function(){const[n,r]=arguments;e({keyName:n,keyValue:r}),t.apply(this,[n,r])}};var ea;!function(e){e.SEGMENT_LAST_SENT_HASH_KEY="HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY",e.SESSION_ID="sessionID",e.SESSION_DATA="sessionData",e.USER_IDENTIFIER="highlightIdentifier",e.USER_OBJECT="highlightUserObject"}(ea||(ea={}));const ta=e=>`${ea.SESSION_DATA}_${e}`;let na="";const ra=e=>{Yi(ea.SESSION_ID,e)},oa=e=>{e||(e=(()=>{var e;return null!=(e=Ji(ea.SESSION_ID))?e:""})());let t=(e=>{const t=ta(e);return JSON.parse(Ji(t)||"{}")})(e);if(t&&t.lastPushTime&&Date.now()-t.lastPushTime<9e5)return t;Qi(ta(e))},ia=function(e){if(null==e||!e.sessionSecureID)return;const t=e.sessionSecureID;(e=>{e&&(na=e)})(t),Yi(ta(t),JSON.stringify(e))},aa=(e,t,n)=>{const r=sa(t,e.headers,n);return p(l({},e),{headers:r})},sa=(e,t,n)=>{var r,o;const i=l({},t);return n?(null==(r=Object.keys(i))||r.forEach((e=>{[...n].includes(null==e?void 0:e.toLowerCase())||(i[e]="[REDACTED]")})),i):(null==(o=Object.keys(i))||o.forEach((t=>{[...ca,...e].includes(null==t?void 0:t.toLowerCase())&&(i[t]="[REDACTED]")})),i)},ca=["authorization","cookie","proxy-authorization","token"],ua=["https://www.googleapis.com/identitytoolkit","https://securetoken.googleapis.com"],la="X-Highlight-Request",pa=e=>{let t=e;return!e.startsWith("https://")&&!e.startsWith("http://")&&(t=`${window.location.origin}${t}`),t.replace(/\/+$/,"")},da=(e,t,n,r)=>{e.sort(((e,t)=>e.responseEnd-t.responseEnd));const o=e.reduce(((e,t)=>{const r=pa(t.name);return t.initiatorType===n?e[n][r]=[...e[n][r]||[],t]:e.others[r]=[...e.others[r]||[],t],e}),{xmlhttprequest:{},others:{},fetch:{}});let i={};i=t.reduce(((e,t)=>{const n=pa(t.request.url);return e[n]=[...e[n]||[],t],e}),i);for(let e in o[n]){const t=o[n][e],r=i[e];if(!r)continue;const a=Math.max(t.length-r.length,0);for(let e=a;e<t.length;e++)t[e]&&(t[e].requestResponsePair=r[e-a])}let a=[];for(let e in o)for(let t in o[e])a=a.concat(o[e][t]);return a.sort(((e,t)=>e.fetchStart-t.fetchStart)).reduce(((e,t)=>{let n=t.requestResponsePair;return n&&(n=((e,{headersToRedact:t,headersToRecord:n,requestResponseSanitizer:r})=>{var o,i;let a=e;if(r){let e=!0;try{a.request.body=JSON.parse(a.request.body)}catch(t){e=!1}let t=!0;try{a.response.body=JSON.parse(a.response.body)}catch(e){t=!1}try{a=r(a)}catch(e){}finally{e=e&&!(null==(o=null==a?void 0:a.request)||!o.body),t=t&&!(null==(i=null==a?void 0:a.response)||!i.body),e&&(a.request.body=JSON.stringify(a.request.body)),t&&(a.response.body=JSON.stringify(a.response.body))}if(!a)return null}const s=a,{request:c,response:u}=s,p=d(s,["request","response"]);return l({request:aa(c,t,n),response:aa(u,t,n)},p)})(t.requestResponsePair,r),!n)||(t.toJSON=function(){const e=window.performance.timeOrigin;return{initiatorType:this.initiatorType,startTimeAbs:e+this.startTime,connectStartAbs:e+this.connectStart,connectEndAbs:e+this.connectEnd,domainLookupStartAbs:e+this.domainLookupStart,domainLookupEndAbs:e+this.domainLookupEnd,fetchStartAbs:e+this.fetchStart,redirectStartAbs:e+this.redirectStart,redirectEndAbs:e+this.redirectEnd,requestStartAbs:e+this.requestStart,responseStartAbs:e+this.responseStart,responseEndAbs:e+this.responseEnd,secureConnectionStartAbs:e+this.secureConnectionStart,workerStartAbs:e+this.workerStart,name:this.name,transferSize:this.transferSize,encodedBodySize:this.encodedBodySize,decodedBodySize:this.decodedBodySize,nextHopProtocol:this.nextHopProtocol,requestResponsePairs:n}},e.push(t)),e}),[])},fa=(e,t,n)=>!((e,t)=>e.toLocaleLowerCase().includes("pub.highlight.io")||e.toLocaleLowerCase().includes("pub.highlight.io")||e.toLocaleLowerCase().includes("otel.highlight.io")||t.some((t=>e.toLocaleLowerCase().includes(t))))(e,t)||ha(e,null!=n?n:[],[]),ha=(e,t,n)=>{var r;if(n.some((t=>e.toLowerCase().includes(t))))return!1;let o=[];!0===t?(o=["localhost",/^\//],null!=(r=null==window?void 0:window.location)&&r.host&&o.push(window.location.host)):t instanceof Array&&(o=t);let i=!1;return o.forEach((t=>{e.match(t)&&(i=!0)})),i},ma=()=>{const e=function(){for(var e="",t=0;t<10;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e}(),t=ls(),n=null==t?void 0:t.spanContext().traceId;return[na,null!=n?n:e]},ga=(e,t)=>e+"/"+t,ya=(e,t,n,r,o,i)=>{const a=XMLHttpRequest.prototype,s=a.open,c=a.send,u=a.setRequestHeader;return a.open=function(e,t){return this._url="string"==typeof t?t:t.toString(),this._method=e,this._requestHeaders={},this._shouldRecordHeaderAndBody=!r.some((e=>this._url.toLowerCase().includes(e))),s.apply(this,arguments)},a.setRequestHeader=function(e,t){return this._requestHeaders[e]=t,u.apply(this,arguments)},a.send=function(a){if(!fa(this._url,t,n))return c.apply(this,arguments);const[s,u]=ma();ha(this._url,n,r)&&this.setRequestHeader(la,ga(s,u));const l=this._shouldRecordHeaderAndBody,p={sessionSecureID:s,id:u,url:this._url,verb:this._method,headers:l?this._requestHeaders:{},body:void 0};if(l&&a){const e=va(a,p.url);e&&(this._body=e,p.body=Ea(e,o,i,p.headers))}return this.addEventListener("load",(function(){return h(this,null,(function*(){const t={status:this.status,headers:{},body:void 0};if(l){const e=this.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};if(e.forEach((function(e){const t=e.split(": "),r=t.shift();n[r]=t.join(": ")})),t.headers=n,a){const e=va(a,p.url);e&&(p.body=Ea(e,o,i,t.headers))}if(""===this.responseType||"text"===this.responseType)t.body=Ea(this.responseText,o,i,t.headers),t.size=8*this.responseText.length;else if("blob"===this.responseType){if(this.response instanceof Blob)try{const e=yield this.response.text();t.body=Ea(e,o,i,t.headers),t.size=this.response.size}catch(e){}}else try{t.body=Ea(this.response,o,i,t.headers)}catch(e){}}e({request:p,response:t,urlBlocked:!l})}))})),this.addEventListener("error",(function(){return h(this,null,(function*(){const t={status:this.status,headers:void 0,body:void 0};e({request:p,response:t,urlBlocked:!1})}))})),c.apply(this,arguments)},()=>{a.open=s,a.send=c,a.setRequestHeader=u}},va=(e,t)=>{if("string"==typeof e){if(!(null!=t&&t.includes("localhost")||null!=t&&t.includes("highlight.run"))||!e.includes("pushPayload"))return e}else if("object"==typeof e||"number"==typeof e||"boolean"==typeof e)return B(e);return null},_a={"application/json":67108864,"text/plain":67108864},Ea=(e,t,n,r)=>{var o,i,a;let s=65536;if(r){let e="";e="function"==typeof r.get?null!=(o=r.get("content-type"))?o:"":null!=(i=r["content-type"])?i:"";try{e=e.split(";")[0]}catch(e){}s=null!=(a=_a[e])?a:65536}if(e){if(t)try{const n=JSON.parse(e);Array.isArray(n)?n.forEach((e=>{Object.keys(e).forEach((n=>{t.includes(n.toLocaleLowerCase())&&(e[n]="[REDACTED]")}))})):Object.keys(n).forEach((e=>{t.includes(e.toLocaleLowerCase())&&(n[e]="[REDACTED]")})),e=JSON.stringify(n)}catch(e){}if(n)try{const t=JSON.parse(e);Object.keys(t).forEach((e=>{n.includes(e.toLocaleLowerCase())||(t[e]="[REDACTED]")})),e=JSON.stringify(t)}catch(e){}}try{e=e.slice(0,s)}catch(e){}return e},ba=(e,t,n,r,o,i)=>{const a=window._fetchProxy;return window._fetchProxy=function(s,c){const{method:u,url:l}=Ta(s,c);if(!fa(l,t,n))return a.call(this,s,c);const[p,d]=ma();if(ha(l,n,r)){c=c||{};let e=new Headers(c.headers);s instanceof Request&&[...s.headers].forEach((([t,n])=>e.set(t,n))),e.set(la,ga(p,d)),c.headers=Object.fromEntries(e.entries())}const f={sessionSecureID:p,id:d,headers:{},body:void 0,url:l,verb:u},h=!r.some((e=>l.toLowerCase().includes(e)));h&&(f.headers=Object.fromEntries(new Headers(null==c?void 0:c.headers).entries()),f.body=Ea(null==c?void 0:c.body,o,i,null==c?void 0:c.headers));let m=a.call(this,s,c);return Aa(m,f,e,h,o,i),m},()=>{window._fetchProxy=a}},Ta=(e,t)=>{const n=t&&t.method||"object"==typeof e&&"method"in e&&e.method||"GET";let r;return r="object"==typeof e?"url"in e&&e.url?e.url:e.toString():e,{method:n,url:r}},Aa=(e,t,n,r,o,i)=>{e.then((e=>h(void 0,null,(function*(){let a={body:void 0,headers:void 0,status:0,size:0},s=!1,c=!r;"stack"in e||e instanceof Error?(a=p(l({},a),{body:e.message,status:0,size:void 0}),s=!0):"status"in e&&(a=p(l({},a),{status:e.status}),r&&(a.body=yield Sa(e,i,o),a.headers=Object.fromEntries(e.headers.entries()),a.size=8*a.body.length),("opaque"===e.type||"opaqueredirect"===e.type)&&(c=!0,a=p(l({},a),{body:"CORS blocked request"})),s=!0),s&&n({request:t,response:a,urlBlocked:c})})))).catch((()=>{}))},Sa=(e,t,n)=>h(void 0,null,(function*(){let r;try{const o=e.clone().body;if(o){let i,a=o.getReader(),s=new TextDecoder,c="";for(;!(i=yield a.read()).done;){let e=i.value;c+=s.decode(e)}r=c,r=Ea(r,n,t,e.headers)}else r=""}catch(e){r=`Unable to clone response: ${e}`}return r}));function wa(e){void 0===e&&(e={});var t={};return Object.entries(e).forEach((function(e){var n=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}(e,2),r=n[0],o=n[1];void 0!==o?t[r]=String(o):pt.warn('Header "'+r+'" has invalid value ('+o+") and will be ignored")})),t}function Oa(e,t){return pt.warn("Timeout must be greater than 0",e),t}function Ra(e){if(null==e)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}var Ca=function(){function e(e){void 0===e&&(e={}),this._sendingPromises=[],this.url=this.getDefaultUrl(e),"string"==typeof e.hostname&&(this.hostname=e.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new fr(this._shutdown,this),this._concurrencyLimit="number"==typeof e.concurrencyLimit?e.concurrencyLimit:30,this.timeoutMillis=function(e){return"number"==typeof e?e<=0?Oa(e,1e4):e:function(){var e,t=Number(null!==(e=un().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==e?e:un().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?Oa(t,1e4):t}()}(e.timeoutMillis),this.onInit(e)}return e.prototype.export=function(e,t){this._shutdownOnce.isCalled?t({code:fn.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?t({code:fn.FAILED,error:new Error("Concurrent export limit reached")}):this._export(e).then((function(){t({code:fn.SUCCESS})})).catch((function(e){t({code:fn.FAILED,error:e})}))},e.prototype._export=function(e){var t=this;return new Promise((function(n,r){try{pt.debug("items to be sent",e),t.send(e,n,r)}catch(e){r(e)}}))},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then((function(){}))},e.prototype._shutdown=function(){return pt.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),Na=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),La=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.name="OTLPExporterError",o.data=r,o.code=n,o}return Na(t,e),t}(Error),Ia=function(){function e(e){this._parameters=e}return e.prototype.send=function(e,t){var n=this;return new Promise((function(r){var o=new XMLHttpRequest;o.timeout=t,o.open("POST",n._parameters.url),Object.entries(n._parameters.headers).forEach((function(e){var t=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}(e,2),n=t[0],r=t[1];o.setRequestHeader(n,r)})),o.ontimeout=function(e){r({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=function(){o.status>=200&&o.status<=299?(pt.debug("XHR success"),r({status:"success"})):o.status&&function(e){return[429,502,503,504].includes(e)}(o.status)?r({status:"retryable",retryInMillis:Ra(o.getResponseHeader("Retry-After"))}):0!==o.status&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=function(){r({status:"failure",error:new Error("XHR request aborted")})},o.onerror=function(){r({status:"failure",error:new Error("XHR request errored")})},o.send(new Blob([e],{type:n._parameters.headers["Content-Type"]}))}))},e.prototype.shutdown=function(){},e}();function Pa(e){return new Ia(e)}var ka=function(){function e(e){this._params=e}return e.prototype.send=function(e){var t=this;return new Promise((function(n){navigator.sendBeacon(t._params.url,new Blob([e],{type:t._params.blobType}))?(pt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})}))},e.prototype.shutdown=function(){},e}(),xa=function(){function e(e){this._transport=e}return e.prototype.retry=function(e,t,n){var r=this;return new Promise((function(o,i){setTimeout((function(){r._transport.send(e,t).then(o,i)}),n)}))},e.prototype.send=function(e,t){var n;return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var r,o,i,a,s,c,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(l){switch(l.label){case 0:return r=Date.now()+t,[4,this._transport.send(e,t)];case 1:o=l.sent(),i=5,a=1e3,l.label=2;case 2:return"retryable"===o.status&&i>0?(i--,s=Math.max(Math.min(a,5e3)+(.4*Math.random()-.2),0),a*=1.5,c=null!==(n=o.retryInMillis)&&void 0!==n?n:s,u=r-Date.now(),c>u?[2,o]:[4,this.retry(e,u,c)]):[3,4];case 3:return o=l.sent(),[3,2];case 4:return[2,o]}}))}))},e.prototype.shutdown=function(){return this._transport.shutdown()},e}(),Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ma=function(e){function t(t,n,r){void 0===t&&(t={});var o=e.call(this,t)||this;o._serializer=n;var i=!!t.headers||"function"!=typeof navigator.sendBeacon;return o._transport=i?function(e){return new xa(e.transport)}({transport:Pa({headers:Object.assign({},wa(t.headers),hr(un().OTEL_EXPORTER_OTLP_HEADERS),{"Content-Type":r}),url:o.url})}):function(e){return new ka(e)}({url:o.url,blobType:r}),o}return Da(t,e),t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(e,t,n){var r=this;if(this._shutdownOnce.isCalled)pt.debug("Shutdown already started. Cannot send objects");else{var o=this._serializer.serializeRequest(e);if(null!=o){var i=this._transport.send(o,this.timeoutMillis).then((function(e){"success"===e.status?t():"failure"===e.status&&e.error?n(e.error):"retryable"===e.status?n(new La("Export failed with retryable status")):n(new La("Export failed with unknown error"))}),n);this._sendingPromises.push(i);var a=function(){var e=r._sendingPromises.indexOf(i);r._sendingPromises.splice(e,1)};i.then(a,a)}else n(new Error("Could not serialize message"))}},t}(Ca);function Ua(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Ba(e){return function(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}(Ua(e))}var ja="undefined"!=typeof BigInt?function(e){return Ua(e).toString()}:Dn;function Fa(e){return e}function Ha(e){if(void 0!==e)return pn(e)}var Ga={encodeHrTime:Ba,encodeSpanContext:pn,encodeOptionalSpanContext:Ha};function Va(e){return{name:e.name,version:e.version}}function qa(e){return Object.keys(e).map((function(t){return Ka(t,e[t])}))}function Ka(e,t){return{key:e,value:za(t)}}function za(e){var t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(za)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map((function(e){var t=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}(e,2);return Ka(t[0],t[1])}))}}:{}}function Xa(e,t){var n,r=e.spanContext(),o=e.status;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null===(n=r.traceState)||void 0===n?void 0:n.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:qa(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map((function(e){return function(e,t){return{attributes:e.attributes?qa(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)})),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map((function(e){return function(e,t){var n;return{attributes:e.attributes?qa(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null===(n=e.context.traceState)||void 0===n?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)})),droppedLinksCount:e.droppedLinksCount}}function $a(e){return{attributes:qa(e.attributes),droppedAttributesCount:0}}var Wa=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};function Ja(e,t){for(var n=[],r=function(e){var t,n,r=new Map;try{for(var o=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.")}(e),i=o.next();!i.done;i=o.next()){var a=i.value,s=r.get(a.resource);s||(s=new Map,r.set(a.resource,s));var c=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),u=s.get(c);u||(u=[],s.set(c,u)),u.push(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e).entries(),o=r.next();!o.done;){for(var i=Wa(o.value,2),a=i[0],s=[],c=i[1].values(),u=c.next();!u.done;){var l=u.value;if(l.length>0){var p=l.map((function(e){return Xa(e,t)}));s.push({scope:Va(l[0].instrumentationLibrary),spans:p,schemaUrl:l[0].instrumentationLibrary.schemaUrl})}u=c.next()}var d={resource:$a(a),scopeSpans:s,schemaUrl:void 0};n.push(d),o=r.next()}return n}var Ya={serializeRequest:function(e){var t=function(e,t){var n=function(e){var t,n;if(void 0===e)return Ga;var r=null===(t=e.useLongBits)||void 0===t||t,o=null!==(n=e.useHex)&&void 0!==n&&n;return{encodeHrTime:r?Ba:ja,encodeSpanContext:o?Fa:pn,encodeOptionalSpanContext:o?Fa:Ha}}(t);return{resourceSpans:Ja(e,n)}}(e,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},Qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Za=function(e){function t(t){return void 0===t&&(t={}),e.call(this,t,Ya,"application/json")||this}return Qa(t,e),t.prototype.getDefaultUrl=function(e){return"string"==typeof e.url?e.url:"http://localhost:4318/v1/traces"},t}(Ma);class es extends Za{constructor(e){super(e),f(this,"xhrTraceExporter"),this.xhrTraceExporter=new Za(p(l({},null!=e?e:{}),{headers:{}}))}send(e,t,n){super.send(e,t,(r=>{r.message.toLocaleLowerCase().includes("beacon")?this.xhrTraceExporter.send(e,t,(e=>{n(p(l({},r),{message:`${r.message} --- [XHR retry message: ${e.message}; code: ${e.code}].`,code:r.code,data:`${r.data} --- [XHR retry data: ${e.data}].`}))})):n(r)}))}}const ts=["click","input","submit"];function ns(){return!1}class rs extends kr{constructor(e={}){var t;super("user-interaction","1.0.0",e),f(this,"_spansData",new WeakMap),f(this,"_wrappedListeners",new WeakMap),f(this,"_eventsSpanMap",new WeakMap),f(this,"_eventNames"),f(this,"_shouldPreventSpanCreation"),this._eventNames=new Set(null!=(t=null==e?void 0:e.eventNames)?t:ts),this._shouldPreventSpanCreation="function"==typeof(null==e?void 0:e.shouldPreventSpanCreation)?e.shouldPreventSpanCreation:ns}init(){}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t){var n;const r=null==e?void 0:e.target,o=null==e?void 0:e.type;if(!(r instanceof HTMLElement)||!r.getAttribute||r.hasAttribute("disabled")||!this._allowEventName(o))return;const i=To(r,!0);try{const a=this.tracer.startSpan(o,{attributes:{"event.type":o,"event.tag":r.tagName,"event.xpath":i,"event.id":r.id,"event.text":null!=(n=r.textContent)?n:"","event.url":window.location.href,"viewport.width":window.innerWidth,"viewport.height":window.innerHeight}},t?Nt.setSpan(lt.active(),t):void 0);return e instanceof MouseEvent&&(a.setAttribute("event.x",e.clientX),a.setAttribute("event.y",e.clientY),a.setAttribute("event.relativeX",e.clientX/window.innerWidth),a.setAttribute("event.relativeY",e.clientY/window.innerHeight),"scroll"===o&&(a.setAttribute("event.scrollX",window.scrollX),a.setAttribute("event.scrollY",window.scrollY))),!0===this._shouldPreventSpanCreation(o,r,a)?void 0:(this._spansData.set(a,{taskCount:0}),a)}catch(e){this._diag.error("failed to start create new user interaction span",e)}}addPatchedListener(e,t,n,r){let o=this._wrappedListeners.get(n);o||(o=new Map,this._wrappedListeners.set(n,o));let i=o.get(t);return i||(i=new Map,o.set(t,i)),!i.has(e)&&(i.set(e,r),!0)}removePatchedListener(e,t,n){const r=this._wrappedListeners.get(n);if(!r)return;const o=r.get(t);if(!o)return;const i=o.get(e);return i&&(o.delete(e),0===o.size&&(r.delete(t),0===r.size&&this._wrappedListeners.delete(n))),i}_invokeListener(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){const e=this;let t=0;return n=>function(r,o,i){if(!o)return n.call(this,r,o,i);const a=i&&"object"==typeof i&&i.once,s=function(...s){let c;const u=s[0];if("mousemove"===(null==u?void 0:u.type)&&Date.now()-t<1e3/60)return n.call(this,r,o,i);t=Date.now(),u&&(c=e._eventsSpanMap.get(u)),a&&e.removePatchedListener(this,r,o);const l=e._createSpan(u,c);return l?(u&&e._eventsSpanMap.set(u,l),lt.with(Nt.setSpan(lt.active(),l),(()=>{const t=e._invokeListener(o,this,s);return l.end(),t}))):e._invokeListener(o,this,s)};return e.addPatchedListener(this,r,o,s)?n.call(this,r,s,i):void 0}}_patchRemoveEventListener(){const e=this;return t=>function(n,r,o){const i=e.removePatchedListener(this,n,r);return i?t.call(this,n,i,o):t.call(this,n,r,o)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}enable(){this._getPatchableEventTargets().forEach((e=>{Dr(e.addEventListener)&&(this._unwrap(e,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),Dr(e.removeEventListener)&&(this._unwrap(e,"removeEventListener"),this._diag.debug("removing previous patch from method removeEventListener")),this._wrap(e,"addEventListener",this._patchAddEventListener()),this._wrap(e,"removeEventListener",this._patchRemoveEventListener())}))}disable(){this._getPatchableEventTargets().forEach((e=>{Dr(e.addEventListener)&&this._unwrap(e,"addEventListener"),Dr(e.removeEventListener)&&this._unwrap(e,"removeEventListener")}))}}let os;const is="highlight.record",as=e=>{var t,n,r,o,i;if(void 0!==os)return void console.warn("OTEL already initialized. Skipping...");const a=e.backendUrl||"https://pub.highlight.run",s=[...null!=(n=null==(t=e.networkRecordingOptions)?void 0:t.urlBlocklist)?n:[],...ua],c=null!=(r=e.environment)?r:"production";os=new mo({resource:new ro({[Sn]:null!=(o=e.serviceName)?o:"highlight-browser",[An]:c,"highlight.project_id":e.projectId,"highlight.session_id":e.sessionSecureId})});const u=new es({url:e.otlpEndpoint+"/v1/traces",concurrencyLimit:10,compression:"gzip"}),l=new ss(u,{maxExportBatchSize:15});os.addSpanProcessor(l);let p=[new Ro({applyCustomAttributesOnSpan:{documentLoad:ms,documentFetch:ms,resourceFetch:ys}}),new rs];null!=(i=e.networkRecordingOptions)&&i.enabled&&(p.push(new ko({propagateTraceHeaderCorsUrls:_s(e.tracingOrigins),applyCustomAttributesOnSpan:(t,n,r)=>h(void 0,null,(function*(){var o,i,a;const s=t;if(!1===s.attributes[is])return;const c=s.attributes["http.url"],u=null!=(o=n.method)?o:"GET";if(t.updateName(ds(c,u,n.body)),!(r instanceof Response))return void t.setAttributes({"http.response.error":r.message,"http.response.status":r.status});fs(t,n.body,n.headers,e.networkRecordingOptions);const l=yield Sa(r,null==(i=e.networkRecordingOptions)?void 0:i.bodyKeysToRecord,null==(a=e.networkRecordingOptions)?void 0:a.networkBodyKeysToRedact);t.setAttribute("http.response.body",l)}))})),p.push(new Uo({propagateTraceHeaderCorsUrls:_s(e.tracingOrigins),applyCustomAttributesOnSpan:(t,n)=>{var r,o;const i=n;if(!1===t.attributes[is])return;const a=ds(i._url,i._method,n.responseText);t.updateName(a),fs(t,i._body,i._requestHeaders,e.networkRecordingOptions);const s=Ea(i._body,null==(r=e.networkRecordingOptions)?void 0:r.networkBodyKeysToRedact,null==(o=e.networkRecordingOptions)?void 0:o.bodyKeysToRecord,i._requestHeaders);t.setAttribute("http.request.body",s)}}))),function(e){var t,n,r=e.tracerProvider||Nt.getTracerProvider(),o=e.meterProvider||gt.getMeterProvider(),i=e.loggerProvider||Tr.getLoggerProvider();!function(e,t,n,r){for(var o=0,i=e.length;o<i;o++){var a=e[o];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}(null!==(n=null===(t=e.instrumentations)||void 0===t?void 0:t.flat())&&void 0!==n?n:[],r,o,i)}({instrumentations:p});const d=new fo;d.enable(),os.register({contextManager:d,propagator:new jn({propagators:[new Ut,new cs({backendUrl:a,otlpEndpoint:e.otlpEndpoint,tracingOrigins:e.tracingOrigins,urlBlocklist:s})]})})};class ss extends Jr{onEnd(e){!1!==e.attributes[is]&&super.onEnd(e)}}class cs extends $n{constructor(e){super(),f(this,"highlightEndpoints"),f(this,"tracingOrigins"),f(this,"urlBlocklist"),this.highlightEndpoints=[e.backendUrl,e.otlpEndpoint],this.tracingOrigins=e.tracingOrigins,this.urlBlocklist=e.urlBlocklist}inject(e,t,n){const r=Nt.getSpan(e);if(!r)return;const o=r.attributes["http.url"];"string"!=typeof o||hs(o,this.highlightEndpoints,this.tracingOrigins,this.urlBlocklist)?super.inject(e,t,n):r.setAttribute(is,!1)}}const us=()=>os.getTracer("highlight-browser"),ls=()=>Nt.getActiveSpan(),ps=()=>h(void 0,null,(function*(){void 0!==os&&(yield os.forceFlush(),os.shutdown())})),ds=(e,t,n)=>{var r,o,i;let a;const s=new URL(e),c=s.pathname;let u=`${t.toUpperCase()} - ${c}`;try{if(a="string"==typeof n?JSON.parse(n):n,a&&a.query){const e=Mi(a.query),t="OperationDefinition"===(null==(r=e.definitions[0])?void 0:r.kind)?null==(i=null==(o=e.definitions[0])?void 0:o.name)?void 0:i.value:void 0;t&&(u=`${t} (GraphQL: ${s.host+s.pathname})`)}}catch(e){}return u},fs=(e,t,n,r)=>{var o;const i="string"==typeof t?t:String(t);let a;try{a=t?JSON.parse(i):void 0,a.operationName&&e.setAttribute("graphql.operation.name",a.operationName)}catch(e){}const s=sa(null!=(o=null==r?void 0:r.networkHeadersToRedact)?o:[],n,null==r?void 0:r.headerKeysToRecord);e.setAttributes({"highlight.type":"http.request","http.request.headers":JSON.stringify(s),"http.request.body":i})},hs=(e,t,n,r)=>(null==r||!r.some((t=>e.toLowerCase().includes(t))))&&fa(e,t,n),ms=e=>{const t=e.events,n={unload:gs("unloadEventStart","unloadEventEnd",t),dom_interactive:gs("domInteractive","fetchStart",t),dom_content_loaded:gs("domContentLoadedEventEnd","domContentLoadedEventStart",t),dom_complete:gs("fetchStart","domComplete",t),load_event:gs("loadEventStart","loadEventEnd",t),first_paint:gs("fetchStart","firstPaint",t),first_contentful_paint:gs("fetchStart","firstContentfulPaint",t),domain_lookup:gs("domainLookupStart","domainLookupEnd",t),connect:gs("connectStart","connectEnd",t),request:gs("requestStart","requestEnd",t),response:gs("responseStart","responseEnd",t)};Object.entries(n).forEach((([t,n])=>{n>0&&(e.setAttribute(`timings.${t}.ns`,n),e.setAttribute(`timings.${t}.readable`,vs(n)))}))};function gs(e,t,n){const r=n.find((t=>t.name===e)),o=n.find((e=>e.name===t));if(!r||!o)return 0;const i=1e9*r.time[0]+r.time[1];return 1e9*o.time[0]+o.time[1]-i}const ys=(e,t)=>{const n={domain_lookup:1e6*(t.domainLookupEnd-t.domainLookupStart),connect:1e6*(t.connectEnd-t.connectStart),request:1e6*(t.responseEnd-t.requestStart),response:1e6*(t.responseEnd-t.responseStart)};Object.entries(n).forEach((([t,n])=>{n>0&&(e.setAttribute(`timings.${t}.ns`,n),e.setAttribute(`timings.${t}.readable`,vs(n)))}))},vs=e=>e>=36e11?`${Number((e/36e11).toFixed(1))}h`:e>=6e10?`${Number((e/6e10).toFixed(1))}m`:e>=1e9?`${Number((e/1e9).toFixed(1))}s`:e>=1e6?`${Number((e/1e6).toFixed(1))}ms`:e>=1e3?`${Number((e/1e3).toFixed(1))}µs`:`${Number(e.toFixed(1))}ns`,_s=e=>!0===e?[/localhost/,/^\//,new RegExp(window.location.host)]:Array.isArray(e)?e.map((e=>"string"==typeof e?new RegExp(e):e)):/^$/,Es=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];var bs,Ts;!function(e){e.DeviceMemory="DeviceMemory",e.ViewportHeight="ViewportHeight",e.ViewportWidth="ViewportWidth",e.ScreenHeight="ScreenHeight",e.ScreenWidth="ScreenWidth",e.ViewportArea="ViewportArea"}(bs||(bs={})),function(e){e.Device="Device",e.WebVital="WebVital",e.Performance="Performance",e.Frontend="Frontend",e.Backend="Backend"}(Ts||(Ts={}));class As{constructor(e){var t,n;f(this,"disableConsoleRecording"),f(this,"reportConsoleErrors"),f(this,"enablePromisePatch"),f(this,"consoleMethodsToRecord"),f(this,"listeners"),f(this,"errors"),f(this,"messages"),f(this,"options"),f(this,"hasNetworkRecording",!0),f(this,"disableNetworkRecording"),f(this,"enableRecordingNetworkContents"),f(this,"xhrNetworkContents"),f(this,"fetchNetworkContents"),f(this,"disableRecordingWebSocketContents"),f(this,"webSocketNetworkContents"),f(this,"webSocketEventContents"),f(this,"tracingOrigins"),f(this,"networkHeadersToRedact"),f(this,"networkBodyKeysToRedact"),f(this,"networkBodyKeysToRecord"),f(this,"networkHeaderKeysToRecord"),f(this,"lastNetworkRequestTimestamp"),f(this,"urlBlocklist"),f(this,"highlightEndpoints"),f(this,"requestResponseSanitizer"),this.options=e,this.disableConsoleRecording=!!e.disableConsoleRecording,this.reportConsoleErrors=null!=(t=e.reportConsoleErrors)&&t,this.enablePromisePatch=null==(n=e.enablePromisePatch)||n,this.consoleMethodsToRecord=e.consoleMethodsToRecord||[...Es],this.listeners=[],this.errors=[],this.messages=[],this.lastNetworkRequestTimestamp=0}isListening(){return this.listeners.length>0}startListening(){if(this.isListening())return;const e=this;this.disableConsoleRecording||this.listeners.push(function(e,t){const n=t.logger;let r;r=window[n];const o=[];if(t.level.includes("error")&&window){const n=n=>{const{message:r,error:o}=n;let i=[];o&&(i=I.parse(o));const a=[D(r,t.stringifyOptions)];e({type:"Error",trace:i,time:Date.now(),value:a})};window.addEventListener("error",n),o.push((()=>{window&&window.removeEventListener("error",n)}))}for(const e of t.level)o.push(i(r,e));return()=>{o.forEach((e=>e()))};function i(n,r){return n[r]?function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}(n,r,(n=>(...o)=>{n.apply(this,o);try{const n=I.parse(new Error),i=t.serializeConsoleAttributes?o.map((e=>"object"==typeof e?D(e,t.stringifyOptions):e)):o.filter((e=>"object"!=typeof e)).map((e=>`${e}`));e({type:r,trace:n.slice(1),value:i,attributes:D(o.filter((e=>"object"==typeof e)).reduce(((e,t)=>l(l({},e),t)),{}),t.stringifyOptions),time:Date.now()})}catch(e){n("highlight logger error:",e,...o)}})):()=>{}}}((t=>{var n,r,o;if(this.reportConsoleErrors&&("Error"===t.type||"error"===t.type)&&t.value&&t.trace){const i=B(t.value);if(G.includes(i)||V.some((e=>i.includes(e))))return;e.errors.push({event:i,type:"console.error",url:window.location.href,source:null!=(n=t.trace[0])&&n.fileName?t.trace[0].fileName:"",lineNumber:null!=(r=t.trace[0])&&r.lineNumber?t.trace[0].lineNumber:0,columnNumber:null!=(o=t.trace[0])&&o.columnNumber?t.trace[0].columnNumber:0,stackTrace:t.trace,timestamp:(new Date).toISOString()})}e.messages.push(t)}),{level:this.consoleMethodsToRecord,logger:"console",stringifyOptions:{depthOfLimit:10,numOfKeysLimit:100,stringLengthLimit:1e3}})),this.listeners.push(F((t=>{G.includes(t.event)||V.some((e=>t.event.includes(e)))||e.errors.push(t)}),{enablePromisePatch:this.enablePromisePatch})),this.listeners.push(ps),As.setupNetworkListener(this,this.options)}stopListening(){this.listeners.forEach((e=>e())),this.listeners=[]}static setupNetworkListener(e,t){var n,r,o,i,a,s,c,u,l,p,f,h;const m=(null==t?void 0:t.backendUrl)||"https://pub.highlight.run",g=t.otlpEndpoint||"https://otel.highlight.io";e.highlightEndpoints=[m,g],e.xhrNetworkContents=[],e.fetchNetworkContents=[],e.webSocketNetworkContents=[],e.webSocketEventContents=[],e.networkHeadersToRedact=[],e.urlBlocklist=[],e.tracingOrigins=t.tracingOrigins||[],void 0!==(null==t?void 0:t.disableNetworkRecording)?(e.disableNetworkRecording=null==t?void 0:t.disableNetworkRecording,e.enableRecordingNetworkContents=!1,e.disableRecordingWebSocketContents=!0,e.networkHeadersToRedact=[],e.networkBodyKeysToRedact=[],e.urlBlocklist=[],e.networkBodyKeysToRecord=[]):"boolean"==typeof(null==t?void 0:t.networkRecording)?(e.disableNetworkRecording=!t.networkRecording,e.enableRecordingNetworkContents=!1,e.disableRecordingWebSocketContents=!0,e.networkHeadersToRedact=[],e.networkBodyKeysToRedact=[],e.urlBlocklist=[]):(void 0!==(null==(n=t.networkRecording)?void 0:n.enabled)?e.disableNetworkRecording=!t.networkRecording.enabled:e.disableNetworkRecording=!1,e.enableRecordingNetworkContents=(null==(r=t.networkRecording)?void 0:r.recordHeadersAndBody)||!1,e.disableRecordingWebSocketContents=(null==(o=t.networkRecording)?void 0:o.disableWebSocketEventRecordings)||!1,e.networkHeadersToRedact=(null==(a=null==(i=t.networkRecording)?void 0:i.networkHeadersToRedact)?void 0:a.map((e=>e.toLowerCase())))||[],e.networkBodyKeysToRedact=(null==(c=null==(s=t.networkRecording)?void 0:s.networkBodyKeysToRedact)?void 0:c.map((e=>e.toLowerCase())))||[],e.urlBlocklist=(null==(l=null==(u=t.networkRecording)?void 0:u.urlBlocklist)?void 0:l.map((e=>e.toLowerCase())))||[],e.urlBlocklist=[...e.urlBlocklist,...ua],e.requestResponseSanitizer=null==(p=t.networkRecording)?void 0:p.requestResponseSanitizer,e.networkHeaderKeysToRecord=null==(f=t.networkRecording)?void 0:f.headerKeysToRecord,e.networkHeaderKeysToRecord&&(e.networkHeadersToRedact=[],e.networkHeaderKeysToRecord=e.networkHeaderKeysToRecord.map((e=>e.toLocaleLowerCase()))),e.networkBodyKeysToRecord=null==(h=t.networkRecording)?void 0:h.bodyKeysToRecord,e.networkBodyKeysToRecord&&(e.networkBodyKeysToRedact=[],e.networkBodyKeysToRecord=e.networkBodyKeysToRecord.map((e=>e.toLocaleLowerCase())))),!e.disableNetworkRecording&&e.enableRecordingNetworkContents&&e.listeners.push((({xhrCallback:e,fetchCallback:t,webSocketRequestCallback:n,webSocketEventCallback:r,disableWebSocketRecording:o,bodyKeysToRedact:i,highlightEndpoints:a,tracingOrigins:s,urlBlocklist:c,bodyKeysToRecord:u})=>{const l=ya(e,a,s,c,i,u),p=ba(t,a,s,c,i,u),f=o?()=>{}:((e,t,n)=>{const r=window._highlightWebSocketRequestCallback;window._highlightWebSocketRequestCallback=e;const o=window._highlightWebSocketEventCallback;return window._highlightWebSocketEventCallback=e=>{const r=e,{message:o,size:i}=r,a=d(r,["message","size"]),s=n.some((t=>e.name.toLowerCase().includes(t)))?a:e;t(s)},()=>{window._highlightWebSocketRequestCallback=r,window._highlightWebSocketEventCallback=o}})(n,r,c);return()=>{l(),p(),f()}})({xhrCallback:t=>{e.xhrNetworkContents.push(t)},fetchCallback:t=>{e.fetchNetworkContents.push(t)},webSocketRequestCallback:t=>{e.webSocketNetworkContents&&e.webSocketNetworkContents.push(t)},webSocketEventCallback:t=>{e.webSocketEventContents.push(t)},disableWebSocketRecording:e.disableRecordingWebSocketContents,bodyKeysToRedact:e.networkBodyKeysToRedact,highlightEndpoints:e.highlightEndpoints,tracingOrigins:e.tracingOrigins,urlBlocklist:e.urlBlocklist,bodyKeysToRecord:e.networkBodyKeysToRecord}))}static getRecordedNetworkResources(e,t){var n,r;let o=[],i=[];if(!e.disableNetworkRecording){const i=(null==(n=null==window?void 0:window.performance)?void 0:n.timeOrigin)||0;o=performance.getEntriesByType("resource");const a=2*(t-i);if(o=o.filter((t=>!(t.responseEnd<e.lastNetworkRequestTimestamp)&&fa(t.name,e.highlightEndpoints,e.tracingOrigins))).map((e=>p(l({},e.toJSON()),{offsetStartTime:e.startTime-a,offsetResponseEnd:e.responseEnd-a,offsetFetchStart:e.fetchStart-a}))),e.lastNetworkRequestTimestamp=(null==(r=o.at(-1))?void 0:r.responseEnd)||e.lastNetworkRequestTimestamp,e.enableRecordingNetworkContents){const t={headersToRedact:e.networkHeadersToRedact,headersToRecord:e.networkHeaderKeysToRecord,requestResponseSanitizer:e.requestResponseSanitizer};o=da(o,e.xhrNetworkContents,"xmlhttprequest",t),o=da(o,e.fetchNetworkContents,"fetch",t)}}return e.disableRecordingWebSocketContents||(i=e.webSocketNetworkContents||[]),[...o,...i]}static getRecordedWebSocketEvents(e){let t=[];return!e.disableNetworkRecording&&!e.disableRecordingWebSocketContents&&(t=e.webSocketEventContents),t}static clearRecordedNetworkResources(e){e.disableNetworkRecording||(e.xhrNetworkContents=[],e.fetchNetworkContents=[],e.webSocketNetworkContents=[],e.webSocketEventContents=[],performance.clearResourceTimings())}}const Ss=()=>{var e;var t="";const n="undefined"!=typeof window&&(null==(e=window.crypto)?void 0:e.getRandomValues),r=new Uint32Array(28);n&&window.crypto.getRandomValues(r);for(let e=0;e<28;e++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n?r[e]%62:Math.floor(62*Math.random()));return t};function ws(e){var t;e.on&&null!=(t=e.webContents)&&t.send&&(e.on("focus",(()=>{e.webContents.send("highlight.run",{visible:!0})})),e.on("blur",(()=>{e.webContents.send("highlight.run",{visible:!1})})),e.on("close",(()=>{e.webContents.send("highlight.run",{visible:!1})})))}const Os=({next:e,payload:t})=>{if("undefined"!=typeof window&&"undefined"!=typeof document&&"H"in window)if("track"===t.obj.type){const e=t.obj.event,n=t.obj.properties;window.H.track(e,n)}else if("identify"===t.obj.type){const e=t.obj.userId;if(null!=e&&e.length){const n=t.obj.traits;window.H.identify(e,n)}}e(t)},Rs=()=>{if("undefined"!=typeof window){if(void 0!==window._highlightFetchPatch)return;window._originalFetch=window.fetch,window._fetchProxy=(e,t)=>window._originalFetch(e,t),window._highlightFetchPatch=(e,t)=>window._fetchProxy.call(window||global,e,t),window.fetch=window._highlightFetchPatch}},Cs=()=>null,Ns=()=>{if("undefined"!=typeof window){if(void 0!==window._highlightWebSocketRequestCallback)return;window._highlightWebSocketRequestCallback=Cs,window._highlightWebSocketEventCallback=Cs;const e=new Proxy(window.WebSocket,{construct(e,t){const[,n]=ma(),r=new e(...t),o=e=>{window._highlightWebSocketRequestCallback({socketId:n,initiatorType:"websocket",type:"open",name:r.url,startTimeAbs:performance.timeOrigin+e.timeStamp})},i=e=>{window._highlightWebSocketRequestCallback({socketId:n,initiatorType:"websocket",type:"close",name:r.url,responseEndAbs:performance.timeOrigin+e.timeStamp}),r.removeEventListener("open",o),r.removeEventListener("error",s),r.removeEventListener("message",a),r.removeEventListener("close",i)},a=e=>{const{data:t}=e,o="string"==typeof t?e.data:void 0;let i;i="string"==typeof t?t.length:t instanceof Blob?t.size:t.byteLength||0,window._highlightWebSocketEventCallback({socketId:n,type:"received",name:r.url,timeStamp:performance.timeOrigin+e.timeStamp,size:i,message:o})},s=e=>{window._highlightWebSocketEventCallback({socketId:n,type:"error",name:r.url,timeStamp:performance.timeOrigin+e.timeStamp,size:0})};r.addEventListener("open",o),r.addEventListener("error",s),r.addEventListener("message",a),r.addEventListener("close",i);const c=new Proxy(r.send,{apply:function(e,t,o){const i=o[0],a="string"==typeof i?i:void 0;let s;s="string"==typeof i?i.length:i instanceof Blob?i.size:i.byteLength||0,window._highlightWebSocketEventCallback({socketId:n,type:"sent",name:r.url,timeStamp:performance.timeOrigin+performance.now(),size:s,message:a}),e.apply(t,o)}});return r.send=c,r}});window.WebSocket=e}},Ls=()=>{const e={end:()=>{},spanContext:()=>({traceId:"",spanId:"",traceFlags:0}),setAttribute:(t,n)=>e,setAttributes:t=>e,addEvent:(t,n,r)=>e,addLinks:t=>e,setStatus:t=>e,recordException:()=>{},addLink:()=>e,updateName:()=>e,isRecording:()=>!1};return e};var Is;!function(e){e.Device="Device",e.WebVital="WebVital",e.Frontend="Frontend",e.Backend="Backend"}(Is||(Is={}));const Ps=(e,t)=>{console.warn(`highlight.run warning: (${e}): `,t)};let ks,xs,Ds,Ms,Us=[],Bs=!1;const js={options:void 0,init:(e,t)=>{var r,o,i,a,s,c,u,d;try{if(js.options=t,"undefined"==typeof window||"undefined"==typeof document)return;if(!e)return void console.info("Highlight is not initializing because projectID was passed undefined.");null!=t&&t.skipCookieSessionDataLoad?Wi(!1):function(){const e=zi.getItem(ea.SESSION_ID);ra(e);const t=ta(e),n=zi.getItem(t);try{ia(JSON.parse(n))}catch(e){}}();let f=oa(),g=Ss();if(null!=f&&f.sessionSecureID&&(g=f.sessionSecureID),Bs)return{sessionSecureID:g};Bs=!0,Rs(),Ns(),n.e(387).then(n.bind(n,387)).then((n=>h(void 0,[n],(function*({Highlight:n,setupBrowserTracing:r,getTracer:o}){var i,a,s;r({otlpEndpoint:null!=(i=null==t?void 0:t.otlpEndpoint)?i:"https://otel.highlight.io",projectId:e,sessionSecureId:g,environment:null!=(a=null==t?void 0:t.environment)?a:"production",networkRecordingOptions:"object"==typeof(null==t?void 0:t.networkRecording)?t.networkRecording:void 0,tracingOrigins:null==t?void 0:t.tracingOrigins,serviceName:null!=(s=null==t?void 0:t.serviceName)?s:"highlight-browser"}),Ms=o,xs=new n(y,Ds),Rs(),Ns(),null!=t&&t.manualStart||(yield xs.initialize())}))));const y=p(l({},t),{organizationID:e,firstloadVersion:"9.7.1",environment:(null==t?void 0:t.environment)||"production",appVersion:null==t?void 0:t.version,sessionSecureID:g});return Ds=new As(y),null!=t&&t.manualStart||Ds.startListening(),!(null!=(o=null==(r=null==t?void 0:t.integrations)?void 0:r.mixpanel)&&o.disabled)&&null!=(a=null==(i=null==t?void 0:t.integrations)?void 0:i.mixpanel)&&a.projectToken&&(({projectToken:e})=>{if(window.mixpanel)return;var t,n,r;document,(t=window.mixpanel||[]).__SV||(window.mixpanel=t,t._i=[],t.init=function(e,o,i){function a(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var s=t;for(void 0!==i?s=t[i]=[]:i="mixpanel",s.people=s.people||[],s.toString=function(e){var t="mixpanel";return"mixpanel"!==i&&(t+="."+i),e||(t+=" (stub)"),t},s.people.toString=function(){return s.toString(1)+".people (stub)"},n="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),r=0;r<n.length;r++)a(s,n[r]);var c="set set_once union unset remove delete".split(" ");s.get_group=function(){function e(e){t[e]=function(){call2_args=arguments,call2=[e].concat(Array.prototype.slice.call(call2_args,0)),s.push([n,call2])}}for(var t={},n=["get_group"].concat(Array.prototype.slice.call(arguments,0)),r=0;r<c.length;r++)e(c[r]);return t},t._i.push([e,o,i])},t.__SV=1.2);const o=document.createElement("script");o.src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",document.head.appendChild(o),o.addEventListener("load",(()=>{var t;null==(t=window.mixpanel)||t.init(e)}))})(t.integrations.mixpanel),!(null!=(c=null==(s=null==t?void 0:t.integrations)?void 0:s.amplitude)&&c.disabled)&&null!=(d=null==(u=null==t?void 0:t.integrations)?void 0:u.amplitude)&&d.apiKey&&m(t.integrations.amplitude),{sessionSecureID:g}}catch(e){Ps("init",e)}},snapshot:e=>h(void 0,null,(function*(){try{if(xs&&xs.ready)return yield xs.snapshot(e)}catch(e){Ps("snapshot",e)}})),addSessionFeedback:({verbatim:e,userName:t,userEmail:n,timestampOverride:r})=>{try{js.onHighlightReady((()=>xs.addSessionFeedback({verbatim:e,timestamp:r||(new Date).toISOString(),user_email:n,user_name:t})))}catch(e){Ps("error",e)}},consumeError:(e,t,n)=>{try{js.onHighlightReady((()=>xs.consumeCustomError(e,t,JSON.stringify(n))))}catch(e){Ps("error",e)}},consume:(e,t)=>{try{js.onHighlightReady((()=>xs.consumeError(e,t)))}catch(e){Ps("error",e)}},error:(e,t)=>{try{js.onHighlightReady((()=>xs.pushCustomError(e,JSON.stringify(t))))}catch(e){Ps("error",e)}},track:(e,t={})=>{var n,r,o,i,a,s,c,u,d,f,h;try{js.onHighlightReady((()=>xs.addProperties(p(l({},t),{event:e}))));const m=null==xs?void 0:xs.getCurrentSessionURL();null!=(o=null==(r=null==(n=js.options)?void 0:n.integrations)?void 0:r.mixpanel)&&o.disabled||null!=(i=window.mixpanel)&&i.track&&window.mixpanel.track(e,p(l({},t),{highlightSessionURL:m})),null!=(c=null==(s=null==(a=js.options)?void 0:a.integrations)?void 0:s.amplitude)&&c.disabled||null!=(u=window.amplitude)&&u.getInstance&&window.amplitude.getInstance().logEvent(e,p(l({},t),{highlightSessionURL:m})),null!=(h=null==(f=null==(d=js.options)?void 0:d.integrations)?void 0:f.intercom)&&h.disabled||window.Intercom&&window.Intercom("trackEvent",e,t)}catch(e){Ps("track",e)}},start:e=>{"Recording"!==(null==xs?void 0:xs.state)||null!=e&&e.forceNew?(Ds.startListening(),js.onHighlightReady((()=>h(void 0,null,(function*(){yield xs.initialize(e)}))),{waitForReady:!1})):null!=e&&e.silent||console.warn("Highlight is already recording. Please `H.stop()` the current session before starting a new one.")},stop:e=>{"Recording"!==(null==xs?void 0:xs.state)?null!=e&&e.silent||console.warn("Highlight is already stopped. Please call `H.start()`."):js.onHighlightReady((()=>xs.stopRecording(!0)))},identify:(e,t={})=>{var n,r,o,i,a,s,c,u;try{js.onHighlightReady((()=>xs.identify(e,t)))}catch(e){Ps("identify",e)}if(null!=(o=null==(r=null==(n=js.options)?void 0:n.integrations)?void 0:r.mixpanel)&&o.disabled||null!=(i=window.mixpanel)&&i.identify&&(window.mixpanel.identify("string"==typeof(null==t?void 0:t.email)?null==t?void 0:t.email:e),t&&(window.mixpanel.track("identify",t),window.mixpanel.people.set(t))),(null==(c=null==(s=null==(a=js.options)?void 0:a.integrations)?void 0:s.amplitude)||!c.disabled)&&null!=(u=window.amplitude)&&u.getInstance&&(window.amplitude.getInstance().setUserId(e),Object.keys(t).length>0)){const e=Object.keys(t).reduce(((e,n)=>(e.set(n,t[n]),e)),new window.amplitude.Identify);window.amplitude.getInstance().identify(e)}},metrics:e=>{try{js.onHighlightReady((()=>xs.recordMetric(e.map((e=>p(l({},e),{category:Is.Frontend}))))))}catch(e){Ps("metrics",e)}},startSpan:(e,t,n,r)=>{const o="function"==typeof Ms?Ms():void 0;if(!o){const e=Ls();return void 0===r&&void 0===n?t(e):void 0===r?n(e):r(e)}const i=(e,t)=>{const n=t(e);return n instanceof Promise?n.finally((()=>e.end())):(e.end(),n)};return void 0===r&&void 0===n?o.startActiveSpan(e,(e=>i(e,t))):void 0===r?o.startActiveSpan(e,t,(e=>i(e,n))):o.startActiveSpan(e,t,n,(e=>i(e,r)))},startManualSpan:(e,t,n,r)=>{const o="function"==typeof Ms?Ms():void 0;if(!o){const e=Ls();return void 0===r&&void 0===n?t(e):void 0===r?n(e):r(e)}return void 0===r&&void 0===n?o.startActiveSpan(e,t):void 0===r?o.startActiveSpan(e,t,n):o.startActiveSpan(e,t,n,r)},getSessionURL:()=>new Promise(((e,t)=>{js.onHighlightReady((()=>{const n=xs.sessionData.sessionSecureID,r=oa(n);r?e(`https://${b}/${r.projectID}/sessions/${n}`):t(new Error(`Unable to get session URL: ${n}`))}))})),getSessionDetails:()=>new Promise(((e,t)=>{js.onHighlightReady((()=>h(void 0,null,(function*(){try{const t=yield js.getSessionURL();if(!t)throw new Error("Could not get session URL");const n=xs.sessionData.sessionSecureID,r=oa(n),o=null==r?void 0:r.sessionStartTime;if(!o)throw new Error("Could not get session start timestamp");const i=(new Date).getTime(),a=new URL(t),s=new URL(t);s.searchParams.set("ts",((i-o)/1e3).toString()),e({url:a.toString(),urlWithTimestamp:s.toString(),sessionSecureID:n})}catch(e){t(e)}}))))})),getRecordingState:()=>{var e;return null!=(e=null==xs?void 0:xs.state)?e:"NotRecording"},onHighlightReady:(e,t)=>{if(xs&&xs.ready)return void e();if(Us.push({options:t,func:e}),void 0!==ks)return;const n=()=>{Us=Us.filter((e=>{var t;return!xs||!1!==(null==(t=e.options)?void 0:t.waitForReady)&&!xs.ready||(e.func(),!1)})),ks=void 0,Us.length>0&&(ks=setTimeout(n,200))};n()}};"undefined"!=typeof window&&(window.H=js),(()=>{var e,t;"undefined"!=typeof chrome&&null!=(e=null==chrome?void 0:chrome.runtime)&&e.onMessage&&(null==(t=null==chrome?void 0:chrome.runtime)||t.onMessage.addListener(((e,t,n)=>{const r=e.action;switch(console.log(`[highlight] received '${r}' event from extension.`),r){case"init":js.init(1,{debug:!0}),js.getSessionURL().then((e=>{n({url:e})}));break;case"stop":js.stop(),n({success:!0})}return!0})))})(),Rs(),Ns();const Fs={reset:()=>{Bs=!1,xs=void 0,Us=[],ks=void 0,Ds=void 0},setHighlightObj:e=>{xs=e}}},324:(e,t,n)=>{n.r(t),n.d(t,{H:()=>r.A,HighlightSegmentMiddleware:()=>r.B,MetricCategory:()=>r.C,__testing:()=>r._,configureElectronHighlight:()=>r.z});var r=n(767)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".index.umd.min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="FormoAnalytics:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==n||p.getAttribute("data-webpack")==t+i){s=p;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={23:0,913:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,c]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);c&&c(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkFormoAnalytics=self.webpackChunkFormoAnalytics||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=o(156);return i.FormoAnalytics})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("FormoAnalytics",[],t):"object"==typeof exports?exports.FormoAnalytics=t():e.FormoAnalytics=t()}(self,(()=>(()=>{"use strict";var e,t,n={20:(e,t,n)=>{var r=n(540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var E=_.prototype=new v;E.constructor=_,m(E,y.prototype),E.isPureReactComponent=!0;var b=Array.isArray,T=Object.prototype.hasOwnProperty,A={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:A.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+C(c,0):i,b(a)?(o="",null!=e&&(o=e.replace(R,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",b(e))for(var u=0;u<e.length;u++){var l=i+C(s=e[u],u);c+=N(s,t,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=N(s=s.value,t,o,l=i+C(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},k={transition:null},x={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:k,ReactCurrentOwner:A};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=_,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)T.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},540:(e,t,n)=>{e.exports=n(287)},848:(e,t,n)=>{e.exports=n(20)},879:function(e,t,n){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},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormoAnalytics=void 0;var s=a(n(425)),c=n(450),u=n(266),l=n(324),p=function(){function e(e,t){var n;this.apiKey=e,this.projectId=t,this._registeredProviderListeners={},this.sessionIdKey=c.SESSION_STORAGE_ID_KEY,this.timezoneToCountry=c.COUNTRY_LIST,this.config={token:this.apiKey};var r=(null===window||void 0===window?void 0:window.ethereum)||(null===(n=window.web3)||void 0===n?void 0:n.currentProvider);r&&(console.log("FormoAnalytics: Provider is set"),this.trackProvider(r))}return e.init=function(t,n){return o(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){return r={token:t},(o=new e(t,n)).config=r,[2,o]}))}))},Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:!1,configurable:!0}),e.prototype.identifyUser=function(e){this.trackEvent("identify",e)},e.prototype.getSessionId=function(){return this.getCookieValue(this.sessionIdKey)||this.generateSessionId()},e.prototype.setSessionCookie=function(e){var t=this.getSessionId(),n="".concat(this.sessionIdKey,"=").concat(t,"; Max-Age=1800; path=/; secure");e&&(n+="; domain=".concat(e)),document.cookie=n},e.prototype.generateSessionId=function(){return crypto.randomUUID()},e.prototype.getCookieValue=function(e){return document.cookie.split(";").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return e[r.trim()]=o,e}),{})[e]},e.prototype.trackEvent=function(e,t){return o(this,void 0,void 0,(function(){var n,r,a,c,p,d,f=this;return i(this,(function(h){switch(h.label){case 0:return n=3,r=0,this.setSessionCookie(this.config.domain),a=this.buildApiUrl(),[4,this.getCurrentWallet()];case 1:return c=h.sent(),console.log("address: ",c),p={project_id:this.projectId,address:c,session_id:this.getSessionId(),timestamp:(new Date).toISOString(),action:e,version:"1",payload:(0,u.isNotEmpty)(t)?this.maskSensitiveData(t):t},d=function(){return o(f,void 0,void 0,(function(){var t,o,c;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,s.default.post(a,JSON.stringify(p),{headers:{"Content-Type":"application/json"}})];case 1:if(!((t=i.sent()).status>=200&&t.status<300))throw new Error("Failed with status: ".concat(t.status));return console.log("Event sent successfully:",e),[3,3];case 2:return o=i.sent(),++r<=n?(c=1e3*Math.pow(2,r),console.error("Attempt ".concat(r,': Retrying event "').concat(e,'" in ').concat(c/1e3," seconds...")),setTimeout(d,c)):(l.H.consumeError(o,"Request data: ".concat(JSON.stringify(p))),console.error('Event "'.concat(e,'" failed after ').concat(n," attempts. Error: ").concat(o))),[3,3];case 3:return[2]}}))}))},[4,d()];case 2:return h.sent(),[2]}}))}))},e.prototype.maskSensitiveData=function(e){if(null==e)return console.warn("Data is null or undefined, returning null"),null;if("string"==typeof e){var t=void 0;try{t=JSON.parse(e)}catch(e){return console.error("Failed to parse JSON:",e),null}var n=["username","user","user_id","password","email","phone"],o=r({},t);return n.forEach((function(e){e in o&&(o[e]="********")})),o}if("object"==typeof e){n=["username","user","user_id","password","email","phone"];var i=r({},e);return n.forEach((function(e){e in i&&(i[e]="********")})),i}return e},e.prototype.trackPageHit=function(){var e=this;if(!(window.__nightmare||window.navigator.webdriver||window.Cypress)){var t,n;try{var r=Intl.DateTimeFormat().resolvedOptions().timeZone;t=this.timezoneToCountry[r],n=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||"en"}catch(e){console.error("Error resolving timezone or language:",e)}setTimeout((function(){var r=new URL(window.location.href),o=new URLSearchParams(r.search);e.trackEvent("page_hit",{"user-agent":window.navigator.userAgent,locale:n,location:t,referrer:document.referrer,pathname:window.location.pathname,href:window.location.href,utm_source:o.get("utm_source"),utm_medium:o.get("utm_medium"),utm_campaign:o.get("utm_campaign"),ref:o.get("ref")})}),300)}},e.prototype.trackProvider=function(e){var t;if(console.log("Provider: ",e),console.log("this._provider: ",this._provider),e!==this._provider){if(this.currentChainId=void 0,this.currentConnectedAccount=void 0,this._provider){for(var n=0,r=Object.keys(this._registeredProviderListeners);n<r.length;n++){var o=r[n];this._provider.removeListener(o,this._registeredProviderListeners[o]),delete this._registeredProviderListeners[o]}this._originalRequest&&!1!==(null===(t=Object.getOwnPropertyDescriptor(this._provider,"request"))||void 0===t?void 0:t.writable)&&(this._provider.request=this._originalRequest)}this._provider=e,this._originalRequest=null==e?void 0:e.request,this.getCurrentWallet(),this.registerAccountsChangedListener(),this.registerChainChangedListener(),this.trackSigning()}else console.log("provider === this._provider")},e.prototype.registerChainChangedListener=function(){var e,t=this;console.log("registerChainChangedListener is emitted");var n=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.onChainChanged(e[0])};null===(e=this.provider)||void 0===e||e.on("chainChanged",n),this._registeredProviderListeners.chainChanged=n},e.prototype.handleAccountDisconnected=function(){if(this.currentConnectedAccount){var e={account:this.currentConnectedAccount,chainId:this.currentChainId};return this.currentChainId=void 0,this.currentConnectedAccount=void 0,this.trackEvent(c.Event.DISCONNECT,e)}},e.prototype.onChainChanged=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:if(this.currentChainId=parseInt(e).toString(),this.currentConnectedAccount)return[3,4];if(!this.provider)return console.error("error","FormoAnalytics::onChainChanged: provider not found. CHAIN_CHANGED not reported"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.provider.request({method:"eth_requestAccounts"})];case 2:return(t=r.sent())&&0!==t.length?(this.currentConnectedAccount=t[0],[3,4]):(console.error("error","FormoAnalytics::onChainChanged: unable to get account. eth_requestAccounts returned empty"),[2]);case 3:return 4001!==(n=r.sent()).code?(console.error("error","FormoAnalytics::onChainChanged: unable to get account. eth_requestAccounts threw an error",n),[2]):[3,4];case 4:return[2,this.chain({chainId:this.currentChainId,account:this.currentConnectedAccount})]}}))}))},e.prototype.onAccountsChanged=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){return e.length>0?(t=e[0])!==this.currentConnectedAccount&&this.handleAccountConnected(t):this.handleAccountDisconnected(),[2]}))}))},e.prototype.registerAccountsChangedListener=function(){var e,t,n=this;console.log("registerAccountsChangedListener is emitted");var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.onAccountsChanged(e[0])};null===(e=this._provider)||void 0===e||e.on("accountsChanged",r),this._registeredProviderListeners.accountsChanged=r;var o=this.handleAccountDisconnected.bind(this);null===(t=this._provider)||void 0===t||t.on("disconnect",o),this._registeredProviderListeners.disconnect=o},e.prototype.trackSigning=function(){var e,t=this;if(!this.provider)return console.error("error","FormoAnalytics::_trackSigning: provider not found"),!1;if(console.log("trackSigning is emitted"),!1===(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable))return console.error("warning","FormoAnalytics::_trackSigning: provider.request is not writable"),!1;var n=this.provider.request.bind(this.provider);return this.provider.request=function(e){return o(t,[e],void 0,(function(e){var t=e.method,r=e.params;return i(this,(function(e){return Array.isArray(r)&&(["signTypedData_v4","eth_sign"].includes(t)&&this.trackEvent(c.Event.SIGNING_TRIGGERED,{account:r[0],message:r[1]}),"personal_sign"===t&&this.trackEvent(c.Event.SIGNING_TRIGGERED,{message:r[0],account:r[1]})),[2,n({method:t,params:r})]}))}))},!0},e.prototype.getCurrentChainId=function(){return o(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return this.provider||console.error("FormoAnalytics::getCurrentChainId: provider not set"),[4,null===(t=this.provider)||void 0===t?void 0:t.request({method:"eth_chainId"})];case 1:return(e=n.sent())||console.error("FormoAnalytics::getCurrentChainId: chainIdHex is: ".concat(e)),[2,parseInt(e,16).toString()]}}))}))},e.prototype.handleAccountConnected=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return e===this.currentConnectedAccount?[2]:(this.currentConnectedAccount=e,t=this,[4,this.getCurrentChainId()]);case 1:return t.currentChainId=n.sent(),this.connect({chainId:this.currentChainId,address:e}),[2]}}))}))},e.prototype.getCurrentWallet=function(){return o(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(!this.provider)return console.warn("FormoAnalytics::getCurrentWallet: the provider is not set"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.provider.request({method:"eth_accounts"})];case 2:return e=n.sent(),console.log("accounts:",e),e&&e.length>0&&e[0]?(this.handleAccountConnected(e[0]),[2,e&&e.length>0&&e[0]]):[3,4];case 3:return t=n.sent(),console.error("Failed to fetch connected address:",t),[2,""];case 4:return[2]}}))}))},e.prototype.buildApiUrl=function(){var e=this.config,t=e.host,n=e.proxy,r=e.token,o=e.dataSource,i=void 0===o?"analytics_events":o;return r?n?"".concat(n,"/api/tracking"):t?"".concat(t.replace(/\/+$/,""),"/v0/events?name=").concat(i,"&token=").concat(r):"".concat(c.EVENTS_API,"?name=").concat(i,"&token=").concat(r):"Error: No token provided"},e.prototype.connect=function(e){var t=e.chainId,n=e.address;if(!t)throw new Error("FormoAnalytics::wallet: chainId cannot be empty");if(!n)throw new Error("FormoAnalytics::wallet: account cannot be empty");this.currentChainId=t.toString(),this.currentConnectedAccount=n,this.trackEvent(c.Event.CONNECT,{chainId:t,address:n})},e.prototype.disconnect=function(e){var t=(null==e?void 0:e.account)||this.currentConnectedAccount;if(t){var n=(null==e?void 0:e.chainId)||this.currentChainId,o=r({account:t},n&&{chainId:n});return this.currentChainId=void 0,this.currentConnectedAccount=void 0,this.trackEvent(c.Event.DISCONNECT,o)}},e.prototype.chain=function(e){var t=e.chainId,n=e.account;if(!t||0===Number(t))throw new Error("FormoAnalytics::chain: chainId cannot be empty or 0");if(!n&&!this.currentConnectedAccount)throw new Error("FormoAnalytics::chain: account was empty and no previous account has been recorded. You can either pass an account or call wallet() first");if(isNaN(Number(t)))throw new Error("FormoAnalytics::chain: chainId must be a valid hex or decimal number");return this.currentChainId=t.toString(),this.trackEvent(c.Event.CHAIN_CHANGED,{chainId:t,account:n||this.currentConnectedAccount})},e.prototype.init=function(t,n){var r=new e(t,n);return Promise.resolve(r)},e.prototype.identify=function(e){this.identifyUser(e)},e.prototype.page=function(){this.trackPageHit()},e.prototype.track=function(e,t){this.trackEvent(e,t)},e}();t.FormoAnalytics=p},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useFormoAnalytics=t.FormoAnalyticsProvider=t.FormoAnalyticsContext=void 0;var r=n(848),o=n(540),i=n(879),a=n(316),s=n(324);t.FormoAnalyticsContext=(0,o.createContext)(void 0),t.FormoAnalyticsProvider=function(e){var n=e.apiKey,c=e.projectId,u=e.disabled,l=e.children,p=(0,o.useState)(),d=p[0],f=p[1],h=(0,o.useRef)(!1);return(0,o.useEffect)((function(){if(!n)throw new Error("FormoAnalyticsProvider: No API key provided");u||h.current||(h.current=!0,s.H.init(process.env.HIGHLIGHT_PROJECT_ID,{serviceName:"formo-analytics-sdk",tracingOrigins:!0,networkRecording:{enabled:!0,recordHeadersAndBody:!0,urlBlocklist:["https://www.googleapis.com/identitytoolkit","https://securetoken.googleapis.com"]}}),i.FormoAnalytics.init(n,c).then((function(e){return f(e)})))}),[n,u,c]),(0,r.jsx)(a.ErrorBoundary,{onError:function(e,t){return s.H.consumeError(e,t)},children:(0,r.jsx)(t.FormoAnalyticsContext.Provider,{value:d,children:l})})},t.useFormoAnalytics=function(){var e=(0,o.useContext)(t.FormoAnalyticsContext);if(!e)throw new Error("useFormoAnalytics must be used within a FormoAnalyticsProvider");return e}},358:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTRY_LIST=t.SESSION_STORAGE_ID_KEY=t.EVENTS_API=void 0,t.EVENTS_API="https://api.eu-central-1.aws.tinybird.co/v0/events",t.SESSION_STORAGE_ID_KEY="formo-analytics-session-id",t.COUNTRY_LIST={"Africa/Accra":"GH","Africa/Abidjan":"GH","Africa/Addis_Ababa":"ET","Africa/Nairobi":"KE","Africa/Asmara":"ER","Africa/Asmera":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Kampala":"UG","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Timbuktu":"ML","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","Africa/Lagos":"NG","Africa/Johannesburg":"ZA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/ComodRivadavia":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Atka":"US","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Buenos_Aires":"AR","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Catamarca":"AR","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Ciudad_Juarez":"MX","America/Coral_Harbour":"CA","America/Cordoba":"AR","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guayaquil":"EC","America/Guyana":"GY","America/Houston":"US","America/Indiana/Indianapolis":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Louisville":"US","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Menominee":"US","America/Merida":"MX","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montreal":"CA","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US","America/Port_of_Spain":"TT","America/Porto_Acre":"BR","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Punta_Arenas":"CL","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Rio_Branco":"BR","America/Rosario":"AR","America/Santarem":"BR","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Shiprock":"US","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/South_Pole":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Ashkhabad":"TM","Asia/Atyrau":"KZ","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Chongqing":"CN","Asia/Chungking":"CN","Asia/Colombo":"LK","Asia/Dacca":"BD","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Famagusta":"CY","Asia/Gaza":"PS","Asia/Harbin":"CN","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Istanbul":"TR","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kashgar":"CN","Asia/Kathmandu":"NP","Asia/Katmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macao":"MO","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qostanay":"KZ","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Saigon":"VN","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Tel_Aviv":"IL","Asia/Thimbu":"BT","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ujung_Pandang":"ID","Asia/Ulaanbaatar":"MN","Asia/Ulan_Bator":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yangon":"MM","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faroe":"FO","Atlantic/Jan_Mayen":"SJ","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/ACT":"AU","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Canberra":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/LHI":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/NSW":"AU","Australia/North":"AU","Australia/Perth":"AU","Australia/Queensland":"AU","Australia/South":"AU","Australia/Sydney":"AU","Australia/Tasmania":"AU","Australia/Victoria":"AU","Australia/West":"AU","Australia/Yancowinna":"AU","Brazil/Acre":"BR","Brazil/DeNoronha":"BR","Brazil/East":"BR","Brazil/West":"BR",CET:"BE",CST6CDT:"US","Canada/Atlantic":"CA","Canada/Central":"CA","Canada/Eastern":"CA","Canada/Mountain":"CA","Canada/Newfoundland":"CA","Canada/Pacific":"CA","Canada/Saskatchewan":"CA","Canada/Yukon":"CA","Chile/Continental":"CL","Chile/EasterIsland":"CL",Cuba:"CU",EET:"GR",EST:"PA",EST5EDT:"US",Egypt:"EG",Eire:"IE","Etc/GMT":"","Etc/GMT+0":"","Etc/GMT+1":"","Etc/GMT+10":"","Etc/GMT+11":"","Etc/GMT+12":"","Etc/GMT+2":"","Etc/GMT+3":"","Etc/GMT+4":"","Etc/GMT+5":"","Etc/GMT+6":"","Etc/GMT+7":"","Etc/GMT+8":"","Etc/GMT+9":"","Etc/GMT-0":"","Etc/GMT-1":"","Etc/GMT-10":"","Etc/GMT-11":"","Etc/GMT-12":"","Etc/GMT-13":"","Etc/GMT-14":"","Etc/GMT-2":"","Etc/GMT-3":"","Etc/GMT-4":"","Etc/GMT-5":"","Etc/GMT-6":"","Etc/GMT-7":"","Etc/GMT-8":"","Etc/GMT-9":"","Etc/GMT0":"","Etc/Greenwich":"","Etc/UCT":"","Etc/UTC":"","Etc/Universal":"","Etc/Zulu":"","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belfast":"GB","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Kyiv":"UA","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Nicosia":"CY","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Ulyanovsk":"RU","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH",GB:"GB","GB-Eire":"GB",HST:"US",Hongkong:"HK",Iceland:"IS","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"AU","Indian/Cocos":"AU","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Reunion":"FR",Iran:"IR",Israel:"IL",Jamaica:"JM",Japan:"JP",Kwajalein:"MH",Libya:"LY",Malaysia:"MY",Maldives:"MV",Mongolia:"MN",MST7MDT:"US","Mexico/BajaNorte":"MX","Mexico/BajaSur":"MX","Mexico/General":"MX",NZ:"NZ","NZ-CHAT":"NZ",Navajo:"US",PRC:"CN",PST8PDT:"US","Pacific/Apia":"WS","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"","Pacific/Fakaofo":"TK","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guam":"GU","Pacific/Kanton":"KI","Pacific/Marshall_Islands":"MH","Pacific/Nauru":"NR","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Ponape":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Wake":"UM","Pacific/Wallis":"WF","Pacific/Guadalcanal":"SB","Pacific/Fiji":"FJ","Pacific/Honolulu":"US","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Wallis_Futuna":"WF","Pacific/Johnston":"UM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Samoa":"AS","Pacific/Truk":"FM","Pacific/Yap":"FM",Poland:"PL",Portugal:"PT",ROC:"TW",ROK:"KR",Singapore:"SG",Turkey:"TR","US/Alaska":"US","US/Aleutian":"US","US/Arizona":"US","US/Central":"US","US/East-Indiana":"US","US/Eastern":"US","US/Hawaii":"US","US/Indiana-Starke":"US","US/Michigan":"US","US/Mountain":"US","US/Pacific":"US","US/Samoa":"AS","W-SU":"RU",WET:"PT"}},309:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,function(e){e.PAGE="page",e.CONNECT="connect",e.DISCONNECT="disconnect",e.CHAIN_CHANGED="chain_changed",e.SIGNING_TRIGGERED="signing_triggered",e.CLICK="click",e.CUSTOM="custom"}(n||(t.Event=n={}))},450:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(358),t),o(n(309),t)},156:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(190),t),o(n(879),t),o(n(574),t)},989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},574:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(989),t),o(n(155),t)},155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},266:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(965),t)},965:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNotEmpty=function(e){return null!==e&&""!==e&&!("object"==typeof e&&0===Object.keys(e).length)}},425:(e,t,n)=>{function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),e=>{const t=o.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,p=u("undefined"),d=c("ArrayBuffer"),f=u("string"),h=u("function"),m=u("number"),g=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=c("Date"),_=c("File"),E=c("Blob"),b=c("FileList"),T=c("URLSearchParams"),[A,S,w,O]=["ReadableStream","Request","Response","Headers"].map(c);function R(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,L=e=>!p(e)&&e!==N,I=(P="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>P&&e instanceof P);var P;const k=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),D=c("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},U="abcdefghijklmnopqrstuvwxyz",B="0123456789",j={DIGIT:B,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+B},F=c("AsyncFunction"),H=(G="function"==typeof setImmediate,V=h(N.postMessage),G?setImmediate:V?(q=`axios@${Math.random()}`,K=[],N.addEventListener("message",(({source:e,data:t})=>{e===N&&t===q&&K.length&&K.shift()()}),!1),e=>{K.push(e),N.postMessage(q,"*")}):e=>setTimeout(e));var G,V,q,K;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||H;var X={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=a(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:y,isReadableStream:A,isRequest:S,isResponse:w,isHeaders:O,isUndefined:p,isDate:v,isFile:_,isBlob:E,isRegExp:D,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:T,isTypedArray:I,isFileList:b,forEach:R,merge:function e(){const{caseless:t}=L(this)&&this||{},n={},r=(r,o)=>{const i=t&&C(n,o)||o;y(n[i])&&y(r)?n[i]=e(n[i],r):y(r)?n[i]=e({},r):l(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(R(t,((t,o)=>{n&&h(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:C,global:N,isContextDefined:L,ALPHABET:j,generateString:(e=16,t=j.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return R(e,((e,t)=>{const i=n(e,r+1);!p(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:H,asap:z};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}X.inherits($,Error,{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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const W=$.prototype,J={};function Y(e){return X.isPlainObject(e)||X.isArray(e)}function Q(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map((function(e,t){return e=Q(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties($,J),Object.defineProperty(W,"isAxiosError",{value:!0}),$.from=(e,t,n,r,o,i)=>{const a=Object.create(W);return X.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ee=X.toFlatObject(X,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!X.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(!s&&X.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(X.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(X.isArray(e)&&function(e){return X.isArray(e)&&!e.some(Y)}(e)||(X.isFileList(e)||X.endsWith(n,"[]"))&&(s=X.toArray(e)))return n=Q(n),s.forEach((function(e,r){!X.isUndefined(e)&&null!==e&&t.append(!0===a?Z([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!Y(e)||(t.append(Z(o,n,i),c(e)),!1)}const l=[],p=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!X.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!X.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),X.forEach(n,(function(n,i){!0===(!(X.isUndefined(n)||null===n)&&o.call(t,n,X.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ae(e,t,n){if(!t)return e;const r=n&&n.encode||ie,o=n&&n.serialize;let i;if(i=o?o(t,n):X.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,pe="object"==typeof navigator&&navigator||void 0,de=le&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=le&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:fe,hasStandardBrowserEnv:de,navigator:pe,origin:he}),...ue};function ge(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&X.isArray(r)?r.length:i,s?(X.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&X.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&X.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,((e,r)=>{t(function(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=X.isObject(e);if(o&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(ge(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=X.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(X.isString(e))try{return(0,JSON.parse)(e),X.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var ve=ye;const _e=X.toObjectSet(["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"]),Ee=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:X.isArray(e)?e.map(Te):String(e)}function Ae(e,t,n,r,o){return X.isFunction(r)?r.call(this,t,n):(o&&(t=n),X.isString(t)?X.isString(r)?-1!==t.indexOf(r):X.isRegExp(r)?r.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=be(t);if(!o)throw new Error("header name must be a non-empty string");const i=X.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Te(e))}const i=(e,t)=>X.forEach(e,((e,n)=>o(e,n,t)));if(X.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(X.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_e[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(X.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=be(e)){const n=X.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const n=X.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=be(e)){const o=X.findKey(n,e);!o||t&&!Ae(0,n[o],o,t)||(delete n[o],r=!0)}}return X.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return X.forEach(this,((r,o)=>{const i=X.findKey(n,o);if(i)return t[i]=Te(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Te(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return X.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&X.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=be(e);t[r]||(function(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(Se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),X.freezeMethods(Se);var we=Se;function Oe(e,t){const n=this||ve,r=t||n,o=we.from(r.headers);let i=r.data;return X.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Re(e){return!(!e||!e.__CANCEL__)}function Ce(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}function Ne(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}X.inherits(Ce,$,{__CANCEL__:!0});const Le=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Ie=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pe=e=>(...t)=>X.asap((()=>e(...t)));var ke=me.hasStandardBrowserEnv?function(){const e=me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=X.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},xe=me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),X.isString(r)&&a.push("path="+r),X.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function De(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof we?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:n},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function o(e,t,n){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!X.isUndefined(t))return r(void 0,t)}function a(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Me(e),Me(t),!0)};return X.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);X.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Be=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=we.from(s),t.url=ae(De(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),X.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&X.isFunction(o)&&(o=o(t)),o||!1!==o&&ke(t.url))){const e=i&&a&&xe.read(a);e&&s.set(i,e)}return t},je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Be(e);let o=r.data;const i=we.from(r.headers).normalize();let a,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=we.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ne((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new $("Request aborted",$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,o.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&X.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),X.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,l]=Le(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,u]=Le(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ce(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===me.protocols.indexOf(y)?n(new $("Unsupported protocol "+y+":",$.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Fe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $?t:new Ce(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>X.asap(a),s}};const He=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ge=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*He(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ve="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qe=Ve&&"function"==typeof ReadableStream,Ke=Ve&&("function"==typeof TextEncoder?(ze=new TextEncoder,e=>ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ze;const Xe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=qe&&Xe((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),We=qe&&Xe((()=>X.isReadableStream(new Response("").body))),Je={stream:We&&(e=>e.body)};var Ye;Ve&&(Ye=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=X.isFunction(Ye[e])?t=>t[e]():(t,n)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})})));const Qe={http:null,xhr:je,fetch:Ve&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Be(e);u=u?(u+"").toLowerCase():"text";let f,h=Fe([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&$e&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=X.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){const t=new Request(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e)?(await Ke(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(X.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Ie(g,Le(Pe(c)));r=Ge(n.body,65536,e,t)}}X.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f);const a=We&&("stream"===u||"response"===u);if(We&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=X.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Ie(t,Le(Pe(s),!0))||[];i=new Response(Ge(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let y=await Je[X.findKey(Je,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ne(t,n,{data:y,headers:we.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:t.cause||t});throw $.from(t,t&&t.code,e,f)}})};X.forEach(Qe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>X.isFunction(e)||null===e||!1===e;var tt=e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!et(n)&&(r=Qe[(t=String(n)).toLowerCase()],void 0===r))throw new $(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function rt(e){return nt(e),e.headers=we.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ve.adapter)(e).then((function(t){return nt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=we.from(t.headers),t}),(function(t){return Re(t)||(nt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=we.from(t.response.headers))),Promise.reject(t)}))}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const it={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new $(r(o," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new $("option "+i+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:ot};const st=at.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=r&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:st.function,serialize:st.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&X.merge(o.common,o[t.method]);o&&X.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=we.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=a.length;let d=t;for(p=0;p<l;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=rt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return ae(De((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),X.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ue(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ce(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var pt=lt;const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dt).forEach((([e,t])=>{dt[t]=e}));var ft=dt;const ht=function e(t){const n=new ut(t),o=r(ut.prototype.request,n);return X.extend(o,ut.prototype,n,{allOwnKeys:!0}),X.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ue(t,n))},o}(ve);ht.Axios=ut,ht.CanceledError=Ce,ht.CancelToken=pt,ht.isCancel=Re,ht.VERSION="1.7.7",ht.toFormData=te,ht.AxiosError=$,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Ue,ht.AxiosHeaders=we,ht.formToJSON=e=>ge(X.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=ft,ht.default=ht,e.exports=ht},316:(e,t,n)=>{n.r(t),n.d(t,{ErrorBoundary:()=>w,ReportDialog:()=>A,SampleBuggyButton:()=>O});var r,o,i=n(540),a=Object.create,s=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(d)for(var n of d(t))m.call(t,n)&&g(e,n,t[n]);return e},v=(e,t)=>c(e,l(t)),_=(r=(e,t)=>{!function(){var e={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var i in t)e.call(t,i)&&t[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},()=>(o||r(o={exports:{}},o),o.exports)),E=((e,t,n)=>(n=null!=e?a(f(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of p(t))!h.call(e,n)&&undefined!==n&&s(e,n,{get:()=>t[n],enumerable:!(r=u(t,n))||r.enumerable});return e})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(_()),b="ba9c647cce52083170869d8ab4be319f402bcaf786e5d7099b013d5757ef5c9d";!function(){if("undefined"!=typeof document&&!document.getElementById(b)){var e=document.createElement("style");e.id=b,e.textContent="._container_18f8u_1 {\n\t--brand-color: #744ed4;\n\t--brand-color-dark: #5629c6;\n\t--color-text-primary: #111111;\n\t--color-text-primary-inverted: #fff;\n\t--color-text-link: var(--brand-color);\n\t--size-large: 24px;\n\t--size-medium: 16px;\n\t--size-small: 12px;\n\t--size-xSmall: 8px;\n\n\t--color-white: #fff;\n\t--color-gray-100: hsla(0, 0%, 93.7%, 0.49019607843137253);\n\t--color-gray-200: #f2f2f2;\n\t--color-gray-300: #eaeaea;\n\t--color-gray-400: #bdbdbd;\n\t--color-gray-500: #828282;\n\t--color-gray-600: #7e7e7e;\n\t--color-gray-700: #8a8f98;\n\t--color-gray-800: #2d2f36;\n\n\t--font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n\t\tRoboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',\n\t\t'Segoe UI Emoji', 'Segoe UI Symbol';\n\n\tbackground: hsl(0deg 0% 0% / 75%);\n\tfont-family: var(--font-family);\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100vw;\n\theight: 100vh;\n\tz-index: 999999;\n\tbackdrop-filter: blur(1px);\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n@media only screen and (max-width: 420px) {\n\t._card_18f8u_41 {\n\t\tmax-width: 100vw !important;\n\t\theight: 100%;\n\t\tborder-radius: 0;\n\t}\n\n\t._cardContents_18f8u_47 {\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t._form_18f8u_53 {\n\t\theight: 100%;\n\t}\n\n\t._textareaLabel_18f8u_57 {\n\t\tflex: 1;\n\t}\n\n\t._form_18f8u_53 textarea {\n\t\theight: 100%;\n\t}\n\n\t._ad_18f8u_65 {\n\t\tdisplay: none;\n\t}\n}\n\n._card_18f8u_41 {\n\tborder-radius: var(--size-xSmall);\n\tpadding: 20px;\n\twidth: 420px;\n\tmax-width: calc(100vw - 1rem);\n\tbackground: white;\n}\n\n._title_18f8u_78 {\n\tfont-size: 20px;\n\tcolor: var(--color-text-primary);\n}\n\n._subtitle_18f8u_83 {\n\tfont-size: 13px;\n\tmargin-top: var(--size-medium) !important;\n\tfont-weight: 400;\n\tcolor: #8c8b92;\n}\n\n._form_18f8u_53 {\n\tpadding-top: var(--size-large);\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: var(--size-small);\n\twidth: 100%;\n}\n\n._form_18f8u_53 label {\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: 11px !important;\n\tfont-weight: 500;\n\tcolor: var(--color-gray-500);\n}\n\n._form_18f8u_53 input {\n\theight: 28px;\n}\n\n._form_18f8u_53 textarea {\n\tfont-family: var(--font-family);\n\tmin-height: 80px;\n}\n\n._form_18f8u_53 input,\n._form_18f8u_53 textarea {\n\tbackground-color: var(--color-white);\n\tborder: 1px solid #dcdbdd;\n\tborder-radius: 6px;\n\tcolor: var(--color-gray-500);\n\n\tfont-size: 13px;\n\tmargin: 8px 0;\n\toutline: none;\n\tpadding: 4px 6px;\n\twidth: calc(100%);\n}\n\n._form_18f8u_53 button {\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\theight: auto;\n\tcolor: var(--color-text-primary-inverted);\n\tbackground-color: var(--brand-color);\n\ttext-shadow: none;\n\tbox-shadow: none;\n\tpadding: 4px 6px;\n\tfont-size: 14px;\n\tborder-radius: 6px;\n\tborder: 0;\n\tcursor: pointer;\n}\n\n._form_18f8u_53 button:hover {\n\tbackground-color: var(--brand-color-dark);\n}\n\n._form_18f8u_53 button[disabled] {\n\topacity: 0.5;\n\tpointer-events: none;\n}\n\n._form_18f8u_53 ._closeButton_18f8u_154 {\n\tbackground-color: transparent;\n\tcolor: #6f6e77 !important;\n\tfont-size: 13px;\n\tfont-family: var(--font-family);\n\tborder: 1px solid var(--color-white);\n}\n\n._form_18f8u_53 ._closeButton_18f8u_154:hover {\n\tbackground-color: var(--color-gray-100);\n\tborder-color: var(--color-gray-300);\n}\n\n._confirmationButton_18f8u_167 {\n\tfloat: right;\n\tmargin-top: 3rem;\n}\n\n._formFooter_18f8u_172 {\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n\n._formActionsContainer_18f8u_180 {\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\tgap: 6px;\n}\n\n._ad_18f8u_65:hover {\n\tbackground-color: var(--color-gray-100);\n}\n\n._logoContainer_18f8u_190 {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n\n\tborder: 1px solid var(--color-gray-300);\n\tborder-radius: 6px;\n\tcolor: var(--color-gray-500);\n\tfont-size: 13px;\n\tpadding: 4px 8px;\n}\n\n._logo_18f8u_190 {\n\theight: 16px;\n}\n\n._buggyButton_18f8u_206 {\n\talign-items: center;\n\tbackground: #5629c6;\n\tborder-radius: 8px;\n\tborder: 1px solid #bdbdbd;\n\tbox-shadow: none;\n\tcolor: #fff;\n\tcursor: pointer;\n\tdisplay: flex;\n\tfont-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n\t\tRoboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',\n\t\t'Segoe UI Emoji', 'Segoe UI Symbol';\n\tfont-size: 14px;\n\theight: auto;\n\tjustify-content: center;\n\tmin-height: 40px;\n\tpadding: 4px 16px;\n\ttext-shadow: none;\n}\n",document.head.appendChild(e)}}();var T={container:"_container_18f8u_1",card:"_card_18f8u_41",cardContents:"_cardContents_18f8u_47",form:"_form_18f8u_53",textareaLabel:"_textareaLabel_18f8u_57",ad:"_ad_18f8u_65",title:"_title_18f8u_78",subtitle:"_subtitle_18f8u_83",closeButton:"_closeButton_18f8u_154",confirmationButton:"_confirmationButton_18f8u_167",formFooter:"_formFooter_18f8u_172",formActionsContainer:"_formActionsContainer_18f8u_180",logoContainer:"_logoContainer_18f8u_190",logo:"_logo_18f8u_190",buggyButton:"_buggyButton_18f8u_206"};function A({labelClose:e="Cancel",labelComments:t="Message",labelName:n="Name",labelEmail:r="Email",labelSubmit:o="Submit",subtitle2:a="If you’d like to help, tell us what happened below.",subtitle:s="Our team has been notified.",successMessage:c="Your feedback has been sent. Thank you!",successSubtitle:u="Thank you for sending us feedback. If you have any other concerns/questions, reach out to this application's support email.",title:l="It looks like we’re having issues.",placeholderComments:p="I typed in a name then clicked the button",user:d,onCloseHandler:f,onSubmitHandler:h,hideHighlightBranding:m=!1,error:g}){let[y,v]=(0,i.useState)((null==d?void 0:d.name)||""),[_,b]=(0,i.useState)((null==d?void 0:d.email)||""),[A,S]=(0,i.useState)(""),[w,O]=(0,i.useState)(!1),[R,C]=(0,i.useState)(!1),N=(0,i.useRef)((new Date).toISOString()),L=(0,i.useMemo)((()=>{let e=!!_.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i);return!!y&&e&&!!A}),[y,_,A]);return i.useEffect((()=>{var e;null!=(e=null==window?void 0:window.H)&&e.consumeError&&g&&window.H.consumeError(g)}),[g]),i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-display: swap;\n\t\t\t\t\t\tfont-family: 'Inter';\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\tsrc: local('Inter Regular'), local('InterRegular'),\n\t\t\t\t\t\t\turl('https://app.highlight.io/font/Inter-Regular.woff2')\n\t\t\t\t\t\t\t\tformat('woff2');\n\t\t\t\t\t}\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-display: swap;\n\t\t\t\t\t\tfont-family: 'Inter';\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\tsrc: local('Inter Medium'), local('InterMedium'),\n\t\t\t\t\t\t\turl('https://app.highlight.io/font/Inter-Medium.woff2')\n\t\t\t\t\t\t\t\tformat('woff2');\n\t\t\t\t\t}\n\n\t\t\t\t\t::placeholder {\n\t\t\t\t\t\tcolor: var(--color-gray-300);\n\t\t\t\t\t}\n\t\t\t"}}),i.createElement("main",{className:T.container},i.createElement("div",{className:T.card},R?i.createElement("div",{className:T.cardContents},i.createElement("h1",{className:T.title},c),i.createElement("h4",{className:T.subtitle},u),i.createElement("div",null,i.createElement("button",{className:(0,E.default)(T.button,T.confirmationButton),onClick:f},"Close"))):i.createElement("div",{className:T.cardContents},i.createElement("div",null,i.createElement("h1",{className:T.title},l),i.createElement("h2",{className:T.subtitle},s," ",a)),i.createElement("form",{className:T.form,onSubmit:e=>{var t;e.preventDefault(),O(!0),null!=(t=null==window?void 0:window.H)&&t.addSessionFeedback?window.H.addSessionFeedback({verbatim:A,userName:y,userEmail:_,timestampOverride:N.current}):console.warn("Highlight is not initialized. Make sure highlight.run is installed and running."),new Promise((e=>window.setTimeout(e,300))).then((()=>{O(!1),C(!0),h&&h()}))}},i.createElement("label",null,n,i.createElement("input",{type:"text",value:y,name:"name",autoFocus:!0,onChange:e=>{v(e.target.value)},placeholder:"Tom Jerry"})),i.createElement("label",null,r,i.createElement("input",{type:"email",value:_,name:"email",onChange:e=>{b(e.target.value)},placeholder:"mail@mail.com"})),i.createElement("label",{className:T.textareaLabel},t,i.createElement("textarea",{value:A,placeholder:p,name:"verbatim",rows:3,onChange:e=>{S(e.target.value)}})),i.createElement("div",{className:T.formFooter},i.createElement("div",{className:T.formActionsContainer},i.createElement("button",{type:"submit",disabled:!L||w},o),i.createElement("button",{className:T.closeButton,onClick:f,type:"button"},e)),!m&&i.createElement("div",{className:T.ad},i.createElement("a",{href:"https://highlight.io",target:"_blank"},i.createElement("div",{className:T.logoContainer},i.createElement("img",{src:"https://www.highlight.io/images/logo-on-dark.png",alt:"Highlight",className:T.logo}),i.createElement("span",null,"Powered by highlight.io"))))))))))}var S={componentStack:null,error:null,showingDialog:!1},w=class extends i.Component{constructor(){super(...arguments),this.state=S,this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:n}=this.state;e&&e(t,n),this.setState(S)},this.hideDialog=()=>{this.setState(v(y({},this.state),{showingDialog:!1})),(this.props.onAfterReportDialogCancelHandler||(()=>{window.location.href=window.location.origin}))()},this.onReportDialogSubmitHandler=()=>{this.props.onAfterReportDialogSubmitHandler&&this.props.onAfterReportDialogSubmitHandler()}}componentDidCatch(e,t){var n,r,o;let{beforeCapture:i,onError:a,showDialog:s}=this.props;i&&i(e,null!=(n=t.componentStack)?n:null),function(e,t){var n;let r=function(e){let t=e.split("\n");if(t.length<1)return;let n=t[1].trim().split(" ");return 4===n.length?`<${n[1]}>`:void 0}(null!=(n=t.componentStack)?n:"");window.H?(console.error("Highlight ErrorBoundary caught an exception while rendering React component",{error:e}),window.H.consume(e,{payload:{component:r},source:r,type:"React.ErrorBoundary"})):console.warn("You need to install highlight.run.")}(e,t),a&&a(e,null!=(r=t.componentStack)?r:""),!1!==s&&this.setState(v(y({},this.state),{showingDialog:!0})),this.setState({error:e,componentStack:null!=(o=t.componentStack)?o:null})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t}=this.state,{onUnmount:n}=this.props;n&&n(e,t)}render(){let{fallback:e,children:t,customDialog:n}=this.props,{error:r,componentStack:o,showingDialog:a}=this.state;if(r){let t;return t="function"==typeof e?e({error:r,componentStack:o,resetError:this.resetErrorBoundary}):e,i.isValidElement(t)?i.createElement(i.Fragment,null,a&&i.createElement(A,v(y({},this.props.dialogOptions),{onCloseHandler:this.hideDialog,onSubmitHandler:this.onReportDialogSubmitHandler})),t):(e&&console.warn("fallback did not produce a valid ReactElement"),a&&n?n:a&&i.createElement(A,v(y({},this.props.dialogOptions),{onCloseHandler:this.hideDialog,onSubmitHandler:this.onReportDialogSubmitHandler})))}return"function"==typeof t?t():t}},O=({children:e})=>{let[t,n]=i.useState(!1);if(t)throw new Error("something bad happened - this is a sample test error");return i.createElement("button",{type:"button",className:"buggyButton",onClick:()=>n(!0)},null!=e?e:"Throw an Error")}},767:(e,t,n)=>{n.d(t,{A:()=>js,B:()=>Os,C:()=>Is,E:()=>I,F:()=>As,G:()=>Ss,H:()=>b,K:()=>ti,M:()=>bs,Q:()=>Jo,S:()=>ea,V:()=>E,_:()=>Fs,a:()=>Pi,b:()=>Mi,c:()=>T,d:()=>Bo,e:()=>Ji,f:()=>oa,g:()=>A,h:()=>M,i:()=>Qo,j:()=>ra,k:()=>ia,l:()=>g,m:()=>Zi,n:()=>Ts,o:()=>v,p:()=>li,q:()=>y,r:()=>Qi,s:()=>Yi,t:()=>B,u:()=>_,v:()=>$i,w:()=>Wi,x:()=>us,y:()=>as,z:()=>ws});var r=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&u(e,n,t[n]);return e},p=(e,t)=>o(e,i(t)),d=(e,t)=>{var n={};for(var r in e)s.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&a)for(var r of a(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n},f=(e,t,n)=>u(e,"symbol"!=typeof t?t+"":t,n),h=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const m=({apiKey:e})=>{!function(t,n){var r=t.amplitude||{_q:[],_iq:{}},o=n.createElement("script");o.type="text/javascript",o.integrity="sha384-+EO59vL/X7v6VE2s6/F4HxfHlK0nDUVWKVg8K9oUlvffAeeaShVBmbORTC2D3UF+",o.crossOrigin="anonymous",o.async=!0,o.src="https://cdn.amplitude.com/libs/amplitude-8.17.0-min.gz.js",o.onload=function(){t.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK"),amplitude.getInstance().init(e)};var i=n.getElementsByTagName("script")[0];function a(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}i.parentNode.insertBefore(o,i);for(var s=function(){return this._q=[],this},c=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"],u=0;u<c.length;u++)a(s,c[u]);r.Identify=s;for(var l=function(){return this._q=[],this},p=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],d=0;d<p.length;d++)a(l,p[d]);r.Revenue=l;var f=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];function h(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}for(var n=0;n<f.length;n++)t(f[n])}h(r),r.getInstance=function(e){return e=(e&&0!==e.length?e:"$default_instance").toLowerCase(),Object.prototype.hasOwnProperty.call(r._iq,e)||(r._iq[e]={_q:[]},h(r._iq[e])),r._iq[e]},t.amplitude=r}(window,document)},g=1e3,y=2e3,v=144e5,_={normal:{bytes:1e7,time:24e4},canvas:{bytes:16e6,time:5e3}},E=100,b="app.highlight.io";var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,w,O,R,C,N={exports:{}},L={exports:{}};N.exports=(S||(S=1,L.exports=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=r.concat(o,i,["args"],["evalOrigin"]);function s(e){if(e)for(var n=0;n<a.length;n++)void 0!==e[a[n]]&&this["set"+t(a[n])](e[a[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},s.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),i=e.substring(n+1);if(0===i.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i,""),c=a[1],u=a[2],l=a[3];return new s({functionName:r,args:o||void 0,fileName:c,lineNumber:u||void 0,columnNumber:l||void 0})};for(var c=0;c<r.length;c++)s.prototype["get"+t(r[c])]=n(r[c]),s.prototype["set"+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var u=0;u<o.length;u++)s.prototype["get"+t(o[u])]=n(o[u]),s.prototype["set"+t(o[u])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(o[u]);for(var l=0;l<i.length;l++)s.prototype["get"+t(i[l])]=n(i[l]),s.prototype["set"+t(i[l])]=function(e){return function(t){this[e]=String(t)}}(i[l]);return s}()),w=L.exports,O=/(^|@)\S+:\d+/,R=/^\s*at .*(\S+:\d+|\(native\))/m,C=/^(eval@)?(\[native code])?$/,{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(R))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(R)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/),r=(t=n?t.replace(n[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:r.pop()),i=r.join(" ")||void 0,a=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new w({functionName:i,fileName:a,lineNumber:o[1],columnNumber:o[2],source:e})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(C)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new w({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(t,""));return new w({functionName:r,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],o=2,i=n.length;o<i;o+=2){var a=t.exec(n[o]);a&&r.push(new w({fileName:a[2],lineNumber:a[1],source:n[o]}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],o=0,i=n.length;o<i;o+=2){var a=t.exec(n[o]);a&&r.push(new w({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:n[o]}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(O)&&!e.match(/^Error created at/)}),this).map((function(e){var t,n=e.split("@"),r=this.extractLocation(n.pop()),o=n.shift()||"",i=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;o.match(/\(([^)]*)\)/)&&(t=o.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===t||"[arguments not available]"===t?void 0:t.split(",");return new w({functionName:i,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})}),this)}});const I=A(N.exports);function P(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();let r=e.parentElement,o=[];if(r.children&&r.children.length>0)for(let e=0;e<r.children.length;e++){let t=r.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&o.push(t)}o.length>1&&(n+=":eq("+o.indexOf(e)+")"),t=n+(t?">"+t:""),e=r}return t}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e,t){if(0===t)return!0;const n=Object.keys(e);for(const r of n)if(k(e[r])&&x(e[r],t-1))return!0;return!1}function D(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const r=[],o=[];return JSON.stringify(e,(function(e,t){if(r.length>0){const n=r.indexOf(this);~n?r.splice(n+1):r.push(this),~n?o.splice(n,1/0,e):o.push(e),~r.indexOf(t)&&(t=r[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(t)).join(".")+"]")}else r.push(t);if(null==t)return t;if(function(e){return!!(k(e)&&Object.keys(e).length>n.numOfKeysLimit||"function"==typeof e||(e instanceof Event&&!1===e.isTrusted?1===Object.keys(e).length:k(e)&&x(e,n.depthOfLimit)))}(t))return function(e){let t=e.toString();return n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`),t}(t);if(t instanceof Event){const e={};for(const n in t){const r=t[n];Array.isArray(r)?e[n]=P(r.length?r[0]:null):e[n]=r}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.name+": "+t.message:t}))}function M(){return(e=document.createElement("canvas")).getContext&&e.getContext("2d")&&0==e.toDataURL("image/webp").indexOf("data:image/webp")?{type:"image/webp",quality:.9}:{type:"image/jpeg",quality:.6};var e}var U={exports:{}};!function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}}t=e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)},t.getSerialize=n}(U,U.exports);const B=A(U.exports);function j(e,t,n,r){var o,i,a,s;let c=[];try{c=I.parse(null!=r?r:t)}catch(e){c=I.parse(new Error)}let u={};t instanceof Error&&(t=t.message).cause&&(u={"exception.cause":t.cause});const l=H(c);e({event:B(t),type:"window.onerror",url:window.location.href,source:null!=n?n:"",lineNumber:null!=(o=l[0])&&o.lineNumber?null==(i=l[0])?void 0:i.lineNumber:0,columnNumber:null!=(a=l[0])&&a.columnNumber?null==(s=l[0])?void 0:s.columnNumber:0,stackTrace:l,timestamp:(new Date).toISOString(),payload:u?B(u):void 0})}const F=(e,{enablePromisePatch:t})=>{if("undefined"==typeof window)return()=>{};const n=window.onerror=(t,n,r,o,i)=>{j(e,t,n,i)},r=window.onunhandledrejection=t=>{if(t.reason){const n=t.promise;n.getStack?j(e,t.reason,t.type,n.getStack()):j(e,t.reason,t.type)}},o=window.Promise,i=class extends o{constructor(e){super(e),f(this,"promiseCreationError"),this.promiseCreationError=new Error}getStack(){return this.promiseCreationError}static shouldPatch(){const e=void 0===window.Zone;return t&&e}};return i.shouldPatch()&&(window.Promise=i),()=>{window.Promise=o,window.onunhandledrejection=r,window.onerror=n}},H=e=>{var t,n;if(0===e.length)return e;const r=e[0];return null!=(t=r.fileName)&&t.includes("highlight.run")||null!=(n=r.fileName)&&n.includes("highlight.io")||"new highlightPromise"===r.functionName?e.slice(1):e},G=['["\\"Script error.\\""]','"Script error."','["\\"Load failed.\\""]','"Load failed."','["\\"Network request failed.\\""]','"Network request failed."','["\\"Document is not focused.\\""]','"Document is not focused."','["\\"Failed to fetch\\""]','"Failed to fetch"','[{"isTrusted":true}]','{"isTrusted":true}','["{}"]','"{}"','[""]','""','["\\"\\""]','""'],V=["websocket error",'\\"ResizeObserver loop'];var q="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},K="1.9.0",z=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,X=function(e){var t=new Set([e]),n=new Set,r=e.match(z);if(!r)return function(){return!1};var o=+r[1],i=+r[2],a=+r[3];if(null!=r[4])return function(t){return t===e};function s(e){return n.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(z);if(!r)return s(e);var u=+r[1],l=+r[2],p=+r[3];return null!=r[4]||o!==u?s(e):0===o?i===l&&a<=p?c(e):s(e):i<=l?c(e):s(e)}}(K),$=K.split(".")[0],W=Symbol.for("opentelemetry.js.api."+$),J=q;function Y(e,t,n,r){var o;void 0===r&&(r=!1);var i=J[W]=null!==(o=J[W])&&void 0!==o?o:{version:K};if(!r&&i[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}return i.version!==K?(a=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+K),n.error(a.stack||a.message),!1):(i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+K+"."),!0)}function Q(e){var t,n,r=null===(t=J[W])||void 0===t?void 0:t.version;if(r&&X(r))return null===(n=J[W])||void 0===n?void 0:n[e]}function Z(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+K+".");var n=J[W];n&&delete n[e]}var ee,te,ne=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re("verbose",this._namespace,e)},e}();function re(e,t,n){var r=Q("diag");if(r)return n.unshift(t),r[e].apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],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}(n),!1))}(te=ee||(ee={}))[te.NONE=0]="NONE",te[te.ERROR=30]="ERROR",te[te.WARN=50]="WARN",te[te.INFO=60]="INFO",te[te.DEBUG=70]="DEBUG",te[te.VERBOSE=80]="VERBOSE",te[te.ALL=9999]="ALL";var oe=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Q("diag");if(r)return r[e].apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],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}(t),!1))}}var t=this;t.setLogger=function(e,n){var r,o,i;if(void 0===n&&(n={logLevel:ee.INFO}),e===t){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(r=a.stack)&&void 0!==r?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var s=Q("diag"),c=function(e,t){function n(n,r){var o=t[n];return"function"==typeof o&&e>=r?o.bind(t):function(){}}return e<ee.NONE?e=ee.NONE:e>ee.ALL&&(e=ee.ALL),t=t||{},{error:n("error",ee.ERROR),warn:n("warn",ee.WARN),info:n("info",ee.INFO),debug:n("debug",ee.DEBUG),verbose:n("verbose",ee.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:ee.INFO,e);if(s&&!n.suppressOverrideMessage){var u=null!==(i=(new Error).stack)&&void 0!==i?i:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+u),c.warn("Current logger will overwrite one already registered from "+u)}return Y("diag",c,t,!0)},t.disable=function(){Z("diag",t)},t.createComponentLogger=function(e){return new ne(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),ie=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){var t=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}(e,2);return[t[0],t[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=new e(this._entries);try{for(var a=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.")}(r),s=a.next();!s.done;s=a.next()){var c=s.value;i._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),ae=Symbol("BaggageEntryMetadata"),se=oe.instance();function ce(e){return void 0===e&&(e={}),new ie(new Map(Object.entries(e)))}function ue(e){return Symbol.for(e)}var le,pe=function(){return function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var o=new e(n._currentContext);return o._currentContext.set(t,r),o},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}}(),de=new pe,fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),he=function(){function e(){}return e.prototype.createGauge=function(e,t){return Oe},e.prototype.createHistogram=function(e,t){return Re},e.prototype.createCounter=function(e,t){return we},e.prototype.createUpDownCounter=function(e,t){return Ce},e.prototype.createObservableGauge=function(e,t){return Le},e.prototype.createObservableCounter=function(e,t){return Ne},e.prototype.createObservableUpDownCounter=function(e,t){return Ie},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),me=function(){return function(){}}(),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.add=function(e,t){},t}(me),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.add=function(e,t){},t}(me),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.record=function(e,t){},t}(me),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.record=function(e,t){},t}(me),Ee=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t}(Ee),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t}(Ee),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t}(Ee),Se=new he,we=new ge,Oe=new ve,Re=new _e,Ce=new ye,Ne=new be,Le=new Te,Ie=new Ae,Pe={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},ke={set:function(e,t,n){null!=e&&(e[t]=n)}},xe=function(){function e(){}return e.prototype.active=function(){return de},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return t.call.apply(t,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([n],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}(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),De="context",Me=new xe,Ue=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return Y(De,e,oe.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(r=this._getContextManager()).with.apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e,t,n],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}(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return Q(De)||Me},e.prototype.disable=function(){this._getContextManager().disable(),Z(De,oe.instance())},e}();!function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(le||(le={}));var Be="0000000000000000",je="00000000000000000000000000000000",Fe={traceId:je,spanId:Be,traceFlags:le.NONE},He=function(){function e(e){void 0===e&&(e=Fe),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),Ge=ue("OpenTelemetry Context Key SPAN");function Ve(e){return e.getValue(Ge)||void 0}function qe(){return Ve(Ue.getInstance().active())}function Ke(e,t){return e.setValue(Ge,t)}function ze(e){return e.deleteValue(Ge)}function Xe(e,t){return Ke(e,new He(t))}function $e(e){var t;return null===(t=Ve(e))||void 0===t?void 0:t.spanContext()}var We=/^([0-9a-f]{32})$/i,Je=/^[0-9a-f]{16}$/i;function Ye(e){return We.test(e)&&e!==je}function Qe(e){return Ye(e.traceId)&&function(e){return Je.test(e)&&e!==Be}(e.spanId)}function Ze(e){return new He(e)}var et,tt,nt,rt=Ue.getInstance(),ot=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=rt.active()),null!=t&&t.root)return new He;var r=n&&$e(n);return function(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags}(r)&&Qe(r)?new He(r):new He},e.prototype.startActiveSpan=function(e,t,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(o=t,a=n):(o=t,i=n,a=r);var s=null!=i?i:rt.active(),c=this.startSpan(e,o,s),u=Ke(s,c);return rt.with(u,a,void 0,c)}},e}(),it=new ot,at=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):it},e}(),st=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new ot},e}(),ct=new st,ut=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return null!==(r=this.getDelegateTracer(e,t,n))&&void 0!==r?r:new at(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:ct},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(e,t,n)},e}();!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(et||(et={})),function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(tt||(tt={})),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(nt||(nt={}));var lt=Ue.getInstance(),pt=oe.instance(),dt=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return Se},e}(),ft=new dt,ht="metrics",mt=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return Y(ht,e,oe.instance())},e.prototype.getMeterProvider=function(){return Q(ht)||ft},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){Z(ht,oe.instance())},e}(),gt=mt.getInstance(),yt=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),vt=ue("OpenTelemetry Baggage Key");function _t(e){return e.getValue(vt)||void 0}function Et(){return _t(Ue.getInstance().active())}function bt(e,t){return e.setValue(vt,t)}function Tt(e){return e.deleteValue(vt)}var At="propagation",St=new yt,wt=function(){function e(){this.createBaggage=ce,this.getBaggage=_t,this.getActiveBaggage=Et,this.setBaggage=bt,this.deleteBaggage=Tt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return Y(At,e,oe.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=ke),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=Pe),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Z(At,oe.instance())},e.prototype._getGlobalPropagator=function(){return Q(At)||St},e}(),Ot=wt.getInstance(),Rt="trace",Ct=function(){function e(){this._proxyTracerProvider=new ut,this.wrapSpanContext=Ze,this.isSpanContextValid=Qe,this.deleteSpan=ze,this.getSpan=Ve,this.getActiveSpan=qe,this.getSpanContext=$e,this.setSpan=Ke,this.setSpanContext=Xe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=Y(Rt,this._proxyTracerProvider,oe.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return Q(Rt)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){Z(Rt,oe.instance()),this._proxyTracerProvider=new ut},e}(),Nt=Ct.getInstance(),Lt=ue("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function It(e){return!0===e.getValue(Lt)}var Pt=",",kt="baggage";function xt(e){return e.reduce((function(e,t){var n=""+e+(""!==e?Pt:"")+t;return n.length>8192?e:n}),"")}function Dt(e){return e.getAllEntries().map((function(e){var t=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}(e,2),n=t[0],r=t[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}function Mt(e){var t=e.split(";");if(!(t.length<=0)){var n=t.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());return t.length>0&&(o=function(e){return"string"!=typeof e&&(se.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:ae,toString:function(){return e}}}(t.join(";"))),{key:i,value:a,metadata:o}}}}}var Ut=function(){function e(){}return e.prototype.inject=function(e,t,n){var r=Ot.getBaggage(e);if(r&&!It(e)){var o=xt(Dt(r).filter((function(e){return e.length<=4096})).slice(0,180));o.length>0&&n.set(t,kt,o)}},e.prototype.extract=function(e,t,n){var r=n.get(t,kt),o=Array.isArray(r)?r.join(Pt):r;if(!o)return e;var i={};return 0===o.length?e:(o.split(Pt).forEach((function(e){var t=Mt(e);if(t){var n={value:t.value};t.metadata&&(n.metadata=t.metadata),i[t.key]=n}})),0===Object.entries(i).length?e:Ot.setBaggage(e,Ot.createBaggage(i)))},e.prototype.fields=function(){return[kt]},e}(),Bt=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.")},jt=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};function Ft(e){var t,n,r={};if("object"!=typeof e||null==e)return r;try{for(var o=Bt(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=jt(i.value,2),s=a[0],c=a[1];Ht(s)?Gt(c)?Array.isArray(c)?r[s]=c.slice():r[s]=c:pt.warn("Invalid attribute value set for key: "+s):pt.warn("Invalid attribute key: "+s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function Ht(e){return"string"==typeof e&&e.length>0}function Gt(e){return null==e||(Array.isArray(e)?function(e){var t,n,r;try{for(var o=Bt(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!r){if(Vt(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0}(e):Vt(e))}function Vt(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var qt;function Kt(e){try{!function(e){pt.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){for(var t={},n=e;null!==n;)Object.getOwnPropertyNames(n).forEach((function(e){if(!t[e]){var r=n[e];r&&(t[e]=String(r))}})),n=Object.getPrototypeOf(n);return t}(e))}(e))}(e)}catch(e){}}!function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(qt||(qt={}));var zt=["OTEL_SDK_DISABLED"];function Xt(e){return zt.indexOf(e)>-1}var $t=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Wt(e){return $t.indexOf(e)>-1}var Jt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Yt(e){return Jt.indexOf(e)>-1}var Qt=1/0,Zt=128,en={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ee.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Qt,OTEL_ATTRIBUTE_COUNT_LIMIT:Zt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Qt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Zt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Qt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Zt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:qt.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function tn(e,t,n){if(void 0!==n[e]){var r=String(n[e]);t[e]="true"===r.toLowerCase()}}function nn(e,t,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[e]){var i=Number(n[e]);isNaN(i)||(t[e]=i<r?r:i>o?o:i)}}function rn(e,t,n,r){void 0===r&&(r=",");var o=n[e];"string"==typeof o&&(t[e]=o.split(r).map((function(e){return e.trim()})))}var on={ALL:ee.ALL,VERBOSE:ee.VERBOSE,DEBUG:ee.DEBUG,INFO:ee.INFO,WARN:ee.WARN,ERROR:ee.ERROR,NONE:ee.NONE};function an(e,t,n){var r=n[e];if("string"==typeof r){var o=on[r.toUpperCase()];null!=o&&(t[e]=o)}}function sn(e){var t={};for(var n in en){var r=n;if("OTEL_LOG_LEVEL"===r)an(r,t,e);else if(Xt(r))tn(r,t,e);else if(Wt(r))nn(r,t,e);else if(Yt(r))rn(r,t,e);else{var o=e[r];null!=o&&(t[r]=String(o))}}return t}var cn="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{};function un(){var e=sn(cn);return Object.assign({},en,e)}function ln(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function pn(e){for(var t=new Uint8Array(e.length/2),n=0,r=0;r<e.length;r+=2){var o=ln(e.charCodeAt(r)),i=ln(e.charCodeAt(r+1));t[n++]=o<<4|i}return t}var dn,fn,hn=performance,mn="exception.type",gn="exception.message",yn="http.method",vn="http.url",_n="http.host",En="http.scheme",bn="http.status_code",Tn="http.user_agent",An="deployment.environment",Sn="service.name",wn="telemetry.sdk.name",On="telemetry.sdk.language",Rn="telemetry.sdk.version",Cn=((dn={})[wn]="opentelemetry",dn["process.runtime.name"]="browser",dn[On]="webjs",dn[Rn]="1.26.0",dn),Nn=Math.pow(10,6),Ln=Math.pow(10,9);function In(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*Nn)]}function Pn(){var e=hn.timeOrigin;if("number"!=typeof e){var t=hn;e=t.timing&&t.timing.fetchStart}return e}function kn(e){return Bn(In(Pn()),In("number"==typeof e?e:hn.now()))}function xn(e){if(Mn(e))return e;if("number"==typeof e)return e<Pn()?kn(e):In(e);if(e instanceof Date)return In(e.getTime());throw TypeError("Invalid input type")}function Dn(e){return e[0]*Ln+e[1]}function Mn(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function Un(e){return Mn(e)||"number"==typeof e||e instanceof Date}function Bn(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Ln&&(n[1]-=Ln,n[0]+=1),n}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(fn||(fn={}));var jn=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((function(e){return"function"==typeof e.fields?e.fields():[]})).reduce((function(e,t){return e.concat(t)}),[])))}return e.prototype.inject=function(e,t,n){var r,o;try{for(var i=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.")}(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(e,t,n)}catch(e){pt.warn("Failed to inject with "+s.constructor.name+". Err: "+e.message)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.extract=function(e,t,n){return this._propagators.reduce((function(e,r){try{return r.extract(e,t,n)}catch(e){pt.warn("Failed to inject with "+r.constructor.name+". Err: "+e.message)}return e}),e)},e.prototype.fields=function(){return this._fields.slice()},e}(),Fn="[_0-9a-z-*/]",Hn=new RegExp("^(?:[a-z]"+Fn+"{0,255}|[a-z0-9]"+Fn+"{0,240}@[a-z]"+Fn+"{0,13})$"),Gn=/^[ -~]{0,255}[!-~]$/,Vn=/,|=/,qn=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce((function(t,n){return t.push(n+"="+e.get(n)),t}),[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce((function(e,t){var n=t.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,t.length);(function(e){return Hn.test(e)})(o)&&function(e){return Gn.test(e)&&!Vn.test(e)}(i)&&e.set(o,i)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),Kn="traceparent",zn="tracestate",Xn=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),$n=function(){function e(){}return e.prototype.inject=function(e,t,n){var r=Nt.getSpanContext(e);if(r&&!It(e)&&Qe(r)){var o="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||le.NONE).toString(16);n.set(t,Kn,o),r.traceState&&n.set(t,zn,r.traceState.serialize())}},e.prototype.extract=function(e,t,n){var r=n.get(t,Kn);if(!r)return e;var o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return e;var i=function(e){var t=Xn.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}(o);if(!i)return e;i.isRemote=!0;var a=n.get(t,zn);if(a){var s=Array.isArray(a)?a.join(","):a;i.traceState=new qn("string"==typeof s?s:void 0)}return Nt.setSpanContext(e,i)},e.prototype.fields=function(){return[Kn,zn]},e}(),Wn=Function.prototype.toString,Jn=Wn.call(Object),Yn=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Qn=Object.prototype,Zn=Qn.hasOwnProperty,er=Symbol?Symbol.toStringTag:void 0,tr=Qn.toString;function nr(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||"[object Object]"!==function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":er&&er in Object(e)?function(e){var t=Zn.call(e,er),n=e[er],r=!1;try{e[er]=void 0,r=!0}catch(e){}var o=tr.call(e);return r&&(t?e[er]=n:delete e[er]),o}(e):function(e){return tr.call(e)}(e)}(e))return!1;var t=Yn(e);if(null===t)return!0;var n=Zn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Wn.call(n)===Jn}function rr(e){return ar(e)?e.slice():e}function or(e,t,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,ur(e)||ur(t)||sr(t))o=rr(t);else if(ar(e)){if(o=e.slice(),ar(t))for(var i=0,a=t.length;i<a;i++)o.push(rr(t[i]));else if(cr(t))for(i=0,a=(s=Object.keys(t)).length;i<a;i++)o[c=s[i]]=rr(t[c])}else if(cr(e))if(cr(t)){if(!function(e,t){return!(!nr(e)||!nr(t))}(e,t))return t;var s;for(o=Object.assign({},e),i=0,a=(s=Object.keys(t)).length;i<a;i++){var c,u=t[c=s[i]];if(ur(u))void 0===u?delete o[c]:o[c]=u;else{var l=o[c],p=u;if(ir(e,c,r)||ir(t,c,r))delete o[c];else{if(cr(l)&&cr(p)){var d=r.get(l)||[],f=r.get(p)||[];d.push({obj:e,key:c}),f.push({obj:t,key:c}),r.set(l,d),r.set(p,f)}o[c]=or(o[c],u,n,r)}}}}else o=t;return o}}function ir(e,t,n){for(var r=n.get(e[t])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===t&&a.obj===e)return!0}return!1}function ar(e){return Array.isArray(e)}function sr(e){return"function"==typeof e}function cr(e){return!ur(e)&&!ar(e)&&!sr(e)&&"object"==typeof e}function ur(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}function lr(e,t){return"string"==typeof t?e===t:!!e.match(t)}function pr(e,t){var n,r;if(!t)return!1;try{for(var o=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.")}(t),i=o.next();!i.done;i=o.next())if(lr(e,i.value))return!0}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}var dr=function(){function e(){var e=this;this._promise=new Promise((function(t,n){e._resolve=t,e._reject=n}))}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),fr=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new dr}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([this._that],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}(n),!1))).then((function(e){return t._deferred.resolve(e)}),(function(e){return t._deferred.reject(e)}))}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}(),hr=function(e){return"string"!=typeof e||0===e.length?{}:e.split(Pt).map((function(e){return Mt(e)})).filter((function(e){return void 0!==e&&e.value.length>0})).reduce((function(e,t){return e[t.key]=t.value,e}),{})},mr=function(){function e(){}return e.prototype.emit=function(e){},e}(),gr=function(){function e(){}return e.prototype.getLogger=function(e,t,n){return new mr},e}(),yr=new gr,vr="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},_r=Symbol.for("io.opentelemetry.js.api.logs"),Er=vr,br=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return Er[_r]?this.getLoggerProvider():(Er[_r]=function(e,t,n){return function(e){return 1===e?t:n}}(0,e,yr),e)},e.prototype.getLoggerProvider=function(){var e,t;return null!==(t=null===(e=Er[_r])||void 0===e?void 0:e.call(Er,1))&&void 0!==t?t:yr},e.prototype.getLogger=function(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)},e.prototype.disable=function(){delete Er[_r]},e}(),Tr=br.getInstance();function Ar(e){return"function"==typeof e}var Sr=console.error.bind(console);function wr(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function Or(e){e&&e.logger&&(Ar(e.logger)?Sr=e.logger:Sr("new logger isn't a function, not replacing"))}function Rr(e,t,n){if(e&&e[t]){if(!n)return Sr("no wrapper function"),void Sr((new Error).stack);if(Ar(e[t])&&Ar(n)){var r=e[t],o=n(r,t);return wr(o,"__original",r),wr(o,"__unwrap",(function(){e[t]===o&&wr(e,t,r)})),wr(o,"__wrapped",!0),wr(e,t,o),o}Sr("original object and wrapper must be functions")}else Sr("no original function "+t+" to wrap")}function Cr(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void Sr("no original to unwrap to -- has "+t+" already been unwrapped?"):(Sr("no function to unwrap."),void Sr((new Error).stack))}Or.wrap=Rr,Or.massWrap=function(e,t,n){if(!e)return Sr("must provide one or more modules to patch"),void Sr((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){Rr(e,t,n)}))})):Sr("must provide one or more functions to wrap on modules")},Or.unwrap=Cr,Or.massUnwrap=function(e,t){if(!e)return Sr("must provide one or more modules to patch"),void Sr((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){Cr(e,t)}))})):Sr("must provide one or more functions to unwrap on modules")};var Nr=Or,Lr=function(){return Lr=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},Lr.apply(this,arguments)},Ir=function(){function e(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this._config={},this._wrap=Nr.wrap,this._unwrap=Nr.unwrap,this._massWrap=Nr.massWrap,this._massUnwrap=Nr.massUnwrap,this.setConfig(n),this._diag=pt.createComponentLogger({namespace:e}),this._tracer=Nt.getTracer(e,t),this._meter=gt.getMeter(e,t),this._logger=Tr.getLogger(e,t),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var e,t=null!==(e=this.init())&&void 0!==e?e:[];return Array.isArray(t)?t:[t]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(e){this._config=Lr({enabled:!0},e)},e.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}},e}(),Pr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kr=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o._config.enabled&&o.enable(),o}return Pr(t,e),t}(Ir);function xr(e,t,n){var r,o;try{o=e()}catch(e){r=e}finally{if(t(r,o),r&&!n)throw r;return o}}function Dr(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var Mr,Ur=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},Br=function(){function e(e,t,n,r,o,i,a,s,c,u){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:nt.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=r,this.parentSpanId=i,this.kind=o,this.links=a;var l=Date.now();this._performanceStartTime=hn.now(),this._performanceOffset=l-(this._performanceStartTime+Pn()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=u&&this.setAttributes(u),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()?this:0===e.length?(pt.warn("Invalid attribute key: "+e),this):Gt(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(pt.warn("Invalid attribute value set for key: "+e),this)},e.prototype.setAttributes=function(e){var t,n;try{for(var r=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.entries(e)),o=r.next();!o.done;o=r.next()){var i=Ur(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return pt.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&pt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Un(t)&&(Un(n)||(n=t),t=void 0);var r=Ft(t);return this.events.push({name:e,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(e){return this.links.push(e),this},e.prototype.addLinks=function(e){var t;return(t=this.links).push.apply(t,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],Ur(e),!1)),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?pt.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(e),this._duration=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Ln),[n,r]}(this.startTime,this.endTime),this._duration[0]<0&&(pt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&pt.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e<hn.now())return kn(e+this._performanceOffset);if("number"==typeof e)return In(e);if(e instanceof Date)return In(e.getTime());if(Mn(e))return e;if(this._startTimeProvided)return In(Date.now());var t=hn.now()-this._performanceStartTime;return Bn(this.startTime,In(t))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(e,t){var n={};"string"==typeof e?n[gn]=e:e&&(e.code?n[mn]=e.code.toString():e.name&&(n[mn]=e.name),e.message&&(n[gn]=e.message),e.stack&&(n["exception.stacktrace"]=e.stack)),n[mn]||n[gn]?this.addEvent("exception",n,t):pt.warn("Failed to record an exception "+e)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&pt.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(e,t){return e.length<=t?e:e.substr(0,t)},e.prototype._truncateToSize=function(e){var t=this,n=this._attributeValueLengthLimit;return n<=0?(pt.warn("Attribute value limit must be positive, got "+n),e):"string"==typeof e?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map((function(e){return"string"==typeof e?t._truncateToLimitUtil(e,n):e})):e},e}();!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(Mr||(Mr={}));var jr=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Mr.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Fr=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Mr.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),Hr=function(){function e(e){var t,n,r,o;this._root=e.root,this._root||(Kt(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Fr),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new Fr,this._remoteParentNotSampled=null!==(n=e.remoteParentNotSampled)&&void 0!==n?n:new jr,this._localParentSampled=null!==(r=e.localParentSampled)&&void 0!==r?r:new Fr,this._localParentNotSampled=null!==(o=e.localParentNotSampled)&&void 0!==o?o:new jr}return e.prototype.shouldSample=function(e,t,n,r,o,i){var a=Nt.getSpanContext(e);return a&&Qe(a)?a.isRemote?a.traceFlags&le.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,o,i):this._remoteParentNotSampled.shouldSample(e,t,n,r,o,i):a.traceFlags&le.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,o,i):this._localParentNotSampled.shouldSample(e,t,n,r,o,i):this._root.shouldSample(e,t,n,r,o,i)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),Gr=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:Ye(t)&&this._accumulate(t)<this._upperBound?Mr.RECORD_AND_SAMPLED:Mr.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n<e.length/8;n++){var r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}(),Vr=un(),qr=qt.AlwaysOn;function Kr(){var e=un();return{sampler:zr(Vr),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function zr(e){switch(void 0===e&&(e=un()),e.OTEL_TRACES_SAMPLER){case qt.AlwaysOn:return new Fr;case qt.AlwaysOff:return new jr;case qt.ParentBasedAlwaysOn:return new Hr({root:new Fr});case qt.ParentBasedAlwaysOff:return new Hr({root:new jr});case qt.TraceIdRatio:return new Gr(Xr(e));case qt.ParentBasedTraceIdRatio:return new Hr({root:new Gr(Xr(e))});default:return pt.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+qr+'".'),new Fr}}function Xr(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return pt.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(pt.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):t<0||t>1?(pt.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):t}var $r=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=un();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new fr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(pt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&le.SAMPLED&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then((function(){return e.onShutdown()})).then((function(){return e._flushAll()})).then((function(){return e._exporter.shutdown()}))},e.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&pt.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(pt.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},e.prototype._flushAll=function(){var e=this;return new Promise((function(t,n){for(var r=[],o=0,i=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);o<i;o++)r.push(e._flushOneBatch());Promise.all(r).then((function(){t()})).catch(n)}))},e.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((function(t,n){var r=setTimeout((function(){n(new Error("Timeout"))}),e._exportTimeoutMillis);lt.with(function(e){return e.setValue(Lt,!0)}(lt.active()),(function(){var o;e._finishedSpans.length<=e._maxExportBatchSize?(o=e._finishedSpans,e._finishedSpans=[]):o=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var i=function(){return e._exporter.export(o,(function(e){var o;clearTimeout(r),e.code===fn.SUCCESS?t():n(null!==(o=e.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))}))},a=null,s=0,c=o.length;s<c;s++){var u=o[s];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(null!=a||(a=[]),a.push(u.resource.waitForAsyncAttributes()))}null===a?i():Promise.all(a).then(i,(function(e){Kt(e),n(e)}))}))}))},e.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var t=function(){e._isExporting=!0,e._flushOneBatch().finally((function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())})).catch((function(t){e._isExporting=!1,Kt(t)}))};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout((function(){return t()}),this._scheduledDelayMillis))}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),Wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.onInit(n),r}return Wr(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush()},this._pageHideListener=function(){t.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}($r),Yr=function(){return function(){this.generateTraceId=Zr(16),this.generateSpanId=Zr(8)}}(),Qr=Array(32);function Zr(e){return function(){for(var t=0;t<2*e;t++)Qr[t]=Math.floor(16*Math.random())+48,Qr[t]>=58&&(Qr[t]+=39);return String.fromCharCode.apply(null,Qr.slice(0,2*e))}}var eo,to=function(){function e(e,t,n){this._tracerProvider=n;var r=function(e){var t={sampler:zr()},n=Kr(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}(t);this._sampler=r.sampler,this._generalLimits=r.generalLimits,this._spanLimits=r.spanLimits,this._idGenerator=t.idGenerator||new Yr,this.resource=n.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,n){var r,o,i;void 0===t&&(t={}),void 0===n&&(n=lt.active()),t.root&&(n=Nt.deleteSpan(n));var a=Nt.getSpan(n);if(It(n))return pt.debug("Instrumentation suppressed, returning Noop Span"),Nt.wrapSpanContext(Fe);var s,c,u,l=null==a?void 0:a.spanContext(),p=this._idGenerator.generateSpanId();l&&Nt.isSpanContextValid(l)?(s=l.traceId,c=l.traceState,u=l.spanId):s=this._idGenerator.generateTraceId();var d=null!==(r=t.kind)&&void 0!==r?r:tt.INTERNAL,f=(null!==(o=t.links)&&void 0!==o?o:[]).map((function(e){return{context:e.context,attributes:Ft(e.attributes)}})),h=Ft(t.attributes),m=this._sampler.shouldSample(n,s,e,d,h,f);c=null!==(i=m.traceState)&&void 0!==i?i:c;var g={traceId:s,spanId:p,traceFlags:m.decision===et.RECORD_AND_SAMPLED?le.SAMPLED:le.NONE,traceState:c};if(m.decision===et.NOT_RECORD)return pt.debug("Recording is off, propagating context in a non-recording span"),Nt.wrapSpanContext(g);var y=Ft(Object.assign(h,m.attributes));return new Br(this,n,e,g,d,u,f,t.startTime,void 0,y)},e.prototype.startActiveSpan=function(e,t,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(o=t,a=n):(o=t,i=n,a=r);var s=null!=i?i:lt.active(),c=this.startSpan(e,o,s),u=Nt.setSpan(s,c);return lt.with(u,a,void 0,c)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),no=function(){return no=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},no.apply(this,arguments)},ro=function(){function e(e,t){var n,r=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!==(n=this._attributes)&&void 0!==n?n:{},this._asyncAttributesPromise=null==t?void 0:t.then((function(e){return r._attributes=Object.assign({},r._attributes,e),r.asyncAttributesPending=!1,e}),(function(e){return pt.debug("a resource's async attributes promise rejected: %s",e),r.asyncAttributesPending=!1,{}}))}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[Sn]="unknown_service",t[On]=Cn[On],t[wn]=Cn[wn],t[Rn]=Cn[Rn],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&pt.error("Accessing resource attributes before async attributes settled"),null!==(e=this._attributes)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.merge=function(t){var n,r=this;if(!t)return this;var o=no(no({},this._syncAttributes),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(o);var i=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then((function(e){var n,o=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}(e,2),i=o[0],a=o[1];return no(no(no(no({},r._syncAttributes),i),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes),a)}));return new e(o,i)},e.EMPTY=new e({}),e}(),oo=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.")},io=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,n=[];try{for(var r=oo(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.forceFlush())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise((function(e){Promise.all(n).then((function(){e()})).catch((function(t){Kt(t||new Error("MultiSpanProcessor: forceFlush failed")),e()}))}))},e.prototype.onStart=function(e,t){var n,r;try{for(var o=oo(this._spanProcessors),i=o.next();!i.done;i=o.next())i.value.onStart(e,t)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(e){var t,n;try{for(var r=oo(this._spanProcessors),o=r.next();!o.done;o=r.next())o.value.onEnd(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,n=[];try{for(var r=oo(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.shutdown())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise((function(e,t){Promise.all(n).then((function(){e()}),t)}))},e}(),ao=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(eo||(eo={}));var so,co,uo,lo,po=function(){function e(e){var t;void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=or(n,e.shift(),0,r);return n}({},Kr(),function(e){var t,n,r,o,i,a,s,c,u,l,p,d,f=Object.assign({},e.spanLimits),h=sn(cn);return f.attributeCountLimit=null!==(a=null!==(i=null!==(o=null!==(n=null===(t=e.spanLimits)||void 0===t?void 0:t.attributeCountLimit)&&void 0!==n?n:null===(r=e.generalLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==o?o:h.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==i?i:h.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==a?a:Zt,f.attributeValueLengthLimit=null!==(d=null!==(p=null!==(l=null!==(c=null===(s=e.spanLimits)||void 0===s?void 0:s.attributeValueLengthLimit)&&void 0!==c?c:null===(u=e.generalLimits)||void 0===u?void 0:u.attributeValueLengthLimit)&&void 0!==l?l:h.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==p?p:h.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==d?d:Qt,Object.assign({},e,{spanLimits:f})}(e));this.resource=null!==(t=n.resource)&&void 0!==t?t:ro.empty(),this.resource=ro.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var o=new Jr(r);this.activeSpanProcessor=o}else this.activeSpanProcessor=new ao}return e.prototype.getTracer=function(e,t,n){var r=e+"@"+(t||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new to({name:e,version:t,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(e){return pt.error("Error while trying to shutdown current span processor",e)})),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new io(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),Nt.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&<.setGlobalContextManager(e.contextManager),e.propagator&&Ot.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map((function(t){return new Promise((function(n){var r,o=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+e+" ms")),r=eo.timeout}),e);t.forceFlush().then((function(){clearTimeout(o),r!==eo.timeout&&(r=eo.resolved,n(r))})).catch((function(e){clearTimeout(o),r=eo.error,n(e)}))}))}));return new Promise((function(e,n){Promise.all(t).then((function(t){var r=t.filter((function(e){return e!==eo.resolved}));r.length>0?n(r):e()})).catch((function(e){return n([e])}))}))},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null===(t=this.constructor._registeredPropagators.get(e))||void 0===t?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null===(t=this.constructor._registeredExporters.get(e))||void 0===t?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set(un().OTEL_PROPAGATORS)),n=t.map((function(t){var n=e._getPropagator(t);return n||pt.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),n})),r=n.reduce((function(e,t){return t&&e.push(t),e}),[]);if(0!==r.length)return 1===t.length?r[0]:new jn({propagators:r})},e.prototype._buildExporterFromEnv=function(){var e=un().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||pt.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new $n}],["baggage",function(){return new Ut}]]),e._registeredExporters=new Map,e}(),fo=function(){function e(){this._enabled=!1,this._currentContext=de}return e.prototype._bindFunction=function(e,t){void 0===e&&(e=de);var n=this,r=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(e,(function(){return t.apply(r,o)}))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t},e.prototype.disable=function(){return this._currentContext=de,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=de),this},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=this._currentContext;this._currentContext=e||de;try{return t.call.apply(t,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([n],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}(r),!1))}finally{this._currentContext=i}},e}(),ho=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mo=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;if(t.contextManager)throw"contextManager should be defined in register method not in constructor";if(t.propagator)throw"propagator should be defined in register method not in constructor";return n}return ho(t,e),t.prototype.register=function(t){void 0===t&&(t={}),void 0===t.contextManager&&(t.contextManager=new fo),t.contextManager&&t.contextManager.enable(),e.prototype.register.call(this,t)},t}(po);function go(e,t){return t in e}function yo(e,t,n,r){var o=void 0,i=void 0;go(n,t)&&"number"==typeof n[t]&&(o=n[t]);var a=so.FETCH_START;if(go(n,a)&&"number"==typeof n[a]&&(i=n[a]),void 0!==o&&void 0!==i&&o>=i)return e.addEvent(t,o),e}function vo(e,t){yo(e,so.FETCH_START,t),yo(e,so.DOMAIN_LOOKUP_START,t),yo(e,so.DOMAIN_LOOKUP_END,t),yo(e,so.CONNECT_START,t),go(t,"name")&&t.name.startsWith("https:")&&yo(e,so.SECURE_CONNECTION_START,t),yo(e,so.CONNECT_END,t),yo(e,so.REQUEST_START,t),yo(e,so.RESPONSE_START,t),yo(e,so.RESPONSE_END,t);var n=t[so.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute("http.response_content_length",n);var r=t[so.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute("http.response_content_length_uncompressed",r)}function _o(){return"undefined"!=typeof location?location.origin:void 0}function Eo(e,t,n,r,o,i){void 0===o&&(o=new WeakSet);var a=bo(e),s=function(e,t,n,r,o,i){var a=Dn(t),s=Dn(n),c=r.filter((function(t){var n=Dn(xn(t[so.FETCH_START])),r=Dn(xn(t[so.RESPONSE_END]));return t.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&t.name===e&&n>=a&&r<=s}));return c.length>0&&(c=c.filter((function(e){return!o.has(e)}))),c}(e=a.toString(),t,n,r,o,i);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var c=function(e){return e.slice().sort((function(e,t){var n=e[so.FETCH_START],r=t[so.FETCH_START];return n>r?1:n<r?-1:0}))}(s);if(a.origin!==_o()&&c.length>1){var u=c[0],l=function(e,t,n){for(var r,o=Dn(n),i=Dn(xn(t)),a=e[1],s=e.length,c=1;c<s;c++){var u=e[c],l=Dn(xn(u[so.FETCH_START])),p=o-Dn(xn(u[so.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=u)}return a}(c,u[so.RESPONSE_END],n),p=u[so.RESPONSE_END];return l[so.FETCH_START]<p&&(l=u,u=void 0),{corsPreFlightRequest:u,mainRequest:l}}return{mainRequest:s[0]}}function bo(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var t=(co||(co=document.createElement("a")),co);return t.href=e,t}function To(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(e,t){var n=e.nodeType,r=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);return n=n.filter((function(n){var r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName})),n.length>=1?n.indexOf(e)+1:0}(e),o="";if(n===Node.ELEMENT_NODE){var i=e.getAttribute("id");if(t&&i)return'//*[@id="'+i+'"]';o=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}return o&&r>1?"/"+o+"["+r+"]":"/"+o}(e,t);if(t&&n.indexOf("@id")>0)return n;var r="";return e.parentNode&&(r+=To(e.parentNode,!1)),r+n}function Ao(e,t){var n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),bo(e).origin===_o()||n.some((function(t){return lr(e,t)}))}!function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(so||(so={})),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(uo||(uo={})),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(lo||(lo={}));var So,wo={"first-paint":lo.FIRST_PAINT,"first-contentful-paint":lo.FIRST_CONTENTFUL_PAINT},Oo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-document-load","0.40.0",t)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return Oo(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout((function(){e._collectPerformance()}))},t.prototype._addResourcesSpans=function(e){var t,n,r=this,o=null===(n=(t=hn).getEntriesByType)||void 0===n?void 0:n.call(t,"resource");o&&o.forEach((function(t){r._initResourceSpan(t,e)}))},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find((function(e){return e.getAttribute("name")===Kn})),n=function(){var e,t,n={},r=null===(t=(e=hn).getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0];if(r)Object.values(so).forEach((function(e){if(go(r,e)){var t=r[e];"number"==typeof t&&(n[e]=t)}}));else{var o=hn.timing;o&&Object.values(so).forEach((function(e){if(go(o,e)){var t=o[e];"number"==typeof t&&(n[e]=t)}}))}return n}(),r=t&&t.content||"";lt.with(Ot.extract(de,{traceparent:r}),(function(){var t,r=e._startSpan(uo.DOCUMENT_LOAD,so.FETCH_START,n);r&&(lt.with(Nt.setSpan(lt.active(),r),(function(){var t=e._startSpan(uo.DOCUMENT_FETCH,so.FETCH_START,n);t&&(t.setAttribute(vn,location.href),lt.with(Nt.setSpan(lt.active(),t),(function(){var r;e.getConfig().ignoreNetworkEvents||vo(t,n),e._addCustomAttributesOnSpan(t,null===(r=e.getConfig().applyCustomAttributesOnSpan)||void 0===r?void 0:r.documentFetch),e._endSpan(t,so.RESPONSE_END,n)})))})),r.setAttribute(vn,location.href),r.setAttribute(Tn,navigator.userAgent),e._addResourcesSpans(r),e.getConfig().ignoreNetworkEvents||(yo(r,so.FETCH_START,n),yo(r,so.UNLOAD_EVENT_START,n),yo(r,so.UNLOAD_EVENT_END,n),yo(r,so.DOM_INTERACTIVE,n),yo(r,so.DOM_CONTENT_LOADED_EVENT_START,n),yo(r,so.DOM_CONTENT_LOADED_EVENT_END,n),yo(r,so.DOM_COMPLETE,n),yo(r,so.LOAD_EVENT_START,n),yo(r,so.LOAD_EVENT_END,n)),e.getConfig().ignorePerformancePaintEvents||function(e){var t,n,r=null===(n=(t=hn).getEntriesByType)||void 0===n?void 0:n.call(t,"paint");r&&r.forEach((function(t){var n=t.name,r=t.startTime;go(wo,n)&&e.addEvent(wo[n],r)}))}(r),e._addCustomAttributesOnSpan(r,null===(t=e.getConfig().applyCustomAttributesOnSpan)||void 0===t?void 0:t.documentLoad),e._endSpan(r,so.LOAD_EVENT_END,n))}))},t.prototype._endSpan=function(e,t,n){e&&(go(n,t)?e.end(n[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var n,r=this._startSpan(uo.RESOURCE_FETCH,so.FETCH_START,e,t);r&&(r.setAttribute(vn,e.name),this.getConfig().ignoreNetworkEvents||vo(r,e),this._addCustomAttributesOnResourceSpan(r,e,null===(n=this.getConfig().applyCustomAttributesOnSpan)||void 0===n?void 0:n.resourceFetch),this._endSpan(r,so.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,n,r){if(go(n,t)&&"number"==typeof n[t])return this.tracer.startSpan(e,{startTime:n[t]},r?Nt.setSpan(lt.active(),r):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._addCustomAttributesOnSpan=function(e,t){var n=this;t&&xr((function(){return t(e)}),(function(e){e&&n._diag.error("addCustomAttributesOnSpan",e)}),!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,n){var r=this;n&&xr((function(){return n(e,t)}),(function(e){e&&r._diag.error("addCustomAttributesOnResourceSpan",e)}),!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(kr);!function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"}(So||(So={}));var Co,No,Lo="0.53.0",Io=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po="object"==typeof process&&"node"===(null===(Co=process.release)||void 0===Co?void 0:Co.name),ko=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-fetch",Lo,t)||this;return n.component="fetch",n.version=Lo,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return Io(t,e),t.prototype.init=function(){},t.prototype._addChildSpan=function(e,t){var n=this.tracer.startSpan("CORS Preflight",{startTime:t[so.FETCH_START]},Nt.setSpan(lt.active(),e));this.getConfig().ignoreNetworkEvents||vo(n,t),n.end(t[so.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var n=bo(t.url);e.setAttribute(bn,t.status),null!=t.statusText&&e.setAttribute(So.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(_n,n.host),e.setAttribute(En,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(Tn,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!Ao(t,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};return Ot.inject(lt.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}e instanceof Request||e.headers instanceof Headers||e.headers instanceof Map?Ot.inject(lt.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}}):(n={},Ot.inject(lt.active(),n),e.headers=Object.assign({},n,e.headers||{}))},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var n;if(void 0===t&&(t={}),!pr(e,this.getConfig().ignoreUrls)){var r=(t.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:tt.CLIENT,attributes:(n={},n[So.COMPONENT]=this.moduleName,n[yn]=r,n[vn]=e,n)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n){var r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=Eo(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var a=o.corsPreFlightRequest;a&&(this._addChildSpan(e,a),this._markResourceAsUsed(a)),this.getConfig().ignoreNetworkEvents||vo(e,i)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,n){var r=this,o=In(Date.now()),i=kn();this._addFinalSpanAttributes(e,n),setTimeout((function(){var n;null===(n=t.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(e,t,i),r._tasksCount--,r._clearResources(),e.end(o)}),300)},t.prototype._patchConstructor=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,i=bo(e[0]instanceof Request?e[0].url:String(e[0])).href,a=e[0]instanceof Request?e[0]:e[1]||{},s=n._createSpan(i,a);if(!s)return t.apply(this,e);var c=n._prepareSpanData(i);function u(e,t){n._applyAttributesAfterFetch(e,a,t),n._endSpan(e,c,{status:t.status||0,statusText:t.message,url:i})}function l(e,t){n._applyAttributesAfterFetch(e,a,t),t.status>=200&&t.status<400?n._endSpan(e,c,t):n._endSpan(e,c,{status:t.status,statusText:t.statusText,url:i})}function p(e,t,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then((function(t){t.done?l(e,o):s()}),(function(t){u(e,t)}))};s()}else l(e,n)}finally{t(n)}}function d(e,t,n){try{u(e,n)}finally{t(n)}}return new Promise((function(e,r){return lt.with(Nt.setSpan(lt.active(),s),(function(){return n._addHeaders(a,i),n._tasksCount++,t.apply(o,a instanceof Request?[a]:[i,a]).then(p.bind(o,s,e),d.bind(o,s,r))}))}))}}},t.prototype._applyAttributesAfterFetch=function(e,t,n){var r=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&xr((function(){return o(e,t,n)}),(function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)}),!0)},t.prototype._prepareSpanData=function(e){var t=kn(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};var r=new PerformanceObserver((function(t){t.getEntries().forEach((function(t){"fetch"===t.initiatorType&&t.name===e&&n.push(t)}))}));return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}},t.prototype.enable=function(){Po?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(Dr(fetch)&&(this._unwrap(cn,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(cn,"fetch",this._patchConstructor()))},t.prototype.disable=function(){Po||(this._unwrap(cn,"fetch"),this._usedResources=new WeakSet)},t}(kr);!function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(No||(No={}));var xo,Do="0.53.0";!function(e){e.HTTP_STATUS_TEXT="http.status_text"}(xo||(xo={}));var Mo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uo=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Do,t)||this;return n.component="xml-http-request",n.version=Do,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return Mo(t,e),t.prototype.init=function(){},t.prototype._addHeaders=function(e,t){if(!Ao(bo(t).href,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};return Ot.inject(lt.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var r={};Ot.inject(lt.active(),r),Object.keys(r).forEach((function(t){e.setRequestHeader(t,String(r[t]))}))},t.prototype._addChildSpan=function(e,t){var n=this;lt.with(Nt.setSpan(lt.active(),e),(function(){var e=n.tracer.startSpan("CORS Preflight",{startTime:t[so.FETCH_START]});n.getConfig().ignoreNetworkEvents||vo(e,t),e.end(t[so.RESPONSE_END])}))},t.prototype._addFinalSpanAttributes=function(e,t,n){if("string"==typeof n){var r=bo(n);void 0!==t.status&&e.setAttribute(bn,t.status),void 0!==t.statusText&&e.setAttribute(xo.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(_n,r.host),e.setAttribute(En,r.protocol.replace(":","")),e.setAttribute(Tn,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var n=this,r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&xr((function(){return r(e,t)}),(function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)}),!0)},t.prototype._addResourceObserver=function(e,t){var n=this._xhrMem.get(e);!n||"function"!=typeof PerformanceObserver||"function"!=typeof PerformanceResourceTiming||(n.createdResources={observer:new PerformanceObserver((function(e){var r=e.getEntries(),o=bo(t);r.forEach((function(e){"xmlhttprequest"===e.initiatorType&&e.name===o.href&&n.createdResources&&n.createdResources.entries.push(e)}))})),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(hn.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n,r,o){if(n&&r&&o&&e.createdResources){var i=e.createdResources.entries;(!i||!i.length)&&(i=hn.getEntriesByType("resource"));var a=Eo(bo(n).href,r,o,i,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var c=a.corsPreFlightRequest;c&&(this._addChildSpan(t,c),this._markResourceAsUsed(c)),this.getConfig().ignoreNetworkEvents||vo(t,s)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,n){var r;if(!pr(t,this.getConfig().ignoreUrls)){var o=n.toUpperCase(),i=this.tracer.startSpan(o,{kind:tt.CLIENT,attributes:(r={},r[yn]=n,r[vn]=bo(t).toString(),r)});return i.addEvent(No.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:i,spanUrl:t}),i}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[0],i=e[1];return n._createSpan(this,i,o),t.apply(this,e)}}},t.prototype._patchSend=function(){var e=this;function t(t,n){var r=e._xhrMem.get(n);if(r){r.status=n.status,r.statusText=n.statusText,e._xhrMem.delete(n),r.span&&e._applyAttributesAfterXHR(r.span,n);var o=kn(),i=Date.now();setTimeout((function(){!function(t,n,r,o){var i=n.callbackToRemoveEvents;"function"==typeof i&&i();var a=n.span,s=n.spanUrl,c=n.sendStartTime;a&&(e._findResourceAndAddNetworkEvents(n,a,s,c,r),a.addEvent(t,o),e._addFinalSpanAttributes(a,n,s),a.end(o),e._tasksCount--),e._clearResources()}(t,r,o,i)}),300)}}function n(){t(No.EVENT_ERROR,this)}function r(){t(No.EVENT_ABORT,this)}function o(){t(No.EVENT_TIMEOUT,this)}function i(){this.status<299?t(No.EVENT_LOAD,this):t(No.EVENT_ERROR,this)}return function(t){return function(){for(var a=this,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var u=e._xhrMem.get(this);if(!u)return t.apply(this,s);var l=u.span,p=u.spanUrl;return l&&p&<.with(Nt.setSpan(lt.active(),l),(function(){e._tasksCount++,u.sendStartTime=kn(),l.addEvent(No.METHOD_SEND),a.addEventListener("abort",r),a.addEventListener("error",n),a.addEventListener("load",i),a.addEventListener("timeout",o),u.callbackToRemoveEvents=function(){(function(t){t.removeEventListener("abort",r),t.removeEventListener("error",n),t.removeEventListener("load",i),t.removeEventListener("timeout",o);var a=e._xhrMem.get(t);a&&(a.callbackToRemoveEvents=void 0)})(a),u.createdResources&&u.createdResources.observer.disconnect()},e._addHeaders(a,p),e._addResourceObserver(a,p)})),t.apply(this,s)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),Dr(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),Dr(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(kr);function Bo(e,t){if(!e)throw new Error(t)}function jo(e,t){if(!e)throw new Error("Unexpected invariant triggered.")}const Fo=/\r\n|[\n\r]/g;function Ho(e,t){let n=0,r=1;for(const o of e.body.matchAll(Fo)){if("number"==typeof o.index||jo(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Go(e){return Vo(e.source,Ho(e.source,e.start))}function Vo(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=1===t.line?n:0,c=t.column+s,u=`${e.name}:${a}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),p=l[o];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+qo([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+qo([[a-1+" |",l[o-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,l[o+1]]])}function qo(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class Ko extends Error{constructor(e,...t){var n,r,o;const{nodes:i,source:a,positions:s,path:c,originalError:u,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=u?u:void 0,this.nodes=zo(Array.isArray(i)?i:i?[i]:void 0);const p=zo(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map((e=>e.start)),this.locations=s&&a?s.map((e=>Ho(a,e))):null==p?void 0:p.map((e=>Ho(e.source,e.start)));const d=function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(o=null!=l?l:d)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ko):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Go(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Vo(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function zo(e){return void 0===e||0===e.length?void 0:e}function Xo(e,t,n){return new Ko(`Syntax Error: ${n}`,{source:e,positions:[t]})}class $o{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Wo{constructor(e,t,n,r,o,i){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Jo={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Yo=new Set(Object.keys(Jo));function Qo(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Yo.has(t)}var Zo,ei,ti,ni;function ri(e){return 9===e||32===e}function oi(e){return e>=48&&e<=57}function ii(e){return e>=97&&e<=122||e>=65&&e<=90}function ai(e){return ii(e)||95===e}function si(e){return ii(e)||oi(e)||95===e}function ci(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var i;const a=e[t],s=ui(a);s!==a.length&&(r=null!==(i=r)&&void 0!==i?i:t,o=t,0!==t&&s<n&&(n=s))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function ui(e){let t=0;for(;t<e.length&&ri(e.charCodeAt(t));)++t;return t}function li(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,i=r.length>1&&r.slice(1).every((e=>0===e.length||ri(e.charCodeAt(0)))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=s||c,l=!o||e.length>70||u||i||a;let p="";const d=o&&ri(e.charCodeAt(0));return(l&&!d||i)&&(p+="\n"),p+=n,(l||u)&&(p+="\n"),'"""'+p+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Zo||(Zo={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ei||(ei={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(ti||(ti={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(ni||(ni={}));class pi{constructor(e){const t=new Wo(ni.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ni.EOF)do{if(e.next)e=e.next;else{const t=vi(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ni.COMMENT);return e}}function di(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function fi(e,t){return hi(e.charCodeAt(t))&&mi(e.charCodeAt(t+1))}function hi(e){return e>=55296&&e<=56319}function mi(e){return e>=56320&&e<=57343}function gi(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return ni.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function yi(e,t,n,r,o){const i=e.line,a=1+n-e.lineStart;return new Wo(t,n,r,i,a,o)}function vi(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return _i(e,o);case 33:return yi(e,ni.BANG,o,o+1);case 36:return yi(e,ni.DOLLAR,o,o+1);case 38:return yi(e,ni.AMP,o,o+1);case 40:return yi(e,ni.PAREN_L,o,o+1);case 41:return yi(e,ni.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return yi(e,ni.SPREAD,o,o+3);break;case 58:return yi(e,ni.COLON,o,o+1);case 61:return yi(e,ni.EQUALS,o,o+1);case 64:return yi(e,ni.AT,o,o+1);case 91:return yi(e,ni.BRACKET_L,o,o+1);case 93:return yi(e,ni.BRACKET_R,o,o+1);case 123:return yi(e,ni.BRACE_L,o,o+1);case 124:return yi(e,ni.PIPE,o,o+1);case 125:return yi(e,ni.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?Ci(e,o):Ti(e,o)}if(oi(t)||45===t)return Ei(e,o,t);if(ai(t))return Ni(e,o);throw Xo(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":di(t)||fi(n,o)?`Unexpected character: ${gi(e,o)}.`:`Invalid character: ${gi(e,o)}.`)}return yi(e,ni.EOF,r,r)}function _i(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(di(e))++o;else{if(!fi(n,o))break;o+=2}}return yi(e,ni.COMMENT,t,o,n.slice(t+1,o))}function Ei(e,t,n){const r=e.source.body;let o=t,i=n,a=!1;if(45===i&&(i=r.charCodeAt(++o)),48===i){if(i=r.charCodeAt(++o),oi(i))throw Xo(e.source,o,`Invalid number, unexpected digit after 0: ${gi(e,o)}.`)}else o=bi(e,o,i),i=r.charCodeAt(o);if(46===i&&(a=!0,i=r.charCodeAt(++o),o=bi(e,o,i),i=r.charCodeAt(o)),(69===i||101===i)&&(a=!0,i=r.charCodeAt(++o),(43===i||45===i)&&(i=r.charCodeAt(++o)),o=bi(e,o,i),i=r.charCodeAt(o)),46===i||ai(i))throw Xo(e.source,o,`Invalid number, expected digit but got: ${gi(e,o)}.`);return yi(e,a?ni.FLOAT:ni.INT,t,o,r.slice(t,o))}function bi(e,t,n){if(!oi(n))throw Xo(e.source,t,`Invalid number, expected digit but got: ${gi(e,t)}.`);const r=e.source.body;let o=t+1;for(;oi(r.charCodeAt(o));)++o;return o}function Ti(e,t){const n=e.source.body,r=n.length;let o=t+1,i=o,a="";for(;o<r;){const r=n.charCodeAt(o);if(34===r)return a+=n.slice(i,o),yi(e,ni.STRING,t,o+1,a);if(92!==r){if(10===r||13===r)break;if(di(r))++o;else{if(!fi(n,o))throw Xo(e.source,o,`Invalid character within String: ${gi(e,o)}.`);o+=2}}else{a+=n.slice(i,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?Ai(e,o):Si(e,o):Ri(e,o);a+=t.value,o+=t.size,i=o}}throw Xo(e.source,o,"Unterminated string.")}function Ai(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!di(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|Oi(e),r<0)break}throw Xo(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function Si(e,t){const n=e.source.body,r=wi(n,t+2);if(di(r))return{value:String.fromCodePoint(r),size:6};if(hi(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=wi(n,t+8);if(mi(e))return{value:String.fromCodePoint(r,e),size:12}}throw Xo(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function wi(e,t){return Oi(e.charCodeAt(t))<<12|Oi(e.charCodeAt(t+1))<<8|Oi(e.charCodeAt(t+2))<<4|Oi(e.charCodeAt(t+3))}function Oi(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ri(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Xo(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ci(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,i=t+3,a=i,s="";const c=[];for(;i<r;){const r=n.charCodeAt(i);if(34===r&&34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)){s+=n.slice(a,i),c.push(s);const r=yi(e,ni.BLOCK_STRING,t,i+3,ci(c).join("\n"));return e.line+=c.length-1,e.lineStart=o,r}if(92!==r||34!==n.charCodeAt(i+1)||34!==n.charCodeAt(i+2)||34!==n.charCodeAt(i+3))if(10!==r&&13!==r)if(di(r))++i;else{if(!fi(n,i))throw Xo(e.source,i,`Invalid character within String: ${gi(e,i)}.`);i+=2}else s+=n.slice(a,i),c.push(s),13===r&&10===n.charCodeAt(i+1)?i+=2:++i,s="",a=i,o=i;else s+=n.slice(a,i),a=i+1,i+=4}throw Xo(e.source,i,"Unterminated string.")}function Ni(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r&&si(n.charCodeAt(o));)++o;return yi(e,ni.NAME,t,o,n.slice(t,o))}const Li=10,Ii=2;function Pi(e){return ki(e,[])}function ki(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ki(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Ii)return"[Array]";const n=Math.min(Li,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(ki(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>Ii?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map((([e,n])=>e+": "+ki(n,t))).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const xi=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Pi(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Di{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Bo(!1,`Body must be a string. Received: ${Pi(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Bo(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Bo(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Mi(e,t){return new Ui(e,t).parseDocument()}class Ui{constructor(e,t={}){const n=function(e){return xi(e,Di)}(e)?e:new Di(e);this._lexer=new pi(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(ni.NAME);return this.node(e,{kind:ti.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ti.DOCUMENT,definitions:this.many(ni.SOF,this.parseDefinition,ni.EOF)})}parseDefinition(){if(this.peek(ni.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===ni.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Xo(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(ni.BRACE_L))return this.node(e,{kind:ti.OPERATION_DEFINITION,operation:Zo.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(ni.NAME)&&(n=this.parseName()),this.node(e,{kind:ti.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ni.NAME);switch(e.value){case"query":return Zo.QUERY;case"mutation":return Zo.MUTATION;case"subscription":return Zo.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ni.PAREN_L,this.parseVariableDefinition,ni.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ti.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ni.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ni.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ni.DOLLAR),this.node(e,{kind:ti.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ti.SELECTION_SET,selections:this.many(ni.BRACE_L,this.parseSelection,ni.BRACE_R)})}parseSelection(){return this.peek(ni.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(ni.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:ti.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ni.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ni.PAREN_L,t,ni.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(ni.COLON),this.node(t,{kind:ti.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ni.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(ni.NAME)?this.node(e,{kind:ti.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ti.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ti.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ti.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case ni.BRACKET_L:return this.parseList(e);case ni.BRACE_L:return this.parseObject(e);case ni.INT:return this.advanceLexer(),this.node(t,{kind:ti.INT,value:t.value});case ni.FLOAT:return this.advanceLexer(),this.node(t,{kind:ti.FLOAT,value:t.value});case ni.STRING:case ni.BLOCK_STRING:return this.parseStringLiteral();case ni.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ti.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ti.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ti.NULL});default:return this.node(t,{kind:ti.ENUM,value:t.value})}case ni.DOLLAR:if(e){if(this.expectToken(ni.DOLLAR),this._lexer.token.kind===ni.NAME){const e=this._lexer.token.value;throw Xo(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ti.STRING,value:e.value,block:e.kind===ni.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ti.LIST,values:this.any(ni.BRACKET_L,(()=>this.parseValueLiteral(e)),ni.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ti.OBJECT,fields:this.any(ni.BRACE_L,(()=>this.parseObjectField(e)),ni.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(ni.COLON),this.node(t,{kind:ti.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(ni.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(ni.AT),this.node(t,{kind:ti.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(ni.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(ni.BRACKET_R),t=this.node(e,{kind:ti.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(ni.BANG)?this.node(e,{kind:ti.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ti.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ni.STRING)||this.peek(ni.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(ni.BRACE_L,this.parseOperationTypeDefinition,ni.BRACE_R);return this.node(e,{kind:ti.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(ni.COLON);const n=this.parseNamedType();return this.node(e,{kind:ti.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ti.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:ti.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ni.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ni.BRACE_L,this.parseFieldDefinition,ni.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(ni.COLON);const o=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:ti.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i})}parseArgumentDefs(){return this.optionalMany(ni.PAREN_L,this.parseInputValueDef,ni.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ni.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(ni.EQUALS)&&(o=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(e,{kind:ti.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:i})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:ti.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:ti.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(ni.EQUALS)?this.delimitedMany(ni.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:ti.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(ni.BRACE_L,this.parseEnumValueDefinition,ni.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ti.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Xo(this._lexer.source,this._lexer.token.start,`${Bi(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:ti.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(ni.BRACE_L,this.parseInputValueDef,ni.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ni.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(ni.BRACE_L,this.parseOperationTypeDefinition,ni.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ti.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:ti.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:ti.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:ti.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ti.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ti.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ti.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ni.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(e,{kind:ti.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:i})}parseDirectiveLocations(){return this.delimitedMany(ni.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ei,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new $o(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Xo(this._lexer.source,t.start,`Expected ${ji(e)}, found ${Bi(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==ni.NAME||t.value!==e)throw Xo(this._lexer.source,t.start,`Expected "${e}", found ${Bi(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===ni.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Xo(this._lexer.source,t.start,`Unexpected ${Bi(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==ni.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Xo(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Bi(e){const t=e.value;return ji(e.kind)+(null!=t?` "${t}"`:"")}function ji(e){return function(e){return e===ni.BANG||e===ni.DOLLAR||e===ni.AMP||e===ni.PAREN_L||e===ni.PAREN_R||e===ni.SPREAD||e===ni.COLON||e===ni.EQUALS||e===ni.AT||e===ni.BRACKET_L||e===ni.BRACKET_R||e===ni.BRACE_L||e===ni.PIPE||e===ni.BRACE_R}(e)?`"${e}"`:e}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Hi={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},Gi=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Fi({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Fi({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Fi({},this.attributes,t))},withConverter:function(t){return e(Fi({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}(Hi,{path:"/"});let Vi="localStorage",qi=!0,Ki=new class{constructor(){f(this,"storage",{})}getItem(e){var t;return null!=(t=this.storage[e])?t:""}setItem(e,t){this.storage[e]=t}removeItem(e){delete this.storage[e]}};const zi=new class{getItem(e){var t;return null!=(t=Gi.get(e))?t:""}setItem(e,t){if(!qi)return;const n=new Date;n.setTime(n.getTime()+9e5),Gi.set(e,t,{expires:n})}removeItem(e){qi&&Gi.remove(e)}},Xi=()=>{try{switch(Vi){case"localStorage":return window.localStorage;case"sessionStorage":return window.sessionStorage}}catch(e){return Ki}},$i=e=>{Vi=e},Wi=e=>{qi=e},Ji=e=>Xi().getItem(e),Yi=(e,t)=>(zi.setItem(e,t),Xi().setItem(e,t)),Qi=e=>(zi.removeItem(e),Xi().removeItem(e)),Zi=e=>{if("sessionStorage"===Vi)return void console.warn("highlight.io cannot use local storage; segment integration will not work");const t=window.localStorage.setItem;window.localStorage.setItem=function(){const[n,r]=arguments;e({keyName:n,keyValue:r}),t.apply(this,[n,r])}};var ea;!function(e){e.SEGMENT_LAST_SENT_HASH_KEY="HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY",e.SESSION_ID="sessionID",e.SESSION_DATA="sessionData",e.USER_IDENTIFIER="highlightIdentifier",e.USER_OBJECT="highlightUserObject"}(ea||(ea={}));const ta=e=>`${ea.SESSION_DATA}_${e}`;let na="";const ra=e=>{Yi(ea.SESSION_ID,e)},oa=e=>{e||(e=(()=>{var e;return null!=(e=Ji(ea.SESSION_ID))?e:""})());let t=(e=>{const t=ta(e);return JSON.parse(Ji(t)||"{}")})(e);if(t&&t.lastPushTime&&Date.now()-t.lastPushTime<9e5)return t;Qi(ta(e))},ia=function(e){if(null==e||!e.sessionSecureID)return;const t=e.sessionSecureID;(e=>{e&&(na=e)})(t),Yi(ta(t),JSON.stringify(e))},aa=(e,t,n)=>{const r=sa(t,e.headers,n);return p(l({},e),{headers:r})},sa=(e,t,n)=>{var r,o;const i=l({},t);return n?(null==(r=Object.keys(i))||r.forEach((e=>{[...n].includes(null==e?void 0:e.toLowerCase())||(i[e]="[REDACTED]")})),i):(null==(o=Object.keys(i))||o.forEach((t=>{[...ca,...e].includes(null==t?void 0:t.toLowerCase())&&(i[t]="[REDACTED]")})),i)},ca=["authorization","cookie","proxy-authorization","token"],ua=["https://www.googleapis.com/identitytoolkit","https://securetoken.googleapis.com"],la="X-Highlight-Request",pa=e=>{let t=e;return!e.startsWith("https://")&&!e.startsWith("http://")&&(t=`${window.location.origin}${t}`),t.replace(/\/+$/,"")},da=(e,t,n,r)=>{e.sort(((e,t)=>e.responseEnd-t.responseEnd));const o=e.reduce(((e,t)=>{const r=pa(t.name);return t.initiatorType===n?e[n][r]=[...e[n][r]||[],t]:e.others[r]=[...e.others[r]||[],t],e}),{xmlhttprequest:{},others:{},fetch:{}});let i={};i=t.reduce(((e,t)=>{const n=pa(t.request.url);return e[n]=[...e[n]||[],t],e}),i);for(let e in o[n]){const t=o[n][e],r=i[e];if(!r)continue;const a=Math.max(t.length-r.length,0);for(let e=a;e<t.length;e++)t[e]&&(t[e].requestResponsePair=r[e-a])}let a=[];for(let e in o)for(let t in o[e])a=a.concat(o[e][t]);return a.sort(((e,t)=>e.fetchStart-t.fetchStart)).reduce(((e,t)=>{let n=t.requestResponsePair;return n&&(n=((e,{headersToRedact:t,headersToRecord:n,requestResponseSanitizer:r})=>{var o,i;let a=e;if(r){let e=!0;try{a.request.body=JSON.parse(a.request.body)}catch(t){e=!1}let t=!0;try{a.response.body=JSON.parse(a.response.body)}catch(e){t=!1}try{a=r(a)}catch(e){}finally{e=e&&!(null==(o=null==a?void 0:a.request)||!o.body),t=t&&!(null==(i=null==a?void 0:a.response)||!i.body),e&&(a.request.body=JSON.stringify(a.request.body)),t&&(a.response.body=JSON.stringify(a.response.body))}if(!a)return null}const s=a,{request:c,response:u}=s,p=d(s,["request","response"]);return l({request:aa(c,t,n),response:aa(u,t,n)},p)})(t.requestResponsePair,r),!n)||(t.toJSON=function(){const e=window.performance.timeOrigin;return{initiatorType:this.initiatorType,startTimeAbs:e+this.startTime,connectStartAbs:e+this.connectStart,connectEndAbs:e+this.connectEnd,domainLookupStartAbs:e+this.domainLookupStart,domainLookupEndAbs:e+this.domainLookupEnd,fetchStartAbs:e+this.fetchStart,redirectStartAbs:e+this.redirectStart,redirectEndAbs:e+this.redirectEnd,requestStartAbs:e+this.requestStart,responseStartAbs:e+this.responseStart,responseEndAbs:e+this.responseEnd,secureConnectionStartAbs:e+this.secureConnectionStart,workerStartAbs:e+this.workerStart,name:this.name,transferSize:this.transferSize,encodedBodySize:this.encodedBodySize,decodedBodySize:this.decodedBodySize,nextHopProtocol:this.nextHopProtocol,requestResponsePairs:n}},e.push(t)),e}),[])},fa=(e,t,n)=>!((e,t)=>e.toLocaleLowerCase().includes("pub.highlight.io")||e.toLocaleLowerCase().includes("pub.highlight.io")||e.toLocaleLowerCase().includes("otel.highlight.io")||t.some((t=>e.toLocaleLowerCase().includes(t))))(e,t)||ha(e,null!=n?n:[],[]),ha=(e,t,n)=>{var r;if(n.some((t=>e.toLowerCase().includes(t))))return!1;let o=[];!0===t?(o=["localhost",/^\//],null!=(r=null==window?void 0:window.location)&&r.host&&o.push(window.location.host)):t instanceof Array&&(o=t);let i=!1;return o.forEach((t=>{e.match(t)&&(i=!0)})),i},ma=()=>{const e=function(){for(var e="",t=0;t<10;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e}(),t=ls(),n=null==t?void 0:t.spanContext().traceId;return[na,null!=n?n:e]},ga=(e,t)=>e+"/"+t,ya=(e,t,n,r,o,i)=>{const a=XMLHttpRequest.prototype,s=a.open,c=a.send,u=a.setRequestHeader;return a.open=function(e,t){return this._url="string"==typeof t?t:t.toString(),this._method=e,this._requestHeaders={},this._shouldRecordHeaderAndBody=!r.some((e=>this._url.toLowerCase().includes(e))),s.apply(this,arguments)},a.setRequestHeader=function(e,t){return this._requestHeaders[e]=t,u.apply(this,arguments)},a.send=function(a){if(!fa(this._url,t,n))return c.apply(this,arguments);const[s,u]=ma();ha(this._url,n,r)&&this.setRequestHeader(la,ga(s,u));const l=this._shouldRecordHeaderAndBody,p={sessionSecureID:s,id:u,url:this._url,verb:this._method,headers:l?this._requestHeaders:{},body:void 0};if(l&&a){const e=va(a,p.url);e&&(this._body=e,p.body=Ea(e,o,i,p.headers))}return this.addEventListener("load",(function(){return h(this,null,(function*(){const t={status:this.status,headers:{},body:void 0};if(l){const e=this.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};if(e.forEach((function(e){const t=e.split(": "),r=t.shift();n[r]=t.join(": ")})),t.headers=n,a){const e=va(a,p.url);e&&(p.body=Ea(e,o,i,t.headers))}if(""===this.responseType||"text"===this.responseType)t.body=Ea(this.responseText,o,i,t.headers),t.size=8*this.responseText.length;else if("blob"===this.responseType){if(this.response instanceof Blob)try{const e=yield this.response.text();t.body=Ea(e,o,i,t.headers),t.size=this.response.size}catch(e){}}else try{t.body=Ea(this.response,o,i,t.headers)}catch(e){}}e({request:p,response:t,urlBlocked:!l})}))})),this.addEventListener("error",(function(){return h(this,null,(function*(){const t={status:this.status,headers:void 0,body:void 0};e({request:p,response:t,urlBlocked:!1})}))})),c.apply(this,arguments)},()=>{a.open=s,a.send=c,a.setRequestHeader=u}},va=(e,t)=>{if("string"==typeof e){if(!(null!=t&&t.includes("localhost")||null!=t&&t.includes("highlight.run"))||!e.includes("pushPayload"))return e}else if("object"==typeof e||"number"==typeof e||"boolean"==typeof e)return B(e);return null},_a={"application/json":67108864,"text/plain":67108864},Ea=(e,t,n,r)=>{var o,i,a;let s=65536;if(r){let e="";e="function"==typeof r.get?null!=(o=r.get("content-type"))?o:"":null!=(i=r["content-type"])?i:"";try{e=e.split(";")[0]}catch(e){}s=null!=(a=_a[e])?a:65536}if(e){if(t)try{const n=JSON.parse(e);Array.isArray(n)?n.forEach((e=>{Object.keys(e).forEach((n=>{t.includes(n.toLocaleLowerCase())&&(e[n]="[REDACTED]")}))})):Object.keys(n).forEach((e=>{t.includes(e.toLocaleLowerCase())&&(n[e]="[REDACTED]")})),e=JSON.stringify(n)}catch(e){}if(n)try{const t=JSON.parse(e);Object.keys(t).forEach((e=>{n.includes(e.toLocaleLowerCase())||(t[e]="[REDACTED]")})),e=JSON.stringify(t)}catch(e){}}try{e=e.slice(0,s)}catch(e){}return e},ba=(e,t,n,r,o,i)=>{const a=window._fetchProxy;return window._fetchProxy=function(s,c){const{method:u,url:l}=Ta(s,c);if(!fa(l,t,n))return a.call(this,s,c);const[p,d]=ma();if(ha(l,n,r)){c=c||{};let e=new Headers(c.headers);s instanceof Request&&[...s.headers].forEach((([t,n])=>e.set(t,n))),e.set(la,ga(p,d)),c.headers=Object.fromEntries(e.entries())}const f={sessionSecureID:p,id:d,headers:{},body:void 0,url:l,verb:u},h=!r.some((e=>l.toLowerCase().includes(e)));h&&(f.headers=Object.fromEntries(new Headers(null==c?void 0:c.headers).entries()),f.body=Ea(null==c?void 0:c.body,o,i,null==c?void 0:c.headers));let m=a.call(this,s,c);return Aa(m,f,e,h,o,i),m},()=>{window._fetchProxy=a}},Ta=(e,t)=>{const n=t&&t.method||"object"==typeof e&&"method"in e&&e.method||"GET";let r;return r="object"==typeof e?"url"in e&&e.url?e.url:e.toString():e,{method:n,url:r}},Aa=(e,t,n,r,o,i)=>{e.then((e=>h(void 0,null,(function*(){let a={body:void 0,headers:void 0,status:0,size:0},s=!1,c=!r;"stack"in e||e instanceof Error?(a=p(l({},a),{body:e.message,status:0,size:void 0}),s=!0):"status"in e&&(a=p(l({},a),{status:e.status}),r&&(a.body=yield Sa(e,i,o),a.headers=Object.fromEntries(e.headers.entries()),a.size=8*a.body.length),("opaque"===e.type||"opaqueredirect"===e.type)&&(c=!0,a=p(l({},a),{body:"CORS blocked request"})),s=!0),s&&n({request:t,response:a,urlBlocked:c})})))).catch((()=>{}))},Sa=(e,t,n)=>h(void 0,null,(function*(){let r;try{const o=e.clone().body;if(o){let i,a=o.getReader(),s=new TextDecoder,c="";for(;!(i=yield a.read()).done;){let e=i.value;c+=s.decode(e)}r=c,r=Ea(r,n,t,e.headers)}else r=""}catch(e){r=`Unable to clone response: ${e}`}return r}));function wa(e){void 0===e&&(e={});var t={};return Object.entries(e).forEach((function(e){var n=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}(e,2),r=n[0],o=n[1];void 0!==o?t[r]=String(o):pt.warn('Header "'+r+'" has invalid value ('+o+") and will be ignored")})),t}function Oa(e,t){return pt.warn("Timeout must be greater than 0",e),t}function Ra(e){if(null==e)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}var Ca=function(){function e(e){void 0===e&&(e={}),this._sendingPromises=[],this.url=this.getDefaultUrl(e),"string"==typeof e.hostname&&(this.hostname=e.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new fr(this._shutdown,this),this._concurrencyLimit="number"==typeof e.concurrencyLimit?e.concurrencyLimit:30,this.timeoutMillis=function(e){return"number"==typeof e?e<=0?Oa(e,1e4):e:function(){var e,t=Number(null!==(e=un().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==e?e:un().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?Oa(t,1e4):t}()}(e.timeoutMillis),this.onInit(e)}return e.prototype.export=function(e,t){this._shutdownOnce.isCalled?t({code:fn.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?t({code:fn.FAILED,error:new Error("Concurrent export limit reached")}):this._export(e).then((function(){t({code:fn.SUCCESS})})).catch((function(e){t({code:fn.FAILED,error:e})}))},e.prototype._export=function(e){var t=this;return new Promise((function(n,r){try{pt.debug("items to be sent",e),t.send(e,n,r)}catch(e){r(e)}}))},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then((function(){}))},e.prototype._shutdown=function(){return pt.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),Na=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),La=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.name="OTLPExporterError",o.data=r,o.code=n,o}return Na(t,e),t}(Error),Ia=function(){function e(e){this._parameters=e}return e.prototype.send=function(e,t){var n=this;return new Promise((function(r){var o=new XMLHttpRequest;o.timeout=t,o.open("POST",n._parameters.url),Object.entries(n._parameters.headers).forEach((function(e){var t=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}(e,2),n=t[0],r=t[1];o.setRequestHeader(n,r)})),o.ontimeout=function(e){r({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=function(){o.status>=200&&o.status<=299?(pt.debug("XHR success"),r({status:"success"})):o.status&&function(e){return[429,502,503,504].includes(e)}(o.status)?r({status:"retryable",retryInMillis:Ra(o.getResponseHeader("Retry-After"))}):0!==o.status&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=function(){r({status:"failure",error:new Error("XHR request aborted")})},o.onerror=function(){r({status:"failure",error:new Error("XHR request errored")})},o.send(new Blob([e],{type:n._parameters.headers["Content-Type"]}))}))},e.prototype.shutdown=function(){},e}();function Pa(e){return new Ia(e)}var ka=function(){function e(e){this._params=e}return e.prototype.send=function(e){var t=this;return new Promise((function(n){navigator.sendBeacon(t._params.url,new Blob([e],{type:t._params.blobType}))?(pt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})}))},e.prototype.shutdown=function(){},e}(),xa=function(){function e(e){this._transport=e}return e.prototype.retry=function(e,t,n){var r=this;return new Promise((function(o,i){setTimeout((function(){r._transport.send(e,t).then(o,i)}),n)}))},e.prototype.send=function(e,t){var n;return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var r,o,i,a,s,c,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(l){switch(l.label){case 0:return r=Date.now()+t,[4,this._transport.send(e,t)];case 1:o=l.sent(),i=5,a=1e3,l.label=2;case 2:return"retryable"===o.status&&i>0?(i--,s=Math.max(Math.min(a,5e3)+(.4*Math.random()-.2),0),a*=1.5,c=null!==(n=o.retryInMillis)&&void 0!==n?n:s,u=r-Date.now(),c>u?[2,o]:[4,this.retry(e,u,c)]):[3,4];case 3:return o=l.sent(),[3,2];case 4:return[2,o]}}))}))},e.prototype.shutdown=function(){return this._transport.shutdown()},e}(),Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ma=function(e){function t(t,n,r){void 0===t&&(t={});var o=e.call(this,t)||this;o._serializer=n;var i=!!t.headers||"function"!=typeof navigator.sendBeacon;return o._transport=i?function(e){return new xa(e.transport)}({transport:Pa({headers:Object.assign({},wa(t.headers),hr(un().OTEL_EXPORTER_OTLP_HEADERS),{"Content-Type":r}),url:o.url})}):function(e){return new ka(e)}({url:o.url,blobType:r}),o}return Da(t,e),t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(e,t,n){var r=this;if(this._shutdownOnce.isCalled)pt.debug("Shutdown already started. Cannot send objects");else{var o=this._serializer.serializeRequest(e);if(null!=o){var i=this._transport.send(o,this.timeoutMillis).then((function(e){"success"===e.status?t():"failure"===e.status&&e.error?n(e.error):"retryable"===e.status?n(new La("Export failed with retryable status")):n(new La("Export failed with unknown error"))}),n);this._sendingPromises.push(i);var a=function(){var e=r._sendingPromises.indexOf(i);r._sendingPromises.splice(e,1)};i.then(a,a)}else n(new Error("Could not serialize message"))}},t}(Ca);function Ua(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Ba(e){return function(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}(Ua(e))}var ja="undefined"!=typeof BigInt?function(e){return Ua(e).toString()}:Dn;function Fa(e){return e}function Ha(e){if(void 0!==e)return pn(e)}var Ga={encodeHrTime:Ba,encodeSpanContext:pn,encodeOptionalSpanContext:Ha};function Va(e){return{name:e.name,version:e.version}}function qa(e){return Object.keys(e).map((function(t){return Ka(t,e[t])}))}function Ka(e,t){return{key:e,value:za(t)}}function za(e){var t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(za)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map((function(e){var t=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}(e,2);return Ka(t[0],t[1])}))}}:{}}function Xa(e,t){var n,r=e.spanContext(),o=e.status;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null===(n=r.traceState)||void 0===n?void 0:n.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:qa(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map((function(e){return function(e,t){return{attributes:e.attributes?qa(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)})),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map((function(e){return function(e,t){var n;return{attributes:e.attributes?qa(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null===(n=e.context.traceState)||void 0===n?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)})),droppedLinksCount:e.droppedLinksCount}}function $a(e){return{attributes:qa(e.attributes),droppedAttributesCount:0}}var Wa=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};function Ja(e,t){for(var n=[],r=function(e){var t,n,r=new Map;try{for(var o=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.")}(e),i=o.next();!i.done;i=o.next()){var a=i.value,s=r.get(a.resource);s||(s=new Map,r.set(a.resource,s));var c=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),u=s.get(c);u||(u=[],s.set(c,u)),u.push(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e).entries(),o=r.next();!o.done;){for(var i=Wa(o.value,2),a=i[0],s=[],c=i[1].values(),u=c.next();!u.done;){var l=u.value;if(l.length>0){var p=l.map((function(e){return Xa(e,t)}));s.push({scope:Va(l[0].instrumentationLibrary),spans:p,schemaUrl:l[0].instrumentationLibrary.schemaUrl})}u=c.next()}var d={resource:$a(a),scopeSpans:s,schemaUrl:void 0};n.push(d),o=r.next()}return n}var Ya={serializeRequest:function(e){var t=function(e,t){var n=function(e){var t,n;if(void 0===e)return Ga;var r=null===(t=e.useLongBits)||void 0===t||t,o=null!==(n=e.useHex)&&void 0!==n&&n;return{encodeHrTime:r?Ba:ja,encodeSpanContext:o?Fa:pn,encodeOptionalSpanContext:o?Fa:Ha}}(t);return{resourceSpans:Ja(e,n)}}(e,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},Qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Za=function(e){function t(t){return void 0===t&&(t={}),e.call(this,t,Ya,"application/json")||this}return Qa(t,e),t.prototype.getDefaultUrl=function(e){return"string"==typeof e.url?e.url:"http://localhost:4318/v1/traces"},t}(Ma);class es extends Za{constructor(e){super(e),f(this,"xhrTraceExporter"),this.xhrTraceExporter=new Za(p(l({},null!=e?e:{}),{headers:{}}))}send(e,t,n){super.send(e,t,(r=>{r.message.toLocaleLowerCase().includes("beacon")?this.xhrTraceExporter.send(e,t,(e=>{n(p(l({},r),{message:`${r.message} --- [XHR retry message: ${e.message}; code: ${e.code}].`,code:r.code,data:`${r.data} --- [XHR retry data: ${e.data}].`}))})):n(r)}))}}const ts=["click","input","submit"];function ns(){return!1}class rs extends kr{constructor(e={}){var t;super("user-interaction","1.0.0",e),f(this,"_spansData",new WeakMap),f(this,"_wrappedListeners",new WeakMap),f(this,"_eventsSpanMap",new WeakMap),f(this,"_eventNames"),f(this,"_shouldPreventSpanCreation"),this._eventNames=new Set(null!=(t=null==e?void 0:e.eventNames)?t:ts),this._shouldPreventSpanCreation="function"==typeof(null==e?void 0:e.shouldPreventSpanCreation)?e.shouldPreventSpanCreation:ns}init(){}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t){var n;const r=null==e?void 0:e.target,o=null==e?void 0:e.type;if(!(r instanceof HTMLElement)||!r.getAttribute||r.hasAttribute("disabled")||!this._allowEventName(o))return;const i=To(r,!0);try{const a=this.tracer.startSpan(o,{attributes:{"event.type":o,"event.tag":r.tagName,"event.xpath":i,"event.id":r.id,"event.text":null!=(n=r.textContent)?n:"","event.url":window.location.href,"viewport.width":window.innerWidth,"viewport.height":window.innerHeight}},t?Nt.setSpan(lt.active(),t):void 0);return e instanceof MouseEvent&&(a.setAttribute("event.x",e.clientX),a.setAttribute("event.y",e.clientY),a.setAttribute("event.relativeX",e.clientX/window.innerWidth),a.setAttribute("event.relativeY",e.clientY/window.innerHeight),"scroll"===o&&(a.setAttribute("event.scrollX",window.scrollX),a.setAttribute("event.scrollY",window.scrollY))),!0===this._shouldPreventSpanCreation(o,r,a)?void 0:(this._spansData.set(a,{taskCount:0}),a)}catch(e){this._diag.error("failed to start create new user interaction span",e)}}addPatchedListener(e,t,n,r){let o=this._wrappedListeners.get(n);o||(o=new Map,this._wrappedListeners.set(n,o));let i=o.get(t);return i||(i=new Map,o.set(t,i)),!i.has(e)&&(i.set(e,r),!0)}removePatchedListener(e,t,n){const r=this._wrappedListeners.get(n);if(!r)return;const o=r.get(t);if(!o)return;const i=o.get(e);return i&&(o.delete(e),0===o.size&&(r.delete(t),0===r.size&&this._wrappedListeners.delete(n))),i}_invokeListener(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){const e=this;let t=0;return n=>function(r,o,i){if(!o)return n.call(this,r,o,i);const a=i&&"object"==typeof i&&i.once,s=function(...s){let c;const u=s[0];if("mousemove"===(null==u?void 0:u.type)&&Date.now()-t<1e3/60)return n.call(this,r,o,i);t=Date.now(),u&&(c=e._eventsSpanMap.get(u)),a&&e.removePatchedListener(this,r,o);const l=e._createSpan(u,c);return l?(u&&e._eventsSpanMap.set(u,l),lt.with(Nt.setSpan(lt.active(),l),(()=>{const t=e._invokeListener(o,this,s);return l.end(),t}))):e._invokeListener(o,this,s)};return e.addPatchedListener(this,r,o,s)?n.call(this,r,s,i):void 0}}_patchRemoveEventListener(){const e=this;return t=>function(n,r,o){const i=e.removePatchedListener(this,n,r);return i?t.call(this,n,i,o):t.call(this,n,r,o)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}enable(){this._getPatchableEventTargets().forEach((e=>{Dr(e.addEventListener)&&(this._unwrap(e,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),Dr(e.removeEventListener)&&(this._unwrap(e,"removeEventListener"),this._diag.debug("removing previous patch from method removeEventListener")),this._wrap(e,"addEventListener",this._patchAddEventListener()),this._wrap(e,"removeEventListener",this._patchRemoveEventListener())}))}disable(){this._getPatchableEventTargets().forEach((e=>{Dr(e.addEventListener)&&this._unwrap(e,"addEventListener"),Dr(e.removeEventListener)&&this._unwrap(e,"removeEventListener")}))}}let os;const is="highlight.record",as=e=>{var t,n,r,o,i;if(void 0!==os)return void console.warn("OTEL already initialized. Skipping...");const a=e.backendUrl||"https://pub.highlight.run",s=[...null!=(n=null==(t=e.networkRecordingOptions)?void 0:t.urlBlocklist)?n:[],...ua],c=null!=(r=e.environment)?r:"production";os=new mo({resource:new ro({[Sn]:null!=(o=e.serviceName)?o:"highlight-browser",[An]:c,"highlight.project_id":e.projectId,"highlight.session_id":e.sessionSecureId})});const u=new es({url:e.otlpEndpoint+"/v1/traces",concurrencyLimit:10,compression:"gzip"}),l=new ss(u,{maxExportBatchSize:15});os.addSpanProcessor(l);let p=[new Ro({applyCustomAttributesOnSpan:{documentLoad:ms,documentFetch:ms,resourceFetch:ys}}),new rs];null!=(i=e.networkRecordingOptions)&&i.enabled&&(p.push(new ko({propagateTraceHeaderCorsUrls:_s(e.tracingOrigins),applyCustomAttributesOnSpan:(t,n,r)=>h(void 0,null,(function*(){var o,i,a;const s=t;if(!1===s.attributes[is])return;const c=s.attributes["http.url"],u=null!=(o=n.method)?o:"GET";if(t.updateName(ds(c,u,n.body)),!(r instanceof Response))return void t.setAttributes({"http.response.error":r.message,"http.response.status":r.status});fs(t,n.body,n.headers,e.networkRecordingOptions);const l=yield Sa(r,null==(i=e.networkRecordingOptions)?void 0:i.bodyKeysToRecord,null==(a=e.networkRecordingOptions)?void 0:a.networkBodyKeysToRedact);t.setAttribute("http.response.body",l)}))})),p.push(new Uo({propagateTraceHeaderCorsUrls:_s(e.tracingOrigins),applyCustomAttributesOnSpan:(t,n)=>{var r,o;const i=n;if(!1===t.attributes[is])return;const a=ds(i._url,i._method,n.responseText);t.updateName(a),fs(t,i._body,i._requestHeaders,e.networkRecordingOptions);const s=Ea(i._body,null==(r=e.networkRecordingOptions)?void 0:r.networkBodyKeysToRedact,null==(o=e.networkRecordingOptions)?void 0:o.bodyKeysToRecord,i._requestHeaders);t.setAttribute("http.request.body",s)}}))),function(e){var t,n,r=e.tracerProvider||Nt.getTracerProvider(),o=e.meterProvider||gt.getMeterProvider(),i=e.loggerProvider||Tr.getLoggerProvider();!function(e,t,n,r){for(var o=0,i=e.length;o<i;o++){var a=e[o];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}(null!==(n=null===(t=e.instrumentations)||void 0===t?void 0:t.flat())&&void 0!==n?n:[],r,o,i)}({instrumentations:p});const d=new fo;d.enable(),os.register({contextManager:d,propagator:new jn({propagators:[new Ut,new cs({backendUrl:a,otlpEndpoint:e.otlpEndpoint,tracingOrigins:e.tracingOrigins,urlBlocklist:s})]})})};class ss extends Jr{onEnd(e){!1!==e.attributes[is]&&super.onEnd(e)}}class cs extends $n{constructor(e){super(),f(this,"highlightEndpoints"),f(this,"tracingOrigins"),f(this,"urlBlocklist"),this.highlightEndpoints=[e.backendUrl,e.otlpEndpoint],this.tracingOrigins=e.tracingOrigins,this.urlBlocklist=e.urlBlocklist}inject(e,t,n){const r=Nt.getSpan(e);if(!r)return;const o=r.attributes["http.url"];"string"!=typeof o||hs(o,this.highlightEndpoints,this.tracingOrigins,this.urlBlocklist)?super.inject(e,t,n):r.setAttribute(is,!1)}}const us=()=>os.getTracer("highlight-browser"),ls=()=>Nt.getActiveSpan(),ps=()=>h(void 0,null,(function*(){void 0!==os&&(yield os.forceFlush(),os.shutdown())})),ds=(e,t,n)=>{var r,o,i;let a;const s=new URL(e),c=s.pathname;let u=`${t.toUpperCase()} - ${c}`;try{if(a="string"==typeof n?JSON.parse(n):n,a&&a.query){const e=Mi(a.query),t="OperationDefinition"===(null==(r=e.definitions[0])?void 0:r.kind)?null==(i=null==(o=e.definitions[0])?void 0:o.name)?void 0:i.value:void 0;t&&(u=`${t} (GraphQL: ${s.host+s.pathname})`)}}catch(e){}return u},fs=(e,t,n,r)=>{var o;const i="string"==typeof t?t:String(t);let a;try{a=t?JSON.parse(i):void 0,a.operationName&&e.setAttribute("graphql.operation.name",a.operationName)}catch(e){}const s=sa(null!=(o=null==r?void 0:r.networkHeadersToRedact)?o:[],n,null==r?void 0:r.headerKeysToRecord);e.setAttributes({"highlight.type":"http.request","http.request.headers":JSON.stringify(s),"http.request.body":i})},hs=(e,t,n,r)=>(null==r||!r.some((t=>e.toLowerCase().includes(t))))&&fa(e,t,n),ms=e=>{const t=e.events,n={unload:gs("unloadEventStart","unloadEventEnd",t),dom_interactive:gs("domInteractive","fetchStart",t),dom_content_loaded:gs("domContentLoadedEventEnd","domContentLoadedEventStart",t),dom_complete:gs("fetchStart","domComplete",t),load_event:gs("loadEventStart","loadEventEnd",t),first_paint:gs("fetchStart","firstPaint",t),first_contentful_paint:gs("fetchStart","firstContentfulPaint",t),domain_lookup:gs("domainLookupStart","domainLookupEnd",t),connect:gs("connectStart","connectEnd",t),request:gs("requestStart","requestEnd",t),response:gs("responseStart","responseEnd",t)};Object.entries(n).forEach((([t,n])=>{n>0&&(e.setAttribute(`timings.${t}.ns`,n),e.setAttribute(`timings.${t}.readable`,vs(n)))}))};function gs(e,t,n){const r=n.find((t=>t.name===e)),o=n.find((e=>e.name===t));if(!r||!o)return 0;const i=1e9*r.time[0]+r.time[1];return 1e9*o.time[0]+o.time[1]-i}const ys=(e,t)=>{const n={domain_lookup:1e6*(t.domainLookupEnd-t.domainLookupStart),connect:1e6*(t.connectEnd-t.connectStart),request:1e6*(t.responseEnd-t.requestStart),response:1e6*(t.responseEnd-t.responseStart)};Object.entries(n).forEach((([t,n])=>{n>0&&(e.setAttribute(`timings.${t}.ns`,n),e.setAttribute(`timings.${t}.readable`,vs(n)))}))},vs=e=>e>=36e11?`${Number((e/36e11).toFixed(1))}h`:e>=6e10?`${Number((e/6e10).toFixed(1))}m`:e>=1e9?`${Number((e/1e9).toFixed(1))}s`:e>=1e6?`${Number((e/1e6).toFixed(1))}ms`:e>=1e3?`${Number((e/1e3).toFixed(1))}µs`:`${Number(e.toFixed(1))}ns`,_s=e=>!0===e?[/localhost/,/^\//,new RegExp(window.location.host)]:Array.isArray(e)?e.map((e=>"string"==typeof e?new RegExp(e):e)):/^$/,Es=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];var bs,Ts;!function(e){e.DeviceMemory="DeviceMemory",e.ViewportHeight="ViewportHeight",e.ViewportWidth="ViewportWidth",e.ScreenHeight="ScreenHeight",e.ScreenWidth="ScreenWidth",e.ViewportArea="ViewportArea"}(bs||(bs={})),function(e){e.Device="Device",e.WebVital="WebVital",e.Performance="Performance",e.Frontend="Frontend",e.Backend="Backend"}(Ts||(Ts={}));class As{constructor(e){var t,n;f(this,"disableConsoleRecording"),f(this,"reportConsoleErrors"),f(this,"enablePromisePatch"),f(this,"consoleMethodsToRecord"),f(this,"listeners"),f(this,"errors"),f(this,"messages"),f(this,"options"),f(this,"hasNetworkRecording",!0),f(this,"disableNetworkRecording"),f(this,"enableRecordingNetworkContents"),f(this,"xhrNetworkContents"),f(this,"fetchNetworkContents"),f(this,"disableRecordingWebSocketContents"),f(this,"webSocketNetworkContents"),f(this,"webSocketEventContents"),f(this,"tracingOrigins"),f(this,"networkHeadersToRedact"),f(this,"networkBodyKeysToRedact"),f(this,"networkBodyKeysToRecord"),f(this,"networkHeaderKeysToRecord"),f(this,"lastNetworkRequestTimestamp"),f(this,"urlBlocklist"),f(this,"highlightEndpoints"),f(this,"requestResponseSanitizer"),this.options=e,this.disableConsoleRecording=!!e.disableConsoleRecording,this.reportConsoleErrors=null!=(t=e.reportConsoleErrors)&&t,this.enablePromisePatch=null==(n=e.enablePromisePatch)||n,this.consoleMethodsToRecord=e.consoleMethodsToRecord||[...Es],this.listeners=[],this.errors=[],this.messages=[],this.lastNetworkRequestTimestamp=0}isListening(){return this.listeners.length>0}startListening(){if(this.isListening())return;const e=this;this.disableConsoleRecording||this.listeners.push(function(e,t){const n=t.logger;let r;r=window[n];const o=[];if(t.level.includes("error")&&window){const n=n=>{const{message:r,error:o}=n;let i=[];o&&(i=I.parse(o));const a=[D(r,t.stringifyOptions)];e({type:"Error",trace:i,time:Date.now(),value:a})};window.addEventListener("error",n),o.push((()=>{window&&window.removeEventListener("error",n)}))}for(const e of t.level)o.push(i(r,e));return()=>{o.forEach((e=>e()))};function i(n,r){return n[r]?function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}(n,r,(n=>(...o)=>{n.apply(this,o);try{const n=I.parse(new Error),i=t.serializeConsoleAttributes?o.map((e=>"object"==typeof e?D(e,t.stringifyOptions):e)):o.filter((e=>"object"!=typeof e)).map((e=>`${e}`));e({type:r,trace:n.slice(1),value:i,attributes:D(o.filter((e=>"object"==typeof e)).reduce(((e,t)=>l(l({},e),t)),{}),t.stringifyOptions),time:Date.now()})}catch(e){n("highlight logger error:",e,...o)}})):()=>{}}}((t=>{var n,r,o;if(this.reportConsoleErrors&&("Error"===t.type||"error"===t.type)&&t.value&&t.trace){const i=B(t.value);if(G.includes(i)||V.some((e=>i.includes(e))))return;e.errors.push({event:i,type:"console.error",url:window.location.href,source:null!=(n=t.trace[0])&&n.fileName?t.trace[0].fileName:"",lineNumber:null!=(r=t.trace[0])&&r.lineNumber?t.trace[0].lineNumber:0,columnNumber:null!=(o=t.trace[0])&&o.columnNumber?t.trace[0].columnNumber:0,stackTrace:t.trace,timestamp:(new Date).toISOString()})}e.messages.push(t)}),{level:this.consoleMethodsToRecord,logger:"console",stringifyOptions:{depthOfLimit:10,numOfKeysLimit:100,stringLengthLimit:1e3}})),this.listeners.push(F((t=>{G.includes(t.event)||V.some((e=>t.event.includes(e)))||e.errors.push(t)}),{enablePromisePatch:this.enablePromisePatch})),this.listeners.push(ps),As.setupNetworkListener(this,this.options)}stopListening(){this.listeners.forEach((e=>e())),this.listeners=[]}static setupNetworkListener(e,t){var n,r,o,i,a,s,c,u,l,p,f,h;const m=(null==t?void 0:t.backendUrl)||"https://pub.highlight.run",g=t.otlpEndpoint||"https://otel.highlight.io";e.highlightEndpoints=[m,g],e.xhrNetworkContents=[],e.fetchNetworkContents=[],e.webSocketNetworkContents=[],e.webSocketEventContents=[],e.networkHeadersToRedact=[],e.urlBlocklist=[],e.tracingOrigins=t.tracingOrigins||[],void 0!==(null==t?void 0:t.disableNetworkRecording)?(e.disableNetworkRecording=null==t?void 0:t.disableNetworkRecording,e.enableRecordingNetworkContents=!1,e.disableRecordingWebSocketContents=!0,e.networkHeadersToRedact=[],e.networkBodyKeysToRedact=[],e.urlBlocklist=[],e.networkBodyKeysToRecord=[]):"boolean"==typeof(null==t?void 0:t.networkRecording)?(e.disableNetworkRecording=!t.networkRecording,e.enableRecordingNetworkContents=!1,e.disableRecordingWebSocketContents=!0,e.networkHeadersToRedact=[],e.networkBodyKeysToRedact=[],e.urlBlocklist=[]):(void 0!==(null==(n=t.networkRecording)?void 0:n.enabled)?e.disableNetworkRecording=!t.networkRecording.enabled:e.disableNetworkRecording=!1,e.enableRecordingNetworkContents=(null==(r=t.networkRecording)?void 0:r.recordHeadersAndBody)||!1,e.disableRecordingWebSocketContents=(null==(o=t.networkRecording)?void 0:o.disableWebSocketEventRecordings)||!1,e.networkHeadersToRedact=(null==(a=null==(i=t.networkRecording)?void 0:i.networkHeadersToRedact)?void 0:a.map((e=>e.toLowerCase())))||[],e.networkBodyKeysToRedact=(null==(c=null==(s=t.networkRecording)?void 0:s.networkBodyKeysToRedact)?void 0:c.map((e=>e.toLowerCase())))||[],e.urlBlocklist=(null==(l=null==(u=t.networkRecording)?void 0:u.urlBlocklist)?void 0:l.map((e=>e.toLowerCase())))||[],e.urlBlocklist=[...e.urlBlocklist,...ua],e.requestResponseSanitizer=null==(p=t.networkRecording)?void 0:p.requestResponseSanitizer,e.networkHeaderKeysToRecord=null==(f=t.networkRecording)?void 0:f.headerKeysToRecord,e.networkHeaderKeysToRecord&&(e.networkHeadersToRedact=[],e.networkHeaderKeysToRecord=e.networkHeaderKeysToRecord.map((e=>e.toLocaleLowerCase()))),e.networkBodyKeysToRecord=null==(h=t.networkRecording)?void 0:h.bodyKeysToRecord,e.networkBodyKeysToRecord&&(e.networkBodyKeysToRedact=[],e.networkBodyKeysToRecord=e.networkBodyKeysToRecord.map((e=>e.toLocaleLowerCase())))),!e.disableNetworkRecording&&e.enableRecordingNetworkContents&&e.listeners.push((({xhrCallback:e,fetchCallback:t,webSocketRequestCallback:n,webSocketEventCallback:r,disableWebSocketRecording:o,bodyKeysToRedact:i,highlightEndpoints:a,tracingOrigins:s,urlBlocklist:c,bodyKeysToRecord:u})=>{const l=ya(e,a,s,c,i,u),p=ba(t,a,s,c,i,u),f=o?()=>{}:((e,t,n)=>{const r=window._highlightWebSocketRequestCallback;window._highlightWebSocketRequestCallback=e;const o=window._highlightWebSocketEventCallback;return window._highlightWebSocketEventCallback=e=>{const r=e,{message:o,size:i}=r,a=d(r,["message","size"]),s=n.some((t=>e.name.toLowerCase().includes(t)))?a:e;t(s)},()=>{window._highlightWebSocketRequestCallback=r,window._highlightWebSocketEventCallback=o}})(n,r,c);return()=>{l(),p(),f()}})({xhrCallback:t=>{e.xhrNetworkContents.push(t)},fetchCallback:t=>{e.fetchNetworkContents.push(t)},webSocketRequestCallback:t=>{e.webSocketNetworkContents&&e.webSocketNetworkContents.push(t)},webSocketEventCallback:t=>{e.webSocketEventContents.push(t)},disableWebSocketRecording:e.disableRecordingWebSocketContents,bodyKeysToRedact:e.networkBodyKeysToRedact,highlightEndpoints:e.highlightEndpoints,tracingOrigins:e.tracingOrigins,urlBlocklist:e.urlBlocklist,bodyKeysToRecord:e.networkBodyKeysToRecord}))}static getRecordedNetworkResources(e,t){var n,r;let o=[],i=[];if(!e.disableNetworkRecording){const i=(null==(n=null==window?void 0:window.performance)?void 0:n.timeOrigin)||0;o=performance.getEntriesByType("resource");const a=2*(t-i);if(o=o.filter((t=>!(t.responseEnd<e.lastNetworkRequestTimestamp)&&fa(t.name,e.highlightEndpoints,e.tracingOrigins))).map((e=>p(l({},e.toJSON()),{offsetStartTime:e.startTime-a,offsetResponseEnd:e.responseEnd-a,offsetFetchStart:e.fetchStart-a}))),e.lastNetworkRequestTimestamp=(null==(r=o.at(-1))?void 0:r.responseEnd)||e.lastNetworkRequestTimestamp,e.enableRecordingNetworkContents){const t={headersToRedact:e.networkHeadersToRedact,headersToRecord:e.networkHeaderKeysToRecord,requestResponseSanitizer:e.requestResponseSanitizer};o=da(o,e.xhrNetworkContents,"xmlhttprequest",t),o=da(o,e.fetchNetworkContents,"fetch",t)}}return e.disableRecordingWebSocketContents||(i=e.webSocketNetworkContents||[]),[...o,...i]}static getRecordedWebSocketEvents(e){let t=[];return!e.disableNetworkRecording&&!e.disableRecordingWebSocketContents&&(t=e.webSocketEventContents),t}static clearRecordedNetworkResources(e){e.disableNetworkRecording||(e.xhrNetworkContents=[],e.fetchNetworkContents=[],e.webSocketNetworkContents=[],e.webSocketEventContents=[],performance.clearResourceTimings())}}const Ss=()=>{var e;var t="";const n="undefined"!=typeof window&&(null==(e=window.crypto)?void 0:e.getRandomValues),r=new Uint32Array(28);n&&window.crypto.getRandomValues(r);for(let e=0;e<28;e++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n?r[e]%62:Math.floor(62*Math.random()));return t};function ws(e){var t;e.on&&null!=(t=e.webContents)&&t.send&&(e.on("focus",(()=>{e.webContents.send("highlight.run",{visible:!0})})),e.on("blur",(()=>{e.webContents.send("highlight.run",{visible:!1})})),e.on("close",(()=>{e.webContents.send("highlight.run",{visible:!1})})))}const Os=({next:e,payload:t})=>{if("undefined"!=typeof window&&"undefined"!=typeof document&&"H"in window)if("track"===t.obj.type){const e=t.obj.event,n=t.obj.properties;window.H.track(e,n)}else if("identify"===t.obj.type){const e=t.obj.userId;if(null!=e&&e.length){const n=t.obj.traits;window.H.identify(e,n)}}e(t)},Rs=()=>{if("undefined"!=typeof window){if(void 0!==window._highlightFetchPatch)return;window._originalFetch=window.fetch,window._fetchProxy=(e,t)=>window._originalFetch(e,t),window._highlightFetchPatch=(e,t)=>window._fetchProxy.call(window||global,e,t),window.fetch=window._highlightFetchPatch}},Cs=()=>null,Ns=()=>{if("undefined"!=typeof window){if(void 0!==window._highlightWebSocketRequestCallback)return;window._highlightWebSocketRequestCallback=Cs,window._highlightWebSocketEventCallback=Cs;const e=new Proxy(window.WebSocket,{construct(e,t){const[,n]=ma(),r=new e(...t),o=e=>{window._highlightWebSocketRequestCallback({socketId:n,initiatorType:"websocket",type:"open",name:r.url,startTimeAbs:performance.timeOrigin+e.timeStamp})},i=e=>{window._highlightWebSocketRequestCallback({socketId:n,initiatorType:"websocket",type:"close",name:r.url,responseEndAbs:performance.timeOrigin+e.timeStamp}),r.removeEventListener("open",o),r.removeEventListener("error",s),r.removeEventListener("message",a),r.removeEventListener("close",i)},a=e=>{const{data:t}=e,o="string"==typeof t?e.data:void 0;let i;i="string"==typeof t?t.length:t instanceof Blob?t.size:t.byteLength||0,window._highlightWebSocketEventCallback({socketId:n,type:"received",name:r.url,timeStamp:performance.timeOrigin+e.timeStamp,size:i,message:o})},s=e=>{window._highlightWebSocketEventCallback({socketId:n,type:"error",name:r.url,timeStamp:performance.timeOrigin+e.timeStamp,size:0})};r.addEventListener("open",o),r.addEventListener("error",s),r.addEventListener("message",a),r.addEventListener("close",i);const c=new Proxy(r.send,{apply:function(e,t,o){const i=o[0],a="string"==typeof i?i:void 0;let s;s="string"==typeof i?i.length:i instanceof Blob?i.size:i.byteLength||0,window._highlightWebSocketEventCallback({socketId:n,type:"sent",name:r.url,timeStamp:performance.timeOrigin+performance.now(),size:s,message:a}),e.apply(t,o)}});return r.send=c,r}});window.WebSocket=e}},Ls=()=>{const e={end:()=>{},spanContext:()=>({traceId:"",spanId:"",traceFlags:0}),setAttribute:(t,n)=>e,setAttributes:t=>e,addEvent:(t,n,r)=>e,addLinks:t=>e,setStatus:t=>e,recordException:()=>{},addLink:()=>e,updateName:()=>e,isRecording:()=>!1};return e};var Is;!function(e){e.Device="Device",e.WebVital="WebVital",e.Frontend="Frontend",e.Backend="Backend"}(Is||(Is={}));const Ps=(e,t)=>{console.warn(`highlight.run warning: (${e}): `,t)};let ks,xs,Ds,Ms,Us=[],Bs=!1;const js={options:void 0,init:(e,t)=>{var r,o,i,a,s,c,u,d;try{if(js.options=t,"undefined"==typeof window||"undefined"==typeof document)return;if(!e)return void console.info("Highlight is not initializing because projectID was passed undefined.");null!=t&&t.skipCookieSessionDataLoad?Wi(!1):function(){const e=zi.getItem(ea.SESSION_ID);ra(e);const t=ta(e),n=zi.getItem(t);try{ia(JSON.parse(n))}catch(e){}}();let f=oa(),g=Ss();if(null!=f&&f.sessionSecureID&&(g=f.sessionSecureID),Bs)return{sessionSecureID:g};Bs=!0,Rs(),Ns(),n.e(387).then(n.bind(n,387)).then((n=>h(void 0,[n],(function*({Highlight:n,setupBrowserTracing:r,getTracer:o}){var i,a,s;r({otlpEndpoint:null!=(i=null==t?void 0:t.otlpEndpoint)?i:"https://otel.highlight.io",projectId:e,sessionSecureId:g,environment:null!=(a=null==t?void 0:t.environment)?a:"production",networkRecordingOptions:"object"==typeof(null==t?void 0:t.networkRecording)?t.networkRecording:void 0,tracingOrigins:null==t?void 0:t.tracingOrigins,serviceName:null!=(s=null==t?void 0:t.serviceName)?s:"highlight-browser"}),Ms=o,xs=new n(y,Ds),Rs(),Ns(),null!=t&&t.manualStart||(yield xs.initialize())}))));const y=p(l({},t),{organizationID:e,firstloadVersion:"9.7.1",environment:(null==t?void 0:t.environment)||"production",appVersion:null==t?void 0:t.version,sessionSecureID:g});return Ds=new As(y),null!=t&&t.manualStart||Ds.startListening(),!(null!=(o=null==(r=null==t?void 0:t.integrations)?void 0:r.mixpanel)&&o.disabled)&&null!=(a=null==(i=null==t?void 0:t.integrations)?void 0:i.mixpanel)&&a.projectToken&&(({projectToken:e})=>{if(window.mixpanel)return;var t,n,r;document,(t=window.mixpanel||[]).__SV||(window.mixpanel=t,t._i=[],t.init=function(e,o,i){function a(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var s=t;for(void 0!==i?s=t[i]=[]:i="mixpanel",s.people=s.people||[],s.toString=function(e){var t="mixpanel";return"mixpanel"!==i&&(t+="."+i),e||(t+=" (stub)"),t},s.people.toString=function(){return s.toString(1)+".people (stub)"},n="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),r=0;r<n.length;r++)a(s,n[r]);var c="set set_once union unset remove delete".split(" ");s.get_group=function(){function e(e){t[e]=function(){call2_args=arguments,call2=[e].concat(Array.prototype.slice.call(call2_args,0)),s.push([n,call2])}}for(var t={},n=["get_group"].concat(Array.prototype.slice.call(arguments,0)),r=0;r<c.length;r++)e(c[r]);return t},t._i.push([e,o,i])},t.__SV=1.2);const o=document.createElement("script");o.src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",document.head.appendChild(o),o.addEventListener("load",(()=>{var t;null==(t=window.mixpanel)||t.init(e)}))})(t.integrations.mixpanel),!(null!=(c=null==(s=null==t?void 0:t.integrations)?void 0:s.amplitude)&&c.disabled)&&null!=(d=null==(u=null==t?void 0:t.integrations)?void 0:u.amplitude)&&d.apiKey&&m(t.integrations.amplitude),{sessionSecureID:g}}catch(e){Ps("init",e)}},snapshot:e=>h(void 0,null,(function*(){try{if(xs&&xs.ready)return yield xs.snapshot(e)}catch(e){Ps("snapshot",e)}})),addSessionFeedback:({verbatim:e,userName:t,userEmail:n,timestampOverride:r})=>{try{js.onHighlightReady((()=>xs.addSessionFeedback({verbatim:e,timestamp:r||(new Date).toISOString(),user_email:n,user_name:t})))}catch(e){Ps("error",e)}},consumeError:(e,t,n)=>{try{js.onHighlightReady((()=>xs.consumeCustomError(e,t,JSON.stringify(n))))}catch(e){Ps("error",e)}},consume:(e,t)=>{try{js.onHighlightReady((()=>xs.consumeError(e,t)))}catch(e){Ps("error",e)}},error:(e,t)=>{try{js.onHighlightReady((()=>xs.pushCustomError(e,JSON.stringify(t))))}catch(e){Ps("error",e)}},track:(e,t={})=>{var n,r,o,i,a,s,c,u,d,f,h;try{js.onHighlightReady((()=>xs.addProperties(p(l({},t),{event:e}))));const m=null==xs?void 0:xs.getCurrentSessionURL();null!=(o=null==(r=null==(n=js.options)?void 0:n.integrations)?void 0:r.mixpanel)&&o.disabled||null!=(i=window.mixpanel)&&i.track&&window.mixpanel.track(e,p(l({},t),{highlightSessionURL:m})),null!=(c=null==(s=null==(a=js.options)?void 0:a.integrations)?void 0:s.amplitude)&&c.disabled||null!=(u=window.amplitude)&&u.getInstance&&window.amplitude.getInstance().logEvent(e,p(l({},t),{highlightSessionURL:m})),null!=(h=null==(f=null==(d=js.options)?void 0:d.integrations)?void 0:f.intercom)&&h.disabled||window.Intercom&&window.Intercom("trackEvent",e,t)}catch(e){Ps("track",e)}},start:e=>{"Recording"!==(null==xs?void 0:xs.state)||null!=e&&e.forceNew?(Ds.startListening(),js.onHighlightReady((()=>h(void 0,null,(function*(){yield xs.initialize(e)}))),{waitForReady:!1})):null!=e&&e.silent||console.warn("Highlight is already recording. Please `H.stop()` the current session before starting a new one.")},stop:e=>{"Recording"!==(null==xs?void 0:xs.state)?null!=e&&e.silent||console.warn("Highlight is already stopped. Please call `H.start()`."):js.onHighlightReady((()=>xs.stopRecording(!0)))},identify:(e,t={})=>{var n,r,o,i,a,s,c,u;try{js.onHighlightReady((()=>xs.identify(e,t)))}catch(e){Ps("identify",e)}if(null!=(o=null==(r=null==(n=js.options)?void 0:n.integrations)?void 0:r.mixpanel)&&o.disabled||null!=(i=window.mixpanel)&&i.identify&&(window.mixpanel.identify("string"==typeof(null==t?void 0:t.email)?null==t?void 0:t.email:e),t&&(window.mixpanel.track("identify",t),window.mixpanel.people.set(t))),(null==(c=null==(s=null==(a=js.options)?void 0:a.integrations)?void 0:s.amplitude)||!c.disabled)&&null!=(u=window.amplitude)&&u.getInstance&&(window.amplitude.getInstance().setUserId(e),Object.keys(t).length>0)){const e=Object.keys(t).reduce(((e,n)=>(e.set(n,t[n]),e)),new window.amplitude.Identify);window.amplitude.getInstance().identify(e)}},metrics:e=>{try{js.onHighlightReady((()=>xs.recordMetric(e.map((e=>p(l({},e),{category:Is.Frontend}))))))}catch(e){Ps("metrics",e)}},startSpan:(e,t,n,r)=>{const o="function"==typeof Ms?Ms():void 0;if(!o){const e=Ls();return void 0===r&&void 0===n?t(e):void 0===r?n(e):r(e)}const i=(e,t)=>{const n=t(e);return n instanceof Promise?n.finally((()=>e.end())):(e.end(),n)};return void 0===r&&void 0===n?o.startActiveSpan(e,(e=>i(e,t))):void 0===r?o.startActiveSpan(e,t,(e=>i(e,n))):o.startActiveSpan(e,t,n,(e=>i(e,r)))},startManualSpan:(e,t,n,r)=>{const o="function"==typeof Ms?Ms():void 0;if(!o){const e=Ls();return void 0===r&&void 0===n?t(e):void 0===r?n(e):r(e)}return void 0===r&&void 0===n?o.startActiveSpan(e,t):void 0===r?o.startActiveSpan(e,t,n):o.startActiveSpan(e,t,n,r)},getSessionURL:()=>new Promise(((e,t)=>{js.onHighlightReady((()=>{const n=xs.sessionData.sessionSecureID,r=oa(n);r?e(`https://${b}/${r.projectID}/sessions/${n}`):t(new Error(`Unable to get session URL: ${n}`))}))})),getSessionDetails:()=>new Promise(((e,t)=>{js.onHighlightReady((()=>h(void 0,null,(function*(){try{const t=yield js.getSessionURL();if(!t)throw new Error("Could not get session URL");const n=xs.sessionData.sessionSecureID,r=oa(n),o=null==r?void 0:r.sessionStartTime;if(!o)throw new Error("Could not get session start timestamp");const i=(new Date).getTime(),a=new URL(t),s=new URL(t);s.searchParams.set("ts",((i-o)/1e3).toString()),e({url:a.toString(),urlWithTimestamp:s.toString(),sessionSecureID:n})}catch(e){t(e)}}))))})),getRecordingState:()=>{var e;return null!=(e=null==xs?void 0:xs.state)?e:"NotRecording"},onHighlightReady:(e,t)=>{if(xs&&xs.ready)return void e();if(Us.push({options:t,func:e}),void 0!==ks)return;const n=()=>{Us=Us.filter((e=>{var t;return!xs||!1!==(null==(t=e.options)?void 0:t.waitForReady)&&!xs.ready||(e.func(),!1)})),ks=void 0,Us.length>0&&(ks=setTimeout(n,200))};n()}};"undefined"!=typeof window&&(window.H=js),(()=>{var e,t;"undefined"!=typeof chrome&&null!=(e=null==chrome?void 0:chrome.runtime)&&e.onMessage&&(null==(t=null==chrome?void 0:chrome.runtime)||t.onMessage.addListener(((e,t,n)=>{const r=e.action;switch(console.log(`[highlight] received '${r}' event from extension.`),r){case"init":js.init(1,{debug:!0}),js.getSessionURL().then((e=>{n({url:e})}));break;case"stop":js.stop(),n({success:!0})}return!0})))})(),Rs(),Ns();const Fs={reset:()=>{Bs=!1,xs=void 0,Us=[],ks=void 0,Ds=void 0},setHighlightObj:e=>{xs=e}}},324:(e,t,n)=>{n.r(t),n.d(t,{H:()=>r.A,HighlightSegmentMiddleware:()=>r.B,MetricCategory:()=>r.C,__testing:()=>r._,configureElectronHighlight:()=>r.z});var r=n(767)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".index.umd.min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="FormoAnalytics:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==n||p.getAttribute("data-webpack")==t+i){s=p;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={23:0,913:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,c]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);c&&c(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkFormoAnalytics=self.webpackChunkFormoAnalytics||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=o(156);return i.FormoAnalytics})()));
|
|
3
3
|
//# sourceMappingURL=index.umd.min.js.map
|