@icanbwell/composite 1.1252.1 → 1.1254.3

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://@icanbwell/composite/../node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js","webpack://@icanbwell/composite/javascript/node_modules/merge-options/index.mjs","webpack://@icanbwell/composite/../node_modules/@react-native-async-storage/async-storage/lib/module/hooks.js","webpack://@icanbwell/composite/../node_modules/@react-native-async-storage/async-storage/lib/module/index.js","webpack://@icanbwell/composite/../node_modules/is-absolute-url/index.js","webpack://@icanbwell/composite/../node_modules/is-plain-obj/index.js","webpack://@icanbwell/composite/../node_modules/merge-options/index.js","webpack://@icanbwell/composite/../node_modules/print-js/dist/print.js","webpack://@icanbwell/composite/../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@icanbwell/composite/../node_modules/react/cjs/react.production.min.js","webpack://@icanbwell/composite/../node_modules/react/index.js","webpack://@icanbwell/composite/../node_modules/react/jsx-runtime.js"],"names":["merge","mergeLocalStorageItem","key","value","oldValue","oldObject","newObject","nextValue","createPromise","getValue","callback","resolve","reject","err","createPromiseAll","promises","processResult","result","errors","AsyncStorage","numberOfKeys","keys","i","keyValuePairs","item","useAsyncStorage","args","module","url","prototype","isOptionObject","hasOwnProperty","propertyIsEnumerable","defineProperty","object","name","globalThis","defaultMergeOptions","getEnumerableOwnPropertyKeys","symbols","symbol","clone","cloneArray","cloneOptionObject","array","mergeKeys","merged","source","config","concatArrays","resultIndex","indices","k","options","option","root","factory","modules","installedModules","moduleId","exports","getter","mode","ns","property","_sass_index_scss__WEBPACK_IMPORTED_MODULE_0__","_sass_index_scss__WEBPACK_IMPORTED_MODULE_0___default","_js_init__WEBPACK_IMPORTED_MODULE_1__","printJS","Browser","context","addWrapper","capitalizePrint","collectStyles","addHeader","cleanUp","isRawHTML","_modal__WEBPACK_IMPORTED_MODULE_0__","_browser__WEBPACK_IMPORTED_MODULE_1__","_typeof","obj","htmlData","params","bodyStyle","element","win","elementStyle","styles","targetStylesMatch","printElement","headerContainer","headerElement","headerNode","event","handler","iframe","raw","regexHtml","_functions__WEBPACK_IMPORTED_MODULE_0__","_print__WEBPACK_IMPORTED_MODULE_1__","printFrame","isHtmlElement","cloneElement","childNodesArray","clonedChild","printable","_browser__WEBPACK_IMPORTED_MODULE_2__","src","img","fullyQualifiedSrc","imageWrapper","_browser__WEBPACK_IMPORTED_MODULE_0__","_modal__WEBPACK_IMPORTED_MODULE_1__","_pdf__WEBPACK_IMPORTED_MODULE_2__","_html__WEBPACK_IMPORTED_MODULE_3__","_raw_html__WEBPACK_IMPORTED_MODULE_4__","_image__WEBPACK_IMPORTED_MODULE_5__","_json__WEBPACK_IMPORTED_MODULE_6__","printTypes","error","usedFrame","file","jsonToHTML","data","properties","a","n","stringData","p","Modal","modalStyle","printModal","contentDiv","closeButton","spinner","messageNode","_print__WEBPACK_IMPORTED_MODULE_0__","_functions__WEBPACK_IMPORTED_MODULE_1__","bytesArray","c","createBlobAndPrint","req","localPdf","Print","iframeElement","performPrint","printDocument","style","images","loadIframeImages","image","loadIframeImage","pollImage","__webpack_require__","f","l","m","q","g","b","d","e","h","r","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","escape","P","Q","R","S","T","U","V","W","X"],"mappings":"wHAcA,MAAMA,ECPS,EDOY,KAAK,CAC9B,aAAc,GACd,gBAAiB,EACnB,CAAC,EACD,SAASC,EAAsBC,EAAKC,EAAO,CACzC,MAAMC,EAAW,OAAO,aAAa,QAAQF,CAAG,EAChD,GAAIE,EAAU,CACZ,MAAMC,EAAY,KAAK,MAAMD,CAAQ,EAC/BE,EAAY,KAAK,MAAMH,CAAK,EAC5BI,EAAY,KAAK,UAAUP,EAAMK,EAAWC,CAAS,CAAC,EAC5D,OAAO,aAAa,QAAQJ,EAAKK,CAAS,CAC5C,MACE,OAAO,aAAa,QAAQL,EAAKC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AAC,EAAEnG,EAAQ,WAAW,SAASiE,EAAEkC,EAAEE,EAAE,CAAC,OAAO+B,EAAE,QAAQ,WAAWnE,EAAEkC,EAAEE,CAAC,CAAC,EAAErG,EAAQ,OAAO,SAASiE,EAAE,CAAC,OAAOmE,EAAE,QAAQ,OAAOnE,CAAC,CAAC,EAAEjE,EAAQ,SAAS,SAASiE,EAAE,CAAC,OAAOmE,EAAE,QAAQ,SAASnE,CAAC,CAAC,EAAEjE,EAAQ,qBAAqB,SAASiE,EAAEkC,EAAEE,EAAE,CAAC,OAAO+B,EAAE,QAAQ,qBAAqBnE,EAAEkC,EAAEE,CAAC,CAAC,EAAErG,EAAQ,cAAc,UAAU,CAAC,OAAOoI,EAAE,QAAQ,cAAc,CAAC,EAAEpI,EAAQ,QAAQ,Q,2BCtBlajC,EAAO,QAAU,EAAjB,K,2BCAAA,EAAO,QAAU,EAAjB,K","file":"581.index.js","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport mergeOptions from \"merge-options\";\n\n// eslint-disable-next-line @typescript-eslint/ban-types\n\n// eslint-disable-next-line @typescript-eslint/ban-types\n\nconst merge = mergeOptions.bind({\n concatArrays: true,\n ignoreUndefined: true\n});\nfunction mergeLocalStorageItem(key, value) {\n const oldValue = window.localStorage.getItem(key);\n if (oldValue) {\n const oldObject = JSON.parse(oldValue);\n const newObject = JSON.parse(value);\n const nextValue = JSON.stringify(merge(oldObject, newObject));\n window.localStorage.setItem(key, nextValue);\n } else {\n window.localStorage.setItem(key, value);\n }\n}\nfunction createPromise(getValue, callback) {\n return new Promise((resolve, reject) => {\n try {\n const value = getValue();\n callback === null || callback === void 0 ? void 0 : callback(null, value);\n resolve(value);\n } catch (err) {\n callback === null || callback === void 0 ? void 0 : callback(err);\n reject(err);\n }\n });\n}\nfunction createPromiseAll(promises, callback, processResult) {\n return Promise.all(promises).then(result => {\n const value = (processResult === null || processResult === void 0 ? void 0 : processResult(result)) ?? null;\n callback === null || callback === void 0 ? void 0 : callback(null, value);\n return Promise.resolve(value);\n }, errors => {\n callback === null || callback === void 0 ? void 0 : callback(errors);\n return Promise.reject(errors);\n });\n}\nconst AsyncStorage = {\n /**\n * Fetches `key` value.\n */\n getItem: (key, callback) => {\n return createPromise(() => window.localStorage.getItem(key), callback);\n },\n /**\n * Sets `value` for `key`.\n */\n setItem: (key, value, callback) => {\n return createPromise(() => window.localStorage.setItem(key, value), callback);\n },\n /**\n * Removes a `key`\n */\n removeItem: (key, callback) => {\n return createPromise(() => window.localStorage.removeItem(key), callback);\n },\n /**\n * Merges existing value with input value, assuming they are stringified JSON.\n */\n mergeItem: (key, value, callback) => {\n return createPromise(() => mergeLocalStorageItem(key, value), callback);\n },\n /**\n * Erases *all* AsyncStorage for the domain.\n */\n clear: callback => {\n return createPromise(() => window.localStorage.clear(), callback);\n },\n /**\n * Gets *all* keys known to the app, for all callers, libraries, etc.\n */\n getAllKeys: callback => {\n return createPromise(() => {\n const numberOfKeys = window.localStorage.length;\n const keys = [];\n for (let i = 0; i < numberOfKeys; i += 1) {\n const key = window.localStorage.key(i) || \"\";\n keys.push(key);\n }\n return keys;\n }, callback);\n },\n /**\n * (stub) Flushes any pending requests using a single batch call to get the data.\n */\n flushGetRequests: () => undefined,\n /**\n * multiGet resolves to an array of key-value pair arrays that matches the\n * input format of multiSet.\n *\n * multiGet(['k1', 'k2']) -> [['k1', 'val1'], ['k2', 'val2']]\n */\n multiGet: (keys, callback) => {\n const promises = keys.map(key => AsyncStorage.getItem(key));\n const processResult = result => result.map((value, i) => [keys[i], value]);\n return createPromiseAll(promises, callback, processResult);\n },\n /**\n * Takes an array of key-value array pairs.\n * multiSet([['k1', 'val1'], ['k2', 'val2']])\n */\n multiSet: (keyValuePairs, callback) => {\n const promises = keyValuePairs.map(item => AsyncStorage.setItem(item[0], item[1]));\n return createPromiseAll(promises, callback);\n },\n /**\n * Delete all the keys in the `keys` array.\n */\n multiRemove: (keys, callback) => {\n const promises = keys.map(key => AsyncStorage.removeItem(key));\n return createPromiseAll(promises, callback);\n },\n /**\n * Takes an array of key-value array pairs and merges them with existing\n * values, assuming they are stringified JSON.\n *\n * multiMerge([['k1', 'val1'], ['k2', 'val2']])\n */\n multiMerge: (keyValuePairs, callback) => {\n const promises = keyValuePairs.map(item => AsyncStorage.mergeItem(item[0], item[1]));\n return createPromiseAll(promises, callback);\n }\n};\nexport default AsyncStorage;\n//# sourceMappingURL=AsyncStorage.js.map","/**\n * Thin ESM wrapper for CJS named exports.\n *\n * Ref: https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1\n */\n\nimport mergeOptions from './index.js';\nexport default mergeOptions;\n","import AsyncStorage from \"./AsyncStorage\";\nexport function useAsyncStorage(key) {\n return {\n getItem: (...args) => AsyncStorage.getItem(key, ...args),\n setItem: (...args) => AsyncStorage.setItem(key, ...args),\n mergeItem: (...args) => AsyncStorage.mergeItem(key, ...args),\n removeItem: (...args) => AsyncStorage.removeItem(key, ...args)\n };\n}\n//# sourceMappingURL=hooks.js.map","import AsyncStorage from \"./AsyncStorage\";\nexport { useAsyncStorage } from \"./hooks\";\nexport default AsyncStorage;\n//# sourceMappingURL=index.js.map","'use strict';\n\nmodule.exports = url => {\n\tif (typeof url !== 'string') {\n\t\tthrow new TypeError(`Expected a \\`string\\`, got \\`${typeof url}\\``);\n\t}\n\n\t// Don't match Windows paths `c:\\`\n\tif (/^[a-zA-Z]:\\\\/.test(url)) {\n\t\treturn false;\n\t}\n\n\t// Scheme: https://tools.ietf.org/html/rfc3986#section-3.1\n\t// Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3\n\treturn /^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(url);\n};\n","'use strict';\n\nmodule.exports = value => {\n\tif (Object.prototype.toString.call(value) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn prototype === null || prototype === Object.prototype;\n};\n","'use strict';\nconst isOptionObject = require('is-plain-obj');\n\nconst {hasOwnProperty} = Object.prototype;\nconst {propertyIsEnumerable} = Object;\nconst defineProperty = (object, name, value) => Object.defineProperty(object, name, {\n\tvalue,\n\twritable: true,\n\tenumerable: true,\n\tconfigurable: true\n});\n\nconst globalThis = this;\nconst defaultMergeOptions = {\n\tconcatArrays: false,\n\tignoreUndefined: false\n};\n\nconst getEnumerableOwnPropertyKeys = value => {\n\tconst keys = [];\n\n\tfor (const key in value) {\n\t\tif (hasOwnProperty.call(value, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\n\t/* istanbul ignore else */\n\tif (Object.getOwnPropertySymbols) {\n\t\tconst symbols = Object.getOwnPropertySymbols(value);\n\n\t\tfor (const symbol of symbols) {\n\t\t\tif (propertyIsEnumerable.call(value, symbol)) {\n\t\t\t\tkeys.push(symbol);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn keys;\n};\n\nfunction clone(value) {\n\tif (Array.isArray(value)) {\n\t\treturn cloneArray(value);\n\t}\n\n\tif (isOptionObject(value)) {\n\t\treturn cloneOptionObject(value);\n\t}\n\n\treturn value;\n}\n\nfunction cloneArray(array) {\n\tconst result = array.slice(0, 0);\n\n\tgetEnumerableOwnPropertyKeys(array).forEach(key => {\n\t\tdefineProperty(result, key, clone(array[key]));\n\t});\n\n\treturn result;\n}\n\nfunction cloneOptionObject(object) {\n\tconst result = Object.getPrototypeOf(object) === null ? Object.create(null) : {};\n\n\tgetEnumerableOwnPropertyKeys(object).forEach(key => {\n\t\tdefineProperty(result, key, clone(object[key]));\n\t});\n\n\treturn result;\n}\n\n/**\n * @param {*} merged already cloned\n * @param {*} source something to merge\n * @param {string[]} keys keys to merge\n * @param {Object} config Config Object\n * @returns {*} cloned Object\n */\nconst mergeKeys = (merged, source, keys, config) => {\n\tkeys.forEach(key => {\n\t\tif (typeof source[key] === 'undefined' && config.ignoreUndefined) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Do not recurse into prototype chain of merged\n\t\tif (key in merged && merged[key] !== Object.getPrototypeOf(merged)) {\n\t\t\tdefineProperty(merged, key, merge(merged[key], source[key], config));\n\t\t} else {\n\t\t\tdefineProperty(merged, key, clone(source[key]));\n\t\t}\n\t});\n\n\treturn merged;\n};\n\n/**\n * @param {*} merged already cloned\n * @param {*} source something to merge\n * @param {Object} config Config Object\n * @returns {*} cloned Object\n *\n * see [Array.prototype.concat ( ...arguments )](http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.concat)\n */\nconst concatArrays = (merged, source, config) => {\n\tlet result = merged.slice(0, 0);\n\tlet resultIndex = 0;\n\n\t[merged, source].forEach(array => {\n\t\tconst indices = [];\n\n\t\t// `result.concat(array)` with cloning\n\t\tfor (let k = 0; k < array.length; k++) {\n\t\t\tif (!hasOwnProperty.call(array, k)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tindices.push(String(k));\n\n\t\t\tif (array === merged) {\n\t\t\t\t// Already cloned\n\t\t\t\tdefineProperty(result, resultIndex++, array[k]);\n\t\t\t} else {\n\t\t\t\tdefineProperty(result, resultIndex++, clone(array[k]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge non-index keys\n\t\tresult = mergeKeys(result, array, getEnumerableOwnPropertyKeys(array).filter(key => !indices.includes(key)), config);\n\t});\n\n\treturn result;\n};\n\n/**\n * @param {*} merged already cloned\n * @param {*} source something to merge\n * @param {Object} config Config Object\n * @returns {*} cloned Object\n */\nfunction merge(merged, source, config) {\n\tif (config.concatArrays && Array.isArray(merged) && Array.isArray(source)) {\n\t\treturn concatArrays(merged, source, config);\n\t}\n\n\tif (!isOptionObject(source) || !isOptionObject(merged)) {\n\t\treturn clone(source);\n\t}\n\n\treturn mergeKeys(merged, source, getEnumerableOwnPropertyKeys(source), config);\n}\n\nmodule.exports = function (...options) {\n\tconst config = merge(clone(defaultMergeOptions), (this !== globalThis && this) || {}, defaultMergeOptions);\n\tlet merged = {_: {}};\n\n\tfor (const option of options) {\n\t\tif (option === undefined) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!isOptionObject(option)) {\n\t\t\tthrow new TypeError('`' + option + '` is not an Option Object');\n\t\t}\n\n\t\tmerged = merge(merged, {_: option}, config);\n\t}\n\n\treturn merged._;\n};\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"printJS\"] = factory();\n\telse\n\t\troot[\"printJS\"] = factory();\n})(window, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"./src/index.js\":\n/*!**********************!*\\\n !*** ./src/index.js ***!\n \\**********************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _sass_index_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sass/index.scss */ \"./src/sass/index.scss\");\n/* harmony import */ var _sass_index_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_sass_index_scss__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _js_init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./js/init */ \"./src/js/init.js\");\n\n\nvar printJS = _js_init__WEBPACK_IMPORTED_MODULE_1__[\"default\"].init;\n\nif (typeof window !== 'undefined') {\n window.printJS = printJS;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (printJS);\n\n/***/ }),\n\n/***/ \"./src/js/browser.js\":\n/*!***************************!*\\\n !*** ./src/js/browser.js ***!\n \\***************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\nvar Browser = {\n // Firefox 1.0+\n isFirefox: function isFirefox() {\n return typeof InstallTrigger !== 'undefined';\n },\n // Internet Explorer 6-11\n isIE: function isIE() {\n return navigator.userAgent.indexOf('MSIE') !== -1 || !!document.documentMode;\n },\n // Edge 20+\n isEdge: function isEdge() {\n return !Browser.isIE() && !!window.StyleMedia;\n },\n // Chrome 1+\n isChrome: function isChrome() {\n var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;\n return !!context.chrome;\n },\n // At least Safari 3+: \"[object HTMLElementConstructor]\"\n isSafari: function isSafari() {\n return Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 || navigator.userAgent.toLowerCase().indexOf('safari') !== -1;\n },\n // IOS Chrome\n isIOSChrome: function isIOSChrome() {\n return navigator.userAgent.toLowerCase().indexOf('crios') !== -1;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Browser);\n\n/***/ }),\n\n/***/ \"./src/js/functions.js\":\n/*!*****************************!*\\\n !*** ./src/js/functions.js ***!\n \\*****************************/\n/*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addWrapper\", function() { return addWrapper; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"capitalizePrint\", function() { return capitalizePrint; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectStyles\", function() { return collectStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addHeader\", function() { return addHeader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cleanUp\", function() { return cleanUp; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isRawHTML\", function() { return isRawHTML; });\n/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modal */ \"./src/js/modal.js\");\n/* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./browser */ \"./src/js/browser.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\nfunction addWrapper(htmlData, params) {\n var bodyStyle = 'font-family:' + params.font + ' !important; font-size: ' + params.font_size + ' !important; width:100%;';\n return '<div style=\"' + bodyStyle + '\">' + htmlData + '</div>';\n}\nfunction capitalizePrint(obj) {\n return obj.charAt(0).toUpperCase() + obj.slice(1);\n}\nfunction collectStyles(element, params) {\n var win = document.defaultView || window; // String variable to hold styling for each element\n\n var elementStyle = ''; // Loop over computed styles\n\n var styles = win.getComputedStyle(element, '');\n\n for (var key = 0; key < styles.length; key++) {\n // Check if style should be processed\n if (params.targetStyles.indexOf('*') !== -1 || params.targetStyle.indexOf(styles[key]) !== -1 || targetStylesMatch(params.targetStyles, styles[key])) {\n if (styles.getPropertyValue(styles[key])) elementStyle += styles[key] + ':' + styles.getPropertyValue(styles[key]) + ';';\n }\n } // Print friendly defaults (deprecated)\n\n\n elementStyle += 'max-width: ' + params.maxWidth + 'px !important; font-size: ' + params.font_size + ' !important;';\n return elementStyle;\n}\n\nfunction targetStylesMatch(styles, value) {\n for (var i = 0; i < styles.length; i++) {\n if (_typeof(value) === 'object' && value.indexOf(styles[i]) !== -1) return true;\n }\n\n return false;\n}\n\nfunction addHeader(printElement, params) {\n // Create the header container div\n var headerContainer = document.createElement('div'); // Check if the header is text or raw html\n\n if (isRawHTML(params.header)) {\n headerContainer.innerHTML = params.header;\n } else {\n // Create header element\n var headerElement = document.createElement('h1'); // Create header text node\n\n var headerNode = document.createTextNode(params.header); // Build and style\n\n headerElement.appendChild(headerNode);\n headerElement.setAttribute('style', params.headerStyle);\n headerContainer.appendChild(headerElement);\n }\n\n printElement.insertBefore(headerContainer, printElement.childNodes[0]);\n}\nfunction cleanUp(params) {\n // If we are showing a feedback message to user, remove it\n if (params.showModal) _modal__WEBPACK_IMPORTED_MODULE_0__[\"default\"].close(); // Check for a finished loading hook function\n\n if (params.onLoadingEnd) params.onLoadingEnd(); // If preloading pdf files, clean blob url\n\n if (params.showModal || params.onLoadingStart) window.URL.revokeObjectURL(params.printable); // Run onPrintDialogClose callback\n\n var event = 'mouseover';\n\n if (_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isChrome() || _browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFirefox()) {\n // Ps.: Firefox will require an extra click in the document to fire the focus event.\n event = 'focus';\n }\n\n var handler = function handler() {\n // Make sure the event only happens once.\n window.removeEventListener(event, handler);\n params.onPrintDialogClose(); // Remove iframe from the DOM\n\n var iframe = document.getElementById(params.frameId);\n\n if (iframe) {\n iframe.remove();\n }\n };\n\n window.addEventListener(event, handler);\n}\nfunction isRawHTML(raw) {\n var regexHtml = new RegExp('<([A-Za-z][A-Za-z0-9]*)\\\\b[^>]*>(.*?)</\\\\1>');\n return regexHtml.test(raw);\n}\n\n/***/ }),\n\n/***/ \"./src/js/html.js\":\n/*!************************!*\\\n !*** ./src/js/html.js ***!\n \\************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./functions */ \"./src/js/functions.js\");\n/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./print */ \"./src/js/print.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n print: function print(params, printFrame) {\n // Get the DOM printable element\n var printElement = isHtmlElement(params.printable) ? params.printable : document.getElementById(params.printable); // Check if the element exists\n\n if (!printElement) {\n window.console.error('Invalid HTML element id: ' + params.printable);\n return;\n } // Clone the target element including its children (if available)\n\n\n params.printableElement = cloneElement(printElement, params); // Add header\n\n if (params.header) {\n Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"addHeader\"])(params.printableElement, params);\n } // Print html element contents\n\n\n _print__WEBPACK_IMPORTED_MODULE_1__[\"default\"].send(params, printFrame);\n }\n});\n\nfunction cloneElement(element, params) {\n // Clone the main node (if not already inside the recursion process)\n var clone = element.cloneNode(); // Loop over and process the children elements / nodes (including text nodes)\n\n var childNodesArray = Array.prototype.slice.call(element.childNodes);\n\n for (var i = 0; i < childNodesArray.length; i++) {\n // Check if we are skipping the current element\n if (params.ignoreElements.indexOf(childNodesArray[i].id) !== -1) {\n continue;\n } // Clone the child element\n\n\n var clonedChild = cloneElement(childNodesArray[i], params); // Attach the cloned child to the cloned parent node\n\n clone.appendChild(clonedChild);\n } // Get all styling for print element (for nodes of type element only)\n\n\n if (params.scanStyles && element.nodeType === 1) {\n clone.setAttribute('style', Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"collectStyles\"])(element, params));\n } // Check if the element needs any state processing (copy user input data)\n\n\n switch (element.tagName) {\n case 'SELECT':\n // Copy the current selection value to its clone\n clone.value = element.value;\n break;\n\n case 'CANVAS':\n // Copy the canvas content to its clone\n clone.getContext('2d').drawImage(element, 0, 0);\n break;\n }\n\n return clone;\n}\n\nfunction isHtmlElement(printable) {\n // Check if element is instance of HTMLElement or has nodeType === 1 (for elements in iframe)\n return _typeof(printable) === 'object' && printable && (printable instanceof HTMLElement || printable.nodeType === 1);\n}\n\n/***/ }),\n\n/***/ \"./src/js/image.js\":\n/*!*************************!*\\\n !*** ./src/js/image.js ***!\n \\*************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./functions */ \"./src/js/functions.js\");\n/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./print */ \"./src/js/print.js\");\n/* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./browser */ \"./src/js/browser.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n print: function print(params, printFrame) {\n // Check if we are printing one image or multiple images\n if (params.printable.constructor !== Array) {\n // Create array with one image\n params.printable = [params.printable];\n } // Create printable element (container)\n\n\n params.printableElement = document.createElement('div'); // Create all image elements and append them to the printable container\n\n params.printable.forEach(function (src) {\n // Create the image element\n var img = document.createElement('img');\n img.setAttribute('style', params.imageStyle); // Set image src with the file url\n\n img.src = src; // The following block is for Firefox, which for some reason requires the image's src to be fully qualified in\n // order to print it\n\n if (_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isFirefox()) {\n var fullyQualifiedSrc = img.src;\n img.src = fullyQualifiedSrc;\n } // Create the image wrapper\n\n\n var imageWrapper = document.createElement('div'); // Append image to the wrapper element\n\n imageWrapper.appendChild(img); // Append wrapper to the printable element\n\n params.printableElement.appendChild(imageWrapper);\n }); // Check if we are adding a print header\n\n if (params.header) Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"addHeader\"])(params.printableElement, params); // Print image\n\n _print__WEBPACK_IMPORTED_MODULE_1__[\"default\"].send(params, printFrame);\n }\n});\n\n/***/ }),\n\n/***/ \"./src/js/init.js\":\n/*!************************!*\\\n !*** ./src/js/init.js ***!\n \\************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./browser */ \"./src/js/browser.js\");\n/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modal */ \"./src/js/modal.js\");\n/* harmony import */ var _pdf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pdf */ \"./src/js/pdf.js\");\n/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./html */ \"./src/js/html.js\");\n/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ \"./src/js/raw-html.js\");\n/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./image */ \"./src/js/image.js\");\n/* harmony import */ var _json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./json */ \"./src/js/json.js\");\n\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n\n\n\n\n\nvar printTypes = ['pdf', 'html', 'image', 'json', 'raw-html'];\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n init: function init() {\n var params = {\n printable: null,\n fallbackPrintable: null,\n type: 'pdf',\n header: null,\n headerStyle: 'font-weight: 300;',\n maxWidth: 800,\n properties: null,\n gridHeaderStyle: 'font-weight: bold; padding: 5px; border: 1px solid #dddddd;',\n gridStyle: 'border: 1px solid lightgray; margin-bottom: -1px;',\n showModal: false,\n onError: function onError(error) {\n throw error;\n },\n onLoadingStart: null,\n onLoadingEnd: null,\n onPrintDialogClose: function onPrintDialogClose() {},\n onIncompatibleBrowser: function onIncompatibleBrowser() {},\n modalMessage: 'Retrieving Document...',\n frameId: 'printJS',\n printableElement: null,\n documentTitle: 'Document',\n targetStyle: ['clear', 'display', 'width', 'min-width', 'height', 'min-height', 'max-height'],\n targetStyles: ['border', 'box', 'break', 'text-decoration'],\n ignoreElements: [],\n repeatTableHeader: true,\n css: null,\n style: null,\n scanStyles: true,\n base64: false,\n // Deprecated\n onPdfOpen: null,\n font: 'TimesNewRoman',\n font_size: '12pt',\n honorMarginPadding: true,\n honorColor: false,\n imageStyle: 'max-width: 100%;'\n }; // Check if a printable document or object was supplied\n\n var args = arguments[0];\n\n if (args === undefined) {\n throw new Error('printJS expects at least 1 attribute.');\n } // Process parameters\n\n\n switch (_typeof(args)) {\n case 'string':\n params.printable = encodeURI(args);\n params.fallbackPrintable = params.printable;\n params.type = arguments[1] || params.type;\n break;\n\n case 'object':\n params.printable = args.printable;\n params.fallbackPrintable = typeof args.fallbackPrintable !== 'undefined' ? args.fallbackPrintable : params.printable;\n params.fallbackPrintable = params.base64 ? \"data:application/pdf;base64,\".concat(params.fallbackPrintable) : params.fallbackPrintable;\n\n for (var k in params) {\n if (k === 'printable' || k === 'fallbackPrintable') continue;\n params[k] = typeof args[k] !== 'undefined' ? args[k] : params[k];\n }\n\n break;\n\n default:\n throw new Error('Unexpected argument type! Expected \"string\" or \"object\", got ' + _typeof(args));\n } // Validate printable\n\n\n if (!params.printable) throw new Error('Missing printable information.'); // Validate type\n\n if (!params.type || typeof params.type !== 'string' || printTypes.indexOf(params.type.toLowerCase()) === -1) {\n throw new Error('Invalid print type. Available types are: pdf, html, image and json.');\n } // Check if we are showing a feedback message to the user (useful for large files)\n\n\n if (params.showModal) _modal__WEBPACK_IMPORTED_MODULE_1__[\"default\"].show(params); // Check for a print start hook function\n\n if (params.onLoadingStart) params.onLoadingStart(); // To prevent duplication and issues, remove any used printFrame from the DOM\n\n var usedFrame = document.getElementById(params.frameId);\n if (usedFrame) usedFrame.parentNode.removeChild(usedFrame); // Create a new iframe for the print job\n\n var printFrame = document.createElement('iframe');\n\n if (_browser__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFirefox()) {\n // Set the iframe to be is visible on the page (guaranteed by fixed position) but hidden using opacity 0, because\n // this works in Firefox. The height needs to be sufficient for some part of the document other than the PDF\n // viewer's toolbar to be visible in the page\n printFrame.setAttribute('style', 'width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0');\n } else {\n // Hide the iframe in other browsers\n printFrame.setAttribute('style', 'visibility: hidden; height: 0; width: 0; position: absolute; border: 0');\n } // Set iframe element id\n\n\n printFrame.setAttribute('id', params.frameId); // For non pdf printing, pass an html document string to srcdoc (force onload callback)\n\n if (params.type !== 'pdf') {\n printFrame.srcdoc = '<html><head><title>' + params.documentTitle + '</title>'; // Attach css files\n\n if (params.css) {\n // Add support for single file\n if (!Array.isArray(params.css)) params.css = [params.css]; // Create link tags for each css file\n\n params.css.forEach(function (file) {\n printFrame.srcdoc += '<link rel=\"stylesheet\" href=\"' + file + '\">';\n });\n }\n\n printFrame.srcdoc += '</head><body></body></html>';\n } // Check printable type\n\n\n switch (params.type) {\n case 'pdf':\n // Check browser support for pdf and if not supported we will just open the pdf file instead\n if (_browser__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isIE()) {\n try {\n console.info('Print.js doesn\\'t support PDF printing in Internet Explorer.');\n var win = window.open(params.fallbackPrintable, '_blank');\n win.focus();\n params.onIncompatibleBrowser();\n } catch (error) {\n params.onError(error);\n } finally {\n // Make sure there is no loading modal opened\n if (params.showModal) _modal__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close();\n if (params.onLoadingEnd) params.onLoadingEnd();\n }\n } else {\n _pdf__WEBPACK_IMPORTED_MODULE_2__[\"default\"].print(params, printFrame);\n }\n\n break;\n\n case 'image':\n _image__WEBPACK_IMPORTED_MODULE_5__[\"default\"].print(params, printFrame);\n break;\n\n case 'html':\n _html__WEBPACK_IMPORTED_MODULE_3__[\"default\"].print(params, printFrame);\n break;\n\n case 'raw-html':\n _raw_html__WEBPACK_IMPORTED_MODULE_4__[\"default\"].print(params, printFrame);\n break;\n\n case 'json':\n _json__WEBPACK_IMPORTED_MODULE_6__[\"default\"].print(params, printFrame);\n break;\n }\n }\n});\n\n/***/ }),\n\n/***/ \"./src/js/json.js\":\n/*!************************!*\\\n !*** ./src/js/json.js ***!\n \\************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./functions */ \"./src/js/functions.js\");\n/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./print */ \"./src/js/print.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n print: function print(params, printFrame) {\n // Check if we received proper data\n if (_typeof(params.printable) !== 'object') {\n throw new Error('Invalid javascript data object (JSON).');\n } // Validate repeatTableHeader\n\n\n if (typeof params.repeatTableHeader !== 'boolean') {\n throw new Error('Invalid value for repeatTableHeader attribute (JSON).');\n } // Validate properties\n\n\n if (!params.properties || !Array.isArray(params.properties)) {\n throw new Error('Invalid properties array for your JSON data.');\n } // We will format the property objects to keep the JSON api compatible with older releases\n\n\n params.properties = params.properties.map(function (property) {\n return {\n field: _typeof(property) === 'object' ? property.field : property,\n displayName: _typeof(property) === 'object' ? property.displayName : property,\n columnSize: _typeof(property) === 'object' && property.columnSize ? property.columnSize + ';' : 100 / params.properties.length + '%;'\n };\n }); // Create a print container element\n\n params.printableElement = document.createElement('div'); // Check if we are adding a print header\n\n if (params.header) {\n Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"addHeader\"])(params.printableElement, params);\n } // Build the printable html data\n\n\n params.printableElement.innerHTML += jsonToHTML(params); // Print the json data\n\n _print__WEBPACK_IMPORTED_MODULE_1__[\"default\"].send(params, printFrame);\n }\n});\n\nfunction jsonToHTML(params) {\n // Get the row and column data\n var data = params.printable;\n var properties = params.properties; // Create a html table\n\n var htmlData = '<table style=\"border-collapse: collapse; width: 100%;\">'; // Check if the header should be repeated\n\n if (params.repeatTableHeader) {\n htmlData += '<thead>';\n } // Add the table header row\n\n\n htmlData += '<tr>'; // Add the table header columns\n\n for (var a = 0; a < properties.length; a++) {\n htmlData += '<th style=\"width:' + properties[a].columnSize + ';' + params.gridHeaderStyle + '\">' + Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"capitalizePrint\"])(properties[a].displayName) + '</th>';\n } // Add the closing tag for the table header row\n\n\n htmlData += '</tr>'; // If the table header is marked as repeated, add the closing tag\n\n if (params.repeatTableHeader) {\n htmlData += '</thead>';\n } // Create the table body\n\n\n htmlData += '<tbody>'; // Add the table data rows\n\n for (var i = 0; i < data.length; i++) {\n // Add the row starting tag\n htmlData += '<tr>'; // Print selected properties only\n\n for (var n = 0; n < properties.length; n++) {\n var stringData = data[i]; // Support nested objects\n\n var property = properties[n].field.split('.');\n\n if (property.length > 1) {\n for (var p = 0; p < property.length; p++) {\n stringData = stringData[property[p]];\n }\n } else {\n stringData = stringData[properties[n].field];\n } // Add the row contents and styles\n\n\n htmlData += '<td style=\"width:' + properties[n].columnSize + params.gridStyle + '\">' + stringData + '</td>';\n } // Add the row closing tag\n\n\n htmlData += '</tr>';\n } // Add the table and body closing tags\n\n\n htmlData += '</tbody></table>';\n return htmlData;\n}\n\n/***/ }),\n\n/***/ \"./src/js/modal.js\":\n/*!*************************!*\\\n !*** ./src/js/modal.js ***!\n \\*************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\nvar Modal = {\n show: function show(params) {\n // Build modal\n var modalStyle = 'font-family:sans-serif; ' + 'display:table; ' + 'text-align:center; ' + 'font-weight:300; ' + 'font-size:30px; ' + 'left:0; top:0;' + 'position:fixed; ' + 'z-index: 9990;' + 'color: #0460B5; ' + 'width: 100%; ' + 'height: 100%; ' + 'background-color:rgba(255,255,255,.9);' + 'transition: opacity .3s ease;'; // Create wrapper\n\n var printModal = document.createElement('div');\n printModal.setAttribute('style', modalStyle);\n printModal.setAttribute('id', 'printJS-Modal'); // Create content div\n\n var contentDiv = document.createElement('div');\n contentDiv.setAttribute('style', 'display:table-cell; vertical-align:middle; padding-bottom:100px;'); // Add close button (requires print.css)\n\n var closeButton = document.createElement('div');\n closeButton.setAttribute('class', 'printClose');\n closeButton.setAttribute('id', 'printClose');\n contentDiv.appendChild(closeButton); // Add spinner (requires print.css)\n\n var spinner = document.createElement('span');\n spinner.setAttribute('class', 'printSpinner');\n contentDiv.appendChild(spinner); // Add message\n\n var messageNode = document.createTextNode(params.modalMessage);\n contentDiv.appendChild(messageNode); // Add contentDiv to printModal\n\n printModal.appendChild(contentDiv); // Append print modal element to document body\n\n document.getElementsByTagName('body')[0].appendChild(printModal); // Add event listener to close button\n\n document.getElementById('printClose').addEventListener('click', function () {\n Modal.close();\n });\n },\n close: function close() {\n var printModal = document.getElementById('printJS-Modal');\n\n if (printModal) {\n printModal.parentNode.removeChild(printModal);\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Modal);\n\n/***/ }),\n\n/***/ \"./src/js/pdf.js\":\n/*!***********************!*\\\n !*** ./src/js/pdf.js ***!\n \\***********************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./print */ \"./src/js/print.js\");\n/* harmony import */ var _functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./functions */ \"./src/js/functions.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n print: function print(params, printFrame) {\n // Check if we have base64 data\n if (params.base64) {\n var bytesArray = Uint8Array.from(atob(params.printable), function (c) {\n return c.charCodeAt(0);\n });\n createBlobAndPrint(params, printFrame, bytesArray);\n return;\n } // Format pdf url\n\n\n params.printable = /^(blob|http|\\/\\/)/i.test(params.printable) ? params.printable : window.location.origin + (params.printable.charAt(0) !== '/' ? '/' + params.printable : params.printable); // Get the file through a http request (Preload)\n\n var req = new window.XMLHttpRequest();\n req.responseType = 'arraybuffer';\n req.addEventListener('error', function () {\n Object(_functions__WEBPACK_IMPORTED_MODULE_1__[\"cleanUp\"])(params);\n params.onError(req.statusText, req); // Since we don't have a pdf document available, we will stop the print job\n });\n req.addEventListener('load', function () {\n // Check for errors\n if ([200, 201].indexOf(req.status) === -1) {\n Object(_functions__WEBPACK_IMPORTED_MODULE_1__[\"cleanUp\"])(params);\n params.onError(req.statusText, req); // Since we don't have a pdf document available, we will stop the print job\n\n return;\n } // Print requested document\n\n\n createBlobAndPrint(params, printFrame, req.response);\n });\n req.open('GET', params.printable, true);\n req.send();\n }\n});\n\nfunction createBlobAndPrint(params, printFrame, data) {\n // Pass response or base64 data to a blob and create a local object url\n var localPdf = new window.Blob([data], {\n type: 'application/pdf'\n });\n localPdf = window.URL.createObjectURL(localPdf); // Set iframe src with pdf document url\n\n printFrame.setAttribute('src', localPdf);\n _print__WEBPACK_IMPORTED_MODULE_0__[\"default\"].send(params, printFrame);\n}\n\n/***/ }),\n\n/***/ \"./src/js/print.js\":\n/*!*************************!*\\\n !*** ./src/js/print.js ***!\n \\*************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./browser */ \"./src/js/browser.js\");\n/* harmony import */ var _functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./functions */ \"./src/js/functions.js\");\n\n\nvar Print = {\n send: function send(params, printFrame) {\n // Append iframe element to document body\n document.getElementsByTagName('body')[0].appendChild(printFrame); // Get iframe element\n\n var iframeElement = document.getElementById(params.frameId); // Wait for iframe to load all content\n\n iframeElement.onload = function () {\n if (params.type === 'pdf') {\n // Add a delay for Firefox. In my tests, 1000ms was sufficient but 100ms was not\n if (_browser__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFirefox()) {\n setTimeout(function () {\n return performPrint(iframeElement, params);\n }, 1000);\n } else {\n performPrint(iframeElement, params);\n }\n\n return;\n } // Get iframe element document\n\n\n var printDocument = iframeElement.contentWindow || iframeElement.contentDocument;\n if (printDocument.document) printDocument = printDocument.document; // Append printable element to the iframe body\n\n printDocument.body.appendChild(params.printableElement); // Add custom style\n\n if (params.type !== 'pdf' && params.style) {\n // Create style element\n var style = document.createElement('style');\n style.innerHTML = params.style; // Append style element to iframe's head\n\n printDocument.head.appendChild(style);\n } // If printing images, wait for them to load inside the iframe\n\n\n var images = printDocument.getElementsByTagName('img');\n\n if (images.length > 0) {\n loadIframeImages(Array.from(images)).then(function () {\n return performPrint(iframeElement, params);\n });\n } else {\n performPrint(iframeElement, params);\n }\n };\n }\n};\n\nfunction performPrint(iframeElement, params) {\n try {\n iframeElement.focus(); // If Edge or IE, try catch with execCommand\n\n if (_browser__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isEdge() || _browser__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isIE()) {\n try {\n iframeElement.contentWindow.document.execCommand('print', false, null);\n } catch (e) {\n iframeElement.contentWindow.print();\n }\n } else {\n // Other browsers\n iframeElement.contentWindow.print();\n }\n } catch (error) {\n params.onError(error);\n } finally {\n if (_browser__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFirefox()) {\n // Move the iframe element off-screen and make it invisible\n iframeElement.style.visibility = 'hidden';\n iframeElement.style.left = '-1px';\n }\n\n Object(_functions__WEBPACK_IMPORTED_MODULE_1__[\"cleanUp\"])(params);\n }\n}\n\nfunction loadIframeImages(images) {\n var promises = images.map(function (image) {\n if (image.src && image.src !== window.location.href) {\n return loadIframeImage(image);\n }\n });\n return Promise.all(promises);\n}\n\nfunction loadIframeImage(image) {\n return new Promise(function (resolve) {\n var pollImage = function pollImage() {\n !image || typeof image.naturalWidth === 'undefined' || image.naturalWidth === 0 || !image.complete ? setTimeout(pollImage, 500) : resolve();\n };\n\n pollImage();\n });\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Print);\n\n/***/ }),\n\n/***/ \"./src/js/raw-html.js\":\n/*!****************************!*\\\n !*** ./src/js/raw-html.js ***!\n \\****************************/\n/*! exports provided: default */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./print */ \"./src/js/print.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n print: function print(params, printFrame) {\n // Create printable element (container)\n params.printableElement = document.createElement('div');\n params.printableElement.setAttribute('style', 'width:100%'); // Set our raw html as the printable element inner html content\n\n params.printableElement.innerHTML = params.printable; // Print html contents\n\n _print__WEBPACK_IMPORTED_MODULE_0__[\"default\"].send(params, printFrame);\n }\n});\n\n/***/ }),\n\n/***/ \"./src/sass/index.scss\":\n/*!*****************************!*\\\n !*** ./src/sass/index.scss ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n// extracted by mini-css-extract-plugin\n\n/***/ }),\n\n/***/ 0:\n/*!****************************!*\\\n !*** multi ./src/index.js ***!\n \\****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(/*! ./src/index.js */\"./src/index.js\");\n\n\n/***/ })\n\n/******/ })[\"default\"];\n});\n//# sourceMappingURL=print.map","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)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,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"sourceRoot":""}
package/644.index.js ADDED
@@ -0,0 +1,29 @@
1
+ "use strict";(globalThis.webpackChunk_icanbwell_composite||=[]).push([[644],{7644(wc,$t,Ut){Ut.r($t),Ut.d($t,{default:()=>Ic});var yr=10,Er=20,Ft=30,Sr=40,Be=50,Bt=60,He={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Ht={};function kc(e){return typeof e=="string"?He[e.toLowerCase()]:e}Object.keys(He).forEach(function(e){Ht[He[e]]=e});var Gt={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},br=function(){function e(t){var n=t===void 0?{}:t,r=n.logByLevel,s=n.css,o=s===void 0?Gt:s;this.logByLevel=r!==void 0&&r,this.css=o}return e.prototype.write=function(t){var n,r,s=this.css.def,o=this.css.msg,i=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,c=Ht[t.level],l=(Array(6-c.length).join(" ")+c).toUpperCase();this.logByLevel?(t.level===yr?c="debug":t.level===Bt&&(c="error"),r=typeof console[c]=="function"?console[c]:console.log):r=console.log,n=t.level<Er?this.css.levels.trace:t.level<Ft?this.css.levels.debug:t.level<Sr?this.css.levels.info:t.level<Be?this.css.levels.warn:t.level<Bt?this.css.levels.error:this.css.levels.fatal;var f=function(d,h){return Array(h+1-(d+"").length).join("0")+d},u=[];u.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),u.push(f(t.time.getHours(),2)),u.push(f(t.time.getMinutes(),2)),u.push(f(t.time.getSeconds(),2)),u.push(f(t.time.getMilliseconds(),4)),u.push(n),u.push(l),u.push(s),u.push(a),u.push(o),u.push(t.msg),t.src&&(u.push(i),u.push(t.src)),t.obj&&(u.push(`
2
+ `),u.push(t.obj)),t.err&&t.err.stack&&(u.push(`
3
+ `),u.push(t.err.stack)),r.apply(console,u)},e.getDefaultCss=function(){return Gt},e}();const Ge="production",m=globalThis;function ge(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s["8.46.0"]=s["8.46.0"]||{};return o[e]||(o[e]=t())}function me(){return ze(m),m}function ze(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.46.0",t["8.46.0"]=t["8.46.0"]||{}}const zt=Object.prototype.toString;function We(e){switch(zt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return $(e,Error)}}function V(e,t){return zt.call(e)===`[object ${t}]`}function Wt(e){return V(e,"ErrorEvent")}function Yt(e){return V(e,"DOMError")}function vr(e){return V(e,"DOMException")}function O(e){return V(e,"String")}function Ye(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function qe(e){return e===null||Ye(e)||typeof e!="object"&&typeof e!="function"}function Z(e){return V(e,"Object")}function _e(e){return typeof Event<"u"&&$(e,Event)}function Tr(e){return typeof Element<"u"&&$(e,Element)}function Ir(e){return V(e,"RegExp")}function ye(e){return Boolean(e&&e.then&&typeof e.then=="function")}function wr(e){return Z(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function $(e,t){try{return e instanceof t}catch{return!1}}function qt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Q=m,kr=80;function Jt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let l;const f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||kr;for(;n&&o++<r&&(l=Rr(n,f),!(l==="html"||o>1&&i+s.length*c+l.length>=u));)s.push(l),i+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Rr(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Q.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&O(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function xr(){try{return Q.document.location.href}catch{return""}}function Rc(e){return Q.document&&Q.document.querySelector?Q.document.querySelector(e):null}function Or(e){if(!Q.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const U=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nr="Sentry Logger ",Je=["debug","info","warn","error","log","assert","trace"],Ee={};function F(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(Ee);r.forEach(s=>{const o=Ee[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Cr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return U?Je.forEach(n=>{t[n]=(...r)=>{e&&F(()=>{m.console[n](`${Nr}[${n}]:`,...r)})}}):Je.forEach(n=>{t[n]=()=>{}}),t}const p=ge("logger",Cr);function ee(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function xc(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Kt(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{qt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Dr(e,t,n=!1){return O(e)?Ir(t)?t.test(e):O(t)?n?e===t:e.includes(t):!1:!1}function Se(e,t=[],n=!1){return t.some(r=>Dr(e,r,n))}var Ar;function v(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Xt(s,r);try{e[t]=s}catch{U&&p.log(`Failed to replace method "${t}" in object`,e)}}function B(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{U&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Xt(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,B(e,"__sentry_original__",t)}catch{}}function Ke(e){return e.__sentry_original__}function Oc(e){return Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&")}function Vt(e){if(We(e))return{message:e.message,name:e.name,stack:e.stack,...Qt(e)};if(_e(e)){const t={type:e.type,target:Zt(e.target),currentTarget:Zt(e.currentTarget),...Qt(e)};return typeof CustomEvent<"u"&&$(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zt(e){try{return Tr(e)?Jt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Qt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Pr(e,t=40){const n=Object.keys(Vt(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ee(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:ee(o,t)}return""}function T(e){return Xe(e,new Map)}function Xe(e,t){if(Mr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Xe(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Xe(s,t))}),r}return e}function Mr(e){if(!Z(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Nc(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case Ar(e):t=new e.constructor(e);break;default:t=e;break}return t}const en=1e3;function le(){return Date.now()/en}function Lr(){const{performance:e}=m;if(!e||!e.now)return le;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/en}const N=Lr();let be;const Cc=(()=>{const{performance:e}=m;if(!e||!e.now){be="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,l=c<t;return o||l?s<=c?(be="timeOrigin",e.timeOrigin):(be="navigationStart",i):(be="dateNow",r)})();var Ve;function I(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function tn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function A(e){const{message:t,event_id:n}=e;if(t)return t;const r=tn(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ze(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function te(e,t){const n=tn(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const jr=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Qe(e){return parseInt(e||"",10)}function Dc(e){const t=e.match(jr)||[],n=Qe(t[1]),r=Qe(t[2]),s=Qe(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Ac(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>Ve(i,0));const o=Math.min(r-1,s);t.context_line=Ve(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>Ve(i,0))}function nn(e){if($r(e))return!0;try{B(e,"__sentry_captured__",!0)}catch{}return!1}function $r(e){try{return e.__sentry_captured__}catch{}}function Pc(e){return Array.isArray(e)?e:[e]}function Ur(e){const t=N(),n={sid:I(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Br(n)};return e&&ne(n,e),n}function ne(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||N(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:I()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fr(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ne(e,n)}function Br(e){return T({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function Mc(){return{traceId:et(),spanId:ve()}}function et(){return I()}function ve(){return I().substring(16)}function Te(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Te(r[s],t[s],n-1));return r}const tt="_sentrySpan";function rn(e,t){t?B(e,tt,t):delete e[tt]}function sn(e){return e[tt]}const Hr=100;class nt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:et(),spanId:ve()}}clone(){const t=new nt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,rn(t,sn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ne(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof P?[n.getScopeData(),n.getRequestSession()]:Z(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:l,fingerprint:f=[],propagationContext:u}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),f.length&&(this._fingerprint=f),u&&(this._propagationContext=u),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,rn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:et()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Hr;if(r<=0)return this;const s={timestamp:le(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:sn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Te(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:ve(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:I();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:I();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:I();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const P=nt;function Gr(){return ge("defaultCurrentScope",()=>new P)}function zr(){return ge("defaultIsolationScope",()=>new P)}class Wr{constructor(t,n){let r;t?r=t:r=new P;let s;n?s=n:s=new P,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return ye(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function re(){const e=me(),t=ze(e);return t.stack=t.stack||new Wr(Gr(),zr())}function Yr(e){return re().withScope(e)}function qr(e,t){const n=re();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function on(e){return re().withScope(()=>e(re().getIsolationScope()))}function Jr(){return{withIsolationScope:on,withScope:Yr,withSetScope:qr,withSetIsolationScope:(e,t)=>on(t),getCurrentScope:()=>re().getScope(),getIsolationScope:()=>re().getIsolationScope()}}var Kr,Xr;function Lc(e){const t=Kr(),n=Xr(t);n.acs=e}function rt(e){const t=ze(e);return t.acs?t.acs:Jr()}var Vr,Zr;function R(){const e=me();return rt(e).getCurrentScope()}function fe(){const e=me();return rt(e).getIsolationScope()}function an(){return ge("globalScope",()=>new P)}function Qr(...e){const t=me(),n=rt(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function jc(...e){const t=Zr(),n=Vr(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return R().getClient()}function es(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return T({trace_id:n,span_id:r,parent_span_id:s})}const _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(C||(C={}));function H(e){return new w(t=>{t(e)})}function Ie(e){return new w((t,n)=>{n(e)})}class w{constructor(t){w.prototype.__init.call(this),w.prototype.__init2.call(this),w.prototype.__init3.call(this),w.prototype.__init4.call(this),this._state=C.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new w((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new w((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(C.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(C.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===C.PENDING){if(ye(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===C.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===C.RESOLVED&&n[1](this._value),this._state===C.REJECTED&&n[2](this._value),n[0]=!0)})}}}function st(e,t,n,r=0){return new w((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);_&&i.id&&a===null&&p.log(`Event processor "${i.id}" dropped event`),ye(a)?a.then(c=>st(e,c,n,r+1).then(s)).then(null,o):st(e,a,n,r+1).then(s).then(null,o)}})}let we,cn,ke;function un(e){const t=m._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return ke&&n.length===cn||(cn=n.length,ke=n.reduce((r,s)=>{we||(we={});const o=we[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],l=c&&c.filename,f=t[s];if(l&&f){r[l]=f,we[s]=[l,f];break}}}return r},{})),ke}function $c(e,t){const n=un(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function ts(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const ln=50,ns="?",fn=/\(error: (.*)\)/,dn=/captureMessage|captureException/;function pn(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
4
+ `);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const l=fn.test(c)?c.replace(fn,"$1"):c;if(!l.match(/\S*Error: /)){for(const f of t){const u=f(l);if(u){o.push(u);break}}if(o.length>=ln+s)break}}return ss(o.slice(s))}}function rs(e){return Array.isArray(e)?pn(...e):e}function ss(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Re(t).function||"")&&t.pop(),t.reverse(),dn.test(Re(t).function||"")&&(t.pop(),dn.test(Re(t).function||"")&&t.pop()),t.slice(0,ln).map(n=>({...n,filename:n.filename||Re(t).filename,function:n.function||ns}))}function Re(e){return e[e.length-1]||{}}const ot="<anonymous>";function M(e){try{return!e||typeof e!="function"?ot:e.name||ot}catch{return ot}}function hn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function D(e,t=100,n=1/0){try{return it("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function gn(e,t=3,n=100*1024){const r=D(e,t);return cs(r)>n?gn(e,t-1,n):r}function it(e,t,n=1/0,r=1/0,s=ts()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=os(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return it("",h,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let u=0;const d=Vt(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){f[h]="[MaxProperties ~]";break}const g=d[h];f[h]=it(h,g,c-1,r,s),u++}return i(t),f}function os(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&t===globalThis)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(qt(t))return"[VueViewModel]";if(wr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${M(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=is(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function is(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function as(e){return~-encodeURI(e).split(/%..|./).length}function cs(e){return as(JSON.stringify(e))}function Uc(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const us="sentry.source",ls="sentry.sample_rate",fs="sentry.op",ds="sentry.origin",Fc="sentry.idle_span_finish_reason",Bc="sentry.measurement_unit",Hc="sentry.measurement_value",Gc="sentry.profile_id",zc="sentry.exclusive_time",Wc="cache.hit",Yc="cache.key",qc="cache.item_size",Jc="http.request.method",Kc="url.full";var ps,hs;const Xc="baggage",mn="sentry-",gs=/^sentry-/,ms=8192;function _s(e){const t=ys(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(gs)){const i=s.slice(mn.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Vc(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${mn}${r}`]=s),n),{});return Es(t)}function ys(e){if(!(!e||!O(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=_n(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):_n(e)}function _n(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Es(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>ms?(ps&&hs.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function Ss(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const at="_sentryMetrics";function bs(e){const t=e[at];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(T(s));return n}function Zc(e,t,n,r,s,o,i){const c=e[at]||(e[at]=new Map),l=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,u]=f;c.set(i,[l,{min:Math.min(u.min,r),max:Math.max(u.max,r),count:u.count+=1,sum:u.sum+=r,tags:u.tags}])}else c.set(i,[l,{min:r,max:r,count:1,sum:r,tags:o}])}var vs,Ts,Is,ws,ks,yn,Rs,xs;const Qc=0,Os=1;let En=!1;function eu(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=xe(e);return ks({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function Ns(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:xe(e).parent_span_id,o=r?ve():t;return T({parent_span_id:s,span_id:o,trace_id:n})}function tu(e){const{traceId:t,spanId:n}=e.spanContext(),r=ct(e);return Rs(t,n,r)}function Sn(e){return typeof e=="number"?bn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?bn(e.getTime()):N()}function bn(e){return e>9999999999?e/1e3:e}function xe(e){if(Ds(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Cs(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return T({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Sn(s),timestamp:Sn(i)||void 0,status:As(c),op:r[fs],origin:r[ds],_metrics_summary:bs(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Cs(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Ds(e){return typeof e.getSpanJSON=="function"}function ct(e){const{traceFlags:t}=e.spanContext();return t===Os}function As(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}const G="_sentryChildSpans",ut="_sentryRootSpan";function nu(e,t){const n=e[ut]||e;yn(t,ut,n),e[G]?e[G].add(t):yn(e,G,new Set([t]))}function ru(e,t){e[G]&&e[G].delete(t)}function su(e){const t=new Set;function n(r){if(!t.has(r)&&ct(r)){t.add(r);const s=r[G]?Array.from(r[G]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function vn(e){return e[ut]||e}function Ps(){const e=Ts(),t=vs(e);return t.getActiveSpan?t.getActiveSpan():xs(Is())}function ou(e,t,n,r,s,o){const i=Ps();i&&ws(i,e,t,n,r,s,o)}function Ms(){En||(F(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),En=!0)}var Ls,js;const Tn="_frozenDsc";function iu(e,t){js(e,Tn,t)}function In(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=T({environment:n.environment||Ge,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function $s(e,t){const n=t.getPropagationContext();return n.dsc||In(n.traceId,e)}function wn(e){const t=E();if(!t)return{};const n=vn(e),r=n[Tn];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&_s(o);if(i)return i;const a=In(e.spanContext().traceId,t),c=xe(n),l=c.data||{},f=l[ls];f!=null&&(a.sample_rate=`${f}`);const u=l[us],d=c.description;return u!=="url"&&d&&(a.transaction=d),Ss()&&(a.sampled=String(ct(n))),t.emit("createDsc",a,n),a}function au(e){const t=wn(e);return Ls(t)}function Us(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Fs(e,t),r&&Gs(e,r),zs(e,n),Bs(e,s),Hs(e,o)}function kn(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:f,attachments:u,propagationContext:d,transactionName:h,span:g}=t;Oe(e,"extra",n),Oe(e,"tags",r),Oe(e,"user",s),Oe(e,"contexts",o),e.sdkProcessingMetadata=Te(e.sdkProcessingMetadata,a,2),i&&(e.level=i),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...d}}function Oe(e,t,n){e[t]=Te(e[t],n,1)}function Fs(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=T(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=T(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const u=T(o);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Bs(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Hs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Gs(e,t){e.contexts={trace:Ns(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:wn(t),...e.sdkProcessingMetadata};const n=vn(t),r=xe(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function zs(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Ws(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||I(),timestamp:t.timestamp||le()},l=n.integrations||e.integrations.map(S=>S.name);Ys(c,e),Ks(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&qs(c,e.stackParser);const f=Vs(r,n.captureContext);n.mechanism&&te(c,n.mechanism);const u=s?s.getEventProcessors():[],d=an().getScopeData();if(o){const S=o.getScopeData();kn(d,S)}if(f){const S=f.getScopeData();kn(d,S)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),Us(c,d);const g=[...u,...d.eventProcessors];return st(g,c,n).then(S=>(S&&Js(S),typeof i=="number"&&i>0?Xs(S,i,a):S))}function Ys(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Ge,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ee(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ee(i.value,o));const a=e.request;a&&a.url&&(a.url=ee(a.url,o))}function qs(e,t){const n=un(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function Js(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Ks(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Xs(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:D(s.data,t,n)}}))},...e.user&&{user:D(e.user,t,n)},...e.contexts&&{contexts:D(e.contexts,t,n)},...e.extra&&{extra:D(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=D(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:D(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=D(e.contexts.flags,3,n)),r}function Vs(e,t){if(!t)return e;const n=e?e.clone():new P;return n.update(t),n}function Zs(e){if(!!e)return Qs(e)?{captureContext:e}:to(e)?{captureContext:e}:e}function Qs(e){return e instanceof P||typeof e=="function"}const eo=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function to(e){return Object.keys(e).some(t=>eo.includes(t))}var L,no,Ne,ro,Ce,so,De,oo,Rn;function xn(e,t){return R().captureException(e,Zs(t))}function io(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return R().captureMessage(e,n,r)}function On(e,t){return R().captureEvent(e,t)}function cu(e,t){L().setContext(e,t)}function uu(e){L().setExtras(e)}function lu(e,t){L().setExtra(e,t)}function fu(e){L().setTags(e)}function du(e,t){L().setTag(e,t)}function pu(e){L().setUser(e)}function hu(){return L().lastEventId()}function Nn(e,t){const n=no(),r=Ne();if(!r)Ce&&De.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)Ce&&De.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return oo()}function gu(e,t,n){const r=Nn({monitorSlug:e,status:"in_progress"},n),s=Rn();function o(i){Nn({monitorSlug:e,status:i,checkInId:r,duration:Rn()-s})}return ro(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return so(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function mu(e){const t=Ne();return t?t.flush(e):(Ce&&De.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _u(e){const t=Ne();return t?t.close(e):(Ce&&De.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ao(){return!!E()}function yu(){const e=Ne();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Eu(e){L().addEventProcessor(e)}function Cn(e){const t=E(),n=fe(),r=R(),{release:s,environment:o=Ge}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=Ur({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&ne(c,{status:"exited"}),Dn(),n.setSession(a),r.setSession(a),a}function Dn(){const e=fe(),t=R(),n=t.getSession()||e.getSession();n&&Fr(n),An(),e.setSession(),t.setSession()}function An(){const e=fe(),t=R(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Pn(e=!1){if(e){Dn();return}An()}var co,uo,lo;const Mn=[];function fo(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function po(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=fo(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function ho(e,t){const n={};return t.forEach(r=>{r&&jn(e,r,n)}),n}function Ln(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function jn(e,t,n){if(n[t.name]){_&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Mn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Mn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}_&&p.log(`Integration installed: ${t.name}`)}function Su(e){const t=co();if(!t){uo&&lo.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function bu(e){return e}const go=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],mo="InboundFilters",_o=(e={})=>({name:mo,processEvent(t,n,r){const s=r.getOptions(),o=yo(e,s);return Eo(t,o)?null:t}});function yo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:go],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Eo(e,t){return t.ignoreInternal&&wo(e)?(_&&p.warn(`Event dropped due to being internal Sentry Error.
5
+ Event: ${A(e)}`),!0):So(e,t.ignoreErrors)?(_&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
6
+ Event: ${A(e)}`),!0):Ro(e)?(_&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.
7
+ Event: ${A(e)}`),!0):bo(e,t.ignoreTransactions)?(_&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8
+ Event: ${A(e)}`),!0):vo(e,t.denyUrls)?(_&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
9
+ Event: ${A(e)}.
10
+ Url: ${Ae(e)}`),!0):To(e,t.allowUrls)?!1:(_&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11
+ Event: ${A(e)}.
12
+ Url: ${Ae(e)}`),!0)}function So(e,t){return e.type||!t||!t.length?!1:Io(e).some(n=>Se(n,t))}function bo(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Se(n,t):!1}function vo(e,t){if(!t||!t.length)return!1;const n=Ae(e);return n?Se(n,t):!1}function To(e,t){if(!t||!t.length)return!0;const n=Ae(e);return n?Se(n,t):!0}function Io(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function wo(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ko(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ae(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ko(t):null}catch{return _&&p.error(`Cannot extract url for event ${A(e)}`),null}}function Ro(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let $n;const xo="FunctionToString",Un=new WeakMap,Oo=()=>({name:xo,setupOnce(){$n=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ke(this),n=Un.has(E())&&t!==void 0?t:this;return $n.apply(n,e)}}catch{}},setup(e){Un.set(e,!0)}}),No="Dedupe",Co=()=>{let e;return{name:No,processEvent(t){if(t.type)return t;try{if(Do(t,e))return _&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Do(e,t){return t?!!(Ao(e,t)||Po(e,t)):!1}function Ao(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Bn(e,t)||!Fn(e,t))}function Po(e,t){const n=Hn(t),r=Hn(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Bn(e,t)||!Fn(e,t))}function Fn(e,t){let n=hn(e),r=hn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Bn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Hn(e){return e.exception&&e.exception.values&&e.exception.values[0]}const Pe=m;function wu(){try{return new ErrorEvent(""),!0}catch{return!1}}function ku(){try{return new DOMError(""),!0}catch{return!1}}function Ru(){try{return new DOMException(""),!0}catch{return!1}}function lt(){if(!("fetch"in Pe))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ft(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Mo(){if(typeof EdgeRuntime=="string")return!0;if(!lt())return!1;if(ft(Pe.fetch))return!0;let e=!1;const t=Pe.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ft(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){U&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function xu(){return"ReportingObserver"in Pe}function Ou(){if(!lt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function Lo(e,t){t.debug===!0&&(_?p.enable():F(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),R().update(t.initialScope);const r=new e(t);return jo(r),r.init(),r}function jo(e){R().setClient(e)}var $o,Uo;const Fo="7";function Gn(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Bo(e){return`${Gn(e)}${e.projectId}/envelope/`}function Ho(e,t){const n={sentry_version:Fo};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Go(e,t,n){return t||`${Bo(e)}?${Ho(e,n)}`}function Nu(e,t){const n=$o(e);if(!n)return"";const r=`${Gn(n)}embed/error-page/`;let s=`dsn=${Uo(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const zo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Wo(e){return e==="http"||e==="https"}function Me(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Yo(e){const t=zo.exec(e);if(!t){F(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",l=a;const f=l.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),l=f.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return zn({host:o,pass:s,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function zn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function qo(e){if(!U)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(p.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?Wo(r)?t&&isNaN(parseInt(t,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Jo(e){const t=typeof e=="string"?Yo(e):zn(e);if(!(!t||!qo(t)))return t}var dt;function de(e,t=[]){return[e,t]}function Ko(e,t){const[n,r]=e;return[n,[...r,t]]}function pt(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Cu(e,t){return pt(e,(n,r)=>t.includes(r))}function Le(e){return m.__SENTRY__&&m.__SENTRY__.encodePolyfill?m.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Xo(e){return dt.__SENTRY__&&dt.__SENTRY__.decodePolyfill?dt.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Vo(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Le(r),o]:r.push(typeof o=="string"?Le(o):o)}for(const o of n){const[i,a]=o;if(s(`
13
+ ${JSON.stringify(i)}
14
+ `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(D(a))}s(c)}}return typeof r=="string"?r:Zo(r)}function Zo(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Du(e){let t=typeof e=="string"?Le(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(Xo(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function Au(e){return[{type:"span"},e]}function Qo(e){const t=typeof e.data=="string"?Le(e.data):e.data;return[T({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ei={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function Wn(e){return ei[e]}function Yn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ti(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Me(r)},...s&&{trace:T({...s})}}}var ni,ri,si,oi,qn,ii;function ai(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function ci(e,t,n,r){const s=Yn(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Me(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return de(o,[i])}function ui(e,t,n,r){const s=Yn(n),o=e.type&&e.type!=="replay_event"?e.type:"event";ai(e,n&&n.sdk);const i=ti(e,s,r,t);return delete e.sdkProcessingMetadata,de(i,[[{type:o},e]])}function Pu(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=ni(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:ri(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>{const u=a(qn(f));return u||ii(),u}:f=>qn(f),l=[];for(const f of e){const u=c(f);u&&l.push(si(u))}return oi(i,l)}function li(e,t,n){const r=[{type:"client_report"},{timestamp:n||le(),discarded_events:e}];return de(t?{dsn:t}:{},[r])}class x extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function fi(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){_&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Jn="Not capturing exception because it's already been captured.";class di{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Jo(t.dsn):_&&p.warn("No DSN provided, client will not send events."),this._dsn){const s=Go(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&F(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=I();if(nn(t))return _&&p.log(Jn),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:I(),...r},i=Ye(t)?t:String(t),a=qe(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=I();if(n&&n.originalException&&nn(n.originalException))return _&&p.log(Jn),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?_&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ne(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):H(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];jn(this,t,this._integrations),n||Ln(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=ui(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Ko(r,Qo(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=ci(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;_&&p.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(_&&p.error("Error while sending envelope:",n),n)):(_&&p.error("Transport disabled"),H({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=ho(this,t),Ln(this,t)}_updateSessionFromEvent(t,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(ne(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new w(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=R(),s=fe()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Ws(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:es(r),...a.contexts};const c=$s(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(_){const o=s;o.logLevel==="log"?p.log(o.message):p.warn(o)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Xn(t),a=Kn(t),c=t.type||"error",l=`before send for type \`${c}\``,f=typeof o>"u"?void 0:fi(o);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),Ie(new x(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",u,t),new x("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=hi(this,s,g,n);return pi(S,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",u,t),i){const j=t.spans||[],ue=1+j.length;this.recordDroppedEvent("before_send","span",ue)}throw new x(`${l} returned \`null\`, will not send event.`,"log")}const X=r&&r.getSession();if(!i&&X&&this._updateSessionFromEvent(X,g),i){const j=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,ue=g.spans?g.spans.length:0,_r=j-ue;_r>0&&this.recordDroppedEvent("before_send","span",_r)}const S=g.transaction_info;if(i&&S&&g.transaction!==t.transaction){const j="custom";g.transaction_info={...S,source:j}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof x?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new x(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
15
+ Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&p.log("No outcomes to send");return}if(!this._dsn){_&&p.log("No dsn provided, will not send outcomes");return}_&&p.log("Sending outcomes:",t);const n=li(t,this._options.tunnel&&Me(this._dsn));this.sendEnvelope(n)}}function pi(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ye(e))return e.then(r=>{if(!Z(r)&&r!==null)throw new x(n);return r},r=>{throw new x(`${t} rejected with ${r}`)});if(!Z(e)&&e!==null)throw new x(n);return e}function hi(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(Kn(n)&&s)return s(n,r);if(Xn(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const l=i(c);l?a.push(l):(Ms(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function Kn(e){return e.type===void 0}function Xn(e){return e.type==="transaction"}function Mu(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gi(){return"npm"}function mi(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:"8.46.0"})),version:"8.46.0"}),e._metadata=s}const pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ht(e,t){const n=mt(e,t),r={type:bi(t),value:vi(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _i(e,t,n,r){const s=E(),o=s&&s.getOptions().normalizeDepth,i=Ri(t),a={__serialized__:gn(t,o)};if(i)return{exception:{values:[ht(e,i)]},extra:a};const c={exception:{values:[{type:_e(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:wi(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=mt(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function gt(e,t){return{exception:{values:[ht(e,t)]}}}function mt(e,t){const n=t.stacktrace||t.stack||"",r=Ei(t),s=Si(t);try{return e(n,r,s)}catch{}return[]}const yi=/Minified React error #\d+;/i;function Ei(e){return e&&yi.test(e.message)?1:0}function Si(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Vn(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function bi(e){const t=e&&e.name;return!t&&Vn(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function vi(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Vn(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Ti(e,t,n,r){const s=n&&n.syntheticException||void 0,o=_t(e,t,s,r);return te(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),H(o)}function Ii(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=yt(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),H(i)}function _t(e,t,n,r,s){let o;if(Wt(t)&&t.error)return gt(e,t.error);if(Yt(t)||vr(t)){const i=t;if("stack"in t)o=gt(e,t);else{const a=i.name||(Yt(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=yt(e,c,n,r),Ze(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return We(t)?gt(e,t):Z(t)||_e(t)?(o=_i(e,t,n,s),te(o,{synthetic:!0}),o):(o=yt(e,t,n,r),Ze(o,`${t}`,void 0),te(o,{synthetic:!0}),o)}function yt(e,t,n,r){const s={};if(r&&n){const o=mt(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),te(s,{synthetic:!0})}if(Ye(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function wi(e,{isUnhandledRejection:t}){const n=Pr(e),r=t?"promise rejection":"exception";return Wt(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:_e(e)?`Event \`${ki(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ki(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ri(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const y=m;let Et=0;function Zn(){return Et>0}function xi(){Et++,setTimeout(()=>{Et--})}function se(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Ke(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>se(i,t));return e.apply(this,o)}catch(o){throw xi(),Qr(i=>{i.addEventProcessor(a=>(t.mechanism&&(Ze(a,void 0,void 0),te(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),xn(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Xt(r,e),B(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Oi(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Me(r)}},o=Ni(e);return de(s,[o])}function Ni(e){return[{type:"user_report"},e]}class Ci extends di{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=y.SENTRY_SDK_SOURCE||gi();mi(n,"browser",["browser"],r),super(n),n.sendClientReports&&y.document&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Ti(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Ii(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){pe&&p.warn("SDK not enabled, will not capture user feedback.");return}const n=Oi(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const oe={},Qn={};function z(e,t){oe[e]=oe[e]||[],oe[e].push(t)}function Lu(){Object.keys(oe).forEach(e=>{oe[e]=void 0})}function W(e,t){if(!Qn[e]){Qn[e]=!0;try{t()}catch(n){U&&p.error(`Error while instrumenting ${e}`,n)}}}function k(e,t){const n=e&&oe[e];if(!!n)for(const r of n)try{r(t)}catch(s){U&&p.error(`Error while triggering instrumentation handler.
16
+ Type: ${e}
17
+ Name: ${M(r)}
18
+ Error:`,s)}}const b=m,Di=1e3;let er,St,bt;function Ai(e){const t="dom";z(t,e),W(t,Pi)}function Pi(){if(!b.document)return;const e=k.bind(null,"dom"),t=tr(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=b[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(v(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=f[a]=f[a]||{refCount:0};if(!u.handler){const d=tr(e);u.handler=d,i.call(this,a,d,l)}u.refCount++}catch{}return i.call(this,a,c,l)}}),v(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},u=f[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,l),u.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function Mi(e){if(e.type!==St)return!1;try{if(!e.target||e.target._sentryId!==bt)return!1}catch{}return!0}function Li(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function tr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ji(n);if(Li(n.type,r))return;B(n,"_sentryCaptured",!0),r&&!r._sentryId&&B(r,"_sentryId",I());const s=n.type==="keypress"?"input":n.type;Mi(n)||(e({event:n,name:s,global:t}),St=n.type,bt=r?r._sentryId:void 0),clearTimeout(er),er=b.setTimeout(()=>{bt=void 0,St=void 0},Di)}}function ji(e){try{return e.target}catch{return null}}const he="__sentry_xhr_v3__";function $i(e){const t="xhr";z(t,e),W(t,Ui)}function Ui(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=N()*1e3,i=O(r[0])?r[0].toUpperCase():void 0,a=Fi(r[1]);if(!i||!a)return t.apply(n,r);n[he]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[he];if(!!l&&n.readyState===4){try{l.status_code=n.status}catch{}const f={endTimestamp:N()*1e3,startTimestamp:o,xhr:n,virtualError:s};k("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,f,u){return c(),l.apply(f,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,f,u){const[d,h]=u,g=f[he];return g&&O(d)&&O(h)&&(g.request_headers[d.toLowerCase()]=h),l.apply(f,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[he];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:N()*1e3,xhr:n};return k("xhr",o),t.apply(n,r)}})}function Fi(e){if(O(e))return e;try{return e.toString()}catch{}}const je=m;function Bi(){const e=je.chrome,t=e&&e.app&&e.app.runtime,n="history"in je&&!!je.history.pushState&&!!je.history.replaceState;return!t&&n}let $e;function nr(e){const t="history";z(t,e),W(t,Hi)}function Hi(){if(!Bi())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=$e;if($e=r,k("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=$e,i=String(s);$e=i,k("history",{from:o,to:i})}return n.apply(this,r)}}v(b.history,"pushState",t),v(b.history,"replaceState",t)}function Gi(e){const t="console";z(t,e),W(t,zi)}function zi(){"console"in m&&Je.forEach(function(e){e in m.console&&v(m.console,e,function(t){return Ee[e]=t,function(...n){k("console",{args:n,level:e});const s=Ee[e];s&&s.apply(m.console,n)}})})}var Wi,Yi,qi,Ji;function Ki(e,t){const n="fetch";z(n,e),W(n,()=>rr(void 0,t))}function ju(e){const t="fetch-body-resolved";Yi(t,e),qi(t,()=>rr(Vi))}function rr(e,t=!1){t&&!Mo()||v(m,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Zi(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:N()*1e3,virtualError:s};return e||k("fetch",{...a}),n.apply(m,r).then(async c=>(e?e(c):k("fetch",{...a,endTimestamp:N()*1e3,response:c}),c),c=>{throw k("fetch",{...a,endTimestamp:N()*1e3,error:c}),We(c)&&c.stack===void 0&&(c.stack=s.stack,B(c,"framesToPop",1)),c})}})}async function Xi(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Vi(e){let t;try{t=e.clone()}catch{return}Xi(t,()=>{Ji("fetch-body-resolved",{endTimestamp:Wi()*1e3,response:e})})}function vt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function sr(e){return typeof e=="string"?e:e?vt(e,"url")?e.url:e.toString?e.toString():"":""}function Zi(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:sr(n),method:vt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:sr(t),method:vt(t,"method")?String(t.method).toUpperCase():"GET"}}const Qi=100;function Y(e,t){const n=E(),r=fe();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Qi}=n.getOptions();if(o<=0)return;const a={timestamp:le(),...e},c=s?F(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const $u=null;function ea(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function or(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Tt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Uu(e){return e.split(/[?#]/,1)[0]}function Fu(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Bu(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const Ue=1024,ta="Breadcrumbs",na=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ta,setup(n){t.console&&Gi(oa(n)),t.dom&&Ai(sa(n,t.dom)),t.xhr&&$i(ia(n)),t.fetch&&Ki(aa(n)),t.history&&nr(ca(n)),t.sentry&&n.on("beforeSendEvent",ra(n))}}};function ra(e){return function(n){E()===e&&Y({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:A(n)},{event:n})}}function sa(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ue&&(pe&&p.warn(`\`dom.maxStringLength\` cannot exceed ${Ue}, but a value of ${a} was configured. Sentry will use ${Ue} instead.`),a=Ue),typeof i=="string"&&(i=[i]);try{const l=r.event,f=ua(l)?l.target:l;s=Jt(f,{keyAttrs:i,maxStringLength:a}),o=Or(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),Y(c,{event:r.event,name:r.name,global:r.global})}}function oa(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ea(n.level),message:Kt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Kt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Y(r,{input:n.args,level:n.level})}}function ia(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[he];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:l}=o,f={method:i,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},d=or(c);Y({category:"xhr",data:f,type:"http",level:d},u)}}function aa(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(!!s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};Y({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=or(i.status_code);Y({category:"fetch",data:i,type:"http",level:c},a)}}}function ca(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=Tt(y.location.href);let i=r?Tt(r):void 0;const a=Tt(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),Y({category:"navigation",data:{from:r,to:s}})}}function ua(e){return!!e&&!!e.target}const la=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],fa="BrowserApiErrors",da=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:fa,setupOnce(){t.setTimeout&&v(y,"setTimeout",ir),t.setInterval&&v(y,"setInterval",ir),t.requestAnimationFrame&&v(y,"requestAnimationFrame",pa),t.XMLHttpRequest&&"XMLHttpRequest"in y&&v(XMLHttpRequest.prototype,"send",ha);const n=t.eventTarget;n&&(Array.isArray(n)?n:la).forEach(ga)}}};function ir(e){return function(...t){const n=t[0];return t[0]=se(n,{mechanism:{data:{function:M(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function pa(e){return function(t){return e.apply(this,[se(t,{mechanism:{data:{function:"requestAnimationFrame",handler:M(e)},handled:!1,type:"instrument"}})])}}function ha(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&v(n,s,function(o){const i={mechanism:{data:{function:s,handler:M(o)},handled:!1,type:"instrument"}},a=Ke(o);return a&&(i.mechanism.data.handler=M(a)),se(o,i)})}),e.apply(this,t)}}function ga(e){const n=y[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(v(r,"addEventListener",function(s){return function(o,i,a){try{ma(i)&&(i.handleEvent=se(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:M(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,se(i,{mechanism:{data:{function:"addEventListener",handler:M(i),target:e},handled:!1,type:"instrument"}}),a])}}),v(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function ma(e){return typeof e.handleEvent=="function"}const _a=()=>({name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){pe&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Cn({ignoreDuration:!0}),Pn(),nr(({from:e,to:t})=>{e!==void 0&&e!==t&&(Cn({ignoreDuration:!0}),Pn())})}});let It=null;function ya(e){const t="error";z(t,e),W(t,Ea)}function Ea(){It=m.onerror,m.onerror=function(e,t,n,r,s){return k("error",{column:r,error:s,line:n,msg:e,url:t}),It?It.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let wt=null;function Sa(e){const t="unhandledrejection";z(t,e),W(t,ba)}function ba(){wt=m.onunhandledrejection,m.onunhandledrejection=function(e){return k("unhandledrejection",e),wt?wt.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const va="GlobalHandlers",Ta=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:va,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ia(n),ar("onerror")),t.onunhandledrejection&&(wa(n),ar("onunhandledrejection"))}}};function Ia(e){ya(t=>{const{stackParser:n,attachStacktrace:r}=cr();if(E()!==e||Zn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=xa(_t(n,c||s,void 0,r,!1),o,i,a);l.level="error",On(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function wa(e){Sa(t=>{const{stackParser:n,attachStacktrace:r}=cr();if(E()!==e||Zn())return;const s=ka(t),o=qe(s)?Ra(s):_t(n,s,void 0,r,!0);o.level="error",On(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function ka(e){if(qe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Ra(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function xa(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,f=n,u=O(t)&&t.length>0?t:xr();return c.length===0&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:f}),e}function ar(e){pe&&p.log(`Global Handler attached: ${e}`)}function cr(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Oa=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function Na(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!$(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Ca(kt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function kt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if($(r[s],Error)){ur(i,a);const l=e(t,r[s]),f=c.length;lr(l,s,f,a),c=kt(e,t,n,r[s],s,[l,...c],l,f)}return Array.isArray(r.errors)&&r.errors.forEach((l,f)=>{if($(l,Error)){ur(i,a);const u=e(t,l),d=c.length;lr(u,`errors[${f}]`,d,a),c=kt(e,t,n,l,s,[u,...c],u,d)}}),c}function ur(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function lr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Ca(e,t){return e.map(n=>(n.value&&(n.value=ee(n.value,t)),n))}const Da="cause",Aa=5,Pa="LinkedErrors",Ma=(e={})=>{const t=e.limit||Aa,n=e.key||Da;return{name:Pa,preprocessEvent(r,s,o){const i=o.getOptions();Na(ht,i.stackParser,i.maxValueLength,n,t,r,s)}}},Yu=10,qu=20,La=30,Ju=40,ja=50;function ie(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const $a=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ua=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fa=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ba=[La,e=>{const t=$a.exec(e);if(t){const[,r,s,o]=t;return ie(r,"?",+s,+o)}const n=Ua.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Fa.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=fr(n[1]||"?",n[2]);return ie(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Ha=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ga=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,za=[ja,e=>{const t=Ha.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Ga.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||"?";return[s,r]=fr(s,r),ie(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Wa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vu=e=>{const t=Wa.exec(e);return t?ie(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},Zu=null,Ya=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Qu=e=>{const t=Ya.exec(e);return t?ie(t[2],t[3]||"?",+t[1]):void 0},el=null,qa=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,tl=e=>{const t=qa.exec(e);return t?ie(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},nl=null,Ja=pn(...[Ba,za]),fr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ka=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fe={};function Rt(e){const t=Fe[e];if(t)return t;let n=b[e];if(ft(n))return Fe[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Ka&&p.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Fe[e]=n.bind(b))}function dr(e){Fe[e]=void 0}function sl(...e){return Rt("fetch")(...e)}function ol(...e){return Rt("setTimeout")(...e)}function Xa(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Ie(new x("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new w((a,c)=>{let l=t.length;if(!l)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(u=>{H(u).then(()=>{--l||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const Va=60*1e3;function Za(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Va:r-t}function Qa(e,t){return e[t]||e.all||0}function ec(e,t,n=Date.now()){return Qa(e,t)>n}function tc(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,f]=a.split(":",5),u=parseInt(c,10),d=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+d;else for(const h of l.split(";"))h==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[h]=r+d):s[h]=r+d}else i?s.all=r+Za(i,r):t===429&&(s.all=r+60*1e3);return s}const nc=64;function rc(e,t,n=Xa(e.bufferSize||nc)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(pt(i,(u,d)=>{const h=Wn(d);if(ec(r,h)){const g=pr(u,d);e.recordDroppedEvent("ratelimit_backoff",h,g)}else a.push(u)}),a.length===0)return H({});const c=de(i[0],a),l=u=>{pt(c,(d,h)=>{const g=pr(d,h);e.recordDroppedEvent(u,Wn(h),g)})},f=()=>t({body:Vo(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&_&&p.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=tc(r,u),u),u=>{throw l("network_error"),u});return n.add(f).then(u=>u,u=>{if(u instanceof x)return _&&p.error("Skipped sending event because buffer is full."),l("queue_overflow"),H({});throw u})}return{send:o,flush:s}}function pr(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function sc(e,t=Rt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return dr("fetch"),Ie("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return dr("fetch"),n-=i,r--,Ie(c)}}return rc(e,s)}var oc,ic,ac,cc,xt,Ot,ae;function uc(e){const t=[_o(),Oo(),da(),na(),Ta(),Ma(),Co(),Oa()];return e.autoSessionTracking!==!1&&t.push(_a()),t}function lc(e={}){const t={defaultIntegrations:uc(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function fc(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function dc(e={}){const t=lc(e);if(!t.skipBrowserExtensionCheck&&fc()){F(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}pe&&(lt()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:rs(t.stackParser||Ja),integrations:po(t),transport:t.transport||sc};return Lo(Ci,n)}function il(e={}){if(!ae.document){Ot&&xt.error("Global document not defined in showReportDialog call");return}const t=ic(),n=t.getClient(),r=n&&n.getDsn();if(!r){Ot&&xt.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=oc();a&&(e.eventId=a)}const s=ae.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=cc(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{ae.removeEventListener("message",a)}};ae.addEventListener("message",a)}const i=ae.document.head||ae.document.body;i?i.appendChild(s):Ot&&xt.error("Not injecting report dialog. No injection point found in HTML")}function al(){}function cl(e){e()}function ul(e){const t=ac();t&&t.captureUserFeedback(e)}class pc{constructor(t){if(!ao())dc(Object.assign(Object.assign({environment:t.environment,dsn:t.dsn},t.appVersion&&{release:t.appVersion}),{beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}}));else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=an();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign(Object.assign({},r),{environment:t.environment}),t.appVersion&&{release:t.appVersion}))))}}write(t){if(t.err){const n=new Error(t.err.message);n.name=t.msg?`${t.msg} - ${t.err.name}`:t.err.name,n.stack=t.err.stack,xn(n,{extra:{log:!0}})}else t.msg&&io(t.msg,{extra:{log:!0}})}}function Nt(){return Nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nt.apply(this,arguments)}var hr=typeof window<"u"?window.navigator.userAgent:"no-window",hc=/bot|crawler|spider|crawling/i.test(hr),gc={"Content-Type":"application/json"},mc=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,l=c===void 0?{}:c,f=n.throttleInterval,u=f===void 0?3e3:f,d=n.withCredentials,h=d!==void 0&&d,g=n.onError,X=n.flushOnClose,S=X!==void 0&&X,j=n.writeCondition;this.writeCondition=j===void 0?e.defaultWriteCondition:j,this.records={},this.headers=Nt({},gc,l),this.start({method:o,url:a,throttleInterval:u,withCredentials:h,onError:g}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var ue=r.recordsAsArray();ue.length&&window.fetch(a,{method:o,body:JSON.stringify(ue),headers:r.headers,credentials:h?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function l(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(u.status>=400&&(typeof c=="function"?c.call(r,f,u):console.warn("Browser Bunyan: A server log write failed")),r.records={},l())},u.open(s,o);for(var d=0,h=Object.entries(r.headers);d<h.length;d++){var g=h[d];u.setRequestHeader(g[0],g[1])}u.withCredentials=a,u.send(JSON.stringify(f))}else l()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=hr,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!hc},e}(),ll=10,fl=20,dl=30,pl=40,hl=50,gl=60,Ct={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},gr={};function Dt(e){return typeof e=="string"?Ct[e.toLowerCase()]:e}function At(e,t){return At=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},At(e,t)}function _c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pt(e,t,n){return Pt=_c()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&At(a,o.prototype),a},Pt.apply(null,arguments)}function q(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Mt(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Mt(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function J(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Mt(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(l){if(l==="%%")return"%";if(s>=i)return l;switch(l){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return l}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Mt(c);return a}function yc(e,t){var n=e.split(`
19
+ `);n[0]&&n[0].indexOf("call-stack-error")>=0&&n.shift();var r=n[t],s=null;if(r){var o=/^\s*(at|.*@)\s*(.+)?$/.exec(r);s=Array.isArray(o)&&o[2]?o[2]:r}return s}Object.keys(Ct).forEach(function(e){gr[Ct[e]]=e});var Lt={};function jt(e,t){if(t){if(Lt[t])return;Lt[t]=!0}console.error(e+`
20
+ `)}function Ec(e){return Lt[e]}function Sc(){var e=[];return function(t,n){return n&&typeof n=="object"?e.indexOf(n)!==-1?"[Circular]":(e.push(n),n):n}}var bc=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),K=function(){function e(n,r,s){var o,i,a,c,l=this;if(!(this instanceof e))return new e(n,r);if(r!==void 0&&(o=n,n=r,!(o instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!n)throw new TypeError("options (object) is required");if(o){if(n.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!n.name)throw new TypeError("options.name (string) is required");if(n.stream&&n.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(n.streams&&!Array.isArray(n.streams))throw new TypeError("invalid options.streams: must be an array");if(n.serializers&&(typeof n.serializers!="object"||Array.isArray(n.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(o&&s){this._level=o._level,this.streams=o.streams,this.serializers=o.serializers,this.src=o.src,i=this.fields={};var f=Object.keys(o.fields);for(c=0;c<f.length;c++)i[a=f[c]]=o.fields[a];var u=Object.keys(n);for(c=0;c<u.length;c++)i[a=u[c]]=n[a]}else{if(o){for(this._level=o._level,this.streams=[],c=0;c<o.streams.length;c++){var d=q(o.streams[c]);this.streams.push(d)}this.serializers=q(o.serializers),this.src=o.src,this.fields=q(o.fields),n.level&&this.level(n.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};n.stream?this.addStream({type:"stream",stream:n.stream,level:n.level}):n.streams?n.streams.forEach(function(h){l.addStream(h,n.level)}):o&&n.level?this.level(n.level):o||this.addStream({type:"raw",stream:new bc,level:n.level}),n.serializers&&this.addSerializers(n.serializers),n.src&&(this.src=!0),delete(i=q(n)).stream,delete i.level,delete i.streams,delete i.serializers,delete i.src,this.serializers&&this._applySerializers(i),Object.keys(i).forEach(function(h){l.fields[h]=i[h]})}}var t=e.prototype;return t.addStream=function(n,r){r===void 0&&(r=30),(n=q(n)).type="raw",n.level=Dt(n.level||r),n.level<this._level&&(this._level=n.level),this.streams.push(n),delete this.haveNonRawStreams},t.addSerializers=function(n){var r=this;this.serializers||(this.serializers={}),Object.keys(n).forEach(function(s){var o=n[s];if(typeof o!="function")throw new TypeError(J('invalid serializer for "%s" field: must be a function',s));r.serializers[s]=o})},t.child=function(n,r){return new this.constructor(this,n||{},r)},t.level=function(n){if(n===void 0)return this._level;for(var r=Dt(n),s=this.streams.length,o=0;o<s;o++)this.streams[o].level=r;this._level=r},t.levels=function(n,r){if(n===void 0)return this.streams.map(function(l){return l.level});var s;if(typeof n=="number"){if((s=this.streams[n])===void 0)throw new Error("invalid stream index: "+n)}else{for(var o=this.streams.length,i=0;i<o;i++){var a=this.streams[i];if(a.name===n){s=a;break}}if(!s)throw new Error(J('no stream with name "%s"',n))}if(r===void 0)return s.level;var c=Dt(r);s.level=c,c<this._level&&(this._level=c)},t._applySerializers=function(n,r){var s=this;Object.keys(this.serializers).forEach(function(o){if(!(n[o]===void 0||r&&r[o]))try{n[o]=s.serializers[o](n[o])}catch(i){jt(J(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
21
+ %s`,o,i.stack||i)),n[o]=J('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,Sc())+`
22
+ `}catch(l){var i=l.stack.split(/\n/g,2).join(`
23
+ `);jt('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(f,u){return u||(u=" "),u+f.split(/\r?\n/g).join(`
24
+ `+u)}(J(`%s
25
+ %s`,n,l.stack)),i),o=J(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
26
+ `,l.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function ce(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):vc.err(i[0])},a={err:!0},s=i.length===1?[r.err.message]:Array.prototype.slice.call(i,1)):typeof i[0]!="object"&&i[0]!==null||Array.isArray(i[0])?(r=null,s=Array.prototype.slice.call(i)):(r=i[0],s=i.length===1&&r.err&&r.err instanceof Error?[r.err.message]:Array.prototype.slice.call(i,1));var c=q(t.fields);c.level=e;var l=r?q(r):null;if(l&&(t.serializers&&t._applySerializers(l,a),Object.keys(l).forEach(function(u){c[u]=l[u]})),c.levelName=gr[e],c.msg=s.length?J.apply(t,s):"",c.time||(c.time=new Date),t.src&&!c.src)try{throw new Error("call-stack-error")}catch(u){var f=u.stack?yc(u.stack,2):"";f||Ec("src")||jt("Unable to determine src line info","src"),c.src=f||""}return c.v=1,c}var r=null,s=arguments,o=null;if(arguments.length===0)return this._level<=e;this._level>e||(o=n(s),this._emit(o))}}function mr(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var n=e.cause();n&&(t+=`
27
+ Caused by: `+mr(n))}return t}K.prototype.trace=ce(10),K.prototype.debug=ce(20),K.prototype.info=ce(30),K.prototype.warn=ce(40),K.prototype.error=ce(50),K.prototype.fatal=ce(60);var vc={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:mr(e),code:e.code,signal:e.signal}:e}};function Tc(){return Pt(K,[].slice.call(arguments))}var ml=null,_l=null,yl=null;function Ic({environment:e,clientSlug:t,url:n,telemetry:r,appVersion:s}={}){const{logging:o}=Object.assign({},r),i=[{level:Ft,stream:new br({logByLevel:!0})}];return o&&i.push({level:Be,stream:new pc({dsn:"https://509e6f450227e178643e414fe50bd969@o4507853291716608.ingest.us.sentry.io/4508132363141120",environment:e,clientSlug:t,appVersion:s})}),n&&i.push({level:Be,stream:new mc({url:n,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),Tc({name:"embeddable-logger",streams:i,environment:e,clientSlug:t})}}}]);
28
+
29
+ //# sourceMappingURL=644.index.js.map